Class DetectedLandmark.Builder (2.5.0)

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.v1.DetectedLandmark

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DetectedLandmark build()
Returns
TypeDescription
DetectedLandmark

buildPartial()

public DetectedLandmark buildPartial()
Returns
TypeDescription
DetectedLandmark

clear()

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

clearConfidence()

public DetectedLandmark.Builder clearConfidence()

The confidence score of the detected landmark. Range [0, 1].

float confidence = 3;

Returns
TypeDescription
DetectedLandmark.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public DetectedLandmark.Builder clearName()

The name of this landmark, for example, left_hand, right_shoulder.

string name = 1;

Returns
TypeDescription
DetectedLandmark.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DetectedLandmark.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DetectedLandmark.Builder
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.v1.NormalizedVertex point = 2;

Returns
TypeDescription
DetectedLandmark.Builder

clone()

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

getConfidence()

public float getConfidence()

The confidence score of the detected landmark. Range [0, 1].

float confidence = 3;

Returns
TypeDescription
float

The confidence.

getDefaultInstanceForType()

public DetectedLandmark getDefaultInstanceForType()
Returns
TypeDescription
DetectedLandmark

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

The name of this landmark, for example, left_hand, right_shoulder.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of this landmark, for example, left_hand, right_shoulder.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

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;

Returns
TypeDescription
NormalizedVertex

The point.

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.v1.NormalizedVertex point = 2;

Returns
TypeDescription
NormalizedVertex.Builder

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;

Returns
TypeDescription
NormalizedVertexOrBuilder

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
TypeDescription
boolean

Whether the point field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DetectedLandmark other)

public DetectedLandmark.Builder mergeFrom(DetectedLandmark other)
Parameter
NameDescription
otherDetectedLandmark
Returns
TypeDescription
DetectedLandmark.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public DetectedLandmark.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DetectedLandmark.Builder
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.v1.NormalizedVertex point = 2;

Parameter
NameDescription
valueNormalizedVertex
Returns
TypeDescription
DetectedLandmark.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConfidence(float value)

public DetectedLandmark.Builder setConfidence(float value)

The confidence score of the detected landmark. Range [0, 1].

float confidence = 3;

Parameter
NameDescription
valuefloat

The confidence to set.

Returns
TypeDescription
DetectedLandmark.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DetectedLandmark.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DetectedLandmark.Builder
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
DetectedLandmark.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DetectedLandmark.Builder setNameBytes(ByteString value)

The name of this landmark, for example, left_hand, right_shoulder.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
DetectedLandmark.Builder

This builder for chaining.

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.v1.NormalizedVertex point = 2;

Parameter
NameDescription
valueNormalizedVertex
Returns
TypeDescription
DetectedLandmark.Builder

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.v1.NormalizedVertex point = 2;

Parameter
NameDescription
builderForValueNormalizedVertex.Builder
Returns
TypeDescription
DetectedLandmark.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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