Class QuotaGroup.Builder (0.16.0)

public static final class QuotaGroup.Builder extends GeneratedMessageV3.Builder<QuotaGroup.Builder> implements QuotaGroupOrBuilder

The group information for methods in the Merchant API. The quota is shared between all methods in the group. Even if none of the methods within the group have usage the information for the group is returned.

Protobuf type google.shopping.merchant.quota.v1beta.QuotaGroup

Implements

QuotaGroupOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllMethodDetails(Iterable<? extends MethodDetails> values)

public QuotaGroup.Builder addAllMethodDetails(Iterable<? extends MethodDetails> values)

Output only. List of all methods group quota applies to.

repeated .google.shopping.merchant.quota.v1beta.MethodDetails method_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.shopping.merchant.quota.v1beta.MethodDetails>
Returns
Type Description
QuotaGroup.Builder

addMethodDetails(MethodDetails value)

public QuotaGroup.Builder addMethodDetails(MethodDetails value)

Output only. List of all methods group quota applies to.

repeated .google.shopping.merchant.quota.v1beta.MethodDetails method_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value MethodDetails
Returns
Type Description
QuotaGroup.Builder

addMethodDetails(MethodDetails.Builder builderForValue)

public QuotaGroup.Builder addMethodDetails(MethodDetails.Builder builderForValue)

Output only. List of all methods group quota applies to.

repeated .google.shopping.merchant.quota.v1beta.MethodDetails method_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue MethodDetails.Builder
Returns
Type Description
QuotaGroup.Builder

addMethodDetails(int index, MethodDetails value)

public QuotaGroup.Builder addMethodDetails(int index, MethodDetails value)

Output only. List of all methods group quota applies to.

repeated .google.shopping.merchant.quota.v1beta.MethodDetails method_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value MethodDetails
Returns
Type Description
QuotaGroup.Builder

addMethodDetails(int index, MethodDetails.Builder builderForValue)

public QuotaGroup.Builder addMethodDetails(int index, MethodDetails.Builder builderForValue)

Output only. List of all methods group quota applies to.

repeated .google.shopping.merchant.quota.v1beta.MethodDetails method_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue MethodDetails.Builder
Returns
Type Description
QuotaGroup.Builder

addMethodDetailsBuilder()

public MethodDetails.Builder addMethodDetailsBuilder()

Output only. List of all methods group quota applies to.

repeated .google.shopping.merchant.quota.v1beta.MethodDetails method_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MethodDetails.Builder

addMethodDetailsBuilder(int index)

public MethodDetails.Builder addMethodDetailsBuilder(int index)

Output only. List of all methods group quota applies to.

repeated .google.shopping.merchant.quota.v1beta.MethodDetails method_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
MethodDetails.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QuotaGroup build()
Returns
Type Description
QuotaGroup

buildPartial()

public QuotaGroup buildPartial()
Returns
Type Description
QuotaGroup

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMethodDetails()

public QuotaGroup.Builder clearMethodDetails()

Output only. List of all methods group quota applies to.

repeated .google.shopping.merchant.quota.v1beta.MethodDetails method_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
QuotaGroup.Builder

clearName()

public QuotaGroup.Builder clearName()

Identifier. The resource name of the quota group. Format: accounts/{account}/quotas/{group} Note: There is no guarantee on the format of {group}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
QuotaGroup.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public QuotaGroup.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
QuotaGroup.Builder
Overrides

clearQuotaLimit()

public QuotaGroup.Builder clearQuotaLimit()

Output only. The maximum number of calls allowed per day for the group.

int64 quota_limit = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
QuotaGroup.Builder

This builder for chaining.

clearQuotaMinuteLimit()

public QuotaGroup.Builder clearQuotaMinuteLimit()

Output only. The maximum number of calls allowed per minute for the group.

int64 quota_minute_limit = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
QuotaGroup.Builder

This builder for chaining.

clearQuotaUsage()

public QuotaGroup.Builder clearQuotaUsage()

Output only. The current quota usage, meaning the number of calls already made on a given day to the methods in the group. The daily quota limits reset at at 12:00 PM midday UTC.

int64 quota_usage = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
QuotaGroup.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public QuotaGroup getDefaultInstanceForType()
Returns
Type Description
QuotaGroup

getDescriptorForType()

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

getMethodDetails(int index)

public MethodDetails getMethodDetails(int index)

Output only. List of all methods group quota applies to.

repeated .google.shopping.merchant.quota.v1beta.MethodDetails method_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
MethodDetails

getMethodDetailsBuilder(int index)

public MethodDetails.Builder getMethodDetailsBuilder(int index)

Output only. List of all methods group quota applies to.

repeated .google.shopping.merchant.quota.v1beta.MethodDetails method_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
MethodDetails.Builder

