public static final class VideoClassificationPredictionResult.IdentifiedClassification.Builder extends GeneratedMessage.Builder<VideoClassificationPredictionResult.IdentifiedClassification.Builder> implements VideoClassificationPredictionResult.IdentifiedClassificationOrBuilderEach 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
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > VideoClassificationPredictionResult.IdentifiedClassification.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
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. |
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 |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
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 |
floatThe 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 |
StringThe 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 |
ByteStringThe bytes for displayName to set. |
| Returns | |
|---|---|
| Type | Description |
VideoClassificationPredictionResult.IdentifiedClassification.Builder |
This builder for chaining. |
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 |
StringThe 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 |
ByteStringThe bytes for id to set. |
| Returns | |
|---|---|
| Type | Description |
VideoClassificationPredictionResult.IdentifiedClassification.Builder |
This builder for chaining. |