Class ExplicitContentDetectionConfig.Builder (2.3.0)

public static final class ExplicitContentDetectionConfig.Builder extends GeneratedMessageV3.Builder<ExplicitContentDetectionConfig.Builder> implements ExplicitContentDetectionConfigOrBuilder

Config for EXPLICIT_CONTENT_DETECTION.

Protobuf type google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExplicitContentDetectionConfig build()
Returns
TypeDescription
ExplicitContentDetectionConfig

buildPartial()

public ExplicitContentDetectionConfig buildPartial()
Returns
TypeDescription
ExplicitContentDetectionConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearModel()

public ExplicitContentDetectionConfig.Builder clearModel()

Model to use for explicit content detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".

string model = 1;

Returns
TypeDescription
ExplicitContentDetectionConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ExplicitContentDetectionConfig getDefaultInstanceForType()
Returns
TypeDescription
ExplicitContentDetectionConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getModel()

public String getModel()

Model to use for explicit content detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".

string model = 1;

Returns
TypeDescription
String

The model.

getModelBytes()

public ByteString getModelBytes()

Model to use for explicit content detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".

string model = 1;

Returns
TypeDescription
ByteString

The bytes for model.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExplicitContentDetectionConfig other)

public ExplicitContentDetectionConfig.Builder mergeFrom(ExplicitContentDetectionConfig other)
Parameter
NameDescription
otherExplicitContentDetectionConfig
Returns
TypeDescription
ExplicitContentDetectionConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExplicitContentDetectionConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExplicitContentDetectionConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setModel(String value)

public ExplicitContentDetectionConfig.Builder setModel(String value)

Model to use for explicit content detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".

string model = 1;

Parameter
NameDescription
valueString

The model to set.

Returns
TypeDescription
ExplicitContentDetectionConfig.Builder

This builder for chaining.

setModelBytes(ByteString value)

public ExplicitContentDetectionConfig.Builder setModelBytes(ByteString value)

Model to use for explicit content detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".

string model = 1;

Parameter
NameDescription
valueByteString

The bytes for model to set.

Returns
TypeDescription
ExplicitContentDetectionConfig.Builder

This builder for chaining.

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

public ExplicitContentDetectionConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ExplicitContentDetectionConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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