Class ProductLimit.Builder (1.16.0)

public static final class ProductLimit.Builder extends GeneratedMessage.Builder<ProductLimit.Builder> implements ProductLimitOrBuilder

The limit for products.

Protobuf type google.shopping.merchant.quota.v1.ProductLimit

Static Methods

getDescriptor()

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

Methods

build()

public ProductLimit build()
Returns
Type Description
ProductLimit

buildPartial()

public ProductLimit buildPartial()
Returns
Type Description
ProductLimit

clear()

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

clearLimit()

public ProductLimit.Builder clearLimit()

Required. The maximum number of products that are allowed in the account in the given scope.

int64 limit = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProductLimit.Builder

This builder for chaining.

clearScope()

public ProductLimit.Builder clearScope()

Required. The scope of the product limit.

.google.shopping.merchant.quota.v1.ProductLimit.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProductLimit.Builder

This builder for chaining.

getDefaultInstanceForType()

public ProductLimit getDefaultInstanceForType()
Returns
Type Description
ProductLimit

getDescriptorForType()

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

getLimit()

public long getLimit()

Required. The maximum number of products that are allowed in the account in the given scope.

int64 limit = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The limit.

getScope()

public ProductLimit.Scope getScope()

Required. The scope of the product limit.

.google.shopping.merchant.quota.v1.ProductLimit.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProductLimit.Scope

The scope.

getScopeValue()

public int getScopeValue()

Required. The scope of the product limit.

.google.shopping.merchant.quota.v1.ProductLimit.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for scope.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ProductLimit other)

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

setLimit(long value)

public ProductLimit.Builder setLimit(long value)

Required. The maximum number of products that are allowed in the account in the given scope.

int64 limit = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value long

The limit to set.

Returns
Type Description
ProductLimit.Builder

This builder for chaining.

setScope(ProductLimit.Scope value)

public ProductLimit.Builder setScope(ProductLimit.Scope value)

Required. The scope of the product limit.

.google.shopping.merchant.quota.v1.ProductLimit.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ProductLimit.Scope

The scope to set.

Returns
Type Description
ProductLimit.Builder

This builder for chaining.

setScopeValue(int value)

public ProductLimit.Builder setScopeValue(int value)

Required. The scope of the product limit.

.google.shopping.merchant.quota.v1.ProductLimit.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
ProductLimit.Builder

This builder for chaining.