Package com.google.cloud.visionai.v1
Class VideoActionRecognitionPredictionResult.IdentifiedAction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VideoActionRecognitionPredictionResult.IdentifiedAction.Builder>
com.google.cloud.visionai.v1.VideoActionRecognitionPredictionResult.IdentifiedAction.Builder
- All Implemented Interfaces:
VideoActionRecognitionPredictionResult.IdentifiedActionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- VideoActionRecognitionPredictionResult.IdentifiedAction
public static final class VideoActionRecognitionPredictionResult.IdentifiedAction.Builder
extends com.google.protobuf.GeneratedMessage.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-
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<VideoActionRecognitionPredictionResult.IdentifiedAction.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<VideoActionRecognitionPredictionResult.IdentifiedAction.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<VideoActionRecognitionPredictionResult.IdentifiedAction.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 VideoActionRecognitionPredictionResult.IdentifiedAction.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VideoActionRecognitionPredictionResult.IdentifiedAction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<VideoActionRecognitionPredictionResult.IdentifiedAction.Builder>
-
mergeFrom
public VideoActionRecognitionPredictionResult.IdentifiedAction.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<VideoActionRecognitionPredictionResult.IdentifiedAction.Builder>- Throws:
IOException
-
getId
The resource ID of the AnnotationSpec that had been identified.
string id = 1;- Specified by:
getIdin interfaceVideoActionRecognitionPredictionResult.IdentifiedActionOrBuilder- 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 interfaceVideoActionRecognitionPredictionResult.IdentifiedActionOrBuilder- 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 VideoActionRecognitionPredictionResult.IdentifiedAction.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 interfaceVideoActionRecognitionPredictionResult.IdentifiedActionOrBuilder- 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 interfaceVideoActionRecognitionPredictionResult.IdentifiedActionOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
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 VideoActionRecognitionPredictionResult.IdentifiedAction.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 interfaceVideoActionRecognitionPredictionResult.IdentifiedActionOrBuilder- Returns:
- The confidence.
-
setConfidence
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.
-