Class VideoObjectTrackingPredictionResult.DetectedObject.Builder (0.2.0)

public static final class VideoObjectTrackingPredictionResult.DetectedObject.Builder extends GeneratedMessageV3.Builder<VideoObjectTrackingPredictionResult.DetectedObject.Builder> implements VideoObjectTrackingPredictionResult.DetectedObjectOrBuilder

Each DetectedObject is one particular identification of an object specified with the AnnotationSpec id and display_name, the bounding box, the associated confidence score and the corresponding track_id.

Protobuf type google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > VideoObjectTrackingPredictionResult.DetectedObject.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VideoObjectTrackingPredictionResult.DetectedObject build()
Returns
Type Description
VideoObjectTrackingPredictionResult.DetectedObject

buildPartial()

public VideoObjectTrackingPredictionResult.DetectedObject buildPartial()
Returns
Type Description
VideoObjectTrackingPredictionResult.DetectedObject

clear()

public VideoObjectTrackingPredictionResult.DetectedObject.Builder clear()
Returns
Type Description
VideoObjectTrackingPredictionResult.DetectedObject.Builder
Overrides

clearBoundingBox()

public VideoObjectTrackingPredictionResult.DetectedObject.Builder clearBoundingBox()

Boundingbox.

.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox bounding_box = 3;

Returns
Type Description
VideoObjectTrackingPredictionResult.DetectedObject.Builder

clearConfidence()

public VideoObjectTrackingPredictionResult.DetectedObject.Builder clearConfidence()

The Model's confidence in correction of this identification, higher value means higher confidence.

float confidence = 4;

Returns
Type Description
VideoObjectTrackingPredictionResult.DetectedObject.Builder

This builder for chaining.

clearDisplayName()

public VideoObjectTrackingPredictionResult.DetectedObject.Builder clearDisplayName()

The display name of the AnnotationSpec that had been identified.

string display_name = 2;

Returns
Type Description
VideoObjectTrackingPredictionResult.DetectedObject.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public VideoObjectTrackingPredictionResult.DetectedObject.Builder clearId()

The resource ID of the AnnotationSpec that had been identified.

string id = 1;

Returns
Type Description
VideoObjectTrackingPredictionResult.DetectedObject.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public VideoObjectTrackingPredictionResult.DetectedObject.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
VideoObjectTrackingPredictionResult.DetectedObject.Builder
Overrides

clearTrackId()

public VideoObjectTrackingPredictionResult.DetectedObject.Builder clearTrackId()

The same object may be identified on muitiple frames which are typical adjacent. The set of frames where a particular object has been detected form a track. This track_id can be used to trace down all frames for an detected object.

int64 track_id = 5;

Returns
Type Description
VideoObjectTrackingPredictionResult.DetectedObject.Builder

This builder for chaining.

clone()

public VideoObjectTrackingPredictionResult.DetectedObject.Builder clone()
Returns
Type Description
VideoObjectTrackingPredictionResult.DetectedObject.Builder
Overrides

getBoundingBox()

public VideoObjectTrackingPredictionResult.BoundingBox getBoundingBox()

Boundingbox.

.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox bounding_box = 3;

Returns
Type Description
VideoObjectTrackingPredictionResult.BoundingBox

The boundingBox.

getBoundingBoxBuilder()

public VideoObjectTrackingPredictionResult.BoundingBox.Builder getBoundingBoxBuilder()

Boundingbox.

.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox bounding_box = 3;

Returns
Type Description
VideoObjectTrackingPredictionResult.BoundingBox.Builder

getBoundingBoxOrBuilder()

public VideoObjectTrackingPredictionResult.BoundingBoxOrBuilder getBoundingBoxOrBuilder()

Boundingbox.

.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox bounding_box = 3;

Returns
Type Description
VideoObjectTrackingPredictionResult.BoundingBoxOrBuilder

getConfidence()

public float getConfidence()

The Model's confidence in correction of this identification, higher value means higher confidence.

float confidence = 4;

Returns
Type Description
float

The confidence.

getDefaultInstanceForType()

public VideoObjectTrackingPredictionResult.DetectedObject getDefaultInstanceForType()
Returns
Type Description
VideoObjectTrackingPredictionResult.DetectedObject

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

The display name of the AnnotationSpec that had been identified.

string display_name = 2;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The display name of the AnnotationSpec that had been identified.

string display_name = 2;

Returns
Type Description
ByteString

The bytes for displayName.

getId()

public String getId()

The resource ID of the AnnotationSpec that had been identified.

string id = 1;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

