Class UpdateDataPolicyRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UpdateDataPolicyRequest.Builder>
com.google.cloud.bigquery.datapolicies.v2.UpdateDataPolicyRequest.Builder
- All Implemented Interfaces:
UpdateDataPolicyRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- UpdateDataPolicyRequest
public static final class UpdateDataPolicyRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<UpdateDataPolicyRequest.Builder>
implements UpdateDataPolicyRequestOrBuilder
Request message for the UpdateDataPolicy method.Protobuf type
google.cloud.bigquery.datapolicies.v2.UpdateDataPolicyRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Required.Optional.booleanOptional.Required.Required.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.FieldMaskOptional.com.google.protobuf.FieldMask.BuilderOptional.com.google.protobuf.FieldMaskOrBuilderOptional.booleanRequired.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeDataPolicy(DataPolicy value) Required.mergeFrom(UpdateDataPolicyRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUpdateMask(com.google.protobuf.FieldMask value) Optional.setAllowMissing(boolean value) Optional.setDataPolicy(DataPolicy value) Required.setDataPolicy(DataPolicy.Builder builderForValue) Required.setUpdateMask(com.google.protobuf.FieldMask value) Optional.setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) 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<UpdateDataPolicyRequest.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<UpdateDataPolicyRequest.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<UpdateDataPolicyRequest.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<UpdateDataPolicyRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<UpdateDataPolicyRequest.Builder>
-
mergeFrom
public UpdateDataPolicyRequest.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<UpdateDataPolicyRequest.Builder>- Throws:
IOException
-
hasDataPolicy
public boolean hasDataPolicy()Required. Update the data policy's metadata. The target data policy is determined by the `name` field. Other fields are updated to the specified values based on the field masks.
.google.cloud.bigquery.datapolicies.v2.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasDataPolicyin interfaceUpdateDataPolicyRequestOrBuilder- Returns:
- Whether the dataPolicy field is set.
-
getDataPolicy
Required. Update the data policy's metadata. The target data policy is determined by the `name` field. Other fields are updated to the specified values based on the field masks.
.google.cloud.bigquery.datapolicies.v2.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDataPolicyin interfaceUpdateDataPolicyRequestOrBuilder- Returns:
- The dataPolicy.
-
setDataPolicy
Required. Update the data policy's metadata. The target data policy is determined by the `name` field. Other fields are updated to the specified values based on the field masks.
.google.cloud.bigquery.datapolicies.v2.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED]; -
setDataPolicy
Required. Update the data policy's metadata. The target data policy is determined by the `name` field. Other fields are updated to the specified values based on the field masks.
.google.cloud.bigquery.datapolicies.v2.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED]; -
mergeDataPolicy
Required. Update the data policy's metadata. The target data policy is determined by the `name` field. Other fields are updated to the specified values based on the field masks.
.google.cloud.bigquery.datapolicies.v2.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED]; -
clearDataPolicy
Required. Update the data policy's metadata. The target data policy is determined by the `name` field. Other fields are updated to the specified values based on the field masks.
.google.cloud.bigquery.datapolicies.v2.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED]; -
getDataPolicyBuilder
Required. Update the data policy's metadata. The target data policy is determined by the `name` field. Other fields are updated to the specified values based on the field masks.
.google.cloud.bigquery.datapolicies.v2.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED]; -
getDataPolicyOrBuilder
Required. Update the data policy's metadata. The target data policy is determined by the `name` field. Other fields are updated to the specified values based on the field masks.
.google.cloud.bigquery.datapolicies.v2.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDataPolicyOrBuilderin interfaceUpdateDataPolicyRequestOrBuilder
-
hasUpdateMask
public boolean hasUpdateMask()Optional. The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update. Updates to the `name` and `dataPolicyId` fields are not allowed.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasUpdateMaskin interfaceUpdateDataPolicyRequestOrBuilder- Returns:
- Whether the updateMask field is set.
-
getUpdateMask
public com.google.protobuf.FieldMask getUpdateMask()Optional. The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update. Updates to the `name` and `dataPolicyId` fields are not allowed.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getUpdateMaskin interfaceUpdateDataPolicyRequestOrBuilder- Returns:
- The updateMask.
-
setUpdateMask
Optional. The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update. Updates to the `name` and `dataPolicyId` fields are not allowed.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; -
setUpdateMask
public UpdateDataPolicyRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) Optional. The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update. Updates to the `name` and `dataPolicyId` fields are not allowed.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; -
mergeUpdateMask
Optional. The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update. Updates to the `name` and `dataPolicyId` fields are not allowed.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; -
clearUpdateMask
Optional. The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update. Updates to the `name` and `dataPolicyId` fields are not allowed.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getUpdateMaskBuilder
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()Optional. The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update. Updates to the `name` and `dataPolicyId` fields are not allowed.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getUpdateMaskOrBuilder
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()Optional. The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update. Updates to the `name` and `dataPolicyId` fields are not allowed.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getUpdateMaskOrBuilderin interfaceUpdateDataPolicyRequestOrBuilder
-
getAllowMissing
public boolean getAllowMissing()Optional. If set to true, and the data policy is not found, a new data policy will be created. In this situation, update_mask is ignored.
bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAllowMissingin interfaceUpdateDataPolicyRequestOrBuilder- Returns:
- The allowMissing.
-
setAllowMissing
Optional. If set to true, and the data policy is not found, a new data policy will be created. In this situation, update_mask is ignored.
bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The allowMissing to set.- Returns:
- This builder for chaining.
-
clearAllowMissing
Optional. If set to true, and the data policy is not found, a new data policy will be created. In this situation, update_mask is ignored.
bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-