Class Region.RadiusArea (1.11.0)

public static final class Region.RadiusArea extends GeneratedMessage implements Region.RadiusAreaOrBuilder

A radius area that defines the region area.

Protobuf type google.shopping.merchant.accounts.v1.Region.RadiusArea

Static Fields

LAT_LNG_FIELD_NUMBER

public static final int LAT_LNG_FIELD_NUMBER
Field Value
Type Description
int

RADIUS_FIELD_NUMBER

public static final int RADIUS_FIELD_NUMBER
Field Value
Type Description
int

RADIUS_UNITS_FIELD_NUMBER

public static final int RADIUS_UNITS_FIELD_NUMBER
Field Value
Type Description
int

REGION_CODE_FIELD_NUMBER

public static final int REGION_CODE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Region.RadiusArea getDefaultInstance()
Returns
Type Description
Region.RadiusArea

getDescriptor()

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

newBuilder()

public static Region.RadiusArea.Builder newBuilder()
Returns
Type Description
Region.RadiusArea.Builder

newBuilder(Region.RadiusArea prototype)

public static Region.RadiusArea.Builder newBuilder(Region.RadiusArea prototype)
Parameter
Name Description
prototype Region.RadiusArea
Returns
Type Description
Region.RadiusArea.Builder

parseDelimitedFrom(InputStream input)

public static Region.RadiusArea parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Region.RadiusArea
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Region.RadiusArea parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Region.RadiusArea
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Region.RadiusArea parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Region.RadiusArea
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Region.RadiusArea parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Region.RadiusArea
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Region.RadiusArea parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Region.RadiusArea
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Region.RadiusArea parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Region.RadiusArea
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Region.RadiusArea parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Region.RadiusArea
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Region.RadiusArea parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Region.RadiusArea
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Region.RadiusArea parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Region.RadiusArea
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Region.RadiusArea parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Region.RadiusArea
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Region.RadiusArea parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Region.RadiusArea
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Region.RadiusArea parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Region.RadiusArea
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Region.RadiusArea> parser()
Returns
Type Description
Parser<RadiusArea>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

getLatLng()

public LatLng getLatLng()

Required. The center of the radius area. It represents a latitude/longitude pair in decimal degrees format.

.google.type.LatLng lat_lng = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.LatLng

The latLng.

getLatLngOrBuilder()

public LatLngOrBuilder getLatLngOrBuilder()

Required. The center of the radius area. It represents a latitude/longitude pair in decimal degrees format.

.google.type.LatLng lat_lng = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.LatLngOrBuilder

getParserForType()

public Parser<Region.RadiusArea> getParserForType()
Returns
Type Description
Parser<RadiusArea>
Overrides

getRadius()

public double getRadius()

Required. The radius distance of the area.

double radius = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
double

The radius.

getRadiusUnits()

public Region.RadiusArea.RadiusUnits getRadiusUnits()

Optional. The unit of the radius.

.google.shopping.merchant.accounts.v1.Region.RadiusArea.RadiusUnits radius_units = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Region.RadiusArea.RadiusUnits

The radiusUnits.

getRadiusUnitsValue()

public int getRadiusUnitsValue()

Optional. The unit of the radius.

.google.shopping.merchant.accounts.v1.Region.RadiusArea.RadiusUnits radius_units = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for radiusUnits.

getRegionCode()

public String getRegionCode()

Required. CLDR territory code or the country the radius area 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 radius area applies to.

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

Returns
Type Description
ByteString

The bytes for regionCode.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasLatLng()

public boolean hasLatLng()

Required. The center of the radius area. It represents a latitude/longitude pair in decimal degrees format.

.google.type.LatLng lat_lng = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the latLng field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Region.RadiusArea.Builder newBuilderForType()
Returns
Type Description
Region.RadiusArea.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Region.RadiusArea.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Region.RadiusArea.Builder
Overrides

toBuilder()

public Region.RadiusArea.Builder toBuilder()
Returns
Type Description
Region.RadiusArea.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException