public static final class Tax.Builder extends GeneratedMessage.Builder<Tax.Builder> implements TaxOrBuilderThe Tax of the product.
Protobuf type google.shopping.merchant.products.v1beta.Tax
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Tax.BuilderImplements
TaxOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Tax build()| Returns | |
|---|---|
| Type | Description |
Tax |
|
buildPartial()
public Tax buildPartial()| Returns | |
|---|---|
| Type | Description |
Tax |
|
clear()
public Tax.Builder clear()| Returns | |
|---|---|
| Type | Description |
Tax.Builder |
|
clearCountry()
public Tax.Builder clearCountry()The country within which the item is taxed, specified as a CLDR territory code.
string country = 2;
| Returns | |
|---|---|
| Type | Description |
Tax.Builder |
This builder for chaining. |
clearLocationId()
public Tax.Builder clearLocationId()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 |
Tax.Builder |
This builder for chaining. |
clearPostalCode()
public Tax.Builder clearPostalCode()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 |
Tax.Builder |
This builder for chaining. |
clearRate()
public Tax.Builder clearRate()The percentage of tax rate that applies to the item price.
double rate = 1;
| Returns | |
|---|---|
| Type | Description |
Tax.Builder |
This builder for chaining. |
clearRegion()
public Tax.Builder clearRegion()The geographic region to which the tax rate applies.
string region = 3;
| Returns | |
|---|---|
| Type | Description |
Tax.Builder |
This builder for chaining. |
clearTaxShip()
public Tax.Builder clearTaxShip()Set to true if tax is charged on shipping.
bool tax_ship = 4;
| Returns | |
|---|---|
| Type | Description |
Tax.Builder |
This builder for chaining. |
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 |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
getTaxShip()
public boolean getTaxShip()Set to true if tax is charged on shipping.
bool tax_ship = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
The taxShip. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Tax.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Tax.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Tax.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Tax.Builder |
|
mergeFrom(Tax other)
public Tax.Builder mergeFrom(Tax other)| Parameter | |
|---|---|
| Name | Description |
other |
Tax |
| Returns | |
|---|---|
| Type | Description |
Tax.Builder |
|
setCountry(String value)
public Tax.Builder setCountry(String value)The country within which the item is taxed, specified as a CLDR territory code.
string country = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe country to set. |
| Returns | |
|---|---|
| Type | Description |
Tax.Builder |
This builder for chaining. |
setCountryBytes(ByteString value)
public Tax.Builder setCountryBytes(ByteString value)The country within which the item is taxed, specified as a CLDR territory code.
string country = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for country to set. |
| Returns | |
|---|---|
| Type | Description |
Tax.Builder |
This builder for chaining. |
setLocationId(long value)
public Tax.Builder setLocationId(long value)The numeric ID of a location that the tax rate applies to as defined in the AdWords API.
int64 location_id = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe locationId to set. |
| Returns | |
|---|---|
| Type | Description |
Tax.Builder |
This builder for chaining. |
setPostalCode(String value)
public Tax.Builder setPostalCode(String value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe postalCode to set. |
| Returns | |
|---|---|
| Type | Description |
Tax.Builder |
This builder for chaining. |
setPostalCodeBytes(ByteString value)
public Tax.Builder setPostalCodeBytes(ByteString value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for postalCode to set. |
| Returns | |
|---|---|
| Type | Description |
Tax.Builder |
This builder for chaining. |
setRate(double value)
public Tax.Builder setRate(double value)The percentage of tax rate that applies to the item price.
double rate = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
doubleThe rate to set. |
| Returns | |
|---|---|
| Type | Description |
Tax.Builder |
This builder for chaining. |
setRegion(String value)
public Tax.Builder setRegion(String value)The geographic region to which the tax rate applies.
string region = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe region to set. |
| Returns | |
|---|---|
| Type | Description |
Tax.Builder |
This builder for chaining. |
setRegionBytes(ByteString value)
public Tax.Builder setRegionBytes(ByteString value)The geographic region to which the tax rate applies.
string region = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for region to set. |
| Returns | |
|---|---|
| Type | Description |
Tax.Builder |
This builder for chaining. |
setTaxShip(boolean value)
public Tax.Builder setTaxShip(boolean value)Set to true if tax is charged on shipping.
bool tax_ship = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe taxShip to set. |
| Returns | |
|---|---|
| Type | Description |
Tax.Builder |
This builder for chaining. |