Class VideoAnnotationResults
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.videointelligence.v1beta2.VideoAnnotationResults
- All Implemented Interfaces:
VideoAnnotationResultsOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class VideoAnnotationResults
extends com.google.protobuf.GeneratedMessage
implements VideoAnnotationResultsOrBuilder
Annotation results for a single video.Protobuf type
google.cloud.videointelligence.v1beta2.VideoAnnotationResults- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAnnotation results for a single video.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic VideoAnnotationResultsstatic final com.google.protobuf.Descriptors.DescriptorgetError()If set, indicates an error.If set, indicates an error.Explicit content annotation.Explicit content annotation.getFaceAnnotations(int index) Face annotations.intFace annotations.Face annotations.getFaceAnnotationsOrBuilder(int index) Face annotations.List<? extends FaceAnnotationOrBuilder>Face annotations.getFrameLabelAnnotations(int index) Label annotations on frame level.intLabel annotations on frame level.Label annotations on frame level.getFrameLabelAnnotationsOrBuilder(int index) Label annotations on frame level.List<? extends LabelAnnotationOrBuilder>Label annotations on frame level.Video file location in [Google Cloud Storage](https://cloud.google.com/storage/).com.google.protobuf.ByteStringVideo file location in [Google Cloud Storage](https://cloud.google.com/storage/).com.google.protobuf.Parser<VideoAnnotationResults>getSegmentLabelAnnotations(int index) Label annotations on video level or user specified segment level.intLabel annotations on video level or user specified segment level.Label annotations on video level or user specified segment level.getSegmentLabelAnnotationsOrBuilder(int index) Label annotations on video level or user specified segment level.List<? extends LabelAnnotationOrBuilder>Label annotations on video level or user specified segment level.intgetShotAnnotations(int index) Shot annotations.intShot annotations.Shot annotations.getShotAnnotationsOrBuilder(int index) Shot annotations.List<? extends VideoSegmentOrBuilder>Shot annotations.getShotLabelAnnotations(int index) Label annotations on shot level.intLabel annotations on shot level.Label annotations on shot level.getShotLabelAnnotationsOrBuilder(int index) Label annotations on shot level.List<? extends LabelAnnotationOrBuilder>Label annotations on shot level.booleanhasError()If set, indicates an error.booleanExplicit content annotation.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(VideoAnnotationResults prototype) protected VideoAnnotationResults.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static VideoAnnotationResultsparseDelimitedFrom(InputStream input) static VideoAnnotationResultsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VideoAnnotationResultsparseFrom(byte[] data) static VideoAnnotationResultsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VideoAnnotationResultsparseFrom(com.google.protobuf.ByteString data) static VideoAnnotationResultsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VideoAnnotationResultsparseFrom(com.google.protobuf.CodedInputStream input) static VideoAnnotationResultsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VideoAnnotationResultsparseFrom(InputStream input) static VideoAnnotationResultsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VideoAnnotationResultsparseFrom(ByteBuffer data) static VideoAnnotationResultsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<VideoAnnotationResults>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
INPUT_URI_FIELD_NUMBER
public static final int INPUT_URI_FIELD_NUMBER- See Also:
-
SEGMENT_LABEL_ANNOTATIONS_FIELD_NUMBER
public static final int SEGMENT_LABEL_ANNOTATIONS_FIELD_NUMBER- See Also:
-
SHOT_LABEL_ANNOTATIONS_FIELD_NUMBER
public static final int SHOT_LABEL_ANNOTATIONS_FIELD_NUMBER- See Also:
-
FRAME_LABEL_ANNOTATIONS_FIELD_NUMBER
public static final int FRAME_LABEL_ANNOTATIONS_FIELD_NUMBER- See Also:
-
FACE_ANNOTATIONS_FIELD_NUMBER
public static final int FACE_ANNOTATIONS_FIELD_NUMBER- See Also:
-
SHOT_ANNOTATIONS_FIELD_NUMBER
public static final int SHOT_ANNOTATIONS_FIELD_NUMBER- See Also:
-
EXPLICIT_ANNOTATION_FIELD_NUMBER
public static final int EXPLICIT_ANNOTATION_FIELD_NUMBER- See Also:
-
ERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER- See Also:
-
-
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
-
getInputUri
Video file location in [Google Cloud Storage](https://cloud.google.com/storage/).
string input_uri = 1;- Specified by:
getInputUriin interfaceVideoAnnotationResultsOrBuilder- Returns:
- The inputUri.
-
getInputUriBytes
public com.google.protobuf.ByteString getInputUriBytes()Video file location in [Google Cloud Storage](https://cloud.google.com/storage/).
string input_uri = 1;- Specified by:
getInputUriBytesin interfaceVideoAnnotationResultsOrBuilder- Returns:
- The bytes for inputUri.
-
getSegmentLabelAnnotationsList
Label annotations on video level or user specified segment level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1beta2.LabelAnnotation segment_label_annotations = 2;- Specified by:
getSegmentLabelAnnotationsListin interfaceVideoAnnotationResultsOrBuilder
-
getSegmentLabelAnnotationsOrBuilderList
Label annotations on video level or user specified segment level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1beta2.LabelAnnotation segment_label_annotations = 2;- Specified by:
getSegmentLabelAnnotationsOrBuilderListin interfaceVideoAnnotationResultsOrBuilder
-
getSegmentLabelAnnotationsCount
public int getSegmentLabelAnnotationsCount()Label annotations on video level or user specified segment level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1beta2.LabelAnnotation segment_label_annotations = 2;- Specified by:
getSegmentLabelAnnotationsCountin interfaceVideoAnnotationResultsOrBuilder
-
getSegmentLabelAnnotations
Label annotations on video level or user specified segment level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1beta2.LabelAnnotation segment_label_annotations = 2;- Specified by:
getSegmentLabelAnnotationsin interfaceVideoAnnotationResultsOrBuilder
-
getSegmentLabelAnnotationsOrBuilder
Label annotations on video level or user specified segment level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1beta2.LabelAnnotation segment_label_annotations = 2;- Specified by:
getSegmentLabelAnnotationsOrBuilderin interfaceVideoAnnotationResultsOrBuilder
-
getShotLabelAnnotationsList
Label annotations on shot level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1beta2.LabelAnnotation shot_label_annotations = 3;- Specified by:
getShotLabelAnnotationsListin interfaceVideoAnnotationResultsOrBuilder
-
getShotLabelAnnotationsOrBuilderList
Label annotations on shot level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1beta2.LabelAnnotation shot_label_annotations = 3;- Specified by:
getShotLabelAnnotationsOrBuilderListin interfaceVideoAnnotationResultsOrBuilder
-
getShotLabelAnnotationsCount
public int getShotLabelAnnotationsCount()Label annotations on shot level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1beta2.LabelAnnotation shot_label_annotations = 3;- Specified by:
getShotLabelAnnotationsCountin interfaceVideoAnnotationResultsOrBuilder
-
getShotLabelAnnotations
Label annotations on shot level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1beta2.LabelAnnotation shot_label_annotations = 3;- Specified by:
getShotLabelAnnotationsin interfaceVideoAnnotationResultsOrBuilder
-
getShotLabelAnnotationsOrBuilder
Label annotations on shot level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1beta2.LabelAnnotation shot_label_annotations = 3;- Specified by:
getShotLabelAnnotationsOrBuilderin interfaceVideoAnnotationResultsOrBuilder
-
getFrameLabelAnnotationsList
Label annotations on frame level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1beta2.LabelAnnotation frame_label_annotations = 4;- Specified by:
getFrameLabelAnnotationsListin interfaceVideoAnnotationResultsOrBuilder
-
getFrameLabelAnnotationsOrBuilderList
Label annotations on frame level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1beta2.LabelAnnotation frame_label_annotations = 4;- Specified by:
getFrameLabelAnnotationsOrBuilderListin interfaceVideoAnnotationResultsOrBuilder
-
getFrameLabelAnnotationsCount
public int getFrameLabelAnnotationsCount()Label annotations on frame level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1beta2.LabelAnnotation frame_label_annotations = 4;- Specified by:
getFrameLabelAnnotationsCountin interfaceVideoAnnotationResultsOrBuilder
-
getFrameLabelAnnotations
Label annotations on frame level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1beta2.LabelAnnotation frame_label_annotations = 4;- Specified by:
getFrameLabelAnnotationsin interfaceVideoAnnotationResultsOrBuilder
-
getFrameLabelAnnotationsOrBuilder
Label annotations on frame level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1beta2.LabelAnnotation frame_label_annotations = 4;- Specified by:
getFrameLabelAnnotationsOrBuilderin interfaceVideoAnnotationResultsOrBuilder
-
getFaceAnnotationsList
Face annotations. There is exactly one element for each unique face.
repeated .google.cloud.videointelligence.v1beta2.FaceAnnotation face_annotations = 5;- Specified by:
getFaceAnnotationsListin interfaceVideoAnnotationResultsOrBuilder
-
getFaceAnnotationsOrBuilderList
Face annotations. There is exactly one element for each unique face.
repeated .google.cloud.videointelligence.v1beta2.FaceAnnotation face_annotations = 5;- Specified by:
getFaceAnnotationsOrBuilderListin interfaceVideoAnnotationResultsOrBuilder
-
getFaceAnnotationsCount
public int getFaceAnnotationsCount()Face annotations. There is exactly one element for each unique face.
repeated .google.cloud.videointelligence.v1beta2.FaceAnnotation face_annotations = 5;- Specified by:
getFaceAnnotationsCountin interfaceVideoAnnotationResultsOrBuilder
-
getFaceAnnotations
Face annotations. There is exactly one element for each unique face.
repeated .google.cloud.videointelligence.v1beta2.FaceAnnotation face_annotations = 5;- Specified by:
getFaceAnnotationsin interfaceVideoAnnotationResultsOrBuilder
-
getFaceAnnotationsOrBuilder
Face annotations. There is exactly one element for each unique face.
repeated .google.cloud.videointelligence.v1beta2.FaceAnnotation face_annotations = 5;- Specified by:
getFaceAnnotationsOrBuilderin interfaceVideoAnnotationResultsOrBuilder
-
getShotAnnotationsList
Shot annotations. Each shot is represented as a video segment.
repeated .google.cloud.videointelligence.v1beta2.VideoSegment shot_annotations = 6;- Specified by:
getShotAnnotationsListin interfaceVideoAnnotationResultsOrBuilder
-
getShotAnnotationsOrBuilderList
Shot annotations. Each shot is represented as a video segment.
repeated .google.cloud.videointelligence.v1beta2.VideoSegment shot_annotations = 6;- Specified by:
getShotAnnotationsOrBuilderListin interfaceVideoAnnotationResultsOrBuilder
-
getShotAnnotationsCount
public int getShotAnnotationsCount()Shot annotations. Each shot is represented as a video segment.
repeated .google.cloud.videointelligence.v1beta2.VideoSegment shot_annotations = 6;- Specified by:
getShotAnnotationsCountin interfaceVideoAnnotationResultsOrBuilder
-
getShotAnnotations
Shot annotations. Each shot is represented as a video segment.
repeated .google.cloud.videointelligence.v1beta2.VideoSegment shot_annotations = 6;- Specified by:
getShotAnnotationsin interfaceVideoAnnotationResultsOrBuilder
-
getShotAnnotationsOrBuilder
Shot annotations. Each shot is represented as a video segment.
repeated .google.cloud.videointelligence.v1beta2.VideoSegment shot_annotations = 6;- Specified by:
getShotAnnotationsOrBuilderin interfaceVideoAnnotationResultsOrBuilder
-
hasExplicitAnnotation
public boolean hasExplicitAnnotation()Explicit content annotation.
.google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation explicit_annotation = 7;- Specified by:
hasExplicitAnnotationin interfaceVideoAnnotationResultsOrBuilder- Returns:
- Whether the explicitAnnotation field is set.
-
getExplicitAnnotation
Explicit content annotation.
.google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation explicit_annotation = 7;- Specified by:
getExplicitAnnotationin interfaceVideoAnnotationResultsOrBuilder- Returns:
- The explicitAnnotation.
-
getExplicitAnnotationOrBuilder
Explicit content annotation.
.google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation explicit_annotation = 7;- Specified by:
getExplicitAnnotationOrBuilderin interfaceVideoAnnotationResultsOrBuilder
-
hasError
public boolean hasError()If set, indicates an error. Note that for a single `AnnotateVideoRequest` some videos may succeed and some may fail.
.google.rpc.Status error = 9;- Specified by:
hasErrorin interfaceVideoAnnotationResultsOrBuilder- Returns:
- Whether the error field is set.
-
getError
If set, indicates an error. Note that for a single `AnnotateVideoRequest` some videos may succeed and some may fail.
.google.rpc.Status error = 9;- Specified by:
getErrorin interfaceVideoAnnotationResultsOrBuilder- Returns:
- The error.
-
getErrorOrBuilder
If set, indicates an error. Note that for a single `AnnotateVideoRequest` some videos may succeed and some may fail.
.google.rpc.Status error = 9;- Specified by:
getErrorOrBuilderin interfaceVideoAnnotationResultsOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static VideoAnnotationResults parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VideoAnnotationResults parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VideoAnnotationResults parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VideoAnnotationResults parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VideoAnnotationResults parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VideoAnnotationResults parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static VideoAnnotationResults parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static VideoAnnotationResults parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static VideoAnnotationResults parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static VideoAnnotationResults parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected VideoAnnotationResults.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-