Package com.google.iam.v1
Interface SetIamPolicyRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
SetIamPolicyRequest,SetIamPolicyRequest.Builder
public interface SetIamPolicyRequestOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionREQUIRED: 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.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getResource
String 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) = { ... }- Returns:
- The resource.
-
getResourceBytes
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) = { ... }- Returns:
- The bytes for resource.
-
hasPolicy
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];- Returns:
- Whether the policy field is set.
-
getPolicy
Policy 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];- Returns:
- The policy.
-
hasUpdateMask
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"];- Returns:
- Whether the updateMask field is set.
-
getUpdateMask
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"];- Returns:
- The updateMask.
-