Package com.google.api
Class BatchingSettingsProto
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.api.BatchingSettingsProto
- All Implemented Interfaces:
BatchingSettingsProtoOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class BatchingSettingsProto
extends com.google.protobuf.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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class`BatchingSettingsProto` specifies a set of batching thresholds, each of which acts as a trigger to send a batch of messages as a request.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic BatchingSettingsProtocom.google.protobuf.DurationThe duration after which a batch should be sent, starting from the addition of the first message to that batch.com.google.protobuf.DurationOrBuilderThe duration after which a batch should be sent, starting from the addition of the first message to that batch.static final com.google.protobuf.Descriptors.DescriptorintThe maximum number of elements collected in a batch that could be accepted by server.intThe number of elements of a field collected into a batch which, if exceeded, causes the batch to be sent.intThe maximum size of data allowed by flow control.intThe maximum number of elements allowed by flow control.The behavior to take when the flow control limit is exceeded.intThe behavior to take when the flow control limit is exceeded.com.google.protobuf.Parser<BatchingSettingsProto>intThe maximum size of the request that could be accepted by server.longThe aggregated size of the batched field which, if exceeded, causes the batch to be sent.intbooleanThe duration after which a batch should be sent, starting from the addition of the first message to that batch.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(BatchingSettingsProto prototype) protected BatchingSettingsProto.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static BatchingSettingsProtoparseDelimitedFrom(InputStream input) static BatchingSettingsProtoparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BatchingSettingsProtoparseFrom(byte[] data) static BatchingSettingsProtoparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BatchingSettingsProtoparseFrom(com.google.protobuf.ByteString data) static BatchingSettingsProtoparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BatchingSettingsProtoparseFrom(com.google.protobuf.CodedInputStream input) static BatchingSettingsProtoparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BatchingSettingsProtoparseFrom(InputStream input) static BatchingSettingsProtoparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BatchingSettingsProtoparseFrom(ByteBuffer data) static BatchingSettingsProtoparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<BatchingSettingsProto>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ELEMENT_COUNT_THRESHOLD_FIELD_NUMBER
public static final int ELEMENT_COUNT_THRESHOLD_FIELD_NUMBER- See Also:
-
REQUEST_BYTE_THRESHOLD_FIELD_NUMBER
public static final int REQUEST_BYTE_THRESHOLD_FIELD_NUMBER- See Also:
-
DELAY_THRESHOLD_FIELD_NUMBER
public static final int DELAY_THRESHOLD_FIELD_NUMBER- See Also:
-
ELEMENT_COUNT_LIMIT_FIELD_NUMBER
public static final int ELEMENT_COUNT_LIMIT_FIELD_NUMBER- See Also:
-
REQUEST_BYTE_LIMIT_FIELD_NUMBER
public static final int REQUEST_BYTE_LIMIT_FIELD_NUMBER- See Also:
-
FLOW_CONTROL_ELEMENT_LIMIT_FIELD_NUMBER
public static final int FLOW_CONTROL_ELEMENT_LIMIT_FIELD_NUMBER- See Also:
-
FLOW_CONTROL_BYTE_LIMIT_FIELD_NUMBER
public static final int FLOW_CONTROL_BYTE_LIMIT_FIELD_NUMBER- See Also:
-
FLOW_CONTROL_LIMIT_EXCEEDED_BEHAVIOR_FIELD_NUMBER
public static final int FLOW_CONTROL_LIMIT_EXCEEDED_BEHAVIOR_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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;- Specified by:
getElementCountThresholdin interfaceBatchingSettingsProtoOrBuilder- Returns:
- The elementCountThreshold.
-
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;- Specified by:
getRequestByteThresholdin interfaceBatchingSettingsProtoOrBuilder- Returns:
- The requestByteThreshold.
-
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;- Specified by:
hasDelayThresholdin interfaceBatchingSettingsProtoOrBuilder- 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;- Specified by:
getDelayThresholdin interfaceBatchingSettingsProtoOrBuilder- Returns:
- The delayThreshold.
-
getDelayThresholdOrBuilder
public com.google.protobuf.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;- Specified by:
getDelayThresholdOrBuilderin interfaceBatchingSettingsProtoOrBuilder
-
getElementCountLimit
public int getElementCountLimit()The maximum number of elements collected in a batch that could be accepted by server.
int32 element_count_limit = 4;- Specified by:
getElementCountLimitin interfaceBatchingSettingsProtoOrBuilder- Returns:
- The elementCountLimit.
-
getRequestByteLimit
public int getRequestByteLimit()The maximum size of the request that could be accepted by server.
int32 request_byte_limit = 5;- Specified by:
getRequestByteLimitin interfaceBatchingSettingsProtoOrBuilder- Returns:
- The requestByteLimit.
-
getFlowControlElementLimit
public int getFlowControlElementLimit()The maximum number of elements allowed by flow control.
int32 flow_control_element_limit = 6;- Specified by:
getFlowControlElementLimitin interfaceBatchingSettingsProtoOrBuilder- Returns:
- The flowControlElementLimit.
-
getFlowControlByteLimit
public int getFlowControlByteLimit()The maximum size of data allowed by flow control.
int32 flow_control_byte_limit = 7;- Specified by:
getFlowControlByteLimitin interfaceBatchingSettingsProtoOrBuilder- Returns:
- The flowControlByteLimit.
-
getFlowControlLimitExceededBehaviorValue
public int getFlowControlLimitExceededBehaviorValue()The behavior to take when the flow control limit is exceeded.
.google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8;- Specified by:
getFlowControlLimitExceededBehaviorValuein interfaceBatchingSettingsProtoOrBuilder- Returns:
- The enum numeric value on the wire for flowControlLimitExceededBehavior.
-
getFlowControlLimitExceededBehavior
The behavior to take when the flow control limit is exceeded.
.google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8;- Specified by:
getFlowControlLimitExceededBehaviorin interfaceBatchingSettingsProtoOrBuilder- Returns:
- The flowControlLimitExceededBehavior.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static BatchingSettingsProto parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BatchingSettingsProto parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BatchingSettingsProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BatchingSettingsProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BatchingSettingsProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BatchingSettingsProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static BatchingSettingsProto parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static BatchingSettingsProto parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static BatchingSettingsProto parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static BatchingSettingsProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected BatchingSettingsProto.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-