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.v1.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
 Response message for the UpdateDataPolicy method.
 
Protobuf type google.cloud.bigquery.datapolicies.v1.UpdateDataPolicyRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<UpdateDataPolicyRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<UpdateDataPolicyRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<UpdateDataPolicyRequest.Builder>
    • getDefaultInstanceForType

      public UpdateDataPolicyRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public UpdateDataPolicyRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public UpdateDataPolicyRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public UpdateDataPolicyRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UpdateDataPolicyRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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.v1.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasDataPolicy in interface UpdateDataPolicyRequestOrBuilder
      Returns:
      Whether the dataPolicy field is set.
    • getDataPolicy

      public DataPolicy 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.v1.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDataPolicy in interface UpdateDataPolicyRequestOrBuilder
      Returns:
      The dataPolicy.
    • setDataPolicy

      public UpdateDataPolicyRequest.Builder setDataPolicy(DataPolicy value)
       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.v1.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED];
    • setDataPolicy

      public UpdateDataPolicyRequest.Builder setDataPolicy(DataPolicy.Builder builderForValue)
       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.v1.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeDataPolicy

      public UpdateDataPolicyRequest.Builder mergeDataPolicy(DataPolicy value)
       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.v1.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearDataPolicy

      public UpdateDataPolicyRequest.Builder 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.v1.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED];
    • getDataPolicyBuilder

      public DataPolicy.Builder 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.v1.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED];
    • getDataPolicyOrBuilder

      public DataPolicyOrBuilder 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.v1.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDataPolicyOrBuilder in interface UpdateDataPolicyRequestOrBuilder
    • hasUpdateMask

      public boolean hasUpdateMask()
       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;
      Specified by:
      hasUpdateMask in interface UpdateDataPolicyRequestOrBuilder
      Returns:
      Whether the updateMask field is set.
    • getUpdateMask

      public com.google.protobuf.FieldMask getUpdateMask()
       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;
      Specified by:
      getUpdateMask in interface UpdateDataPolicyRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public UpdateDataPolicyRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
       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;
    • setUpdateMask

      public UpdateDataPolicyRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
       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;
    • mergeUpdateMask

      public UpdateDataPolicyRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
       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;
    • clearUpdateMask

      public UpdateDataPolicyRequest.Builder clearUpdateMask()
       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;
    • getUpdateMaskBuilder

      public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
       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;
    • getUpdateMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
       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;
      Specified by:
      getUpdateMaskOrBuilder in interface UpdateDataPolicyRequestOrBuilder