Class StreamingVideoAnnotationResults (2.41.0)

public final class StreamingVideoAnnotationResults extends GeneratedMessageV3 implements StreamingVideoAnnotationResultsOrBuilder

Streaming annotation results corresponding to a portion of the video that is currently being processed.

Protobuf type google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > StreamingVideoAnnotationResults

Static Fields

EXPLICIT_ANNOTATION_FIELD_NUMBER

public static final int EXPLICIT_ANNOTATION_FIELD_NUMBER
Field Value
Type Description
int

LABEL_ANNOTATIONS_FIELD_NUMBER

public static final int LABEL_ANNOTATIONS_FIELD_NUMBER
Field Value
Type Description
int

OBJECT_ANNOTATIONS_FIELD_NUMBER

public static final int OBJECT_ANNOTATIONS_FIELD_NUMBER
Field Value
Type Description
int

SHOT_ANNOTATIONS_FIELD_NUMBER

public static final int SHOT_ANNOTATIONS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static StreamingVideoAnnotationResults getDefaultInstance()
Returns
Type Description
StreamingVideoAnnotationResults

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static StreamingVideoAnnotationResults.Builder newBuilder()
Returns
Type Description
StreamingVideoAnnotationResults.Builder

newBuilder(StreamingVideoAnnotationResults prototype)

public static StreamingVideoAnnotationResults.Builder newBuilder(StreamingVideoAnnotationResults prototype)
Parameter
Name Description
prototype StreamingVideoAnnotationResults
Returns
Type Description
StreamingVideoAnnotationResults.Builder

parseDelimitedFrom(InputStream input)

public static StreamingVideoAnnotationResults parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StreamingVideoAnnotationResults
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamingVideoAnnotationResults parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamingVideoAnnotationResults
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static StreamingVideoAnnotationResults parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
StreamingVideoAnnotationResults
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static StreamingVideoAnnotationResults parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamingVideoAnnotationResults
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static StreamingVideoAnnotationResults parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
StreamingVideoAnnotationResults
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static StreamingVideoAnnotationResults parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamingVideoAnnotationResults
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static StreamingVideoAnnotationResults parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
StreamingVideoAnnotationResults
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamingVideoAnnotationResults parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamingVideoAnnotationResults
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static StreamingVideoAnnotationResults parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StreamingVideoAnnotationResults
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamingVideoAnnotationResults parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamingVideoAnnotationResults
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static StreamingVideoAnnotationResults parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
StreamingVideoAnnotationResults
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static StreamingVideoAnnotationResults parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamingVideoAnnotationResults
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<StreamingVideoAnnotationResults> parser()
Returns
Type Description
Parser<StreamingVideoAnnotationResults>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public StreamingVideoAnnotationResults getDefaultInstanceForType()
Returns
Type Description
StreamingVideoAnnotationResults

getExplicitAnnotation()

public ExplicitContentAnnotation getExplicitAnnotation()

Explicit content annotation results.

.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3;

Returns
Type Description
ExplicitContentAnnotation

The explicitAnnotation.

getExplicitAnnotationOrBuilder()

public ExplicitContentAnnotationOrBuilder getExplicitAnnotationOrBuilder()

Explicit content annotation results.

.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3;

Returns
Type Description
ExplicitContentAnnotationOrBuilder

getLabelAnnotations(int index)

public LabelAnnotation getLabelAnnotations(int index)

Label annotation results.

repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;

Parameter
Name Description
index int
Returns
Type Description
LabelAnnotation

getLabelAnnotationsCount()

public int getLabelAnnotationsCount()

Label annotation results.

repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;

Returns
Type Description
int

getLabelAnnotationsList()

public List<LabelAnnotation> getLabelAnnotationsList()

Label annotation results.

repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;

Returns
Type Description
List<LabelAnnotation>

getLabelAnnotationsOrBuilder(int index)

public LabelAnnotationOrBuilder getLabelAnnotationsOrBuilder(int index)

Label annotation results.

repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;

Parameter
Name Description
index int
Returns
Type Description
LabelAnnotationOrBuilder

getLabelAnnotationsOrBuilderList()

public List<? extends LabelAnnotationOrBuilder> getLabelAnnotationsOrBuilderList()

Label annotation results.

repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;

Returns
Type Description
List<? extends com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder>

getObjectAnnotations(int index)

public ObjectTrackingAnnotation getObjectAnnotations(int index)

Object tracking results.

repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;

Parameter
Name Description
index int
Returns
Type Description
ObjectTrackingAnnotation

getObjectAnnotationsCount()

public int getObjectAnnotationsCount()

Object tracking results.

repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;

Returns
Type Description
int

getObjectAnnotationsList()

public List<ObjectTrackingAnnotation> getObjectAnnotationsList()

Object tracking results.

repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;

Returns
Type Description
List<ObjectTrackingAnnotation>

getObjectAnnotationsOrBuilder(int index)

public ObjectTrackingAnnotationOrBuilder getObjectAnnotationsOrBuilder(int index)

Object tracking results.

repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;

Parameter
Name Description
index int
Returns
Type Description
ObjectTrackingAnnotationOrBuilder

getObjectAnnotationsOrBuilderList()

public List<? extends ObjectTrackingAnnotationOrBuilder> getObjectAnnotationsOrBuilderList()

Object tracking results.

repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;

Returns
Type Description
List<? extends com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder>

getParserForType()

public Parser<StreamingVideoAnnotationResults> getParserForType()
Returns
Type Description
Parser<StreamingVideoAnnotationResults>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getShotAnnotations(int index)

public VideoSegment getShotAnnotations(int index)

Shot annotation results. Each shot is represented as a video segment.

repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;

Parameter
Name Description
index int
Returns
Type Description
VideoSegment

getShotAnnotationsCount()

public int getShotAnnotationsCount()

Shot annotation results. Each shot is represented as a video segment.

repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;

Returns
Type Description
int

getShotAnnotationsList()

public List<VideoSegment> getShotAnnotationsList()

Shot annotation results. Each shot is represented as a video segment.

repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;

Returns
Type Description
List<VideoSegment>

getShotAnnotationsOrBuilder(int index)

public VideoSegmentOrBuilder getShotAnnotationsOrBuilder(int index)

Shot annotation results. Each shot is represented as a video segment.

repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;

Parameter
Name Description
index int
Returns
Type Description
VideoSegmentOrBuilder

getShotAnnotationsOrBuilderList()

public List<? extends VideoSegmentOrBuilder> getShotAnnotationsOrBuilderList()

Shot annotation results. Each shot is represented as a video segment.

repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;

Returns
Type Description
List<? extends com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder>

hasExplicitAnnotation()

public boolean hasExplicitAnnotation()

Explicit content annotation results.

.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3;

Returns
Type Description
boolean

Whether the explicitAnnotation field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public StreamingVideoAnnotationResults.Builder newBuilderForType()
Returns
Type Description
StreamingVideoAnnotationResults.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected StreamingVideoAnnotationResults.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
StreamingVideoAnnotationResults.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public StreamingVideoAnnotationResults.Builder toBuilder()
Returns
Type Description
StreamingVideoAnnotationResults.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException