public final class Tax extends GeneratedMessageV3 implements TaxOrBuilder
The Tax of the product.
Protobuf type google.shopping.merchant.products.v1beta.Tax
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > TaxImplements
TaxOrBuilderStatic Fields
COUNTRY_FIELD_NUMBER
public static final int COUNTRY_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
LOCATION_ID_FIELD_NUMBER
public static final int LOCATION_ID_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
POSTAL_CODE_FIELD_NUMBER
public static final int POSTAL_CODE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
RATE_FIELD_NUMBER
public static final int RATE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
REGION_FIELD_NUMBER
public static final int REGION_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
TAX_SHIP_FIELD_NUMBER
public static final int TAX_SHIP_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static Tax getDefaultInstance()
Returns | |
---|---|
Type | Description |
Tax |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static Tax.Builder newBuilder()
Returns | |
---|---|
Type | Description |
Tax.Builder |
newBuilder(Tax prototype)
public static Tax.Builder newBuilder(Tax prototype)
Parameter | |
---|---|
Name | Description |
prototype |
Tax |
Returns | |
---|---|
Type | Description |
Tax.Builder |
parseDelimitedFrom(InputStream input)
public static Tax parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
Tax |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Tax parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Tax |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static Tax parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data |
byte[] |
Returns | |
---|---|
Type | Description |
Tax |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Tax parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Tax |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static Tax parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data |
ByteString |
Returns | |
---|---|
Type | Description |
Tax |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Tax parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Tax |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static Tax parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
Returns | |
---|---|
Type | Description |
Tax |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Tax parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Tax |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static Tax parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
Tax |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Tax parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Tax |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static Tax parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data |
ByteBuffer |
Returns | |
---|---|
Type | Description |
Tax |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Tax parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Tax |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<Tax> parser()
Returns | |
---|---|
Type | Description |
Parser<Tax> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj |
Object |
Returns | |
---|---|
Type | Description |
boolean |
getCountry()
public String getCountry()
The country within which the item is taxed, specified as a CLDR territory code.
string country = 2;
Returns | |
---|---|
Type | Description |
String |
The country. |
getCountryBytes()
public ByteString getCountryBytes()
The country within which the item is taxed, specified as a CLDR territory code.
string country = 2;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for country. |
getDefaultInstanceForType()
public Tax getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Tax |
getLocationId()
public long getLocationId()
The numeric ID of a location that the tax rate applies to as defined in the AdWords API.
int64 location_id = 5;
Returns | |
---|---|
Type | Description |
long |
The locationId. |
getParserForType()
public Parser<Tax> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<Tax> |
getPostalCode()
public String getPostalCode()
The postal code range that the tax rate applies to, represented by a ZIP code, a ZIP code prefix using * wildcard, a range between two ZIP codes or two ZIP code prefixes of equal length. Examples: 94114, 94, 94002-95460, 94-95*.
string postal_code = 6;
Returns | |
---|---|
Type | Description |
String |
The postalCode. |
getPostalCodeBytes()
public ByteString getPostalCodeBytes()
The postal code range that the tax rate applies to, represented by a ZIP code, a ZIP code prefix using * wildcard, a range between two ZIP codes or two ZIP code prefixes of equal length. Examples: 94114, 94, 94002-95460, 94-95*.
string postal_code = 6;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for postalCode. |
getRate()
public double getRate()
The percentage of tax rate that applies to the item price.
double rate = 1;
Returns | |
---|---|
Type | Description |
double |
The rate. |
getRegion()
public String getRegion()
The geographic region to which the tax rate applies.
string region = 3;
Returns | |
---|---|
Type | Description |
String |
The region. |
getRegionBytes()
public ByteString getRegionBytes()
The geographic region to which the tax rate applies.
string region = 3;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for region. |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
getTaxShip()
public boolean getTaxShip()
Set to true if tax is charged on shipping.
bool tax_ship = 4;
Returns | |
---|---|
Type | Description |
boolean |
The taxShip. |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public Tax.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
Tax.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Tax.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent |
BuilderParent |
Returns | |
---|---|
Type | Description |
Tax.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused |
UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public Tax.Builder toBuilder()
Returns | |
---|---|
Type | Description |
Tax.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |