Class AllocateQuotaRequest.Builder (1.32.0)

public static final class AllocateQuotaRequest.Builder extends GeneratedMessageV3.Builder<AllocateQuotaRequest.Builder> implements AllocateQuotaRequestOrBuilder

Request message for the AllocateQuota method.

Protobuf type google.api.servicecontrol.v1.AllocateQuotaRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AllocateQuotaRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AllocateQuotaRequest.Builder
Overrides

build()

public AllocateQuotaRequest build()
Returns
TypeDescription
AllocateQuotaRequest

buildPartial()

public AllocateQuotaRequest buildPartial()
Returns
TypeDescription
AllocateQuotaRequest

clear()

public AllocateQuotaRequest.Builder clear()
Returns
TypeDescription
AllocateQuotaRequest.Builder
Overrides

clearAllocateOperation()

public AllocateQuotaRequest.Builder clearAllocateOperation()

Operation that describes the quota allocation.

.google.api.servicecontrol.v1.QuotaOperation allocate_operation = 2;

Returns
TypeDescription
AllocateQuotaRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public AllocateQuotaRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AllocateQuotaRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AllocateQuotaRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AllocateQuotaRequest.Builder
Overrides

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
TypeDescription
AllocateQuotaRequest.Builder

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 for the definition of a service name.

string service_name = 1;

Returns
TypeDescription
AllocateQuotaRequest.Builder

This builder for chaining.

clone()

public AllocateQuotaRequest.Builder clone()
Returns
TypeDescription
AllocateQuotaRequest.Builder
Overrides

getAllocateOperation()

public QuotaOperation getAllocateOperation()

Operation that describes the quota allocation.

.google.api.servicecontrol.v1.QuotaOperation allocate_operation = 2;

Returns
TypeDescription
QuotaOperation

The allocateOperation.

getAllocateOperationBuilder()

public QuotaOperation.Builder getAllocateOperationBuilder()

Operation that describes the quota allocation.

.google.api.servicecontrol.v1.QuotaOperation allocate_operation = 2;

Returns
TypeDescription
QuotaOperation.Builder

getAllocateOperationOrBuilder()

public QuotaOperationOrBuilder getAllocateOperationOrBuilder()

Operation that describes the quota allocation.

.google.api.servicecontrol.v1.QuotaOperation allocate_operation = 2;

Returns
TypeDescription
QuotaOperationOrBuilder

getDefaultInstanceForType()

public AllocateQuotaRequest getDefaultInstanceForType()
Returns
TypeDescription
AllocateQuotaRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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;

Returns
TypeDescription
String

The serviceConfigId.

getServiceConfigIdBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for serviceConfigId.

getServiceName()

public String getServiceName()

Name of the service as specified in the service configuration. For example, "pubsub.googleapis.com".

See google.api.Service for the definition of a service name.

string service_name = 1;

Returns
TypeDescription
String

The serviceName.

getServiceNameBytes()

public ByteString getServiceNameBytes()

Name of the service as specified in the service configuration. For example, "pubsub.googleapis.com".

See google.api.Service for the definition of a service name.

string service_name = 1;

Returns
TypeDescription
ByteString

The bytes for serviceName.

hasAllocateOperation()

public boolean hasAllocateOperation()

Operation that describes the quota allocation.

.google.api.servicecontrol.v1.QuotaOperation allocate_operation = 2;

Returns
TypeDescription
boolean

Whether the allocateOperation field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAllocateOperation(QuotaOperation value)

public AllocateQuotaRequest.Builder mergeAllocateOperation(QuotaOperation value)

Operation that describes the quota allocation.

.google.api.servicecontrol.v1.QuotaOperation allocate_operation = 2;

Parameter
NameDescription
valueQuotaOperation
Returns
TypeDescription
AllocateQuotaRequest.Builder

mergeFrom(AllocateQuotaRequest other)

public AllocateQuotaRequest.Builder mergeFrom(AllocateQuotaRequest other)
Parameter
NameDescription
otherAllocateQuotaRequest
Returns
TypeDescription
AllocateQuotaRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AllocateQuotaRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AllocateQuotaRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AllocateQuotaRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AllocateQuotaRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AllocateQuotaRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AllocateQuotaRequest.Builder
Overrides

setAllocateOperation(QuotaOperation value)

public AllocateQuotaRequest.Builder setAllocateOperation(QuotaOperation value)

Operation that describes the quota allocation.

.google.api.servicecontrol.v1.QuotaOperation allocate_operation = 2;

Parameter
NameDescription
valueQuotaOperation
Returns
TypeDescription
AllocateQuotaRequest.Builder

setAllocateOperation(QuotaOperation.Builder builderForValue)

public AllocateQuotaRequest.Builder setAllocateOperation(QuotaOperation.Builder builderForValue)

Operation that describes the quota allocation.

.google.api.servicecontrol.v1.QuotaOperation allocate_operation = 2;

Parameter
NameDescription
builderForValueQuotaOperation.Builder
Returns
TypeDescription
AllocateQuotaRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AllocateQuotaRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AllocateQuotaRequest.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AllocateQuotaRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AllocateQuotaRequest.Builder
Overrides

setServiceConfigId(String value)

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;

Parameter
NameDescription
valueString

The serviceConfigId to set.

Returns
TypeDescription
AllocateQuotaRequest.Builder

This builder for chaining.

setServiceConfigIdBytes(ByteString value)

public AllocateQuotaRequest.Builder setServiceConfigIdBytes(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;

Parameter
NameDescription
valueByteString

The bytes for serviceConfigId to set.

Returns
TypeDescription
AllocateQuotaRequest.Builder

This builder for chaining.

setServiceName(String value)

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 for the definition of a service name.

string service_name = 1;

Parameter
NameDescription
valueString

The serviceName to set.

Returns
TypeDescription
AllocateQuotaRequest.Builder

This builder for chaining.

setServiceNameBytes(ByteString value)

public AllocateQuotaRequest.Builder setServiceNameBytes(ByteString value)

Name of the service as specified in the service configuration. For example, "pubsub.googleapis.com".

See google.api.Service for the definition of a service name.

string service_name = 1;

Parameter
NameDescription
valueByteString

The bytes for serviceName to set.

Returns
TypeDescription
AllocateQuotaRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AllocateQuotaRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AllocateQuotaRequest.Builder
Overrides