getMethodDetailsBuilderList()

public List<MethodDetails.Builder> getMethodDetailsBuilderList()

Output only. List of all methods group quota applies to.

repeated .google.shopping.merchant.quota.v1beta.MethodDetails method_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getMethodDetailsCount()

public int getMethodDetailsCount()

Output only. List of all methods group quota applies to.

repeated .google.shopping.merchant.quota.v1beta.MethodDetails method_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getMethodDetailsList()

public List<MethodDetails> getMethodDetailsList()

Output only. List of all methods group quota applies to.

repeated .google.shopping.merchant.quota.v1beta.MethodDetails method_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<MethodDetails>

getMethodDetailsOrBuilder(int index)

public MethodDetailsOrBuilder getMethodDetailsOrBuilder(int index)

Output only. List of all methods group quota applies to.

repeated .google.shopping.merchant.quota.v1beta.MethodDetails method_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
MethodDetailsOrBuilder

getMethodDetailsOrBuilderList()

public List<? extends MethodDetailsOrBuilder> getMethodDetailsOrBuilderList()

Output only. List of all methods group quota applies to.

repeated .google.shopping.merchant.quota.v1beta.MethodDetails method_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.shopping.merchant.quota.v1beta.MethodDetailsOrBuilder>

getName()

public String getName()

Identifier. The resource name of the quota group. Format: accounts/{account}/quotas/{group} Note: There is no guarantee on the format of {group}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the quota group. Format: accounts/{account}/quotas/{group} Note: There is no guarantee on the format of {group}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getQuotaLimit()

public long getQuotaLimit()

Output only. The maximum number of calls allowed per day for the group.

int64 quota_limit = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The quotaLimit.

getQuotaMinuteLimit()

public long getQuotaMinuteLimit()

Output only. The maximum number of calls allowed per minute for the group.

int64 quota_minute_limit = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The quotaMinuteLimit.

getQuotaUsage()

public long getQuotaUsage()

Output only. The current quota usage, meaning the number of calls already made on a given day to the methods in the group. The daily quota limits reset at at 12:00 PM midday UTC.

int64 quota_usage = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The quotaUsage.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(QuotaGroup other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QuotaGroup.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
QuotaGroup.Builder
Overrides

removeMethodDetails(int index)

public QuotaGroup.Builder removeMethodDetails(int index)

Output only. List of all methods group quota applies to.

repeated .google.shopping.merchant.quota.v1beta.MethodDetails method_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
QuotaGroup.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMethodDetails(int index, MethodDetails value)

public QuotaGroup.Builder setMethodDetails(int index, MethodDetails value)

Output only. List of all methods group quota applies to.

repeated .google.shopping.merchant.quota.v1beta.MethodDetails method_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value MethodDetails
Returns
Type Description
QuotaGroup.Builder

setMethodDetails(int index, MethodDetails.Builder builderForValue)

public QuotaGroup.Builder setMethodDetails(int index, MethodDetails.Builder builderForValue)

Output only. List of all methods group quota applies to.

repeated .google.shopping.merchant.quota.v1beta.MethodDetails method_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue MethodDetails.Builder
Returns
Type Description
QuotaGroup.Builder

setName(String value)

public QuotaGroup.Builder setName(String value)

Identifier. The resource name of the quota group. Format: accounts/{account}/quotas/{group} Note: There is no guarantee on the format of {group}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
QuotaGroup.Builder

This builder for chaining.

setNameBytes(ByteString value)

public QuotaGroup.Builder setNameBytes(ByteString value)

Identifier. The resource name of the quota group. Format: accounts/{account}/quotas/{group} Note: There is no guarantee on the format of {group}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
QuotaGroup.Builder

This builder for chaining.

setQuotaLimit(long value)

public QuotaGroup.Builder setQuotaLimit(long value)

Output only. The maximum number of calls allowed per day for the group.

int64 quota_limit = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The quotaLimit to set.

Returns
Type Description
QuotaGroup.Builder

This builder for chaining.

setQuotaMinuteLimit(long value)

public QuotaGroup.Builder setQuotaMinuteLimit(long value)

Output only. The maximum number of calls allowed per minute for the group.

int64 quota_minute_limit = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The quotaMinuteLimit to set.

Returns
Type Description
QuotaGroup.Builder

This builder for chaining.

setQuotaUsage(long value)

public QuotaGroup.Builder setQuotaUsage(long value)

Output only. The current quota usage, meaning the number of calls already made on a given day to the methods in the group. The daily quota limits reset at at 12:00 PM midday UTC.

int64 quota_usage = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The quotaUsage to set.

Returns
Type Description
QuotaGroup.Builder

This builder for chaining.

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

public QuotaGroup.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
QuotaGroup.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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