public final class Tax extends GeneratedMessage implements TaxOrBuilder
The Tax of the product.
Protobuf type google.shopping.merchant.products.v1beta.Tax
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Tax.Builder newBuilderForType()
protected Tax.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public Tax.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides