Class VideoContext (2.16.0)

public final class VideoContext extends GeneratedMessageV3 implements VideoContextOrBuilder

Video context and/or feature-specific parameters.

Protobuf type google.cloud.videointelligence.v1p2beta1.VideoContext

Static Fields

EXPLICIT_CONTENT_DETECTION_CONFIG_FIELD_NUMBER

public static final int EXPLICIT_CONTENT_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

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

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.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;

Returns
TypeDescription
ExplicitContentDetectionConfig

The explicitContentDetectionConfig.

getExplicitContentDetectionConfigOrBuilder()

public ExplicitContentDetectionConfigOrBuilder getExplicitContentDetectionConfigOrBuilder()

Config for EXPLICIT_CONTENT_DETECTION.

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

Returns
TypeDescription
ExplicitContentDetectionConfigOrBuilder

getLabelDetectionConfig()

public LabelDetectionConfig getLabelDetectionConfig()

Config for LABEL_DETECTION.

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

Returns
TypeDescription
LabelDetectionConfig

The labelDetectionConfig.

getLabelDetectionConfigOrBuilder()

public LabelDetectionConfigOrBuilder getLabelDetectionConfigOrBuilder()

Config for LABEL_DETECTION.

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

Returns
TypeDescription
LabelDetectionConfigOrBuilder

getParserForType()

public Parser<VideoContext> getParserForType()
Returns
TypeDescription
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.v1p2beta1.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.v1p2beta1.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.v1p2beta1.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.v1p2beta1.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.v1p2beta1.VideoSegment segments = 1;

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getShotChangeDetectionConfig()

public ShotChangeDetectionConfig getShotChangeDetectionConfig()

Config for SHOT_CHANGE_DETECTION.

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

Returns
TypeDescription
ShotChangeDetectionConfig

The shotChangeDetectionConfig.

getShotChangeDetectionConfigOrBuilder()

public ShotChangeDetectionConfigOrBuilder getShotChangeDetectionConfigOrBuilder()

Config for SHOT_CHANGE_DETECTION.

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

Returns
TypeDescription
ShotChangeDetectionConfigOrBuilder

getTextDetectionConfig()

public TextDetectionConfig getTextDetectionConfig()

Config for TEXT_DETECTION.

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

Returns
TypeDescription
TextDetectionConfig

The textDetectionConfig.

getTextDetectionConfigOrBuilder()

public TextDetectionConfigOrBuilder getTextDetectionConfigOrBuilder()

Config for TEXT_DETECTION.

.google.cloud.videointelligence.v1p2beta1.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.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;

Returns
TypeDescription
boolean

Whether the explicitContentDetectionConfig field is set.

hasLabelDetectionConfig()

public boolean hasLabelDetectionConfig()

Config for LABEL_DETECTION.

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

Returns
TypeDescription
boolean

Whether the labelDetectionConfig field is set.

hasShotChangeDetectionConfig()

public boolean hasShotChangeDetectionConfig()

Config for SHOT_CHANGE_DETECTION.

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

Returns
TypeDescription
boolean

Whether the shotChangeDetectionConfig field is set.

hasTextDetectionConfig()

public boolean hasTextDetectionConfig()

Config for TEXT_DETECTION.

.google.cloud.videointelligence.v1p2beta1.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