public static final class AccountLimit.Builder extends GeneratedMessage.Builder<AccountLimit.Builder> implements AccountLimitOrBuilderA limit of a certain type that is applied to an account.
Protobuf type google.shopping.merchant.quota.v1.AccountLimit
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AccountLimit.BuilderImplements
AccountLimitOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AccountLimit build()| Returns | |
|---|---|
| Type | Description |
AccountLimit |
|
buildPartial()
public AccountLimit buildPartial()| Returns | |
|---|---|
| Type | Description |
AccountLimit |
|
clear()
public AccountLimit.Builder clear()| Returns | |
|---|---|
| Type | Description |
AccountLimit.Builder |
|
clearName()
public AccountLimit.Builder clearName() Identifier. The limit part of the name will be a combination of the type
and the scope. For example: accounts/123/limits/products~ADS_NON_EEA
Format: accounts/{account}/limits/{limit}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
AccountLimit.Builder |
This builder for chaining. |
clearProducts()
public AccountLimit.Builder clearProducts()The limit for products.
.google.shopping.merchant.quota.v1.ProductLimit products = 100;
| Returns | |
|---|---|
| Type | Description |
AccountLimit.Builder |
|
clearType()
public AccountLimit.Builder clearType()| Returns | |
|---|---|
| Type | Description |
AccountLimit.Builder |
|
getDefaultInstanceForType()
public AccountLimit getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AccountLimit |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName() Identifier. The limit part of the name will be a combination of the type
and the scope. For example: accounts/123/limits/products~ADS_NON_EEA
Format: accounts/{account}/limits/{limit}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes() Identifier. The limit part of the name will be a combination of the type
and the scope. For example: accounts/123/limits/products~ADS_NON_EEA
Format: accounts/{account}/limits/{limit}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getProducts()
public ProductLimit getProducts()The limit for products.
.google.shopping.merchant.quota.v1.ProductLimit products = 100;
| Returns | |
|---|---|
| Type | Description |
ProductLimit |
The products. |
getProductsBuilder()
public ProductLimit.Builder getProductsBuilder()The limit for products.
.google.shopping.merchant.quota.v1.ProductLimit products = 100;
| Returns | |
|---|---|
| Type | Description |
ProductLimit.Builder |
|
getProductsOrBuilder()
public ProductLimitOrBuilder getProductsOrBuilder()The limit for products.
.google.shopping.merchant.quota.v1.ProductLimit products = 100;
| Returns | |
|---|---|
| Type | Description |
ProductLimitOrBuilder |
|
getTypeCase()
public AccountLimit.TypeCase getTypeCase()| Returns | |
|---|---|
| Type | Description |
AccountLimit.TypeCase |
|
hasProducts()
public boolean hasProducts()The limit for products.
.google.shopping.merchant.quota.v1.ProductLimit products = 100;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the products field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AccountLimit.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AccountLimit.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AccountLimit.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AccountLimit.Builder |
|
mergeFrom(AccountLimit other)
public AccountLimit.Builder mergeFrom(AccountLimit other)| Parameter | |
|---|---|
| Name | Description |
other |
AccountLimit |
| Returns | |
|---|---|
| Type | Description |
AccountLimit.Builder |
|
mergeProducts(ProductLimit value)
public AccountLimit.Builder mergeProducts(ProductLimit value)The limit for products.
.google.shopping.merchant.quota.v1.ProductLimit products = 100;
| Parameter | |
|---|---|
| Name | Description |
value |
ProductLimit |
| Returns | |
|---|---|
| Type | Description |
AccountLimit.Builder |
|
setName(String value)
public AccountLimit.Builder setName(String value) Identifier. The limit part of the name will be a combination of the type
and the scope. For example: accounts/123/limits/products~ADS_NON_EEA
Format: accounts/{account}/limits/{limit}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
AccountLimit.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public AccountLimit.Builder setNameBytes(ByteString value) Identifier. The limit part of the name will be a combination of the type
and the scope. For example: accounts/123/limits/products~ADS_NON_EEA
Format: accounts/{account}/limits/{limit}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
AccountLimit.Builder |
This builder for chaining. |
setProducts(ProductLimit value)
public AccountLimit.Builder setProducts(ProductLimit value)The limit for products.
.google.shopping.merchant.quota.v1.ProductLimit products = 100;
| Parameter | |
|---|---|
| Name | Description |
value |
ProductLimit |
| Returns | |
|---|---|
| Type | Description |
AccountLimit.Builder |
|
setProducts(ProductLimit.Builder builderForValue)
public AccountLimit.Builder setProducts(ProductLimit.Builder builderForValue)The limit for products.
.google.shopping.merchant.quota.v1.ProductLimit products = 100;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ProductLimit.Builder |
| Returns | |
|---|---|
| Type | Description |
AccountLimit.Builder |
|