public static final class UserInfo.PreciseLocation.Builder extends GeneratedMessage.Builder<UserInfo.PreciseLocation.Builder> implements UserInfo.PreciseLocationOrBuilderPrecise location info with multiple representation options. Currently only latitude and longitude point is supported.
Protobuf type google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > UserInfo.PreciseLocation.BuilderImplements
UserInfo.PreciseLocationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public UserInfo.PreciseLocation build()| Returns | |
|---|---|
| Type | Description |
UserInfo.PreciseLocation |
|
buildPartial()
public UserInfo.PreciseLocation buildPartial()| Returns | |
|---|---|
| Type | Description |
UserInfo.PreciseLocation |
|
clear()
public UserInfo.PreciseLocation.Builder clear()| Returns | |
|---|---|
| Type | Description |
UserInfo.PreciseLocation.Builder |
|
clearAddress()
public UserInfo.PreciseLocation.Builder clearAddress()Optional. Location represented by a natural language address. Will later be geocoded and converted to either a point or a polygon.
string address = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
UserInfo.PreciseLocation.Builder |
This builder for chaining. |
clearLocation()
public UserInfo.PreciseLocation.Builder clearLocation()| Returns | |
|---|---|
| Type | Description |
UserInfo.PreciseLocation.Builder |
|
clearPoint()
public UserInfo.PreciseLocation.Builder clearPoint()Optional. Location represented by a latitude/longitude point.
.google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
UserInfo.PreciseLocation.Builder |
|
getAddress()
public String getAddress()Optional. Location represented by a natural language address. Will later be geocoded and converted to either a point or a polygon.
string address = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The address. |
getAddressBytes()
public ByteString getAddressBytes()Optional. Location represented by a natural language address. Will later be geocoded and converted to either a point or a polygon.
string address = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for address. |
getDefaultInstanceForType()
public UserInfo.PreciseLocation getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
UserInfo.PreciseLocation |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLocationCase()
public UserInfo.PreciseLocation.LocationCase getLocationCase()| Returns | |
|---|---|
| Type | Description |
UserInfo.PreciseLocation.LocationCase |
|
getPoint()
public LatLng getPoint()Optional. Location represented by a latitude/longitude point.
.google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.LatLng |
The point. |
getPointBuilder()
public LatLng.Builder getPointBuilder()Optional. Location represented by a latitude/longitude point.
.google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.LatLng.Builder |
|
getPointOrBuilder()
public LatLngOrBuilder getPointOrBuilder()Optional. Location represented by a latitude/longitude point.
.google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.LatLngOrBuilder |
|
hasAddress()
public boolean hasAddress()Optional. Location represented by a natural language address. Will later be geocoded and converted to either a point or a polygon.
string address = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the address field is set. |
hasPoint()
public boolean hasPoint()Optional. Location represented by a latitude/longitude point.
.google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the point field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(UserInfo.PreciseLocation other)
public UserInfo.PreciseLocation.Builder mergeFrom(UserInfo.PreciseLocation other)| Parameter | |
|---|---|
| Name | Description |
other |
UserInfo.PreciseLocation |
| Returns | |
|---|---|
| Type | Description |
UserInfo.PreciseLocation.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public UserInfo.PreciseLocation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
UserInfo.PreciseLocation.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public UserInfo.PreciseLocation.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
UserInfo.PreciseLocation.Builder |
|
mergePoint(LatLng value)
public UserInfo.PreciseLocation.Builder mergePoint(LatLng value)Optional. Location represented by a latitude/longitude point.
.google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.LatLng |
| Returns | |
|---|---|
| Type | Description |
UserInfo.PreciseLocation.Builder |
|
setAddress(String value)
public UserInfo.PreciseLocation.Builder setAddress(String value)Optional. Location represented by a natural language address. Will later be geocoded and converted to either a point or a polygon.
string address = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe address to set. |
| Returns | |
|---|---|
| Type | Description |
UserInfo.PreciseLocation.Builder |
This builder for chaining. |
setAddressBytes(ByteString value)
public UserInfo.PreciseLocation.Builder setAddressBytes(ByteString value)Optional. Location represented by a natural language address. Will later be geocoded and converted to either a point or a polygon.
string address = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for address to set. |
| Returns | |
|---|---|
| Type | Description |
UserInfo.PreciseLocation.Builder |
This builder for chaining. |
setPoint(LatLng value)
public UserInfo.PreciseLocation.Builder setPoint(LatLng value)Optional. Location represented by a latitude/longitude point.
.google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.LatLng |
| Returns | |
|---|---|
| Type | Description |
UserInfo.PreciseLocation.Builder |
|
setPoint(LatLng.Builder builderForValue)
public UserInfo.PreciseLocation.Builder setPoint(LatLng.Builder builderForValue)Optional. Location represented by a latitude/longitude point.
.google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.LatLng.Builder |
| Returns | |
|---|---|
| Type | Description |
UserInfo.PreciseLocation.Builder |
|