Class TaxRule.TaxPostalCodeRange (0.5.0)

public static final class TaxRule.TaxPostalCodeRange extends GeneratedMessageV3 implements TaxRule.TaxPostalCodeRangeOrBuilder

A range of postal codes that defines the area.

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

Static Fields

END_FIELD_NUMBER

public static final int END_FIELD_NUMBER
Field Value
Type Description
int

START_FIELD_NUMBER

public static final int START_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TaxRule.TaxPostalCodeRange getDefaultInstance()
Returns
Type Description
TaxRule.TaxPostalCodeRange

getDescriptor()

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

newBuilder()

public static TaxRule.TaxPostalCodeRange.Builder newBuilder()
Returns
Type Description
TaxRule.TaxPostalCodeRange.Builder

newBuilder(TaxRule.TaxPostalCodeRange prototype)

public static TaxRule.TaxPostalCodeRange.Builder newBuilder(TaxRule.TaxPostalCodeRange prototype)
Parameter
Name Description
prototype TaxRule.TaxPostalCodeRange
Returns
Type Description
TaxRule.TaxPostalCodeRange.Builder

parseDelimitedFrom(InputStream input)

public static TaxRule.TaxPostalCodeRange parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TaxRule.TaxPostalCodeRange
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TaxRule.TaxPostalCodeRange parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TaxRule.TaxPostalCodeRange
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static TaxRule.TaxPostalCodeRange parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
TaxRule.TaxPostalCodeRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TaxRule.TaxPostalCodeRange parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TaxRule.TaxPostalCodeRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TaxRule.TaxPostalCodeRange parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
TaxRule.TaxPostalCodeRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TaxRule.TaxPostalCodeRange parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TaxRule.TaxPostalCodeRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TaxRule.TaxPostalCodeRange parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TaxRule.TaxPostalCodeRange
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TaxRule.TaxPostalCodeRange parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TaxRule.TaxPostalCodeRange
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static TaxRule.TaxPostalCodeRange parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TaxRule.TaxPostalCodeRange
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TaxRule.TaxPostalCodeRange parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TaxRule.TaxPostalCodeRange
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static TaxRule.TaxPostalCodeRange parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TaxRule.TaxPostalCodeRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TaxRule.TaxPostalCodeRange parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TaxRule.TaxPostalCodeRange
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<TaxRule.TaxPostalCodeRange> parser()
Returns
Type Description
Parser<TaxPostalCodeRange>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

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.

getParserForType()

public Parser<TaxRule.TaxPostalCodeRange> getParserForType()
Returns
Type Description
Parser<TaxPostalCodeRange>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public TaxRule.TaxPostalCodeRange.Builder newBuilderForType()
Returns
Type Description
TaxRule.TaxPostalCodeRange.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TaxRule.TaxPostalCodeRange.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TaxRule.TaxPostalCodeRange.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public TaxRule.TaxPostalCodeRange.Builder toBuilder()
Returns
Type Description
TaxRule.TaxPostalCodeRange.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException