Class RecordKey.Builder

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

public static final class RecordKey.Builder extends com.google.protobuf.GeneratedMessage.Builder<RecordKey.Builder> implements RecordKeyOrBuilder
 Message for a unique key indicating a record that contains a finding.
 
Protobuf type google.privacy.dlp.v2.RecordKey
  • 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<RecordKey.Builder>
    • clear

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

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

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

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

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

      public RecordKey.Builder mergeFrom(RecordKey other)
    • isInitialized

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

      public RecordKey.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<RecordKey.Builder>
      Throws:
      IOException
    • getTypeCase

      public RecordKey.TypeCase getTypeCase()
      Specified by:
      getTypeCase in interface RecordKeyOrBuilder
    • clearType

      public RecordKey.Builder clearType()
    • hasDatastoreKey

      public boolean hasDatastoreKey()
       BigQuery key
       
      .google.privacy.dlp.v2.DatastoreKey datastore_key = 2;
      Specified by:
      hasDatastoreKey in interface RecordKeyOrBuilder
      Returns:
      Whether the datastoreKey field is set.
    • getDatastoreKey

      public DatastoreKey getDatastoreKey()
       BigQuery key
       
      .google.privacy.dlp.v2.DatastoreKey datastore_key = 2;
      Specified by:
      getDatastoreKey in interface RecordKeyOrBuilder
      Returns:
      The datastoreKey.
    • setDatastoreKey

      public RecordKey.Builder setDatastoreKey(DatastoreKey value)
       BigQuery key
       
      .google.privacy.dlp.v2.DatastoreKey datastore_key = 2;
    • setDatastoreKey

      public RecordKey.Builder setDatastoreKey(DatastoreKey.Builder builderForValue)
       BigQuery key
       
      .google.privacy.dlp.v2.DatastoreKey datastore_key = 2;
    • mergeDatastoreKey

      public RecordKey.Builder mergeDatastoreKey(DatastoreKey value)
       BigQuery key
       
      .google.privacy.dlp.v2.DatastoreKey datastore_key = 2;
    • clearDatastoreKey

      public RecordKey.Builder clearDatastoreKey()
       BigQuery key
       
      .google.privacy.dlp.v2.DatastoreKey datastore_key = 2;
    • getDatastoreKeyBuilder

      public DatastoreKey.Builder getDatastoreKeyBuilder()
       BigQuery key
       
      .google.privacy.dlp.v2.DatastoreKey datastore_key = 2;
    • getDatastoreKeyOrBuilder

      public DatastoreKeyOrBuilder getDatastoreKeyOrBuilder()
       BigQuery key
       
      .google.privacy.dlp.v2.DatastoreKey datastore_key = 2;
      Specified by:
      getDatastoreKeyOrBuilder in interface RecordKeyOrBuilder
    • hasBigQueryKey

      public boolean hasBigQueryKey()
       Datastore key
       
      .google.privacy.dlp.v2.BigQueryKey big_query_key = 3;
      Specified by:
      hasBigQueryKey in interface RecordKeyOrBuilder
      Returns:
      Whether the bigQueryKey field is set.
    • getBigQueryKey

      public BigQueryKey getBigQueryKey()
       Datastore key
       
      .google.privacy.dlp.v2.BigQueryKey big_query_key = 3;
      Specified by:
      getBigQueryKey in interface RecordKeyOrBuilder
      Returns:
      The bigQueryKey.
    • setBigQueryKey

      public RecordKey.Builder setBigQueryKey(BigQueryKey value)
       Datastore key
       
      .google.privacy.dlp.v2.BigQueryKey big_query_key = 3;
    • setBigQueryKey

      public RecordKey.Builder setBigQueryKey(BigQueryKey.Builder builderForValue)
       Datastore key
       
      .google.privacy.dlp.v2.BigQueryKey big_query_key = 3;
    • mergeBigQueryKey

      public RecordKey.Builder mergeBigQueryKey(BigQueryKey value)
       Datastore key
       
      .google.privacy.dlp.v2.BigQueryKey big_query_key = 3;
    • clearBigQueryKey

      public RecordKey.Builder clearBigQueryKey()
       Datastore key
       
      .google.privacy.dlp.v2.BigQueryKey big_query_key = 3;
    • getBigQueryKeyBuilder

      public BigQueryKey.Builder getBigQueryKeyBuilder()
       Datastore key
       
      .google.privacy.dlp.v2.BigQueryKey big_query_key = 3;
    • getBigQueryKeyOrBuilder

      public BigQueryKeyOrBuilder getBigQueryKeyOrBuilder()
       Datastore key
       
      .google.privacy.dlp.v2.BigQueryKey big_query_key = 3;
      Specified by:
      getBigQueryKeyOrBuilder in interface RecordKeyOrBuilder
    • getIdValuesList

      public com.google.protobuf.ProtocolStringList getIdValuesList()
       Values of identifying columns in the given row. Order of values matches
       the order of `identifying_fields` specified in the scanning request.
       
      repeated string id_values = 5;
      Specified by:
      getIdValuesList in interface RecordKeyOrBuilder
      Returns:
      A list containing the idValues.
    • getIdValuesCount

      public int getIdValuesCount()
       Values of identifying columns in the given row. Order of values matches
       the order of `identifying_fields` specified in the scanning request.
       
      repeated string id_values = 5;
      Specified by:
      getIdValuesCount in interface RecordKeyOrBuilder
      Returns:
      The count of idValues.
    • getIdValues

      public String getIdValues(int index)
       Values of identifying columns in the given row. Order of values matches
       the order of `identifying_fields` specified in the scanning request.
       
      repeated string id_values = 5;
      Specified by:
      getIdValues in interface RecordKeyOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The idValues at the given index.
    • getIdValuesBytes

      public com.google.protobuf.ByteString getIdValuesBytes(int index)
       Values of identifying columns in the given row. Order of values matches
       the order of `identifying_fields` specified in the scanning request.
       
      repeated string id_values = 5;
      Specified by:
      getIdValuesBytes in interface RecordKeyOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the idValues at the given index.
    • setIdValues

      public RecordKey.Builder setIdValues(int index, String value)
       Values of identifying columns in the given row. Order of values matches
       the order of `identifying_fields` specified in the scanning request.
       
      repeated string id_values = 5;
      Parameters:
      index - The index to set the value at.
      value - The idValues to set.
      Returns:
      This builder for chaining.
    • addIdValues

      public RecordKey.Builder addIdValues(String value)
       Values of identifying columns in the given row. Order of values matches
       the order of `identifying_fields` specified in the scanning request.
       
      repeated string id_values = 5;
      Parameters:
      value - The idValues to add.
      Returns:
      This builder for chaining.
    • addAllIdValues

      public RecordKey.Builder addAllIdValues(Iterable<String> values)
       Values of identifying columns in the given row. Order of values matches
       the order of `identifying_fields` specified in the scanning request.
       
      repeated string id_values = 5;
      Parameters:
      values - The idValues to add.
      Returns:
      This builder for chaining.
    • clearIdValues

      public RecordKey.Builder clearIdValues()
       Values of identifying columns in the given row. Order of values matches
       the order of `identifying_fields` specified in the scanning request.
       
      repeated string id_values = 5;
      Returns:
      This builder for chaining.
    • addIdValuesBytes

      public RecordKey.Builder addIdValuesBytes(com.google.protobuf.ByteString value)
       Values of identifying columns in the given row. Order of values matches
       the order of `identifying_fields` specified in the scanning request.
       
      repeated string id_values = 5;
      Parameters:
      value - The bytes of the idValues to add.
      Returns:
      This builder for chaining.