Package com.google.cloud.visionai.v1
Class VideoClassificationPredictionResult.IdentifiedClassification.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VideoClassificationPredictionResult.IdentifiedClassification.Builder>
com.google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification.Builder
- All Implemented Interfaces:
VideoClassificationPredictionResult.IdentifiedClassificationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- VideoClassificationPredictionResult.IdentifiedClassification
public static final class VideoClassificationPredictionResult.IdentifiedClassification.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The Model's confidence in correction of this identification, higher value means higher confidence.The display name of the AnnotationSpec that had been identified.clearId()The resource ID of the AnnotationSpec that had been identified.floatThe Model's confidence in correction of this identification, higher value means higher confidence.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe display name of the AnnotationSpec that had been identified.com.google.protobuf.ByteStringThe display name of the AnnotationSpec that had been identified.getId()The resource ID of the AnnotationSpec that had been identified.com.google.protobuf.ByteStringThe resource ID of the AnnotationSpec that had been identified.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setConfidence(float value) The Model's confidence in correction of this identification, higher value means higher confidence.setDisplayName(String value) The display name of the AnnotationSpec that had been identified.setDisplayNameBytes(com.google.protobuf.ByteString value) The display name of the AnnotationSpec that had been identified.The resource ID of the AnnotationSpec that had been identified.setIdBytes(com.google.protobuf.ByteString value) The resource ID of the AnnotationSpec that had been identified.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<VideoClassificationPredictionResult.IdentifiedClassification.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<VideoClassificationPredictionResult.IdentifiedClassification.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<VideoClassificationPredictionResult.IdentifiedClassification.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public VideoClassificationPredictionResult.IdentifiedClassification.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VideoClassificationPredictionResult.IdentifiedClassification.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<VideoClassificationPredictionResult.IdentifiedClassification.Builder>
-
mergeFrom
public VideoClassificationPredictionResult.IdentifiedClassification.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VideoClassificationPredictionResult.IdentifiedClassification.Builder>- Throws:
IOException
-
getId
The resource ID of the AnnotationSpec that had been identified.
string id = 1;- Specified by:
getIdin interfaceVideoClassificationPredictionResult.IdentifiedClassificationOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()The resource ID of the AnnotationSpec that had been identified.
string id = 1;- Specified by:
getIdBytesin interfaceVideoClassificationPredictionResult.IdentifiedClassificationOrBuilder- Returns:
- The bytes for id.
-
setId
The resource ID of the AnnotationSpec that had been identified.
string id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
The resource ID of the AnnotationSpec that had been identified.
string id = 1;- Returns:
- This builder for chaining.
-
setIdBytes
public VideoClassificationPredictionResult.IdentifiedClassification.Builder setIdBytes(com.google.protobuf.ByteString value) The resource ID of the AnnotationSpec that had been identified.
string id = 1;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
getDisplayName
The display name of the AnnotationSpec that had been identified.
string display_name = 2;- Specified by:
getDisplayNamein interfaceVideoClassificationPredictionResult.IdentifiedClassificationOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()The display name of the AnnotationSpec that had been identified.
string display_name = 2;- Specified by:
getDisplayNameBytesin interfaceVideoClassificationPredictionResult.IdentifiedClassificationOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
public VideoClassificationPredictionResult.IdentifiedClassification.Builder setDisplayName(String value) The display name of the AnnotationSpec that had been identified.
string display_name = 2;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
The display name of the AnnotationSpec that had been identified.
string display_name = 2;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public VideoClassificationPredictionResult.IdentifiedClassification.Builder setDisplayNameBytes(com.google.protobuf.ByteString value) The display name of the AnnotationSpec that had been identified.
string display_name = 2;- Parameters:
value- The bytes for displayName to set.- Returns:
- 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;- Specified by:
getConfidencein interfaceVideoClassificationPredictionResult.IdentifiedClassificationOrBuilder- Returns:
- The confidence.
-
setConfidence
public VideoClassificationPredictionResult.IdentifiedClassification.Builder setConfidence(float value) The Model's confidence in correction of this identification, higher value means higher confidence.
float confidence = 3;- Parameters:
value- The confidence to set.- Returns:
- This builder for chaining.
-
clearConfidence
The Model's confidence in correction of this identification, higher value means higher confidence.
float confidence = 3;- Returns:
- This builder for chaining.
-