Class SubscriptionHeaders.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<SubscriptionHeaders.Builder>
com.iotics.api.SubscriptionHeaders.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, SubscriptionHeadersOrBuilder, Cloneable
Enclosing class:
SubscriptionHeaders

public static final class SubscriptionHeaders.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SubscriptionHeaders.Builder> implements SubscriptionHeadersOrBuilder
 SubscriptionHeaders describes a Search subscribe header. (Will be DEPRECATED with the client-ref from Headers).
 
Protobuf type iotics.api.SubscriptionHeaders
  • 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<SubscriptionHeaders.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<SubscriptionHeaders.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<SubscriptionHeaders.Builder>
    • getDefaultInstanceForType

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

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

      public SubscriptionHeaders buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<SubscriptionHeaders.Builder>
    • setField

      public SubscriptionHeaders.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<SubscriptionHeaders.Builder>
    • clearField

      public SubscriptionHeaders.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<SubscriptionHeaders.Builder>
    • clearOneof

      public SubscriptionHeaders.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<SubscriptionHeaders.Builder>
    • setRepeatedField

      public SubscriptionHeaders.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<SubscriptionHeaders.Builder>
    • addRepeatedField

      public SubscriptionHeaders.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<SubscriptionHeaders.Builder>
    • mergeFrom

      public SubscriptionHeaders.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<SubscriptionHeaders.Builder>
    • mergeFrom

    • isInitialized

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

      public SubscriptionHeaders.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<SubscriptionHeaders.Builder>
      Throws:
      IOException
    • getClientAppId

      public String getClientAppId()
       User namespace used to group all the requests/responses
       
      string clientAppId = 1;
      Specified by:
      getClientAppId in interface SubscriptionHeadersOrBuilder
      Returns:
      The clientAppId.
    • getClientAppIdBytes

      public com.google.protobuf.ByteString getClientAppIdBytes()
       User namespace used to group all the requests/responses
       
      string clientAppId = 1;
      Specified by:
      getClientAppIdBytes in interface SubscriptionHeadersOrBuilder
      Returns:
      The bytes for clientAppId.
    • setClientAppId

      public SubscriptionHeaders.Builder setClientAppId(String value)
       User namespace used to group all the requests/responses
       
      string clientAppId = 1;
      Parameters:
      value - The clientAppId to set.
      Returns:
      This builder for chaining.
    • clearClientAppId

      public SubscriptionHeaders.Builder clearClientAppId()
       User namespace used to group all the requests/responses
       
      string clientAppId = 1;
      Returns:
      This builder for chaining.
    • setClientAppIdBytes

      public SubscriptionHeaders.Builder setClientAppIdBytes(com.google.protobuf.ByteString value)
       User namespace used to group all the requests/responses
       
      string clientAppId = 1;
      Parameters:
      value - The bytes for clientAppId to set.
      Returns:
      This builder for chaining.
    • getTransactionRefList

      public com.google.protobuf.ProtocolStringList getTransactionRefList()
       Used to loosely link requests/responses in a distributed environment
       each layer can add its own id to the list. Transaction ref is limited to
       a max of 16 elements per list and, for each list item, a max length of 36
       characters
       
      repeated string transactionRef = 2;
      Specified by:
      getTransactionRefList in interface SubscriptionHeadersOrBuilder
      Returns:
      A list containing the transactionRef.
    • getTransactionRefCount

      public int getTransactionRefCount()
       Used to loosely link requests/responses in a distributed environment
       each layer can add its own id to the list. Transaction ref is limited to
       a max of 16 elements per list and, for each list item, a max length of 36
       characters
       
      repeated string transactionRef = 2;
      Specified by:
      getTransactionRefCount in interface SubscriptionHeadersOrBuilder
      Returns:
      The count of transactionRef.
    • getTransactionRef

      public String getTransactionRef(int index)
       Used to loosely link requests/responses in a distributed environment
       each layer can add its own id to the list. Transaction ref is limited to
       a max of 16 elements per list and, for each list item, a max length of 36
       characters
       
      repeated string transactionRef = 2;
      Specified by:
      getTransactionRef in interface SubscriptionHeadersOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The transactionRef at the given index.
    • getTransactionRefBytes

      public com.google.protobuf.ByteString getTransactionRefBytes(int index)
       Used to loosely link requests/responses in a distributed environment
       each layer can add its own id to the list. Transaction ref is limited to
       a max of 16 elements per list and, for each list item, a max length of 36
       characters
       
      repeated string transactionRef = 2;
      Specified by:
      getTransactionRefBytes in interface SubscriptionHeadersOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the transactionRef at the given index.
    • setTransactionRef

      public SubscriptionHeaders.Builder setTransactionRef(int index, String value)
       Used to loosely link requests/responses in a distributed environment
       each layer can add its own id to the list. Transaction ref is limited to
       a max of 16 elements per list and, for each list item, a max length of 36
       characters
       
      repeated string transactionRef = 2;
      Parameters:
      index - The index to set the value at.
      value - The transactionRef to set.
      Returns:
      This builder for chaining.
    • addTransactionRef

      public SubscriptionHeaders.Builder addTransactionRef(String value)
       Used to loosely link requests/responses in a distributed environment
       each layer can add its own id to the list. Transaction ref is limited to
       a max of 16 elements per list and, for each list item, a max length of 36
       characters
       
      repeated string transactionRef = 2;
      Parameters:
      value - The transactionRef to add.
      Returns:
      This builder for chaining.
    • addAllTransactionRef

      public SubscriptionHeaders.Builder addAllTransactionRef(Iterable<String> values)
       Used to loosely link requests/responses in a distributed environment
       each layer can add its own id to the list. Transaction ref is limited to
       a max of 16 elements per list and, for each list item, a max length of 36
       characters
       
      repeated string transactionRef = 2;
      Parameters:
      values - The transactionRef to add.
      Returns:
      This builder for chaining.
    • clearTransactionRef

      public SubscriptionHeaders.Builder clearTransactionRef()
       Used to loosely link requests/responses in a distributed environment
       each layer can add its own id to the list. Transaction ref is limited to
       a max of 16 elements per list and, for each list item, a max length of 36
       characters
       
      repeated string transactionRef = 2;
      Returns:
      This builder for chaining.
    • addTransactionRefBytes

      public SubscriptionHeaders.Builder addTransactionRefBytes(com.google.protobuf.ByteString value)
       Used to loosely link requests/responses in a distributed environment
       each layer can add its own id to the list. Transaction ref is limited to
       a max of 16 elements per list and, for each list item, a max length of 36
       characters
       
      repeated string transactionRef = 2;
      Parameters:
      value - The bytes of the transactionRef to add.
      Returns:
      This builder for chaining.
    • hasConsumerGroup

      public boolean hasConsumerGroup()
       consumer group (for group listener, optional) - Not implemented yet
       
      .google.protobuf.StringValue consumerGroup = 3;
      Specified by:
      hasConsumerGroup in interface SubscriptionHeadersOrBuilder
      Returns:
      Whether the consumerGroup field is set.
    • getConsumerGroup

      public StringValue getConsumerGroup()
       consumer group (for group listener, optional) - Not implemented yet
       
      .google.protobuf.StringValue consumerGroup = 3;
      Specified by:
      getConsumerGroup in interface SubscriptionHeadersOrBuilder
      Returns:
      The consumerGroup.
    • setConsumerGroup

      public SubscriptionHeaders.Builder setConsumerGroup(StringValue value)
       consumer group (for group listener, optional) - Not implemented yet
       
      .google.protobuf.StringValue consumerGroup = 3;
    • setConsumerGroup

      public SubscriptionHeaders.Builder setConsumerGroup(StringValue.Builder builderForValue)
       consumer group (for group listener, optional) - Not implemented yet
       
      .google.protobuf.StringValue consumerGroup = 3;
    • mergeConsumerGroup

      public SubscriptionHeaders.Builder mergeConsumerGroup(StringValue value)
       consumer group (for group listener, optional) - Not implemented yet
       
      .google.protobuf.StringValue consumerGroup = 3;
    • clearConsumerGroup

      public SubscriptionHeaders.Builder clearConsumerGroup()
       consumer group (for group listener, optional) - Not implemented yet
       
      .google.protobuf.StringValue consumerGroup = 3;
    • getConsumerGroupBuilder

      public StringValue.Builder getConsumerGroupBuilder()
       consumer group (for group listener, optional) - Not implemented yet
       
      .google.protobuf.StringValue consumerGroup = 3;
    • getConsumerGroupOrBuilder

      public StringValueOrBuilder getConsumerGroupOrBuilder()
       consumer group (for group listener, optional) - Not implemented yet
       
      .google.protobuf.StringValue consumerGroup = 3;
      Specified by:
      getConsumerGroupOrBuilder in interface SubscriptionHeadersOrBuilder
    • setUnknownFields

      public final SubscriptionHeaders.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<SubscriptionHeaders.Builder>
    • mergeUnknownFields

      public final SubscriptionHeaders.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<SubscriptionHeaders.Builder>