Class VideoActionRecognitionPredictionResult.IdentifiedAction.Builder (0.6.0)

public static final class VideoActionRecognitionPredictionResult.IdentifiedAction.Builder extends GeneratedMessageV3.Builder<VideoActionRecognitionPredictionResult.IdentifiedAction.Builder> implements VideoActionRecognitionPredictionResult.IdentifiedActionOrBuilder

Each IdentifiedAction is one particular identification of an action specified with the AnnotationSpec id, display_name and the associated confidence score.

Protobuf type google.cloud.visionai.v1.VideoActionRecognitionPredictionResult.IdentifiedAction

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > VideoActionRecognitionPredictionResult.IdentifiedAction.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VideoActionRecognitionPredictionResult.IdentifiedAction build()
Returns
Type Description
VideoActionRecognitionPredictionResult.IdentifiedAction

buildPartial()

public VideoActionRecognitionPredictionResult.IdentifiedAction buildPartial()
Returns
Type Description
VideoActionRecognitionPredictionResult.IdentifiedAction

clear()

public VideoActionRecognitionPredictionResult.IdentifiedAction.Builder clear()
Returns
Type Description
VideoActionRecognitionPredictionResult.IdentifiedAction.Builder
Overrides

clearConfidence()

public VideoActionRecognitionPredictionResult.IdentifiedAction.Builder clearConfidence()

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

float confidence = 3;

Returns
Type Description
VideoActionRecognitionPredictionResult.IdentifiedAction.Builder

This builder for chaining.

clearDisplayName()

public VideoActionRecognitionPredictionResult.IdentifiedAction.Builder clearDisplayName()

The display name of the AnnotationSpec that had been identified.

string display_name = 2;

Returns
Type Description
VideoActionRecognitionPredictionResult.IdentifiedAction.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public VideoActionRecognitionPredictionResult.IdentifiedAction.Builder clearId()

The resource ID of the AnnotationSpec that had been identified.

string id = 1;

Returns
Type Description
VideoActionRecognitionPredictionResult.IdentifiedAction.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public VideoActionRecognitionPredictionResult.IdentifiedAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
VideoActionRecognitionPredictionResult.IdentifiedAction.Builder
Overrides

clone()

public VideoActionRecognitionPredictionResult.IdentifiedAction.Builder clone()
Returns
Type Description
VideoActionRecognitionPredictionResult.IdentifiedAction.Builder
Overrides

getConfidence()

public float getConfidence()

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

float confidence = 3;

Returns
Type Description
float

The confidence.

getDefaultInstanceForType()

public VideoActionRecognitionPredictionResult.IdentifiedAction getDefaultInstanceForType()
Returns
Type Description
VideoActionRecognitionPredictionResult.IdentifiedAction

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VideoActionRecognitionPredictionResult.IdentifiedAction other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public VideoActionRecognitionPredictionResult.IdentifiedAction.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
VideoActionRecognitionPredictionResult.IdentifiedAction.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VideoActionRecognitionPredictionResult.IdentifiedAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VideoActionRecognitionPredictionResult.IdentifiedAction.Builder
Overrides

setConfidence(float value)

public VideoActionRecognitionPredictionResult.IdentifiedAction.Builder setConfidence(float value)

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

float confidence = 3;

Parameter
Name Description
value float

The confidence to set.

Returns
Type Description
VideoActionRecognitionPredictionResult.IdentifiedAction.Builder

This builder for chaining.

setDisplayName(String value)

public VideoActionRecognitionPredictionResult.IdentifiedAction.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
VideoActionRecognitionPredictionResult.IdentifiedAction.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public VideoActionRecognitionPredictionResult.IdentifiedAction.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
VideoActionRecognitionPredictionResult.IdentifiedAction.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

public VideoActionRecognitionPredictionResult.IdentifiedAction.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
VideoActionRecognitionPredictionResult.IdentifiedAction.Builder

This builder for chaining.

setIdBytes(ByteString value)

public VideoActionRecognitionPredictionResult.IdentifiedAction.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
VideoActionRecognitionPredictionResult.IdentifiedAction.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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