Class ProductLimit.Builder (1.10.0)

public static final class ProductLimit.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public ProductLimit.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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.

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

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

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.

setUnknownFields(UnknownFieldSet unknownFields)

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