public final class VideoAnnotationResults extends GeneratedMessageV3 implements VideoAnnotationResultsOrBuilder
Annotation results for a single video.Protobuf type
google.cloud.videointelligence.v1beta2.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 |
FACE_ANNOTATIONS_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 |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, 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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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 FACE_ANNOTATIONS_FIELD_NUMBER
public static final int SHOT_ANNOTATIONS_FIELD_NUMBER
public static final int EXPLICIT_ANNOTATION_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public java.lang.String getInputUri()
Video file location in [Google Cloud Storage](https://cloud.google.com/storage/).
string input_uri = 1;
getInputUri
in interface VideoAnnotationResultsOrBuilder
public ByteString getInputUriBytes()
Video file location in [Google Cloud Storage](https://cloud.google.com/storage/).
string input_uri = 1;
getInputUriBytes
in interface VideoAnnotationResultsOrBuilder
public 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.v1beta2.LabelAnnotation segment_label_annotations = 2;
getSegmentLabelAnnotationsList
in interface VideoAnnotationResultsOrBuilder
public 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.v1beta2.LabelAnnotation segment_label_annotations = 2;
getSegmentLabelAnnotationsOrBuilderList
in interface VideoAnnotationResultsOrBuilder
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;
getSegmentLabelAnnotationsCount
in interface VideoAnnotationResultsOrBuilder
public 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.v1beta2.LabelAnnotation segment_label_annotations = 2;
getSegmentLabelAnnotations
in interface VideoAnnotationResultsOrBuilder
public 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.v1beta2.LabelAnnotation segment_label_annotations = 2;
getSegmentLabelAnnotationsOrBuilder
in interface VideoAnnotationResultsOrBuilder
public java.util.List<LabelAnnotation> 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;
getShotLabelAnnotationsList
in interface VideoAnnotationResultsOrBuilder
public java.util.List<? extends LabelAnnotationOrBuilder> 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;
getShotLabelAnnotationsOrBuilderList
in interface VideoAnnotationResultsOrBuilder
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;
getShotLabelAnnotationsCount
in interface VideoAnnotationResultsOrBuilder
public LabelAnnotation getShotLabelAnnotations(int index)
Label annotations on shot level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1beta2.LabelAnnotation shot_label_annotations = 3;
getShotLabelAnnotations
in interface VideoAnnotationResultsOrBuilder
public LabelAnnotationOrBuilder getShotLabelAnnotationsOrBuilder(int index)
Label annotations on shot level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1beta2.LabelAnnotation shot_label_annotations = 3;
getShotLabelAnnotationsOrBuilder
in interface VideoAnnotationResultsOrBuilder
public java.util.List<LabelAnnotation> 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;
getFrameLabelAnnotationsList
in interface VideoAnnotationResultsOrBuilder
public java.util.List<? extends LabelAnnotationOrBuilder> 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;
getFrameLabelAnnotationsOrBuilderList
in interface VideoAnnotationResultsOrBuilder
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;
getFrameLabelAnnotationsCount
in interface VideoAnnotationResultsOrBuilder
public LabelAnnotation getFrameLabelAnnotations(int index)
Label annotations on frame level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1beta2.LabelAnnotation frame_label_annotations = 4;
getFrameLabelAnnotations
in interface VideoAnnotationResultsOrBuilder
public LabelAnnotationOrBuilder getFrameLabelAnnotationsOrBuilder(int index)
Label annotations on frame level. There is exactly one element for each unique label.
repeated .google.cloud.videointelligence.v1beta2.LabelAnnotation frame_label_annotations = 4;
getFrameLabelAnnotationsOrBuilder
in interface VideoAnnotationResultsOrBuilder
public java.util.List<FaceAnnotation> getFaceAnnotationsList()
Face annotations. There is exactly one element for each unique face.
repeated .google.cloud.videointelligence.v1beta2.FaceAnnotation face_annotations = 5;
getFaceAnnotationsList
in interface VideoAnnotationResultsOrBuilder
public java.util.List<? extends FaceAnnotationOrBuilder> getFaceAnnotationsOrBuilderList()
Face annotations. There is exactly one element for each unique face.
repeated .google.cloud.videointelligence.v1beta2.FaceAnnotation face_annotations = 5;
getFaceAnnotationsOrBuilderList
in interface VideoAnnotationResultsOrBuilder
public int getFaceAnnotationsCount()
Face annotations. There is exactly one element for each unique face.
repeated .google.cloud.videointelligence.v1beta2.FaceAnnotation face_annotations = 5;
getFaceAnnotationsCount
in interface VideoAnnotationResultsOrBuilder
public FaceAnnotation getFaceAnnotations(int index)
Face annotations. There is exactly one element for each unique face.
repeated .google.cloud.videointelligence.v1beta2.FaceAnnotation face_annotations = 5;
getFaceAnnotations
in interface VideoAnnotationResultsOrBuilder
public FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder(int index)
Face annotations. There is exactly one element for each unique face.
repeated .google.cloud.videointelligence.v1beta2.FaceAnnotation face_annotations = 5;
getFaceAnnotationsOrBuilder
in interface VideoAnnotationResultsOrBuilder
public java.util.List<VideoSegment> getShotAnnotationsList()
Shot annotations. Each shot is represented as a video segment.
repeated .google.cloud.videointelligence.v1beta2.VideoSegment shot_annotations = 6;
getShotAnnotationsList
in interface VideoAnnotationResultsOrBuilder
public java.util.List<? extends VideoSegmentOrBuilder> getShotAnnotationsOrBuilderList()
Shot annotations. Each shot is represented as a video segment.
repeated .google.cloud.videointelligence.v1beta2.VideoSegment shot_annotations = 6;
getShotAnnotationsOrBuilderList
in interface VideoAnnotationResultsOrBuilder
public int getShotAnnotationsCount()
Shot annotations. Each shot is represented as a video segment.
repeated .google.cloud.videointelligence.v1beta2.VideoSegment shot_annotations = 6;
getShotAnnotationsCount
in interface VideoAnnotationResultsOrBuilder
public VideoSegment getShotAnnotations(int index)
Shot annotations. Each shot is represented as a video segment.
repeated .google.cloud.videointelligence.v1beta2.VideoSegment shot_annotations = 6;
getShotAnnotations
in interface VideoAnnotationResultsOrBuilder
public VideoSegmentOrBuilder getShotAnnotationsOrBuilder(int index)
Shot annotations. Each shot is represented as a video segment.
repeated .google.cloud.videointelligence.v1beta2.VideoSegment shot_annotations = 6;
getShotAnnotationsOrBuilder
in interface VideoAnnotationResultsOrBuilder
public boolean hasExplicitAnnotation()
Explicit content annotation.
.google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation explicit_annotation = 7;
hasExplicitAnnotation
in interface VideoAnnotationResultsOrBuilder
public ExplicitContentAnnotation getExplicitAnnotation()
Explicit content annotation.
.google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation explicit_annotation = 7;
getExplicitAnnotation
in interface VideoAnnotationResultsOrBuilder
public ExplicitContentAnnotationOrBuilder getExplicitAnnotationOrBuilder()
Explicit content annotation.
.google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation explicit_annotation = 7;
getExplicitAnnotationOrBuilder
in interface VideoAnnotationResultsOrBuilder
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;
hasError
in interface VideoAnnotationResultsOrBuilder
public 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 VideoAnnotationResultsOrBuilder
public 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 VideoAnnotationResultsOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static VideoAnnotationResults parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static VideoAnnotationResults parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static VideoAnnotationResults parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static VideoAnnotationResults parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static VideoAnnotationResults parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static VideoAnnotationResults parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static VideoAnnotationResults parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static VideoAnnotationResults parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static VideoAnnotationResults parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static VideoAnnotationResults parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static VideoAnnotationResults parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static VideoAnnotationResults parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public VideoAnnotationResults.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static VideoAnnotationResults.Builder newBuilder()
public static VideoAnnotationResults.Builder newBuilder(VideoAnnotationResults prototype)
public VideoAnnotationResults.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected VideoAnnotationResults.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static VideoAnnotationResults getDefaultInstance()
public static Parser<VideoAnnotationResults> parser()
public Parser<VideoAnnotationResults> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public VideoAnnotationResults getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder