public static final class SetIamPolicyRequest.Builder extends GeneratedMessageV3.Builder<SetIamPolicyRequest.Builder> implements SetIamPolicyRequestOrBuilder
Request message for SetIamPolicy
method.
Protobuf type google.iam.v1.SetIamPolicyRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SetIamPolicyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SetIamPolicyRequest build()
buildPartial()
public SetIamPolicyRequest buildPartial()
clear()
public SetIamPolicyRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public SetIamPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SetIamPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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];
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) = { ... }
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;
clone()
public SetIamPolicyRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public SetIamPolicyRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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];
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];
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;
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;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SetIamPolicyRequest other)
public SetIamPolicyRequest.Builder mergeFrom(SetIamPolicyRequest other)
public SetIamPolicyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SetIamPolicyRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
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
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SetIamPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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;
setField(Descriptors.FieldDescriptor field, Object value)
public SetIamPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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
|
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];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SetIamPolicyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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 | String
The resource to set.
|
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 | ByteString
The bytes for resource to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final SetIamPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
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;
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
|