Class GetConsumerQuotaMetricRequest.Builder (2.83.0)

public static final class GetConsumerQuotaMetricRequest.Builder extends GeneratedMessage.Builder<GetConsumerQuotaMetricRequest.Builder> implements GetConsumerQuotaMetricRequestOrBuilder

Request message for GetConsumerQuotaMetric

Protobuf type google.api.serviceusage.v1beta1.GetConsumerQuotaMetricRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public GetConsumerQuotaMetricRequest build()
Returns
Type Description
GetConsumerQuotaMetricRequest

buildPartial()

public GetConsumerQuotaMetricRequest buildPartial()
Returns
Type Description
GetConsumerQuotaMetricRequest

clear()

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

clearName()

public GetConsumerQuotaMetricRequest.Builder clearName()

The resource name of the quota limit.

An example name would be: projects/123/services/serviceusage.googleapis.com/quotas/metrics/serviceusage.googleapis.com%2Fmutate_requests

string name = 1;

Returns
Type Description
GetConsumerQuotaMetricRequest.Builder

This builder for chaining.

clearView()

public GetConsumerQuotaMetricRequest.Builder clearView()

Specifies the level of detail for quota information in the response.

.google.api.serviceusage.v1beta1.QuotaView view = 2;

Returns
Type Description
GetConsumerQuotaMetricRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public GetConsumerQuotaMetricRequest getDefaultInstanceForType()
Returns
Type Description
GetConsumerQuotaMetricRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

The resource name of the quota limit.

An example name would be: projects/123/services/serviceusage.googleapis.com/quotas/metrics/serviceusage.googleapis.com%2Fmutate_requests

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name of the quota limit.

An example name would be: projects/123/services/serviceusage.googleapis.com/quotas/metrics/serviceusage.googleapis.com%2Fmutate_requests

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getView()

public QuotaView getView()

Specifies the level of detail for quota information in the response.

.google.api.serviceusage.v1beta1.QuotaView view = 2;

Returns
Type Description
QuotaView

The view.

getViewValue()

public int getViewValue()

Specifies the level of detail for quota information in the response.

.google.api.serviceusage.v1beta1.QuotaView view = 2;

Returns
Type Description
int

The enum numeric value on the wire for view.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetConsumerQuotaMetricRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public GetConsumerQuotaMetricRequest.Builder setName(String value)

The resource name of the quota limit.

An example name would be: projects/123/services/serviceusage.googleapis.com/quotas/metrics/serviceusage.googleapis.com%2Fmutate_requests

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetConsumerQuotaMetricRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetConsumerQuotaMetricRequest.Builder setNameBytes(ByteString value)

The resource name of the quota limit.

An example name would be: projects/123/services/serviceusage.googleapis.com/quotas/metrics/serviceusage.googleapis.com%2Fmutate_requests

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetConsumerQuotaMetricRequest.Builder

This builder for chaining.

setView(QuotaView value)

public GetConsumerQuotaMetricRequest.Builder setView(QuotaView value)

Specifies the level of detail for quota information in the response.

.google.api.serviceusage.v1beta1.QuotaView view = 2;

Parameter
Name Description
value QuotaView

The view to set.

Returns
Type Description
GetConsumerQuotaMetricRequest.Builder

This builder for chaining.

setViewValue(int value)

public GetConsumerQuotaMetricRequest.Builder setViewValue(int value)

Specifies the level of detail for quota information in the response.

.google.api.serviceusage.v1beta1.QuotaView view = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for view to set.

Returns
Type Description
GetConsumerQuotaMetricRequest.Builder

This builder for chaining.