Class Stream.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder>
com.heroiclabs.nakama.rtapi.Stream.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, StreamOrBuilder, Cloneable
Enclosing class:
Stream

public static final class Stream.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder> implements StreamOrBuilder
 Represents identifying information for a stream.
 
Protobuf type nakama.realtime.Stream
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder>
    • clear

      public Stream.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder>
    • getDefaultInstanceForType

      public Stream getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Stream build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Stream buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Stream.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder>
    • setField

      public Stream.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder>
    • clearField

      public Stream.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder>
    • clearOneof

      public Stream.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder>
    • setRepeatedField

      public Stream.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder>
    • addRepeatedField

      public Stream.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder>
    • mergeFrom

      public Stream.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Stream.Builder>
    • mergeFrom

      public Stream.Builder mergeFrom(Stream other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder>
    • mergeFrom

      public Stream.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Stream.Builder>
      Throws:
      IOException
    • getMode

      public int getMode()
       Mode identifies the type of stream.
       
      int32 mode = 1;
      Specified by:
      getMode in interface StreamOrBuilder
      Returns:
      The mode.
    • setMode

      public Stream.Builder setMode(int value)
       Mode identifies the type of stream.
       
      int32 mode = 1;
      Parameters:
      value - The mode to set.
      Returns:
      This builder for chaining.
    • clearMode

      public Stream.Builder clearMode()
       Mode identifies the type of stream.
       
      int32 mode = 1;
      Returns:
      This builder for chaining.
    • getSubject

      public String getSubject()
       Subject is the primary identifier, if any.
       
      string subject = 2;
      Specified by:
      getSubject in interface StreamOrBuilder
      Returns:
      The subject.
    • getSubjectBytes

      public com.google.protobuf.ByteString getSubjectBytes()
       Subject is the primary identifier, if any.
       
      string subject = 2;
      Specified by:
      getSubjectBytes in interface StreamOrBuilder
      Returns:
      The bytes for subject.
    • setSubject

      public Stream.Builder setSubject(String value)
       Subject is the primary identifier, if any.
       
      string subject = 2;
      Parameters:
      value - The subject to set.
      Returns:
      This builder for chaining.
    • clearSubject

      public Stream.Builder clearSubject()
       Subject is the primary identifier, if any.
       
      string subject = 2;
      Returns:
      This builder for chaining.
    • setSubjectBytes

      public Stream.Builder setSubjectBytes(com.google.protobuf.ByteString value)
       Subject is the primary identifier, if any.
       
      string subject = 2;
      Parameters:
      value - The bytes for subject to set.
      Returns:
      This builder for chaining.
    • getSubcontext

      public String getSubcontext()
       Subcontext is a secondary identifier, if any.
       
      string subcontext = 3;
      Specified by:
      getSubcontext in interface StreamOrBuilder
      Returns:
      The subcontext.
    • getSubcontextBytes

      public com.google.protobuf.ByteString getSubcontextBytes()
       Subcontext is a secondary identifier, if any.
       
      string subcontext = 3;
      Specified by:
      getSubcontextBytes in interface StreamOrBuilder
      Returns:
      The bytes for subcontext.
    • setSubcontext

      public Stream.Builder setSubcontext(String value)
       Subcontext is a secondary identifier, if any.
       
      string subcontext = 3;
      Parameters:
      value - The subcontext to set.
      Returns:
      This builder for chaining.
    • clearSubcontext

      public Stream.Builder clearSubcontext()
       Subcontext is a secondary identifier, if any.
       
      string subcontext = 3;
      Returns:
      This builder for chaining.
    • setSubcontextBytes

      public Stream.Builder setSubcontextBytes(com.google.protobuf.ByteString value)
       Subcontext is a secondary identifier, if any.
       
      string subcontext = 3;
      Parameters:
      value - The bytes for subcontext to set.
      Returns:
      This builder for chaining.
    • getLabel

      public String getLabel()
       The label is an arbitrary identifying string, if the stream has one.
       
      string label = 4;
      Specified by:
      getLabel in interface StreamOrBuilder
      Returns:
      The label.
    • getLabelBytes

      public com.google.protobuf.ByteString getLabelBytes()
       The label is an arbitrary identifying string, if the stream has one.
       
      string label = 4;
      Specified by:
      getLabelBytes in interface StreamOrBuilder
      Returns:
      The bytes for label.
    • setLabel

      public Stream.Builder setLabel(String value)
       The label is an arbitrary identifying string, if the stream has one.
       
      string label = 4;
      Parameters:
      value - The label to set.
      Returns:
      This builder for chaining.
    • clearLabel

      public Stream.Builder clearLabel()
       The label is an arbitrary identifying string, if the stream has one.
       
      string label = 4;
      Returns:
      This builder for chaining.
    • setLabelBytes

      public Stream.Builder setLabelBytes(com.google.protobuf.ByteString value)
       The label is an arbitrary identifying string, if the stream has one.
       
      string label = 4;
      Parameters:
      value - The bytes for label to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Stream.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder>
    • mergeUnknownFields

      public final Stream.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder>