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
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 UpdateRoleRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public UpdateRoleRequest build()
buildPartial()
public UpdateRoleRequest buildPartial()
clear()
public UpdateRoleRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public UpdateRoleRequest.Builder clearField(Descriptors.FieldDescriptor field)
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) = { ... }
clearOneof(Descriptors.OneofDescriptor oneof)
public UpdateRoleRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearRole()
public UpdateRoleRequest.Builder clearRole()
The updated role.
.google.iam.admin.v1.Role role = 2;
clearUpdateMask()
public UpdateRoleRequest.Builder clearUpdateMask()
A mask describing which fields in the Role have changed.
.google.protobuf.FieldMask update_mask = 3;
clone()
public UpdateRoleRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public UpdateRoleRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Type | Description |
ByteString | The bytes for name.
|
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;
getRoleOrBuilder()
public RoleOrBuilder getRoleOrBuilder()
The updated role.
.google.iam.admin.v1.Role role = 2;
getUpdateMask()
public FieldMask getUpdateMask()
A mask describing which fields in the Role have changed.
.google.protobuf.FieldMask update_mask = 3;
Returns |
---|
Type | Description |
FieldMask | The updateMask.
|
getUpdateMaskBuilder()
public FieldMask.Builder getUpdateMaskBuilder()
A mask describing which fields in the Role have changed.
.google.protobuf.FieldMask update_mask = 3;
getUpdateMaskOrBuilder()
public FieldMaskOrBuilder getUpdateMaskOrBuilder()
A mask describing which fields in the Role have changed.
.google.protobuf.FieldMask update_mask = 3;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(UpdateRoleRequest other)
public UpdateRoleRequest.Builder mergeFrom(UpdateRoleRequest other)
public UpdateRoleRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public UpdateRoleRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeRole(Role value)
public UpdateRoleRequest.Builder mergeRole(Role value)
The updated role.
.google.iam.admin.v1.Role role = 2;
Parameter |
---|
Name | Description |
value | Role
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UpdateRoleRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
setField(Descriptors.FieldDescriptor field, Object value)
public UpdateRoleRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UpdateRoleRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setRole(Role value)
public UpdateRoleRequest.Builder setRole(Role value)
The updated role.
.google.iam.admin.v1.Role role = 2;
Parameter |
---|
Name | Description |
value | Role
|
setRole(Role.Builder builderForValue)
public UpdateRoleRequest.Builder setRole(Role.Builder builderForValue)
The updated role.
.google.iam.admin.v1.Role role = 2;
setUnknownFields(UnknownFieldSet unknownFields)
public final UpdateRoleRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
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;
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
|