Class DatasetConfig.BucketErrors.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DatasetConfig.BucketErrors.Builder>
com.google.cloud.storageinsights.v1.DatasetConfig.BucketErrors.Builder
All Implemented Interfaces:
DatasetConfig.BucketErrorsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DatasetConfig.BucketErrors

public static final class DatasetConfig.BucketErrors.Builder extends com.google.protobuf.GeneratedMessage.Builder<DatasetConfig.BucketErrors.Builder> implements DatasetConfig.BucketErrorsOrBuilder
 Provides a summary of the bucket level error statistics.
 
Protobuf type google.cloud.storageinsights.v1.DatasetConfig.BucketErrors
  • 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<DatasetConfig.BucketErrors.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<DatasetConfig.BucketErrors.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<DatasetConfig.BucketErrors.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public DatasetConfig.BucketErrors.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<DatasetConfig.BucketErrors.Builder>
      Throws:
      IOException
    • getValidatedCount

      public long getValidatedCount()
       Optional. Count of successfully validated buckets.
       
      int64 validated_count = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValidatedCount in interface DatasetConfig.BucketErrorsOrBuilder
      Returns:
      The validatedCount.
    • setValidatedCount

      public DatasetConfig.BucketErrors.Builder setValidatedCount(long value)
       Optional. Count of successfully validated buckets.
       
      int64 validated_count = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The validatedCount to set.
      Returns:
      This builder for chaining.
    • clearValidatedCount

      public DatasetConfig.BucketErrors.Builder clearValidatedCount()
       Optional. Count of successfully validated buckets.
       
      int64 validated_count = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getPermissionDeniedCount

      public long getPermissionDeniedCount()
       Optional. Count of buckets with permission denied errors.
       
      int64 permission_denied_count = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPermissionDeniedCount in interface DatasetConfig.BucketErrorsOrBuilder
      Returns:
      The permissionDeniedCount.
    • setPermissionDeniedCount

      public DatasetConfig.BucketErrors.Builder setPermissionDeniedCount(long value)
       Optional. Count of buckets with permission denied errors.
       
      int64 permission_denied_count = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The permissionDeniedCount to set.
      Returns:
      This builder for chaining.
    • clearPermissionDeniedCount

      public DatasetConfig.BucketErrors.Builder clearPermissionDeniedCount()
       Optional. Count of buckets with permission denied errors.
       
      int64 permission_denied_count = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getPermissionDeniedBucketIdsList

      public com.google.protobuf.ProtocolStringList getPermissionDeniedBucketIdsList()
       Optional. Subset of bucket names that have permission denied.
       
      repeated string permission_denied_bucket_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPermissionDeniedBucketIdsList in interface DatasetConfig.BucketErrorsOrBuilder
      Returns:
      A list containing the permissionDeniedBucketIds.
    • getPermissionDeniedBucketIdsCount

      public int getPermissionDeniedBucketIdsCount()
       Optional. Subset of bucket names that have permission denied.
       
      repeated string permission_denied_bucket_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPermissionDeniedBucketIdsCount in interface DatasetConfig.BucketErrorsOrBuilder
      Returns:
      The count of permissionDeniedBucketIds.
    • getPermissionDeniedBucketIds

      public String getPermissionDeniedBucketIds(int index)
       Optional. Subset of bucket names that have permission denied.
       
      repeated string permission_denied_bucket_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPermissionDeniedBucketIds in interface DatasetConfig.BucketErrorsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The permissionDeniedBucketIds at the given index.
    • getPermissionDeniedBucketIdsBytes

      public com.google.protobuf.ByteString getPermissionDeniedBucketIdsBytes(int index)
       Optional. Subset of bucket names that have permission denied.
       
      repeated string permission_denied_bucket_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPermissionDeniedBucketIdsBytes in interface DatasetConfig.BucketErrorsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the permissionDeniedBucketIds at the given index.
    • setPermissionDeniedBucketIds

      public DatasetConfig.BucketErrors.Builder setPermissionDeniedBucketIds(int index, String value)
       Optional. Subset of bucket names that have permission denied.
       
      repeated string permission_denied_bucket_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The permissionDeniedBucketIds to set.
      Returns:
      This builder for chaining.
    • addPermissionDeniedBucketIds

      public DatasetConfig.BucketErrors.Builder addPermissionDeniedBucketIds(String value)
       Optional. Subset of bucket names that have permission denied.
       
      repeated string permission_denied_bucket_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The permissionDeniedBucketIds to add.
      Returns:
      This builder for chaining.
    • addAllPermissionDeniedBucketIds

      public DatasetConfig.BucketErrors.Builder addAllPermissionDeniedBucketIds(Iterable<String> values)
       Optional. Subset of bucket names that have permission denied.
       
      repeated string permission_denied_bucket_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The permissionDeniedBucketIds to add.
      Returns:
      This builder for chaining.
    • clearPermissionDeniedBucketIds

      public DatasetConfig.BucketErrors.Builder clearPermissionDeniedBucketIds()
       Optional. Subset of bucket names that have permission denied.
       
      repeated string permission_denied_bucket_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addPermissionDeniedBucketIdsBytes

      public DatasetConfig.BucketErrors.Builder addPermissionDeniedBucketIdsBytes(com.google.protobuf.ByteString value)
       Optional. Subset of bucket names that have permission denied.
       
      repeated string permission_denied_bucket_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the permissionDeniedBucketIds to add.
      Returns:
      This builder for chaining.
    • getNonManagementHubEntitledCount

      @Deprecated public long getNonManagementHubEntitledCount()
      Deprecated.
      google.cloud.storageinsights.v1.DatasetConfig.BucketErrors.non_management_hub_entitled_count is deprecated. See google/cloud/storageinsights/v1/storageinsights.proto;l=691
       Optional. Count of buckets that are not subscribed to Storage
       Intelligence.
       
      int64 non_management_hub_entitled_count = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNonManagementHubEntitledCount in interface DatasetConfig.BucketErrorsOrBuilder
      Returns:
      The nonManagementHubEntitledCount.
    • setNonManagementHubEntitledCount

      @Deprecated public DatasetConfig.BucketErrors.Builder setNonManagementHubEntitledCount(long value)
      Deprecated.
      google.cloud.storageinsights.v1.DatasetConfig.BucketErrors.non_management_hub_entitled_count is deprecated. See google/cloud/storageinsights/v1/storageinsights.proto;l=691
       Optional. Count of buckets that are not subscribed to Storage
       Intelligence.
       
      int64 non_management_hub_entitled_count = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The nonManagementHubEntitledCount to set.
      Returns:
      This builder for chaining.
    • clearNonManagementHubEntitledCount

      @Deprecated public DatasetConfig.BucketErrors.Builder clearNonManagementHubEntitledCount()
      Deprecated.
      google.cloud.storageinsights.v1.DatasetConfig.BucketErrors.non_management_hub_entitled_count is deprecated. See google/cloud/storageinsights/v1/storageinsights.proto;l=691
       Optional. Count of buckets that are not subscribed to Storage
       Intelligence.
       
      int64 non_management_hub_entitled_count = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getInternalErrorCount

      public long getInternalErrorCount()
       Optional. Number of buckets that encountered internal errors during the
       validation process. These buckets are automatically retried in subsequent
       validation attempts.
       
      int64 internal_error_count = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInternalErrorCount in interface DatasetConfig.BucketErrorsOrBuilder
      Returns:
      The internalErrorCount.
    • setInternalErrorCount

      public DatasetConfig.BucketErrors.Builder setInternalErrorCount(long value)
       Optional. Number of buckets that encountered internal errors during the
       validation process. These buckets are automatically retried in subsequent
       validation attempts.
       
      int64 internal_error_count = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The internalErrorCount to set.
      Returns:
      This builder for chaining.
    • clearInternalErrorCount

      public DatasetConfig.BucketErrors.Builder clearInternalErrorCount()
       Optional. Number of buckets that encountered internal errors during the
       validation process. These buckets are automatically retried in subsequent
       validation attempts.
       
      int64 internal_error_count = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getNonStorageIntelligenceEntitledCount

      public long getNonStorageIntelligenceEntitledCount()
       Optional. Count of buckets that are not subscribed to Storage
       Intelligence.
       
      int64 non_storage_intelligence_entitled_count = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNonStorageIntelligenceEntitledCount in interface DatasetConfig.BucketErrorsOrBuilder
      Returns:
      The nonStorageIntelligenceEntitledCount.
    • setNonStorageIntelligenceEntitledCount

      public DatasetConfig.BucketErrors.Builder setNonStorageIntelligenceEntitledCount(long value)
       Optional. Count of buckets that are not subscribed to Storage
       Intelligence.
       
      int64 non_storage_intelligence_entitled_count = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The nonStorageIntelligenceEntitledCount to set.
      Returns:
      This builder for chaining.
    • clearNonStorageIntelligenceEntitledCount

      public DatasetConfig.BucketErrors.Builder clearNonStorageIntelligenceEntitledCount()
       Optional. Count of buckets that are not subscribed to Storage
       Intelligence.
       
      int64 non_storage_intelligence_entitled_count = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getNonStorageIntelligenceEntitledBucketIdsList

      public com.google.protobuf.ProtocolStringList getNonStorageIntelligenceEntitledBucketIdsList()
       Optional. Subset of bucket names that are not subscribed to Storage
       Intelligence.
       
      repeated string non_storage_intelligence_entitled_bucket_ids = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNonStorageIntelligenceEntitledBucketIdsList in interface DatasetConfig.BucketErrorsOrBuilder
      Returns:
      A list containing the nonStorageIntelligenceEntitledBucketIds.
    • getNonStorageIntelligenceEntitledBucketIdsCount

      public int getNonStorageIntelligenceEntitledBucketIdsCount()
       Optional. Subset of bucket names that are not subscribed to Storage
       Intelligence.
       
      repeated string non_storage_intelligence_entitled_bucket_ids = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNonStorageIntelligenceEntitledBucketIdsCount in interface DatasetConfig.BucketErrorsOrBuilder
      Returns:
      The count of nonStorageIntelligenceEntitledBucketIds.
    • getNonStorageIntelligenceEntitledBucketIds

      public String getNonStorageIntelligenceEntitledBucketIds(int index)
       Optional. Subset of bucket names that are not subscribed to Storage
       Intelligence.
       
      repeated string non_storage_intelligence_entitled_bucket_ids = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNonStorageIntelligenceEntitledBucketIds in interface DatasetConfig.BucketErrorsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The nonStorageIntelligenceEntitledBucketIds at the given index.
    • getNonStorageIntelligenceEntitledBucketIdsBytes

      public com.google.protobuf.ByteString getNonStorageIntelligenceEntitledBucketIdsBytes(int index)
       Optional. Subset of bucket names that are not subscribed to Storage
       Intelligence.
       
      repeated string non_storage_intelligence_entitled_bucket_ids = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNonStorageIntelligenceEntitledBucketIdsBytes in interface DatasetConfig.BucketErrorsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the nonStorageIntelligenceEntitledBucketIds at the given index.
    • setNonStorageIntelligenceEntitledBucketIds

      public DatasetConfig.BucketErrors.Builder setNonStorageIntelligenceEntitledBucketIds(int index, String value)
       Optional. Subset of bucket names that are not subscribed to Storage
       Intelligence.
       
      repeated string non_storage_intelligence_entitled_bucket_ids = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The nonStorageIntelligenceEntitledBucketIds to set.
      Returns:
      This builder for chaining.
    • addNonStorageIntelligenceEntitledBucketIds

      public DatasetConfig.BucketErrors.Builder addNonStorageIntelligenceEntitledBucketIds(String value)
       Optional. Subset of bucket names that are not subscribed to Storage
       Intelligence.
       
      repeated string non_storage_intelligence_entitled_bucket_ids = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The nonStorageIntelligenceEntitledBucketIds to add.
      Returns:
      This builder for chaining.
    • addAllNonStorageIntelligenceEntitledBucketIds

      public DatasetConfig.BucketErrors.Builder addAllNonStorageIntelligenceEntitledBucketIds(Iterable<String> values)
       Optional. Subset of bucket names that are not subscribed to Storage
       Intelligence.
       
      repeated string non_storage_intelligence_entitled_bucket_ids = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The nonStorageIntelligenceEntitledBucketIds to add.
      Returns:
      This builder for chaining.
    • clearNonStorageIntelligenceEntitledBucketIds

      public DatasetConfig.BucketErrors.Builder clearNonStorageIntelligenceEntitledBucketIds()
       Optional. Subset of bucket names that are not subscribed to Storage
       Intelligence.
       
      repeated string non_storage_intelligence_entitled_bucket_ids = 8 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addNonStorageIntelligenceEntitledBucketIdsBytes

      public DatasetConfig.BucketErrors.Builder addNonStorageIntelligenceEntitledBucketIdsBytes(com.google.protobuf.ByteString value)
       Optional. Subset of bucket names that are not subscribed to Storage
       Intelligence.
       
      repeated string non_storage_intelligence_entitled_bucket_ids = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the nonStorageIntelligenceEntitledBucketIds to add.
      Returns:
      This builder for chaining.