public final class VideoAnnotationResults extends GeneratedMessageV3 implements VideoAnnotationResultsOrBuilder
Annotation results for a single video.Protobuf type
google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults| Modifier and Type | Class and Description |
|---|---|
static class |
VideoAnnotationResults.Builder
Annotation results for a single video.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR_FIELD_NUMBER |
static int |
EXPLICIT_ANNOTATION_FIELD_NUMBER |
static int |
FRAME_LABEL_ANNOTATIONS_FIELD_NUMBER |
static int |
INPUT_URI_FIELD_NUMBER |
static int |
SEGMENT_LABEL_ANNOTATIONS_FIELD_NUMBER |
static int |
SHOT_ANNOTATIONS_FIELD_NUMBER |
static int |
SHOT_LABEL_ANNOTATIONS_FIELD_NUMBER |
static int |
SPEECH_TRANSCRIPTIONS_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int INPUT_URI_FIELD_NUMBER
public static final int SEGMENT_LABEL_ANNOTATIONS_FIELD_NUMBER
public static final int SHOT_LABEL_ANNOTATIONS_FIELD_NUMBER
public static final int FRAME_LABEL_ANNOTATIONS_FIELD_NUMBER
public static final int SHOT_ANNOTATIONS_FIELD_NUMBER
public static final int EXPLICIT_ANNOTATION_FIELD_NUMBER
public static final int SPEECH_TRANSCRIPTIONS_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public java.lang.String getInputUri()
Video file location in [Google Cloud Storage](https://cloud.google.com/storage/).
string input_uri = 1;getInputUri in interface VideoAnnotationResultsOrBuilderpublic ByteString getInputUriBytes()
Video file location in [Google Cloud Storage](https://cloud.google.com/storage/).
string input_uri = 1;getInputUriBytes in interface VideoAnnotationResultsOrBuilderpublic java.util.List<LabelAnnotation> getSegmentLabelAnnotationsList()
Label annotations on video level or user specified segment level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1p1beta1.LabelAnnotation segment_label_annotations = 2;getSegmentLabelAnnotationsList in interface VideoAnnotationResultsOrBuilderpublic java.util.List<? extends LabelAnnotationOrBuilder> getSegmentLabelAnnotationsOrBuilderList()
Label annotations on video level or user specified segment level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1p1beta1.LabelAnnotation segment_label_annotations = 2;getSegmentLabelAnnotationsOrBuilderList in interface VideoAnnotationResultsOrBuilderpublic 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.v1p1beta1.LabelAnnotation segment_label_annotations = 2;getSegmentLabelAnnotationsCount in interface VideoAnnotationResultsOrBuilderpublic LabelAnnotation getSegmentLabelAnnotations(int index)
Label annotations on video level or user specified segment level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1p1beta1.LabelAnnotation segment_label_annotations = 2;getSegmentLabelAnnotations in interface VideoAnnotationResultsOrBuilderpublic LabelAnnotationOrBuilder getSegmentLabelAnnotationsOrBuilder(int index)
Label annotations on video level or user specified segment level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1p1beta1.LabelAnnotation segment_label_annotations = 2;getSegmentLabelAnnotationsOrBuilder in interface VideoAnnotationResultsOrBuilderpublic java.util.List<LabelAnnotation> getShotLabelAnnotationsList()
Label annotations on shot level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1p1beta1.LabelAnnotation shot_label_annotations = 3;getShotLabelAnnotationsList in interface VideoAnnotationResultsOrBuilderpublic java.util.List<? extends LabelAnnotationOrBuilder> getShotLabelAnnotationsOrBuilderList()
Label annotations on shot level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1p1beta1.LabelAnnotation shot_label_annotations = 3;getShotLabelAnnotationsOrBuilderList in interface VideoAnnotationResultsOrBuilderpublic int getShotLabelAnnotationsCount()
Label annotations on shot level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1p1beta1.LabelAnnotation shot_label_annotations = 3;getShotLabelAnnotationsCount in interface VideoAnnotationResultsOrBuilderpublic LabelAnnotation getShotLabelAnnotations(int index)
Label annotations on shot level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1p1beta1.LabelAnnotation shot_label_annotations = 3;getShotLabelAnnotations in interface VideoAnnotationResultsOrBuilderpublic LabelAnnotationOrBuilder getShotLabelAnnotationsOrBuilder(int index)
Label annotations on shot level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1p1beta1.LabelAnnotation shot_label_annotations = 3;getShotLabelAnnotationsOrBuilder in interface VideoAnnotationResultsOrBuilderpublic java.util.List<LabelAnnotation> getFrameLabelAnnotationsList()
Label annotations on frame level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1p1beta1.LabelAnnotation frame_label_annotations = 4;getFrameLabelAnnotationsList in interface VideoAnnotationResultsOrBuilderpublic java.util.List<? extends LabelAnnotationOrBuilder> getFrameLabelAnnotationsOrBuilderList()
Label annotations on frame level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1p1beta1.LabelAnnotation frame_label_annotations = 4;getFrameLabelAnnotationsOrBuilderList in interface VideoAnnotationResultsOrBuilderpublic int getFrameLabelAnnotationsCount()
Label annotations on frame level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1p1beta1.LabelAnnotation frame_label_annotations = 4;getFrameLabelAnnotationsCount in interface VideoAnnotationResultsOrBuilderpublic LabelAnnotation getFrameLabelAnnotations(int index)
Label annotations on frame level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1p1beta1.LabelAnnotation frame_label_annotations = 4;getFrameLabelAnnotations in interface VideoAnnotationResultsOrBuilderpublic LabelAnnotationOrBuilder getFrameLabelAnnotationsOrBuilder(int index)
Label annotations on frame level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1p1beta1.LabelAnnotation frame_label_annotations = 4;getFrameLabelAnnotationsOrBuilder in interface VideoAnnotationResultsOrBuilderpublic java.util.List<VideoSegment> getShotAnnotationsList()
Shot annotations. Each shot is represented as a video segment.
repeated .google.cloud.videointelligence.v1p1beta1.VideoSegment shot_annotations = 6;getShotAnnotationsList in interface VideoAnnotationResultsOrBuilderpublic java.util.List<? extends VideoSegmentOrBuilder> getShotAnnotationsOrBuilderList()
Shot annotations. Each shot is represented as a video segment.
repeated .google.cloud.videointelligence.v1p1beta1.VideoSegment shot_annotations = 6;getShotAnnotationsOrBuilderList in interface VideoAnnotationResultsOrBuilderpublic int getShotAnnotationsCount()
Shot annotations. Each shot is represented as a video segment.
repeated .google.cloud.videointelligence.v1p1beta1.VideoSegment shot_annotations = 6;getShotAnnotationsCount in interface VideoAnnotationResultsOrBuilderpublic VideoSegment getShotAnnotations(int index)
Shot annotations. Each shot is represented as a video segment.
repeated .google.cloud.videointelligence.v1p1beta1.VideoSegment shot_annotations = 6;getShotAnnotations in interface VideoAnnotationResultsOrBuilderpublic VideoSegmentOrBuilder getShotAnnotationsOrBuilder(int index)
Shot annotations. Each shot is represented as a video segment.
repeated .google.cloud.videointelligence.v1p1beta1.VideoSegment shot_annotations = 6;getShotAnnotationsOrBuilder in interface VideoAnnotationResultsOrBuilderpublic boolean hasExplicitAnnotation()
Explicit content annotation.
.google.cloud.videointelligence.v1p1beta1.ExplicitContentAnnotation explicit_annotation = 7;hasExplicitAnnotation in interface VideoAnnotationResultsOrBuilderpublic ExplicitContentAnnotation getExplicitAnnotation()
Explicit content annotation.
.google.cloud.videointelligence.v1p1beta1.ExplicitContentAnnotation explicit_annotation = 7;getExplicitAnnotation in interface VideoAnnotationResultsOrBuilderpublic ExplicitContentAnnotationOrBuilder getExplicitAnnotationOrBuilder()
Explicit content annotation.
.google.cloud.videointelligence.v1p1beta1.ExplicitContentAnnotation explicit_annotation = 7;getExplicitAnnotationOrBuilder in interface VideoAnnotationResultsOrBuilderpublic java.util.List<SpeechTranscription> getSpeechTranscriptionsList()
Speech transcription.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechTranscription speech_transcriptions = 11;getSpeechTranscriptionsList in interface VideoAnnotationResultsOrBuilderpublic java.util.List<? extends SpeechTranscriptionOrBuilder> getSpeechTranscriptionsOrBuilderList()
Speech transcription.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechTranscription speech_transcriptions = 11;getSpeechTranscriptionsOrBuilderList in interface VideoAnnotationResultsOrBuilderpublic int getSpeechTranscriptionsCount()
Speech transcription.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechTranscription speech_transcriptions = 11;getSpeechTranscriptionsCount in interface VideoAnnotationResultsOrBuilderpublic SpeechTranscription getSpeechTranscriptions(int index)
Speech transcription.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechTranscription speech_transcriptions = 11;getSpeechTranscriptions in interface VideoAnnotationResultsOrBuilderpublic SpeechTranscriptionOrBuilder getSpeechTranscriptionsOrBuilder(int index)
Speech transcription.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechTranscription speech_transcriptions = 11;getSpeechTranscriptionsOrBuilder in interface VideoAnnotationResultsOrBuilderpublic 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;hasError in interface VideoAnnotationResultsOrBuilderpublic Status 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;getError in interface VideoAnnotationResultsOrBuilderpublic StatusOrBuilder 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;getErrorOrBuilder in interface VideoAnnotationResultsOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static VideoAnnotationResults parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static VideoAnnotationResults parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static VideoAnnotationResults parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static VideoAnnotationResults parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static VideoAnnotationResults parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static VideoAnnotationResults parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static VideoAnnotationResults parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static VideoAnnotationResults parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static VideoAnnotationResults parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static VideoAnnotationResults parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static VideoAnnotationResults parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static VideoAnnotationResults parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic VideoAnnotationResults.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static VideoAnnotationResults.Builder newBuilder()
public static VideoAnnotationResults.Builder newBuilder(VideoAnnotationResults prototype)
public VideoAnnotationResults.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected VideoAnnotationResults.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static VideoAnnotationResults getDefaultInstance()
public static Parser<VideoAnnotationResults> parser()
public Parser<VideoAnnotationResults> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public VideoAnnotationResults getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder