Class VideoContext (2.15.0)

public final class VideoContext extends GeneratedMessageV3 implements VideoContextOrBuilder

Video context and/or feature-specific parameters.

Protobuf type google.cloud.videointelligence.v1.VideoContext

Static Fields

EXPLICIT_CONTENT_DETECTION_CONFIG_FIELD_NUMBER

public static final int EXPLICIT_CONTENT_DETECTION_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

FACE_DETECTION_CONFIG_FIELD_NUMBER

public static final int FACE_DETECTION_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

LABEL_DETECTION_CONFIG_FIELD_NUMBER

public static final int LABEL_DETECTION_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

OBJECT_TRACKING_CONFIG_FIELD_NUMBER

public static final int OBJECT_TRACKING_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

PERSON_DETECTION_CONFIG_FIELD_NUMBER

public static final int PERSON_DETECTION_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

SEGMENTS_FIELD_NUMBER

public static final int SEGMENTS_FIELD_NUMBER
Field Value
TypeDescription
int

SHOT_CHANGE_DETECTION_CONFIG_FIELD_NUMBER

public static final int SHOT_CHANGE_DETECTION_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

SPEECH_TRANSCRIPTION_CONFIG_FIELD_NUMBER

public static final int SPEECH_TRANSCRIPTION_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

TEXT_DETECTION_CONFIG_FIELD_NUMBER

public static final int TEXT_DETECTION_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static VideoContext getDefaultInstance()
Returns
TypeDescription
VideoContext

getDescriptor()

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

newBuilder()

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

newBuilder(VideoContext prototype)

public static VideoContext.Builder newBuilder(VideoContext prototype)
Parameter
NameDescription
prototypeVideoContext
Returns
TypeDescription
VideoContext.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public VideoContext getDefaultInstanceForType()
Returns
TypeDescription
VideoContext

getExplicitContentDetectionConfig()

public ExplicitContentDetectionConfig getExplicitContentDetectionConfig()

Config for EXPLICIT_CONTENT_DETECTION.

.google.cloud.videointelligence.v1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;

Returns
TypeDescription
ExplicitContentDetectionConfig

The explicitContentDetectionConfig.

getExplicitContentDetectionConfigOrBuilder()

public ExplicitContentDetectionConfigOrBuilder getExplicitContentDetectionConfigOrBuilder()

Config for EXPLICIT_CONTENT_DETECTION.

.google.cloud.videointelligence.v1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;

Returns
TypeDescription
ExplicitContentDetectionConfigOrBuilder

getFaceDetectionConfig()

public FaceDetectionConfig getFaceDetectionConfig()

Config for FACE_DETECTION.

.google.cloud.videointelligence.v1.FaceDetectionConfig face_detection_config = 5;

Returns
TypeDescription
FaceDetectionConfig

The faceDetectionConfig.

getFaceDetectionConfigOrBuilder()

public FaceDetectionConfigOrBuilder getFaceDetectionConfigOrBuilder()

Config for FACE_DETECTION.

.google.cloud.videointelligence.v1.FaceDetectionConfig face_detection_config = 5;

Returns
TypeDescription
FaceDetectionConfigOrBuilder

getLabelDetectionConfig()

public LabelDetectionConfig getLabelDetectionConfig()

Config for LABEL_DETECTION.

.google.cloud.videointelligence.v1.LabelDetectionConfig label_detection_config = 2;

Returns
TypeDescription
LabelDetectionConfig

The labelDetectionConfig.

getLabelDetectionConfigOrBuilder()

public LabelDetectionConfigOrBuilder getLabelDetectionConfigOrBuilder()

Config for LABEL_DETECTION.

.google.cloud.videointelligence.v1.LabelDetectionConfig label_detection_config = 2;

Returns
TypeDescription
LabelDetectionConfigOrBuilder

getObjectTrackingConfig()

public ObjectTrackingConfig getObjectTrackingConfig()

Config for OBJECT_TRACKING.

.google.cloud.videointelligence.v1.ObjectTrackingConfig object_tracking_config = 13;

Returns
TypeDescription
ObjectTrackingConfig

The objectTrackingConfig.

getObjectTrackingConfigOrBuilder()

public ObjectTrackingConfigOrBuilder getObjectTrackingConfigOrBuilder()

Config for OBJECT_TRACKING.

.google.cloud.videointelligence.v1.ObjectTrackingConfig object_tracking_config = 13;

Returns
TypeDescription
ObjectTrackingConfigOrBuilder

getParserForType()

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

getPersonDetectionConfig()

public PersonDetectionConfig getPersonDetectionConfig()

Config for PERSON_DETECTION.

.google.cloud.videointelligence.v1.PersonDetectionConfig person_detection_config = 11;

Returns
TypeDescription
PersonDetectionConfig

The personDetectionConfig.

getPersonDetectionConfigOrBuilder()

public PersonDetectionConfigOrBuilder getPersonDetectionConfigOrBuilder()

Config for PERSON_DETECTION.

.google.cloud.videointelligence.v1.PersonDetectionConfig person_detection_config = 11;

Returns
TypeDescription
PersonDetectionConfigOrBuilder

getSegments(int index)

public VideoSegment getSegments(int index)

Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment.

repeated .google.cloud.videointelligence.v1.VideoSegment segments = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
VideoSegment

getSegmentsCount()

public int getSegmentsCount()

Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment.

repeated .google.cloud.videointelligence.v1.VideoSegment segments = 1;

