Class QuotaGroup.Builder (0.3.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.shopping.merchant.quota.v1beta.MethodDetails>
Returns
TypeDescription
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
NameDescription
valueMethodDetails
Returns
TypeDescription
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
NameDescription
builderForValueMethodDetails.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueMethodDetails
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMethodDetails.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
MethodDetails.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QuotaGroup build()
Returns
TypeDescription
QuotaGroup

buildPartial()

public QuotaGroup buildPartial()
Returns
TypeDescription
QuotaGroup

clear()

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

clearField(Descriptors.FieldDescriptor field)

public QuotaGroup.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
QuotaGroup.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public QuotaGroup.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
QuotaGroup.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public QuotaGroup getDefaultInstanceForType()
Returns
TypeDescription
QuotaGroup

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
long

The quotaUsage.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(QuotaGroup other)

public QuotaGroup.Builder mergeFrom(QuotaGroup other)
Parameter
NameDescription
otherQuotaGroup
Returns
TypeDescription
QuotaGroup.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QuotaGroup.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
QuotaGroup.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public QuotaGroup.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueMethodDetails
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMethodDetails.Builder
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valuelong

The quotaLimit to set.

Returns
TypeDescription
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
NameDescription
valuelong

The quotaMinuteLimit to set.

Returns
TypeDescription
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
NameDescription
valuelong

The quotaUsage to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
QuotaGroup.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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