Package su.litvak.chromecast.api.v2
Class CastChannel.CastMessage.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<CastChannel.CastMessage,CastChannel.CastMessage.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<CastChannel.CastMessage,CastChannel.CastMessage.Builder>
su.litvak.chromecast.api.v2.CastChannel.CastMessage.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Cloneable,CastChannel.CastMessageOrBuilder
- Enclosing class:
CastChannel.CastMessage
public static final class CastChannel.CastMessage.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<CastChannel.CastMessage,CastChannel.CastMessage.Builder>
implements CastChannel.CastMessageOrBuilder
Protobuf type
su.litvak.chromecast.api.v2.CastMessage-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionrequired string destination_id = 3;This is the core multiplexing key.optional bytes payload_binary = 7;required .su.litvak.chromecast.api.v2.CastMessage.PayloadType payload_type = 5;Depending on payload_type, exactly one of the following optional fields will always be set.required .su.litvak.chromecast.api.v2.CastMessage.ProtocolVersion protocol_version = 1;source and destination ids identify the origin and destination of the message.required string destination_id = 3;com.google.protobuf.ByteStringrequired string destination_id = 3;This is the core multiplexing key.com.google.protobuf.ByteStringThis is the core multiplexing key.com.google.protobuf.ByteStringoptional bytes payload_binary = 7;required .su.litvak.chromecast.api.v2.CastMessage.PayloadType payload_type = 5;Depending on payload_type, exactly one of the following optional fields will always be set.com.google.protobuf.ByteStringDepending on payload_type, exactly one of the following optional fields will always be set.required .su.litvak.chromecast.api.v2.CastMessage.ProtocolVersion protocol_version = 1;source and destination ids identify the origin and destination of the message.com.google.protobuf.ByteStringsource and destination ids identify the origin and destination of the message.booleanrequired string destination_id = 3;booleanThis is the core multiplexing key.booleanoptional bytes payload_binary = 7;booleanrequired .su.litvak.chromecast.api.v2.CastMessage.PayloadType payload_type = 5;booleanDepending on payload_type, exactly one of the following optional fields will always be set.booleanrequired .su.litvak.chromecast.api.v2.CastMessage.ProtocolVersion protocol_version = 1;booleansource and destination ids identify the origin and destination of the message.setDestinationId(String value) required string destination_id = 3;setDestinationIdBytes(com.google.protobuf.ByteString value) required string destination_id = 3;setNamespace(String value) This is the core multiplexing key.setNamespaceBytes(com.google.protobuf.ByteString value) This is the core multiplexing key.setPayloadBinary(com.google.protobuf.ByteString value) optional bytes payload_binary = 7;required .su.litvak.chromecast.api.v2.CastMessage.PayloadType payload_type = 5;setPayloadUtf8(String value) Depending on payload_type, exactly one of the following optional fields will always be set.setPayloadUtf8Bytes(com.google.protobuf.ByteString value) Depending on payload_type, exactly one of the following optional fields will always be set.required .su.litvak.chromecast.api.v2.CastMessage.ProtocolVersion protocol_version = 1;setSourceId(String value) source and destination ids identify the origin and destination of the message.setSourceIdBytes(com.google.protobuf.ByteString value) source and destination ids identify the origin and destination of the message.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasProtocolVersion
public boolean hasProtocolVersion()required .su.litvak.chromecast.api.v2.CastMessage.ProtocolVersion protocol_version = 1;- Specified by:
hasProtocolVersionin interfaceCastChannel.CastMessageOrBuilder- Returns:
- Whether the protocolVersion field is set.
-
getProtocolVersion
required .su.litvak.chromecast.api.v2.CastMessage.ProtocolVersion protocol_version = 1;- Specified by:
getProtocolVersionin interfaceCastChannel.CastMessageOrBuilder- Returns:
- The protocolVersion.
-
setProtocolVersion
public CastChannel.CastMessage.Builder setProtocolVersion(CastChannel.CastMessage.ProtocolVersion value) required .su.litvak.chromecast.api.v2.CastMessage.ProtocolVersion protocol_version = 1;- Parameters:
value- The enum numeric value on the wire for protocolVersion to set.- Returns:
- This builder for chaining.
-
clearProtocolVersion
required .su.litvak.chromecast.api.v2.CastMessage.ProtocolVersion protocol_version = 1;- Returns:
- This builder for chaining.
-
hasSourceId
public boolean hasSourceId()source and destination ids identify the origin and destination of the message. They are used to route messages between endpoints that share a device-to-device channel. For messages between applications: - The sender application id is a unique identifier generated on behalf of the sender application. - The receiver id is always the the session id for the application. For messages to or from the sender or receiver platform, the special ids 'sender-0' and 'receiver-0' can be used. For messages intended for all endpoints using a given channel, the wildcard destination_id '*' can be used.required string source_id = 2;- Specified by:
hasSourceIdin interfaceCastChannel.CastMessageOrBuilder- Returns:
- Whether the sourceId field is set.
-
getSourceId
source and destination ids identify the origin and destination of the message. They are used to route messages between endpoints that share a device-to-device channel. For messages between applications: - The sender application id is a unique identifier generated on behalf of the sender application. - The receiver id is always the the session id for the application. For messages to or from the sender or receiver platform, the special ids 'sender-0' and 'receiver-0' can be used. For messages intended for all endpoints using a given channel, the wildcard destination_id '*' can be used.required string source_id = 2;- Specified by:
getSourceIdin interfaceCastChannel.CastMessageOrBuilder- Returns:
- The sourceId.
-
getSourceIdBytes
public com.google.protobuf.ByteString getSourceIdBytes()source and destination ids identify the origin and destination of the message. They are used to route messages between endpoints that share a device-to-device channel. For messages between applications: - The sender application id is a unique identifier generated on behalf of the sender application. - The receiver id is always the the session id for the application. For messages to or from the sender or receiver platform, the special ids 'sender-0' and 'receiver-0' can be used. For messages intended for all endpoints using a given channel, the wildcard destination_id '*' can be used.required string source_id = 2;- Specified by:
getSourceIdBytesin interfaceCastChannel.CastMessageOrBuilder- Returns:
- The bytes for sourceId.
-
setSourceId
source and destination ids identify the origin and destination of the message. They are used to route messages between endpoints that share a device-to-device channel. For messages between applications: - The sender application id is a unique identifier generated on behalf of the sender application. - The receiver id is always the the session id for the application. For messages to or from the sender or receiver platform, the special ids 'sender-0' and 'receiver-0' can be used. For messages intended for all endpoints using a given channel, the wildcard destination_id '*' can be used.required string source_id = 2;- Parameters:
value- The sourceId to set.- Returns:
- This builder for chaining.
-
clearSourceId
source and destination ids identify the origin and destination of the message. They are used to route messages between endpoints that share a device-to-device channel. For messages between applications: - The sender application id is a unique identifier generated on behalf of the sender application. - The receiver id is always the the session id for the application. For messages to or from the sender or receiver platform, the special ids 'sender-0' and 'receiver-0' can be used. For messages intended for all endpoints using a given channel, the wildcard destination_id '*' can be used.required string source_id = 2;- Returns:
- This builder for chaining.
-
setSourceIdBytes
source and destination ids identify the origin and destination of the message. They are used to route messages between endpoints that share a device-to-device channel. For messages between applications: - The sender application id is a unique identifier generated on behalf of the sender application. - The receiver id is always the the session id for the application. For messages to or from the sender or receiver platform, the special ids 'sender-0' and 'receiver-0' can be used. For messages intended for all endpoints using a given channel, the wildcard destination_id '*' can be used.required string source_id = 2;- Parameters:
value- The bytes for sourceId to set.- Returns:
- This builder for chaining.
-
hasDestinationId
public boolean hasDestinationId()required string destination_id = 3;- Specified by:
hasDestinationIdin interfaceCastChannel.CastMessageOrBuilder- Returns:
- Whether the destinationId field is set.
-
getDestinationId
required string destination_id = 3;- Specified by:
getDestinationIdin interfaceCastChannel.CastMessageOrBuilder- Returns:
- The destinationId.
-
getDestinationIdBytes
public com.google.protobuf.ByteString getDestinationIdBytes()required string destination_id = 3;- Specified by:
getDestinationIdBytesin interfaceCastChannel.CastMessageOrBuilder- Returns:
- The bytes for destinationId.
-
setDestinationId
required string destination_id = 3;- Parameters:
value- The destinationId to set.- Returns:
- This builder for chaining.
-
clearDestinationId
required string destination_id = 3;- Returns:
- This builder for chaining.
-
setDestinationIdBytes
required string destination_id = 3;- Parameters:
value- The bytes for destinationId to set.- Returns:
- This builder for chaining.
-
hasNamespace
public boolean hasNamespace()This is the core multiplexing key. All messages are sent on a namespace and endpoints sharing a channel listen on one or more namespaces. The namespace defines the protocol and semantics of the message.
required string namespace = 4;- Specified by:
hasNamespacein interfaceCastChannel.CastMessageOrBuilder- Returns:
- Whether the namespace field is set.
-
getNamespace
This is the core multiplexing key. All messages are sent on a namespace and endpoints sharing a channel listen on one or more namespaces. The namespace defines the protocol and semantics of the message.
required string namespace = 4;- Specified by:
getNamespacein interfaceCastChannel.CastMessageOrBuilder- Returns:
- The namespace.
-
getNamespaceBytes
public com.google.protobuf.ByteString getNamespaceBytes()This is the core multiplexing key. All messages are sent on a namespace and endpoints sharing a channel listen on one or more namespaces. The namespace defines the protocol and semantics of the message.
required string namespace = 4;- Specified by:
getNamespaceBytesin interfaceCastChannel.CastMessageOrBuilder- Returns:
- The bytes for namespace.
-
setNamespace
This is the core multiplexing key. All messages are sent on a namespace and endpoints sharing a channel listen on one or more namespaces. The namespace defines the protocol and semantics of the message.
required string namespace = 4;- Parameters:
value- The namespace to set.- Returns:
- This builder for chaining.
-
clearNamespace
This is the core multiplexing key. All messages are sent on a namespace and endpoints sharing a channel listen on one or more namespaces. The namespace defines the protocol and semantics of the message.
required string namespace = 4;- Returns:
- This builder for chaining.
-
setNamespaceBytes
This is the core multiplexing key. All messages are sent on a namespace and endpoints sharing a channel listen on one or more namespaces. The namespace defines the protocol and semantics of the message.
required string namespace = 4;- Parameters:
value- The bytes for namespace to set.- Returns:
- This builder for chaining.
-
hasPayloadType
public boolean hasPayloadType()required .su.litvak.chromecast.api.v2.CastMessage.PayloadType payload_type = 5;- Specified by:
hasPayloadTypein interfaceCastChannel.CastMessageOrBuilder- Returns:
- Whether the payloadType field is set.
-
getPayloadType
required .su.litvak.chromecast.api.v2.CastMessage.PayloadType payload_type = 5;- Specified by:
getPayloadTypein interfaceCastChannel.CastMessageOrBuilder- Returns:
- The payloadType.
-
setPayloadType
required .su.litvak.chromecast.api.v2.CastMessage.PayloadType payload_type = 5;- Parameters:
value- The enum numeric value on the wire for payloadType to set.- Returns:
- This builder for chaining.
-
clearPayloadType
required .su.litvak.chromecast.api.v2.CastMessage.PayloadType payload_type = 5;- Returns:
- This builder for chaining.
-
hasPayloadUtf8
public boolean hasPayloadUtf8()Depending on payload_type, exactly one of the following optional fields will always be set.
optional string payload_utf8 = 6;- Specified by:
hasPayloadUtf8in interfaceCastChannel.CastMessageOrBuilder- Returns:
- Whether the payloadUtf8 field is set.
-
getPayloadUtf8
Depending on payload_type, exactly one of the following optional fields will always be set.
optional string payload_utf8 = 6;- Specified by:
getPayloadUtf8in interfaceCastChannel.CastMessageOrBuilder- Returns:
- The payloadUtf8.
-
getPayloadUtf8Bytes
public com.google.protobuf.ByteString getPayloadUtf8Bytes()Depending on payload_type, exactly one of the following optional fields will always be set.
optional string payload_utf8 = 6;- Specified by:
getPayloadUtf8Bytesin interfaceCastChannel.CastMessageOrBuilder- Returns:
- The bytes for payloadUtf8.
-
setPayloadUtf8
Depending on payload_type, exactly one of the following optional fields will always be set.
optional string payload_utf8 = 6;- Parameters:
value- The payloadUtf8 to set.- Returns:
- This builder for chaining.
-
clearPayloadUtf8
Depending on payload_type, exactly one of the following optional fields will always be set.
optional string payload_utf8 = 6;- Returns:
- This builder for chaining.
-
setPayloadUtf8Bytes
Depending on payload_type, exactly one of the following optional fields will always be set.
optional string payload_utf8 = 6;- Parameters:
value- The bytes for payloadUtf8 to set.- Returns:
- This builder for chaining.
-
hasPayloadBinary
public boolean hasPayloadBinary()optional bytes payload_binary = 7;- Specified by:
hasPayloadBinaryin interfaceCastChannel.CastMessageOrBuilder- Returns:
- Whether the payloadBinary field is set.
-
getPayloadBinary
public com.google.protobuf.ByteString getPayloadBinary()optional bytes payload_binary = 7;- Specified by:
getPayloadBinaryin interfaceCastChannel.CastMessageOrBuilder- Returns:
- The payloadBinary.
-
setPayloadBinary
optional bytes payload_binary = 7;- Parameters:
value- The payloadBinary to set.- Returns:
- This builder for chaining.
-
clearPayloadBinary
optional bytes payload_binary = 7;- Returns:
- This builder for chaining.
-