Class BatchingConfigProto (2.72.0)

public final class BatchingConfigProto extends GeneratedMessage implements BatchingConfigProtoOrBuilder

BatchingConfigProto defines the batching configuration for an API method.

Protobuf type google.api.BatchingConfigProto

Static Fields

BATCH_DESCRIPTOR_FIELD_NUMBER

public static final int BATCH_DESCRIPTOR_FIELD_NUMBER
Field Value
Type Description
int

THRESHOLDS_FIELD_NUMBER

public static final int THRESHOLDS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BatchingConfigProto getDefaultInstance()
Returns
Type Description
BatchingConfigProto

getDescriptor()

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

newBuilder()

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

newBuilder(BatchingConfigProto prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getBatchDescriptor()

public BatchingDescriptorProto getBatchDescriptor()

The request and response fields used in batching.

.google.api.BatchingDescriptorProto batch_descriptor = 2;

Returns
Type Description
BatchingDescriptorProto

The batchDescriptor.

getBatchDescriptorOrBuilder()

public BatchingDescriptorProtoOrBuilder getBatchDescriptorOrBuilder()

The request and response fields used in batching.

.google.api.BatchingDescriptorProto batch_descriptor = 2;

Returns
Type Description
BatchingDescriptorProtoOrBuilder

getDefaultInstanceForType()

public BatchingConfigProto getDefaultInstanceForType()
Returns
Type Description
BatchingConfigProto

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getThresholds()

public BatchingSettingsProto getThresholds()

The thresholds which trigger a batched request to be sent.

.google.api.BatchingSettingsProto thresholds = 1;

Returns
Type Description
BatchingSettingsProto

The thresholds.

getThresholdsOrBuilder()

public BatchingSettingsProtoOrBuilder getThresholdsOrBuilder()

The thresholds which trigger a batched request to be sent.

.google.api.BatchingSettingsProto thresholds = 1;

Returns
Type Description
BatchingSettingsProtoOrBuilder

hasBatchDescriptor()

public boolean hasBatchDescriptor()

The request and response fields used in batching.

.google.api.BatchingDescriptorProto batch_descriptor = 2;

Returns
Type Description
boolean

Whether the batchDescriptor field is set.

hasThresholds()

public boolean hasThresholds()

The thresholds which trigger a batched request to be sent.

.google.api.BatchingSettingsProto thresholds = 1;

Returns
Type Description
boolean

Whether the thresholds 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 BatchingConfigProto.Builder newBuilderForType()
Returns
Type Description
BatchingConfigProto.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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