Package su.litvak.chromecast.api.v2
Interface CastChannel.CastMessageOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
CastChannel.CastMessage,CastChannel.CastMessage.Builder
- Enclosing class:
CastChannel
public static interface CastChannel.CastMessageOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionrequired 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.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasProtocolVersion
boolean hasProtocolVersion()required .su.litvak.chromecast.api.v2.CastMessage.ProtocolVersion protocol_version = 1;- Returns:
- Whether the protocolVersion field is set.
-
getProtocolVersion
CastChannel.CastMessage.ProtocolVersion getProtocolVersion()required .su.litvak.chromecast.api.v2.CastMessage.ProtocolVersion protocol_version = 1;- Returns:
- The protocolVersion.
-
hasSourceId
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;- Returns:
- Whether the sourceId field is set.
-
getSourceId
String 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;- Returns:
- The sourceId.
-
getSourceIdBytes
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;- Returns:
- The bytes for sourceId.
-
hasDestinationId
boolean hasDestinationId()required string destination_id = 3;- Returns:
- Whether the destinationId field is set.
-
getDestinationId
String getDestinationId()required string destination_id = 3;- Returns:
- The destinationId.
-
getDestinationIdBytes
com.google.protobuf.ByteString getDestinationIdBytes()required string destination_id = 3;- Returns:
- The bytes for destinationId.
-
hasNamespace
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;- Returns:
- Whether the namespace field is set.
-
getNamespace
String 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;- Returns:
- The namespace.
-
getNamespaceBytes
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;- Returns:
- The bytes for namespace.
-
hasPayloadType
boolean hasPayloadType()required .su.litvak.chromecast.api.v2.CastMessage.PayloadType payload_type = 5;- Returns:
- Whether the payloadType field is set.
-
getPayloadType
CastChannel.CastMessage.PayloadType getPayloadType()required .su.litvak.chromecast.api.v2.CastMessage.PayloadType payload_type = 5;- Returns:
- The payloadType.
-
hasPayloadUtf8
boolean hasPayloadUtf8()Depending on payload_type, exactly one of the following optional fields will always be set.
optional string payload_utf8 = 6;- Returns:
- Whether the payloadUtf8 field is set.
-
getPayloadUtf8
String getPayloadUtf8()Depending on payload_type, exactly one of the following optional fields will always be set.
optional string payload_utf8 = 6;- Returns:
- The payloadUtf8.
-
getPayloadUtf8Bytes
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;- Returns:
- The bytes for payloadUtf8.
-
hasPayloadBinary
boolean hasPayloadBinary()optional bytes payload_binary = 7;- Returns:
- Whether the payloadBinary field is set.
-
getPayloadBinary
com.google.protobuf.ByteString getPayloadBinary()optional bytes payload_binary = 7;- Returns:
- The payloadBinary.
-