Class HybridOptions.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<HybridOptions.Builder>
com.google.privacy.dlp.v2.HybridOptions.Builder
All Implemented Interfaces:
HybridOptionsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
HybridOptions

public static final class HybridOptions.Builder extends com.google.protobuf.GeneratedMessage.Builder<HybridOptions.Builder> implements HybridOptionsOrBuilder
 Configuration to control jobs where the content being inspected is outside
 of Google Cloud Platform.
 
Protobuf type google.privacy.dlp.v2.HybridOptions
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<HybridOptions.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<HybridOptions.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<HybridOptions.Builder>
    • clear

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

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

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

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

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

      public HybridOptions.Builder mergeFrom(HybridOptions other)
    • isInitialized

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

      public HybridOptions.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<HybridOptions.Builder>
      Throws:
      IOException
    • getDescription

      public String getDescription()
       A short description of where the data is coming from. Will be stored once
       in the job. 256 max length.
       
      string description = 1;
      Specified by:
      getDescription in interface HybridOptionsOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       A short description of where the data is coming from. Will be stored once
       in the job. 256 max length.
       
      string description = 1;
      Specified by:
      getDescriptionBytes in interface HybridOptionsOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public HybridOptions.Builder setDescription(String value)
       A short description of where the data is coming from. Will be stored once
       in the job. 256 max length.
       
      string description = 1;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public HybridOptions.Builder clearDescription()
       A short description of where the data is coming from. Will be stored once
       in the job. 256 max length.
       
      string description = 1;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public HybridOptions.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       A short description of where the data is coming from. Will be stored once
       in the job. 256 max length.
       
      string description = 1;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getRequiredFindingLabelKeysList

      public com.google.protobuf.ProtocolStringList getRequiredFindingLabelKeysList()
       These are labels that each inspection request must include within their
       'finding_labels' map. Request may contain others, but any missing one of
       these will be rejected.
      
       Label keys must be between 1 and 63 characters long and must conform
       to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
      
       No more than 10 keys can be required.
       
      repeated string required_finding_label_keys = 2;
      Specified by:
      getRequiredFindingLabelKeysList in interface HybridOptionsOrBuilder
      Returns:
      A list containing the requiredFindingLabelKeys.
    • getRequiredFindingLabelKeysCount

      public int getRequiredFindingLabelKeysCount()
       These are labels that each inspection request must include within their
       'finding_labels' map. Request may contain others, but any missing one of
       these will be rejected.
      
       Label keys must be between 1 and 63 characters long and must conform
       to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
      
       No more than 10 keys can be required.
       
      repeated string required_finding_label_keys = 2;
      Specified by:
      getRequiredFindingLabelKeysCount in interface HybridOptionsOrBuilder
      Returns:
      The count of requiredFindingLabelKeys.
    • getRequiredFindingLabelKeys

      public String getRequiredFindingLabelKeys(int index)
       These are labels that each inspection request must include within their
       'finding_labels' map. Request may contain others, but any missing one of
       these will be rejected.
      
       Label keys must be between 1 and 63 characters long and must conform
       to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
      
       No more than 10 keys can be required.
       
      repeated string required_finding_label_keys = 2;
      Specified by:
      getRequiredFindingLabelKeys in interface HybridOptionsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The requiredFindingLabelKeys at the given index.
    • getRequiredFindingLabelKeysBytes

      public com.google.protobuf.ByteString getRequiredFindingLabelKeysBytes(int index)
       These are labels that each inspection request must include within their
       'finding_labels' map. Request may contain others, but any missing one of
       these will be rejected.
      
       Label keys must be between 1 and 63 characters long and must conform
       to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
      
       No more than 10 keys can be required.
       
      repeated string required_finding_label_keys = 2;
      Specified by:
      getRequiredFindingLabelKeysBytes in interface HybridOptionsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the requiredFindingLabelKeys at the given index.
    • setRequiredFindingLabelKeys

      public HybridOptions.Builder setRequiredFindingLabelKeys(int index, String value)
       These are labels that each inspection request must include within their
       'finding_labels' map. Request may contain others, but any missing one of
       these will be rejected.
      
       Label keys must be between 1 and 63 characters long and must conform
       to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
      
       No more than 10 keys can be required.
       
      repeated string required_finding_label_keys = 2;
      Parameters:
      index - The index to set the value at.
      value - The requiredFindingLabelKeys to set.
      Returns:
      This builder for chaining.
    • addRequiredFindingLabelKeys

      public HybridOptions.Builder addRequiredFindingLabelKeys(String value)
       These are labels that each inspection request must include within their
       'finding_labels' map. Request may contain others, but any missing one of
       these will be rejected.
      
       Label keys must be between 1 and 63 characters long and must conform
       to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
      
       No more than 10 keys can be required.
       
      repeated string required_finding_label_keys = 2;
      Parameters:
      value - The requiredFindingLabelKeys to add.
      Returns:
      This builder for chaining.
    • addAllRequiredFindingLabelKeys

      public HybridOptions.Builder addAllRequiredFindingLabelKeys(Iterable<String> values)
       These are labels that each inspection request must include within their
       'finding_labels' map. Request may contain others, but any missing one of
       these will be rejected.
      
       Label keys must be between 1 and 63 characters long and must conform
       to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
      
       No more than 10 keys can be required.
       
      repeated string required_finding_label_keys = 2;
      Parameters:
      values - The requiredFindingLabelKeys to add.
      Returns:
      This builder for chaining.
    • clearRequiredFindingLabelKeys

      public HybridOptions.Builder clearRequiredFindingLabelKeys()
       These are labels that each inspection request must include within their
       'finding_labels' map. Request may contain others, but any missing one of
       these will be rejected.
      
       Label keys must be between 1 and 63 characters long and must conform
       to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
      
       No more than 10 keys can be required.
       
      repeated string required_finding_label_keys = 2;
      Returns:
      This builder for chaining.
    • addRequiredFindingLabelKeysBytes

      public HybridOptions.Builder addRequiredFindingLabelKeysBytes(com.google.protobuf.ByteString value)
       These are labels that each inspection request must include within their
       'finding_labels' map. Request may contain others, but any missing one of
       these will be rejected.
      
       Label keys must be between 1 and 63 characters long and must conform
       to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
      
       No more than 10 keys can be required.
       
      repeated string required_finding_label_keys = 2;
      Parameters:
      value - The bytes of the requiredFindingLabelKeys to add.
      Returns:
      This builder for chaining.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: HybridOptionsOrBuilder
       To organize findings, these labels will be added to each finding.
      
       Label keys must be between 1 and 63 characters long and must conform
       to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
      
       Label values must be between 0 and 63 characters long and must conform
       to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
      
       No more than 10 labels can be associated with a given finding.
      
       Examples:
      
       * `"environment" : "production"`
       * `"pipeline" : "etl"`
       
      map<string, string> labels = 3;
      Specified by:
      getLabelsCount in interface HybridOptionsOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       To organize findings, these labels will be added to each finding.
      
       Label keys must be between 1 and 63 characters long and must conform
       to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
      
       Label values must be between 0 and 63 characters long and must conform
       to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
      
       No more than 10 labels can be associated with a given finding.
      
       Examples:
      
       * `"environment" : "production"`
       * `"pipeline" : "etl"`
       
      map<string, string> labels = 3;
      Specified by:
      containsLabels in interface HybridOptionsOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface HybridOptionsOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       To organize findings, these labels will be added to each finding.
      
       Label keys must be between 1 and 63 characters long and must conform
       to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
      
       Label values must be between 0 and 63 characters long and must conform
       to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
      
       No more than 10 labels can be associated with a given finding.
      
       Examples:
      
       * `"environment" : "production"`
       * `"pipeline" : "etl"`
       
      map<string, string> labels = 3;
      Specified by:
      getLabelsMap in interface HybridOptionsOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       To organize findings, these labels will be added to each finding.
      
       Label keys must be between 1 and 63 characters long and must conform
       to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
      
       Label values must be between 0 and 63 characters long and must conform
       to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
      
       No more than 10 labels can be associated with a given finding.
      
       Examples:
      
       * `"environment" : "production"`
       * `"pipeline" : "etl"`
       
      map<string, string> labels = 3;
      Specified by:
      getLabelsOrDefault in interface HybridOptionsOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       To organize findings, these labels will be added to each finding.
      
       Label keys must be between 1 and 63 characters long and must conform
       to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
      
       Label values must be between 0 and 63 characters long and must conform
       to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
      
       No more than 10 labels can be associated with a given finding.
      
       Examples:
      
       * `"environment" : "production"`
       * `"pipeline" : "etl"`
       
      map<string, string> labels = 3;
      Specified by:
      getLabelsOrThrow in interface HybridOptionsOrBuilder
    • clearLabels

      public HybridOptions.Builder clearLabels()
    • removeLabels

      public HybridOptions.Builder removeLabels(String key)
       To organize findings, these labels will be added to each finding.
      
       Label keys must be between 1 and 63 characters long and must conform
       to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
      
       Label values must be between 0 and 63 characters long and must conform
       to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
      
       No more than 10 labels can be associated with a given finding.
      
       Examples:
      
       * `"environment" : "production"`
       * `"pipeline" : "etl"`
       
      map<string, string> labels = 3;
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public HybridOptions.Builder putLabels(String key, String value)
       To organize findings, these labels will be added to each finding.
      
       Label keys must be between 1 and 63 characters long and must conform
       to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
      
       Label values must be between 0 and 63 characters long and must conform
       to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
      
       No more than 10 labels can be associated with a given finding.
      
       Examples:
      
       * `"environment" : "production"`
       * `"pipeline" : "etl"`
       
      map<string, string> labels = 3;
    • putAllLabels

      public HybridOptions.Builder putAllLabels(Map<String,String> values)
       To organize findings, these labels will be added to each finding.
      
       Label keys must be between 1 and 63 characters long and must conform
       to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
      
       Label values must be between 0 and 63 characters long and must conform
       to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
      
       No more than 10 labels can be associated with a given finding.
      
       Examples:
      
       * `"environment" : "production"`
       * `"pipeline" : "etl"`
       
      map<string, string> labels = 3;
    • hasTableOptions

      public boolean hasTableOptions()
       If the container is a table, additional information to make findings
       meaningful such as the columns that are primary keys.
       
      .google.privacy.dlp.v2.TableOptions table_options = 4;
      Specified by:
      hasTableOptions in interface HybridOptionsOrBuilder
      Returns:
      Whether the tableOptions field is set.
    • getTableOptions

      public TableOptions getTableOptions()
       If the container is a table, additional information to make findings
       meaningful such as the columns that are primary keys.
       
      .google.privacy.dlp.v2.TableOptions table_options = 4;
      Specified by:
      getTableOptions in interface HybridOptionsOrBuilder
      Returns:
      The tableOptions.
    • setTableOptions

      public HybridOptions.Builder setTableOptions(TableOptions value)
       If the container is a table, additional information to make findings
       meaningful such as the columns that are primary keys.
       
      .google.privacy.dlp.v2.TableOptions table_options = 4;
    • setTableOptions

      public HybridOptions.Builder setTableOptions(TableOptions.Builder builderForValue)
       If the container is a table, additional information to make findings
       meaningful such as the columns that are primary keys.
       
      .google.privacy.dlp.v2.TableOptions table_options = 4;
    • mergeTableOptions

      public HybridOptions.Builder mergeTableOptions(TableOptions value)
       If the container is a table, additional information to make findings
       meaningful such as the columns that are primary keys.
       
      .google.privacy.dlp.v2.TableOptions table_options = 4;
    • clearTableOptions

      public HybridOptions.Builder clearTableOptions()
       If the container is a table, additional information to make findings
       meaningful such as the columns that are primary keys.
       
      .google.privacy.dlp.v2.TableOptions table_options = 4;
    • getTableOptionsBuilder

      public TableOptions.Builder getTableOptionsBuilder()
       If the container is a table, additional information to make findings
       meaningful such as the columns that are primary keys.
       
      .google.privacy.dlp.v2.TableOptions table_options = 4;
    • getTableOptionsOrBuilder

      public TableOptionsOrBuilder getTableOptionsOrBuilder()
       If the container is a table, additional information to make findings
       meaningful such as the columns that are primary keys.
       
      .google.privacy.dlp.v2.TableOptions table_options = 4;
      Specified by:
      getTableOptionsOrBuilder in interface HybridOptionsOrBuilder