Class CreateDataPolicyRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateDataPolicyRequest.Builder>
com.google.cloud.bigquery.datapolicies.v2.CreateDataPolicyRequest.Builder
All Implemented Interfaces:
CreateDataPolicyRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateDataPolicyRequest

public static final class CreateDataPolicyRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateDataPolicyRequest.Builder> implements CreateDataPolicyRequestOrBuilder
 Request message for the CreateDataPolicy method.
 
Protobuf type google.cloud.bigquery.datapolicies.v2.CreateDataPolicyRequest
  • 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<CreateDataPolicyRequest.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<CreateDataPolicyRequest.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<CreateDataPolicyRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public CreateDataPolicyRequest.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<CreateDataPolicyRequest.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<CreateDataPolicyRequest.Builder>
    • mergeFrom

      public CreateDataPolicyRequest.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<CreateDataPolicyRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. Resource name of the project that the data policy will belong to.
       The format is `projects/{project_number}/locations/{location_id}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateDataPolicyRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. Resource name of the project that the data policy will belong to.
       The format is `projects/{project_number}/locations/{location_id}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateDataPolicyRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateDataPolicyRequest.Builder setParent(String value)
       Required. Resource name of the project that the data policy will belong to.
       The format is `projects/{project_number}/locations/{location_id}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateDataPolicyRequest.Builder clearParent()
       Required. Resource name of the project that the data policy will belong to.
       The format is `projects/{project_number}/locations/{location_id}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateDataPolicyRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. Resource name of the project that the data policy will belong to.
       The format is `projects/{project_number}/locations/{location_id}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getDataPolicyId

      public String getDataPolicyId()
       Required. 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) = REQUIRED];
      Specified by:
      getDataPolicyId in interface CreateDataPolicyRequestOrBuilder
      Returns:
      The dataPolicyId.
    • getDataPolicyIdBytes

      public com.google.protobuf.ByteString getDataPolicyIdBytes()
       Required. 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) = REQUIRED];
      Specified by:
      getDataPolicyIdBytes in interface CreateDataPolicyRequestOrBuilder
      Returns:
      The bytes for dataPolicyId.
    • setDataPolicyId

      public CreateDataPolicyRequest.Builder setDataPolicyId(String value)
       Required. 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) = REQUIRED];
      Parameters:
      value - The dataPolicyId to set.
      Returns:
      This builder for chaining.
    • clearDataPolicyId

      public CreateDataPolicyRequest.Builder clearDataPolicyId()
       Required. 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) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDataPolicyIdBytes

      public CreateDataPolicyRequest.Builder setDataPolicyIdBytes(com.google.protobuf.ByteString value)
       Required. 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) = REQUIRED];
      Parameters:
      value - The bytes for dataPolicyId to set.
      Returns:
      This builder for chaining.
    • hasDataPolicy

      public boolean hasDataPolicy()
       Required. The data policy to create. The `name` field does not need to be
       provided for the data policy creation.
       
      .google.cloud.bigquery.datapolicies.v2.DataPolicy data_policy = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasDataPolicy in interface CreateDataPolicyRequestOrBuilder
      Returns:
      Whether the dataPolicy field is set.
    • getDataPolicy

      public DataPolicy getDataPolicy()
       Required. The data policy to create. The `name` field does not need to be
       provided for the data policy creation.
       
      .google.cloud.bigquery.datapolicies.v2.DataPolicy data_policy = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDataPolicy in interface CreateDataPolicyRequestOrBuilder
      Returns:
      The dataPolicy.
    • setDataPolicy

      public CreateDataPolicyRequest.Builder setDataPolicy(DataPolicy value)
       Required. The data policy to create. The `name` field does not need to be
       provided for the data policy creation.
       
      .google.cloud.bigquery.datapolicies.v2.DataPolicy data_policy = 3 [(.google.api.field_behavior) = REQUIRED];
    • setDataPolicy

      public CreateDataPolicyRequest.Builder setDataPolicy(DataPolicy.Builder builderForValue)
       Required. The data policy to create. The `name` field does not need to be
       provided for the data policy creation.
       
      .google.cloud.bigquery.datapolicies.v2.DataPolicy data_policy = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeDataPolicy

      public CreateDataPolicyRequest.Builder mergeDataPolicy(DataPolicy value)
       Required. The data policy to create. The `name` field does not need to be
       provided for the data policy creation.
       
      .google.cloud.bigquery.datapolicies.v2.DataPolicy data_policy = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearDataPolicy

      public CreateDataPolicyRequest.Builder clearDataPolicy()
       Required. The data policy to create. The `name` field does not need to be
       provided for the data policy creation.
       
      .google.cloud.bigquery.datapolicies.v2.DataPolicy data_policy = 3 [(.google.api.field_behavior) = REQUIRED];
    • getDataPolicyBuilder

      public DataPolicy.Builder getDataPolicyBuilder()
       Required. The data policy to create. The `name` field does not need to be
       provided for the data policy creation.
       
      .google.cloud.bigquery.datapolicies.v2.DataPolicy data_policy = 3 [(.google.api.field_behavior) = REQUIRED];
    • getDataPolicyOrBuilder

      public DataPolicyOrBuilder getDataPolicyOrBuilder()
       Required. The data policy to create. The `name` field does not need to be
       provided for the data policy creation.
       
      .google.cloud.bigquery.datapolicies.v2.DataPolicy data_policy = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDataPolicyOrBuilder in interface CreateDataPolicyRequestOrBuilder