Class TaxRule.TaxPostalCodeRange.Builder (1.11.0)

public static final class TaxRule.TaxPostalCodeRange.Builder extends GeneratedMessage.Builder<TaxRule.TaxPostalCodeRange.Builder> implements TaxRule.TaxPostalCodeRangeOrBuilder

A range of postal codes that defines the area.

Protobuf type google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange

Static Methods

getDescriptor()

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

Methods

build()

public TaxRule.TaxPostalCodeRange build()
Returns
Type Description
TaxRule.TaxPostalCodeRange

buildPartial()

public TaxRule.TaxPostalCodeRange buildPartial()
Returns
Type Description
TaxRule.TaxPostalCodeRange

clear()

public TaxRule.TaxPostalCodeRange.Builder clear()
Returns
Type Description
TaxRule.TaxPostalCodeRange.Builder
Overrides

clearEnd()

public TaxRule.TaxPostalCodeRange.Builder clearEnd()

The end of the postal code range. Will be the same as start if not specified.

string end = 2;

Returns
Type Description
TaxRule.TaxPostalCodeRange.Builder

This builder for chaining.

clearStart()

public TaxRule.TaxPostalCodeRange.Builder clearStart()

Required. The start of the postal code range, which is also the smallest in the range.

string start = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TaxRule.TaxPostalCodeRange.Builder

This builder for chaining.

getDefaultInstanceForType()

public TaxRule.TaxPostalCodeRange getDefaultInstanceForType()
Returns
Type Description
TaxRule.TaxPostalCodeRange

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnd()

public String getEnd()

The end of the postal code range. Will be the same as start if not specified.

string end = 2;

Returns
Type Description
String

The end.

getEndBytes()

public ByteString getEndBytes()

The end of the postal code range. Will be the same as start if not specified.

string end = 2;

Returns
Type Description
ByteString

The bytes for end.

getStart()

public String getStart()

Required. The start of the postal code range, which is also the smallest in the range.

string start = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The start.

getStartBytes()

public ByteString getStartBytes()

Required. The start of the postal code range, which is also the smallest in the range.

string start = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for start.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TaxRule.TaxPostalCodeRange.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TaxRule.TaxPostalCodeRange.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(TaxRule.TaxPostalCodeRange other)

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

setEnd(String value)

public TaxRule.TaxPostalCodeRange.Builder setEnd(String value)

The end of the postal code range. Will be the same as start if not specified.

string end = 2;

Parameter
Name Description
value String

The end to set.

Returns
Type Description
TaxRule.TaxPostalCodeRange.Builder

This builder for chaining.

setEndBytes(ByteString value)

public TaxRule.TaxPostalCodeRange.Builder setEndBytes(ByteString value)

The end of the postal code range. Will be the same as start if not specified.

string end = 2;

Parameter
Name Description
value ByteString

The bytes for end to set.

Returns
Type Description
TaxRule.TaxPostalCodeRange.Builder

This builder for chaining.

setStart(String value)

public TaxRule.TaxPostalCodeRange.Builder setStart(String value)

Required. The start of the postal code range, which is also the smallest in the range.

string start = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The start to set.

Returns
Type Description
TaxRule.TaxPostalCodeRange.Builder

This builder for chaining.

setStartBytes(ByteString value)

public TaxRule.TaxPostalCodeRange.Builder setStartBytes(ByteString value)

Required. The start of the postal code range, which is also the smallest in the range.

string start = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for start to set.

Returns
Type Description
TaxRule.TaxPostalCodeRange.Builder

This builder for chaining.