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
  • 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.
    • setProtocolVersion

      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

      public CastChannel.CastMessage.Builder 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:
      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.
    • setSourceId

      public CastChannel.CastMessage.Builder setSourceId(String value)
       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

      public CastChannel.CastMessage.Builder 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

      public CastChannel.CastMessage.Builder setSourceIdBytes(com.google.protobuf.ByteString value)
       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:
      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.
    • setDestinationId

      public CastChannel.CastMessage.Builder setDestinationId(String value)
      required string destination_id = 3;
      Parameters:
      value - The destinationId to set.
      Returns:
      This builder for chaining.
    • clearDestinationId

      public CastChannel.CastMessage.Builder clearDestinationId()
      required string destination_id = 3;
      Returns:
      This builder for chaining.
    • setDestinationIdBytes

      public CastChannel.CastMessage.Builder setDestinationIdBytes(com.google.protobuf.ByteString value)
      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:
      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.
    • setNamespace

      public CastChannel.CastMessage.Builder setNamespace(String value)
       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

      public CastChannel.CastMessage.Builder 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

      public CastChannel.CastMessage.Builder setNamespaceBytes(com.google.protobuf.ByteString value)
       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:
      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.
    • 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

      public CastChannel.CastMessage.Builder 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:
      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.
    • setPayloadUtf8

      public CastChannel.CastMessage.Builder setPayloadUtf8(String value)
       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

      public CastChannel.CastMessage.Builder 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

      public CastChannel.CastMessage.Builder setPayloadUtf8Bytes(com.google.protobuf.ByteString value)
       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:
      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.
    • setPayloadBinary

      public CastChannel.CastMessage.Builder setPayloadBinary(com.google.protobuf.ByteString value)
      optional bytes payload_binary = 7;
      Parameters:
      value - The payloadBinary to set.
      Returns:
      This builder for chaining.
    • clearPayloadBinary

      public CastChannel.CastMessage.Builder clearPayloadBinary()
      optional bytes payload_binary = 7;
      Returns:
      This builder for chaining.