Class VideoClassificationPredictionResult.IdentifiedClassification.Builder (0.8.0)

public static final class VideoClassificationPredictionResult.IdentifiedClassification.Builder extends GeneratedMessageV3.Builder<VideoClassificationPredictionResult.IdentifiedClassification.Builder> implements VideoClassificationPredictionResult.IdentifiedClassificationOrBuilder

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

Protobuf type google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > VideoClassificationPredictionResult.IdentifiedClassification.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VideoClassificationPredictionResult.IdentifiedClassification build()
Returns
Type Description
VideoClassificationPredictionResult.IdentifiedClassification

buildPartial()

public VideoClassificationPredictionResult.IdentifiedClassification buildPartial()
Returns
Type Description
VideoClassificationPredictionResult.IdentifiedClassification

clear()

public VideoClassificationPredictionResult.IdentifiedClassification.Builder clear()
Returns
Type Description
VideoClassificationPredictionResult.IdentifiedClassification.Builder
Overrides

clearConfidence()

public VideoClassificationPredictionResult.IdentifiedClassification.Builder clearConfidence()

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

float confidence = 3;

Returns
Type Description
VideoClassificationPredictionResult.IdentifiedClassification.Builder

This builder for chaining.

clearDisplayName()

public VideoClassificationPredictionResult.IdentifiedClassification.Builder clearDisplayName()

The display name of the AnnotationSpec that had been identified.

string display_name = 2;

Returns
Type Description
VideoClassificationPredictionResult.IdentifiedClassification.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public VideoClassificationPredictionResult.IdentifiedClassification.Builder clearId()

The resource ID of the AnnotationSpec that had been identified.

string id = 1;

Returns
Type Description
VideoClassificationPredictionResult.IdentifiedClassification.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public VideoClassificationPredictionResult.IdentifiedClassification.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
VideoClassificationPredictionResult.IdentifiedClassification.Builder
Overrides

clone()

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

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(VideoClassificationPredictionResult.IdentifiedClassification other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public VideoClassificationPredictionResult.IdentifiedClassification.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
VideoClassificationPredictionResult.IdentifiedClassification.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VideoClassificationPredictionResult.IdentifiedClassification.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VideoClassificationPredictionResult.IdentifiedClassification.Builder
Overrides

setConfidence(float value)

public VideoClassificationPredictionResult.IdentifiedClassification.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
VideoClassificationPredictionResult.IdentifiedClassification.Builder

This builder for chaining.

setDisplayName(String value)

public VideoClassificationPredictionResult.IdentifiedClassification.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
VideoClassificationPredictionResult.IdentifiedClassification.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public VideoClassificationPredictionResult.IdentifiedClassification.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
VideoClassificationPredictionResult.IdentifiedClassification.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

public VideoClassificationPredictionResult.IdentifiedClassification.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
VideoClassificationPredictionResult.IdentifiedClassification.Builder

This builder for chaining.

setIdBytes(ByteString value)

public VideoClassificationPredictionResult.IdentifiedClassification.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
VideoClassificationPredictionResult.IdentifiedClassification.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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