The resource ID of the AnnotationSpec that had been identified.

string id = 1;

Returns
Type Description
ByteString

The bytes for id.

getTrackId()

public long getTrackId()

The same object may be identified on muitiple frames which are typical adjacent. The set of frames where a particular object has been detected form a track. This track_id can be used to trace down all frames for an detected object.

int64 track_id = 5;

Returns
Type Description
long

The trackId.

hasBoundingBox()

public boolean hasBoundingBox()

Boundingbox.

.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox bounding_box = 3;

Returns
Type Description
boolean

Whether the boundingBox field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBoundingBox(VideoObjectTrackingPredictionResult.BoundingBox value)

public VideoObjectTrackingPredictionResult.DetectedObject.Builder mergeBoundingBox(VideoObjectTrackingPredictionResult.BoundingBox value)

Boundingbox.

.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox bounding_box = 3;

Parameter
Name Description
value VideoObjectTrackingPredictionResult.BoundingBox
Returns
Type Description
VideoObjectTrackingPredictionResult.DetectedObject.Builder

mergeFrom(VideoObjectTrackingPredictionResult.DetectedObject other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public VideoObjectTrackingPredictionResult.DetectedObject.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
VideoObjectTrackingPredictionResult.DetectedObject.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VideoObjectTrackingPredictionResult.DetectedObject.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VideoObjectTrackingPredictionResult.DetectedObject.Builder
Overrides

setBoundingBox(VideoObjectTrackingPredictionResult.BoundingBox value)

public VideoObjectTrackingPredictionResult.DetectedObject.Builder setBoundingBox(VideoObjectTrackingPredictionResult.BoundingBox value)

Boundingbox.

.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox bounding_box = 3;

Parameter
Name Description
value VideoObjectTrackingPredictionResult.BoundingBox
Returns
Type Description
VideoObjectTrackingPredictionResult.DetectedObject.Builder

setBoundingBox(VideoObjectTrackingPredictionResult.BoundingBox.Builder builderForValue)

public VideoObjectTrackingPredictionResult.DetectedObject.Builder setBoundingBox(VideoObjectTrackingPredictionResult.BoundingBox.Builder builderForValue)

Boundingbox.

.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox bounding_box = 3;

Parameter
Name Description
builderForValue VideoObjectTrackingPredictionResult.BoundingBox.Builder
Returns
Type Description
VideoObjectTrackingPredictionResult.DetectedObject.Builder

setConfidence(float value)

public VideoObjectTrackingPredictionResult.DetectedObject.Builder setConfidence(float value)

The Model's confidence in correction of this identification, higher value means higher confidence.

float confidence = 4;

Parameter
Name Description
value float

The confidence to set.

Returns
Type Description
VideoObjectTrackingPredictionResult.DetectedObject.Builder

This builder for chaining.

setDisplayName(String value)

public VideoObjectTrackingPredictionResult.DetectedObject.Builder setDisplayName(String value)

The display name of the AnnotationSpec that had been identified.

string display_name = 2;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
VideoObjectTrackingPredictionResult.DetectedObject.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public VideoObjectTrackingPredictionResult.DetectedObject.Builder setDisplayNameBytes(ByteString value)

The display name of the AnnotationSpec that had been identified.

string display_name = 2;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
VideoObjectTrackingPredictionResult.DetectedObject.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public VideoObjectTrackingPredictionResult.DetectedObject.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VideoObjectTrackingPredictionResult.DetectedObject.Builder
Overrides

setId(String value)

public VideoObjectTrackingPredictionResult.DetectedObject.Builder setId(String value)

The resource ID of the AnnotationSpec that had been identified.

string id = 1;

Parameter
Name Description
value String

The id to set.

Returns
Type Description
VideoObjectTrackingPredictionResult.DetectedObject.Builder

This builder for chaining.

setIdBytes(ByteString value)

public VideoObjectTrackingPredictionResult.DetectedObject.Builder setIdBytes(ByteString value)

The resource ID of the AnnotationSpec that had been identified.

string id = 1;

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
VideoObjectTrackingPredictionResult.DetectedObject.Builder

This builder for chaining.

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

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

setTrackId(long value)

public VideoObjectTrackingPredictionResult.DetectedObject.Builder setTrackId(long value)

The same object may be identified on muitiple frames which are typical adjacent. The set of frames where a particular object has been detected form a track. This track_id can be used to trace down all frames for an detected object.

int64 track_id = 5;

Parameter
Name Description
value long

The trackId to set.

Returns
Type Description
VideoObjectTrackingPredictionResult.DetectedObject.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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