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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
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>
|
public AccountTax.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
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
|
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;
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
|
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;
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;
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
|
public AccountTax build()
public AccountTax buildPartial()
public AccountTax.Builder clear()
Overrides
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];
public AccountTax.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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];
public AccountTax.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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;
public AccountTax.Builder clone()
Overrides
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.
|
public AccountTax getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
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.
|
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
|
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
|
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;
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 |
|
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;
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
|
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> |
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public AccountTax.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public AccountTax.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public AccountTax.Builder mergeFrom(AccountTax other)
public final AccountTax.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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
|
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.
|
public AccountTax.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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.
|
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.
|
public AccountTax.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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
|
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;
public final AccountTax.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides