Class BatchingSettingsProto (2.72.0)

public final class BatchingSettingsProto extends GeneratedMessage 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

Static Fields

DELAY_THRESHOLD_FIELD_NUMBER

public static final int DELAY_THRESHOLD_FIELD_NUMBER
Field Value
Type Description
int

ELEMENT_COUNT_LIMIT_FIELD_NUMBER

public static final int ELEMENT_COUNT_LIMIT_FIELD_NUMBER
Field Value
Type Description
int

ELEMENT_COUNT_THRESHOLD_FIELD_NUMBER

public static final int ELEMENT_COUNT_THRESHOLD_FIELD_NUMBER
Field Value
Type Description
int

FLOW_CONTROL_BYTE_LIMIT_FIELD_NUMBER

public static final int FLOW_CONTROL_BYTE_LIMIT_FIELD_NUMBER
Field Value
Type Description
int

FLOW_CONTROL_ELEMENT_LIMIT_FIELD_NUMBER

public static final int FLOW_CONTROL_ELEMENT_LIMIT_FIELD_NUMBER
Field Value
Type Description
int

FLOW_CONTROL_LIMIT_EXCEEDED_BEHAVIOR_FIELD_NUMBER

public static final int FLOW_CONTROL_LIMIT_EXCEEDED_BEHAVIOR_FIELD_NUMBER
Field Value
Type Description
int

REQUEST_BYTE_LIMIT_FIELD_NUMBER

public static final int REQUEST_BYTE_LIMIT_FIELD_NUMBER
Field Value
Type Description
int

REQUEST_BYTE_THRESHOLD_FIELD_NUMBER

public static final int REQUEST_BYTE_THRESHOLD_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BatchingSettingsProto getDefaultInstance()
Returns
Type Description
BatchingSettingsProto

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static BatchingSettingsProto.Builder newBuilder()
Returns
Type Description
BatchingSettingsProto.Builder

newBuilder(BatchingSettingsProto prototype)

public static BatchingSettingsProto.Builder newBuilder(BatchingSettingsProto prototype)
Parameter
Name Description
prototype BatchingSettingsProto
Returns
Type Description
BatchingSettingsProto.Builder

parseDelimitedFrom(InputStream input)

public static BatchingSettingsProto parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BatchingSettingsProto
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchingSettingsProto parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchingSettingsProto
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static BatchingSettingsProto parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
BatchingSettingsProto
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BatchingSettingsProto parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchingSettingsProto
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BatchingSettingsProto parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
BatchingSettingsProto
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BatchingSettingsProto parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchingSettingsProto
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BatchingSettingsProto parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BatchingSettingsProto
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchingSettingsProto parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchingSettingsProto
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static BatchingSettingsProto parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BatchingSettingsProto
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchingSettingsProto parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchingSettingsProto
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static BatchingSettingsProto parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BatchingSettingsProto
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BatchingSettingsProto parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchingSettingsProto
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<BatchingSettingsProto> parser()
Returns
Type Description
Parser<BatchingSettingsProto>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public BatchingSettingsProto getDefaultInstanceForType()
Returns
Type Description
BatchingSettingsProto

getDelayThreshold()

public 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;

Returns
Type Description
Duration

The delayThreshold.

getDelayThresholdOrBuilder()

public DurationOrBuilder getDelayThresholdOrBuilder()

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;

Returns
Type Description
DurationOrBuilder

getElementCountLimit()

public int getElementCountLimit()

The maximum number of elements collected in a batch that could be accepted by server.

int32 element_count_limit = 4;

Returns
Type Description
int

The elementCountLimit.

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;

Returns
Type Description
int

The elementCountThreshold.

getFlowControlByteLimit()

public int getFlowControlByteLimit()

The maximum size of data allowed by flow control.

int32 flow_control_byte_limit = 7;

Returns
Type Description
int

The flowControlByteLimit.

getFlowControlElementLimit()

public int getFlowControlElementLimit()

The maximum number of elements allowed by flow control.

int32 flow_control_element_limit = 6;

Returns
Type Description
int

The flowControlElementLimit.

getFlowControlLimitExceededBehavior()

public FlowControlLimitExceededBehaviorProto getFlowControlLimitExceededBehavior()

The behavior to take when the flow control limit is exceeded.

.google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8;

Returns
Type Description
FlowControlLimitExceededBehaviorProto

The flowControlLimitExceededBehavior.

getFlowControlLimitExceededBehaviorValue()

public int getFlowControlLimitExceededBehaviorValue()

The behavior to take when the flow control limit is exceeded.

.google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8;

Returns
Type Description
int

The enum numeric value on the wire for flowControlLimitExceededBehavior.

getParserForType()

public Parser<BatchingSettingsProto> getParserForType()
Returns
Type Description
Parser<BatchingSettingsProto>
Overrides

getRequestByteLimit()

public int getRequestByteLimit()

The maximum size of the request that could be accepted by server.

int32 request_byte_limit = 5;

Returns
Type Description
int

The requestByteLimit.

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;

Returns
Type Description
long

The requestByteThreshold.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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;

Returns
Type Description
boolean

Whether the delayThreshold field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public BatchingSettingsProto.Builder newBuilderForType()
Returns
Type Description
BatchingSettingsProto.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected BatchingSettingsProto.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BatchingSettingsProto.Builder
Overrides

toBuilder()

public BatchingSettingsProto.Builder toBuilder()
Returns
Type Description
BatchingSettingsProto.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException