Class LocationInfo (3.7.0)

public final class LocationInfo extends GeneratedMessageV3 implements LocationInfoOrBuilder

Detected entity location information.

Protobuf type google.cloud.vision.v1p1beta1.LocationInfo

Static Fields

LAT_LNG_FIELD_NUMBER

public static final int LAT_LNG_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static LocationInfo getDefaultInstance()
Returns
TypeDescription
LocationInfo

getDescriptor()

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

newBuilder()

public static LocationInfo.Builder newBuilder()
Returns
TypeDescription
LocationInfo.Builder

newBuilder(LocationInfo prototype)

public static LocationInfo.Builder newBuilder(LocationInfo prototype)
Parameter
NameDescription
prototypeLocationInfo
Returns
TypeDescription
LocationInfo.Builder

parseDelimitedFrom(InputStream input)

public static LocationInfo parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LocationInfo
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LocationInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LocationInfo
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static LocationInfo parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
LocationInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LocationInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LocationInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LocationInfo parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
LocationInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LocationInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LocationInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LocationInfo parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
LocationInfo
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LocationInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LocationInfo
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static LocationInfo parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LocationInfo
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LocationInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LocationInfo
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static LocationInfo parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
LocationInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LocationInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LocationInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<LocationInfo> parser()
Returns
TypeDescription
Parser<LocationInfo>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public LocationInfo getDefaultInstanceForType()
Returns
TypeDescription
LocationInfo

getLatLng()

public LatLng getLatLng()

lat/long location coordinates.

.google.type.LatLng lat_lng = 1;

Returns
TypeDescription
com.google.type.LatLng

The latLng.

getLatLngOrBuilder()

public LatLngOrBuilder getLatLngOrBuilder()

lat/long location coordinates.

.google.type.LatLng lat_lng = 1;

Returns
TypeDescription
com.google.type.LatLngOrBuilder

getParserForType()

public Parser<LocationInfo> getParserForType()
Returns
TypeDescription
Parser<LocationInfo>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasLatLng()

public boolean hasLatLng()

lat/long location coordinates.

.google.type.LatLng lat_lng = 1;

Returns
TypeDescription
boolean

Whether the latLng field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public LocationInfo.Builder newBuilderForType()
Returns
TypeDescription
LocationInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LocationInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
LocationInfo.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public LocationInfo.Builder toBuilder()
Returns
TypeDescription
LocationInfo.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException