public final class DetectedLandmark extends GeneratedMessageV3 implements DetectedLandmarkOrBuilder
A generic detected landmark represented by name in string format and a 2D
location.
Protobuf type google.cloud.videointelligence.v1.DetectedLandmark
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
CONFIDENCE_FIELD_NUMBER
public static final int CONFIDENCE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
POINT_FIELD_NUMBER
public static final int POINT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static DetectedLandmark getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static DetectedLandmark.Builder newBuilder()
newBuilder(DetectedLandmark prototype)
public static DetectedLandmark.Builder newBuilder(DetectedLandmark prototype)
public static DetectedLandmark parseDelimitedFrom(InputStream input)
public static DetectedLandmark parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static DetectedLandmark parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DetectedLandmark parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static DetectedLandmark parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DetectedLandmark parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DetectedLandmark parseFrom(CodedInputStream input)
public static DetectedLandmark parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static DetectedLandmark parseFrom(InputStream input)
public static DetectedLandmark parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static DetectedLandmark parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DetectedLandmark parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<DetectedLandmark> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getConfidence()
public float getConfidence()
The confidence score of the detected landmark. Range [0, 1].
float confidence = 3;
Returns |
---|
Type | Description |
float | The confidence.
|
getDefaultInstanceForType()
public DetectedLandmark getDefaultInstanceForType()
getName()
The name of this landmark, for example, left_hand, right_shoulder.
string name = 1;
Returns |
---|
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
The name of this landmark, for example, left_hand, right_shoulder.
string name = 1;
Returns |
---|
Type | Description |
ByteString | The bytes for name.
|
getParserForType()
public Parser<DetectedLandmark> getParserForType()
Overrides
getPoint()
public NormalizedVertex getPoint()
The 2D point of the detected landmark using the normalized image
coordindate system. The normalized coordinates have the range from 0 to 1.
.google.cloud.videointelligence.v1.NormalizedVertex point = 2;
getPointOrBuilder()
public NormalizedVertexOrBuilder getPointOrBuilder()
The 2D point of the detected landmark using the normalized image
coordindate system. The normalized coordinates have the range from 0 to 1.
.google.cloud.videointelligence.v1.NormalizedVertex point = 2;
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
hasPoint()
public boolean hasPoint()
The 2D point of the detected landmark using the normalized image
coordindate system. The normalized coordinates have the range from 0 to 1.
.google.cloud.videointelligence.v1.NormalizedVertex point = 2;
Returns |
---|
Type | Description |
boolean | Whether the point field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public DetectedLandmark.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected DetectedLandmark.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public DetectedLandmark.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides