public static final class ProductLimit.Builder extends GeneratedMessage.Builder<ProductLimit.Builder> implements ProductLimitOrBuilderThe limit for products.
Protobuf type google.shopping.merchant.quota.v1.ProductLimit
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ProductLimit.BuilderImplements
ProductLimitOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ProductLimit.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ProductLimit.Builder |
|
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 |
longThe 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.ScopeThe 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 |
intThe enum numeric value on the wire for scope to set. |
| Returns | |
|---|---|
| Type | Description |
ProductLimit.Builder |
This builder for chaining. |