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.v1p2beta1.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.v1p2beta1.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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
-
clear
public VideoContext.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
-
getDefaultInstanceForType
public VideoContext getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public VideoContext build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public VideoContext buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public VideoContext.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
-
setField
public VideoContext.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
-
clearField
public VideoContext.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
-
clearOneof
public VideoContext.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
-
setRepeatedField
public VideoContext.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
-
addRepeatedField
public VideoContext.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
-
mergeFrom
public VideoContext.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VideoContext.Builder>
-
mergeFrom
public VideoContext.Builder mergeFrom(VideoContext other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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.v1p2beta1.VideoSegment segments = 1;- Specified by:
getSegmentsListin 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.v1p2beta1.VideoSegment segments = 1;- Specified by:
getSegmentsCountin 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.v1p2beta1.VideoSegment segments = 1;- Specified by:
getSegmentsin 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.v1p2beta1.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.v1p2beta1.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.v1p2beta1.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.v1p2beta1.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.v1p2beta1.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.v1p2beta1.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.v1p2beta1.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.v1p2beta1.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.v1p2beta1.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.v1p2beta1.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.v1p2beta1.VideoSegment segments = 1;- Specified by:
getSegmentsOrBuilderin 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.v1p2beta1.VideoSegment segments = 1;- Specified by:
getSegmentsOrBuilderListin 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.v1p2beta1.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.v1p2beta1.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.v1p2beta1.VideoSegment segments = 1;
-
hasLabelDetectionConfig
public boolean hasLabelDetectionConfig()
Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2;- Specified by:
hasLabelDetectionConfigin interfaceVideoContextOrBuilder- Returns:
- Whether the labelDetectionConfig field is set.
-
getLabelDetectionConfig
public LabelDetectionConfig getLabelDetectionConfig()
Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2;- Specified by:
getLabelDetectionConfigin interfaceVideoContextOrBuilder- Returns:
- The labelDetectionConfig.
-
setLabelDetectionConfig
public VideoContext.Builder setLabelDetectionConfig(LabelDetectionConfig value)
Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2;
-
setLabelDetectionConfig
public VideoContext.Builder setLabelDetectionConfig(LabelDetectionConfig.Builder builderForValue)
Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2;
-
mergeLabelDetectionConfig
public VideoContext.Builder mergeLabelDetectionConfig(LabelDetectionConfig value)
Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2;
-
clearLabelDetectionConfig
public VideoContext.Builder clearLabelDetectionConfig()
Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2;
-
getLabelDetectionConfigBuilder
public LabelDetectionConfig.Builder getLabelDetectionConfigBuilder()
Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2;
-
getLabelDetectionConfigOrBuilder
public LabelDetectionConfigOrBuilder getLabelDetectionConfigOrBuilder()
Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2;- Specified by:
getLabelDetectionConfigOrBuilderin interfaceVideoContextOrBuilder
-
hasShotChangeDetectionConfig
public boolean hasShotChangeDetectionConfig()
Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;- Specified by:
hasShotChangeDetectionConfigin interfaceVideoContextOrBuilder- Returns:
- Whether the shotChangeDetectionConfig field is set.
-
getShotChangeDetectionConfig
public ShotChangeDetectionConfig getShotChangeDetectionConfig()
Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;- Specified by:
getShotChangeDetectionConfigin interfaceVideoContextOrBuilder- Returns:
- The shotChangeDetectionConfig.
-
setShotChangeDetectionConfig
public VideoContext.Builder setShotChangeDetectionConfig(ShotChangeDetectionConfig value)
Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
-
setShotChangeDetectionConfig
public VideoContext.Builder setShotChangeDetectionConfig(ShotChangeDetectionConfig.Builder builderForValue)
Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
-
mergeShotChangeDetectionConfig
public VideoContext.Builder mergeShotChangeDetectionConfig(ShotChangeDetectionConfig value)
Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
-
clearShotChangeDetectionConfig
public VideoContext.Builder clearShotChangeDetectionConfig()
Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
-
getShotChangeDetectionConfigBuilder
public ShotChangeDetectionConfig.Builder getShotChangeDetectionConfigBuilder()
Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
-
getShotChangeDetectionConfigOrBuilder
public ShotChangeDetectionConfigOrBuilder getShotChangeDetectionConfigOrBuilder()
Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;- Specified by:
getShotChangeDetectionConfigOrBuilderin interfaceVideoContextOrBuilder
-
hasExplicitContentDetectionConfig
public boolean hasExplicitContentDetectionConfig()
Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;- Specified by:
hasExplicitContentDetectionConfigin interfaceVideoContextOrBuilder- Returns:
- Whether the explicitContentDetectionConfig field is set.
-
getExplicitContentDetectionConfig
public ExplicitContentDetectionConfig getExplicitContentDetectionConfig()
Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;- Specified by:
getExplicitContentDetectionConfigin interfaceVideoContextOrBuilder- Returns:
- The explicitContentDetectionConfig.
-
setExplicitContentDetectionConfig
public VideoContext.Builder setExplicitContentDetectionConfig(ExplicitContentDetectionConfig value)
Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
-
setExplicitContentDetectionConfig
public VideoContext.Builder setExplicitContentDetectionConfig(ExplicitContentDetectionConfig.Builder builderForValue)
Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
-
mergeExplicitContentDetectionConfig
public VideoContext.Builder mergeExplicitContentDetectionConfig(ExplicitContentDetectionConfig value)
Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
-
clearExplicitContentDetectionConfig
public VideoContext.Builder clearExplicitContentDetectionConfig()
Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
-
getExplicitContentDetectionConfigBuilder
public ExplicitContentDetectionConfig.Builder getExplicitContentDetectionConfigBuilder()
Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
-
getExplicitContentDetectionConfigOrBuilder
public ExplicitContentDetectionConfigOrBuilder getExplicitContentDetectionConfigOrBuilder()
Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;- Specified by:
getExplicitContentDetectionConfigOrBuilderin interfaceVideoContextOrBuilder
-
hasTextDetectionConfig
public boolean hasTextDetectionConfig()
Config for TEXT_DETECTION.
.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8;- Specified by:
hasTextDetectionConfigin interfaceVideoContextOrBuilder- Returns:
- Whether the textDetectionConfig field is set.
-
getTextDetectionConfig
public TextDetectionConfig getTextDetectionConfig()
Config for TEXT_DETECTION.
.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8;- Specified by:
getTextDetectionConfigin interfaceVideoContextOrBuilder- Returns:
- The textDetectionConfig.
-
setTextDetectionConfig
public VideoContext.Builder setTextDetectionConfig(TextDetectionConfig value)
Config for TEXT_DETECTION.
.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8;
-
setTextDetectionConfig
public VideoContext.Builder setTextDetectionConfig(TextDetectionConfig.Builder builderForValue)
Config for TEXT_DETECTION.
.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8;
-
mergeTextDetectionConfig
public VideoContext.Builder mergeTextDetectionConfig(TextDetectionConfig value)
Config for TEXT_DETECTION.
.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8;
-
clearTextDetectionConfig
public VideoContext.Builder clearTextDetectionConfig()
Config for TEXT_DETECTION.
.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8;
-
getTextDetectionConfigBuilder
public TextDetectionConfig.Builder getTextDetectionConfigBuilder()
Config for TEXT_DETECTION.
.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8;
-
getTextDetectionConfigOrBuilder
public TextDetectionConfigOrBuilder getTextDetectionConfigOrBuilder()
Config for TEXT_DETECTION.
.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8;- Specified by:
getTextDetectionConfigOrBuilderin interfaceVideoContextOrBuilder
-
setUnknownFields
public final VideoContext.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
-
mergeUnknownFields
public final VideoContext.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
-
-