Class LatLongRect (3.30.0)

public final class LatLongRect extends GeneratedMessageV3 implements LatLongRectOrBuilder

Rectangle determined by min and max LatLng pairs.

Protobuf type google.cloud.vision.v1p3beta1.LatLongRect

Static Fields

MAX_LAT_LNG_FIELD_NUMBER

public static final int MAX_LAT_LNG_FIELD_NUMBER
Field Value
TypeDescription
int

MIN_LAT_LNG_FIELD_NUMBER

public static final int MIN_LAT_LNG_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static LatLongRect getDefaultInstance()
Returns
TypeDescription
LatLongRect

getDescriptor()

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

newBuilder()

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

newBuilder(LatLongRect prototype)

public static LatLongRect.Builder newBuilder(LatLongRect prototype)
Parameter
NameDescription
prototypeLatLongRect
Returns
TypeDescription
LatLongRect.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public LatLongRect getDefaultInstanceForType()
Returns
TypeDescription
LatLongRect

getMaxLatLng()

public LatLng getMaxLatLng()

Max lat/long pair.

.google.type.LatLng max_lat_lng = 2;

Returns
TypeDescription
com.google.type.LatLng

The maxLatLng.

getMaxLatLngOrBuilder()

public LatLngOrBuilder getMaxLatLngOrBuilder()

Max lat/long pair.

.google.type.LatLng max_lat_lng = 2;

Returns
TypeDescription
com.google.type.LatLngOrBuilder

getMinLatLng()

public LatLng getMinLatLng()

Min lat/long pair.

.google.type.LatLng min_lat_lng = 1;

Returns
TypeDescription
com.google.type.LatLng

The minLatLng.

getMinLatLngOrBuilder()

public LatLngOrBuilder getMinLatLngOrBuilder()

Min lat/long pair.

.google.type.LatLng min_lat_lng = 1;

Returns
TypeDescription
com.google.type.LatLngOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasMaxLatLng()

public boolean hasMaxLatLng()

Max lat/long pair.

.google.type.LatLng max_lat_lng = 2;

Returns
TypeDescription
boolean

Whether the maxLatLng field is set.

hasMinLatLng()

public boolean hasMinLatLng()

Min lat/long pair.

.google.type.LatLng min_lat_lng = 1;

Returns
TypeDescription
boolean

Whether the minLatLng 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 LatLongRect.Builder newBuilderForType()
Returns
TypeDescription
LatLongRect.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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