Class RemoveGranteesRequest.Builder

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

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

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

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

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

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

      public RemoveGranteesRequest.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<RemoveGranteesRequest.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 RemoveGranteesRequestOrBuilder
      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 RemoveGranteesRequestOrBuilder
      Returns:
      The bytes for dataPolicy.
    • setDataPolicy

      public RemoveGranteesRequest.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 RemoveGranteesRequest.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 RemoveGranteesRequest.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 revoked from 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 RemoveGranteesRequestOrBuilder
      Returns:
      A list containing the grantees.
    • getGranteesCount

      public int getGranteesCount()
       Required. IAM principal that should be revoked from 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 RemoveGranteesRequestOrBuilder
      Returns:
      The count of grantees.
    • getGrantees

      public String getGrantees(int index)
       Required. IAM principal that should be revoked from 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 RemoveGranteesRequestOrBuilder
      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 revoked from 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 RemoveGranteesRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the grantees at the given index.
    • setGrantees

      public RemoveGranteesRequest.Builder setGrantees(int index, String value)
       Required. IAM principal that should be revoked from 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 RemoveGranteesRequest.Builder addGrantees(String value)
       Required. IAM principal that should be revoked from 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 RemoveGranteesRequest.Builder addAllGrantees(Iterable<String> values)
       Required. IAM principal that should be revoked from 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 RemoveGranteesRequest.Builder clearGrantees()
       Required. IAM principal that should be revoked from 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 RemoveGranteesRequest.Builder addGranteesBytes(com.google.protobuf.ByteString value)
       Required. IAM principal that should be revoked from 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.