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.v1.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.v1.DataPolicy-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The data masking policy that specifies the data masking rule to use.User-assigned (human readable) ID of the data policy that needs to be unique within a project.Type of data policy.Output only.Policy tag resource name, in the format of `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`.The data masking policy that specifies the data masking rule to use.The data masking policy that specifies the data masking rule to use.The data masking policy that specifies the data masking rule to use.User-assigned (human readable) ID of the data policy that needs to be unique within a project.com.google.protobuf.ByteStringUser-assigned (human readable) ID of the data policy that needs to be unique within a project.Type of data policy.intType of data policy.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()Output only.com.google.protobuf.ByteStringOutput only.Policy tag resource name, in the format of `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`.com.google.protobuf.ByteStringPolicy tag resource name, in the format of `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`.booleanThe data masking policy that specifies the data masking rule to use.booleanPolicy tag resource name, in the format of `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanThe data masking policy that specifies the data masking rule to use.mergeFrom(DataPolicy other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The data masking policy that specifies the data masking rule to use.setDataMaskingPolicy(DataMaskingPolicy.Builder builderForValue) The data masking policy that specifies the data masking rule to use.setDataPolicyId(String value) User-assigned (human readable) ID of the data policy that needs to be unique within a project.setDataPolicyIdBytes(com.google.protobuf.ByteString value) User-assigned (human readable) ID of the data policy that needs to be unique within a project.Type of data policy.setDataPolicyTypeValue(int value) Type of data policy.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setPolicyTag(String value) Policy tag resource name, in the format of `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`.setPolicyTagBytes(com.google.protobuf.ByteString value) Policy tag resource name, in the format of `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`.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
-
getMatchingLabelCase
- Specified by:
getMatchingLabelCasein interfaceDataPolicyOrBuilder
-
clearMatchingLabel
-
getPolicyCase
- Specified by:
getPolicyCasein interfaceDataPolicyOrBuilder
-
clearPolicy
-
hasPolicyTag
public boolean hasPolicyTag()Policy tag resource name, in the format of `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`.string policy_tag = 4;- Specified by:
hasPolicyTagin interfaceDataPolicyOrBuilder- Returns:
- Whether the policyTag field is set.
-
getPolicyTag
Policy tag resource name, in the format of `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`.string policy_tag = 4;- Specified by:
getPolicyTagin interfaceDataPolicyOrBuilder- Returns:
- The policyTag.
-
getPolicyTagBytes
public com.google.protobuf.ByteString getPolicyTagBytes()Policy tag resource name, in the format of `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`.string policy_tag = 4;- Specified by:
getPolicyTagBytesin interfaceDataPolicyOrBuilder- Returns:
- The bytes for policyTag.
-
setPolicyTag
Policy tag resource name, in the format of `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`.string policy_tag = 4;- Parameters:
value- The policyTag to set.- Returns:
- This builder for chaining.
-
clearPolicyTag
Policy tag resource name, in the format of `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`.string policy_tag = 4;- Returns:
- This builder for chaining.
-
setPolicyTagBytes
Policy tag resource name, in the format of `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`.string policy_tag = 4;- Parameters:
value- The bytes for policyTag to set.- Returns:
- This builder for chaining.
-
hasDataMaskingPolicy
public boolean hasDataMaskingPolicy()The data masking policy that specifies the data masking rule to use.
.google.cloud.bigquery.datapolicies.v1.DataMaskingPolicy data_masking_policy = 5;- Specified by:
hasDataMaskingPolicyin interfaceDataPolicyOrBuilder- Returns:
- Whether the dataMaskingPolicy field is set.
-
getDataMaskingPolicy
The data masking policy that specifies the data masking rule to use.
.google.cloud.bigquery.datapolicies.v1.DataMaskingPolicy data_masking_policy = 5;- Specified by:
getDataMaskingPolicyin interfaceDataPolicyOrBuilder- Returns:
- The dataMaskingPolicy.
-
setDataMaskingPolicy
The data masking policy that specifies the data masking rule to use.
.google.cloud.bigquery.datapolicies.v1.DataMaskingPolicy data_masking_policy = 5; -
setDataMaskingPolicy
The data masking policy that specifies the data masking rule to use.
.google.cloud.bigquery.datapolicies.v1.DataMaskingPolicy data_masking_policy = 5; -
mergeDataMaskingPolicy
The data masking policy that specifies the data masking rule to use.
.google.cloud.bigquery.datapolicies.v1.DataMaskingPolicy data_masking_policy = 5; -
clearDataMaskingPolicy
The data masking policy that specifies the data masking rule to use.
.google.cloud.bigquery.datapolicies.v1.DataMaskingPolicy data_masking_policy = 5; -
getDataMaskingPolicyBuilder
The data masking policy that specifies the data masking rule to use.
.google.cloud.bigquery.datapolicies.v1.DataMaskingPolicy data_masking_policy = 5; -
getDataMaskingPolicyOrBuilder
The data masking policy that specifies the data masking rule to use.
.google.cloud.bigquery.datapolicies.v1.DataMaskingPolicy data_masking_policy = 5;- Specified by:
getDataMaskingPolicyOrBuilderin interfaceDataPolicyOrBuilder
-
getName
Output only. 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) = OUTPUT_ONLY];- Specified by:
getNamein interfaceDataPolicyOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Output only. 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) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceDataPolicyOrBuilder- Returns:
- The bytes for name.
-
setName
Output only. 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) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Output only. 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) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
Output only. 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) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDataPolicyTypeValue
public int getDataPolicyTypeValue()Type of data policy.
.google.cloud.bigquery.datapolicies.v1.DataPolicy.DataPolicyType data_policy_type = 2;- Specified by:
getDataPolicyTypeValuein interfaceDataPolicyOrBuilder- Returns:
- The enum numeric value on the wire for dataPolicyType.
-
setDataPolicyTypeValue
Type of data policy.
.google.cloud.bigquery.datapolicies.v1.DataPolicy.DataPolicyType data_policy_type = 2;- Parameters:
value- The enum numeric value on the wire for dataPolicyType to set.- Returns:
- This builder for chaining.
-
getDataPolicyType
Type of data policy.
.google.cloud.bigquery.datapolicies.v1.DataPolicy.DataPolicyType data_policy_type = 2;- Specified by:
getDataPolicyTypein interfaceDataPolicyOrBuilder- Returns:
- The dataPolicyType.
-
setDataPolicyType
Type of data policy.
.google.cloud.bigquery.datapolicies.v1.DataPolicy.DataPolicyType data_policy_type = 2;- Parameters:
value- The dataPolicyType to set.- Returns:
- This builder for chaining.
-
clearDataPolicyType
Type of data policy.
.google.cloud.bigquery.datapolicies.v1.DataPolicy.DataPolicyType data_policy_type = 2;- Returns:
- This builder for chaining.
-
getDataPolicyId
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 = 3;- Specified by:
getDataPolicyIdin interfaceDataPolicyOrBuilder- Returns:
- The dataPolicyId.
-
getDataPolicyIdBytes
public com.google.protobuf.ByteString getDataPolicyIdBytes()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 = 3;- Specified by:
getDataPolicyIdBytesin interfaceDataPolicyOrBuilder- Returns:
- The bytes for dataPolicyId.
-
setDataPolicyId
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 = 3;- Parameters:
value- The dataPolicyId to set.- Returns:
- This builder for chaining.
-
clearDataPolicyId
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 = 3;- Returns:
- This builder for chaining.
-
setDataPolicyIdBytes
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 = 3;- Parameters:
value- The bytes for dataPolicyId to set.- Returns:
- This builder for chaining.
-