Class StreamingVideoAnnotationResults (2.2.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
TypeDescription
int

LABEL_ANNOTATIONS_FIELD_NUMBER

public static final int LABEL_ANNOTATIONS_FIELD_NUMBER
Field Value
TypeDescription
int

OBJECT_ANNOTATIONS_FIELD_NUMBER

public static final int OBJECT_ANNOTATIONS_FIELD_NUMBER
Field Value
TypeDescription
int

SHOT_ANNOTATIONS_FIELD_NUMBER

public static final int SHOT_ANNOTATIONS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static StreamingVideoAnnotationResults getDefaultInstance()
Returns
TypeDescription
StreamingVideoAnnotationResults

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static StreamingVideoAnnotationResults.Builder newBuilder()
Returns
TypeDescription
StreamingVideoAnnotationResults.Builder

newBuilder(StreamingVideoAnnotationResults prototype)

public static StreamingVideoAnnotationResults.Builder newBuilder(StreamingVideoAnnotationResults prototype)
Parameter
NameDescription
prototypeStreamingVideoAnnotationResults
Returns
TypeDescription
StreamingVideoAnnotationResults.Builder

parseDelimitedFrom(InputStream input)

public static StreamingVideoAnnotationResults parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
StreamingVideoAnnotationResults
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamingVideoAnnotationResults parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingVideoAnnotationResults
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static StreamingVideoAnnotationResults parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
StreamingVideoAnnotationResults
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static StreamingVideoAnnotationResults parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingVideoAnnotationResults
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static StreamingVideoAnnotationResults parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
StreamingVideoAnnotationResults
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static StreamingVideoAnnotationResults parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingVideoAnnotationResults
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static StreamingVideoAnnotationResults parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
StreamingVideoAnnotationResults
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamingVideoAnnotationResults parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingVideoAnnotationResults
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static StreamingVideoAnnotationResults parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
StreamingVideoAnnotationResults
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamingVideoAnnotationResults parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingVideoAnnotationResults
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static StreamingVideoAnnotationResults parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
StreamingVideoAnnotationResults
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static StreamingVideoAnnotationResults parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingVideoAnnotationResults
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<StreamingVideoAnnotationResults> parser()
Returns
TypeDescription
Parser<StreamingVideoAnnotationResults>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public StreamingVideoAnnotationResults getDefaultInstanceForType()
Returns
TypeDescription
StreamingVideoAnnotationResults

getExplicitAnnotation()

public ExplicitContentAnnotation getExplicitAnnotation()

Explicit content annotation results.

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

Returns
TypeDescription
ExplicitContentAnnotation

The explicitAnnotation.

getExplicitAnnotationOrBuilder()

public ExplicitContentAnnotationOrBuilder getExplicitAnnotationOrBuilder()

Explicit content annotation results.

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

Returns
TypeDescription
ExplicitContentAnnotationOrBuilder

getLabelAnnotations(int index)

public LabelAnnotation getLabelAnnotations(int index)

Label annotation results.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
LabelAnnotation

getLabelAnnotationsCount()

public int getLabelAnnotationsCount()

Label annotation results.

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

Returns
TypeDescription
int

getLabelAnnotationsList()

public List<LabelAnnotation> getLabelAnnotationsList()

Label annotation results.

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

Returns
TypeDescription
List<LabelAnnotation>

getLabelAnnotationsOrBuilder(int index)

public LabelAnnotationOrBuilder getLabelAnnotationsOrBuilder(int index)

Label annotation results.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
LabelAnnotationOrBuilder

getLabelAnnotationsOrBuilderList()

public List<? extends LabelAnnotationOrBuilder> getLabelAnnotationsOrBuilderList()

Label annotation results.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ObjectTrackingAnnotation

getObjectAnnotationsCount()

public int getObjectAnnotationsCount()

Object tracking results.

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

Returns
TypeDescription
int

getObjectAnnotationsList()

public List<ObjectTrackingAnnotation> getObjectAnnotationsList()

Object tracking results.

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

Returns
TypeDescription
List<ObjectTrackingAnnotation>

getObjectAnnotationsOrBuilder(int index)

public ObjectTrackingAnnotationOrBuilder getObjectAnnotationsOrBuilder(int index)

Object tracking results.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ObjectTrackingAnnotationOrBuilder

getObjectAnnotationsOrBuilderList()

public List<? extends ObjectTrackingAnnotationOrBuilder> getObjectAnnotationsOrBuilderList()

Object tracking results.

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

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

getParserForType()

public Parser<StreamingVideoAnnotationResults> getParserForType()
Returns
TypeDescription
Parser<StreamingVideoAnnotationResults>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder>

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasExplicitAnnotation()

public boolean hasExplicitAnnotation()

Explicit content annotation results.

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

Returns
TypeDescription
boolean

Whether the explicitAnnotation field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public StreamingVideoAnnotationResults.Builder newBuilderForType()
Returns
TypeDescription
StreamingVideoAnnotationResults.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected StreamingVideoAnnotationResults.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
StreamingVideoAnnotationResults.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public StreamingVideoAnnotationResults.Builder toBuilder()
Returns
TypeDescription
StreamingVideoAnnotationResults.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException