Class BatchingConfigProto.Builder

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

public static final class BatchingConfigProto.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<BatchingConfigProto,BatchingConfigProto.Builder> implements BatchingConfigProtoOrBuilder
 `BatchingConfigProto` defines the batching configuration for an API method.
 
Protobuf type google.api.BatchingConfigProto
  • Method Details

    • hasThresholds

      public boolean hasThresholds()
       The thresholds which trigger a batched request to be sent.
       
      .google.api.BatchingSettingsProto thresholds = 1 [json_name = "thresholds"];
      Specified by:
      hasThresholds in interface BatchingConfigProtoOrBuilder
      Returns:
      Whether the thresholds field is set.
    • getThresholds

      public BatchingSettingsProto getThresholds()
       The thresholds which trigger a batched request to be sent.
       
      .google.api.BatchingSettingsProto thresholds = 1 [json_name = "thresholds"];
      Specified by:
      getThresholds in interface BatchingConfigProtoOrBuilder
      Returns:
      The thresholds.
    • setThresholds

      public BatchingConfigProto.Builder setThresholds(BatchingSettingsProto value)
       The thresholds which trigger a batched request to be sent.
       
      .google.api.BatchingSettingsProto thresholds = 1 [json_name = "thresholds"];
    • setThresholds

      public BatchingConfigProto.Builder setThresholds(BatchingSettingsProto.Builder builderForValue)
       The thresholds which trigger a batched request to be sent.
       
      .google.api.BatchingSettingsProto thresholds = 1 [json_name = "thresholds"];
    • mergeThresholds

      public BatchingConfigProto.Builder mergeThresholds(BatchingSettingsProto value)
       The thresholds which trigger a batched request to be sent.
       
      .google.api.BatchingSettingsProto thresholds = 1 [json_name = "thresholds"];
    • clearThresholds

      public BatchingConfigProto.Builder clearThresholds()
       The thresholds which trigger a batched request to be sent.
       
      .google.api.BatchingSettingsProto thresholds = 1 [json_name = "thresholds"];
    • hasBatchDescriptor

      public boolean hasBatchDescriptor()
       The request and response fields used in batching.
       
      .google.api.BatchingDescriptorProto batch_descriptor = 2 [json_name = "batchDescriptor"];
      Specified by:
      hasBatchDescriptor in interface BatchingConfigProtoOrBuilder
      Returns:
      Whether the batchDescriptor field is set.
    • getBatchDescriptor

      public BatchingDescriptorProto getBatchDescriptor()
       The request and response fields used in batching.
       
      .google.api.BatchingDescriptorProto batch_descriptor = 2 [json_name = "batchDescriptor"];
      Specified by:
      getBatchDescriptor in interface BatchingConfigProtoOrBuilder
      Returns:
      The batchDescriptor.
    • setBatchDescriptor

      public BatchingConfigProto.Builder setBatchDescriptor(BatchingDescriptorProto value)
       The request and response fields used in batching.
       
      .google.api.BatchingDescriptorProto batch_descriptor = 2 [json_name = "batchDescriptor"];
    • setBatchDescriptor

      public BatchingConfigProto.Builder setBatchDescriptor(BatchingDescriptorProto.Builder builderForValue)
       The request and response fields used in batching.
       
      .google.api.BatchingDescriptorProto batch_descriptor = 2 [json_name = "batchDescriptor"];
    • mergeBatchDescriptor

      public BatchingConfigProto.Builder mergeBatchDescriptor(BatchingDescriptorProto value)
       The request and response fields used in batching.
       
      .google.api.BatchingDescriptorProto batch_descriptor = 2 [json_name = "batchDescriptor"];
    • clearBatchDescriptor

      public BatchingConfigProto.Builder clearBatchDescriptor()
       The request and response fields used in batching.
       
      .google.api.BatchingDescriptorProto batch_descriptor = 2 [json_name = "batchDescriptor"];