Class AccountLimit.Builder (1.16.0)

public static final class AccountLimit.Builder extends GeneratedMessage.Builder<AccountLimit.Builder> implements AccountLimitOrBuilder

A limit of a certain type that is applied to an account.

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

Static 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
Overrides

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
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

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 String

The 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 ByteString

The 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