Class BatchingSettingsProto.Builder

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

public static final class BatchingSettingsProto.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<BatchingSettingsProto,BatchingSettingsProto.Builder> implements BatchingSettingsProtoOrBuilder
 `BatchingSettingsProto` specifies a set of batching thresholds, each of
 which acts as a trigger to send a batch of messages as a request. At least
 one threshold must be positive nonzero.
 
Protobuf type google.api.BatchingSettingsProto
  • Method Details

    • getElementCountThreshold

      public int getElementCountThreshold()
       The number of elements of a field collected into a batch which, if
       exceeded, causes the batch to be sent.
       
      int32 element_count_threshold = 1 [json_name = "elementCountThreshold"];
      Specified by:
      getElementCountThreshold in interface BatchingSettingsProtoOrBuilder
      Returns:
      The elementCountThreshold.
    • setElementCountThreshold

      public BatchingSettingsProto.Builder setElementCountThreshold(int value)
       The number of elements of a field collected into a batch which, if
       exceeded, causes the batch to be sent.
       
      int32 element_count_threshold = 1 [json_name = "elementCountThreshold"];
      Parameters:
      value - The elementCountThreshold to set.
      Returns:
      This builder for chaining.
    • clearElementCountThreshold

      public BatchingSettingsProto.Builder clearElementCountThreshold()
       The number of elements of a field collected into a batch which, if
       exceeded, causes the batch to be sent.
       
      int32 element_count_threshold = 1 [json_name = "elementCountThreshold"];
      Returns:
      This builder for chaining.
    • getRequestByteThreshold

      public long getRequestByteThreshold()
       The aggregated size of the batched field which, if exceeded, causes the
       batch to be sent. This size is computed by aggregating the sizes of the
       request field to be batched, not of the entire request message.
       
      int64 request_byte_threshold = 2 [json_name = "requestByteThreshold"];
      Specified by:
      getRequestByteThreshold in interface BatchingSettingsProtoOrBuilder
      Returns:
      The requestByteThreshold.
    • setRequestByteThreshold

      public BatchingSettingsProto.Builder setRequestByteThreshold(long value)
       The aggregated size of the batched field which, if exceeded, causes the
       batch to be sent. This size is computed by aggregating the sizes of the
       request field to be batched, not of the entire request message.
       
      int64 request_byte_threshold = 2 [json_name = "requestByteThreshold"];
      Parameters:
      value - The requestByteThreshold to set.
      Returns:
      This builder for chaining.
    • clearRequestByteThreshold

      public BatchingSettingsProto.Builder clearRequestByteThreshold()
       The aggregated size of the batched field which, if exceeded, causes the
       batch to be sent. This size is computed by aggregating the sizes of the
       request field to be batched, not of the entire request message.
       
      int64 request_byte_threshold = 2 [json_name = "requestByteThreshold"];
      Returns:
      This builder for chaining.
    • hasDelayThreshold

      public boolean hasDelayThreshold()
       The duration after which a batch should be sent, starting from the addition
       of the first message to that batch.
       
      .google.protobuf.Duration delay_threshold = 3 [json_name = "delayThreshold"];
      Specified by:
      hasDelayThreshold in interface BatchingSettingsProtoOrBuilder
      Returns:
      Whether the delayThreshold field is set.
    • getDelayThreshold

      public com.google.protobuf.Duration getDelayThreshold()
       The duration after which a batch should be sent, starting from the addition
       of the first message to that batch.
       
      .google.protobuf.Duration delay_threshold = 3 [json_name = "delayThreshold"];
      Specified by:
      getDelayThreshold in interface BatchingSettingsProtoOrBuilder
      Returns:
      The delayThreshold.
    • setDelayThreshold

      public BatchingSettingsProto.Builder setDelayThreshold(com.google.protobuf.Duration value)
       The duration after which a batch should be sent, starting from the addition
       of the first message to that batch.
       
      .google.protobuf.Duration delay_threshold = 3 [json_name = "delayThreshold"];
    • setDelayThreshold

      public BatchingSettingsProto.Builder setDelayThreshold(com.google.protobuf.Duration.Builder builderForValue)
       The duration after which a batch should be sent, starting from the addition
       of the first message to that batch.
       
      .google.protobuf.Duration delay_threshold = 3 [json_name = "delayThreshold"];
    • mergeDelayThreshold

      public BatchingSettingsProto.Builder mergeDelayThreshold(com.google.protobuf.Duration value)
       The duration after which a batch should be sent, starting from the addition
       of the first message to that batch.
       
      .google.protobuf.Duration delay_threshold = 3 [json_name = "delayThreshold"];
    • clearDelayThreshold

      public BatchingSettingsProto.Builder clearDelayThreshold()
       The duration after which a batch should be sent, starting from the addition
       of the first message to that batch.
       
      .google.protobuf.Duration delay_threshold = 3 [json_name = "delayThreshold"];
    • getElementCountLimit

      public int getElementCountLimit()
       The maximum number of elements collected in a batch that could be accepted
       by server.
       
      int32 element_count_limit = 4 [json_name = "elementCountLimit"];
      Specified by:
      getElementCountLimit in interface BatchingSettingsProtoOrBuilder
      Returns:
      The elementCountLimit.
    • setElementCountLimit

      public BatchingSettingsProto.Builder setElementCountLimit(int value)
       The maximum number of elements collected in a batch that could be accepted
       by server.
       
      int32 element_count_limit = 4 [json_name = "elementCountLimit"];
      Parameters:
      value - The elementCountLimit to set.
      Returns:
      This builder for chaining.
    • clearElementCountLimit

      public BatchingSettingsProto.Builder clearElementCountLimit()
       The maximum number of elements collected in a batch that could be accepted
       by server.
       
      int32 element_count_limit = 4 [json_name = "elementCountLimit"];
      Returns:
      This builder for chaining.
    • getRequestByteLimit

      public int getRequestByteLimit()
       The maximum size of the request that could be accepted by server.
       
      int32 request_byte_limit = 5 [json_name = "requestByteLimit"];
      Specified by:
      getRequestByteLimit in interface BatchingSettingsProtoOrBuilder
      Returns:
      The requestByteLimit.
    • setRequestByteLimit

      public BatchingSettingsProto.Builder setRequestByteLimit(int value)
       The maximum size of the request that could be accepted by server.
       
      int32 request_byte_limit = 5 [json_name = "requestByteLimit"];
      Parameters:
      value - The requestByteLimit to set.
      Returns:
      This builder for chaining.
    • clearRequestByteLimit

      public BatchingSettingsProto.Builder clearRequestByteLimit()
       The maximum size of the request that could be accepted by server.
       
      int32 request_byte_limit = 5 [json_name = "requestByteLimit"];
      Returns:
      This builder for chaining.
    • getFlowControlElementLimit

      public int getFlowControlElementLimit()
       The maximum number of elements allowed by flow control.
       
      int32 flow_control_element_limit = 6 [json_name = "flowControlElementLimit"];
      Specified by:
      getFlowControlElementLimit in interface BatchingSettingsProtoOrBuilder
      Returns:
      The flowControlElementLimit.
    • setFlowControlElementLimit

      public BatchingSettingsProto.Builder setFlowControlElementLimit(int value)
       The maximum number of elements allowed by flow control.
       
      int32 flow_control_element_limit = 6 [json_name = "flowControlElementLimit"];
      Parameters:
      value - The flowControlElementLimit to set.
      Returns:
      This builder for chaining.
    • clearFlowControlElementLimit

      public BatchingSettingsProto.Builder clearFlowControlElementLimit()
       The maximum number of elements allowed by flow control.
       
      int32 flow_control_element_limit = 6 [json_name = "flowControlElementLimit"];
      Returns:
      This builder for chaining.
    • getFlowControlByteLimit

      public int getFlowControlByteLimit()
       The maximum size of data allowed by flow control.
       
      int32 flow_control_byte_limit = 7 [json_name = "flowControlByteLimit"];
      Specified by:
      getFlowControlByteLimit in interface BatchingSettingsProtoOrBuilder
      Returns:
      The flowControlByteLimit.
    • setFlowControlByteLimit

      public BatchingSettingsProto.Builder setFlowControlByteLimit(int value)
       The maximum size of data allowed by flow control.
       
      int32 flow_control_byte_limit = 7 [json_name = "flowControlByteLimit"];
      Parameters:
      value - The flowControlByteLimit to set.
      Returns:
      This builder for chaining.
    • clearFlowControlByteLimit

      public BatchingSettingsProto.Builder clearFlowControlByteLimit()
       The maximum size of data allowed by flow control.
       
      int32 flow_control_byte_limit = 7 [json_name = "flowControlByteLimit"];
      Returns:
      This builder for chaining.
    • getFlowControlLimitExceededBehaviorValue

      public int getFlowControlLimitExceededBehaviorValue()
       The behavior to take when the flow control limit is exceeded.
       
      .google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8 [json_name = "flowControlLimitExceededBehavior"];
      Specified by:
      getFlowControlLimitExceededBehaviorValue in interface BatchingSettingsProtoOrBuilder
      Returns:
      The enum numeric value on the wire for flowControlLimitExceededBehavior.
    • setFlowControlLimitExceededBehaviorValue

      public BatchingSettingsProto.Builder setFlowControlLimitExceededBehaviorValue(int value)
       The behavior to take when the flow control limit is exceeded.
       
      .google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8 [json_name = "flowControlLimitExceededBehavior"];
      Parameters:
      value - The flowControlLimitExceededBehavior to set.
      Returns:
      This builder for chaining.
    • getFlowControlLimitExceededBehavior

      public FlowControlLimitExceededBehaviorProto getFlowControlLimitExceededBehavior()
       The behavior to take when the flow control limit is exceeded.
       
      .google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8 [json_name = "flowControlLimitExceededBehavior"];
      Specified by:
      getFlowControlLimitExceededBehavior in interface BatchingSettingsProtoOrBuilder
      Returns:
      The flowControlLimitExceededBehavior.
    • setFlowControlLimitExceededBehavior

      public BatchingSettingsProto.Builder setFlowControlLimitExceededBehavior(FlowControlLimitExceededBehaviorProto value)
       The behavior to take when the flow control limit is exceeded.
       
      .google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8 [json_name = "flowControlLimitExceededBehavior"];
      Parameters:
      value - The enum numeric value on the wire for flowControlLimitExceededBehavior to set.
      Returns:
      This builder for chaining.
      Throws:
      IllegalArgumentException - if UNRECOGNIZED is provided.
    • clearFlowControlLimitExceededBehavior

      public BatchingSettingsProto.Builder clearFlowControlLimitExceededBehavior()
       The behavior to take when the flow control limit is exceeded.
       
      .google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8 [json_name = "flowControlLimitExceededBehavior"];
      Returns:
      This builder for chaining.