Class ResourceAccessSpec.Builder

  • All Implemented Interfaces:
    ResourceAccessSpecOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ResourceAccessSpec

    public static final class ResourceAccessSpec.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ResourceAccessSpec.Builder>
    implements ResourceAccessSpecOrBuilder
     ResourceAccessSpec holds the access control configuration to be enforced
     on the resources, for example, Cloud Storage bucket, BigQuery dataset,
     BigQuery table.
     
    Protobuf type google.cloud.dataplex.v1.ResourceAccessSpec
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceAccessSpec.Builder>
      • clear

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

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

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

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

        public ResourceAccessSpec.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceAccessSpec.Builder>
      • setField

        public ResourceAccessSpec.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceAccessSpec.Builder>
      • clearField

        public ResourceAccessSpec.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceAccessSpec.Builder>
      • clearOneof

        public ResourceAccessSpec.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceAccessSpec.Builder>
      • setRepeatedField

        public ResourceAccessSpec.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           int index,
                                                           Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceAccessSpec.Builder>
      • addRepeatedField

        public ResourceAccessSpec.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceAccessSpec.Builder>
      • mergeFrom

        public ResourceAccessSpec.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<ResourceAccessSpec.Builder>
      • isInitialized

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

        public ResourceAccessSpec.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<ResourceAccessSpec.Builder>
        Throws:
        IOException
      • getReadersList

        public com.google.protobuf.ProtocolStringList getReadersList()
         Optional. The format of strings follows the pattern followed by IAM in the
         bindings. user:{email}, serviceAccount:{email} group:{email}.
         The set of principals to be granted reader role on the resource.
         
        repeated string readers = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getReadersList in interface ResourceAccessSpecOrBuilder
        Returns:
        A list containing the readers.
      • getReadersCount

        public int getReadersCount()
         Optional. The format of strings follows the pattern followed by IAM in the
         bindings. user:{email}, serviceAccount:{email} group:{email}.
         The set of principals to be granted reader role on the resource.
         
        repeated string readers = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getReadersCount in interface ResourceAccessSpecOrBuilder
        Returns:
        The count of readers.
      • getReaders

        public String getReaders​(int index)
         Optional. The format of strings follows the pattern followed by IAM in the
         bindings. user:{email}, serviceAccount:{email} group:{email}.
         The set of principals to be granted reader role on the resource.
         
        repeated string readers = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getReaders in interface ResourceAccessSpecOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The readers at the given index.
      • getReadersBytes

        public com.google.protobuf.ByteString getReadersBytes​(int index)
         Optional. The format of strings follows the pattern followed by IAM in the
         bindings. user:{email}, serviceAccount:{email} group:{email}.
         The set of principals to be granted reader role on the resource.
         
        repeated string readers = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getReadersBytes in interface ResourceAccessSpecOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the readers at the given index.
      • setReaders

        public ResourceAccessSpec.Builder setReaders​(int index,
                                                     String value)
         Optional. The format of strings follows the pattern followed by IAM in the
         bindings. user:{email}, serviceAccount:{email} group:{email}.
         The set of principals to be granted reader role on the resource.
         
        repeated string readers = 1 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        index - The index to set the value at.
        value - The readers to set.
        Returns:
        This builder for chaining.
      • addReaders

        public ResourceAccessSpec.Builder addReaders​(String value)
         Optional. The format of strings follows the pattern followed by IAM in the
         bindings. user:{email}, serviceAccount:{email} group:{email}.
         The set of principals to be granted reader role on the resource.
         
        repeated string readers = 1 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The readers to add.
        Returns:
        This builder for chaining.
      • addAllReaders

        public ResourceAccessSpec.Builder addAllReaders​(Iterable<String> values)
         Optional. The format of strings follows the pattern followed by IAM in the
         bindings. user:{email}, serviceAccount:{email} group:{email}.
         The set of principals to be granted reader role on the resource.
         
        repeated string readers = 1 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        values - The readers to add.
        Returns:
        This builder for chaining.
      • clearReaders

        public ResourceAccessSpec.Builder clearReaders()
         Optional. The format of strings follows the pattern followed by IAM in the
         bindings. user:{email}, serviceAccount:{email} group:{email}.
         The set of principals to be granted reader role on the resource.
         
        repeated string readers = 1 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • addReadersBytes

        public ResourceAccessSpec.Builder addReadersBytes​(com.google.protobuf.ByteString value)
         Optional. The format of strings follows the pattern followed by IAM in the
         bindings. user:{email}, serviceAccount:{email} group:{email}.
         The set of principals to be granted reader role on the resource.
         
        repeated string readers = 1 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes of the readers to add.
        Returns:
        This builder for chaining.
      • getWritersList

        public com.google.protobuf.ProtocolStringList getWritersList()
         Optional. The set of principals to be granted writer role on the resource.
         
        repeated string writers = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getWritersList in interface ResourceAccessSpecOrBuilder
        Returns:
        A list containing the writers.
      • getWritersCount

        public int getWritersCount()
         Optional. The set of principals to be granted writer role on the resource.
         
        repeated string writers = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getWritersCount in interface ResourceAccessSpecOrBuilder
        Returns:
        The count of writers.
      • getWriters

        public String getWriters​(int index)
         Optional. The set of principals to be granted writer role on the resource.
         
        repeated string writers = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getWriters in interface ResourceAccessSpecOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The writers at the given index.
      • getWritersBytes

        public com.google.protobuf.ByteString getWritersBytes​(int index)
         Optional. The set of principals to be granted writer role on the resource.
         
        repeated string writers = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getWritersBytes in interface ResourceAccessSpecOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the writers at the given index.
      • setWriters

        public ResourceAccessSpec.Builder setWriters​(int index,
                                                     String value)
         Optional. The set of principals to be granted writer role on the resource.
         
        repeated string writers = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        index - The index to set the value at.
        value - The writers to set.
        Returns:
        This builder for chaining.
      • addWriters

        public ResourceAccessSpec.Builder addWriters​(String value)
         Optional. The set of principals to be granted writer role on the resource.
         
        repeated string writers = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The writers to add.
        Returns:
        This builder for chaining.
      • addAllWriters

        public ResourceAccessSpec.Builder addAllWriters​(Iterable<String> values)
         Optional. The set of principals to be granted writer role on the resource.
         
        repeated string writers = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        values - The writers to add.
        Returns:
        This builder for chaining.
      • clearWriters

        public ResourceAccessSpec.Builder clearWriters()
         Optional. The set of principals to be granted writer role on the resource.
         
        repeated string writers = 2 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • addWritersBytes

        public ResourceAccessSpec.Builder addWritersBytes​(com.google.protobuf.ByteString value)
         Optional. The set of principals to be granted writer role on the resource.
         
        repeated string writers = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes of the writers to add.
        Returns:
        This builder for chaining.
      • getOwnersList

        public com.google.protobuf.ProtocolStringList getOwnersList()
         Optional. The set of principals to be granted owner role on the resource.
         
        repeated string owners = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getOwnersList in interface ResourceAccessSpecOrBuilder
        Returns:
        A list containing the owners.
      • getOwnersCount

        public int getOwnersCount()
         Optional. The set of principals to be granted owner role on the resource.
         
        repeated string owners = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getOwnersCount in interface ResourceAccessSpecOrBuilder
        Returns:
        The count of owners.
      • getOwners

        public String getOwners​(int index)
         Optional. The set of principals to be granted owner role on the resource.
         
        repeated string owners = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getOwners in interface ResourceAccessSpecOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The owners at the given index.
      • getOwnersBytes

        public com.google.protobuf.ByteString getOwnersBytes​(int index)
         Optional. The set of principals to be granted owner role on the resource.
         
        repeated string owners = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getOwnersBytes in interface ResourceAccessSpecOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the owners at the given index.
      • setOwners

        public ResourceAccessSpec.Builder setOwners​(int index,
                                                    String value)
         Optional. The set of principals to be granted owner role on the resource.
         
        repeated string owners = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        index - The index to set the value at.
        value - The owners to set.
        Returns:
        This builder for chaining.
      • addOwners

        public ResourceAccessSpec.Builder addOwners​(String value)
         Optional. The set of principals to be granted owner role on the resource.
         
        repeated string owners = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The owners to add.
        Returns:
        This builder for chaining.
      • addAllOwners

        public ResourceAccessSpec.Builder addAllOwners​(Iterable<String> values)
         Optional. The set of principals to be granted owner role on the resource.
         
        repeated string owners = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        values - The owners to add.
        Returns:
        This builder for chaining.
      • clearOwners

        public ResourceAccessSpec.Builder clearOwners()
         Optional. The set of principals to be granted owner role on the resource.
         
        repeated string owners = 3 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • addOwnersBytes

        public ResourceAccessSpec.Builder addOwnersBytes​(com.google.protobuf.ByteString value)
         Optional. The set of principals to be granted owner role on the resource.
         
        repeated string owners = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes of the owners to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ResourceAccessSpec.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceAccessSpec.Builder>
      • mergeUnknownFields

        public final ResourceAccessSpec.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceAccessSpec.Builder>