Class AccountTax.Builder (0.7.0)

public static final class AccountTax.Builder extends GeneratedMessageV3.Builder<AccountTax.Builder> implements AccountTaxOrBuilder

The tax settings of a merchant account. All methods require the admin role.

Protobuf type google.shopping.merchant.accounts.v1beta.AccountTax

Implements

AccountTaxOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllTaxRules(Iterable<? extends TaxRule> values)

public AccountTax.Builder addAllTaxRules(Iterable<? extends TaxRule> values)

Tax rules. "Define the tax rules in each region. No tax will be presented if a region has no rule."

repeated .google.shopping.merchant.accounts.v1beta.TaxRule tax_rules = 3;

Parameter
Name Description
values Iterable<? extends com.google.shopping.merchant.accounts.v1beta.TaxRule>
Returns
Type Description
AccountTax.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTaxRules(TaxRule value)

public AccountTax.Builder addTaxRules(TaxRule value)

Tax rules. "Define the tax rules in each region. No tax will be presented if a region has no rule."

repeated .google.shopping.merchant.accounts.v1beta.TaxRule tax_rules = 3;

Parameter
Name Description
value TaxRule
Returns
Type Description
AccountTax.Builder

addTaxRules(TaxRule.Builder builderForValue)

public AccountTax.Builder addTaxRules(TaxRule.Builder builderForValue)

Tax rules. "Define the tax rules in each region. No tax will be presented if a region has no rule."

repeated .google.shopping.merchant.accounts.v1beta.TaxRule tax_rules = 3;

Parameter
Name Description
builderForValue TaxRule.Builder
Returns
Type Description
AccountTax.Builder

addTaxRules(int index, TaxRule value)

public AccountTax.Builder addTaxRules(int index, TaxRule value)

Tax rules. "Define the tax rules in each region. No tax will be presented if a region has no rule."

repeated .google.shopping.merchant.accounts.v1beta.TaxRule tax_rules = 3;

Parameters
Name Description
index int
value TaxRule
Returns
Type Description
AccountTax.Builder

addTaxRules(int index, TaxRule.Builder builderForValue)

public AccountTax.Builder addTaxRules(int index, TaxRule.Builder builderForValue)

Tax rules. "Define the tax rules in each region. No tax will be presented if a region has no rule."

repeated .google.shopping.merchant.accounts.v1beta.TaxRule tax_rules = 3;

Parameters
Name Description
index int
builderForValue TaxRule.Builder
Returns
Type Description
AccountTax.Builder

addTaxRulesBuilder()

public TaxRule.Builder addTaxRulesBuilder()

Tax rules. "Define the tax rules in each region. No tax will be presented if a region has no rule."

repeated .google.shopping.merchant.accounts.v1beta.TaxRule tax_rules = 3;

Returns
Type Description
TaxRule.Builder

addTaxRulesBuilder(int index)

public TaxRule.Builder addTaxRulesBuilder(int index)

Tax rules. "Define the tax rules in each region. No tax will be presented if a region has no rule."

repeated .google.shopping.merchant.accounts.v1beta.TaxRule tax_rules = 3;

Parameter
Name Description
index int
Returns
Type Description
TaxRule.Builder

build()

public AccountTax build()
Returns
Type Description
AccountTax

buildPartial()

public AccountTax buildPartial()
Returns
Type Description
AccountTax

clear()

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

clearAccount()

public AccountTax.Builder clearAccount()

Output only. The ID of the account to which these account tax settings belong.

int64 account = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AccountTax.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AccountTax.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AccountTax.Builder
Overrides

clearName()

public AccountTax.Builder clearName()

Identifier. The name of the tax setting. Format: "{account_tax.name=accounts/{account}}"

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
AccountTax.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTaxRules()

public AccountTax.Builder clearTaxRules()

Tax rules. "Define the tax rules in each region. No tax will be presented if a region has no rule."

repeated .google.shopping.merchant.accounts.v1beta.TaxRule tax_rules = 3;

Returns
Type Description
AccountTax.Builder

clone()

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

getAccount()

public long getAccount()

Output only. The ID of the account to which these account tax settings belong.

int64 account = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The account.

getDefaultInstanceForType()

public AccountTax getDefaultInstanceForType()
Returns
Type Description
AccountTax

getDescriptorForType()

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

getName()

public String getName()

