public static final class LabelDetectionConfig.Builder extends GeneratedMessageV3.Builder<LabelDetectionConfig.Builder> implements LabelDetectionConfigOrBuilder
Config for LABEL_DETECTION.Protobuf type
google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<LabelDetectionConfig.Builder>
public LabelDetectionConfig.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<LabelDetectionConfig.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<LabelDetectionConfig.Builder>
public LabelDetectionConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public LabelDetectionConfig build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public LabelDetectionConfig buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public LabelDetectionConfig.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<LabelDetectionConfig.Builder>
public LabelDetectionConfig.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<LabelDetectionConfig.Builder>
public LabelDetectionConfig.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<LabelDetectionConfig.Builder>
public LabelDetectionConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<LabelDetectionConfig.Builder>
public LabelDetectionConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<LabelDetectionConfig.Builder>
public LabelDetectionConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<LabelDetectionConfig.Builder>
public LabelDetectionConfig.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<LabelDetectionConfig.Builder>
public LabelDetectionConfig.Builder mergeFrom(LabelDetectionConfig other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<LabelDetectionConfig.Builder>
public LabelDetectionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<LabelDetectionConfig.Builder>
java.io.IOException
public int getLabelDetectionModeValue()
What labels should be detected with LABEL_DETECTION, in addition to video-level labels or segment-level labels. If unspecified, defaults to `SHOT_MODE`.
.google.cloud.videointelligence.v1p1beta1.LabelDetectionMode label_detection_mode = 1;
getLabelDetectionModeValue
in interface LabelDetectionConfigOrBuilder
public LabelDetectionConfig.Builder setLabelDetectionModeValue(int value)
What labels should be detected with LABEL_DETECTION, in addition to video-level labels or segment-level labels. If unspecified, defaults to `SHOT_MODE`.
.google.cloud.videointelligence.v1p1beta1.LabelDetectionMode label_detection_mode = 1;
public LabelDetectionMode getLabelDetectionMode()
What labels should be detected with LABEL_DETECTION, in addition to video-level labels or segment-level labels. If unspecified, defaults to `SHOT_MODE`.
.google.cloud.videointelligence.v1p1beta1.LabelDetectionMode label_detection_mode = 1;
getLabelDetectionMode
in interface LabelDetectionConfigOrBuilder
public LabelDetectionConfig.Builder setLabelDetectionMode(LabelDetectionMode value)
What labels should be detected with LABEL_DETECTION, in addition to video-level labels or segment-level labels. If unspecified, defaults to `SHOT_MODE`.
.google.cloud.videointelligence.v1p1beta1.LabelDetectionMode label_detection_mode = 1;
public LabelDetectionConfig.Builder clearLabelDetectionMode()
What labels should be detected with LABEL_DETECTION, in addition to video-level labels or segment-level labels. If unspecified, defaults to `SHOT_MODE`.
.google.cloud.videointelligence.v1p1beta1.LabelDetectionMode label_detection_mode = 1;
public boolean getStationaryCamera()
Whether the video has been shot from a stationary (i.e. non-moving) camera. When set to true, might improve detection accuracy for moving objects. Should be used with `SHOT_AND_FRAME_MODE` enabled.
bool stationary_camera = 2;
getStationaryCamera
in interface LabelDetectionConfigOrBuilder
public LabelDetectionConfig.Builder setStationaryCamera(boolean value)
Whether the video has been shot from a stationary (i.e. non-moving) camera. When set to true, might improve detection accuracy for moving objects. Should be used with `SHOT_AND_FRAME_MODE` enabled.
bool stationary_camera = 2;
public LabelDetectionConfig.Builder clearStationaryCamera()
Whether the video has been shot from a stationary (i.e. non-moving) camera. When set to true, might improve detection accuracy for moving objects. Should be used with `SHOT_AND_FRAME_MODE` enabled.
bool stationary_camera = 2;
public java.lang.String getModel()
Model to use for label detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".
string model = 3;
getModel
in interface LabelDetectionConfigOrBuilder
public ByteString getModelBytes()
Model to use for label detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".
string model = 3;
getModelBytes
in interface LabelDetectionConfigOrBuilder
public LabelDetectionConfig.Builder setModel(java.lang.String value)
Model to use for label detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".
string model = 3;
public LabelDetectionConfig.Builder clearModel()
Model to use for label detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".
string model = 3;
public LabelDetectionConfig.Builder setModelBytes(ByteString value)
Model to use for label detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".
string model = 3;
public final LabelDetectionConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<LabelDetectionConfig.Builder>
public final LabelDetectionConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<LabelDetectionConfig.Builder>