Class HybridFindingDetails.Builder

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

public static final class HybridFindingDetails.Builder extends com.google.protobuf.GeneratedMessage.Builder<HybridFindingDetails.Builder> implements HybridFindingDetailsOrBuilder
 Populate to associate additional data with each finding.
 
Protobuf type google.privacy.dlp.v2.HybridFindingDetails
  • 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<HybridFindingDetails.Builder>
    • internalGetMutableMapFieldReflection

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<HybridFindingDetails.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<HybridFindingDetails.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<HybridFindingDetails.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public HybridFindingDetails.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<HybridFindingDetails.Builder>
      Throws:
      IOException
    • hasContainerDetails

      public boolean hasContainerDetails()
       Details about the container where the content being inspected is from.
       
      .google.privacy.dlp.v2.Container container_details = 1;
      Specified by:
      hasContainerDetails in interface HybridFindingDetailsOrBuilder
      Returns:
      Whether the containerDetails field is set.
    • getContainerDetails

      public Container getContainerDetails()
       Details about the container where the content being inspected is from.
       
      .google.privacy.dlp.v2.Container container_details = 1;
      Specified by:
      getContainerDetails in interface HybridFindingDetailsOrBuilder
      Returns:
      The containerDetails.
    • setContainerDetails

      public HybridFindingDetails.Builder setContainerDetails(Container value)
       Details about the container where the content being inspected is from.
       
      .google.privacy.dlp.v2.Container container_details = 1;
    • setContainerDetails

      public HybridFindingDetails.Builder setContainerDetails(Container.Builder builderForValue)
       Details about the container where the content being inspected is from.
       
      .google.privacy.dlp.v2.Container container_details = 1;
    • mergeContainerDetails

      public HybridFindingDetails.Builder mergeContainerDetails(Container value)
       Details about the container where the content being inspected is from.
       
      .google.privacy.dlp.v2.Container container_details = 1;
    • clearContainerDetails

      public HybridFindingDetails.Builder clearContainerDetails()
       Details about the container where the content being inspected is from.
       
      .google.privacy.dlp.v2.Container container_details = 1;
    • getContainerDetailsBuilder

      public Container.Builder getContainerDetailsBuilder()
       Details about the container where the content being inspected is from.
       
      .google.privacy.dlp.v2.Container container_details = 1;
    • getContainerDetailsOrBuilder

      public ContainerOrBuilder getContainerDetailsOrBuilder()
       Details about the container where the content being inspected is from.
       
      .google.privacy.dlp.v2.Container container_details = 1;
      Specified by:
      getContainerDetailsOrBuilder in interface HybridFindingDetailsOrBuilder
    • getFileOffset

      public long getFileOffset()
       Offset in bytes of the line, from the beginning of the file, where the
       finding  is located. Populate if the item being scanned is only part of a
       bigger item, such as a shard of a file and you want to track the absolute
       position of the finding.
       
      int64 file_offset = 2;
      Specified by:
      getFileOffset in interface HybridFindingDetailsOrBuilder
      Returns:
      The fileOffset.
    • setFileOffset

      public HybridFindingDetails.Builder setFileOffset(long value)
       Offset in bytes of the line, from the beginning of the file, where the
       finding  is located. Populate if the item being scanned is only part of a
       bigger item, such as a shard of a file and you want to track the absolute
       position of the finding.
       
      int64 file_offset = 2;
      Parameters:
      value - The fileOffset to set.
      Returns:
      This builder for chaining.
    • clearFileOffset

      public HybridFindingDetails.Builder clearFileOffset()
       Offset in bytes of the line, from the beginning of the file, where the
       finding  is located. Populate if the item being scanned is only part of a
       bigger item, such as a shard of a file and you want to track the absolute
       position of the finding.
       
      int64 file_offset = 2;
      Returns:
      This builder for chaining.
    • getRowOffset

      public long getRowOffset()
       Offset of the row for tables. Populate if the row(s) being scanned are
       part of a bigger dataset and you want to keep track of their absolute
       position.
       
      int64 row_offset = 3;
      Specified by:
      getRowOffset in interface HybridFindingDetailsOrBuilder
      Returns:
      The rowOffset.
    • setRowOffset

      public HybridFindingDetails.Builder setRowOffset(long value)
       Offset of the row for tables. Populate if the row(s) being scanned are
       part of a bigger dataset and you want to keep track of their absolute
       position.
       
      int64 row_offset = 3;
      Parameters:
      value - The rowOffset to set.
      Returns:
      This builder for chaining.
    • clearRowOffset

      public HybridFindingDetails.Builder clearRowOffset()
       Offset of the row for tables. Populate if the row(s) being scanned are
       part of a bigger dataset and you want to keep track of their absolute
       position.
       
      int64 row_offset = 3;
      Returns:
      This builder for chaining.
    • hasTableOptions

      public boolean hasTableOptions()
       If the container is a table, additional information to make findings
       meaningful such as the columns that are primary keys. If not known ahead
       of time, can also be set within each inspect hybrid call and the two
       will be merged. Note that identifying_fields will only be stored to
       BigQuery, and only if the BigQuery action has been included.
       
      .google.privacy.dlp.v2.TableOptions table_options = 4;
      Specified by:
      hasTableOptions in interface HybridFindingDetailsOrBuilder
      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. If not known ahead
       of time, can also be set within each inspect hybrid call and the two
       will be merged. Note that identifying_fields will only be stored to
       BigQuery, and only if the BigQuery action has been included.
       
      .google.privacy.dlp.v2.TableOptions table_options = 4;
      Specified by:
      getTableOptions in interface HybridFindingDetailsOrBuilder
      Returns:
      The tableOptions.
    • setTableOptions

      public HybridFindingDetails.Builder setTableOptions(TableOptions value)
       If the container is a table, additional information to make findings
       meaningful such as the columns that are primary keys. If not known ahead
       of time, can also be set within each inspect hybrid call and the two
       will be merged. Note that identifying_fields will only be stored to
       BigQuery, and only if the BigQuery action has been included.
       
      .google.privacy.dlp.v2.TableOptions table_options = 4;
    • setTableOptions

      public HybridFindingDetails.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. If not known ahead
       of time, can also be set within each inspect hybrid call and the two
       will be merged. Note that identifying_fields will only be stored to
       BigQuery, and only if the BigQuery action has been included.
       
      .google.privacy.dlp.v2.TableOptions table_options = 4;
    • mergeTableOptions

      public HybridFindingDetails.Builder mergeTableOptions(TableOptions value)
       If the container is a table, additional information to make findings
       meaningful such as the columns that are primary keys. If not known ahead
       of time, can also be set within each inspect hybrid call and the two
       will be merged. Note that identifying_fields will only be stored to
       BigQuery, and only if the BigQuery action has been included.
       
      .google.privacy.dlp.v2.TableOptions table_options = 4;
    • clearTableOptions

      public HybridFindingDetails.Builder clearTableOptions()
       If the container is a table, additional information to make findings
       meaningful such as the columns that are primary keys. If not known ahead
       of time, can also be set within each inspect hybrid call and the two
       will be merged. Note that identifying_fields will only be stored to
       BigQuery, and only if the BigQuery action has been included.
       
      .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. If not known ahead
       of time, can also be set within each inspect hybrid call and the two
       will be merged. Note that identifying_fields will only be stored to
       BigQuery, and only if the BigQuery action has been included.
       
      .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. If not known ahead
       of time, can also be set within each inspect hybrid call and the two
       will be merged. Note that identifying_fields will only be stored to
       BigQuery, and only if the BigQuery action has been included.
       
      .google.privacy.dlp.v2.TableOptions table_options = 4;
      Specified by:
      getTableOptionsOrBuilder in interface HybridFindingDetailsOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: HybridFindingDetailsOrBuilder
       Labels to represent user provided metadata about the data being inspected.
       If configured by the job, some key values may be required.
       The labels associated with `Finding`'s produced by hybrid
       inspection.
      
       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 = 5;
      Specified by:
      getLabelsCount in interface HybridFindingDetailsOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Labels to represent user provided metadata about the data being inspected.
       If configured by the job, some key values may be required.
       The labels associated with `Finding`'s produced by hybrid
       inspection.
      
       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 = 5;
      Specified by:
      containsLabels in interface HybridFindingDetailsOrBuilder
    • getLabels

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

      public Map<String,String> getLabelsMap()
       Labels to represent user provided metadata about the data being inspected.
       If configured by the job, some key values may be required.
       The labels associated with `Finding`'s produced by hybrid
       inspection.
      
       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 = 5;
      Specified by:
      getLabelsMap in interface HybridFindingDetailsOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Labels to represent user provided metadata about the data being inspected.
       If configured by the job, some key values may be required.
       The labels associated with `Finding`'s produced by hybrid
       inspection.
      
       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 = 5;
      Specified by:
      getLabelsOrDefault in interface HybridFindingDetailsOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Labels to represent user provided metadata about the data being inspected.
       If configured by the job, some key values may be required.
       The labels associated with `Finding`'s produced by hybrid
       inspection.
      
       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 = 5;
      Specified by:
      getLabelsOrThrow in interface HybridFindingDetailsOrBuilder
    • clearLabels

      public HybridFindingDetails.Builder clearLabels()
    • removeLabels

      public HybridFindingDetails.Builder removeLabels(String key)
       Labels to represent user provided metadata about the data being inspected.
       If configured by the job, some key values may be required.
       The labels associated with `Finding`'s produced by hybrid
       inspection.
      
       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 = 5;
    • getMutableLabels

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

      public HybridFindingDetails.Builder putLabels(String key, String value)
       Labels to represent user provided metadata about the data being inspected.
       If configured by the job, some key values may be required.
       The labels associated with `Finding`'s produced by hybrid
       inspection.
      
       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 = 5;
    • putAllLabels

      public HybridFindingDetails.Builder putAllLabels(Map<String,String> values)
       Labels to represent user provided metadata about the data being inspected.
       If configured by the job, some key values may be required.
       The labels associated with `Finding`'s produced by hybrid
       inspection.
      
       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 = 5;