Class VideoContext.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
-
- com.google.cloud.videointelligence.v1p1beta1.VideoContext.Builder
-
- All Implemented Interfaces:
VideoContextOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- VideoContext
public static final class VideoContext.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder> implements VideoContextOrBuilder
Video context and/or feature-specific parameters.
Protobuf typegoogle.cloud.videointelligence.v1p1beta1.VideoContext
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
-
clear
public VideoContext.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
-
getDefaultInstanceForType
public VideoContext getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public VideoContext build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public VideoContext buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public VideoContext.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
-
setField
public VideoContext.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
-
clearField
public VideoContext.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
-
clearOneof
public VideoContext.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
-
setRepeatedField
public VideoContext.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
-
addRepeatedField
public VideoContext.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
-
mergeFrom
public VideoContext.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<VideoContext.Builder>
-
mergeFrom
public VideoContext.Builder mergeFrom(VideoContext other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
-
mergeFrom
public VideoContext.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<VideoContext.Builder>
- Throws:
IOException
-
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.v1p1beta1.VideoSegment segments = 1;
- Specified by:
getSegmentsList
in interfaceVideoContextOrBuilder
-
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.v1p1beta1.VideoSegment segments = 1;
- Specified by:
getSegmentsCount
in interfaceVideoContextOrBuilder
-
getSegments
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.v1p1beta1.VideoSegment segments = 1;
- Specified by:
getSegments
in interfaceVideoContextOrBuilder
-
setSegments
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.v1p1beta1.VideoSegment segments = 1;
-
setSegments
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.v1p1beta1.VideoSegment segments = 1;
-
addSegments
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.v1p1beta1.VideoSegment segments = 1;
-
addSegments
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.v1p1beta1.VideoSegment segments = 1;
-
addSegments
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.v1p1beta1.VideoSegment segments = 1;
-
addSegments
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.v1p1beta1.VideoSegment segments = 1;
-
addAllSegments
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.v1p1beta1.VideoSegment segments = 1;
-
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.v1p1beta1.VideoSegment segments = 1;
-
removeSegments
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.v1p1beta1.VideoSegment segments = 1;
-
getSegmentsBuilder
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.v1p1beta1.VideoSegment segments = 1;
-
getSegmentsOrBuilder
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.v1p1beta1.VideoSegment segments = 1;
- Specified by:
getSegmentsOrBuilder
in interfaceVideoContextOrBuilder
-
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.v1p1beta1.VideoSegment segments = 1;
- Specified by:
getSegmentsOrBuilderList
in interfaceVideoContextOrBuilder
-
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.v1p1beta1.VideoSegment segments = 1;
-
addSegmentsBuilder
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.v1p1beta1.VideoSegment segments = 1;
-
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.v1p1beta1.VideoSegment segments = 1;
-
hasLabelDetectionConfig
public boolean hasLabelDetectionConfig()
Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig label_detection_config = 2;
- Specified by:
hasLabelDetectionConfig
in interfaceVideoContextOrBuilder
- Returns:
- Whether the labelDetectionConfig field is set.
-
getLabelDetectionConfig
public LabelDetectionConfig getLabelDetectionConfig()
Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig label_detection_config = 2;
- Specified by:
getLabelDetectionConfig
in interfaceVideoContextOrBuilder
- Returns:
- The labelDetectionConfig.
-
setLabelDetectionConfig
public VideoContext.Builder setLabelDetectionConfig(LabelDetectionConfig value)
Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig label_detection_config = 2;
-
setLabelDetectionConfig
public VideoContext.Builder setLabelDetectionConfig(LabelDetectionConfig.Builder builderForValue)
Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig label_detection_config = 2;
-
mergeLabelDetectionConfig
public VideoContext.Builder mergeLabelDetectionConfig(LabelDetectionConfig value)
Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig label_detection_config = 2;
-
clearLabelDetectionConfig
public VideoContext.Builder clearLabelDetectionConfig()
Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig label_detection_config = 2;
-
getLabelDetectionConfigBuilder
public LabelDetectionConfig.Builder getLabelDetectionConfigBuilder()
Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig label_detection_config = 2;
-
getLabelDetectionConfigOrBuilder
public LabelDetectionConfigOrBuilder getLabelDetectionConfigOrBuilder()
Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig label_detection_config = 2;
- Specified by:
getLabelDetectionConfigOrBuilder
in interfaceVideoContextOrBuilder
-
hasShotChangeDetectionConfig
public boolean hasShotChangeDetectionConfig()
Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
- Specified by:
hasShotChangeDetectionConfig
in interfaceVideoContextOrBuilder
- Returns:
- Whether the shotChangeDetectionConfig field is set.
-
getShotChangeDetectionConfig
public ShotChangeDetectionConfig getShotChangeDetectionConfig()
Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
- Specified by:
getShotChangeDetectionConfig
in interfaceVideoContextOrBuilder
- Returns:
- The shotChangeDetectionConfig.
-
setShotChangeDetectionConfig
public VideoContext.Builder setShotChangeDetectionConfig(ShotChangeDetectionConfig value)
Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
-
setShotChangeDetectionConfig
public VideoContext.Builder setShotChangeDetectionConfig(ShotChangeDetectionConfig.Builder builderForValue)
Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
-
mergeShotChangeDetectionConfig
public VideoContext.Builder mergeShotChangeDetectionConfig(ShotChangeDetectionConfig value)
Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
-
clearShotChangeDetectionConfig
public VideoContext.Builder clearShotChangeDetectionConfig()
Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
-
getShotChangeDetectionConfigBuilder
public ShotChangeDetectionConfig.Builder getShotChangeDetectionConfigBuilder()
Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
-
getShotChangeDetectionConfigOrBuilder
public ShotChangeDetectionConfigOrBuilder getShotChangeDetectionConfigOrBuilder()
Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
- Specified by:
getShotChangeDetectionConfigOrBuilder
in interfaceVideoContextOrBuilder
-
hasExplicitContentDetectionConfig
public boolean hasExplicitContentDetectionConfig()
Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
- Specified by:
hasExplicitContentDetectionConfig
in interfaceVideoContextOrBuilder
- Returns:
- Whether the explicitContentDetectionConfig field is set.
-
getExplicitContentDetectionConfig
public ExplicitContentDetectionConfig getExplicitContentDetectionConfig()
Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
- Specified by:
getExplicitContentDetectionConfig
in interfaceVideoContextOrBuilder
- Returns:
- The explicitContentDetectionConfig.
-
setExplicitContentDetectionConfig
public VideoContext.Builder setExplicitContentDetectionConfig(ExplicitContentDetectionConfig value)
Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
-
setExplicitContentDetectionConfig
public VideoContext.Builder setExplicitContentDetectionConfig(ExplicitContentDetectionConfig.Builder builderForValue)
Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
-
mergeExplicitContentDetectionConfig
public VideoContext.Builder mergeExplicitContentDetectionConfig(ExplicitContentDetectionConfig value)
Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
-
clearExplicitContentDetectionConfig
public VideoContext.Builder clearExplicitContentDetectionConfig()
Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
-
getExplicitContentDetectionConfigBuilder
public ExplicitContentDetectionConfig.Builder getExplicitContentDetectionConfigBuilder()
Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
-
getExplicitContentDetectionConfigOrBuilder
public ExplicitContentDetectionConfigOrBuilder getExplicitContentDetectionConfigOrBuilder()
Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
- Specified by:
getExplicitContentDetectionConfigOrBuilder
in interfaceVideoContextOrBuilder
-
hasSpeechTranscriptionConfig
public boolean hasSpeechTranscriptionConfig()
Config for SPEECH_TRANSCRIPTION.
.google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig speech_transcription_config = 6;
- Specified by:
hasSpeechTranscriptionConfig
in interfaceVideoContextOrBuilder
- Returns:
- Whether the speechTranscriptionConfig field is set.
-
getSpeechTranscriptionConfig
public SpeechTranscriptionConfig getSpeechTranscriptionConfig()
Config for SPEECH_TRANSCRIPTION.
.google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig speech_transcription_config = 6;
- Specified by:
getSpeechTranscriptionConfig
in interfaceVideoContextOrBuilder
- Returns:
- The speechTranscriptionConfig.
-
setSpeechTranscriptionConfig
public VideoContext.Builder setSpeechTranscriptionConfig(SpeechTranscriptionConfig value)
Config for SPEECH_TRANSCRIPTION.
.google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig speech_transcription_config = 6;
-
setSpeechTranscriptionConfig
public VideoContext.Builder setSpeechTranscriptionConfig(SpeechTranscriptionConfig.Builder builderForValue)
Config for SPEECH_TRANSCRIPTION.
.google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig speech_transcription_config = 6;
-
mergeSpeechTranscriptionConfig
public VideoContext.Builder mergeSpeechTranscriptionConfig(SpeechTranscriptionConfig value)
Config for SPEECH_TRANSCRIPTION.
.google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig speech_transcription_config = 6;
-
clearSpeechTranscriptionConfig
public VideoContext.Builder clearSpeechTranscriptionConfig()
Config for SPEECH_TRANSCRIPTION.
.google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig speech_transcription_config = 6;
-
getSpeechTranscriptionConfigBuilder
public SpeechTranscriptionConfig.Builder getSpeechTranscriptionConfigBuilder()
Config for SPEECH_TRANSCRIPTION.
.google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig speech_transcription_config = 6;
-
getSpeechTranscriptionConfigOrBuilder
public SpeechTranscriptionConfigOrBuilder getSpeechTranscriptionConfigOrBuilder()
Config for SPEECH_TRANSCRIPTION.
.google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig speech_transcription_config = 6;
- Specified by:
getSpeechTranscriptionConfigOrBuilder
in interfaceVideoContextOrBuilder
-
setUnknownFields
public final VideoContext.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
-
mergeUnknownFields
public final VideoContext.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
-
-