Class InspectTemplate.Builder

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

    public static final class InspectTemplate.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<InspectTemplate.Builder>
    implements InspectTemplateOrBuilder
     The inspectTemplate contains a configuration (set of types of sensitive data
     to be detected) to be used anywhere you otherwise would normally specify
     InspectConfig. See https://cloud.google.com/dlp/docs/concepts-templates
     to learn more.
     
    Protobuf type google.privacy.dlp.v2.InspectTemplate
    • 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<InspectTemplate.Builder>
      • clear

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

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

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

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

        public InspectTemplate.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<InspectTemplate.Builder>
      • setField

        public InspectTemplate.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<InspectTemplate.Builder>
      • clearField

        public InspectTemplate.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<InspectTemplate.Builder>
      • clearOneof

        public InspectTemplate.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<InspectTemplate.Builder>
      • setRepeatedField

        public InspectTemplate.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<InspectTemplate.Builder>
      • addRepeatedField

        public InspectTemplate.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<InspectTemplate.Builder>
      • mergeFrom

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

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

        public InspectTemplate.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<InspectTemplate.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Output only. The template name.
        
         The template will have one of the following formats:
         `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR
         `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`;
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface InspectTemplateOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The template name.
        
         The template will have one of the following formats:
         `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR
         `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`;
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface InspectTemplateOrBuilder
        Returns:
        The bytes for name.
      • setName

        public InspectTemplate.Builder setName​(String value)
         Output only. The template name.
        
         The template will have one of the following formats:
         `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR
         `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`;
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public InspectTemplate.Builder clearName()
         Output only. The template name.
        
         The template will have one of the following formats:
         `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR
         `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`;
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public InspectTemplate.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. The template name.
        
         The template will have one of the following formats:
         `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR
         `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`;
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getDisplayNameBytes

        public com.google.protobuf.ByteString getDisplayNameBytes()
         Display name (max 256 chars).
         
        string display_name = 2;
        Specified by:
        getDisplayNameBytes in interface InspectTemplateOrBuilder
        Returns:
        The bytes for displayName.
      • setDisplayName

        public InspectTemplate.Builder setDisplayName​(String value)
         Display name (max 256 chars).
         
        string display_name = 2;
        Parameters:
        value - The displayName to set.
        Returns:
        This builder for chaining.
      • clearDisplayName

        public InspectTemplate.Builder clearDisplayName()
         Display name (max 256 chars).
         
        string display_name = 2;
        Returns:
        This builder for chaining.
      • setDisplayNameBytes

        public InspectTemplate.Builder setDisplayNameBytes​(com.google.protobuf.ByteString value)
         Display name (max 256 chars).
         
        string display_name = 2;
        Parameters:
        value - The bytes for displayName to set.
        Returns:
        This builder for chaining.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         Short description (max 256 chars).
         
        string description = 3;
        Specified by:
        getDescriptionBytes in interface InspectTemplateOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public InspectTemplate.Builder setDescription​(String value)
         Short description (max 256 chars).
         
        string description = 3;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public InspectTemplate.Builder clearDescription()
         Short description (max 256 chars).
         
        string description = 3;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public InspectTemplate.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         Short description (max 256 chars).
         
        string description = 3;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The creation timestamp of an inspectTemplate.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface InspectTemplateOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The creation timestamp of an inspectTemplate.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface InspectTemplateOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public InspectTemplate.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The creation timestamp of an inspectTemplate.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public InspectTemplate.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The creation timestamp of an inspectTemplate.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public InspectTemplate.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The creation timestamp of an inspectTemplate.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public InspectTemplate.Builder clearCreateTime()
         Output only. The creation timestamp of an inspectTemplate.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. The creation timestamp of an inspectTemplate.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The creation timestamp of an inspectTemplate.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface InspectTemplateOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The last update timestamp of an inspectTemplate.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface InspectTemplateOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The last update timestamp of an inspectTemplate.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface InspectTemplateOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public InspectTemplate.Builder setUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The last update timestamp of an inspectTemplate.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUpdateTime

        public InspectTemplate.Builder setUpdateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The last update timestamp of an inspectTemplate.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeUpdateTime

        public InspectTemplate.Builder mergeUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The last update timestamp of an inspectTemplate.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearUpdateTime

        public InspectTemplate.Builder clearUpdateTime()
         Output only. The last update timestamp of an inspectTemplate.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
         Output only. The last update timestamp of an inspectTemplate.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The last update timestamp of an inspectTemplate.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface InspectTemplateOrBuilder
      • hasInspectConfig

        public boolean hasInspectConfig()
         The core content of the template. Configuration of the scanning process.
         
        .google.privacy.dlp.v2.InspectConfig inspect_config = 6;
        Specified by:
        hasInspectConfig in interface InspectTemplateOrBuilder
        Returns:
        Whether the inspectConfig field is set.
      • getInspectConfig

        public InspectConfig getInspectConfig()
         The core content of the template. Configuration of the scanning process.
         
        .google.privacy.dlp.v2.InspectConfig inspect_config = 6;
        Specified by:
        getInspectConfig in interface InspectTemplateOrBuilder
        Returns:
        The inspectConfig.
      • setInspectConfig

        public InspectTemplate.Builder setInspectConfig​(InspectConfig value)
         The core content of the template. Configuration of the scanning process.
         
        .google.privacy.dlp.v2.InspectConfig inspect_config = 6;
      • setInspectConfig

        public InspectTemplate.Builder setInspectConfig​(InspectConfig.Builder builderForValue)
         The core content of the template. Configuration of the scanning process.
         
        .google.privacy.dlp.v2.InspectConfig inspect_config = 6;
      • mergeInspectConfig

        public InspectTemplate.Builder mergeInspectConfig​(InspectConfig value)
         The core content of the template. Configuration of the scanning process.
         
        .google.privacy.dlp.v2.InspectConfig inspect_config = 6;
      • clearInspectConfig

        public InspectTemplate.Builder clearInspectConfig()
         The core content of the template. Configuration of the scanning process.
         
        .google.privacy.dlp.v2.InspectConfig inspect_config = 6;
      • getInspectConfigBuilder

        public InspectConfig.Builder getInspectConfigBuilder()
         The core content of the template. Configuration of the scanning process.
         
        .google.privacy.dlp.v2.InspectConfig inspect_config = 6;
      • setUnknownFields

        public final InspectTemplate.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<InspectTemplate.Builder>
      • mergeUnknownFields

        public final InspectTemplate.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<InspectTemplate.Builder>