Class Region.PostalCodeArea.PostalCodeRange.Builder (0.9.0)

public static final class Region.PostalCodeArea.PostalCodeRange.Builder extends GeneratedMessageV3.Builder<Region.PostalCodeArea.PostalCodeRange.Builder> implements Region.PostalCodeArea.PostalCodeRangeOrBuilder

A range of postal codes that defines the region area.

Protobuf type google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.PostalCodeRange

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Region.PostalCodeArea.PostalCodeRange build()
Returns
Type Description
Region.PostalCodeArea.PostalCodeRange

buildPartial()

public Region.PostalCodeArea.PostalCodeRange buildPartial()
Returns
Type Description
Region.PostalCodeArea.PostalCodeRange

clear()

public Region.PostalCodeArea.PostalCodeRange.Builder clear()
Returns
Type Description
Region.PostalCodeArea.PostalCodeRange.Builder
Overrides

clearBegin()

public Region.PostalCodeArea.PostalCodeRange.Builder clearBegin()

Required. A postal code or a pattern of the form prefix* denoting the inclusive lower bound of the range defining the area. Examples values: 94108, 9410, 9.

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

Returns
Type Description
Region.PostalCodeArea.PostalCodeRange.Builder

This builder for chaining.

clearEnd()

public Region.PostalCodeArea.PostalCodeRange.Builder clearEnd()

Optional. A postal code or a pattern of the form prefix* denoting the inclusive upper bound of the range defining the area. It must have the same length as postalCodeRangeBegin: if postalCodeRangeBegin is a postal code then postalCodeRangeEnd must be a postal code too; if postalCodeRangeBegin is a pattern then postalCodeRangeEnd must be a pattern with the same prefix length. Optional: if not set, then the area is defined as being all the postal codes matching postalCodeRangeBegin.

string end = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Region.PostalCodeArea.PostalCodeRange.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Region.PostalCodeArea.PostalCodeRange.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Region.PostalCodeArea.PostalCodeRange.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Region.PostalCodeArea.PostalCodeRange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Region.PostalCodeArea.PostalCodeRange.Builder
Overrides

clone()

public Region.PostalCodeArea.PostalCodeRange.Builder clone()
Returns
Type Description
Region.PostalCodeArea.PostalCodeRange.Builder
Overrides

getBegin()

public String getBegin()

Required. A postal code or a pattern of the form prefix* denoting the inclusive lower bound of the range defining the area. Examples values: 94108, 9410, 9.

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

Returns
Type Description
String

The begin.

getBeginBytes()

public ByteString getBeginBytes()

Required. A postal code or a pattern of the form prefix* denoting the inclusive lower bound of the range defining the area. Examples values: 94108, 9410, 9.

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

Returns
Type Description
ByteString

The bytes for begin.

getDefaultInstanceForType()

public Region.PostalCodeArea.PostalCodeRange getDefaultInstanceForType()
Returns
Type Description
Region.PostalCodeArea.PostalCodeRange

getDescriptorForType()

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

getEnd()

public String getEnd()

Optional. A postal code or a pattern of the form prefix* denoting the inclusive upper bound of the range defining the area. It must have the same length as postalCodeRangeBegin: if postalCodeRangeBegin is a postal code then postalCodeRangeEnd must be a postal code too; if postalCodeRangeBegin is a pattern then postalCodeRangeEnd must be a pattern with the same prefix length. Optional: if not set, then the area is defined as being all the postal codes matching postalCodeRangeBegin.

string end = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The end.

getEndBytes()

public ByteString getEndBytes()

Optional. A postal code or a pattern of the form prefix* denoting the inclusive upper bound of the range defining the area. It must have the same length as postalCodeRangeBegin: if postalCodeRangeBegin is a postal code then postalCodeRangeEnd must be a postal code too; if postalCodeRangeBegin is a pattern then postalCodeRangeEnd must be a pattern with the same prefix length. Optional: if not set, then the area is defined as being all the postal codes matching postalCodeRangeBegin.

string end = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for end.

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 Region.PostalCodeArea.PostalCodeRange.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Region.PostalCodeArea.PostalCodeRange.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Region.PostalCodeArea.PostalCodeRange.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Region.PostalCodeArea.PostalCodeRange.Builder
Overrides

mergeFrom(Region.PostalCodeArea.PostalCodeRange other)

public Region.PostalCodeArea.PostalCodeRange.Builder mergeFrom(Region.PostalCodeArea.PostalCodeRange other)
Parameter
Name Description
other Region.PostalCodeArea.PostalCodeRange
Returns
Type Description
Region.PostalCodeArea.PostalCodeRange.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Region.PostalCodeArea.PostalCodeRange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Region.PostalCodeArea.PostalCodeRange.Builder
Overrides

setBegin(String value)

public Region.PostalCodeArea.PostalCodeRange.Builder setBegin(String value)

Required. A postal code or a pattern of the form prefix* denoting the inclusive lower bound of the range defining the area. Examples values: 94108, 9410, 9.

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

Parameter
Name Description
value String

The begin to set.

Returns
Type Description
Region.PostalCodeArea.PostalCodeRange.Builder

This builder for chaining.

setBeginBytes(ByteString value)

public Region.PostalCodeArea.PostalCodeRange.Builder setBeginBytes(ByteString value)

Required. A postal code or a pattern of the form prefix* denoting the inclusive lower bound of the range defining the area. Examples values: 94108, 9410, 9.

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

Parameter
Name Description
value ByteString

The bytes for begin to set.

Returns
Type Description
Region.PostalCodeArea.PostalCodeRange.Builder

This builder for chaining.

setEnd(String value)

public Region.PostalCodeArea.PostalCodeRange.Builder setEnd(String value)

Optional. A postal code or a pattern of the form prefix* denoting the inclusive upper bound of the range defining the area. It must have the same length as postalCodeRangeBegin: if postalCodeRangeBegin is a postal code then postalCodeRangeEnd must be a postal code too; if postalCodeRangeBegin is a pattern then postalCodeRangeEnd must be a pattern with the same prefix length. Optional: if not set, then the area is defined as being all the postal codes matching postalCodeRangeBegin.

string end = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The end to set.

Returns
Type Description
Region.PostalCodeArea.PostalCodeRange.Builder

This builder for chaining.

setEndBytes(ByteString value)

public Region.PostalCodeArea.PostalCodeRange.Builder setEndBytes(ByteString value)

Optional. A postal code or a pattern of the form prefix* denoting the inclusive upper bound of the range defining the area. It must have the same length as postalCodeRangeBegin: if postalCodeRangeBegin is a postal code then postalCodeRangeEnd must be a postal code too; if postalCodeRangeBegin is a pattern then postalCodeRangeEnd must be a pattern with the same prefix length. Optional: if not set, then the area is defined as being all the postal codes matching postalCodeRangeBegin.

string end = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for end to set.

Returns
Type Description
Region.PostalCodeArea.PostalCodeRange.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final Region.PostalCodeArea.PostalCodeRange.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Region.PostalCodeArea.PostalCodeRange.Builder
Overrides