Package su.litvak.chromecast.api.v2
Klasse 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
- Alle implementierten Schnittstellen:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Cloneable,CastChannel.CastMessageOrBuilder
- Umschließende Klasse:
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-
Feldübersicht
Von Klasse geerbte Felder com.google.protobuf.GeneratedMessageLite.Builder
instance -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungrequired 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.Von Klasse geerbte Methoden com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromVon Klasse geerbte Methoden com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionVon Klasse geerbte Methoden java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Methodendetails
-
hasProtocolVersion
public boolean hasProtocolVersion()required .su.litvak.chromecast.api.v2.CastMessage.ProtocolVersion protocol_version = 1;- Angegeben von:
hasProtocolVersionin SchnittstelleCastChannel.CastMessageOrBuilder- Gibt zurück:
- Whether the protocolVersion field is set.
-
getProtocolVersion
required .su.litvak.chromecast.api.v2.CastMessage.ProtocolVersion protocol_version = 1;- Angegeben von:
getProtocolVersionin SchnittstelleCastChannel.CastMessageOrBuilder- Gibt zurück:
- The protocolVersion.
-
setProtocolVersion
public CastChannel.CastMessage.Builder setProtocolVersion(CastChannel.CastMessage.ProtocolVersion value) required .su.litvak.chromecast.api.v2.CastMessage.ProtocolVersion protocol_version = 1;- Parameter:
value- The enum numeric value on the wire for protocolVersion to set.- Gibt zurück:
- This builder for chaining.
-
clearProtocolVersion
required .su.litvak.chromecast.api.v2.CastMessage.ProtocolVersion protocol_version = 1;- Gibt zurück:
- 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;- Angegeben von:
hasSourceIdin SchnittstelleCastChannel.CastMessageOrBuilder- Gibt zurück:
- 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;- Angegeben von:
getSourceIdin SchnittstelleCastChannel.CastMessageOrBuilder- Gibt zurück:
- 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;- Angegeben von:
getSourceIdBytesin SchnittstelleCastChannel.CastMessageOrBuilder- Gibt zurück:
- 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;- Parameter:
value- The sourceId to set.- Gibt zurück:
- 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;- Gibt zurück:
- 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;- Parameter:
value- The bytes for sourceId to set.- Gibt zurück:
- This builder for chaining.
-
hasDestinationId
public boolean hasDestinationId()required string destination_id = 3;- Angegeben von:
hasDestinationIdin SchnittstelleCastChannel.CastMessageOrBuilder- Gibt zurück:
- Whether the destinationId field is set.
-
getDestinationId
required string destination_id = 3;- Angegeben von:
getDestinationIdin SchnittstelleCastChannel.CastMessageOrBuilder- Gibt zurück:
- The destinationId.
-
getDestinationIdBytes
public com.google.protobuf.ByteString getDestinationIdBytes()required string destination_id = 3;- Angegeben von:
getDestinationIdBytesin SchnittstelleCastChannel.CastMessageOrBuilder- Gibt zurück:
- The bytes for destinationId.
-
setDestinationId
required string destination_id = 3;- Parameter:
value- The destinationId to set.- Gibt zurück:
- This builder for chaining.
-
clearDestinationId
required string destination_id = 3;- Gibt zurück:
- This builder for chaining.
-
setDestinationIdBytes
required string destination_id = 3;- Parameter:
value- The bytes for destinationId to set.- Gibt zurück:
- 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;- Angegeben von:
hasNamespacein SchnittstelleCastChannel.CastMessageOrBuilder- Gibt zurück:
- 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;- Angegeben von:
getNamespacein SchnittstelleCastChannel.CastMessageOrBuilder- Gibt zurück:
- 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;- Angegeben von:
getNamespaceBytesin SchnittstelleCastChannel.CastMessageOrBuilder- Gibt zurück:
- 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;- Parameter:
value- The namespace to set.- Gibt zurück:
- 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;- Gibt zurück:
- 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;- Parameter:
value- The bytes for namespace to set.- Gibt zurück:
- This builder for chaining.
-
hasPayloadType
public boolean hasPayloadType()required .su.litvak.chromecast.api.v2.CastMessage.PayloadType payload_type = 5;- Angegeben von:
hasPayloadTypein SchnittstelleCastChannel.CastMessageOrBuilder- Gibt zurück:
- Whether the payloadType field is set.
-
getPayloadType
required .su.litvak.chromecast.api.v2.CastMessage.PayloadType payload_type = 5;- Angegeben von:
getPayloadTypein SchnittstelleCastChannel.CastMessageOrBuilder- Gibt zurück:
- The payloadType.
-
setPayloadType
required .su.litvak.chromecast.api.v2.CastMessage.PayloadType payload_type = 5;- Parameter:
value- The enum numeric value on the wire for payloadType to set.- Gibt zurück:
- This builder for chaining.
-
clearPayloadType
required .su.litvak.chromecast.api.v2.CastMessage.PayloadType payload_type = 5;- Gibt zurück:
- 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;- Angegeben von:
hasPayloadUtf8in SchnittstelleCastChannel.CastMessageOrBuilder- Gibt zurück:
- 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;- Angegeben von:
getPayloadUtf8in SchnittstelleCastChannel.CastMessageOrBuilder- Gibt zurück:
- 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;- Angegeben von:
getPayloadUtf8Bytesin SchnittstelleCastChannel.CastMessageOrBuilder- Gibt zurück:
- 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;- Parameter:
value- The payloadUtf8 to set.- Gibt zurück:
- 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;- Gibt zurück:
- 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;- Parameter:
value- The bytes for payloadUtf8 to set.- Gibt zurück:
- This builder for chaining.
-
hasPayloadBinary
public boolean hasPayloadBinary()optional bytes payload_binary = 7;- Angegeben von:
hasPayloadBinaryin SchnittstelleCastChannel.CastMessageOrBuilder- Gibt zurück:
- Whether the payloadBinary field is set.
-
getPayloadBinary
public com.google.protobuf.ByteString getPayloadBinary()optional bytes payload_binary = 7;- Angegeben von:
getPayloadBinaryin SchnittstelleCastChannel.CastMessageOrBuilder- Gibt zurück:
- The payloadBinary.
-
setPayloadBinary
optional bytes payload_binary = 7;- Parameter:
value- The payloadBinary to set.- Gibt zurück:
- This builder for chaining.
-
clearPayloadBinary
optional bytes payload_binary = 7;- Gibt zurück:
- This builder for chaining.
-