Class AccountTax (0.3.0)

public final class AccountTax extends GeneratedMessageV3 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 Fields

ACCOUNT_FIELD_NUMBER

public static final int ACCOUNT_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

TAX_RULES_FIELD_NUMBER

public static final int TAX_RULES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AccountTax getDefaultInstance()
Returns
Type Description
AccountTax

getDescriptor()

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

newBuilder()

public static AccountTax.Builder newBuilder()
Returns
Type Description
AccountTax.Builder

newBuilder(AccountTax prototype)

public static AccountTax.Builder newBuilder(AccountTax prototype)
Parameter
Name Description
prototype AccountTax
Returns
Type Description
AccountTax.Builder

parseDelimitedFrom(InputStream input)

public static AccountTax parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AccountTax
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AccountTax parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccountTax
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AccountTax parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AccountTax
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AccountTax parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccountTax
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AccountTax parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AccountTax
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AccountTax parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccountTax
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AccountTax parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AccountTax
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AccountTax parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccountTax
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AccountTax parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AccountTax
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AccountTax parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccountTax
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AccountTax parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AccountTax
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AccountTax parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccountTax
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AccountTax> parser()
Returns
Type Description
Parser<AccountTax>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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.

getParserForType()

public Parser<AccountTax> getParserForType()
Returns
Type Description
Parser<AccountTax>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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

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>

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AccountTax.Builder newBuilderForType()
Returns
Type Description
AccountTax.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AccountTax.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AccountTax.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AccountTax.Builder toBuilder()
Returns
Type Description
AccountTax.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException