public static final class Region.PostalCodeArea.Builder extends GeneratedMessage.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.v1.Region.PostalCodeArea
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Region.PostalCodeArea.BuilderImplements
Region.PostalCodeAreaOrBuilderStatic 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.v1.Region.PostalCodeArea.PostalCodeRange postal_codes = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.shopping.merchant.accounts.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.Region.PostalCodeArea.PostalCodeRange postal_codes = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Region.PostalCodeArea.PostalCodeRange.Builder |
|
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 |
|
clearPostalCodes()
public Region.PostalCodeArea.Builder clearPostalCodes()Required. A range of postal codes.
repeated .google.shopping.merchant.accounts.v1.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. |
getDefaultInstanceForType()
public Region.PostalCodeArea getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Region.PostalCodeArea |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getPostalCodes(int index)
public Region.PostalCodeArea.PostalCodeRange getPostalCodes(int index)Required. A range of postal codes.
repeated .google.shopping.merchant.accounts.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.Region.PostalCodeArea.PostalCodeRange postal_codes = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.shopping.merchant.accounts.v1.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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
mergeFrom(Region.PostalCodeArea other)
public Region.PostalCodeArea.Builder mergeFrom(Region.PostalCodeArea other)| Parameter | |
|---|---|
| Name | Description |
other |
Region.PostalCodeArea |
| Returns | |
|---|---|
| Type | Description |
Region.PostalCodeArea.Builder |
|
removePostalCodes(int index)
public Region.PostalCodeArea.Builder removePostalCodes(int index)Required. A range of postal codes.
repeated .google.shopping.merchant.accounts.v1.Region.PostalCodeArea.PostalCodeRange postal_codes = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Region.PostalCodeArea.Builder |
|
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.v1.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.v1.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 |
StringThe 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 |
ByteStringThe bytes for regionCode to set. |
| Returns | |
|---|---|
| Type | Description |
Region.PostalCodeArea.Builder |
This builder for chaining. |