Class Headers.Builder

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

public static final class Headers.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Headers.Builder> implements HeadersOrBuilder
 Headers describes the common headers applicable to all the API requests
 (except for Search subscribe: see SubscriptionHeaders).
 
Protobuf type iotics.api.Headers
  • 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<Headers.Builder>
    • clear

      public Headers.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<Headers.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<Headers.Builder>
    • getDefaultInstanceForType

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

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

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

      public Headers.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<Headers.Builder>
    • setField

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

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

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

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

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

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

      public Headers.Builder mergeFrom(Headers other)
    • isInitialized

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

      public Headers.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<Headers.Builder>
      Throws:
      IOException
    • getClientRef

      public String getClientRef()
       Optional client reference. Any responses associated with the request will include this reference.
       
      string clientRef = 1;
      Specified by:
      getClientRef in interface HeadersOrBuilder
      Returns:
      The clientRef.
    • getClientRefBytes

      public com.google.protobuf.ByteString getClientRefBytes()
       Optional client reference. Any responses associated with the request will include this reference.
       
      string clientRef = 1;
      Specified by:
      getClientRefBytes in interface HeadersOrBuilder
      Returns:
      The bytes for clientRef.
    • setClientRef

      public Headers.Builder setClientRef(String value)
       Optional client reference. Any responses associated with the request will include this reference.
       
      string clientRef = 1;
      Parameters:
      value - The clientRef to set.
      Returns:
      This builder for chaining.
    • clearClientRef

      public Headers.Builder clearClientRef()
       Optional client reference. Any responses associated with the request will include this reference.
       
      string clientRef = 1;
      Returns:
      This builder for chaining.
    • setClientRefBytes

      public Headers.Builder setClientRefBytes(com.google.protobuf.ByteString value)
       Optional client reference. Any responses associated with the request will include this reference.
       
      string clientRef = 1;
      Parameters:
      value - The bytes for clientRef to set.
      Returns:
      This builder for chaining.
    • getClientAppId

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

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

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

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

      public Headers.Builder setClientAppIdBytes(com.google.protobuf.ByteString value)
       User namespace used to group all the requests/responses
       
      string clientAppId = 2;
      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 = 3;
      Specified by:
      getTransactionRefList in interface HeadersOrBuilder
      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 = 3;
      Specified by:
      getTransactionRefCount in interface HeadersOrBuilder
      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 = 3;
      Specified by:
      getTransactionRef in interface HeadersOrBuilder
      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 = 3;
      Specified by:
      getTransactionRefBytes in interface HeadersOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the transactionRef at the given index.
    • setTransactionRef

      public Headers.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 = 3;
      Parameters:
      index - The index to set the value at.
      value - The transactionRef to set.
      Returns:
      This builder for chaining.
    • addTransactionRef

      public Headers.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 = 3;
      Parameters:
      value - The transactionRef to add.
      Returns:
      This builder for chaining.
    • addAllTransactionRef

      public Headers.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 = 3;
      Parameters:
      values - The transactionRef to add.
      Returns:
      This builder for chaining.
    • clearTransactionRef

      public Headers.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 = 3;
      Returns:
      This builder for chaining.
    • addTransactionRefBytes

      public Headers.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 = 3;
      Parameters:
      value - The bytes of the transactionRef to add.
      Returns:
      This builder for chaining.
    • hasConsumerGroup

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

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

      public Headers.Builder setConsumerGroup(StringValue value)
       Used for group listener, optional - Not implemented yet
       
      .google.protobuf.StringValue consumerGroup = 4;
    • setConsumerGroup

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

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

      public Headers.Builder clearConsumerGroup()
       Used for group listener, optional - Not implemented yet
       
      .google.protobuf.StringValue consumerGroup = 4;
    • getConsumerGroupBuilder

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

      public StringValueOrBuilder getConsumerGroupOrBuilder()
       Used for group listener, optional - Not implemented yet
       
      .google.protobuf.StringValue consumerGroup = 4;
      Specified by:
      getConsumerGroupOrBuilder in interface HeadersOrBuilder
    • hasRequestTimeout

      public boolean hasRequestTimeout()
       Client request timeout used to stop the request processing once the timeout is reached
       
      .google.protobuf.Timestamp requestTimeout = 5;
      Specified by:
      hasRequestTimeout in interface HeadersOrBuilder
      Returns:
      Whether the requestTimeout field is set.
    • getRequestTimeout

      public Timestamp getRequestTimeout()
       Client request timeout used to stop the request processing once the timeout is reached
       
      .google.protobuf.Timestamp requestTimeout = 5;
      Specified by:
      getRequestTimeout in interface HeadersOrBuilder
      Returns:
      The requestTimeout.
    • setRequestTimeout

      public Headers.Builder setRequestTimeout(Timestamp value)
       Client request timeout used to stop the request processing once the timeout is reached
       
      .google.protobuf.Timestamp requestTimeout = 5;
    • setRequestTimeout

      public Headers.Builder setRequestTimeout(Timestamp.Builder builderForValue)
       Client request timeout used to stop the request processing once the timeout is reached
       
      .google.protobuf.Timestamp requestTimeout = 5;
    • mergeRequestTimeout

      public Headers.Builder mergeRequestTimeout(Timestamp value)
       Client request timeout used to stop the request processing once the timeout is reached
       
      .google.protobuf.Timestamp requestTimeout = 5;
    • clearRequestTimeout

      public Headers.Builder clearRequestTimeout()
       Client request timeout used to stop the request processing once the timeout is reached
       
      .google.protobuf.Timestamp requestTimeout = 5;
    • getRequestTimeoutBuilder

      public Timestamp.Builder getRequestTimeoutBuilder()
       Client request timeout used to stop the request processing once the timeout is reached
       
      .google.protobuf.Timestamp requestTimeout = 5;
    • getRequestTimeoutOrBuilder

      public TimestampOrBuilder getRequestTimeoutOrBuilder()
       Client request timeout used to stop the request processing once the timeout is reached
       
      .google.protobuf.Timestamp requestTimeout = 5;
      Specified by:
      getRequestTimeoutOrBuilder in interface HeadersOrBuilder
    • setUnknownFields

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

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