Package su.litvak.chromecast.api.v2
Class CastChannel.CastMessage
java.lang.Object
com.google.protobuf.AbstractMessageLite<CastChannel.CastMessage,CastChannel.CastMessage.Builder>
com.google.protobuf.GeneratedMessageLite<CastChannel.CastMessage,CastChannel.CastMessage.Builder>
su.litvak.chromecast.api.v2.CastChannel.CastMessage
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,CastChannel.CastMessageOrBuilder
- Enclosing class:
CastChannel
public static final class CastChannel.CastMessage
extends com.google.protobuf.GeneratedMessageLite<CastChannel.CastMessage,CastChannel.CastMessage.Builder>
implements CastChannel.CastMessageOrBuilder
Protobuf type
su.litvak.chromecast.api.v2.CastMessage-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typesu.litvak.chromecast.api.v2.CastMessagestatic enumWhat type of data do we have in this message.static enumAlways pass a version of the protocol for future compatibility requirements.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) static CastChannel.CastMessagerequired 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.newBuilder(CastChannel.CastMessage prototype) static CastChannel.CastMessageparseDelimitedFrom(InputStream input) static CastChannel.CastMessageparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CastChannel.CastMessageparseFrom(byte[] data) static CastChannel.CastMessageparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CastChannel.CastMessageparseFrom(com.google.protobuf.ByteString data) static CastChannel.CastMessageparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CastChannel.CastMessageparseFrom(com.google.protobuf.CodedInputStream input) static CastChannel.CastMessageparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CastChannel.CastMessageparseFrom(InputStream input) static CastChannel.CastMessageparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CastChannel.CastMessageparseFrom(ByteBuffer data) static CastChannel.CastMessageparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<CastChannel.CastMessage> parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
PROTOCOL_VERSION_FIELD_NUMBER
public static final int PROTOCOL_VERSION_FIELD_NUMBER- See Also:
-
SOURCE_ID_FIELD_NUMBER
public static final int SOURCE_ID_FIELD_NUMBER- See Also:
-
DESTINATION_ID_FIELD_NUMBER
public static final int DESTINATION_ID_FIELD_NUMBER- See Also:
-
NAMESPACE_FIELD_NUMBER
public static final int NAMESPACE_FIELD_NUMBER- See Also:
-
PAYLOAD_TYPE_FIELD_NUMBER
public static final int PAYLOAD_TYPE_FIELD_NUMBER- See Also:
-
PAYLOAD_UTF8_FIELD_NUMBER
public static final int PAYLOAD_UTF8_FIELD_NUMBER- See Also:
-
PAYLOAD_BINARY_FIELD_NUMBER
public static final int PAYLOAD_BINARY_FIELD_NUMBER- See Also:
-
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
parseFrom
public static CastChannel.CastMessage parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CastChannel.CastMessage parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CastChannel.CastMessage parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CastChannel.CastMessage parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CastChannel.CastMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CastChannel.CastMessage parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CastChannel.CastMessage parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static CastChannel.CastMessage parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static CastChannel.CastMessage parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static CastChannel.CastMessage parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<CastChannel.CastMessage,CastChannel.CastMessage.Builder>
-
getDefaultInstance
-
parser
-