Class GetPolicyOptions.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<GetPolicyOptions,GetPolicyOptions.Builder>
com.google.iam.v1.GetPolicyOptions.Builder
All Implemented Interfaces:
GetPolicyOptionsOrBuilder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable
Enclosing class:
GetPolicyOptions

public static final class GetPolicyOptions.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<GetPolicyOptions,GetPolicyOptions.Builder> implements GetPolicyOptionsOrBuilder
 Encapsulates settings provided to GetIamPolicy.
 
Protobuf type google.iam.v1.GetPolicyOptions
  • Field Summary

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional.
    int
    Optional.
    Optional.

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • getRequestedPolicyVersion

      public int getRequestedPolicyVersion()
       Optional. The maximum policy version that will be used to format the
       policy.
      
       Valid values are 0, 1, and 3. Requests specifying an invalid value will be
       rejected.
      
       Requests for policies with any conditional role bindings must specify
       version 3. Policies with no conditional role bindings may specify any valid
       value or leave the field unset.
      
       The policy in the response might use the policy version that you specified,
       or it might use a lower policy version. For example, if you specify version
       3, but the policy has no conditional role bindings, the response uses
       version 1.
      
       To learn which resources support conditions in their IAM policies, see the
       [IAM
       documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
       
      int32 requested_policy_version = 1 [json_name = "requestedPolicyVersion"];
      Specified by:
      getRequestedPolicyVersion in interface GetPolicyOptionsOrBuilder
      Returns:
      The requestedPolicyVersion.
    • setRequestedPolicyVersion

      public GetPolicyOptions.Builder setRequestedPolicyVersion(int value)
       Optional. The maximum policy version that will be used to format the
       policy.
      
       Valid values are 0, 1, and 3. Requests specifying an invalid value will be
       rejected.
      
       Requests for policies with any conditional role bindings must specify
       version 3. Policies with no conditional role bindings may specify any valid
       value or leave the field unset.
      
       The policy in the response might use the policy version that you specified,
       or it might use a lower policy version. For example, if you specify version
       3, but the policy has no conditional role bindings, the response uses
       version 1.
      
       To learn which resources support conditions in their IAM policies, see the
       [IAM
       documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
       
      int32 requested_policy_version = 1 [json_name = "requestedPolicyVersion"];
      Parameters:
      value - The requestedPolicyVersion to set.
      Returns:
      This builder for chaining.
    • clearRequestedPolicyVersion

      public GetPolicyOptions.Builder clearRequestedPolicyVersion()
       Optional. The maximum policy version that will be used to format the
       policy.
      
       Valid values are 0, 1, and 3. Requests specifying an invalid value will be
       rejected.
      
       Requests for policies with any conditional role bindings must specify
       version 3. Policies with no conditional role bindings may specify any valid
       value or leave the field unset.
      
       The policy in the response might use the policy version that you specified,
       or it might use a lower policy version. For example, if you specify version
       3, but the policy has no conditional role bindings, the response uses
       version 1.
      
       To learn which resources support conditions in their IAM policies, see the
       [IAM
       documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
       
      int32 requested_policy_version = 1 [json_name = "requestedPolicyVersion"];
      Returns:
      This builder for chaining.