public final class Region extends GeneratedMessage implements RegionOrBuilder
Represents a geographic region that you can use as a target with both the
RegionalInventory and ShippingSettings services. You can define regions
as collections of either postal codes, radius areas or, in some countries,
using predefined geotargets.
A region must be defined by specifying exactly one of postal_code_area,
geotarget_area, or radius_area.
For more information, see Set up regions
for more information.
Protobuf type google.shopping.merchant.accounts.v1.Region
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
public static final int DISPLAY_NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int GEOTARGET_AREA_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
POSTAL_CODE_AREA_FIELD_NUMBER
public static final int POSTAL_CODE_AREA_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int RADIUS_AREA_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int REGIONAL_INVENTORY_ELIGIBLE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int SHIPPING_ELIGIBLE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
public static Region getDefaultInstance()
| Returns |
| Type |
Description |
Region |
|
public static final Descriptors.Descriptor getDescriptor()
public static Region.Builder newBuilder()
public static Region.Builder newBuilder(Region prototype)
| Parameter |
| Name |
Description |
prototype |
Region
|
public static Region parseDelimitedFrom(InputStream input)
| Returns |
| Type |
Description |
Region |
|
public static Region parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Region |
|
public static Region parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
| Returns |
| Type |
Description |
Region |
|
public static Region parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Region |
|
public static Region parseFrom(ByteString data)
| Returns |
| Type |
Description |
Region |
|
public static Region parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Region |
|
public static Region parseFrom(CodedInputStream input)
| Returns |
| Type |
Description |
Region |
|
public static Region parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Region |
|
public static Region parseFrom(InputStream input)
| Returns |
| Type |
Description |
Region |
|
public static Region parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Region |
|
public static Region parseFrom(ByteBuffer data)
| Returns |
| Type |
Description |
Region |
|
public static Region parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Region |
|
public static Parser<Region> parser()
Methods
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
public Region getDefaultInstanceForType()
| Returns |
| Type |
Description |
Region |
|
public String getDisplayName()
Optional. The display name of the region.
optional string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The displayName.
|
public ByteString getDisplayNameBytes()
Optional. The display name of the region.
optional string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for displayName.
|
public Region.GeoTargetArea getGeotargetArea()
Optional. A list of geotargets that defines the region area.
.google.shopping.merchant.accounts.v1.Region.GeoTargetArea geotarget_area = 4 [(.google.api.field_behavior) = OPTIONAL];
public Region.GeoTargetAreaOrBuilder getGeotargetAreaOrBuilder()
Optional. A list of geotargets that defines the region area.
.google.shopping.merchant.accounts.v1.Region.GeoTargetArea geotarget_area = 4 [(.google.api.field_behavior) = OPTIONAL];
Identifier. The resource name of the region.
Format: accounts/{account}/regions/{region}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns |
| Type |
Description |
String |
The name.
|
public ByteString getNameBytes()
Identifier. The resource name of the region.
Format: accounts/{account}/regions/{region}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns |
| Type |
Description |
ByteString |
The bytes for name.
|
public Parser<Region> getParserForType()
Overrides
getPostalCodeArea()
public Region.PostalCodeArea getPostalCodeArea()
Optional. A list of postal codes that defines the region area.
.google.shopping.merchant.accounts.v1.Region.PostalCodeArea postal_code_area = 3 [(.google.api.field_behavior) = OPTIONAL];
getPostalCodeAreaOrBuilder()
public Region.PostalCodeAreaOrBuilder getPostalCodeAreaOrBuilder()
Optional. A list of postal codes that defines the region area.
.google.shopping.merchant.accounts.v1.Region.PostalCodeArea postal_code_area = 3 [(.google.api.field_behavior) = OPTIONAL];
public Region.RadiusArea getRadiusArea()
Optional. A radius area that defines the region area.
.google.shopping.merchant.accounts.v1.Region.RadiusArea radius_area = 7 [(.google.api.field_behavior) = OPTIONAL];
public Region.RadiusAreaOrBuilder getRadiusAreaOrBuilder()
Optional. A radius area that defines the region area.
.google.shopping.merchant.accounts.v1.Region.RadiusArea radius_area = 7 [(.google.api.field_behavior) = OPTIONAL];
public BoolValue getRegionalInventoryEligible()
Output only. Indicates if the region is eligible for use in the Regional
Inventory configuration.
.google.protobuf.BoolValue regional_inventory_eligible = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
BoolValue |
The regionalInventoryEligible.
|
public BoolValueOrBuilder getRegionalInventoryEligibleOrBuilder()
Output only. Indicates if the region is eligible for use in the Regional
Inventory configuration.
.google.protobuf.BoolValue regional_inventory_eligible = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
public BoolValue getShippingEligible()
Output only. Indicates if the region is eligible for use in the Shipping
Services configuration.
.google.protobuf.BoolValue shipping_eligible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
BoolValue |
The shippingEligible.
|
public BoolValueOrBuilder getShippingEligibleOrBuilder()
Output only. Indicates if the region is eligible for use in the Shipping
Services configuration.
.google.protobuf.BoolValue shipping_eligible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public boolean hasDisplayName()
Optional. The display name of the region.
optional string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the displayName field is set.
|
public boolean hasGeotargetArea()
Optional. A list of geotargets that defines the region area.
.google.shopping.merchant.accounts.v1.Region.GeoTargetArea geotarget_area = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the geotargetArea field is set.
|
hasPostalCodeArea()
public boolean hasPostalCodeArea()
Optional. A list of postal codes that defines the region area.
.google.shopping.merchant.accounts.v1.Region.PostalCodeArea postal_code_area = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the postalCodeArea field is set.
|
public boolean hasRadiusArea()
Optional. A radius area that defines the region area.
.google.shopping.merchant.accounts.v1.Region.RadiusArea radius_area = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the radiusArea field is set.
|
public boolean hasRegionalInventoryEligible()
Output only. Indicates if the region is eligible for use in the Regional
Inventory configuration.
.google.protobuf.BoolValue regional_inventory_eligible = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the regionalInventoryEligible field is set.
|
public boolean hasShippingEligible()
Output only. Indicates if the region is eligible for use in the Shipping
Services configuration.
.google.protobuf.BoolValue shipping_eligible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the shippingEligible field is set.
|
| Returns |
| Type |
Description |
int |
|
Overrides
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Region.Builder newBuilderForType()
protected Region.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public Region.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides