Class AddGranteesRequest.Builder

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

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

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

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

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

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

      public AddGranteesRequest.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<AddGranteesRequest.Builder>
      Throws:
      IOException
    • getDataPolicy

      public String getDataPolicy()
       Required. Resource name of this data policy, in the format of
       `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
       
      string data_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getDataPolicy in interface AddGranteesRequestOrBuilder
      Returns:
      The dataPolicy.
    • getDataPolicyBytes

      public com.google.protobuf.ByteString getDataPolicyBytes()
       Required. Resource name of this data policy, in the format of
       `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
       
      string data_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getDataPolicyBytes in interface AddGranteesRequestOrBuilder
      Returns:
      The bytes for dataPolicy.
    • setDataPolicy

      public AddGranteesRequest.Builder setDataPolicy(String value)
       Required. Resource name of this data policy, in the format of
       `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
       
      string data_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The dataPolicy to set.
      Returns:
      This builder for chaining.
    • clearDataPolicy

      public AddGranteesRequest.Builder clearDataPolicy()
       Required. Resource name of this data policy, in the format of
       `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
       
      string data_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setDataPolicyBytes

      public AddGranteesRequest.Builder setDataPolicyBytes(com.google.protobuf.ByteString value)
       Required. Resource name of this data policy, in the format of
       `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
       
      string data_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for dataPolicy to set.
      Returns:
      This builder for chaining.
    • getGranteesList

      public com.google.protobuf.ProtocolStringList getGranteesList()
       Required. IAM principal that should be granted Fine Grained Access to the
       underlying data goverened by the data policy. The target data policy is
       determined by the `data_policy` field.
      
       Uses the [IAM V2 principal
       syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
       Supported principal types:
      
       * User
       * Group
       * Service account
       
      repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getGranteesList in interface AddGranteesRequestOrBuilder
      Returns:
      A list containing the grantees.
    • getGranteesCount

      public int getGranteesCount()
       Required. IAM principal that should be granted Fine Grained Access to the
       underlying data goverened by the data policy. The target data policy is
       determined by the `data_policy` field.
      
       Uses the [IAM V2 principal
       syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
       Supported principal types:
      
       * User
       * Group
       * Service account
       
      repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getGranteesCount in interface AddGranteesRequestOrBuilder
      Returns:
      The count of grantees.
    • getGrantees

      public String getGrantees(int index)
       Required. IAM principal that should be granted Fine Grained Access to the
       underlying data goverened by the data policy. The target data policy is
       determined by the `data_policy` field.
      
       Uses the [IAM V2 principal
       syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
       Supported principal types:
      
       * User
       * Group
       * Service account
       
      repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getGrantees in interface AddGranteesRequestOrBuilder
      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)
       Required. IAM principal that should be granted Fine Grained Access to the
       underlying data goverened by the data policy. The target data policy is
       determined by the `data_policy` field.
      
       Uses the [IAM V2 principal
       syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
       Supported principal types:
      
       * User
       * Group
       * Service account
       
      repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getGranteesBytes in interface AddGranteesRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the grantees at the given index.
    • setGrantees

      public AddGranteesRequest.Builder setGrantees(int index, String value)
       Required. IAM principal that should be granted Fine Grained Access to the
       underlying data goverened by the data policy. The target data policy is
       determined by the `data_policy` field.
      
       Uses the [IAM V2 principal
       syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
       Supported principal types:
      
       * User
       * Group
       * Service account
       
      repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The grantees to set.
      Returns:
      This builder for chaining.
    • addGrantees

      public AddGranteesRequest.Builder addGrantees(String value)
       Required. IAM principal that should be granted Fine Grained Access to the
       underlying data goverened by the data policy. The target data policy is
       determined by the `data_policy` field.
      
       Uses the [IAM V2 principal
       syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
       Supported principal types:
      
       * User
       * Group
       * Service account
       
      repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The grantees to add.
      Returns:
      This builder for chaining.
    • addAllGrantees

      public AddGranteesRequest.Builder addAllGrantees(Iterable<String> values)
       Required. IAM principal that should be granted Fine Grained Access to the
       underlying data goverened by the data policy. The target data policy is
       determined by the `data_policy` field.
      
       Uses the [IAM V2 principal
       syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
       Supported principal types:
      
       * User
       * Group
       * Service account
       
      repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The grantees to add.
      Returns:
      This builder for chaining.
    • clearGrantees

      public AddGranteesRequest.Builder clearGrantees()
       Required. IAM principal that should be granted Fine Grained Access to the
       underlying data goverened by the data policy. The target data policy is
       determined by the `data_policy` field.
      
       Uses the [IAM V2 principal
       syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
       Supported principal types:
      
       * User
       * Group
       * Service account
       
      repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • addGranteesBytes

      public AddGranteesRequest.Builder addGranteesBytes(com.google.protobuf.ByteString value)
       Required. IAM principal that should be granted Fine Grained Access to the
       underlying data goverened by the data policy. The target data policy is
       determined by the `data_policy` field.
      
       Uses the [IAM V2 principal
       syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
       Supported principal types:
      
       * User
       * Group
       * Service account
       
      repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes of the grantees to add.
      Returns:
      This builder for chaining.