public static final class Region.RadiusArea.Builder extends GeneratedMessage.Builder<Region.RadiusArea.Builder> implements Region.RadiusAreaOrBuilderA radius area that defines the region area.
Protobuf type google.shopping.merchant.accounts.v1.Region.RadiusArea
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Region.RadiusArea.BuilderImplements
Region.RadiusAreaOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Region.RadiusArea build()| Returns | |
|---|---|
| Type | Description |
Region.RadiusArea |
|
buildPartial()
public Region.RadiusArea buildPartial()| Returns | |
|---|---|
| Type | Description |
Region.RadiusArea |
|
clear()
public Region.RadiusArea.Builder clear()| Returns | |
|---|---|
| Type | Description |
Region.RadiusArea.Builder |
|
clearLatLng()
public Region.RadiusArea.Builder clearLatLng()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 |
Region.RadiusArea.Builder |
|
clearRadius()
public Region.RadiusArea.Builder clearRadius()Required. The radius distance of the area.
double radius = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Region.RadiusArea.Builder |
This builder for chaining. |
clearRadiusUnits()
public Region.RadiusArea.Builder clearRadiusUnits()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.Builder |
This builder for chaining. |
clearRegionCode()
public Region.RadiusArea.Builder clearRegionCode()Required. CLDR territory code or the country the radius area applies to.
string region_code = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Region.RadiusArea.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Region.RadiusArea getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Region.RadiusArea |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
getLatLngBuilder()
public LatLng.Builder getLatLngBuilder()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.Builder |
|
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 |
|
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. |
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. |
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.RadiusArea.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Region.RadiusArea.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Region.RadiusArea.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Region.RadiusArea.Builder |
|
mergeFrom(Region.RadiusArea other)
public Region.RadiusArea.Builder mergeFrom(Region.RadiusArea other)| Parameter | |
|---|---|
| Name | Description |
other |
Region.RadiusArea |
| Returns | |
|---|---|
| Type | Description |
Region.RadiusArea.Builder |
|
mergeLatLng(LatLng value)
public Region.RadiusArea.Builder mergeLatLng(LatLng value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.LatLng |
| Returns | |
|---|---|
| Type | Description |
Region.RadiusArea.Builder |
|
setLatLng(LatLng value)
public Region.RadiusArea.Builder setLatLng(LatLng value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.LatLng |
| Returns | |
|---|---|
| Type | Description |
Region.RadiusArea.Builder |
|
setLatLng(LatLng.Builder builderForValue)
public Region.RadiusArea.Builder setLatLng(LatLng.Builder builderForValue)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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.LatLng.Builder |
| Returns | |
|---|---|
| Type | Description |
Region.RadiusArea.Builder |
|
setRadius(double value)
public Region.RadiusArea.Builder setRadius(double value)Required. The radius distance of the area.
double radius = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
doubleThe radius to set. |
| Returns | |
|---|---|
| Type | Description |
Region.RadiusArea.Builder |
This builder for chaining. |
setRadiusUnits(Region.RadiusArea.RadiusUnits value)
public Region.RadiusArea.Builder setRadiusUnits(Region.RadiusArea.RadiusUnits value)Optional. The unit of the radius.
.google.shopping.merchant.accounts.v1.Region.RadiusArea.RadiusUnits radius_units = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Region.RadiusArea.RadiusUnitsThe radiusUnits to set. |
| Returns | |
|---|---|
| Type | Description |
Region.RadiusArea.Builder |
This builder for chaining. |
setRadiusUnitsValue(int value)
public Region.RadiusArea.Builder setRadiusUnitsValue(int value)Optional. The unit of the radius.
.google.shopping.merchant.accounts.v1.Region.RadiusArea.RadiusUnits radius_units = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for radiusUnits to set. |
| Returns | |
|---|---|
| Type | Description |
Region.RadiusArea.Builder |
This builder for chaining. |
setRegionCode(String value)
public Region.RadiusArea.Builder setRegionCode(String value)Required. CLDR territory code or the country the radius area applies to.
string region_code = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe regionCode to set. |
| Returns | |
|---|---|
| Type | Description |
Region.RadiusArea.Builder |
This builder for chaining. |
setRegionCodeBytes(ByteString value)
public Region.RadiusArea.Builder setRegionCodeBytes(ByteString value)Required. CLDR territory code or the country the radius area 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.RadiusArea.Builder |
This builder for chaining. |