Class Tax.Builder (0.1.0)

public static final class Tax.Builder extends GeneratedMessageV3.Builder<Tax.Builder> implements TaxOrBuilder

The Tax of the product.

Protobuf type google.shopping.merchant.products.v1beta.Tax

Implements

TaxOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Tax.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Tax.Builder
Overrides

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
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public Tax.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Tax.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public Tax.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Tax.Builder
Overrides

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.

clone()

public Tax.Builder clone()
Returns
Type Description
Tax.Builder
Overrides

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
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Tax.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Tax.Builder
Overrides

mergeFrom(Tax other)

public Tax.Builder mergeFrom(Tax other)
Parameter
Name Description
other Tax
Returns
Type Description
Tax.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Tax.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Tax.Builder
Overrides

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 String

The 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 ByteString

The bytes for country to set.

Returns
Type Description
Tax.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Tax.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Tax.Builder
Overrides

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 long

The 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 String

The 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 ByteString

The 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 double

The 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 String

The 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 ByteString

The bytes for region to set.

Returns
Type Description
Tax.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Tax.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Tax.Builder
Overrides

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 boolean

The taxShip to set.

Returns
Type Description
Tax.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Tax.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Tax.Builder
Overrides