Class AllocateQuotaRequest.Builder (1.52.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AllocateQuotaRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AllocateQuotaRequest.Builder
Overrides

build()

public AllocateQuotaRequest build()
Returns
Type Description
AllocateQuotaRequest

buildPartial()

public AllocateQuotaRequest buildPartial()
Returns
Type Description
AllocateQuotaRequest

clear()

public AllocateQuotaRequest.Builder clear()
Returns
Type Description
AllocateQuotaRequest.Builder
Overrides

clearAllocateOperation()

public AllocateQuotaRequest.Builder clearAllocateOperation()

Operation that describes the quota allocation.

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

Returns
Type Description
AllocateQuotaRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public AllocateQuotaRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AllocateQuotaRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AllocateQuotaRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
AllocateQuotaRequest.Builder

This builder for chaining.

clone()

public AllocateQuotaRequest.Builder clone()
Returns
Type Description
AllocateQuotaRequest.Builder
Overrides

getAllocateOperation()

public QuotaOperation getAllocateOperation()

Operation that describes the quota allocation.

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

Returns
Type Description
QuotaOperation

The allocateOperation.

getAllocateOperationBuilder()

public QuotaOperation.Builder getAllocateOperationBuilder()

Operation that describes the quota allocation.

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

Returns
Type Description
QuotaOperation.Builder

getAllocateOperationOrBuilder()

public QuotaOperationOrBuilder getAllocateOperationOrBuilder()

Operation that describes the quota allocation.

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

Returns
Type Description
QuotaOperationOrBuilder

getDefaultInstanceForType()

public AllocateQuotaRequest getDefaultInstanceForType()
Returns
Type Description
AllocateQuotaRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for serviceName.

hasAllocateOperation()

public boolean hasAllocateOperation()

Operation that describes the quota allocation.

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

Returns
Type Description
boolean

Whether the allocateOperation field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value QuotaOperation
Returns
Type Description
AllocateQuotaRequest.Builder

mergeFrom(AllocateQuotaRequest other)

public AllocateQuotaRequest.Builder mergeFrom(AllocateQuotaRequest other)
Parameter
Name Description
other AllocateQuotaRequest
Returns
Type Description
AllocateQuotaRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AllocateQuotaRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AllocateQuotaRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AllocateQuotaRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AllocateQuotaRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AllocateQuotaRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value QuotaOperation
Returns
Type Description
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
Name Description
builderForValue QuotaOperation.Builder
Returns
Type Description
AllocateQuotaRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AllocateQuotaRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AllocateQuotaRequest.Builder
Overrides

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

public AllocateQuotaRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value String

The serviceConfigId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for serviceConfigId to set.

Returns
Type Description
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
Name Description
value String

The serviceName to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for serviceName to set.

Returns
Type Description
AllocateQuotaRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AllocateQuotaRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AllocateQuotaRequest.Builder
Overrides