Class VideoContext (2.51.0)

public final class VideoContext extends GeneratedMessageV3 implements VideoContextOrBuilder

Video context and/or feature-specific parameters.

Protobuf type google.cloud.videointelligence.v1beta2.VideoContext

Static Fields

EXPLICIT_CONTENT_DETECTION_CONFIG_FIELD_NUMBER

public static final int EXPLICIT_CONTENT_DETECTION_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

FACE_DETECTION_CONFIG_FIELD_NUMBER

public static final int FACE_DETECTION_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

LABEL_DETECTION_CONFIG_FIELD_NUMBER

public static final int LABEL_DETECTION_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

SEGMENTS_FIELD_NUMBER

public static final int SEGMENTS_FIELD_NUMBER
Field Value
Type Description
int

SHOT_CHANGE_DETECTION_CONFIG_FIELD_NUMBER

public static final int SHOT_CHANGE_DETECTION_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static VideoContext getDefaultInstance()
Returns
Type Description
VideoContext

getDescriptor()

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

newBuilder()

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

newBuilder(VideoContext prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public VideoContext getDefaultInstanceForType()
Returns
Type Description
VideoContext

getExplicitContentDetectionConfig()

public ExplicitContentDetectionConfig getExplicitContentDetectionConfig()

Config for EXPLICIT_CONTENT_DETECTION.

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

Returns
Type Description
ExplicitContentDetectionConfig

The explicitContentDetectionConfig.

getExplicitContentDetectionConfigOrBuilder()

public ExplicitContentDetectionConfigOrBuilder getExplicitContentDetectionConfigOrBuilder()

Config for EXPLICIT_CONTENT_DETECTION.

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

Returns
Type Description
ExplicitContentDetectionConfigOrBuilder

getFaceDetectionConfig()

public FaceDetectionConfig getFaceDetectionConfig()

Config for FACE_DETECTION.

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

Returns
Type Description
FaceDetectionConfig

The faceDetectionConfig.

getFaceDetectionConfigOrBuilder()

public FaceDetectionConfigOrBuilder getFaceDetectionConfigOrBuilder()

Config for FACE_DETECTION.

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

Returns
Type Description
FaceDetectionConfigOrBuilder

getLabelDetectionConfig()

public LabelDetectionConfig getLabelDetectionConfig()

Config for LABEL_DETECTION.

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

Returns
Type Description
LabelDetectionConfig

The labelDetectionConfig.

getLabelDetectionConfigOrBuilder()

public LabelDetectionConfigOrBuilder getLabelDetectionConfigOrBuilder()

Config for LABEL_DETECTION.

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

Returns
Type Description
LabelDetectionConfigOrBuilder

getParserForType()

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

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.v1beta2.VideoSegment segments = 1;

Parameter
Name Description
index int
Returns
Type Description
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.v1beta2.VideoSegment segments = 1;

Returns
Type Description
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.v1beta2.VideoSegment segments = 1;

Returns
Type Description
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.v1beta2.VideoSegment segments = 1;

Parameter
Name Description
index int
Returns
Type Description
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.v1beta2.VideoSegment segments = 1;

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getShotChangeDetectionConfig()

public ShotChangeDetectionConfig getShotChangeDetectionConfig()

Config for SHOT_CHANGE_DETECTION.

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

Returns
Type Description
ShotChangeDetectionConfig

The shotChangeDetectionConfig.

getShotChangeDetectionConfigOrBuilder()

public ShotChangeDetectionConfigOrBuilder getShotChangeDetectionConfigOrBuilder()

Config for SHOT_CHANGE_DETECTION.

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

Returns
Type Description
ShotChangeDetectionConfigOrBuilder

hasExplicitContentDetectionConfig()

public boolean hasExplicitContentDetectionConfig()

Config for EXPLICIT_CONTENT_DETECTION.

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

Returns
Type Description
boolean

Whether the explicitContentDetectionConfig field is set.

hasFaceDetectionConfig()

public boolean hasFaceDetectionConfig()

Config for FACE_DETECTION.

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

Returns
Type Description
boolean

Whether the faceDetectionConfig field is set.

hasLabelDetectionConfig()

public boolean hasLabelDetectionConfig()

Config for LABEL_DETECTION.

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

Returns
Type Description
boolean

Whether the labelDetectionConfig field is set.

hasShotChangeDetectionConfig()

public boolean hasShotChangeDetectionConfig()

Config for SHOT_CHANGE_DETECTION.

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

Returns
Type Description
boolean

Whether the shotChangeDetectionConfig 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 VideoContext.Builder newBuilderForType()
Returns
Type Description
VideoContext.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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