Class QuotaGroup (0.9.0)

public final class QuotaGroup extends GeneratedMessageV3 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 Fields

METHOD_DETAILS_FIELD_NUMBER

public static final int METHOD_DETAILS_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

QUOTA_LIMIT_FIELD_NUMBER

public static final int QUOTA_LIMIT_FIELD_NUMBER
Field Value
Type Description
int

QUOTA_MINUTE_LIMIT_FIELD_NUMBER

public static final int QUOTA_MINUTE_LIMIT_FIELD_NUMBER
Field Value
Type Description
int

QUOTA_USAGE_FIELD_NUMBER

public static final int QUOTA_USAGE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static QuotaGroup getDefaultInstance()
Returns
Type Description
QuotaGroup

getDescriptor()

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

newBuilder()

public static QuotaGroup.Builder newBuilder()
Returns
Type Description
QuotaGroup.Builder

newBuilder(QuotaGroup prototype)

public static QuotaGroup.Builder newBuilder(QuotaGroup prototype)
Parameter
Name Description
prototype QuotaGroup
Returns
Type Description
QuotaGroup.Builder

parseDelimitedFrom(InputStream input)

public static QuotaGroup parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
QuotaGroup
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QuotaGroup parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QuotaGroup
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static QuotaGroup parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
QuotaGroup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static QuotaGroup parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QuotaGroup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static QuotaGroup parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
QuotaGroup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static QuotaGroup parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QuotaGroup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static QuotaGroup parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
QuotaGroup
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static QuotaGroup parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QuotaGroup
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static QuotaGroup parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
QuotaGroup
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QuotaGroup parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QuotaGroup
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static QuotaGroup parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
QuotaGroup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static QuotaGroup parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QuotaGroup
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<QuotaGroup> parser()
Returns
Type Description
Parser<QuotaGroup>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public QuotaGroup getDefaultInstanceForType()
Returns
Type Description
QuotaGroup

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

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.

getParserForType()

public Parser<QuotaGroup> getParserForType()
Returns
Type Description
Parser<QuotaGroup>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public QuotaGroup.Builder newBuilderForType()
Returns
Type Description
QuotaGroup.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected QuotaGroup.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
QuotaGroup.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public QuotaGroup.Builder toBuilder()
Returns
Type Description
QuotaGroup.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException