public static final class SetIamPolicyRequest.Builder extends GeneratedMessage.Builder<SetIamPolicyRequest.Builder> implements SetIamPolicyRequestOrBuilder Request message for SetIamPolicy method.
Protobuf type google.iam.v1.SetIamPolicyRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SetIamPolicyRequest.BuilderImplements
SetIamPolicyRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public SetIamPolicyRequest build()| Returns | |
|---|---|
| Type | Description |
SetIamPolicyRequest |
|
buildPartial()
public SetIamPolicyRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
SetIamPolicyRequest |
|
clear()
public SetIamPolicyRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
SetIamPolicyRequest.Builder |
|
clearPolicy()
public SetIamPolicyRequest.Builder 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 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SetIamPolicyRequest.Builder |
|
clearResource()
public SetIamPolicyRequest.Builder 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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
SetIamPolicyRequest.Builder |
This builder for chaining. |
clearUpdateMask()
public SetIamPolicyRequest.Builder 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;
| Returns | |
|---|---|
| Type | Description |
SetIamPolicyRequest.Builder |
|
getDefaultInstanceForType()
public SetIamPolicyRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SetIamPolicyRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getPolicy()
public 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];
| Returns | |
|---|---|
| Type | Description |
Policy |
The policy. |
getPolicyBuilder()
public Policy.Builder getPolicyBuilder() 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];
| Returns | |
|---|---|
| Type | Description |
Policy.Builder |
|
getPolicyOrBuilder()
public 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];
| Returns | |
|---|---|
| Type | Description |
PolicyOrBuilder |
|
getResource()
public 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) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The resource. |
getResourceBytes()
public 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) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for resource. |
getUpdateMask()
public 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;
| Returns | |
|---|---|
| Type | Description |
FieldMask |
The updateMask. |
getUpdateMaskBuilder()
public FieldMask.Builder getUpdateMaskBuilder()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;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getUpdateMaskOrBuilder()
public FieldMaskOrBuilder getUpdateMaskOrBuilder()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;
| Returns | |
|---|---|
| Type | Description |
FieldMaskOrBuilder |
|
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 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the policy field is set. |
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;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the updateMask field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(SetIamPolicyRequest other)
public SetIamPolicyRequest.Builder mergeFrom(SetIamPolicyRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
SetIamPolicyRequest |
| Returns | |
|---|---|
| Type | Description |
SetIamPolicyRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SetIamPolicyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SetIamPolicyRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SetIamPolicyRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SetIamPolicyRequest.Builder |
|
mergePolicy(Policy value)
public SetIamPolicyRequest.Builder mergePolicy(Policy value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
Policy |
| Returns | |
|---|---|
| Type | Description |
SetIamPolicyRequest.Builder |
|
mergeUpdateMask(FieldMask value)
public SetIamPolicyRequest.Builder mergeUpdateMask(FieldMask value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
FieldMask |
| Returns | |
|---|---|
| Type | Description |
SetIamPolicyRequest.Builder |
|
setPolicy(Policy value)
public SetIamPolicyRequest.Builder setPolicy(Policy value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
Policy |
| Returns | |
|---|---|
| Type | Description |
SetIamPolicyRequest.Builder |
|
setPolicy(Policy.Builder builderForValue)
public SetIamPolicyRequest.Builder setPolicy(Policy.Builder builderForValue) 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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Policy.Builder |
| Returns | |
|---|---|
| Type | Description |
SetIamPolicyRequest.Builder |
|
setResource(String value)
public SetIamPolicyRequest.Builder setResource(String value)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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe resource to set. |
| Returns | |
|---|---|
| Type | Description |
SetIamPolicyRequest.Builder |
This builder for chaining. |
setResourceBytes(ByteString value)
public SetIamPolicyRequest.Builder setResourceBytes(ByteString value)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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for resource to set. |
| Returns | |
|---|---|
| Type | Description |
SetIamPolicyRequest.Builder |
This builder for chaining. |
setUpdateMask(FieldMask value)
public SetIamPolicyRequest.Builder setUpdateMask(FieldMask value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
FieldMask |
| Returns | |
|---|---|
| Type | Description |
SetIamPolicyRequest.Builder |
|
setUpdateMask(FieldMask.Builder builderForValue)
public SetIamPolicyRequest.Builder setUpdateMask(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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
SetIamPolicyRequest.Builder |
|