Class Region.PostalCodeArea.Builder (0.1.0)

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

A list of postal codes that defines the region area. Note: All regions defined using postal codes are accessible through the account's ShippingSettings.postalCodeGroups resource.

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

Static Methods

getDescriptor()

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

Methods

addAllPostalCodes(Iterable<? extends Region.PostalCodeArea.PostalCodeRange> values)

public Region.PostalCodeArea.Builder addAllPostalCodes(Iterable<? extends Region.PostalCodeArea.PostalCodeRange> values)

Required. A range of postal codes.

repeated .google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.PostalCodeRange postal_codes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.PostalCodeRange>
Returns
Type Description
Region.PostalCodeArea.Builder

addPostalCodes(Region.PostalCodeArea.PostalCodeRange value)

public Region.PostalCodeArea.Builder addPostalCodes(Region.PostalCodeArea.PostalCodeRange value)

Required. A range of postal codes.

repeated .google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.PostalCodeRange postal_codes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Region.PostalCodeArea.PostalCodeRange
Returns
Type Description
Region.PostalCodeArea.Builder

addPostalCodes(Region.PostalCodeArea.PostalCodeRange.Builder builderForValue)

public Region.PostalCodeArea.Builder addPostalCodes(Region.PostalCodeArea.PostalCodeRange.Builder builderForValue)

Required. A range of postal codes.

repeated .google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.PostalCodeRange postal_codes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Region.PostalCodeArea.PostalCodeRange.Builder
Returns
Type Description
Region.PostalCodeArea.Builder

addPostalCodes(int index, Region.PostalCodeArea.PostalCodeRange value)

public Region.PostalCodeArea.Builder addPostalCodes(int index, Region.PostalCodeArea.PostalCodeRange value)

Required. A range of postal codes.

repeated .google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.PostalCodeRange postal_codes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Region.PostalCodeArea.PostalCodeRange
Returns
Type Description
Region.PostalCodeArea.Builder

addPostalCodes(int index, Region.PostalCodeArea.PostalCodeRange.Builder builderForValue)

public Region.PostalCodeArea.Builder addPostalCodes(int index, Region.PostalCodeArea.PostalCodeRange.Builder builderForValue)

Required. A range of postal codes.

repeated .google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.PostalCodeRange postal_codes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Region.PostalCodeArea.PostalCodeRange.Builder
Returns
Type Description
Region.PostalCodeArea.Builder

addPostalCodesBuilder()

public Region.PostalCodeArea.PostalCodeRange.Builder addPostalCodesBuilder()

Required. A range of postal codes.

repeated .google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.PostalCodeRange postal_codes = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Region.PostalCodeArea.PostalCodeRange.Builder

addPostalCodesBuilder(int index)

public Region.PostalCodeArea.PostalCodeRange.Builder addPostalCodesBuilder(int index)

Required. A range of postal codes.

repeated .google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.PostalCodeRange postal_codes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Region.PostalCodeArea.PostalCodeRange.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPostalCodes()

public Region.PostalCodeArea.Builder clearPostalCodes()

Required. A range of postal codes.

repeated .google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.PostalCodeRange postal_codes = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Region.PostalCodeArea.Builder

clearRegionCode()

public Region.PostalCodeArea.Builder clearRegionCode()

Required. CLDR territory code or the country the postal code group applies to.

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

Returns
Type Description
Region.PostalCodeArea.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getPostalCodes(int index)

public Region.PostalCodeArea.PostalCodeRange getPostalCodes(int index)

Required. A range of postal codes.

repeated .google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.PostalCodeRange postal_codes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Region.PostalCodeArea.PostalCodeRange

getPostalCodesBuilder(int index)

public Region.PostalCodeArea.PostalCodeRange.Builder getPostalCodesBuilder(int index)

Required. A range of postal codes.

repeated .google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.PostalCodeRange postal_codes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Region.PostalCodeArea.PostalCodeRange.Builder

getPostalCodesBuilderList()

public List<Region.PostalCodeArea.PostalCodeRange.Builder> getPostalCodesBuilderList()

Required. A range of postal codes.

repeated .google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.PostalCodeRange postal_codes = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getPostalCodesCount()

public int getPostalCodesCount()

Required. A range of postal codes.

repeated .google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.PostalCodeRange postal_codes = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getPostalCodesList()

public List<Region.PostalCodeArea.PostalCodeRange> getPostalCodesList()

Required. A range of postal codes.

repeated .google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.PostalCodeRange postal_codes = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<PostalCodeRange>

getPostalCodesOrBuilder(int index)

public Region.PostalCodeArea.PostalCodeRangeOrBuilder getPostalCodesOrBuilder(int index)

Required. A range of postal codes.

repeated .google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.PostalCodeRange postal_codes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Region.PostalCodeArea.PostalCodeRangeOrBuilder

getPostalCodesOrBuilderList()

public List<? extends Region.PostalCodeArea.PostalCodeRangeOrBuilder> getPostalCodesOrBuilderList()

Required. A range of postal codes.

repeated .google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.PostalCodeRange postal_codes = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.PostalCodeRangeOrBuilder>

getRegionCode()

public String getRegionCode()

Required. CLDR territory code or the country the postal code group applies to.

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

Returns
Type Description
String

The regionCode.

getRegionCodeBytes()

public ByteString getRegionCodeBytes()

Required. CLDR territory code or the country the postal code group applies to.

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

Returns
Type Description
ByteString

The bytes for regionCode.

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

mergeFrom(Message other)

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

mergeFrom(Region.PostalCodeArea other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePostalCodes(int index)

public Region.PostalCodeArea.Builder removePostalCodes(int index)

Required. A range of postal codes.

repeated .google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.PostalCodeRange postal_codes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Region.PostalCodeArea.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPostalCodes(int index, Region.PostalCodeArea.PostalCodeRange value)

public Region.PostalCodeArea.Builder setPostalCodes(int index, Region.PostalCodeArea.PostalCodeRange value)

Required. A range of postal codes.

repeated .google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.PostalCodeRange postal_codes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Region.PostalCodeArea.PostalCodeRange
Returns
Type Description
Region.PostalCodeArea.Builder

setPostalCodes(int index, Region.PostalCodeArea.PostalCodeRange.Builder builderForValue)

public Region.PostalCodeArea.Builder setPostalCodes(int index, Region.PostalCodeArea.PostalCodeRange.Builder builderForValue)

Required. A range of postal codes.

repeated .google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.PostalCodeRange postal_codes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Region.PostalCodeArea.PostalCodeRange.Builder
Returns
Type Description
Region.PostalCodeArea.Builder

setRegionCode(String value)

public Region.PostalCodeArea.Builder setRegionCode(String value)

Required. CLDR territory code or the country the postal code group applies to.

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

Parameter
Name Description
value String

The regionCode to set.

Returns
Type Description
Region.PostalCodeArea.Builder

This builder for chaining.

setRegionCodeBytes(ByteString value)

public Region.PostalCodeArea.Builder setRegionCodeBytes(ByteString value)

Required. CLDR territory code or the country the postal code group applies to.

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

Parameter
Name Description
value ByteString

The bytes for regionCode to set.

Returns
Type Description
Region.PostalCodeArea.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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