- 1.53.0 (latest)
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.2
- 1.0.1
- 0.2.2
public static final class ResourceAccessSpec.Builder extends 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ResourceAccessSpec.BuilderImplements
ResourceAccessSpecOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllOwners(Iterable<String> values)
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];
Parameter | |
---|---|
Name | Description |
values | Iterable<String> The owners to add. |
Returns | |
---|---|
Type | Description |
ResourceAccessSpec.Builder | This builder for chaining. |
addAllReaders(Iterable<String> values)
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];
Parameter | |
---|---|
Name | Description |
values | Iterable<String> The readers to add. |
Returns | |
---|---|
Type | Description |
ResourceAccessSpec.Builder | This builder for chaining. |
addAllWriters(Iterable<String> values)
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];
Parameter | |
---|---|
Name | Description |
values | Iterable<String> The writers to add. |
Returns | |
---|---|
Type | Description |
ResourceAccessSpec.Builder | This builder for chaining. |
addOwners(String value)
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];
Parameter | |
---|---|
Name | Description |
value | String The owners to add. |
Returns | |
---|---|
Type | Description |
ResourceAccessSpec.Builder | This builder for chaining. |
addOwnersBytes(ByteString value)
public ResourceAccessSpec.Builder addOwnersBytes(ByteString value)
Optional. The set of principals to be granted owner role on the resource.
repeated string owners = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes of the owners to add. |
Returns | |
---|---|
Type | Description |
ResourceAccessSpec.Builder | This builder for chaining. |
addReaders(String value)
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];
Parameter | |
---|---|
Name | Description |
value | String The readers to add. |
Returns | |
---|---|
Type | Description |
ResourceAccessSpec.Builder | This builder for chaining. |
addReadersBytes(ByteString value)
public ResourceAccessSpec.Builder addReadersBytes(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];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes of the readers to add. |
Returns | |
---|---|
Type | Description |
ResourceAccessSpec.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ResourceAccessSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
ResourceAccessSpec.Builder |
addWriters(String value)
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];
Parameter | |
---|---|
Name | Description |
value | String The writers to add. |
Returns | |
---|---|
Type | Description |
ResourceAccessSpec.Builder | This builder for chaining. |
addWritersBytes(ByteString value)
public ResourceAccessSpec.Builder addWritersBytes(ByteString value)
Optional. The set of principals to be granted writer role on the resource.
repeated string writers = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes of the writers to add. |
Returns | |
---|---|
Type | Description |
ResourceAccessSpec.Builder | This builder for chaining. |
build()
public ResourceAccessSpec build()
Returns | |
---|---|
Type | Description |
ResourceAccessSpec |
buildPartial()
public ResourceAccessSpec buildPartial()
Returns | |
---|---|
Type | Description |
ResourceAccessSpec |
clear()
public ResourceAccessSpec.Builder clear()
Returns | |
---|---|
Type | Description |
ResourceAccessSpec.Builder |
clearField(Descriptors.FieldDescriptor field)
public ResourceAccessSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
ResourceAccessSpec.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ResourceAccessSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
ResourceAccessSpec.Builder |
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 | |
---|---|
Type | Description |
ResourceAccessSpec.Builder | 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 | |
---|---|
Type | Description |
ResourceAccessSpec.Builder | 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 | |
---|---|
Type | Description |
ResourceAccessSpec.Builder | This builder for chaining. |
clone()
public ResourceAccessSpec.Builder clone()
Returns | |
---|---|
Type | Description |
ResourceAccessSpec.Builder |
getDefaultInstanceForType()
public ResourceAccessSpec getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ResourceAccessSpec |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getOwners(int index)
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];
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String | The owners at the given index. |
getOwnersBytes(int index)
public 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];
Parameter | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString | The bytes of the owners at the given index. |
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];
Returns | |
---|---|
Type | Description |
int | The count of owners. |
getOwnersList()
public ProtocolStringList getOwnersList()
Optional. The set of principals to be granted owner role on the resource.
repeated string owners = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ProtocolStringList | A list containing the owners. |
getReaders(int index)
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];
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String | The readers at the given index. |
getReadersBytes(int index)
public 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];
Parameter | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString | The bytes of the readers at the given index. |
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];
Returns | |
---|---|
Type | Description |
int | The count of readers. |
getReadersList()
public 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];
Returns | |
---|---|
Type | Description |
ProtocolStringList | A list containing the readers. |
getWriters(int index)
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];
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String | The writers at the given index. |
getWritersBytes(int index)
public 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];
Parameter | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString | The bytes of the writers at the given index. |
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];
Returns | |
---|---|
Type | Description |
int | The count of writers. |
getWritersList()
public ProtocolStringList getWritersList()
Optional. The set of principals to be granted writer role on the resource.
repeated string writers = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ProtocolStringList | A list containing the writers. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(ResourceAccessSpec other)
public ResourceAccessSpec.Builder mergeFrom(ResourceAccessSpec other)
Parameter | |
---|---|
Name | Description |
other | ResourceAccessSpec |
Returns | |
---|---|
Type | Description |
ResourceAccessSpec.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ResourceAccessSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ResourceAccessSpec.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ResourceAccessSpec.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
ResourceAccessSpec.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ResourceAccessSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ResourceAccessSpec.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ResourceAccessSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
ResourceAccessSpec.Builder |
setOwners(int index, String value)
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 | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The owners to set. |
Returns | |
---|---|
Type | Description |
ResourceAccessSpec.Builder | This builder for chaining. |
setReaders(int index, String value)
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 | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The readers to set. |
Returns | |
---|---|
Type | Description |
ResourceAccessSpec.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ResourceAccessSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
ResourceAccessSpec.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ResourceAccessSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ResourceAccessSpec.Builder |
setWriters(int index, String value)
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 | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The writers to set. |
Returns | |
---|---|
Type | Description |
ResourceAccessSpec.Builder | This builder for chaining. |