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 Classes
    Modifier and Type
    Class
    Description
    static final class 
    Protobuf type su.litvak.chromecast.api.v2.CastMessage
    static enum 
    What type of data do we have in this message.
    static enum 
    Always 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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
     
    required string destination_id = 3;
    com.google.protobuf.ByteString
    required string destination_id = 3;
    This is the core multiplexing key.
    com.google.protobuf.ByteString
    This is the core multiplexing key.
    com.google.protobuf.ByteString
    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.
    com.google.protobuf.ByteString
    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.
    com.google.protobuf.ByteString
    source and destination ids identify the origin and destination of the message.
    boolean
    required string destination_id = 3;
    boolean
    This is the core multiplexing key.
    boolean
    optional bytes payload_binary = 7;
    boolean
    required .su.litvak.chromecast.api.v2.CastMessage.PayloadType payload_type = 5;
    boolean
    Depending on payload_type, exactly one of the following optional fields will always be set.
    boolean
    required .su.litvak.chromecast.api.v2.CastMessage.ProtocolVersion protocol_version = 1;
    boolean
    source and destination ids identify the origin and destination of the message.
     
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<CastChannel.CastMessage>
     

    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, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods 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:
      hasProtocolVersion in interface CastChannel.CastMessageOrBuilder
      Returns:
      Whether the protocolVersion field is set.
    • getProtocolVersion

      public CastChannel.CastMessage.ProtocolVersion getProtocolVersion()
      required .su.litvak.chromecast.api.v2.CastMessage.ProtocolVersion protocol_version = 1;
      Specified by:
      getProtocolVersion in interface CastChannel.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:
      hasSourceId in interface CastChannel.CastMessageOrBuilder
      Returns:
      Whether the sourceId field is set.
    • getSourceId

      public 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;
      Specified by:
      getSourceId in interface CastChannel.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:
      getSourceIdBytes in interface CastChannel.CastMessageOrBuilder
      Returns:
      The bytes for sourceId.
    • hasDestinationId

      public boolean hasDestinationId()
      required string destination_id = 3;
      Specified by:
      hasDestinationId in interface CastChannel.CastMessageOrBuilder
      Returns:
      Whether the destinationId field is set.
    • getDestinationId

      public String getDestinationId()
      required string destination_id = 3;
      Specified by:
      getDestinationId in interface CastChannel.CastMessageOrBuilder
      Returns:
      The destinationId.
    • getDestinationIdBytes

      public com.google.protobuf.ByteString getDestinationIdBytes()
      required string destination_id = 3;
      Specified by:
      getDestinationIdBytes in interface CastChannel.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:
      hasNamespace in interface CastChannel.CastMessageOrBuilder
      Returns:
      Whether the namespace field is set.
    • getNamespace

      public 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;
      Specified by:
      getNamespace in interface CastChannel.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:
      getNamespaceBytes in interface CastChannel.CastMessageOrBuilder
      Returns:
      The bytes for namespace.
    • hasPayloadType

      public boolean hasPayloadType()
      required .su.litvak.chromecast.api.v2.CastMessage.PayloadType payload_type = 5;
      Specified by:
      hasPayloadType in interface CastChannel.CastMessageOrBuilder
      Returns:
      Whether the payloadType field is set.
    • getPayloadType

      public CastChannel.CastMessage.PayloadType getPayloadType()
      required .su.litvak.chromecast.api.v2.CastMessage.PayloadType payload_type = 5;
      Specified by:
      getPayloadType in interface CastChannel.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:
      hasPayloadUtf8 in interface CastChannel.CastMessageOrBuilder
      Returns:
      Whether the payloadUtf8 field is set.
    • getPayloadUtf8

      public String getPayloadUtf8()
       Depending on payload_type, exactly one of the following optional fields
       will always be set.
       
      optional string payload_utf8 = 6;
      Specified by:
      getPayloadUtf8 in interface CastChannel.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:
      getPayloadUtf8Bytes in interface CastChannel.CastMessageOrBuilder
      Returns:
      The bytes for payloadUtf8.
    • hasPayloadBinary

      public boolean hasPayloadBinary()
      optional bytes payload_binary = 7;
      Specified by:
      hasPayloadBinary in interface CastChannel.CastMessageOrBuilder
      Returns:
      Whether the payloadBinary field is set.
    • getPayloadBinary

      public com.google.protobuf.ByteString getPayloadBinary()
      optional bytes payload_binary = 7;
      Specified by:
      getPayloadBinary in interface CastChannel.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

      public static CastChannel.CastMessage parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CastChannel.CastMessage parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CastChannel.CastMessage parseDelimitedFrom(InputStream input) throws IOException
      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

      public static CastChannel.CastMessage.Builder newBuilder()
    • newBuilder

      public static CastChannel.CastMessage.Builder newBuilder(CastChannel.CastMessage prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<CastChannel.CastMessage,CastChannel.CastMessage.Builder>
    • getDefaultInstance

      public static CastChannel.CastMessage getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<CastChannel.CastMessage> parser()