Class ExplicitContentDetectionConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExplicitContentDetectionConfig.Builder>
com.google.cloud.videointelligence.v1.ExplicitContentDetectionConfig.Builder
All Implemented Interfaces:
ExplicitContentDetectionConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ExplicitContentDetectionConfig

public static final class ExplicitContentDetectionConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExplicitContentDetectionConfig.Builder> implements ExplicitContentDetectionConfigOrBuilder
 Config for EXPLICIT_CONTENT_DETECTION.
 
Protobuf type google.cloud.videointelligence.v1.ExplicitContentDetectionConfig
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ExplicitContentDetectionConfig.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ExplicitContentDetectionConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ExplicitContentDetectionConfig.Builder>
    • getDefaultInstanceForType

      public ExplicitContentDetectionConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ExplicitContentDetectionConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ExplicitContentDetectionConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExplicitContentDetectionConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ExplicitContentDetectionConfig.Builder>
    • mergeFrom

      public ExplicitContentDetectionConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExplicitContentDetectionConfig.Builder>
      Throws:
      IOException
    • 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;
      Specified by:
      getModel in interface ExplicitContentDetectionConfigOrBuilder
      Returns:
      The model.
    • getModelBytes

      public com.google.protobuf.ByteString getModelBytes()
       Model to use for explicit content detection.
       Supported values: "builtin/stable" (the default if unset) and
       "builtin/latest".
       
      string model = 1;
      Specified by:
      getModelBytes in interface ExplicitContentDetectionConfigOrBuilder
      Returns:
      The bytes for model.
    • setModel

       Model to use for explicit content detection.
       Supported values: "builtin/stable" (the default if unset) and
       "builtin/latest".
       
      string model = 1;
      Parameters:
      value - The model to set.
      Returns:
      This builder for chaining.
    • clearModel

       Model to use for explicit content detection.
       Supported values: "builtin/stable" (the default if unset) and
       "builtin/latest".
       
      string model = 1;
      Returns:
      This builder for chaining.
    • setModelBytes

      public ExplicitContentDetectionConfig.Builder setModelBytes(com.google.protobuf.ByteString value)
       Model to use for explicit content detection.
       Supported values: "builtin/stable" (the default if unset) and
       "builtin/latest".
       
      string model = 1;
      Parameters:
      value - The bytes for model to set.
      Returns:
      This builder for chaining.