public static final class DetectedLandmark.Builder extends GeneratedMessageV3.Builder<DetectedLandmark.Builder> implements DetectedLandmarkOrBuilder
A generic detected landmark represented by name in string format and a 2D
location.
Protobuf type google.cloud.videointelligence.v1p3beta1.DetectedLandmark
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DetectedLandmark.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public DetectedLandmark build()
Returns
buildPartial()
public DetectedLandmark buildPartial()
Returns
clear()
public DetectedLandmark.Builder clear()
Returns
Overrides
clearConfidence()
public DetectedLandmark.Builder clearConfidence()
The confidence score of the detected landmark. Range [0, 1].
float confidence = 3;
Returns
clearField(Descriptors.FieldDescriptor field)
public DetectedLandmark.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearName()
public DetectedLandmark.Builder clearName()
The name of this landmark, for example, left_hand, right_shoulder.
string name = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public DetectedLandmark.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearPoint()
public DetectedLandmark.Builder clearPoint()
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.v1p3beta1.NormalizedVertex point = 2;
Returns
clone()
public DetectedLandmark.Builder clone()
Returns
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()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
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.v1p3beta1.NormalizedVertex point = 2;
Returns
getPointBuilder()
public NormalizedVertex.Builder getPointBuilder()
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.v1p3beta1.NormalizedVertex point = 2;
Returns
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.v1p3beta1.NormalizedVertex point = 2;
Returns
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.v1p3beta1.NormalizedVertex point = 2;
Returns
Type | Description |
boolean | Whether the point field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(DetectedLandmark other)
public DetectedLandmark.Builder mergeFrom(DetectedLandmark other)
Parameter
Returns
public DetectedLandmark.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public DetectedLandmark.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergePoint(NormalizedVertex value)
public DetectedLandmark.Builder mergePoint(NormalizedVertex value)
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.v1p3beta1.NormalizedVertex point = 2;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DetectedLandmark.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setConfidence(float value)
public DetectedLandmark.Builder setConfidence(float value)
The confidence score of the detected landmark. Range [0, 1].
float confidence = 3;
Parameter
Name | Description |
value | float
The confidence to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public DetectedLandmark.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setName(String value)
public DetectedLandmark.Builder setName(String value)
The name of this landmark, for example, left_hand, right_shoulder.
string name = 1;
Parameter
Name | Description |
value | String
The name to set.
|
Returns
setNameBytes(ByteString value)
public DetectedLandmark.Builder setNameBytes(ByteString value)
The name of this landmark, for example, left_hand, right_shoulder.
string name = 1;
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
setPoint(NormalizedVertex value)
public DetectedLandmark.Builder setPoint(NormalizedVertex value)
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.v1p3beta1.NormalizedVertex point = 2;
Parameter
Returns
setPoint(NormalizedVertex.Builder builderForValue)
public DetectedLandmark.Builder setPoint(NormalizedVertex.Builder builderForValue)
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.v1p3beta1.NormalizedVertex point = 2;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DetectedLandmark.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final DetectedLandmark.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides