Class InspectJobConfig.Builder

  • All Implemented Interfaces:
    InspectJobConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    InspectJobConfig

    public static final class InspectJobConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<InspectJobConfig.Builder>
    implements InspectJobConfigOrBuilder
     Controls what and how to inspect for findings.
     
    Protobuf type google.privacy.dlp.v2.InspectJobConfig
    • 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<InspectJobConfig.Builder>
      • clear

        public InspectJobConfig.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.GeneratedMessageV3.Builder<InspectJobConfig.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<InspectJobConfig.Builder>
      • getDefaultInstanceForType

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

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

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

        public InspectJobConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<InspectJobConfig.Builder>
      • setField

        public InspectJobConfig.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<InspectJobConfig.Builder>
      • clearField

        public InspectJobConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<InspectJobConfig.Builder>
      • clearOneof

        public InspectJobConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<InspectJobConfig.Builder>
      • setRepeatedField

        public InspectJobConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         int index,
                                                         Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<InspectJobConfig.Builder>
      • addRepeatedField

        public InspectJobConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<InspectJobConfig.Builder>
      • mergeFrom

        public InspectJobConfig.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<InspectJobConfig.Builder>
      • isInitialized

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

        public InspectJobConfig.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<InspectJobConfig.Builder>
        Throws:
        IOException
      • hasStorageConfig

        public boolean hasStorageConfig()
         The data to scan.
         
        .google.privacy.dlp.v2.StorageConfig storage_config = 1;
        Specified by:
        hasStorageConfig in interface InspectJobConfigOrBuilder
        Returns:
        Whether the storageConfig field is set.
      • clearStorageConfig

        public InspectJobConfig.Builder clearStorageConfig()
         The data to scan.
         
        .google.privacy.dlp.v2.StorageConfig storage_config = 1;
      • getStorageConfigBuilder

        public StorageConfig.Builder getStorageConfigBuilder()
         The data to scan.
         
        .google.privacy.dlp.v2.StorageConfig storage_config = 1;
      • hasInspectConfig

        public boolean hasInspectConfig()
         How and what to scan for.
         
        .google.privacy.dlp.v2.InspectConfig inspect_config = 2;
        Specified by:
        hasInspectConfig in interface InspectJobConfigOrBuilder
        Returns:
        Whether the inspectConfig field is set.
      • clearInspectConfig

        public InspectJobConfig.Builder clearInspectConfig()
         How and what to scan for.
         
        .google.privacy.dlp.v2.InspectConfig inspect_config = 2;
      • getInspectConfigBuilder

        public InspectConfig.Builder getInspectConfigBuilder()
         How and what to scan for.
         
        .google.privacy.dlp.v2.InspectConfig inspect_config = 2;
      • getInspectTemplateName

        public String getInspectTemplateName()
         If provided, will be used as the default for all values in InspectConfig.
         `inspect_config` will be merged into the values persisted as part of the
         template.
         
        string inspect_template_name = 3;
        Specified by:
        getInspectTemplateName in interface InspectJobConfigOrBuilder
        Returns:
        The inspectTemplateName.
      • getInspectTemplateNameBytes

        public com.google.protobuf.ByteString getInspectTemplateNameBytes()
         If provided, will be used as the default for all values in InspectConfig.
         `inspect_config` will be merged into the values persisted as part of the
         template.
         
        string inspect_template_name = 3;
        Specified by:
        getInspectTemplateNameBytes in interface InspectJobConfigOrBuilder
        Returns:
        The bytes for inspectTemplateName.
      • setInspectTemplateName

        public InspectJobConfig.Builder setInspectTemplateName​(String value)
         If provided, will be used as the default for all values in InspectConfig.
         `inspect_config` will be merged into the values persisted as part of the
         template.
         
        string inspect_template_name = 3;
        Parameters:
        value - The inspectTemplateName to set.
        Returns:
        This builder for chaining.
      • clearInspectTemplateName

        public InspectJobConfig.Builder clearInspectTemplateName()
         If provided, will be used as the default for all values in InspectConfig.
         `inspect_config` will be merged into the values persisted as part of the
         template.
         
        string inspect_template_name = 3;
        Returns:
        This builder for chaining.
      • setInspectTemplateNameBytes

        public InspectJobConfig.Builder setInspectTemplateNameBytes​(com.google.protobuf.ByteString value)
         If provided, will be used as the default for all values in InspectConfig.
         `inspect_config` will be merged into the values persisted as part of the
         template.
         
        string inspect_template_name = 3;
        Parameters:
        value - The bytes for inspectTemplateName to set.
        Returns:
        This builder for chaining.
      • getActionsCount

        public int getActionsCount()
         Actions to execute at the completion of the job.
         
        repeated .google.privacy.dlp.v2.Action actions = 4;
        Specified by:
        getActionsCount in interface InspectJobConfigOrBuilder
      • getActions

        public Action getActions​(int index)
         Actions to execute at the completion of the job.
         
        repeated .google.privacy.dlp.v2.Action actions = 4;
        Specified by:
        getActions in interface InspectJobConfigOrBuilder
      • setActions

        public InspectJobConfig.Builder setActions​(int index,
                                                   Action value)
         Actions to execute at the completion of the job.
         
        repeated .google.privacy.dlp.v2.Action actions = 4;
      • setActions

        public InspectJobConfig.Builder setActions​(int index,
                                                   Action.Builder builderForValue)
         Actions to execute at the completion of the job.
         
        repeated .google.privacy.dlp.v2.Action actions = 4;
      • addActions

        public InspectJobConfig.Builder addActions​(Action value)
         Actions to execute at the completion of the job.
         
        repeated .google.privacy.dlp.v2.Action actions = 4;
      • addActions

        public InspectJobConfig.Builder addActions​(int index,
                                                   Action value)
         Actions to execute at the completion of the job.
         
        repeated .google.privacy.dlp.v2.Action actions = 4;
      • addActions

        public InspectJobConfig.Builder addActions​(Action.Builder builderForValue)
         Actions to execute at the completion of the job.
         
        repeated .google.privacy.dlp.v2.Action actions = 4;
      • addActions

        public InspectJobConfig.Builder addActions​(int index,
                                                   Action.Builder builderForValue)
         Actions to execute at the completion of the job.
         
        repeated .google.privacy.dlp.v2.Action actions = 4;
      • addAllActions

        public InspectJobConfig.Builder addAllActions​(Iterable<? extends Action> values)
         Actions to execute at the completion of the job.
         
        repeated .google.privacy.dlp.v2.Action actions = 4;
      • clearActions

        public InspectJobConfig.Builder clearActions()
         Actions to execute at the completion of the job.
         
        repeated .google.privacy.dlp.v2.Action actions = 4;
      • removeActions

        public InspectJobConfig.Builder removeActions​(int index)
         Actions to execute at the completion of the job.
         
        repeated .google.privacy.dlp.v2.Action actions = 4;
      • getActionsBuilder

        public Action.Builder getActionsBuilder​(int index)
         Actions to execute at the completion of the job.
         
        repeated .google.privacy.dlp.v2.Action actions = 4;
      • addActionsBuilder

        public Action.Builder addActionsBuilder()
         Actions to execute at the completion of the job.
         
        repeated .google.privacy.dlp.v2.Action actions = 4;
      • addActionsBuilder

        public Action.Builder addActionsBuilder​(int index)
         Actions to execute at the completion of the job.
         
        repeated .google.privacy.dlp.v2.Action actions = 4;
      • getActionsBuilderList

        public List<Action.Builder> getActionsBuilderList()
         Actions to execute at the completion of the job.
         
        repeated .google.privacy.dlp.v2.Action actions = 4;
      • setUnknownFields

        public final InspectJobConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InspectJobConfig.Builder>
      • mergeUnknownFields

        public final InspectJobConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InspectJobConfig.Builder>