- 1.57.0 (latest)
 - 1.56.3
 - 1.55.0
 - 1.54.2
 - 1.53.0
 - 1.52.0
 - 1.51.0
 - 1.49.1
 - 1.48.0
 - 1.47.0
 - 1.46.0
 - 1.45.1
 - 1.44.0
 - 1.43.0
 - 1.41.0
 - 1.40.1
 - 1.39.0
 - 1.38.0
 - 1.37.0
 - 1.36.0
 - 1.35.0
 - 1.34.1
 - 1.33.0
 - 1.32.1
 - 1.31.0
 - 1.29.0
 - 1.28.0
 - 1.27.0
 - 1.25.0
 - 1.24.0
 - 1.23.0
 - 1.22.0
 - 1.21.0
 - 1.20.1
 - 1.19.0
 - 1.18.1
 - 1.17.1
 - 1.16.1
 - 1.10.0
 - 1.9.3
 - 1.8.0
 - 1.7.0
 - 1.6.23
 - 1.5.1
 - 1.4.1
 - 1.3.4
 - 1.2.12
 
public static final class SetIamPolicyRequest.Builder extends GeneratedMessageV3.Builder<SetIamPolicyRequest.Builder> implements SetIamPolicyRequestOrBuilder Request message for SetIamPolicy method.
 Protobuf type google.iam.v1.SetIamPolicyRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SetIamPolicyRequest.BuilderImplements
SetIamPolicyRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description | 
Descriptor | 
        |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SetIamPolicyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
SetIamPolicyRequest.Builder | 
        |
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 | 
        |
clearField(Descriptors.FieldDescriptor field)
public SetIamPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
| Returns | |
|---|---|
| Type | Description | 
SetIamPolicyRequest.Builder | 
        |
clearOneof(Descriptors.OneofDescriptor oneof)
public SetIamPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
oneof | 
        OneofDescriptor | 
      
| 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 | 
        |
clone()
public SetIamPolicyRequest.Builder clone()| 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 GeneratedMessageV3.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 | 
        |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SetIamPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| 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 | 
        |
setField(Descriptors.FieldDescriptor field, Object value)
public SetIamPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| 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 | 
        |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SetIamPolicyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
index | 
        int | 
      
value | 
        Object | 
      
| 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.  | 
      
setUnknownFields(UnknownFieldSet unknownFields)
public final SetIamPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| Type | Description | 
SetIamPolicyRequest.Builder | 
        |
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 | 
        |