public static final class UpdateRoleRequest.Builder extends GeneratedMessageV3.Builder<UpdateRoleRequest.Builder> implements UpdateRoleRequestOrBuilder
The request to update a role.
Protobuf type google.iam.admin.v1.UpdateRoleRequest
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UpdateRoleRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public UpdateRoleRequest build()
Returns
buildPartial()
public UpdateRoleRequest buildPartial()
Returns
clear()
public UpdateRoleRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public UpdateRoleRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearName()
public UpdateRoleRequest.Builder clearName()
The name
parameter's value depends on the target resource for the
request, namely
projects
or
organizations
. Each
resource type's name
value format is described below:
projects.roles.patch()
:
projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}
. This method updates only
custom roles that have been
created at the project level. Example request URL:
https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}
organizations.roles.patch()
:
organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}
. This method
updates only custom roles that
have been created at the organization level. Example request URL:
https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}
Note: Wildcard (*) values are invalid; you must specify a complete project
ID or organization ID.
string name = 1 [(.google.api.resource_reference) = { ... }
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public UpdateRoleRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearRole()
public UpdateRoleRequest.Builder clearRole()
The updated role.
.google.iam.admin.v1.Role role = 2;
Returns
clearUpdateMask()
public UpdateRoleRequest.Builder clearUpdateMask()
A mask describing which fields in the Role have changed.
.google.protobuf.FieldMask update_mask = 3;
Returns
clone()
public UpdateRoleRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public UpdateRoleRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getName()
The name
parameter's value depends on the target resource for the
request, namely
projects
or
organizations
. Each
resource type's name
value format is described below:
projects.roles.patch()
:
projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}
. This method updates only
custom roles that have been
created at the project level. Example request URL:
https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}
organizations.roles.patch()
:
organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}
. This method
updates only custom roles that
have been created at the organization level. Example request URL:
https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}
Note: Wildcard (*) values are invalid; you must specify a complete project
ID or organization ID.
string name = 1 [(.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
The name
parameter's value depends on the target resource for the
request, namely
projects
or
organizations
. Each
resource type's name
value format is described below:
projects.roles.patch()
:
projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}
. This method updates only
custom roles that have been
created at the project level. Example request URL:
https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}
organizations.roles.patch()
:
organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}
. This method
updates only custom roles that
have been created at the organization level. Example request URL:
https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}
Note: Wildcard (*) values are invalid; you must specify a complete project
ID or organization ID.
string name = 1 [(.google.api.resource_reference) = { ... }
Returns
getRole()
The updated role.
.google.iam.admin.v1.Role role = 2;
Returns
Type | Description |
Role | The role.
|
getRoleBuilder()
public Role.Builder getRoleBuilder()
The updated role.
.google.iam.admin.v1.Role role = 2;
Returns
getRoleOrBuilder()
public RoleOrBuilder getRoleOrBuilder()
The updated role.
.google.iam.admin.v1.Role role = 2;
Returns
getUpdateMask()
public FieldMask getUpdateMask()
A mask describing which fields in the Role have changed.
.google.protobuf.FieldMask update_mask = 3;
Returns
getUpdateMaskBuilder()
public FieldMask.Builder getUpdateMaskBuilder()
A mask describing which fields in the Role have changed.
.google.protobuf.FieldMask update_mask = 3;
Returns
getUpdateMaskOrBuilder()
public FieldMaskOrBuilder getUpdateMaskOrBuilder()
A mask describing which fields in the Role have changed.
.google.protobuf.FieldMask update_mask = 3;
Returns
hasRole()
The updated role.
.google.iam.admin.v1.Role role = 2;
Returns
Type | Description |
boolean | Whether the role field is set.
|
hasUpdateMask()
public boolean hasUpdateMask()
A mask describing which fields in the Role have changed.
.google.protobuf.FieldMask update_mask = 3;
Returns
Type | Description |
boolean | Whether the updateMask field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(UpdateRoleRequest other)
public UpdateRoleRequest.Builder mergeFrom(UpdateRoleRequest other)
Parameter
Returns
public UpdateRoleRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public UpdateRoleRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeRole(Role value)
public UpdateRoleRequest.Builder mergeRole(Role value)
The updated role.
.google.iam.admin.v1.Role role = 2;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UpdateRoleRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
mergeUpdateMask(FieldMask value)
public UpdateRoleRequest.Builder mergeUpdateMask(FieldMask value)
A mask describing which fields in the Role have changed.
.google.protobuf.FieldMask update_mask = 3;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public UpdateRoleRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setName(String value)
public UpdateRoleRequest.Builder setName(String value)
The name
parameter's value depends on the target resource for the
request, namely
projects
or
organizations
. Each
resource type's name
value format is described below:
projects.roles.patch()
:
projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}
. This method updates only
custom roles that have been
created at the project level. Example request URL:
https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}
organizations.roles.patch()
:
organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}
. This method
updates only custom roles that
have been created at the organization level. Example request URL:
https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}
Note: Wildcard (*) values are invalid; you must specify a complete project
ID or organization ID.
string name = 1 [(.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The name to set.
|
Returns
setNameBytes(ByteString value)
public UpdateRoleRequest.Builder setNameBytes(ByteString value)
The name
parameter's value depends on the target resource for the
request, namely
projects
or
organizations
. Each
resource type's name
value format is described below:
projects.roles.patch()
:
projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}
. This method updates only
custom roles that have been
created at the project level. Example request URL:
https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}
organizations.roles.patch()
:
organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}
. This method
updates only custom roles that
have been created at the organization level. Example request URL:
https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}
Note: Wildcard (*) values are invalid; you must specify a complete project
ID or organization ID.
string name = 1 [(.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UpdateRoleRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setRole(Role value)
public UpdateRoleRequest.Builder setRole(Role value)
The updated role.
.google.iam.admin.v1.Role role = 2;
Parameter
Returns
setRole(Role.Builder builderForValue)
public UpdateRoleRequest.Builder setRole(Role.Builder builderForValue)
The updated role.
.google.iam.admin.v1.Role role = 2;
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final UpdateRoleRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setUpdateMask(FieldMask value)
public UpdateRoleRequest.Builder setUpdateMask(FieldMask value)
A mask describing which fields in the Role have changed.
.google.protobuf.FieldMask update_mask = 3;
Parameter
Returns
setUpdateMask(FieldMask.Builder builderForValue)
public UpdateRoleRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)
A mask describing which fields in the Role have changed.
.google.protobuf.FieldMask update_mask = 3;
Parameter
Name | Description |
builderForValue | Builder
|
Returns