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.GeneratedMessageV3.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.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 typegoogle.cloud.dataplex.v1.ResourceAccessSpec
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceAccessSpec.BuilderaddAllOwners(Iterable<String> values)Optional.ResourceAccessSpec.BuilderaddAllReaders(Iterable<String> values)Optional.ResourceAccessSpec.BuilderaddAllWriters(Iterable<String> values)Optional.ResourceAccessSpec.BuilderaddOwners(String value)Optional.ResourceAccessSpec.BuilderaddOwnersBytes(com.google.protobuf.ByteString value)Optional.ResourceAccessSpec.BuilderaddReaders(String value)Optional.ResourceAccessSpec.BuilderaddReadersBytes(com.google.protobuf.ByteString value)Optional.ResourceAccessSpec.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ResourceAccessSpec.BuilderaddWriters(String value)Optional.ResourceAccessSpec.BuilderaddWritersBytes(com.google.protobuf.ByteString value)Optional.ResourceAccessSpecbuild()ResourceAccessSpecbuildPartial()ResourceAccessSpec.Builderclear()ResourceAccessSpec.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ResourceAccessSpec.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ResourceAccessSpec.BuilderclearOwners()Optional.ResourceAccessSpec.BuilderclearReaders()Optional.ResourceAccessSpec.BuilderclearWriters()Optional.ResourceAccessSpec.Builderclone()ResourceAccessSpecgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetOwners(int index)Optional.com.google.protobuf.ByteStringgetOwnersBytes(int index)Optional.intgetOwnersCount()Optional.com.google.protobuf.ProtocolStringListgetOwnersList()Optional.StringgetReaders(int index)Optional.com.google.protobuf.ByteStringgetReadersBytes(int index)Optional.intgetReadersCount()Optional.com.google.protobuf.ProtocolStringListgetReadersList()Optional.StringgetWriters(int index)Optional.com.google.protobuf.ByteStringgetWritersBytes(int index)Optional.intgetWritersCount()Optional.com.google.protobuf.ProtocolStringListgetWritersList()Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ResourceAccessSpec.BuildermergeFrom(ResourceAccessSpec other)ResourceAccessSpec.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ResourceAccessSpec.BuildermergeFrom(com.google.protobuf.Message other)ResourceAccessSpec.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ResourceAccessSpec.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ResourceAccessSpec.BuildersetOwners(int index, String value)Optional.ResourceAccessSpec.BuildersetReaders(int index, String value)Optional.ResourceAccessSpec.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ResourceAccessSpec.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ResourceAccessSpec.BuildersetWriters(int index, String value)Optional.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceAccessSpec.Builder>
-
clear
public ResourceAccessSpec.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<ResourceAccessSpec.Builder>
-
getDefaultInstanceForType
public ResourceAccessSpec getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ResourceAccessSpec build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ResourceAccessSpec buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ResourceAccessSpec.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceAccessSpec.Builder>
-
setField
public ResourceAccessSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceAccessSpec.Builder>
-
clearField
public ResourceAccessSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceAccessSpec.Builder>
-
clearOneof
public ResourceAccessSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceAccessSpec.Builder>
-
setRepeatedField
public ResourceAccessSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceAccessSpec.Builder>
-
addRepeatedField
public ResourceAccessSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceAccessSpec.Builder>
-
mergeFrom
public ResourceAccessSpec.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ResourceAccessSpec.Builder>
-
mergeFrom
public ResourceAccessSpec.Builder mergeFrom(ResourceAccessSpec other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
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
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:
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
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:
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
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:
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
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:
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
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:
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceAccessSpec.Builder>
-
mergeUnknownFields
public final ResourceAccessSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceAccessSpec.Builder>
-
-