Package com.google.api.servicecontrol.v1
Class AllocateQuotaRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AllocateQuotaRequest.Builder>
-
- com.google.api.servicecontrol.v1.AllocateQuotaRequest.Builder
-
- All Implemented Interfaces:
AllocateQuotaRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- AllocateQuotaRequest
public static final class AllocateQuotaRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AllocateQuotaRequest.Builder> implements AllocateQuotaRequestOrBuilder
Request message for the AllocateQuota method.
Protobuf typegoogle.api.servicecontrol.v1.AllocateQuotaRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AllocateQuotaRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AllocateQuotaRequest
build()
AllocateQuotaRequest
buildPartial()
AllocateQuotaRequest.Builder
clear()
AllocateQuotaRequest.Builder
clearAllocateOperation()
Operation that describes the quota allocation.AllocateQuotaRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
AllocateQuotaRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
AllocateQuotaRequest.Builder
clearServiceConfigId()
Specifies which version of service configuration should be used to process the request.AllocateQuotaRequest.Builder
clearServiceName()
Name of the service as specified in the service configuration.AllocateQuotaRequest.Builder
clone()
QuotaOperation
getAllocateOperation()
Operation that describes the quota allocation.QuotaOperation.Builder
getAllocateOperationBuilder()
Operation that describes the quota allocation.QuotaOperationOrBuilder
getAllocateOperationOrBuilder()
Operation that describes the quota allocation.AllocateQuotaRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getServiceConfigId()
Specifies which version of service configuration should be used to process the request.com.google.protobuf.ByteString
getServiceConfigIdBytes()
Specifies which version of service configuration should be used to process the request.String
getServiceName()
Name of the service as specified in the service configuration.com.google.protobuf.ByteString
getServiceNameBytes()
Name of the service as specified in the service configuration.boolean
hasAllocateOperation()
Operation that describes the quota allocation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
AllocateQuotaRequest.Builder
mergeAllocateOperation(QuotaOperation value)
Operation that describes the quota allocation.AllocateQuotaRequest.Builder
mergeFrom(AllocateQuotaRequest other)
AllocateQuotaRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AllocateQuotaRequest.Builder
mergeFrom(com.google.protobuf.Message other)
AllocateQuotaRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AllocateQuotaRequest.Builder
setAllocateOperation(QuotaOperation value)
Operation that describes the quota allocation.AllocateQuotaRequest.Builder
setAllocateOperation(QuotaOperation.Builder builderForValue)
Operation that describes the quota allocation.AllocateQuotaRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AllocateQuotaRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
AllocateQuotaRequest.Builder
setServiceConfigId(String value)
Specifies which version of service configuration should be used to process the request.AllocateQuotaRequest.Builder
setServiceConfigIdBytes(com.google.protobuf.ByteString value)
Specifies which version of service configuration should be used to process the request.AllocateQuotaRequest.Builder
setServiceName(String value)
Name of the service as specified in the service configuration.AllocateQuotaRequest.Builder
setServiceNameBytes(com.google.protobuf.ByteString value)
Name of the service as specified in the service configuration.AllocateQuotaRequest.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocateQuotaRequest.Builder>
-
clear
public AllocateQuotaRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocateQuotaRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocateQuotaRequest.Builder>
-
getDefaultInstanceForType
public AllocateQuotaRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AllocateQuotaRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AllocateQuotaRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AllocateQuotaRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocateQuotaRequest.Builder>
-
setField
public AllocateQuotaRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocateQuotaRequest.Builder>
-
clearField
public AllocateQuotaRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocateQuotaRequest.Builder>
-
clearOneof
public AllocateQuotaRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocateQuotaRequest.Builder>
-
setRepeatedField
public AllocateQuotaRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocateQuotaRequest.Builder>
-
addRepeatedField
public AllocateQuotaRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocateQuotaRequest.Builder>
-
mergeFrom
public AllocateQuotaRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AllocateQuotaRequest.Builder>
-
mergeFrom
public AllocateQuotaRequest.Builder mergeFrom(AllocateQuotaRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocateQuotaRequest.Builder>
-
mergeFrom
public AllocateQuotaRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AllocateQuotaRequest.Builder>
- Throws:
IOException
-
getServiceName
public String getServiceName()
Name of the service as specified in the service configuration. For example, `"pubsub.googleapis.com"`. See [google.api.Service][google.api.Service] for the definition of a service name.
string service_name = 1;
- Specified by:
getServiceName
in interfaceAllocateQuotaRequestOrBuilder
- Returns:
- The serviceName.
-
getServiceNameBytes
public com.google.protobuf.ByteString getServiceNameBytes()
Name of the service as specified in the service configuration. For example, `"pubsub.googleapis.com"`. See [google.api.Service][google.api.Service] for the definition of a service name.
string service_name = 1;
- Specified by:
getServiceNameBytes
in interfaceAllocateQuotaRequestOrBuilder
- Returns:
- The bytes for serviceName.
-
setServiceName
public AllocateQuotaRequest.Builder setServiceName(String value)
Name of the service as specified in the service configuration. For example, `"pubsub.googleapis.com"`. See [google.api.Service][google.api.Service] for the definition of a service name.
string service_name = 1;
- Parameters:
value
- The serviceName to set.- Returns:
- This builder for chaining.
-
clearServiceName
public AllocateQuotaRequest.Builder clearServiceName()
Name of the service as specified in the service configuration. For example, `"pubsub.googleapis.com"`. See [google.api.Service][google.api.Service] for the definition of a service name.
string service_name = 1;
- Returns:
- This builder for chaining.
-
setServiceNameBytes
public AllocateQuotaRequest.Builder setServiceNameBytes(com.google.protobuf.ByteString value)
Name of the service as specified in the service configuration. For example, `"pubsub.googleapis.com"`. See [google.api.Service][google.api.Service] for the definition of a service name.
string service_name = 1;
- Parameters:
value
- The bytes for serviceName to set.- Returns:
- This builder for chaining.
-
hasAllocateOperation
public boolean hasAllocateOperation()
Operation that describes the quota allocation.
.google.api.servicecontrol.v1.QuotaOperation allocate_operation = 2;
- Specified by:
hasAllocateOperation
in interfaceAllocateQuotaRequestOrBuilder
- Returns:
- Whether the allocateOperation field is set.
-
getAllocateOperation
public QuotaOperation getAllocateOperation()
Operation that describes the quota allocation.
.google.api.servicecontrol.v1.QuotaOperation allocate_operation = 2;
- Specified by:
getAllocateOperation
in interfaceAllocateQuotaRequestOrBuilder
- Returns:
- The allocateOperation.
-
setAllocateOperation
public AllocateQuotaRequest.Builder setAllocateOperation(QuotaOperation value)
Operation that describes the quota allocation.
.google.api.servicecontrol.v1.QuotaOperation allocate_operation = 2;
-
setAllocateOperation
public AllocateQuotaRequest.Builder setAllocateOperation(QuotaOperation.Builder builderForValue)
Operation that describes the quota allocation.
.google.api.servicecontrol.v1.QuotaOperation allocate_operation = 2;
-
mergeAllocateOperation
public AllocateQuotaRequest.Builder mergeAllocateOperation(QuotaOperation value)
Operation that describes the quota allocation.
.google.api.servicecontrol.v1.QuotaOperation allocate_operation = 2;
-
clearAllocateOperation
public AllocateQuotaRequest.Builder clearAllocateOperation()
Operation that describes the quota allocation.
.google.api.servicecontrol.v1.QuotaOperation allocate_operation = 2;
-
getAllocateOperationBuilder
public QuotaOperation.Builder getAllocateOperationBuilder()
Operation that describes the quota allocation.
.google.api.servicecontrol.v1.QuotaOperation allocate_operation = 2;
-
getAllocateOperationOrBuilder
public QuotaOperationOrBuilder getAllocateOperationOrBuilder()
Operation that describes the quota allocation.
.google.api.servicecontrol.v1.QuotaOperation allocate_operation = 2;
- Specified by:
getAllocateOperationOrBuilder
in interfaceAllocateQuotaRequestOrBuilder
-
getServiceConfigId
public String getServiceConfigId()
Specifies which version of service configuration should be used to process the request. If unspecified or no matching version can be found, the latest one will be used.
string service_config_id = 4;
- Specified by:
getServiceConfigId
in interfaceAllocateQuotaRequestOrBuilder
- Returns:
- The serviceConfigId.
-
getServiceConfigIdBytes
public com.google.protobuf.ByteString getServiceConfigIdBytes()
Specifies which version of service configuration should be used to process the request. If unspecified or no matching version can be found, the latest one will be used.
string service_config_id = 4;
- Specified by:
getServiceConfigIdBytes
in interfaceAllocateQuotaRequestOrBuilder
- Returns:
- The bytes for serviceConfigId.
-
setServiceConfigId
public AllocateQuotaRequest.Builder setServiceConfigId(String value)
Specifies which version of service configuration should be used to process the request. If unspecified or no matching version can be found, the latest one will be used.
string service_config_id = 4;
- Parameters:
value
- The serviceConfigId to set.- Returns:
- This builder for chaining.
-
clearServiceConfigId
public AllocateQuotaRequest.Builder clearServiceConfigId()
Specifies which version of service configuration should be used to process the request. If unspecified or no matching version can be found, the latest one will be used.
string service_config_id = 4;
- Returns:
- This builder for chaining.
-
setServiceConfigIdBytes
public AllocateQuotaRequest.Builder setServiceConfigIdBytes(com.google.protobuf.ByteString value)
Specifies which version of service configuration should be used to process the request. If unspecified or no matching version can be found, the latest one will be used.
string service_config_id = 4;
- Parameters:
value
- The bytes for serviceConfigId to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final AllocateQuotaRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocateQuotaRequest.Builder>
-
mergeUnknownFields
public final AllocateQuotaRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocateQuotaRequest.Builder>
-
-