public final class SetIamPolicyRequest extends GeneratedMessageV3 implements SetIamPolicyRequestOrBuilder
Request message for SetIamPolicy
method.
Protobuf type google.iam.v1.SetIamPolicyRequest
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > SetIamPolicyRequestImplements
SetIamPolicyRequestOrBuilderStatic Fields
POLICY_FIELD_NUMBER
public static final int POLICY_FIELD_NUMBER
Type | Description |
int |
RESOURCE_FIELD_NUMBER
public static final int RESOURCE_FIELD_NUMBER
Type | Description |
int |
UPDATE_MASK_FIELD_NUMBER
public static final int UPDATE_MASK_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static SetIamPolicyRequest getDefaultInstance()
Type | Description |
SetIamPolicyRequest |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static SetIamPolicyRequest.Builder newBuilder()
Type | Description |
SetIamPolicyRequest.Builder |
newBuilder(SetIamPolicyRequest prototype)
public static SetIamPolicyRequest.Builder newBuilder(SetIamPolicyRequest prototype)
Name | Description |
prototype | SetIamPolicyRequest |
Type | Description |
SetIamPolicyRequest.Builder |
parseDelimitedFrom(InputStream input)
public static SetIamPolicyRequest parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
SetIamPolicyRequest |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SetIamPolicyRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SetIamPolicyRequest |
Type | Description |
IOException |
parseFrom(byte[] data)
public static SetIamPolicyRequest parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
SetIamPolicyRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SetIamPolicyRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SetIamPolicyRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static SetIamPolicyRequest parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
SetIamPolicyRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SetIamPolicyRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SetIamPolicyRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static SetIamPolicyRequest parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
SetIamPolicyRequest |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SetIamPolicyRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SetIamPolicyRequest |
Type | Description |
IOException |
parseFrom(InputStream input)
public static SetIamPolicyRequest parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
SetIamPolicyRequest |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SetIamPolicyRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SetIamPolicyRequest |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static SetIamPolicyRequest parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
SetIamPolicyRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SetIamPolicyRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SetIamPolicyRequest |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<SetIamPolicyRequest> parser()
Type | Description |
Parser<SetIamPolicyRequest> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public SetIamPolicyRequest getDefaultInstanceForType()
Type | Description |
SetIamPolicyRequest |
getParserForType()
public Parser<SetIamPolicyRequest> getParserForType()
Type | Description |
Parser<SetIamPolicyRequest> |
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];
Type | Description |
Policy | The policy. |
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];
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) = { ... }
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) = { ... }
Type | Description |
ByteString | The bytes for resource. |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
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;
Type | Description |
FieldMask | The updateMask. |
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;
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];
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;
Type | Description |
boolean | Whether the updateMask field is set. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public SetIamPolicyRequest.Builder newBuilderForType()
Type | Description |
SetIamPolicyRequest.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SetIamPolicyRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
SetIamPolicyRequest.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public SetIamPolicyRequest.Builder toBuilder()
Type | Description |
SetIamPolicyRequest.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |