Package com.google.api
Class BatchingDescriptorProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<BatchingDescriptorProto,BatchingDescriptorProto.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<BatchingDescriptorProto,BatchingDescriptorProto.Builder>
com.google.api.BatchingDescriptorProto.Builder
- All Implemented Interfaces:
BatchingDescriptorProtoOrBuilder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Cloneable
- Enclosing class:
BatchingDescriptorProto
public static final class BatchingDescriptorProto.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<BatchingDescriptorProto,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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
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.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.getDiscriminatorFields(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.A list of the fields in the request message.Optional.com.google.protobuf.ByteStringOptional.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.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getBatchedField
The repeated field in the request message to be aggregated by batching.
string batched_field = 1 [json_name = "batchedField"];- 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 [json_name = "batchedField"];- 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 [json_name = "batchedField"];- 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 [json_name = "batchedField"];- Returns:
- This builder for chaining.
-
setBatchedFieldBytes
The repeated field in the request message to be aggregated by batching.
string batched_field = 1 [json_name = "batchedField"];- Parameters:
value- The bytes for batchedField to set.- Returns:
- This builder for chaining.
-
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 [json_name = "discriminatorFields"];- 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 [json_name = "discriminatorFields"];- 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 [json_name = "discriminatorFields"];- 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 [json_name = "discriminatorFields"];- 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 [json_name = "discriminatorFields"];- 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 [json_name = "discriminatorFields"];- 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 [json_name = "discriminatorFields"];- 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 [json_name = "discriminatorFields"];- 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 [json_name = "discriminatorFields"];- 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 [json_name = "subresponseField"];- 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 [json_name = "subresponseField"];- 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 [json_name = "subresponseField"];- 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 [json_name = "subresponseField"];- 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 [json_name = "subresponseField"];- Parameters:
value- The bytes for subresponseField to set.- Returns:
- This builder for chaining.
-