Class InspectTemplate.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<InspectTemplate.Builder>
com.google.privacy.dlp.v2.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.GeneratedMessage.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/sensitive-data-protection/docs/concepts-templates to
 learn more.
 
Protobuf type google.privacy.dlp.v2.InspectTemplate
  • 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<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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public InspectTemplate.Builder mergeFrom(InspectTemplate other)
    • isInitialized

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

      public String getDisplayName()
       Display name (max 256 chars).
       
      string display_name = 2;
      Specified by:
      getDisplayName in interface InspectTemplateOrBuilder
      Returns:
      The displayName.
    • 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.
    • getDescription

      public String getDescription()
       Short description (max 256 chars).
       
      string description = 3;
      Specified by:
      getDescription in interface InspectTemplateOrBuilder
      Returns:
      The description.
    • 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;
    • getInspectConfigOrBuilder

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