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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
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];
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];
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];
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];
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];
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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Region.PostalCodeArea.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Region.PostalCodeArea build()
buildPartial()
public Region.PostalCodeArea buildPartial()
clear()
public Region.PostalCodeArea.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Region.PostalCodeArea.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Region.PostalCodeArea.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
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];
clone()
public Region.PostalCodeArea.Builder clone()
Overrides
getDefaultInstanceForType()
public Region.PostalCodeArea getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
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
|
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];
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];
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
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Region.PostalCodeArea.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Region.PostalCodeArea.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeFrom(Region.PostalCodeArea other)
public Region.PostalCodeArea.Builder mergeFrom(Region.PostalCodeArea other)
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Region.PostalCodeArea.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public Region.PostalCodeArea.Builder setField(Descriptors.FieldDescriptor field, Object value)
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];
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];
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Region.PostalCodeArea.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Region.PostalCodeArea.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides