Class StoredInfoTypeVersion.Builder

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

public static final class StoredInfoTypeVersion.Builder extends com.google.protobuf.GeneratedMessage.Builder<StoredInfoTypeVersion.Builder> implements StoredInfoTypeVersionOrBuilder
 Version of a StoredInfoType, including the configuration used to build it,
 create timestamp, and current state.
 
Protobuf type google.privacy.dlp.v2.StoredInfoTypeVersion
  • 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<StoredInfoTypeVersion.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<StoredInfoTypeVersion.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<StoredInfoTypeVersion.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public StoredInfoTypeVersion.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<StoredInfoTypeVersion.Builder>
      Throws:
      IOException
    • hasConfig

      public boolean hasConfig()
       StoredInfoType configuration.
       
      .google.privacy.dlp.v2.StoredInfoTypeConfig config = 1;
      Specified by:
      hasConfig in interface StoredInfoTypeVersionOrBuilder
      Returns:
      Whether the config field is set.
    • getConfig

      public StoredInfoTypeConfig getConfig()
       StoredInfoType configuration.
       
      .google.privacy.dlp.v2.StoredInfoTypeConfig config = 1;
      Specified by:
      getConfig in interface StoredInfoTypeVersionOrBuilder
      Returns:
      The config.
    • setConfig

       StoredInfoType configuration.
       
      .google.privacy.dlp.v2.StoredInfoTypeConfig config = 1;
    • setConfig

      public StoredInfoTypeVersion.Builder setConfig(StoredInfoTypeConfig.Builder builderForValue)
       StoredInfoType configuration.
       
      .google.privacy.dlp.v2.StoredInfoTypeConfig config = 1;
    • mergeConfig

       StoredInfoType configuration.
       
      .google.privacy.dlp.v2.StoredInfoTypeConfig config = 1;
    • clearConfig

      public StoredInfoTypeVersion.Builder clearConfig()
       StoredInfoType configuration.
       
      .google.privacy.dlp.v2.StoredInfoTypeConfig config = 1;
    • getConfigBuilder

      public StoredInfoTypeConfig.Builder getConfigBuilder()
       StoredInfoType configuration.
       
      .google.privacy.dlp.v2.StoredInfoTypeConfig config = 1;
    • getConfigOrBuilder

      public StoredInfoTypeConfigOrBuilder getConfigOrBuilder()
       StoredInfoType configuration.
       
      .google.privacy.dlp.v2.StoredInfoTypeConfig config = 1;
      Specified by:
      getConfigOrBuilder in interface StoredInfoTypeVersionOrBuilder
    • hasCreateTime

      public boolean hasCreateTime()
       Create timestamp of the version. Read-only, determined by the system
       when the version is created.
       
      .google.protobuf.Timestamp create_time = 2;
      Specified by:
      hasCreateTime in interface StoredInfoTypeVersionOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Create timestamp of the version. Read-only, determined by the system
       when the version is created.
       
      .google.protobuf.Timestamp create_time = 2;
      Specified by:
      getCreateTime in interface StoredInfoTypeVersionOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public StoredInfoTypeVersion.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Create timestamp of the version. Read-only, determined by the system
       when the version is created.
       
      .google.protobuf.Timestamp create_time = 2;
    • setCreateTime

      public StoredInfoTypeVersion.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Create timestamp of the version. Read-only, determined by the system
       when the version is created.
       
      .google.protobuf.Timestamp create_time = 2;
    • mergeCreateTime

      public StoredInfoTypeVersion.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Create timestamp of the version. Read-only, determined by the system
       when the version is created.
       
      .google.protobuf.Timestamp create_time = 2;
    • clearCreateTime

      public StoredInfoTypeVersion.Builder clearCreateTime()
       Create timestamp of the version. Read-only, determined by the system
       when the version is created.
       
      .google.protobuf.Timestamp create_time = 2;
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Create timestamp of the version. Read-only, determined by the system
       when the version is created.
       
      .google.protobuf.Timestamp create_time = 2;
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Create timestamp of the version. Read-only, determined by the system
       when the version is created.
       
      .google.protobuf.Timestamp create_time = 2;
      Specified by:
      getCreateTimeOrBuilder in interface StoredInfoTypeVersionOrBuilder
    • getStateValue

      public int getStateValue()
       Stored info type version state. Read-only, updated by the system
       during dictionary creation.
       
      .google.privacy.dlp.v2.StoredInfoTypeState state = 3;
      Specified by:
      getStateValue in interface StoredInfoTypeVersionOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public StoredInfoTypeVersion.Builder setStateValue(int value)
       Stored info type version state. Read-only, updated by the system
       during dictionary creation.
       
      .google.privacy.dlp.v2.StoredInfoTypeState state = 3;
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public StoredInfoTypeState getState()
       Stored info type version state. Read-only, updated by the system
       during dictionary creation.
       
      .google.privacy.dlp.v2.StoredInfoTypeState state = 3;
      Specified by:
      getState in interface StoredInfoTypeVersionOrBuilder
      Returns:
      The state.
    • setState

       Stored info type version state. Read-only, updated by the system
       during dictionary creation.
       
      .google.privacy.dlp.v2.StoredInfoTypeState state = 3;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public StoredInfoTypeVersion.Builder clearState()
       Stored info type version state. Read-only, updated by the system
       during dictionary creation.
       
      .google.privacy.dlp.v2.StoredInfoTypeState state = 3;
      Returns:
      This builder for chaining.
    • getErrorsList

      public List<Error> getErrorsList()
       Errors that occurred when creating this storedInfoType version, or
       anomalies detected in the storedInfoType data that render it unusable. Only
       the five most recent errors will be displayed, with the most recent error
       appearing first.
      
       For example, some of the data for stored custom dictionaries is put in
       the user's Cloud Storage bucket, and if this data is modified or
       deleted by the user or another system, the dictionary becomes invalid.
      
       If any errors occur, fix the problem indicated by the error message and
       use the UpdateStoredInfoType API method to create another version of the
       storedInfoType to continue using it, reusing the same `config` if it was
       not the source of the error.
       
      repeated .google.privacy.dlp.v2.Error errors = 4;
      Specified by:
      getErrorsList in interface StoredInfoTypeVersionOrBuilder
    • getErrorsCount

      public int getErrorsCount()
       Errors that occurred when creating this storedInfoType version, or
       anomalies detected in the storedInfoType data that render it unusable. Only
       the five most recent errors will be displayed, with the most recent error
       appearing first.
      
       For example, some of the data for stored custom dictionaries is put in
       the user's Cloud Storage bucket, and if this data is modified or
       deleted by the user or another system, the dictionary becomes invalid.
      
       If any errors occur, fix the problem indicated by the error message and
       use the UpdateStoredInfoType API method to create another version of the
       storedInfoType to continue using it, reusing the same `config` if it was
       not the source of the error.
       
      repeated .google.privacy.dlp.v2.Error errors = 4;
      Specified by:
      getErrorsCount in interface StoredInfoTypeVersionOrBuilder
    • getErrors

      public Error getErrors(int index)
       Errors that occurred when creating this storedInfoType version, or
       anomalies detected in the storedInfoType data that render it unusable. Only
       the five most recent errors will be displayed, with the most recent error
       appearing first.
      
       For example, some of the data for stored custom dictionaries is put in
       the user's Cloud Storage bucket, and if this data is modified or
       deleted by the user or another system, the dictionary becomes invalid.
      
       If any errors occur, fix the problem indicated by the error message and
       use the UpdateStoredInfoType API method to create another version of the
       storedInfoType to continue using it, reusing the same `config` if it was
       not the source of the error.
       
      repeated .google.privacy.dlp.v2.Error errors = 4;
      Specified by:
      getErrors in interface StoredInfoTypeVersionOrBuilder
    • setErrors

      public StoredInfoTypeVersion.Builder setErrors(int index, Error value)
       Errors that occurred when creating this storedInfoType version, or
       anomalies detected in the storedInfoType data that render it unusable. Only
       the five most recent errors will be displayed, with the most recent error
       appearing first.
      
       For example, some of the data for stored custom dictionaries is put in
       the user's Cloud Storage bucket, and if this data is modified or
       deleted by the user or another system, the dictionary becomes invalid.
      
       If any errors occur, fix the problem indicated by the error message and
       use the UpdateStoredInfoType API method to create another version of the
       storedInfoType to continue using it, reusing the same `config` if it was
       not the source of the error.
       
      repeated .google.privacy.dlp.v2.Error errors = 4;
    • setErrors

      public StoredInfoTypeVersion.Builder setErrors(int index, Error.Builder builderForValue)
       Errors that occurred when creating this storedInfoType version, or
       anomalies detected in the storedInfoType data that render it unusable. Only
       the five most recent errors will be displayed, with the most recent error
       appearing first.
      
       For example, some of the data for stored custom dictionaries is put in
       the user's Cloud Storage bucket, and if this data is modified or
       deleted by the user or another system, the dictionary becomes invalid.
      
       If any errors occur, fix the problem indicated by the error message and
       use the UpdateStoredInfoType API method to create another version of the
       storedInfoType to continue using it, reusing the same `config` if it was
       not the source of the error.
       
      repeated .google.privacy.dlp.v2.Error errors = 4;
    • addErrors

      public StoredInfoTypeVersion.Builder addErrors(Error value)
       Errors that occurred when creating this storedInfoType version, or
       anomalies detected in the storedInfoType data that render it unusable. Only
       the five most recent errors will be displayed, with the most recent error
       appearing first.
      
       For example, some of the data for stored custom dictionaries is put in
       the user's Cloud Storage bucket, and if this data is modified or
       deleted by the user or another system, the dictionary becomes invalid.
      
       If any errors occur, fix the problem indicated by the error message and
       use the UpdateStoredInfoType API method to create another version of the
       storedInfoType to continue using it, reusing the same `config` if it was
       not the source of the error.
       
      repeated .google.privacy.dlp.v2.Error errors = 4;
    • addErrors

      public StoredInfoTypeVersion.Builder addErrors(int index, Error value)
       Errors that occurred when creating this storedInfoType version, or
       anomalies detected in the storedInfoType data that render it unusable. Only
       the five most recent errors will be displayed, with the most recent error
       appearing first.
      
       For example, some of the data for stored custom dictionaries is put in
       the user's Cloud Storage bucket, and if this data is modified or
       deleted by the user or another system, the dictionary becomes invalid.
      
       If any errors occur, fix the problem indicated by the error message and
       use the UpdateStoredInfoType API method to create another version of the
       storedInfoType to continue using it, reusing the same `config` if it was
       not the source of the error.
       
      repeated .google.privacy.dlp.v2.Error errors = 4;
    • addErrors

      public StoredInfoTypeVersion.Builder addErrors(Error.Builder builderForValue)
       Errors that occurred when creating this storedInfoType version, or
       anomalies detected in the storedInfoType data that render it unusable. Only
       the five most recent errors will be displayed, with the most recent error
       appearing first.
      
       For example, some of the data for stored custom dictionaries is put in
       the user's Cloud Storage bucket, and if this data is modified or
       deleted by the user or another system, the dictionary becomes invalid.
      
       If any errors occur, fix the problem indicated by the error message and
       use the UpdateStoredInfoType API method to create another version of the
       storedInfoType to continue using it, reusing the same `config` if it was
       not the source of the error.
       
      repeated .google.privacy.dlp.v2.Error errors = 4;
    • addErrors

      public StoredInfoTypeVersion.Builder addErrors(int index, Error.Builder builderForValue)
       Errors that occurred when creating this storedInfoType version, or
       anomalies detected in the storedInfoType data that render it unusable. Only
       the five most recent errors will be displayed, with the most recent error
       appearing first.
      
       For example, some of the data for stored custom dictionaries is put in
       the user's Cloud Storage bucket, and if this data is modified or
       deleted by the user or another system, the dictionary becomes invalid.
      
       If any errors occur, fix the problem indicated by the error message and
       use the UpdateStoredInfoType API method to create another version of the
       storedInfoType to continue using it, reusing the same `config` if it was
       not the source of the error.
       
      repeated .google.privacy.dlp.v2.Error errors = 4;
    • addAllErrors

      public StoredInfoTypeVersion.Builder addAllErrors(Iterable<? extends Error> values)
       Errors that occurred when creating this storedInfoType version, or
       anomalies detected in the storedInfoType data that render it unusable. Only
       the five most recent errors will be displayed, with the most recent error
       appearing first.
      
       For example, some of the data for stored custom dictionaries is put in
       the user's Cloud Storage bucket, and if this data is modified or
       deleted by the user or another system, the dictionary becomes invalid.
      
       If any errors occur, fix the problem indicated by the error message and
       use the UpdateStoredInfoType API method to create another version of the
       storedInfoType to continue using it, reusing the same `config` if it was
       not the source of the error.
       
      repeated .google.privacy.dlp.v2.Error errors = 4;
    • clearErrors

      public StoredInfoTypeVersion.Builder clearErrors()
       Errors that occurred when creating this storedInfoType version, or
       anomalies detected in the storedInfoType data that render it unusable. Only
       the five most recent errors will be displayed, with the most recent error
       appearing first.
      
       For example, some of the data for stored custom dictionaries is put in
       the user's Cloud Storage bucket, and if this data is modified or
       deleted by the user or another system, the dictionary becomes invalid.
      
       If any errors occur, fix the problem indicated by the error message and
       use the UpdateStoredInfoType API method to create another version of the
       storedInfoType to continue using it, reusing the same `config` if it was
       not the source of the error.
       
      repeated .google.privacy.dlp.v2.Error errors = 4;
    • removeErrors

      public StoredInfoTypeVersion.Builder removeErrors(int index)
       Errors that occurred when creating this storedInfoType version, or
       anomalies detected in the storedInfoType data that render it unusable. Only
       the five most recent errors will be displayed, with the most recent error
       appearing first.
      
       For example, some of the data for stored custom dictionaries is put in
       the user's Cloud Storage bucket, and if this data is modified or
       deleted by the user or another system, the dictionary becomes invalid.
      
       If any errors occur, fix the problem indicated by the error message and
       use the UpdateStoredInfoType API method to create another version of the
       storedInfoType to continue using it, reusing the same `config` if it was
       not the source of the error.
       
      repeated .google.privacy.dlp.v2.Error errors = 4;
    • getErrorsBuilder

      public Error.Builder getErrorsBuilder(int index)
       Errors that occurred when creating this storedInfoType version, or
       anomalies detected in the storedInfoType data that render it unusable. Only
       the five most recent errors will be displayed, with the most recent error
       appearing first.
      
       For example, some of the data for stored custom dictionaries is put in
       the user's Cloud Storage bucket, and if this data is modified or
       deleted by the user or another system, the dictionary becomes invalid.
      
       If any errors occur, fix the problem indicated by the error message and
       use the UpdateStoredInfoType API method to create another version of the
       storedInfoType to continue using it, reusing the same `config` if it was
       not the source of the error.
       
      repeated .google.privacy.dlp.v2.Error errors = 4;
    • getErrorsOrBuilder

      public ErrorOrBuilder getErrorsOrBuilder(int index)
       Errors that occurred when creating this storedInfoType version, or
       anomalies detected in the storedInfoType data that render it unusable. Only
       the five most recent errors will be displayed, with the most recent error
       appearing first.
      
       For example, some of the data for stored custom dictionaries is put in
       the user's Cloud Storage bucket, and if this data is modified or
       deleted by the user or another system, the dictionary becomes invalid.
      
       If any errors occur, fix the problem indicated by the error message and
       use the UpdateStoredInfoType API method to create another version of the
       storedInfoType to continue using it, reusing the same `config` if it was
       not the source of the error.
       
      repeated .google.privacy.dlp.v2.Error errors = 4;
      Specified by:
      getErrorsOrBuilder in interface StoredInfoTypeVersionOrBuilder
    • getErrorsOrBuilderList

      public List<? extends ErrorOrBuilder> getErrorsOrBuilderList()
       Errors that occurred when creating this storedInfoType version, or
       anomalies detected in the storedInfoType data that render it unusable. Only
       the five most recent errors will be displayed, with the most recent error
       appearing first.
      
       For example, some of the data for stored custom dictionaries is put in
       the user's Cloud Storage bucket, and if this data is modified or
       deleted by the user or another system, the dictionary becomes invalid.
      
       If any errors occur, fix the problem indicated by the error message and
       use the UpdateStoredInfoType API method to create another version of the
       storedInfoType to continue using it, reusing the same `config` if it was
       not the source of the error.
       
      repeated .google.privacy.dlp.v2.Error errors = 4;
      Specified by:
      getErrorsOrBuilderList in interface StoredInfoTypeVersionOrBuilder
    • addErrorsBuilder

      public Error.Builder addErrorsBuilder()
       Errors that occurred when creating this storedInfoType version, or
       anomalies detected in the storedInfoType data that render it unusable. Only
       the five most recent errors will be displayed, with the most recent error
       appearing first.
      
       For example, some of the data for stored custom dictionaries is put in
       the user's Cloud Storage bucket, and if this data is modified or
       deleted by the user or another system, the dictionary becomes invalid.
      
       If any errors occur, fix the problem indicated by the error message and
       use the UpdateStoredInfoType API method to create another version of the
       storedInfoType to continue using it, reusing the same `config` if it was
       not the source of the error.
       
      repeated .google.privacy.dlp.v2.Error errors = 4;
    • addErrorsBuilder

      public Error.Builder addErrorsBuilder(int index)
       Errors that occurred when creating this storedInfoType version, or
       anomalies detected in the storedInfoType data that render it unusable. Only
       the five most recent errors will be displayed, with the most recent error
       appearing first.
      
       For example, some of the data for stored custom dictionaries is put in
       the user's Cloud Storage bucket, and if this data is modified or
       deleted by the user or another system, the dictionary becomes invalid.
      
       If any errors occur, fix the problem indicated by the error message and
       use the UpdateStoredInfoType API method to create another version of the
       storedInfoType to continue using it, reusing the same `config` if it was
       not the source of the error.
       
      repeated .google.privacy.dlp.v2.Error errors = 4;
    • getErrorsBuilderList

      public List<Error.Builder> getErrorsBuilderList()
       Errors that occurred when creating this storedInfoType version, or
       anomalies detected in the storedInfoType data that render it unusable. Only
       the five most recent errors will be displayed, with the most recent error
       appearing first.
      
       For example, some of the data for stored custom dictionaries is put in
       the user's Cloud Storage bucket, and if this data is modified or
       deleted by the user or another system, the dictionary becomes invalid.
      
       If any errors occur, fix the problem indicated by the error message and
       use the UpdateStoredInfoType API method to create another version of the
       storedInfoType to continue using it, reusing the same `config` if it was
       not the source of the error.
       
      repeated .google.privacy.dlp.v2.Error errors = 4;
    • hasStats

      public boolean hasStats()
       Statistics about this storedInfoType version.
       
      .google.privacy.dlp.v2.StoredInfoTypeStats stats = 5;
      Specified by:
      hasStats in interface StoredInfoTypeVersionOrBuilder
      Returns:
      Whether the stats field is set.
    • getStats

      public StoredInfoTypeStats getStats()
       Statistics about this storedInfoType version.
       
      .google.privacy.dlp.v2.StoredInfoTypeStats stats = 5;
      Specified by:
      getStats in interface StoredInfoTypeVersionOrBuilder
      Returns:
      The stats.
    • setStats

       Statistics about this storedInfoType version.
       
      .google.privacy.dlp.v2.StoredInfoTypeStats stats = 5;
    • setStats

       Statistics about this storedInfoType version.
       
      .google.privacy.dlp.v2.StoredInfoTypeStats stats = 5;
    • mergeStats

       Statistics about this storedInfoType version.
       
      .google.privacy.dlp.v2.StoredInfoTypeStats stats = 5;
    • clearStats

      public StoredInfoTypeVersion.Builder clearStats()
       Statistics about this storedInfoType version.
       
      .google.privacy.dlp.v2.StoredInfoTypeStats stats = 5;
    • getStatsBuilder

      public StoredInfoTypeStats.Builder getStatsBuilder()
       Statistics about this storedInfoType version.
       
      .google.privacy.dlp.v2.StoredInfoTypeStats stats = 5;
    • getStatsOrBuilder

      public StoredInfoTypeStatsOrBuilder getStatsOrBuilder()
       Statistics about this storedInfoType version.
       
      .google.privacy.dlp.v2.StoredInfoTypeStats stats = 5;
      Specified by:
      getStatsOrBuilder in interface StoredInfoTypeVersionOrBuilder