public interface SetIamPolicyRequestOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getPolicy()
public abstract 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 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
Policy | The policy. |
getPolicyOrBuilder()
public abstract PolicyOrBuilder getPolicyOrBuilder()
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 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
PolicyOrBuilder |
getResource()
public abstract 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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
String | The resource. |
getResourceBytes()
public abstract 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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
ByteString | The bytes for resource. |
hasPolicy()
public abstract 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 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
boolean | Whether the policy field is set. |