Identifier. The name of the tax setting. Format: "{account_tax.name=accounts/{account}}"

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The name of the tax setting. Format: "{account_tax.name=accounts/{account}}"

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getTaxRules(int index)

public TaxRule getTaxRules(int index)

Tax rules. "Define the tax rules in each region. No tax will be presented if a region has no rule."

repeated .google.shopping.merchant.accounts.v1beta.TaxRule tax_rules = 3;

Parameter
Name Description
index int
Returns
Type Description
TaxRule

getTaxRulesBuilder(int index)

public TaxRule.Builder getTaxRulesBuilder(int index)

Tax rules. "Define the tax rules in each region. No tax will be presented if a region has no rule."

repeated .google.shopping.merchant.accounts.v1beta.TaxRule tax_rules = 3;

Parameter
Name Description
index int
Returns
Type Description
TaxRule.Builder

getTaxRulesBuilderList()

public List<TaxRule.Builder> getTaxRulesBuilderList()

Tax rules. "Define the tax rules in each region. No tax will be presented if a region has no rule."

repeated .google.shopping.merchant.accounts.v1beta.TaxRule tax_rules = 3;

Returns
Type Description
List<Builder>

getTaxRulesCount()

public int getTaxRulesCount()

Tax rules. "Define the tax rules in each region. No tax will be presented if a region has no rule."

repeated .google.shopping.merchant.accounts.v1beta.TaxRule tax_rules = 3;

Returns
Type Description
int

getTaxRulesList()

public List<TaxRule> getTaxRulesList()

Tax rules. "Define the tax rules in each region. No tax will be presented if a region has no rule."

repeated .google.shopping.merchant.accounts.v1beta.TaxRule tax_rules = 3;

Returns
Type Description
List<TaxRule>

getTaxRulesOrBuilder(int index)

public TaxRuleOrBuilder getTaxRulesOrBuilder(int index)

Tax rules. "Define the tax rules in each region. No tax will be presented if a region has no rule."

repeated .google.shopping.merchant.accounts.v1beta.TaxRule tax_rules = 3;

Parameter
Name Description
index int
Returns
Type Description
TaxRuleOrBuilder

getTaxRulesOrBuilderList()

public List<? extends TaxRuleOrBuilder> getTaxRulesOrBuilderList()

Tax rules. "Define the tax rules in each region. No tax will be presented if a region has no rule."

repeated .google.shopping.merchant.accounts.v1beta.TaxRule tax_rules = 3;

Returns
Type Description
List<? extends com.google.shopping.merchant.accounts.v1beta.TaxRuleOrBuilder>

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 AccountTax.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccountTax.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(AccountTax other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeTaxRules(int index)

public AccountTax.Builder removeTaxRules(int index)

Tax rules. "Define the tax rules in each region. No tax will be presented if a region has no rule."

repeated .google.shopping.merchant.accounts.v1beta.TaxRule tax_rules = 3;

Parameter
Name Description
index int
Returns
Type Description
AccountTax.Builder

setAccount(long value)

public AccountTax.Builder setAccount(long value)

Output only. The ID of the account to which these account tax settings belong.

int64 account = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The account to set.

Returns
Type Description
AccountTax.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public AccountTax.Builder setName(String value)

Identifier. The name of the tax setting. Format: "{account_tax.name=accounts/{account}}"

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AccountTax.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AccountTax.Builder setNameBytes(ByteString value)

Identifier. The name of the tax setting. Format: "{account_tax.name=accounts/{account}}"

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AccountTax.Builder

This builder for chaining.

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

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

setTaxRules(int index, TaxRule value)

public AccountTax.Builder setTaxRules(int index, TaxRule value)

Tax rules. "Define the tax rules in each region. No tax will be presented if a region has no rule."

repeated .google.shopping.merchant.accounts.v1beta.TaxRule tax_rules = 3;

Parameters
Name Description
index int
value TaxRule
Returns
Type Description
AccountTax.Builder

setTaxRules(int index, TaxRule.Builder builderForValue)

public AccountTax.Builder setTaxRules(int index, TaxRule.Builder builderForValue)

Tax rules. "Define the tax rules in each region. No tax will be presented if a region has no rule."

repeated .google.shopping.merchant.accounts.v1beta.TaxRule tax_rules = 3;

Parameters
Name Description
index int
builderForValue TaxRule.Builder
Returns
Type Description
AccountTax.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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