public static final class Location.Builder extends GeneratedMessage.Builder<Location.Builder> implements LocationOrBuilderInformation about a location.
Protobuf type google.backstory.Location
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Location.BuilderImplements
LocationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Location build()| Returns | |
|---|---|
| Type | Description |
Location |
|
buildPartial()
public Location buildPartial()| Returns | |
|---|---|
| Type | Description |
Location |
|
clear()
public Location.Builder clear()| Returns | |
|---|---|
| Type | Description |
Location.Builder |
|
clearCity()
public Location.Builder clearCity()The city.
string city = 1;
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
This builder for chaining. |
clearCountryOrRegion()
public Location.Builder clearCountryOrRegion()The country or region.
string country_or_region = 3;
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
This builder for chaining. |
clearDeskName()
public Location.Builder clearDeskName()Desk name or individual location, typically for an employee in an office. (e.g. "IN-BLR-BCPC-11-1121D").
string desk_name = 5;
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
This builder for chaining. |
clearFloorName()
public Location.Builder clearFloorName()Floor name, number or a combination of the two for a building. (e.g. "1-A").
string floor_name = 6;
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
This builder for chaining. |
clearName()
public Location.Builder clearName()Custom location name (e.g. building or site name like "London Office"). For cloud environments, this is the region (e.g. "us-west2").
string name = 4;
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
This builder for chaining. |
clearRegionCoordinates()
public Location.Builder clearRegionCoordinates()Coordinates for the associated region. See https://cloud.google.com/vision/docs/reference/rest/v1/LatLng for a description of the fields.
.google.type.LatLng region_coordinates = 9;
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
|
clearRegionLatitude() (deprecated)
public Location.Builder clearRegionLatitude()Deprecated. google.backstory.Location.region_latitude is deprecated. See backstory/udm.proto;l=5077
Deprecated: use region_coordinates.
float region_latitude = 7 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
This builder for chaining. |
clearRegionLongitude() (deprecated)
public Location.Builder clearRegionLongitude()Deprecated. google.backstory.Location.region_longitude is deprecated. See backstory/udm.proto;l=5080
Deprecated: use region_coordinates.
float region_longitude = 8 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
This builder for chaining. |
clearState()
public Location.Builder clearState()The state.
string state = 2;
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
This builder for chaining. |
getCity()
public String getCity()The city.
string city = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The city. |
getCityBytes()
public ByteString getCityBytes()The city.
string city = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for city. |
getCountryOrRegion()
public String getCountryOrRegion()The country or region.
string country_or_region = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The countryOrRegion. |
getCountryOrRegionBytes()
public ByteString getCountryOrRegionBytes()The country or region.
string country_or_region = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for countryOrRegion. |
getDefaultInstanceForType()
public Location getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Location |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDeskName()
public String getDeskName()Desk name or individual location, typically for an employee in an office. (e.g. "IN-BLR-BCPC-11-1121D").
string desk_name = 5;
| Returns | |
|---|---|
| Type | Description |
String |
The deskName. |
getDeskNameBytes()
public ByteString getDeskNameBytes()Desk name or individual location, typically for an employee in an office. (e.g. "IN-BLR-BCPC-11-1121D").
string desk_name = 5;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for deskName. |
getFloorName()
public String getFloorName()Floor name, number or a combination of the two for a building. (e.g. "1-A").
string floor_name = 6;
| Returns | |
|---|---|
| Type | Description |
String |
The floorName. |
getFloorNameBytes()
public ByteString getFloorNameBytes()Floor name, number or a combination of the two for a building. (e.g. "1-A").
string floor_name = 6;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for floorName. |
getName()
public String getName()Custom location name (e.g. building or site name like "London Office"). For cloud environments, this is the region (e.g. "us-west2").
string name = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Custom location name (e.g. building or site name like "London Office"). For cloud environments, this is the region (e.g. "us-west2").
string name = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getRegionCoordinates()
public LatLng getRegionCoordinates()Coordinates for the associated region. See https://cloud.google.com/vision/docs/reference/rest/v1/LatLng for a description of the fields.
.google.type.LatLng region_coordinates = 9;
| Returns | |
|---|---|
| Type | Description |
com.google.type.LatLng |
The regionCoordinates. |
getRegionCoordinatesBuilder()
public LatLng.Builder getRegionCoordinatesBuilder()Coordinates for the associated region. See https://cloud.google.com/vision/docs/reference/rest/v1/LatLng for a description of the fields.
.google.type.LatLng region_coordinates = 9;
| Returns | |
|---|---|
| Type | Description |
com.google.type.LatLng.Builder |
|
getRegionCoordinatesOrBuilder()
public LatLngOrBuilder getRegionCoordinatesOrBuilder()Coordinates for the associated region. See https://cloud.google.com/vision/docs/reference/rest/v1/LatLng for a description of the fields.
.google.type.LatLng region_coordinates = 9;
| Returns | |
|---|---|
| Type | Description |
com.google.type.LatLngOrBuilder |
|
getRegionLatitude() (deprecated)
public float getRegionLatitude()Deprecated. google.backstory.Location.region_latitude is deprecated. See backstory/udm.proto;l=5077
Deprecated: use region_coordinates.
float region_latitude = 7 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
float |
The regionLatitude. |
getRegionLongitude() (deprecated)
public float getRegionLongitude()Deprecated. google.backstory.Location.region_longitude is deprecated. See backstory/udm.proto;l=5080
Deprecated: use region_coordinates.
float region_longitude = 8 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
float |
The regionLongitude. |
getState()
public String getState()The state.
string state = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The state. |
getStateBytes()
public ByteString getStateBytes()The state.
string state = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for state. |
hasRegionCoordinates()
public boolean hasRegionCoordinates()Coordinates for the associated region. See https://cloud.google.com/vision/docs/reference/rest/v1/LatLng for a description of the fields.
.google.type.LatLng region_coordinates = 9;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the regionCoordinates field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Location other)
public Location.Builder mergeFrom(Location other)| Parameter | |
|---|---|
| Name | Description |
other |
Location |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Location.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Location.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
|
mergeRegionCoordinates(LatLng value)
public Location.Builder mergeRegionCoordinates(LatLng value)Coordinates for the associated region. See https://cloud.google.com/vision/docs/reference/rest/v1/LatLng for a description of the fields.
.google.type.LatLng region_coordinates = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.LatLng |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
|
setCity(String value)
public Location.Builder setCity(String value)The city.
string city = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe city to set. |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
This builder for chaining. |
setCityBytes(ByteString value)
public Location.Builder setCityBytes(ByteString value)The city.
string city = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for city to set. |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
This builder for chaining. |
setCountryOrRegion(String value)
public Location.Builder setCountryOrRegion(String value)The country or region.
string country_or_region = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe countryOrRegion to set. |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
This builder for chaining. |
setCountryOrRegionBytes(ByteString value)
public Location.Builder setCountryOrRegionBytes(ByteString value)The country or region.
string country_or_region = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for countryOrRegion to set. |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
This builder for chaining. |
setDeskName(String value)
public Location.Builder setDeskName(String value)Desk name or individual location, typically for an employee in an office. (e.g. "IN-BLR-BCPC-11-1121D").
string desk_name = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe deskName to set. |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
This builder for chaining. |
setDeskNameBytes(ByteString value)
public Location.Builder setDeskNameBytes(ByteString value)Desk name or individual location, typically for an employee in an office. (e.g. "IN-BLR-BCPC-11-1121D").
string desk_name = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for deskName to set. |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
This builder for chaining. |
setFloorName(String value)
public Location.Builder setFloorName(String value)Floor name, number or a combination of the two for a building. (e.g. "1-A").
string floor_name = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe floorName to set. |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
This builder for chaining. |
setFloorNameBytes(ByteString value)
public Location.Builder setFloorNameBytes(ByteString value)Floor name, number or a combination of the two for a building. (e.g. "1-A").
string floor_name = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for floorName to set. |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
This builder for chaining. |
setName(String value)
public Location.Builder setName(String value)Custom location name (e.g. building or site name like "London Office"). For cloud environments, this is the region (e.g. "us-west2").
string name = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Location.Builder setNameBytes(ByteString value)Custom location name (e.g. building or site name like "London Office"). For cloud environments, this is the region (e.g. "us-west2").
string name = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
This builder for chaining. |
setRegionCoordinates(LatLng value)
public Location.Builder setRegionCoordinates(LatLng value)Coordinates for the associated region. See https://cloud.google.com/vision/docs/reference/rest/v1/LatLng for a description of the fields.
.google.type.LatLng region_coordinates = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.LatLng |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
|
setRegionCoordinates(LatLng.Builder builderForValue)
public Location.Builder setRegionCoordinates(LatLng.Builder builderForValue)Coordinates for the associated region. See https://cloud.google.com/vision/docs/reference/rest/v1/LatLng for a description of the fields.
.google.type.LatLng region_coordinates = 9;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.LatLng.Builder |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
|
setRegionLatitude(float value) (deprecated)
public Location.Builder setRegionLatitude(float value)Deprecated. google.backstory.Location.region_latitude is deprecated. See backstory/udm.proto;l=5077
Deprecated: use region_coordinates.
float region_latitude = 7 [deprecated = true];
| Parameter | |
|---|---|
| Name | Description |
value |
floatThe regionLatitude to set. |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
This builder for chaining. |
setRegionLongitude(float value) (deprecated)
public Location.Builder setRegionLongitude(float value)Deprecated. google.backstory.Location.region_longitude is deprecated. See backstory/udm.proto;l=5080
Deprecated: use region_coordinates.
float region_longitude = 8 [deprecated = true];
| Parameter | |
|---|---|
| Name | Description |
value |
floatThe regionLongitude to set. |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
This builder for chaining. |
setState(String value)
public Location.Builder setState(String value)The state.
string state = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe state to set. |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
This builder for chaining. |
setStateBytes(ByteString value)
public Location.Builder setStateBytes(ByteString value)The state.
string state = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for state to set. |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
This builder for chaining. |