Class DetectedLandmark.Builder (2.42.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DetectedLandmark.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DetectedLandmark.Builder
Overrides

build()

public DetectedLandmark build()
Returns
Type Description
DetectedLandmark

buildPartial()

public DetectedLandmark buildPartial()
Returns
Type Description
DetectedLandmark

clear()

public DetectedLandmark.Builder clear()
Returns
Type Description
DetectedLandmark.Builder
Overrides

clearConfidence()

public DetectedLandmark.Builder clearConfidence()

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

float confidence = 3;

Returns
Type Description
DetectedLandmark.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DetectedLandmark.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DetectedLandmark.Builder
Overrides

clearName()

public DetectedLandmark.Builder clearName()

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

string name = 1;

Returns
Type Description
DetectedLandmark.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DetectedLandmark.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
DetectedLandmark.Builder

clone()

public DetectedLandmark.Builder clone()
Returns
Type Description
DetectedLandmark.Builder
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
Type Description
DetectedLandmark

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String 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.

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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the point field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DetectedLandmark other)

public DetectedLandmark.Builder mergeFrom(DetectedLandmark other)
Parameter
Name Description
other DetectedLandmark
Returns
Type Description
DetectedLandmark.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DetectedLandmark.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DetectedLandmark.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DetectedLandmark.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value NormalizedVertex
Returns
Type Description
DetectedLandmark.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DetectedLandmark.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value float

The confidence to set.

Returns
Type Description
DetectedLandmark.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DetectedLandmark.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
value NormalizedVertex
Returns
Type Description
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
Name Description
builderForValue NormalizedVertex.Builder
Returns
Type Description
DetectedLandmark.Builder

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

public DetectedLandmark.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DetectedLandmark.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DetectedLandmark.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DetectedLandmark.Builder
Overrides