Class VideoContext.Builder (2.17.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.v1.VideoContext

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1.VideoSegment segments = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.videointelligence.v1.VideoSegment>
Returns
TypeDescription
VideoContext.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VideoContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1.VideoSegment segments = 1;

Parameter
NameDescription
valueVideoSegment
Returns
TypeDescription
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.v1.VideoSegment segments = 1;

Parameter
NameDescription
builderForValueVideoSegment.Builder
Returns
TypeDescription
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.v1.VideoSegment segments = 1;

Parameters
NameDescription
indexint
valueVideoSegment
Returns
TypeDescription
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.v1.VideoSegment segments = 1;

Parameters
NameDescription
indexint
builderForValueVideoSegment.Builder
Returns
TypeDescription
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.v1.VideoSegment segments = 1;

Returns
TypeDescription
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.v1.VideoSegment segments = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
VideoSegment.Builder

build()

public VideoContext build()
Returns
TypeDescription
VideoContext

buildPartial()

public VideoContext buildPartial()
Returns
TypeDescription
VideoContext

clear()

public VideoContext.Builder clear()
Returns
TypeDescription
VideoContext.Builder
Overrides

clearExplicitContentDetectionConfig()

public VideoContext.Builder clearExplicitContentDetectionConfig()

Config for EXPLICIT_CONTENT_DETECTION.

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

Returns
TypeDescription
VideoContext.Builder

clearFaceDetectionConfig()

public VideoContext.Builder clearFaceDetectionConfig()

Config for FACE_DETECTION.

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

Returns
TypeDescription
VideoContext.Builder

clearField(Descriptors.FieldDescriptor field)

public VideoContext.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
VideoContext.Builder
Overrides

clearLabelDetectionConfig()

public VideoContext.Builder clearLabelDetectionConfig()

Config for LABEL_DETECTION.

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

Returns
TypeDescription
VideoContext.Builder

clearObjectTrackingConfig()

public VideoContext.Builder clearObjectTrackingConfig()

Config for OBJECT_TRACKING.

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

Returns
TypeDescription
VideoContext.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public VideoContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
VideoContext.Builder
Overrides

clearPersonDetectionConfig()

public VideoContext.Builder clearPersonDetectionConfig()

Config for PERSON_DETECTION.

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

Returns
TypeDescription
VideoContext.Builder

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

Returns
TypeDescription
VideoContext.Builder

clearShotChangeDetectionConfig()

public VideoContext.Builder clearShotChangeDetectionConfig()

Config for SHOT_CHANGE_DETECTION.

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

Returns
TypeDescription
VideoContext.Builder

clearSpeechTranscriptionConfig()

public VideoContext.Builder clearSpeechTranscriptionConfig()

Config for SPEECH_TRANSCRIPTION.

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

Returns
TypeDescription
VideoContext.Builder

clearTextDetectionConfig()

public VideoContext.Builder clearTextDetectionConfig()

Config for TEXT_DETECTION.

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

Returns
TypeDescription
VideoContext.Builder

clone()

public VideoContext.Builder clone()
Returns
TypeDescription
VideoContext.Builder
Overrides

getDefaultInstanceForType()

public VideoContext getDefaultInstanceForType()
Returns
TypeDescription
VideoContext

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExplicitContentDetectionConfig()

public ExplicitContentDetectionConfig getExplicitContentDetectionConfig()

Config for EXPLICIT_CONTENT_DETECTION.

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

Returns
TypeDescription
ExplicitContentDetectionConfig

The explicitContentDetectionConfig.

getExplicitContentDetectionConfigBuilder()

public ExplicitContentDetectionConfig.Builder getExplicitContentDetectionConfigBuilder()

Config for EXPLICIT_CONTENT_DETECTION.

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

Returns
TypeDescription
ExplicitContentDetectionConfig.Builder

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.

getFaceDetectionConfigBuilder()

public FaceDetectionConfig.Builder getFaceDetectionConfigBuilder()

Config for FACE_DETECTION.

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

Returns
TypeDescription
FaceDetectionConfig.Builder

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.

getLabelDetectionConfigBuilder()

public LabelDetectionConfig.Builder getLabelDetectionConfigBuilder()

Config for LABEL_DETECTION.

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

Returns
TypeDescription
LabelDetectionConfig.Builder

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.

getObjectTrackingConfigBuilder()

public ObjectTrackingConfig.Builder getObjectTrackingConfigBuilder()

Config for OBJECT_TRACKING.

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

Returns
TypeDescription
ObjectTrackingConfig.Builder

getObjectTrackingConfigOrBuilder()

public ObjectTrackingConfigOrBuilder getObjectTrackingConfigOrBuilder()

Config for OBJECT_TRACKING.

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

Returns
TypeDescription
ObjectTrackingConfigOrBuilder

getPersonDetectionConfig()

public PersonDetectionConfig getPersonDetectionConfig()

Config for PERSON_DETECTION.

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

Returns
TypeDescription
PersonDetectionConfig

The personDetectionConfig.

getPersonDetectionConfigBuilder()

public PersonDetectionConfig.Builder getPersonDetectionConfigBuilder()

Config for PERSON_DETECTION.

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

Returns
TypeDescription
PersonDetectionConfig.Builder

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.VideoSegment segments = 1;

Returns
TypeDescription
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.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>

getShotChangeDetectionConfig()

public ShotChangeDetectionConfig getShotChangeDetectionConfig()

Config for SHOT_CHANGE_DETECTION.

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

Returns
TypeDescription
ShotChangeDetectionConfig

The shotChangeDetectionConfig.

getShotChangeDetectionConfigBuilder()

public ShotChangeDetectionConfig.Builder getShotChangeDetectionConfigBuilder()

Config for SHOT_CHANGE_DETECTION.

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

Returns
TypeDescription
ShotChangeDetectionConfig.Builder

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.

getSpeechTranscriptionConfigBuilder()

public SpeechTranscriptionConfig.Builder getSpeechTranscriptionConfigBuilder()

Config for SPEECH_TRANSCRIPTION.

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

Returns
TypeDescription
SpeechTranscriptionConfig.Builder

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.

getTextDetectionConfigBuilder()

public TextDetectionConfig.Builder getTextDetectionConfigBuilder()

Config for TEXT_DETECTION.

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

Returns
TypeDescription
TextDetectionConfig.Builder

getTextDetectionConfigOrBuilder()

public TextDetectionConfigOrBuilder getTextDetectionConfigOrBuilder()

Config for TEXT_DETECTION.

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

Returns
TypeDescription
TextDetectionConfigOrBuilder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeExplicitContentDetectionConfig(ExplicitContentDetectionConfig value)

public VideoContext.Builder mergeExplicitContentDetectionConfig(ExplicitContentDetectionConfig value)

Config for EXPLICIT_CONTENT_DETECTION.

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

Parameter
NameDescription
valueExplicitContentDetectionConfig
Returns
TypeDescription
VideoContext.Builder

mergeFaceDetectionConfig(FaceDetectionConfig value)

public VideoContext.Builder mergeFaceDetectionConfig(FaceDetectionConfig value)

Config for FACE_DETECTION.

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

Parameter
NameDescription
valueFaceDetectionConfig
Returns
TypeDescription
VideoContext.Builder

mergeFrom(VideoContext other)

public VideoContext.Builder mergeFrom(VideoContext other)
Parameter
NameDescription
otherVideoContext
Returns
TypeDescription
VideoContext.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VideoContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VideoContext.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public VideoContext.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
VideoContext.Builder
Overrides

mergeLabelDetectionConfig(LabelDetectionConfig value)

public VideoContext.Builder mergeLabelDetectionConfig(LabelDetectionConfig value)

Config for LABEL_DETECTION.

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

Parameter
NameDescription
valueLabelDetectionConfig
Returns
TypeDescription
VideoContext.Builder

mergeObjectTrackingConfig(ObjectTrackingConfig value)

public VideoContext.Builder mergeObjectTrackingConfig(ObjectTrackingConfig value)

Config for OBJECT_TRACKING.

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

Parameter
NameDescription
valueObjectTrackingConfig
Returns
TypeDescription
VideoContext.Builder

mergePersonDetectionConfig(PersonDetectionConfig value)

public VideoContext.Builder mergePersonDetectionConfig(PersonDetectionConfig value)

Config for PERSON_DETECTION.

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

Parameter
NameDescription
valuePersonDetectionConfig
Returns
TypeDescription
VideoContext.Builder

mergeShotChangeDetectionConfig(ShotChangeDetectionConfig value)

public VideoContext.Builder mergeShotChangeDetectionConfig(ShotChangeDetectionConfig value)

Config for SHOT_CHANGE_DETECTION.

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

Parameter
NameDescription
valueShotChangeDetectionConfig
Returns
TypeDescription
VideoContext.Builder

mergeSpeechTranscriptionConfig(SpeechTranscriptionConfig value)

public VideoContext.Builder mergeSpeechTranscriptionConfig(SpeechTranscriptionConfig value)

Config for SPEECH_TRANSCRIPTION.

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

Parameter
NameDescription
valueSpeechTranscriptionConfig
Returns
TypeDescription
VideoContext.Builder

mergeTextDetectionConfig(TextDetectionConfig value)

public VideoContext.Builder mergeTextDetectionConfig(TextDetectionConfig value)

Config for TEXT_DETECTION.

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

Parameter
NameDescription
valueTextDetectionConfig
Returns
TypeDescription
VideoContext.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VideoContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1.VideoSegment segments = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
VideoContext.Builder

setExplicitContentDetectionConfig(ExplicitContentDetectionConfig value)

public VideoContext.Builder setExplicitContentDetectionConfig(ExplicitContentDetectionConfig value)

Config for EXPLICIT_CONTENT_DETECTION.

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

Parameter
NameDescription
valueExplicitContentDetectionConfig
Returns
TypeDescription
VideoContext.Builder

setExplicitContentDetectionConfig(ExplicitContentDetectionConfig.Builder builderForValue)

public VideoContext.Builder setExplicitContentDetectionConfig(ExplicitContentDetectionConfig.Builder builderForValue)

Config for EXPLICIT_CONTENT_DETECTION.

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

Parameter
NameDescription
builderForValueExplicitContentDetectionConfig.Builder
Returns
TypeDescription
VideoContext.Builder

setFaceDetectionConfig(FaceDetectionConfig value)

public VideoContext.Builder setFaceDetectionConfig(FaceDetectionConfig value)

Config for FACE_DETECTION.

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

Parameter
NameDescription
valueFaceDetectionConfig
Returns
TypeDescription
VideoContext.Builder

setFaceDetectionConfig(FaceDetectionConfig.Builder builderForValue)

public VideoContext.Builder setFaceDetectionConfig(FaceDetectionConfig.Builder builderForValue)

Config for FACE_DETECTION.

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

Parameter
NameDescription
builderForValueFaceDetectionConfig.Builder
Returns
TypeDescription
VideoContext.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public VideoContext.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VideoContext.Builder
Overrides

setLabelDetectionConfig(LabelDetectionConfig value)

public VideoContext.Builder setLabelDetectionConfig(LabelDetectionConfig value)

Config for LABEL_DETECTION.

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

Parameter
NameDescription
valueLabelDetectionConfig
Returns
TypeDescription
VideoContext.Builder

setLabelDetectionConfig(LabelDetectionConfig.Builder builderForValue)

public VideoContext.Builder setLabelDetectionConfig(LabelDetectionConfig.Builder builderForValue)

Config for LABEL_DETECTION.

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

Parameter
NameDescription
builderForValueLabelDetectionConfig.Builder
Returns
TypeDescription
VideoContext.Builder

setObjectTrackingConfig(ObjectTrackingConfig value)

public VideoContext.Builder setObjectTrackingConfig(ObjectTrackingConfig value)

Config for OBJECT_TRACKING.

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

Parameter
NameDescription
valueObjectTrackingConfig
Returns
TypeDescription
VideoContext.Builder

setObjectTrackingConfig(ObjectTrackingConfig.Builder builderForValue)

public VideoContext.Builder setObjectTrackingConfig(ObjectTrackingConfig.Builder builderForValue)

Config for OBJECT_TRACKING.

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

Parameter
NameDescription
builderForValueObjectTrackingConfig.Builder
Returns
TypeDescription
VideoContext.Builder

setPersonDetectionConfig(PersonDetectionConfig value)

public VideoContext.Builder setPersonDetectionConfig(PersonDetectionConfig value)

Config for PERSON_DETECTION.

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

Parameter
NameDescription
valuePersonDetectionConfig
Returns
TypeDescription
VideoContext.Builder

setPersonDetectionConfig(PersonDetectionConfig.Builder builderForValue)

public VideoContext.Builder setPersonDetectionConfig(PersonDetectionConfig.Builder builderForValue)

Config for PERSON_DETECTION.

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

Parameter
NameDescription
builderForValuePersonDetectionConfig.Builder
Returns
TypeDescription
VideoContext.Builder

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

public VideoContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v1.VideoSegment segments = 1;

Parameters
NameDescription
indexint
valueVideoSegment
Returns
TypeDescription
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.v1.VideoSegment segments = 1;

Parameters
NameDescription
indexint
builderForValueVideoSegment.Builder
Returns
TypeDescription
VideoContext.Builder

setShotChangeDetectionConfig(ShotChangeDetectionConfig value)

public VideoContext.Builder setShotChangeDetectionConfig(ShotChangeDetectionConfig value)

Config for SHOT_CHANGE_DETECTION.

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

Parameter
NameDescription
valueShotChangeDetectionConfig
Returns
TypeDescription
VideoContext.Builder

setShotChangeDetectionConfig(ShotChangeDetectionConfig.Builder builderForValue)

public VideoContext.Builder setShotChangeDetectionConfig(ShotChangeDetectionConfig.Builder builderForValue)

Config for SHOT_CHANGE_DETECTION.

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

Parameter
NameDescription
builderForValueShotChangeDetectionConfig.Builder
Returns
TypeDescription
VideoContext.Builder

setSpeechTranscriptionConfig(SpeechTranscriptionConfig value)

public VideoContext.Builder setSpeechTranscriptionConfig(SpeechTranscriptionConfig value)

Config for SPEECH_TRANSCRIPTION.

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

Parameter
NameDescription
valueSpeechTranscriptionConfig
Returns
TypeDescription
VideoContext.Builder

setSpeechTranscriptionConfig(SpeechTranscriptionConfig.Builder builderForValue)

public VideoContext.Builder setSpeechTranscriptionConfig(SpeechTranscriptionConfig.Builder builderForValue)

Config for SPEECH_TRANSCRIPTION.

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

Parameter
NameDescription
builderForValueSpeechTranscriptionConfig.Builder
Returns
TypeDescription
VideoContext.Builder

setTextDetectionConfig(TextDetectionConfig value)

public VideoContext.Builder setTextDetectionConfig(TextDetectionConfig value)

Config for TEXT_DETECTION.

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

Parameter
NameDescription
valueTextDetectionConfig
Returns
TypeDescription
VideoContext.Builder

setTextDetectionConfig(TextDetectionConfig.Builder builderForValue)

public VideoContext.Builder setTextDetectionConfig(TextDetectionConfig.Builder builderForValue)

Config for TEXT_DETECTION.

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

Parameter
NameDescription
builderForValueTextDetectionConfig.Builder
Returns
TypeDescription
VideoContext.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final VideoContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VideoContext.Builder
Overrides