Package com.google.cloud.dataplex.v1
Class ResourceAccessSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ResourceAccessSpec.Builder>
com.google.cloud.dataplex.v1.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.GeneratedMessage.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 Summary
Modifier and TypeMethodDescriptionaddAllOwners(Iterable<String> values) Optional.addAllReaders(Iterable<String> values) Optional.addAllWriters(Iterable<String> values) Optional.Optional.addOwnersBytes(com.google.protobuf.ByteString value) Optional.addReaders(String value) Optional.addReadersBytes(com.google.protobuf.ByteString value) Optional.addWriters(String value) Optional.addWritersBytes(com.google.protobuf.ByteString value) Optional.build()clear()Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetOwners(int index) Optional.com.google.protobuf.ByteStringgetOwnersBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.getReaders(int index) Optional.com.google.protobuf.ByteStringgetReadersBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.getWriters(int index) Optional.com.google.protobuf.ByteStringgetWritersBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ResourceAccessSpec other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.setReaders(int index, String value) Optional.setWriters(int index, String value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ResourceAccessSpec.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ResourceAccessSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ResourceAccessSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ResourceAccessSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ResourceAccessSpec.Builder>
-
mergeFrom
public ResourceAccessSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getReadersListin interfaceResourceAccessSpecOrBuilder- 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:
getReadersCountin interfaceResourceAccessSpecOrBuilder- Returns:
- The count of readers.
-
getReaders
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:
getReadersin interfaceResourceAccessSpecOrBuilder- 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:
getReadersBytesin interfaceResourceAccessSpecOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the readers at the given index.
-
setReaders
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
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
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
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
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:
getWritersListin interfaceResourceAccessSpecOrBuilder- 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:
getWritersCountin interfaceResourceAccessSpecOrBuilder- Returns:
- The count of writers.
-
getWriters
Optional. The set of principals to be granted writer role on the resource.
repeated string writers = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getWritersin interfaceResourceAccessSpecOrBuilder- 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:
getWritersBytesin interfaceResourceAccessSpecOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the writers at the given index.
-
setWriters
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
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
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
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
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:
getOwnersListin interfaceResourceAccessSpecOrBuilder- 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:
getOwnersCountin interfaceResourceAccessSpecOrBuilder- Returns:
- The count of owners.
-
getOwners
Optional. The set of principals to be granted owner role on the resource.
repeated string owners = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOwnersin interfaceResourceAccessSpecOrBuilder- 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:
getOwnersBytesin interfaceResourceAccessSpecOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the owners at the given index.
-
setOwners
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
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
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
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
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.
-