public final class Tax extends GeneratedMessageV3 implements TaxOrBuilder
The Tax of the product.
Protobuf type google.shopping.merchant.products.v1beta.Tax
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int COUNTRY_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
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 |
|
public static final int RATE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int REGION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int TAX_SHIP_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static Tax getDefaultInstance()
Returns |
Type |
Description |
Tax |
|
public static final Descriptors.Descriptor getDescriptor()
public static Tax.Builder newBuilder()
public static Tax.Builder newBuilder(Tax prototype)
Parameter |
Name |
Description |
prototype |
Tax
|
public static Tax parseDelimitedFrom(InputStream input)
Returns |
Type |
Description |
Tax |
|
public static Tax parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Tax |
|
public static Tax parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
Returns |
Type |
Description |
Tax |
|
public static Tax parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Tax |
|
public static Tax parseFrom(ByteString data)
Returns |
Type |
Description |
Tax |
|
public static Tax parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Tax |
|
public static Tax parseFrom(CodedInputStream input)
Returns |
Type |
Description |
Tax |
|
public static Tax parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Tax |
|
public static Tax parseFrom(InputStream input)
Returns |
Type |
Description |
Tax |
|
public static Tax parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Tax |
|
public static Tax parseFrom(ByteBuffer data)
Returns |
Type |
Description |
Tax |
|
public static Tax parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Tax |
|
public static Parser<Tax> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
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.
|
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.
|
public Tax getDefaultInstanceForType()
Returns |
Type |
Description |
Tax |
|
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.
|
public Parser<Tax> getParserForType()
Overrides
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.
|
The percentage of tax rate that applies to the item price.
double rate = 1;
Returns |
Type |
Description |
double |
The rate.
|
public String getRegion()
The geographic region to which the tax rate applies.
string region = 3;
Returns |
Type |
Description |
String |
The region.
|
public ByteString getRegionBytes()
The geographic region to which the tax rate applies.
string region = 3;
Returns |
Type |
Description |
ByteString |
The bytes for region.
|
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
public boolean getTaxShip()
Set to true if tax is charged on shipping.
bool tax_ship = 4;
Returns |
Type |
Description |
boolean |
The taxShip.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Tax.Builder newBuilderForType()
protected Tax.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public Tax.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides