Class BatchingDescriptorProto.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BatchingDescriptorProto.Builder>
com.google.api.BatchingDescriptorProto.Builder
All Implemented Interfaces:
BatchingDescriptorProtoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BatchingDescriptorProto

public static final class BatchingDescriptorProto.Builder extends com.google.protobuf.GeneratedMessage.Builder<BatchingDescriptorProto.Builder> implements BatchingDescriptorProtoOrBuilder
 `BatchingDescriptorProto` specifies the fields of the request message to be
 used for batching, and, optionally, the fields of the response message to be
 used for demultiplexing.
 
Protobuf type google.api.BatchingDescriptorProto
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<BatchingDescriptorProto.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.GeneratedMessage.Builder<BatchingDescriptorProto.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.GeneratedMessage.Builder<BatchingDescriptorProto.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public BatchingDescriptorProto.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<BatchingDescriptorProto.Builder>
      Throws:
      IOException
    • getBatchedField

      public String getBatchedField()
       The repeated field in the request message to be aggregated by batching.
       
      string batched_field = 1;
      Specified by:
      getBatchedField in interface BatchingDescriptorProtoOrBuilder
      Returns:
      The batchedField.
    • getBatchedFieldBytes

      public com.google.protobuf.ByteString getBatchedFieldBytes()
       The repeated field in the request message to be aggregated by batching.
       
      string batched_field = 1;
      Specified by:
      getBatchedFieldBytes in interface BatchingDescriptorProtoOrBuilder
      Returns:
      The bytes for batchedField.
    • setBatchedField

      public BatchingDescriptorProto.Builder setBatchedField(String value)
       The repeated field in the request message to be aggregated by batching.
       
      string batched_field = 1;
      Parameters:
      value - The batchedField to set.
      Returns:
      This builder for chaining.
    • clearBatchedField

      public BatchingDescriptorProto.Builder clearBatchedField()
       The repeated field in the request message to be aggregated by batching.
       
      string batched_field = 1;
      Returns:
      This builder for chaining.
    • setBatchedFieldBytes

      public BatchingDescriptorProto.Builder setBatchedFieldBytes(com.google.protobuf.ByteString value)
       The repeated field in the request message to be aggregated by batching.
       
      string batched_field = 1;
      Parameters:
      value - The bytes for batchedField to set.
      Returns:
      This builder for chaining.
    • getDiscriminatorFieldsList

      public com.google.protobuf.ProtocolStringList getDiscriminatorFieldsList()
       A list of the fields in the request message. Two requests will be batched
       together only if the values of every field specified in
       `request_discriminator_fields` is equal between the two requests.
       
      repeated string discriminator_fields = 2;
      Specified by:
      getDiscriminatorFieldsList in interface BatchingDescriptorProtoOrBuilder
      Returns:
      A list containing the discriminatorFields.
    • getDiscriminatorFieldsCount

      public int getDiscriminatorFieldsCount()
       A list of the fields in the request message. Two requests will be batched
       together only if the values of every field specified in
       `request_discriminator_fields` is equal between the two requests.
       
      repeated string discriminator_fields = 2;
      Specified by:
      getDiscriminatorFieldsCount in interface BatchingDescriptorProtoOrBuilder
      Returns:
      The count of discriminatorFields.
    • getDiscriminatorFields

      public String getDiscriminatorFields(int index)
       A list of the fields in the request message. Two requests will be batched
       together only if the values of every field specified in
       `request_discriminator_fields` is equal between the two requests.
       
      repeated string discriminator_fields = 2;
      Specified by:
      getDiscriminatorFields in interface BatchingDescriptorProtoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The discriminatorFields at the given index.
    • getDiscriminatorFieldsBytes

      public com.google.protobuf.ByteString getDiscriminatorFieldsBytes(int index)
       A list of the fields in the request message. Two requests will be batched
       together only if the values of every field specified in
       `request_discriminator_fields` is equal between the two requests.
       
      repeated string discriminator_fields = 2;
      Specified by:
      getDiscriminatorFieldsBytes in interface BatchingDescriptorProtoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the discriminatorFields at the given index.
    • setDiscriminatorFields

      public BatchingDescriptorProto.Builder setDiscriminatorFields(int index, String value)
       A list of the fields in the request message. Two requests will be batched
       together only if the values of every field specified in
       `request_discriminator_fields` is equal between the two requests.
       
      repeated string discriminator_fields = 2;
      Parameters:
      index - The index to set the value at.
      value - The discriminatorFields to set.
      Returns:
      This builder for chaining.
    • addDiscriminatorFields

      public BatchingDescriptorProto.Builder addDiscriminatorFields(String value)
       A list of the fields in the request message. Two requests will be batched
       together only if the values of every field specified in
       `request_discriminator_fields` is equal between the two requests.
       
      repeated string discriminator_fields = 2;
      Parameters:
      value - The discriminatorFields to add.
      Returns:
      This builder for chaining.
    • addAllDiscriminatorFields

      public BatchingDescriptorProto.Builder addAllDiscriminatorFields(Iterable<String> values)
       A list of the fields in the request message. Two requests will be batched
       together only if the values of every field specified in
       `request_discriminator_fields` is equal between the two requests.
       
      repeated string discriminator_fields = 2;
      Parameters:
      values - The discriminatorFields to add.
      Returns:
      This builder for chaining.
    • clearDiscriminatorFields

      public BatchingDescriptorProto.Builder clearDiscriminatorFields()
       A list of the fields in the request message. Two requests will be batched
       together only if the values of every field specified in
       `request_discriminator_fields` is equal between the two requests.
       
      repeated string discriminator_fields = 2;
      Returns:
      This builder for chaining.
    • addDiscriminatorFieldsBytes

      public BatchingDescriptorProto.Builder addDiscriminatorFieldsBytes(com.google.protobuf.ByteString value)
       A list of the fields in the request message. Two requests will be batched
       together only if the values of every field specified in
       `request_discriminator_fields` is equal between the two requests.
       
      repeated string discriminator_fields = 2;
      Parameters:
      value - The bytes of the discriminatorFields to add.
      Returns:
      This builder for chaining.
    • getSubresponseField

      public String getSubresponseField()
       Optional. When present, indicates the field in the response message to be
       used to demultiplex the response into multiple response messages, in
       correspondence with the multiple request messages originally batched
       together.
       
      string subresponse_field = 3;
      Specified by:
      getSubresponseField in interface BatchingDescriptorProtoOrBuilder
      Returns:
      The subresponseField.
    • getSubresponseFieldBytes

      public com.google.protobuf.ByteString getSubresponseFieldBytes()
       Optional. When present, indicates the field in the response message to be
       used to demultiplex the response into multiple response messages, in
       correspondence with the multiple request messages originally batched
       together.
       
      string subresponse_field = 3;
      Specified by:
      getSubresponseFieldBytes in interface BatchingDescriptorProtoOrBuilder
      Returns:
      The bytes for subresponseField.
    • setSubresponseField

      public BatchingDescriptorProto.Builder setSubresponseField(String value)
       Optional. When present, indicates the field in the response message to be
       used to demultiplex the response into multiple response messages, in
       correspondence with the multiple request messages originally batched
       together.
       
      string subresponse_field = 3;
      Parameters:
      value - The subresponseField to set.
      Returns:
      This builder for chaining.
    • clearSubresponseField

      public BatchingDescriptorProto.Builder clearSubresponseField()
       Optional. When present, indicates the field in the response message to be
       used to demultiplex the response into multiple response messages, in
       correspondence with the multiple request messages originally batched
       together.
       
      string subresponse_field = 3;
      Returns:
      This builder for chaining.
    • setSubresponseFieldBytes

      public BatchingDescriptorProto.Builder setSubresponseFieldBytes(com.google.protobuf.ByteString value)
       Optional. When present, indicates the field in the response message to be
       used to demultiplex the response into multiple response messages, in
       correspondence with the multiple request messages originally batched
       together.
       
      string subresponse_field = 3;
      Parameters:
      value - The bytes for subresponseField to set.
      Returns:
      This builder for chaining.