Class SdpAdvancedConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SdpAdvancedConfig.Builder>
com.google.cloud.modelarmor.v1beta.SdpAdvancedConfig.Builder
All Implemented Interfaces:
SdpAdvancedConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SdpAdvancedConfig

public static final class SdpAdvancedConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<SdpAdvancedConfig.Builder> implements SdpAdvancedConfigOrBuilder
 Sensitive Data Protection Advanced configuration.
 
Protobuf type google.cloud.modelarmor.v1beta.SdpAdvancedConfig
  • 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<SdpAdvancedConfig.Builder>
    • clear

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

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

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

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

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

      public SdpAdvancedConfig.Builder mergeFrom(SdpAdvancedConfig other)
    • isInitialized

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

      public SdpAdvancedConfig.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<SdpAdvancedConfig.Builder>
      Throws:
      IOException
    • getInspectTemplate

      public String getInspectTemplate()
       Optional. Sensitive Data Protection inspect template resource name
      
       If only inspect template is provided (de-identify template not provided),
       then Sensitive Data Protection InspectContent action is performed during
       Sanitization. All Sensitive Data Protection findings identified during
       inspection will be returned as SdpFinding in SdpInsepctionResult.
      
       e.g.
       `projects/{project}/locations/{location}/inspectTemplates/{inspect_template}`
       
      string inspect_template = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInspectTemplate in interface SdpAdvancedConfigOrBuilder
      Returns:
      The inspectTemplate.
    • getInspectTemplateBytes

      public com.google.protobuf.ByteString getInspectTemplateBytes()
       Optional. Sensitive Data Protection inspect template resource name
      
       If only inspect template is provided (de-identify template not provided),
       then Sensitive Data Protection InspectContent action is performed during
       Sanitization. All Sensitive Data Protection findings identified during
       inspection will be returned as SdpFinding in SdpInsepctionResult.
      
       e.g.
       `projects/{project}/locations/{location}/inspectTemplates/{inspect_template}`
       
      string inspect_template = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInspectTemplateBytes in interface SdpAdvancedConfigOrBuilder
      Returns:
      The bytes for inspectTemplate.
    • setInspectTemplate

      public SdpAdvancedConfig.Builder setInspectTemplate(String value)
       Optional. Sensitive Data Protection inspect template resource name
      
       If only inspect template is provided (de-identify template not provided),
       then Sensitive Data Protection InspectContent action is performed during
       Sanitization. All Sensitive Data Protection findings identified during
       inspection will be returned as SdpFinding in SdpInsepctionResult.
      
       e.g.
       `projects/{project}/locations/{location}/inspectTemplates/{inspect_template}`
       
      string inspect_template = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The inspectTemplate to set.
      Returns:
      This builder for chaining.
    • clearInspectTemplate

      public SdpAdvancedConfig.Builder clearInspectTemplate()
       Optional. Sensitive Data Protection inspect template resource name
      
       If only inspect template is provided (de-identify template not provided),
       then Sensitive Data Protection InspectContent action is performed during
       Sanitization. All Sensitive Data Protection findings identified during
       inspection will be returned as SdpFinding in SdpInsepctionResult.
      
       e.g.
       `projects/{project}/locations/{location}/inspectTemplates/{inspect_template}`
       
      string inspect_template = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setInspectTemplateBytes

      public SdpAdvancedConfig.Builder setInspectTemplateBytes(com.google.protobuf.ByteString value)
       Optional. Sensitive Data Protection inspect template resource name
      
       If only inspect template is provided (de-identify template not provided),
       then Sensitive Data Protection InspectContent action is performed during
       Sanitization. All Sensitive Data Protection findings identified during
       inspection will be returned as SdpFinding in SdpInsepctionResult.
      
       e.g.
       `projects/{project}/locations/{location}/inspectTemplates/{inspect_template}`
       
      string inspect_template = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for inspectTemplate to set.
      Returns:
      This builder for chaining.
    • getDeidentifyTemplate

      public String getDeidentifyTemplate()
       Optional. Optional Sensitive Data Protection Deidentify template resource
       name.
      
       If provided then DeidentifyContent action is performed during Sanitization
       using this template and inspect template. The De-identified data will
       be returned in SdpDeidentifyResult.
       Note that all info-types present in the deidentify template must be present
       in inspect template.
      
       e.g.
       `projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}`
       
      string deidentify_template = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDeidentifyTemplate in interface SdpAdvancedConfigOrBuilder
      Returns:
      The deidentifyTemplate.
    • getDeidentifyTemplateBytes

      public com.google.protobuf.ByteString getDeidentifyTemplateBytes()
       Optional. Optional Sensitive Data Protection Deidentify template resource
       name.
      
       If provided then DeidentifyContent action is performed during Sanitization
       using this template and inspect template. The De-identified data will
       be returned in SdpDeidentifyResult.
       Note that all info-types present in the deidentify template must be present
       in inspect template.
      
       e.g.
       `projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}`
       
      string deidentify_template = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDeidentifyTemplateBytes in interface SdpAdvancedConfigOrBuilder
      Returns:
      The bytes for deidentifyTemplate.
    • setDeidentifyTemplate

      public SdpAdvancedConfig.Builder setDeidentifyTemplate(String value)
       Optional. Optional Sensitive Data Protection Deidentify template resource
       name.
      
       If provided then DeidentifyContent action is performed during Sanitization
       using this template and inspect template. The De-identified data will
       be returned in SdpDeidentifyResult.
       Note that all info-types present in the deidentify template must be present
       in inspect template.
      
       e.g.
       `projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}`
       
      string deidentify_template = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The deidentifyTemplate to set.
      Returns:
      This builder for chaining.
    • clearDeidentifyTemplate

      public SdpAdvancedConfig.Builder clearDeidentifyTemplate()
       Optional. Optional Sensitive Data Protection Deidentify template resource
       name.
      
       If provided then DeidentifyContent action is performed during Sanitization
       using this template and inspect template. The De-identified data will
       be returned in SdpDeidentifyResult.
       Note that all info-types present in the deidentify template must be present
       in inspect template.
      
       e.g.
       `projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}`
       
      string deidentify_template = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDeidentifyTemplateBytes

      public SdpAdvancedConfig.Builder setDeidentifyTemplateBytes(com.google.protobuf.ByteString value)
       Optional. Optional Sensitive Data Protection Deidentify template resource
       name.
      
       If provided then DeidentifyContent action is performed during Sanitization
       using this template and inspect template. The De-identified data will
       be returned in SdpDeidentifyResult.
       Note that all info-types present in the deidentify template must be present
       in inspect template.
      
       e.g.
       `projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}`
       
      string deidentify_template = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for deidentifyTemplate to set.
      Returns:
      This builder for chaining.