Class QuotaGroup (0.2.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
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

QUOTA_LIMIT_FIELD_NUMBER

public static final int QUOTA_LIMIT_FIELD_NUMBER
Field Value
TypeDescription
int

QUOTA_MINUTE_LIMIT_FIELD_NUMBER

public static final int QUOTA_MINUTE_LIMIT_FIELD_NUMBER
Field Value
TypeDescription
int

QUOTA_USAGE_FIELD_NUMBER

public static final int QUOTA_USAGE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static QuotaGroup getDefaultInstance()
Returns
TypeDescription
QuotaGroup

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static QuotaGroup.Builder newBuilder()
Returns
TypeDescription
QuotaGroup.Builder

newBuilder(QuotaGroup prototype)

public static QuotaGroup.Builder newBuilder(QuotaGroup prototype)
Parameter
NameDescription
prototypeQuotaGroup
Returns
TypeDescription
QuotaGroup.Builder

parseDelimitedFrom(InputStream input)

public static QuotaGroup parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
QuotaGroup
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QuotaGroup parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QuotaGroup
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static QuotaGroup parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
QuotaGroup
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static QuotaGroup parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QuotaGroup
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static QuotaGroup parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
QuotaGroup
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static QuotaGroup parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QuotaGroup
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static QuotaGroup parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
QuotaGroup
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static QuotaGroup parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QuotaGroup
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static QuotaGroup parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
QuotaGroup
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QuotaGroup parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QuotaGroup
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static QuotaGroup parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
QuotaGroup
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static QuotaGroup parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QuotaGroup
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<QuotaGroup> parser()
Returns
TypeDescription
Parser<QuotaGroup>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public QuotaGroup getDefaultInstanceForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
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.

getParserForType()

public Parser<QuotaGroup> getParserForType()
Returns
TypeDescription
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
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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public QuotaGroup.Builder newBuilderForType()
Returns
TypeDescription
QuotaGroup.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected QuotaGroup.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
QuotaGroup.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public QuotaGroup.Builder toBuilder()
Returns
TypeDescription
QuotaGroup.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException