Class VideoContext.Builder (2.44.0)

public static final class VideoContext.Builder extends GeneratedMessageV3.Builder<VideoContext.Builder> implements VideoContextOrBuilder

Video context and/or feature-specific parameters.

Protobuf type google.cloud.videointelligence.v1p2beta1.VideoContext

Static Methods

getDescriptor()

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

Methods

addAllSegments(Iterable<? extends VideoSegment> values)

public VideoContext.Builder addAllSegments(Iterable<? extends VideoSegment> values)

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
Name Description
values Iterable<? extends com.google.cloud.videointelligence.v1p2beta1.VideoSegment>
Returns
Type Description
VideoContext.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VideoContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VideoContext.Builder
Overrides

addSegments(VideoSegment value)

public VideoContext.Builder addSegments(VideoSegment value)

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
Name Description
value VideoSegment
Returns
Type Description
VideoContext.Builder

addSegments(VideoSegment.Builder builderForValue)

public VideoContext.Builder addSegments(VideoSegment.Builder builderForValue)

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
Name Description
builderForValue VideoSegment.Builder
Returns
Type Description
VideoContext.Builder

addSegments(int index, VideoSegment value)

public VideoContext.Builder addSegments(int index, VideoSegment value)

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;

Parameters
Name Description
index int
value VideoSegment
Returns
Type Description
VideoContext.Builder

addSegments(int index, VideoSegment.Builder builderForValue)

public VideoContext.Builder addSegments(int index, VideoSegment.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue VideoSegment.Builder
Returns
Type Description
VideoContext.Builder

addSegmentsBuilder()

public VideoSegment.Builder addSegmentsBuilder()

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
Type Description
VideoSegment.Builder

addSegmentsBuilder(int index)

public VideoSegment.Builder addSegmentsBuilder(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
Name Description
index int
Returns
Type Description
VideoSegment.Builder

build()

public VideoContext build()
Returns
Type Description
VideoContext

buildPartial()

public VideoContext buildPartial()
Returns
Type Description
VideoContext

clear()

public VideoContext.Builder clear()
Returns
Type Description
VideoContext.Builder
Overrides

clearExplicitContentDetectionConfig()

public VideoContext.Builder clearExplicitContentDetectionConfig()

Config for EXPLICIT_CONTENT_DETECTION.

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

Returns
Type Description
VideoContext.Builder

clearField(Descriptors.FieldDescriptor field)

public VideoContext.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
VideoContext.Builder
Overrides

clearLabelDetectionConfig()

public VideoContext.Builder clearLabelDetectionConfig()

Config for LABEL_DETECTION.

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

Returns
Type Description
VideoContext.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public VideoContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
VideoContext.Builder
Overrides

clearSegments()

public VideoContext.Builder clearSegments()

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
Type Description
VideoContext.Builder

clearShotChangeDetectionConfig()

public VideoContext.Builder clearShotChangeDetectionConfig()

Config for SHOT_CHANGE_DETECTION.

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

Returns
Type Description
VideoContext.Builder

clearTextDetectionConfig()

public VideoContext.Builder clearTextDetectionConfig()

Config for TEXT_DETECTION.

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

Returns
Type Description
VideoContext.Builder

clone()

public VideoContext.Builder clone()
Returns
Type Description
VideoContext.Builder
Overrides

getDefaultInstanceForType()

public VideoContext getDefaultInstanceForType()
Returns
Type Description
VideoContext

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExplicitContentDetectionConfig()

public ExplicitContentDetectionConfig getExplicitContentDetectionConfig()

Config for EXPLICIT_CONTENT_DETECTION.

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

Returns
Type Description
ExplicitContentDetectionConfig

The explicitContentDetectionConfig.

getExplicitContentDetectionConfigBuilder()

public ExplicitContentDetectionConfig.Builder getExplicitContentDetectionConfigBuilder()

Config for EXPLICIT_CONTENT_DETECTION.

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

Returns
Type Description
ExplicitContentDetectionConfig.Builder

getExplicitContentDetectionConfigOrBuilder()

public ExplicitContentDetectionConfigOrBuilder getExplicitContentDetectionConfigOrBuilder()

Config for EXPLICIT_CONTENT_DETECTION.

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

Returns
Type Description
ExplicitContentDetectionConfigOrBuilder

getLabelDetectionConfig()

public LabelDetectionConfig getLabelDetectionConfig()

Config for LABEL_DETECTION.

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

Returns
Type Description
LabelDetectionConfig

The labelDetectionConfig.

getLabelDetectionConfigBuilder()

public LabelDetectionConfig.Builder getLabelDetectionConfigBuilder()

Config for LABEL_DETECTION.

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

Returns
Type Description
LabelDetectionConfig.Builder

getLabelDetectionConfigOrBuilder()

public LabelDetectionConfigOrBuilder getLabelDetectionConfigOrBuilder()

Config for LABEL_DETECTION.

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

Returns
Type Description
LabelDetectionConfigOrBuilder

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
Name Description
index int
Returns
Type Description
VideoSegment

getSegmentsBuilder(int index)

public VideoSegment.Builder getSegmentsBuilder(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
Name Description
index int
Returns
Type Description
VideoSegment.Builder

getSegmentsBuilderList()

public List<VideoSegment.Builder> getSegmentsBuilderList()

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
Type Description
List<Builder>

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

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

getShotChangeDetectionConfig()

public ShotChangeDetectionConfig getShotChangeDetectionConfig()

Config for SHOT_CHANGE_DETECTION.

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

Returns
Type Description
ShotChangeDetectionConfig

The shotChangeDetectionConfig.

getShotChangeDetectionConfigBuilder()

public ShotChangeDetectionConfig.Builder getShotChangeDetectionConfigBuilder()

Config for SHOT_CHANGE_DETECTION.

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

Returns
Type Description
ShotChangeDetectionConfig.Builder

getShotChangeDetectionConfigOrBuilder()

public ShotChangeDetectionConfigOrBuilder getShotChangeDetectionConfigOrBuilder()

Config for SHOT_CHANGE_DETECTION.

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

Returns
Type Description
ShotChangeDetectionConfigOrBuilder

getTextDetectionConfig()

public TextDetectionConfig getTextDetectionConfig()

Config for TEXT_DETECTION.

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

Returns
Type Description
TextDetectionConfig

The textDetectionConfig.

getTextDetectionConfigBuilder()

public TextDetectionConfig.Builder getTextDetectionConfigBuilder()

Config for TEXT_DETECTION.

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

Returns
Type Description
TextDetectionConfig.Builder

getTextDetectionConfigOrBuilder()

public TextDetectionConfigOrBuilder getTextDetectionConfigOrBuilder()

Config for TEXT_DETECTION.

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

Returns
Type Description
TextDetectionConfigOrBuilder

hasExplicitContentDetectionConfig()

public boolean hasExplicitContentDetectionConfig()

Config for EXPLICIT_CONTENT_DETECTION.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the textDetectionConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExplicitContentDetectionConfig(ExplicitContentDetectionConfig value)

public VideoContext.Builder mergeExplicitContentDetectionConfig(ExplicitContentDetectionConfig value)

Config for EXPLICIT_CONTENT_DETECTION.

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

Parameter
Name Description
value ExplicitContentDetectionConfig
Returns
Type Description
VideoContext.Builder

mergeFrom(VideoContext other)

public VideoContext.Builder mergeFrom(VideoContext other)
Parameter
Name Description
other VideoContext
Returns
Type Description
VideoContext.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VideoContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VideoContext.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public VideoContext.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
VideoContext.Builder
Overrides

mergeLabelDetectionConfig(LabelDetectionConfig value)

public VideoContext.Builder mergeLabelDetectionConfig(LabelDetectionConfig value)

Config for LABEL_DETECTION.

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

Parameter
Name Description
value LabelDetectionConfig
Returns
Type Description
VideoContext.Builder

mergeShotChangeDetectionConfig(ShotChangeDetectionConfig value)

public VideoContext.Builder mergeShotChangeDetectionConfig(ShotChangeDetectionConfig value)

Config for SHOT_CHANGE_DETECTION.

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

Parameter
Name Description
value ShotChangeDetectionConfig
Returns
Type Description
VideoContext.Builder

mergeTextDetectionConfig(TextDetectionConfig value)

public VideoContext.Builder mergeTextDetectionConfig(TextDetectionConfig value)

Config for TEXT_DETECTION.

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

Parameter
Name Description
value TextDetectionConfig
Returns
Type Description
VideoContext.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VideoContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VideoContext.Builder
Overrides

removeSegments(int index)

public VideoContext.Builder removeSegments(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
Name Description
index int
Returns
Type Description
VideoContext.Builder

setExplicitContentDetectionConfig(ExplicitContentDetectionConfig value)

public VideoContext.Builder setExplicitContentDetectionConfig(ExplicitContentDetectionConfig value)

Config for EXPLICIT_CONTENT_DETECTION.

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

Parameter
Name Description
value ExplicitContentDetectionConfig
Returns
Type Description
VideoContext.Builder

setExplicitContentDetectionConfig(ExplicitContentDetectionConfig.Builder builderForValue)

public VideoContext.Builder setExplicitContentDetectionConfig(ExplicitContentDetectionConfig.Builder builderForValue)

Config for EXPLICIT_CONTENT_DETECTION.

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

Parameter
Name Description
builderForValue ExplicitContentDetectionConfig.Builder
Returns
Type Description
VideoContext.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public VideoContext.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VideoContext.Builder
Overrides

setLabelDetectionConfig(LabelDetectionConfig value)

public VideoContext.Builder setLabelDetectionConfig(LabelDetectionConfig value)

Config for LABEL_DETECTION.

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

Parameter
Name Description
value LabelDetectionConfig
Returns
Type Description
VideoContext.Builder

setLabelDetectionConfig(LabelDetectionConfig.Builder builderForValue)

public VideoContext.Builder setLabelDetectionConfig(LabelDetectionConfig.Builder builderForValue)

Config for LABEL_DETECTION.

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

Parameter
Name Description
builderForValue LabelDetectionConfig.Builder
Returns
Type Description
VideoContext.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public VideoContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
VideoContext.Builder
Overrides

setSegments(int index, VideoSegment value)

public VideoContext.Builder setSegments(int index, VideoSegment value)

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;

Parameters
Name Description
index int
value VideoSegment
Returns
Type Description
VideoContext.Builder

setSegments(int index, VideoSegment.Builder builderForValue)

public VideoContext.Builder setSegments(int index, VideoSegment.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue VideoSegment.Builder
Returns
Type Description
VideoContext.Builder

setShotChangeDetectionConfig(ShotChangeDetectionConfig value)

public VideoContext.Builder setShotChangeDetectionConfig(ShotChangeDetectionConfig value)

Config for SHOT_CHANGE_DETECTION.

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

Parameter
Name Description
value ShotChangeDetectionConfig
Returns
Type Description
VideoContext.Builder

setShotChangeDetectionConfig(ShotChangeDetectionConfig.Builder builderForValue)

public VideoContext.Builder setShotChangeDetectionConfig(ShotChangeDetectionConfig.Builder builderForValue)

Config for SHOT_CHANGE_DETECTION.

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

Parameter
Name Description
builderForValue ShotChangeDetectionConfig.Builder
Returns
Type Description
VideoContext.Builder

setTextDetectionConfig(TextDetectionConfig value)

public VideoContext.Builder setTextDetectionConfig(TextDetectionConfig value)

Config for TEXT_DETECTION.

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

Parameter
Name Description
value TextDetectionConfig
Returns
Type Description
VideoContext.Builder

setTextDetectionConfig(TextDetectionConfig.Builder builderForValue)

public VideoContext.Builder setTextDetectionConfig(TextDetectionConfig.Builder builderForValue)

Config for TEXT_DETECTION.

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

Parameter
Name Description
builderForValue TextDetectionConfig.Builder
Returns
Type Description
VideoContext.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final VideoContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VideoContext.Builder
Overrides