Package com.google.iam.v1
Class SetIamPolicyRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<SetIamPolicyRequest,SetIamPolicyRequest.Builder>
com.google.iam.v1.SetIamPolicyRequest.Builder
- All Implemented Interfaces:
SetIamPolicyRequestOrBuilder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Cloneable
- Enclosing class:
- SetIamPolicyRequest
public static final class SetIamPolicyRequest.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<SetIamPolicyRequest,SetIamPolicyRequest.Builder>
implements SetIamPolicyRequestOrBuilder
Request message for `SetIamPolicy` method.Protobuf type
google.iam.v1.SetIamPolicyRequest-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionREQUIRED: The complete policy to be applied to the `resource`.REQUIRED: The resource for which the policy is being specified.OPTIONAL: A FieldMask specifying which fields of the policy to modify.REQUIRED: The complete policy to be applied to the `resource`.REQUIRED: The resource for which the policy is being specified.com.google.protobuf.ByteStringREQUIRED: The resource for which the policy is being specified.com.google.protobuf.FieldMaskOPTIONAL: A FieldMask specifying which fields of the policy to modify.booleanREQUIRED: The complete policy to be applied to the `resource`.booleanOPTIONAL: A FieldMask specifying which fields of the policy to modify.mergePolicy(Policy value) REQUIRED: The complete policy to be applied to the `resource`.mergeUpdateMask(com.google.protobuf.FieldMask value) OPTIONAL: A FieldMask specifying which fields of the policy to modify.REQUIRED: The complete policy to be applied to the `resource`.setPolicy(Policy.Builder builderForValue) REQUIRED: The complete policy to be applied to the `resource`.setResource(String value) REQUIRED: The resource for which the policy is being specified.setResourceBytes(com.google.protobuf.ByteString value) REQUIRED: The resource for which the policy is being specified.setUpdateMask(com.google.protobuf.FieldMask value) OPTIONAL: A FieldMask specifying which fields of the policy to modify.setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) OPTIONAL: A FieldMask specifying which fields of the policy to modify.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 specified. 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 interfaceSetIamPolicyRequestOrBuilder- Returns:
- The resource.
-
getResourceBytes
public com.google.protobuf.ByteString getResourceBytes()REQUIRED: The resource for which the policy is being specified. 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 interfaceSetIamPolicyRequestOrBuilder- Returns:
- The bytes for resource.
-
setResource
REQUIRED: The resource for which the policy is being specified. 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 specified. 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 specified. 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.
-
hasPolicy
public boolean hasPolicy()REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.
.google.iam.v1.Policy policy = 2 [json_name = "policy", (.google.api.field_behavior) = REQUIRED];- Specified by:
hasPolicyin interfaceSetIamPolicyRequestOrBuilder- Returns:
- Whether the policy field is set.
-
getPolicy
REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.
.google.iam.v1.Policy policy = 2 [json_name = "policy", (.google.api.field_behavior) = REQUIRED];- Specified by:
getPolicyin interfaceSetIamPolicyRequestOrBuilder- Returns:
- The policy.
-
setPolicy
REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.
.google.iam.v1.Policy policy = 2 [json_name = "policy", (.google.api.field_behavior) = REQUIRED]; -
setPolicy
REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.
.google.iam.v1.Policy policy = 2 [json_name = "policy", (.google.api.field_behavior) = REQUIRED]; -
mergePolicy
REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.
.google.iam.v1.Policy policy = 2 [json_name = "policy", (.google.api.field_behavior) = REQUIRED]; -
clearPolicy
REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.
.google.iam.v1.Policy policy = 2 [json_name = "policy", (.google.api.field_behavior) = REQUIRED]; -
hasUpdateMask
public boolean hasUpdateMask()OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: "bindings, etag"`
.google.protobuf.FieldMask update_mask = 3 [json_name = "updateMask"];- Specified by:
hasUpdateMaskin interfaceSetIamPolicyRequestOrBuilder- Returns:
- Whether the updateMask field is set.
-
getUpdateMask
public com.google.protobuf.FieldMask getUpdateMask()OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: "bindings, etag"`
.google.protobuf.FieldMask update_mask = 3 [json_name = "updateMask"];- Specified by:
getUpdateMaskin interfaceSetIamPolicyRequestOrBuilder- Returns:
- The updateMask.
-
setUpdateMask
OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: "bindings, etag"`
.google.protobuf.FieldMask update_mask = 3 [json_name = "updateMask"]; -
setUpdateMask
public SetIamPolicyRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: "bindings, etag"`
.google.protobuf.FieldMask update_mask = 3 [json_name = "updateMask"]; -
mergeUpdateMask
OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: "bindings, etag"`
.google.protobuf.FieldMask update_mask = 3 [json_name = "updateMask"]; -
clearUpdateMask
OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: "bindings, etag"`
.google.protobuf.FieldMask update_mask = 3 [json_name = "updateMask"];
-