Package com.google.iam.v1
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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionOPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.REQUIRED: The resource for which the policy is being requested.OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.REQUIRED: The resource for which the policy is being requested.com.google.protobuf.ByteStringREQUIRED: The resource for which the policy is being requested.booleanOPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.mergeOptions(GetPolicyOptions value) OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.setOptions(GetPolicyOptions value) OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.setOptions(GetPolicyOptions.Builder builderForValue) OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.setResource(String value) REQUIRED: The resource for which the policy is being requested.setResourceBytes(com.google.protobuf.ByteString value) REQUIRED: The resource for which the policy is being requested.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
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:
getResourcein interfaceGetIamPolicyRequestOrBuilder- 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:
getResourceBytesin interfaceGetIamPolicyRequestOrBuilder- Returns:
- The bytes for resource.
-
setResource
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
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
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:
hasOptionsin interfaceGetIamPolicyRequestOrBuilder- Returns:
- Whether the options field is set.
-
getOptions
OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
.google.iam.v1.GetPolicyOptions options = 2 [json_name = "options"];- Specified by:
getOptionsin interfaceGetIamPolicyRequestOrBuilder- Returns:
- The options.
-
setOptions
OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
.google.iam.v1.GetPolicyOptions options = 2 [json_name = "options"]; -
setOptions
OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
.google.iam.v1.GetPolicyOptions options = 2 [json_name = "options"]; -
mergeOptions
OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
.google.iam.v1.GetPolicyOptions options = 2 [json_name = "options"]; -
clearOptions
OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
.google.iam.v1.GetPolicyOptions options = 2 [json_name = "options"];
-