Class BatchingDescriptorProto.Builder

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

public static final class BatchingDescriptorProto.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<BatchingDescriptorProto,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

    • getBatchedField

      public String getBatchedField()
       The repeated field in the request message to be aggregated by batching.
       
      string batched_field = 1 [json_name = "batchedField"];
      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 [json_name = "batchedField"];
      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 [json_name = "batchedField"];
      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 [json_name = "batchedField"];
      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 [json_name = "batchedField"];
      Parameters:
      value - The bytes for batchedField to set.
      Returns:
      This builder for chaining.
    • getDiscriminatorFieldsList

      public List<String> 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 [json_name = "discriminatorFields"];
      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 [json_name = "discriminatorFields"];
      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 [json_name = "discriminatorFields"];
      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 [json_name = "discriminatorFields"];
      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 [json_name = "discriminatorFields"];
      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 [json_name = "discriminatorFields"];
      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 [json_name = "discriminatorFields"];
      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 [json_name = "discriminatorFields"];
      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 [json_name = "discriminatorFields"];
      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 [json_name = "subresponseField"];
      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 [json_name = "subresponseField"];
      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 [json_name = "subresponseField"];
      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 [json_name = "subresponseField"];
      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 [json_name = "subresponseField"];
      Parameters:
      value - The bytes for subresponseField to set.
      Returns:
      This builder for chaining.