Class GetIamPolicyRequest.Builder

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

public static final class GetIamPolicyRequest.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<GetIamPolicyRequest,GetIamPolicyRequest.Builder> implements GetIamPolicyRequestOrBuilder
 Request message for `GetIamPolicy` method.
 
Protobuf type google.iam.v1.GetIamPolicyRequest
  • Method Details

    • getResource

      public String getResource()
       REQUIRED: The resource for which the policy is being requested.
       See the operation documentation for the appropriate value for this field.
       
      string resource = 1 [json_name = "resource", (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getResource in interface GetIamPolicyRequestOrBuilder
      Returns:
      The resource.
    • getResourceBytes

      public com.google.protobuf.ByteString getResourceBytes()
       REQUIRED: The resource for which the policy is being requested.
       See the operation documentation for the appropriate value for this field.
       
      string resource = 1 [json_name = "resource", (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceBytes in interface GetIamPolicyRequestOrBuilder
      Returns:
      The bytes for resource.
    • setResource

      public GetIamPolicyRequest.Builder setResource(String value)
       REQUIRED: The resource for which the policy is being requested.
       See the operation documentation for the appropriate value for this field.
       
      string resource = 1 [json_name = "resource", (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The resource to set.
      Returns:
      This builder for chaining.
    • clearResource

      public GetIamPolicyRequest.Builder clearResource()
       REQUIRED: The resource for which the policy is being requested.
       See the operation documentation for the appropriate value for this field.
       
      string resource = 1 [json_name = "resource", (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setResourceBytes

      public GetIamPolicyRequest.Builder setResourceBytes(com.google.protobuf.ByteString value)
       REQUIRED: The resource for which the policy is being requested.
       See the operation documentation for the appropriate value for this field.
       
      string resource = 1 [json_name = "resource", (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for resource to set.
      Returns:
      This builder for chaining.
    • hasOptions

      public boolean hasOptions()
       OPTIONAL: A `GetPolicyOptions` object for specifying options to
       `GetIamPolicy`.
       
      .google.iam.v1.GetPolicyOptions options = 2 [json_name = "options"];
      Specified by:
      hasOptions in interface GetIamPolicyRequestOrBuilder
      Returns:
      Whether the options field is set.
    • getOptions

      public GetPolicyOptions getOptions()
       OPTIONAL: A `GetPolicyOptions` object for specifying options to
       `GetIamPolicy`.
       
      .google.iam.v1.GetPolicyOptions options = 2 [json_name = "options"];
      Specified by:
      getOptions in interface GetIamPolicyRequestOrBuilder
      Returns:
      The options.
    • setOptions

      public GetIamPolicyRequest.Builder setOptions(GetPolicyOptions value)
       OPTIONAL: A `GetPolicyOptions` object for specifying options to
       `GetIamPolicy`.
       
      .google.iam.v1.GetPolicyOptions options = 2 [json_name = "options"];
    • setOptions

      public GetIamPolicyRequest.Builder setOptions(GetPolicyOptions.Builder builderForValue)
       OPTIONAL: A `GetPolicyOptions` object for specifying options to
       `GetIamPolicy`.
       
      .google.iam.v1.GetPolicyOptions options = 2 [json_name = "options"];
    • mergeOptions

      public GetIamPolicyRequest.Builder mergeOptions(GetPolicyOptions value)
       OPTIONAL: A `GetPolicyOptions` object for specifying options to
       `GetIamPolicy`.
       
      .google.iam.v1.GetPolicyOptions options = 2 [json_name = "options"];
    • clearOptions

      public GetIamPolicyRequest.Builder clearOptions()
       OPTIONAL: A `GetPolicyOptions` object for specifying options to
       `GetIamPolicy`.
       
      .google.iam.v1.GetPolicyOptions options = 2 [json_name = "options"];