Class LocationInfo.Builder (3.32.0)

public static final class LocationInfo.Builder extends GeneratedMessageV3.Builder<LocationInfo.Builder> implements LocationInfoOrBuilder

Detected entity location information.

Protobuf type google.cloud.vision.v1.LocationInfo

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LocationInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LocationInfo.Builder
Overrides

build()

public LocationInfo build()
Returns
TypeDescription
LocationInfo

buildPartial()

public LocationInfo buildPartial()
Returns
TypeDescription
LocationInfo

clear()

public LocationInfo.Builder clear()
Returns
TypeDescription
LocationInfo.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public LocationInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
LocationInfo.Builder
Overrides

clearLatLng()

public LocationInfo.Builder clearLatLng()

lat/long location coordinates.

.google.type.LatLng lat_lng = 1;

Returns
TypeDescription
LocationInfo.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public LocationInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
LocationInfo.Builder
Overrides

clone()

public LocationInfo.Builder clone()
Returns
TypeDescription
LocationInfo.Builder
Overrides

getDefaultInstanceForType()

public LocationInfo getDefaultInstanceForType()
Returns
TypeDescription
LocationInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLatLng()

public LatLng getLatLng()

lat/long location coordinates.

.google.type.LatLng lat_lng = 1;

Returns
TypeDescription
com.google.type.LatLng

The latLng.

getLatLngBuilder()

public LatLng.Builder getLatLngBuilder()

lat/long location coordinates.

.google.type.LatLng lat_lng = 1;

Returns
TypeDescription
com.google.type.LatLng.Builder

getLatLngOrBuilder()

public LatLngOrBuilder getLatLngOrBuilder()

lat/long location coordinates.

.google.type.LatLng lat_lng = 1;

Returns
TypeDescription
com.google.type.LatLngOrBuilder

hasLatLng()

public boolean hasLatLng()

lat/long location coordinates.

.google.type.LatLng lat_lng = 1;

Returns
TypeDescription
boolean

Whether the latLng field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LocationInfo other)

public LocationInfo.Builder mergeFrom(LocationInfo other)
Parameter
NameDescription
otherLocationInfo
Returns
TypeDescription
LocationInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LocationInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LocationInfo.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public LocationInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
LocationInfo.Builder
Overrides

mergeLatLng(LatLng value)

public LocationInfo.Builder mergeLatLng(LatLng value)

lat/long location coordinates.

.google.type.LatLng lat_lng = 1;

Parameter
NameDescription
valuecom.google.type.LatLng
Returns
TypeDescription
LocationInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LocationInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LocationInfo.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public LocationInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LocationInfo.Builder
Overrides

setLatLng(LatLng value)

public LocationInfo.Builder setLatLng(LatLng value)

lat/long location coordinates.

.google.type.LatLng lat_lng = 1;

Parameter
NameDescription
valuecom.google.type.LatLng
Returns
TypeDescription
LocationInfo.Builder

setLatLng(LatLng.Builder builderForValue)

public LocationInfo.Builder setLatLng(LatLng.Builder builderForValue)

lat/long location coordinates.

.google.type.LatLng lat_lng = 1;

Parameter
NameDescription
builderForValuecom.google.type.LatLng.Builder
Returns
TypeDescription
LocationInfo.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public LocationInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
LocationInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LocationInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LocationInfo.Builder
Overrides