Class AmazonS3BucketConditions.Builder

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

public static final class AmazonS3BucketConditions.Builder extends com.google.protobuf.GeneratedMessage.Builder<AmazonS3BucketConditions.Builder> implements AmazonS3BucketConditionsOrBuilder
 Amazon S3 bucket conditions.
 
Protobuf type google.privacy.dlp.v2.AmazonS3BucketConditions
  • 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<AmazonS3BucketConditions.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<AmazonS3BucketConditions.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<AmazonS3BucketConditions.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public AmazonS3BucketConditions.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<AmazonS3BucketConditions.Builder>
      Throws:
      IOException
    • getBucketTypesList

      public List<AmazonS3BucketConditions.BucketType> getBucketTypesList()
       Optional. Bucket types that should be profiled.
       Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified.
       
      repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBucketTypesList in interface AmazonS3BucketConditionsOrBuilder
      Returns:
      A list containing the bucketTypes.
    • getBucketTypesCount

      public int getBucketTypesCount()
       Optional. Bucket types that should be profiled.
       Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified.
       
      repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBucketTypesCount in interface AmazonS3BucketConditionsOrBuilder
      Returns:
      The count of bucketTypes.
    • getBucketTypes

      public AmazonS3BucketConditions.BucketType getBucketTypes(int index)
       Optional. Bucket types that should be profiled.
       Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified.
       
      repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBucketTypes in interface AmazonS3BucketConditionsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The bucketTypes at the given index.
    • setBucketTypes

      public AmazonS3BucketConditions.Builder setBucketTypes(int index, AmazonS3BucketConditions.BucketType value)
       Optional. Bucket types that should be profiled.
       Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified.
       
      repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The bucketTypes to set.
      Returns:
      This builder for chaining.
    • addBucketTypes

       Optional. Bucket types that should be profiled.
       Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified.
       
      repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bucketTypes to add.
      Returns:
      This builder for chaining.
    • addAllBucketTypes

       Optional. Bucket types that should be profiled.
       Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified.
       
      repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The bucketTypes to add.
      Returns:
      This builder for chaining.
    • clearBucketTypes

      public AmazonS3BucketConditions.Builder clearBucketTypes()
       Optional. Bucket types that should be profiled.
       Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified.
       
      repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getBucketTypesValueList

      public List<Integer> getBucketTypesValueList()
       Optional. Bucket types that should be profiled.
       Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified.
       
      repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBucketTypesValueList in interface AmazonS3BucketConditionsOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for bucketTypes.
    • getBucketTypesValue

      public int getBucketTypesValue(int index)
       Optional. Bucket types that should be profiled.
       Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified.
       
      repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBucketTypesValue in interface AmazonS3BucketConditionsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of bucketTypes at the given index.
    • setBucketTypesValue

      public AmazonS3BucketConditions.Builder setBucketTypesValue(int index, int value)
       Optional. Bucket types that should be profiled.
       Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified.
       
      repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for bucketTypes to set.
      Returns:
      This builder for chaining.
    • addBucketTypesValue

      public AmazonS3BucketConditions.Builder addBucketTypesValue(int value)
       Optional. Bucket types that should be profiled.
       Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified.
       
      repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for bucketTypes to add.
      Returns:
      This builder for chaining.
    • addAllBucketTypesValue

      public AmazonS3BucketConditions.Builder addAllBucketTypesValue(Iterable<Integer> values)
       Optional. Bucket types that should be profiled.
       Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified.
       
      repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The enum numeric values on the wire for bucketTypes to add.
      Returns:
      This builder for chaining.
    • getObjectStorageClassesList

      public List<AmazonS3BucketConditions.ObjectStorageClass> getObjectStorageClassesList()
       Optional. Object classes that should be profiled.
       Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified.
       
      repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getObjectStorageClassesList in interface AmazonS3BucketConditionsOrBuilder
      Returns:
      A list containing the objectStorageClasses.
    • getObjectStorageClassesCount

      public int getObjectStorageClassesCount()
       Optional. Object classes that should be profiled.
       Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified.
       
      repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getObjectStorageClassesCount in interface AmazonS3BucketConditionsOrBuilder
      Returns:
      The count of objectStorageClasses.
    • getObjectStorageClasses

      public AmazonS3BucketConditions.ObjectStorageClass getObjectStorageClasses(int index)
       Optional. Object classes that should be profiled.
       Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified.
       
      repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getObjectStorageClasses in interface AmazonS3BucketConditionsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The objectStorageClasses at the given index.
    • setObjectStorageClasses

      public AmazonS3BucketConditions.Builder setObjectStorageClasses(int index, AmazonS3BucketConditions.ObjectStorageClass value)
       Optional. Object classes that should be profiled.
       Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified.
       
      repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The objectStorageClasses to set.
      Returns:
      This builder for chaining.
    • addObjectStorageClasses

       Optional. Object classes that should be profiled.
       Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified.
       
      repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The objectStorageClasses to add.
      Returns:
      This builder for chaining.
    • addAllObjectStorageClasses

      public AmazonS3BucketConditions.Builder addAllObjectStorageClasses(Iterable<? extends AmazonS3BucketConditions.ObjectStorageClass> values)
       Optional. Object classes that should be profiled.
       Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified.
       
      repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The objectStorageClasses to add.
      Returns:
      This builder for chaining.
    • clearObjectStorageClasses

      public AmazonS3BucketConditions.Builder clearObjectStorageClasses()
       Optional. Object classes that should be profiled.
       Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified.
       
      repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getObjectStorageClassesValueList

      public List<Integer> getObjectStorageClassesValueList()
       Optional. Object classes that should be profiled.
       Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified.
       
      repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getObjectStorageClassesValueList in interface AmazonS3BucketConditionsOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for objectStorageClasses.
    • getObjectStorageClassesValue

      public int getObjectStorageClassesValue(int index)
       Optional. Object classes that should be profiled.
       Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified.
       
      repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getObjectStorageClassesValue in interface AmazonS3BucketConditionsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of objectStorageClasses at the given index.
    • setObjectStorageClassesValue

      public AmazonS3BucketConditions.Builder setObjectStorageClassesValue(int index, int value)
       Optional. Object classes that should be profiled.
       Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified.
       
      repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for objectStorageClasses to set.
      Returns:
      This builder for chaining.
    • addObjectStorageClassesValue

      public AmazonS3BucketConditions.Builder addObjectStorageClassesValue(int value)
       Optional. Object classes that should be profiled.
       Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified.
       
      repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for objectStorageClasses to add.
      Returns:
      This builder for chaining.
    • addAllObjectStorageClassesValue

      public AmazonS3BucketConditions.Builder addAllObjectStorageClassesValue(Iterable<Integer> values)
       Optional. Object classes that should be profiled.
       Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified.
       
      repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The enum numeric values on the wire for objectStorageClasses to add.
      Returns:
      This builder for chaining.