Class ExplicitContentDetectionConfig.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

        public ExplicitContentDetectionConfig 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ExplicitContentDetectionConfig.Builder>
      • 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

        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;
        Parameters:
        value - The model to set.
        Returns:
        This builder for chaining.
      • 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:
        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.