Package com.google.api
Class BatchingDescriptorProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BatchingDescriptorProto.Builder>
com.google.api.BatchingDescriptorProto.Builder
- All Implemented Interfaces:
BatchingDescriptorProtoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BatchingDescriptorProto
public static final class BatchingDescriptorProto.Builder
extends com.google.protobuf.GeneratedMessage.Builder<BatchingDescriptorProto.Builder>
implements BatchingDescriptorProtoOrBuilder
`BatchingDescriptorProto` specifies the fields of the request message to be used for batching, and, optionally, the fields of the response message to be used for demultiplexing.Protobuf type
google.api.BatchingDescriptorProto-
Method Summary
Modifier and TypeMethodDescriptionaddAllDiscriminatorFields(Iterable<String> values) A list of the fields in the request message.addDiscriminatorFields(String value) A list of the fields in the request message.addDiscriminatorFieldsBytes(com.google.protobuf.ByteString value) A list of the fields in the request message.build()clear()The repeated field in the request message to be aggregated by batching.A list of the fields in the request message.Optional.The repeated field in the request message to be aggregated by batching.com.google.protobuf.ByteStringThe repeated field in the request message to be aggregated by batching.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDiscriminatorFields(int index) A list of the fields in the request message.com.google.protobuf.ByteStringgetDiscriminatorFieldsBytes(int index) A list of the fields in the request message.intA list of the fields in the request message.com.google.protobuf.ProtocolStringListA list of the fields in the request message.Optional.com.google.protobuf.ByteStringOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(BatchingDescriptorProto other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setBatchedField(String value) The repeated field in the request message to be aggregated by batching.setBatchedFieldBytes(com.google.protobuf.ByteString value) The repeated field in the request message to be aggregated by batching.setDiscriminatorFields(int index, String value) A list of the fields in the request message.setSubresponseField(String value) Optional.setSubresponseFieldBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<BatchingDescriptorProto.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<BatchingDescriptorProto.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<BatchingDescriptorProto.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchingDescriptorProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BatchingDescriptorProto.Builder>
-
mergeFrom
public BatchingDescriptorProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchingDescriptorProto.Builder>- Throws:
IOException
-
getBatchedField
The repeated field in the request message to be aggregated by batching.
string batched_field = 1;- Specified by:
getBatchedFieldin interfaceBatchingDescriptorProtoOrBuilder- Returns:
- The batchedField.
-
getBatchedFieldBytes
public com.google.protobuf.ByteString getBatchedFieldBytes()The repeated field in the request message to be aggregated by batching.
string batched_field = 1;- Specified by:
getBatchedFieldBytesin interfaceBatchingDescriptorProtoOrBuilder- Returns:
- The bytes for batchedField.
-
setBatchedField
The repeated field in the request message to be aggregated by batching.
string batched_field = 1;- Parameters:
value- The batchedField to set.- Returns:
- This builder for chaining.
-
clearBatchedField
The repeated field in the request message to be aggregated by batching.
string batched_field = 1;- Returns:
- This builder for chaining.
-
setBatchedFieldBytes
The repeated field in the request message to be aggregated by batching.
string batched_field = 1;- Parameters:
value- The bytes for batchedField to set.- Returns:
- This builder for chaining.
-
getDiscriminatorFieldsList
public com.google.protobuf.ProtocolStringList getDiscriminatorFieldsList()A list of the fields in the request message. Two requests will be batched together only if the values of every field specified in `request_discriminator_fields` is equal between the two requests.
repeated string discriminator_fields = 2;- Specified by:
getDiscriminatorFieldsListin interfaceBatchingDescriptorProtoOrBuilder- Returns:
- A list containing the discriminatorFields.
-
getDiscriminatorFieldsCount
public int getDiscriminatorFieldsCount()A list of the fields in the request message. Two requests will be batched together only if the values of every field specified in `request_discriminator_fields` is equal between the two requests.
repeated string discriminator_fields = 2;- Specified by:
getDiscriminatorFieldsCountin interfaceBatchingDescriptorProtoOrBuilder- Returns:
- The count of discriminatorFields.
-
getDiscriminatorFields
A list of the fields in the request message. Two requests will be batched together only if the values of every field specified in `request_discriminator_fields` is equal between the two requests.
repeated string discriminator_fields = 2;- Specified by:
getDiscriminatorFieldsin interfaceBatchingDescriptorProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The discriminatorFields at the given index.
-
getDiscriminatorFieldsBytes
public com.google.protobuf.ByteString getDiscriminatorFieldsBytes(int index) A list of the fields in the request message. Two requests will be batched together only if the values of every field specified in `request_discriminator_fields` is equal between the two requests.
repeated string discriminator_fields = 2;- Specified by:
getDiscriminatorFieldsBytesin interfaceBatchingDescriptorProtoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the discriminatorFields at the given index.
-
setDiscriminatorFields
A list of the fields in the request message. Two requests will be batched together only if the values of every field specified in `request_discriminator_fields` is equal between the two requests.
repeated string discriminator_fields = 2;- Parameters:
index- The index to set the value at.value- The discriminatorFields to set.- Returns:
- This builder for chaining.
-
addDiscriminatorFields
A list of the fields in the request message. Two requests will be batched together only if the values of every field specified in `request_discriminator_fields` is equal between the two requests.
repeated string discriminator_fields = 2;- Parameters:
value- The discriminatorFields to add.- Returns:
- This builder for chaining.
-
addAllDiscriminatorFields
A list of the fields in the request message. Two requests will be batched together only if the values of every field specified in `request_discriminator_fields` is equal between the two requests.
repeated string discriminator_fields = 2;- Parameters:
values- The discriminatorFields to add.- Returns:
- This builder for chaining.
-
clearDiscriminatorFields
A list of the fields in the request message. Two requests will be batched together only if the values of every field specified in `request_discriminator_fields` is equal between the two requests.
repeated string discriminator_fields = 2;- Returns:
- This builder for chaining.
-
addDiscriminatorFieldsBytes
public BatchingDescriptorProto.Builder addDiscriminatorFieldsBytes(com.google.protobuf.ByteString value) A list of the fields in the request message. Two requests will be batched together only if the values of every field specified in `request_discriminator_fields` is equal between the two requests.
repeated string discriminator_fields = 2;- Parameters:
value- The bytes of the discriminatorFields to add.- Returns:
- This builder for chaining.
-
getSubresponseField
Optional. When present, indicates the field in the response message to be used to demultiplex the response into multiple response messages, in correspondence with the multiple request messages originally batched together.
string subresponse_field = 3;- Specified by:
getSubresponseFieldin interfaceBatchingDescriptorProtoOrBuilder- Returns:
- The subresponseField.
-
getSubresponseFieldBytes
public com.google.protobuf.ByteString getSubresponseFieldBytes()Optional. When present, indicates the field in the response message to be used to demultiplex the response into multiple response messages, in correspondence with the multiple request messages originally batched together.
string subresponse_field = 3;- Specified by:
getSubresponseFieldBytesin interfaceBatchingDescriptorProtoOrBuilder- Returns:
- The bytes for subresponseField.
-
setSubresponseField
Optional. When present, indicates the field in the response message to be used to demultiplex the response into multiple response messages, in correspondence with the multiple request messages originally batched together.
string subresponse_field = 3;- Parameters:
value- The subresponseField to set.- Returns:
- This builder for chaining.
-
clearSubresponseField
Optional. When present, indicates the field in the response message to be used to demultiplex the response into multiple response messages, in correspondence with the multiple request messages originally batched together.
string subresponse_field = 3;- Returns:
- This builder for chaining.
-
setSubresponseFieldBytes
public BatchingDescriptorProto.Builder setSubresponseFieldBytes(com.google.protobuf.ByteString value) Optional. When present, indicates the field in the response message to be used to demultiplex the response into multiple response messages, in correspondence with the multiple request messages originally batched together.
string subresponse_field = 3;- Parameters:
value- The bytes for subresponseField to set.- Returns:
- This builder for chaining.
-