Returns
TypeDescription
int

getSegmentsList()

public List<VideoSegment> getSegmentsList()

Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment.

repeated .google.cloud.videointelligence.v1.VideoSegment segments = 1;

Returns
TypeDescription
List<VideoSegment>

getSegmentsOrBuilder(int index)

public VideoSegmentOrBuilder getSegmentsOrBuilder(int index)

Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment.

repeated .google.cloud.videointelligence.v1.VideoSegment segments = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
VideoSegmentOrBuilder

getSegmentsOrBuilderList()

public List<? extends VideoSegmentOrBuilder> getSegmentsOrBuilderList()

Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment.

repeated .google.cloud.videointelligence.v1.VideoSegment segments = 1;

Returns
TypeDescription
List<? extends com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getShotChangeDetectionConfig()

public ShotChangeDetectionConfig getShotChangeDetectionConfig()

Config for SHOT_CHANGE_DETECTION.

.google.cloud.videointelligence.v1.ShotChangeDetectionConfig shot_change_detection_config = 3;

Returns
TypeDescription
ShotChangeDetectionConfig

The shotChangeDetectionConfig.

getShotChangeDetectionConfigOrBuilder()

public ShotChangeDetectionConfigOrBuilder getShotChangeDetectionConfigOrBuilder()

Config for SHOT_CHANGE_DETECTION.

.google.cloud.videointelligence.v1.ShotChangeDetectionConfig shot_change_detection_config = 3;

Returns
TypeDescription
ShotChangeDetectionConfigOrBuilder

getSpeechTranscriptionConfig()

public SpeechTranscriptionConfig getSpeechTranscriptionConfig()

Config for SPEECH_TRANSCRIPTION.

.google.cloud.videointelligence.v1.SpeechTranscriptionConfig speech_transcription_config = 6;

Returns
TypeDescription
SpeechTranscriptionConfig

The speechTranscriptionConfig.

getSpeechTranscriptionConfigOrBuilder()

public SpeechTranscriptionConfigOrBuilder getSpeechTranscriptionConfigOrBuilder()

Config for SPEECH_TRANSCRIPTION.

.google.cloud.videointelligence.v1.SpeechTranscriptionConfig speech_transcription_config = 6;

Returns
TypeDescription
SpeechTranscriptionConfigOrBuilder

getTextDetectionConfig()

public TextDetectionConfig getTextDetectionConfig()

Config for TEXT_DETECTION.

.google.cloud.videointelligence.v1.TextDetectionConfig text_detection_config = 8;

Returns
TypeDescription
TextDetectionConfig

The textDetectionConfig.

getTextDetectionConfigOrBuilder()

public TextDetectionConfigOrBuilder getTextDetectionConfigOrBuilder()

Config for TEXT_DETECTION.

.google.cloud.videointelligence.v1.TextDetectionConfig text_detection_config = 8;

Returns
TypeDescription
TextDetectionConfigOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasExplicitContentDetectionConfig()

public boolean hasExplicitContentDetectionConfig()

Config for EXPLICIT_CONTENT_DETECTION.

.google.cloud.videointelligence.v1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;

Returns
TypeDescription
boolean

Whether the explicitContentDetectionConfig field is set.

hasFaceDetectionConfig()

public boolean hasFaceDetectionConfig()

Config for FACE_DETECTION.

.google.cloud.videointelligence.v1.FaceDetectionConfig face_detection_config = 5;

Returns
TypeDescription
boolean

Whether the faceDetectionConfig field is set.

hasLabelDetectionConfig()

public boolean hasLabelDetectionConfig()

Config for LABEL_DETECTION.

.google.cloud.videointelligence.v1.LabelDetectionConfig label_detection_config = 2;

Returns
TypeDescription
boolean

Whether the labelDetectionConfig field is set.

hasObjectTrackingConfig()

public boolean hasObjectTrackingConfig()

Config for OBJECT_TRACKING.

.google.cloud.videointelligence.v1.ObjectTrackingConfig object_tracking_config = 13;

Returns
TypeDescription
boolean

Whether the objectTrackingConfig field is set.

hasPersonDetectionConfig()

public boolean hasPersonDetectionConfig()

Config for PERSON_DETECTION.

.google.cloud.videointelligence.v1.PersonDetectionConfig person_detection_config = 11;

Returns
TypeDescription
boolean

Whether the personDetectionConfig field is set.

hasShotChangeDetectionConfig()

public boolean hasShotChangeDetectionConfig()

Config for SHOT_CHANGE_DETECTION.

.google.cloud.videointelligence.v1.ShotChangeDetectionConfig shot_change_detection_config = 3;

Returns
TypeDescription
boolean

Whether the shotChangeDetectionConfig field is set.

hasSpeechTranscriptionConfig()

public boolean hasSpeechTranscriptionConfig()

Config for SPEECH_TRANSCRIPTION.

.google.cloud.videointelligence.v1.SpeechTranscriptionConfig speech_transcription_config = 6;

Returns
TypeDescription
boolean

Whether the speechTranscriptionConfig field is set.

hasTextDetectionConfig()

public boolean hasTextDetectionConfig()

Config for TEXT_DETECTION.

.google.cloud.videointelligence.v1.TextDetectionConfig text_detection_config = 8;

Returns
TypeDescription
boolean

Whether the textDetectionConfig 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 VideoContext.Builder newBuilderForType()
Returns
TypeDescription
VideoContext.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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