Class DataPolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DataPolicy.Builder>
com.google.cloud.bigquery.datapolicies.v2.DataPolicy.Builder
- All Implemented Interfaces:
DataPolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DataPolicy
public static final class DataPolicy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DataPolicy.Builder>
implements DataPolicyOrBuilder
Represents the label-policy binding.Protobuf type
google.cloud.bigquery.datapolicies.v2.DataPolicy-
Method Summary
Modifier and TypeMethodDescriptionaddAllGrantees(Iterable<String> values) Optional.addGrantees(String value) Optional.addGranteesBytes(com.google.protobuf.ByteString value) Optional.build()clear()Optional.Output only.Required.The etag for this Data Policy.Optional.Identifier.Output only.Output only.Optional.Optional.Optional.Output only.com.google.protobuf.ByteStringOutput only.Required.intRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEtag()The etag for this Data Policy.com.google.protobuf.ByteStringThe etag for this Data Policy.getGrantees(int index) Optional.com.google.protobuf.ByteStringgetGranteesBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.getName()Identifier.com.google.protobuf.ByteStringIdentifier.Output only.com.google.protobuf.ByteStringOutput only.Output only.intOutput only.booleanOptional.booleanhasEtag()The etag for this Data Policy.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOptional.mergeFrom(DataPolicy other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.setDataMaskingPolicy(DataMaskingPolicy.Builder builderForValue) Optional.setDataPolicyId(String value) Output only.setDataPolicyIdBytes(com.google.protobuf.ByteString value) Output only.Required.setDataPolicyTypeValue(int value) Required.The etag for this Data Policy.setEtagBytes(com.google.protobuf.ByteString value) The etag for this Data Policy.setGrantees(int index, String value) Optional.Identifier.setNameBytes(com.google.protobuf.ByteString value) Identifier.setPolicyTag(String value) Output only.setPolicyTagBytes(com.google.protobuf.ByteString value) Output only.setVersion(DataPolicy.Version value) Output only.setVersionValue(int value) Output only.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<DataPolicy.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<DataPolicy.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<DataPolicy.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<DataPolicy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DataPolicy.Builder>
-
mergeFrom
public DataPolicy.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<DataPolicy.Builder>- Throws:
IOException
-
getPolicyCase
- Specified by:
getPolicyCasein interfaceDataPolicyOrBuilder
-
clearPolicy
-
hasDataMaskingPolicy
public boolean hasDataMaskingPolicy()Optional. The data masking policy that specifies the data masking rule to use. It must be set if the data policy type is DATA_MASKING_POLICY.
.google.cloud.bigquery.datapolicies.v2.DataMaskingPolicy data_masking_policy = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasDataMaskingPolicyin interfaceDataPolicyOrBuilder- Returns:
- Whether the dataMaskingPolicy field is set.
-
getDataMaskingPolicy
Optional. The data masking policy that specifies the data masking rule to use. It must be set if the data policy type is DATA_MASKING_POLICY.
.google.cloud.bigquery.datapolicies.v2.DataMaskingPolicy data_masking_policy = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDataMaskingPolicyin interfaceDataPolicyOrBuilder- Returns:
- The dataMaskingPolicy.
-
setDataMaskingPolicy
Optional. The data masking policy that specifies the data masking rule to use. It must be set if the data policy type is DATA_MASKING_POLICY.
.google.cloud.bigquery.datapolicies.v2.DataMaskingPolicy data_masking_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; -
setDataMaskingPolicy
Optional. The data masking policy that specifies the data masking rule to use. It must be set if the data policy type is DATA_MASKING_POLICY.
.google.cloud.bigquery.datapolicies.v2.DataMaskingPolicy data_masking_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; -
mergeDataMaskingPolicy
Optional. The data masking policy that specifies the data masking rule to use. It must be set if the data policy type is DATA_MASKING_POLICY.
.google.cloud.bigquery.datapolicies.v2.DataMaskingPolicy data_masking_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; -
clearDataMaskingPolicy
Optional. The data masking policy that specifies the data masking rule to use. It must be set if the data policy type is DATA_MASKING_POLICY.
.google.cloud.bigquery.datapolicies.v2.DataMaskingPolicy data_masking_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; -
getDataMaskingPolicyBuilder
Optional. The data masking policy that specifies the data masking rule to use. It must be set if the data policy type is DATA_MASKING_POLICY.
.google.cloud.bigquery.datapolicies.v2.DataMaskingPolicy data_masking_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; -
getDataMaskingPolicyOrBuilder
Optional. The data masking policy that specifies the data masking rule to use. It must be set if the data policy type is DATA_MASKING_POLICY.
.google.cloud.bigquery.datapolicies.v2.DataMaskingPolicy data_masking_policy = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDataMaskingPolicyOrBuilderin interfaceDataPolicyOrBuilder
-
getName
Identifier. Resource name of this data policy, in the format of `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNamein interfaceDataPolicyOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Identifier. Resource name of this data policy, in the format of `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNameBytesin interfaceDataPolicyOrBuilder- Returns:
- The bytes for name.
-
setName
Identifier. Resource name of this data policy, in the format of `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Identifier. Resource name of this data policy, in the format of `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Returns:
- This builder for chaining.
-
setNameBytes
Identifier. Resource name of this data policy, in the format of `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDataPolicyId
Output only. User-assigned (human readable) ID of the data policy that needs to be unique within a project. Used as {data_policy_id} in part of the resource name.string data_policy_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDataPolicyIdin interfaceDataPolicyOrBuilder- Returns:
- The dataPolicyId.
-
getDataPolicyIdBytes
public com.google.protobuf.ByteString getDataPolicyIdBytes()Output only. User-assigned (human readable) ID of the data policy that needs to be unique within a project. Used as {data_policy_id} in part of the resource name.string data_policy_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDataPolicyIdBytesin interfaceDataPolicyOrBuilder- Returns:
- The bytes for dataPolicyId.
-
setDataPolicyId
Output only. User-assigned (human readable) ID of the data policy that needs to be unique within a project. Used as {data_policy_id} in part of the resource name.string data_policy_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The dataPolicyId to set.- Returns:
- This builder for chaining.
-
clearDataPolicyId
Output only. User-assigned (human readable) ID of the data policy that needs to be unique within a project. Used as {data_policy_id} in part of the resource name.string data_policy_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setDataPolicyIdBytes
Output only. User-assigned (human readable) ID of the data policy that needs to be unique within a project. Used as {data_policy_id} in part of the resource name.string data_policy_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for dataPolicyId to set.- Returns:
- This builder for chaining.
-
hasEtag
public boolean hasEtag()The etag for this Data Policy. This field is used for UpdateDataPolicy calls. If Data Policy exists, this field is required and must match the server's etag. It will also be populated in the response of GetDataPolicy, CreateDataPolicy, and UpdateDataPolicy calls.
optional string etag = 11;- Specified by:
hasEtagin interfaceDataPolicyOrBuilder- Returns:
- Whether the etag field is set.
-
getEtag
The etag for this Data Policy. This field is used for UpdateDataPolicy calls. If Data Policy exists, this field is required and must match the server's etag. It will also be populated in the response of GetDataPolicy, CreateDataPolicy, and UpdateDataPolicy calls.
optional string etag = 11;- Specified by:
getEtagin interfaceDataPolicyOrBuilder- Returns:
- The etag.
-
getEtagBytes
public com.google.protobuf.ByteString getEtagBytes()The etag for this Data Policy. This field is used for UpdateDataPolicy calls. If Data Policy exists, this field is required and must match the server's etag. It will also be populated in the response of GetDataPolicy, CreateDataPolicy, and UpdateDataPolicy calls.
optional string etag = 11;- Specified by:
getEtagBytesin interfaceDataPolicyOrBuilder- Returns:
- The bytes for etag.
-
setEtag
The etag for this Data Policy. This field is used for UpdateDataPolicy calls. If Data Policy exists, this field is required and must match the server's etag. It will also be populated in the response of GetDataPolicy, CreateDataPolicy, and UpdateDataPolicy calls.
optional string etag = 11;- Parameters:
value- The etag to set.- Returns:
- This builder for chaining.
-
clearEtag
The etag for this Data Policy. This field is used for UpdateDataPolicy calls. If Data Policy exists, this field is required and must match the server's etag. It will also be populated in the response of GetDataPolicy, CreateDataPolicy, and UpdateDataPolicy calls.
optional string etag = 11;- Returns:
- This builder for chaining.
-
setEtagBytes
The etag for this Data Policy. This field is used for UpdateDataPolicy calls. If Data Policy exists, this field is required and must match the server's etag. It will also be populated in the response of GetDataPolicy, CreateDataPolicy, and UpdateDataPolicy calls.
optional string etag = 11;- Parameters:
value- The bytes for etag to set.- Returns:
- This builder for chaining.
-
getDataPolicyTypeValue
public int getDataPolicyTypeValue()Required. Type of data policy.
.google.cloud.bigquery.datapolicies.v2.DataPolicy.DataPolicyType data_policy_type = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDataPolicyTypeValuein interfaceDataPolicyOrBuilder- Returns:
- The enum numeric value on the wire for dataPolicyType.
-
setDataPolicyTypeValue
Required. Type of data policy.
.google.cloud.bigquery.datapolicies.v2.DataPolicy.DataPolicyType data_policy_type = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The enum numeric value on the wire for dataPolicyType to set.- Returns:
- This builder for chaining.
-
getDataPolicyType
Required. Type of data policy.
.google.cloud.bigquery.datapolicies.v2.DataPolicy.DataPolicyType data_policy_type = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDataPolicyTypein interfaceDataPolicyOrBuilder- Returns:
- The dataPolicyType.
-
setDataPolicyType
Required. Type of data policy.
.google.cloud.bigquery.datapolicies.v2.DataPolicy.DataPolicyType data_policy_type = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The dataPolicyType to set.- Returns:
- This builder for chaining.
-
clearDataPolicyType
Required. Type of data policy.
.google.cloud.bigquery.datapolicies.v2.DataPolicy.DataPolicyType data_policy_type = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getPolicyTag
Output only. Policy tag resource name, in the format of `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`. policy_tag is supported only for V1 data policies.string policy_tag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getPolicyTagin interfaceDataPolicyOrBuilder- Returns:
- The policyTag.
-
getPolicyTagBytes
public com.google.protobuf.ByteString getPolicyTagBytes()Output only. Policy tag resource name, in the format of `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`. policy_tag is supported only for V1 data policies.string policy_tag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getPolicyTagBytesin interfaceDataPolicyOrBuilder- Returns:
- The bytes for policyTag.
-
setPolicyTag
Output only. Policy tag resource name, in the format of `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`. policy_tag is supported only for V1 data policies.string policy_tag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The policyTag to set.- Returns:
- This builder for chaining.
-
clearPolicyTag
Output only. Policy tag resource name, in the format of `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`. policy_tag is supported only for V1 data policies.string policy_tag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setPolicyTagBytes
Output only. Policy tag resource name, in the format of `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`. policy_tag is supported only for V1 data policies.string policy_tag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for policyTag to set.- Returns:
- This builder for chaining.
-
getGranteesList
public com.google.protobuf.ProtocolStringList getGranteesList()Optional. The list of IAM principals that have Fine Grained Access to the underlying data goverened by this data policy. Uses the [IAM V2 principal syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2) Only supports principal types users, groups, serviceaccounts, cloudidentity. This field is supported in V2 Data Policy only. In case of V1 data policies (i.e. verion = 1 and policy_tag is set), this field is not populated.
repeated string grantees = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGranteesListin interfaceDataPolicyOrBuilder- Returns:
- A list containing the grantees.
-
getGranteesCount
public int getGranteesCount()Optional. The list of IAM principals that have Fine Grained Access to the underlying data goverened by this data policy. Uses the [IAM V2 principal syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2) Only supports principal types users, groups, serviceaccounts, cloudidentity. This field is supported in V2 Data Policy only. In case of V1 data policies (i.e. verion = 1 and policy_tag is set), this field is not populated.
repeated string grantees = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGranteesCountin interfaceDataPolicyOrBuilder- Returns:
- The count of grantees.
-
getGrantees
Optional. The list of IAM principals that have Fine Grained Access to the underlying data goverened by this data policy. Uses the [IAM V2 principal syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2) Only supports principal types users, groups, serviceaccounts, cloudidentity. This field is supported in V2 Data Policy only. In case of V1 data policies (i.e. verion = 1 and policy_tag is set), this field is not populated.
repeated string grantees = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGranteesin interfaceDataPolicyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The grantees at the given index.
-
getGranteesBytes
public com.google.protobuf.ByteString getGranteesBytes(int index) Optional. The list of IAM principals that have Fine Grained Access to the underlying data goverened by this data policy. Uses the [IAM V2 principal syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2) Only supports principal types users, groups, serviceaccounts, cloudidentity. This field is supported in V2 Data Policy only. In case of V1 data policies (i.e. verion = 1 and policy_tag is set), this field is not populated.
repeated string grantees = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGranteesBytesin interfaceDataPolicyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the grantees at the given index.
-
setGrantees
Optional. The list of IAM principals that have Fine Grained Access to the underlying data goverened by this data policy. Uses the [IAM V2 principal syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2) Only supports principal types users, groups, serviceaccounts, cloudidentity. This field is supported in V2 Data Policy only. In case of V1 data policies (i.e. verion = 1 and policy_tag is set), this field is not populated.
repeated string grantees = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The grantees to set.- Returns:
- This builder for chaining.
-
addGrantees
Optional. The list of IAM principals that have Fine Grained Access to the underlying data goverened by this data policy. Uses the [IAM V2 principal syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2) Only supports principal types users, groups, serviceaccounts, cloudidentity. This field is supported in V2 Data Policy only. In case of V1 data policies (i.e. verion = 1 and policy_tag is set), this field is not populated.
repeated string grantees = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The grantees to add.- Returns:
- This builder for chaining.
-
addAllGrantees
Optional. The list of IAM principals that have Fine Grained Access to the underlying data goverened by this data policy. Uses the [IAM V2 principal syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2) Only supports principal types users, groups, serviceaccounts, cloudidentity. This field is supported in V2 Data Policy only. In case of V1 data policies (i.e. verion = 1 and policy_tag is set), this field is not populated.
repeated string grantees = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The grantees to add.- Returns:
- This builder for chaining.
-
clearGrantees
Optional. The list of IAM principals that have Fine Grained Access to the underlying data goverened by this data policy. Uses the [IAM V2 principal syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2) Only supports principal types users, groups, serviceaccounts, cloudidentity. This field is supported in V2 Data Policy only. In case of V1 data policies (i.e. verion = 1 and policy_tag is set), this field is not populated.
repeated string grantees = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addGranteesBytes
Optional. The list of IAM principals that have Fine Grained Access to the underlying data goverened by this data policy. Uses the [IAM V2 principal syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2) Only supports principal types users, groups, serviceaccounts, cloudidentity. This field is supported in V2 Data Policy only. In case of V1 data policies (i.e. verion = 1 and policy_tag is set), this field is not populated.
repeated string grantees = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the grantees to add.- Returns:
- This builder for chaining.
-
getVersionValue
public int getVersionValue()Output only. The version of the Data Policy resource.
.google.cloud.bigquery.datapolicies.v2.DataPolicy.Version version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVersionValuein interfaceDataPolicyOrBuilder- Returns:
- The enum numeric value on the wire for version.
-
setVersionValue
Output only. The version of the Data Policy resource.
.google.cloud.bigquery.datapolicies.v2.DataPolicy.Version version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for version to set.- Returns:
- This builder for chaining.
-
getVersion
Output only. The version of the Data Policy resource.
.google.cloud.bigquery.datapolicies.v2.DataPolicy.Version version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVersionin interfaceDataPolicyOrBuilder- Returns:
- The version.
-
setVersion
Output only. The version of the Data Policy resource.
.google.cloud.bigquery.datapolicies.v2.DataPolicy.Version version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
Output only. The version of the Data Policy resource.
.google.cloud.bigquery.datapolicies.v2.DataPolicy.Version version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-