public static final class AccountTax.Builder extends GeneratedMessage.Builder<AccountTax.Builder> implements AccountTaxOrBuilderThe tax settings of a merchant account. All methods require the admin role.
Protobuf type google.shopping.merchant.accounts.v1beta.AccountTax
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AccountTax.BuilderImplements
AccountTaxOrBuilderStatic 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 |
|
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 |
|
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. |
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. |
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 |
|
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 |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AccountTax.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AccountTax.Builder |
|
mergeFrom(AccountTax other)
public AccountTax.Builder mergeFrom(AccountTax other)| Parameter | |
|---|---|
| Name | Description |
other |
AccountTax |
| Returns | |
|---|---|
| Type | Description |
AccountTax.Builder |
|
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 |
longThe account to set. |
| Returns | |
|---|---|
| Type | Description |
AccountTax.Builder |
This builder for chaining. |
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 |
StringThe 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 |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
AccountTax.Builder |
This builder for chaining. |
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 |
|