public static final class Role.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Role.Builder> implements RoleOrBuilder
A role in the Identity and Access Management API.Protobuf type
google.iam.admin.v1.Role| Modifier and Type | Method and Description |
|---|---|
Role.Builder |
addAllIncludedPermissions(Iterable<String> values)
The names of the permissions this role grants when bound in an IAM policy.
|
Role.Builder |
addIncludedPermissions(String value)
The names of the permissions this role grants when bound in an IAM policy.
|
Role.Builder |
addIncludedPermissionsBytes(com.google.protobuf.ByteString value)
The names of the permissions this role grants when bound in an IAM policy.
|
Role.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Role |
build() |
Role |
buildPartial() |
Role.Builder |
clear() |
Role.Builder |
clearDeleted()
The current deleted state of the role.
|
Role.Builder |
clearDescription()
Optional.
|
Role.Builder |
clearEtag()
Used to perform a consistent read-modify-write.
|
Role.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Role.Builder |
clearIncludedPermissions()
The names of the permissions this role grants when bound in an IAM policy.
|
Role.Builder |
clearName()
The name of the role.
|
Role.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Role.Builder |
clearStage()
The current launch stage of the role.
|
Role.Builder |
clearTitle()
Optional.
|
Role.Builder |
clone() |
Role |
getDefaultInstanceForType() |
boolean |
getDeleted()
The current deleted state of the role.
|
String |
getDescription()
Optional.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
Optional.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getEtag()
Used to perform a consistent read-modify-write.
|
String |
getIncludedPermissions(int index)
The names of the permissions this role grants when bound in an IAM policy.
|
com.google.protobuf.ByteString |
getIncludedPermissionsBytes(int index)
The names of the permissions this role grants when bound in an IAM policy.
|
int |
getIncludedPermissionsCount()
The names of the permissions this role grants when bound in an IAM policy.
|
com.google.protobuf.ProtocolStringList |
getIncludedPermissionsList()
The names of the permissions this role grants when bound in an IAM policy.
|
String |
getName()
The name of the role.
|
com.google.protobuf.ByteString |
getNameBytes()
The name of the role.
|
Role.RoleLaunchStage |
getStage()
The current launch stage of the role.
|
int |
getStageValue()
The current launch stage of the role.
|
String |
getTitle()
Optional.
|
com.google.protobuf.ByteString |
getTitleBytes()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Role.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Role.Builder |
mergeFrom(com.google.protobuf.Message other) |
Role.Builder |
mergeFrom(Role other) |
Role.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Role.Builder |
setDeleted(boolean value)
The current deleted state of the role.
|
Role.Builder |
setDescription(String value)
Optional.
|
Role.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
Optional.
|
Role.Builder |
setEtag(com.google.protobuf.ByteString value)
Used to perform a consistent read-modify-write.
|
Role.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Role.Builder |
setIncludedPermissions(int index,
String value)
The names of the permissions this role grants when bound in an IAM policy.
|
Role.Builder |
setName(String value)
The name of the role.
|
Role.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The name of the role.
|
Role.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Role.Builder |
setStage(Role.RoleLaunchStage value)
The current launch stage of the role.
|
Role.Builder |
setStageValue(int value)
The current launch stage of the role.
|
Role.Builder |
setTitle(String value)
Optional.
|
Role.Builder |
setTitleBytes(com.google.protobuf.ByteString value)
Optional.
|
Role.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Role.Builder>public Role.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Role.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Role.Builder>public Role getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Role build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Role buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Role.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Role.Builder>public Role.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Role.Builder>public Role.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Role.Builder>public Role.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Role.Builder>public Role.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Role.Builder>public Role.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Role.Builder>public Role.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Role.Builder>public Role.Builder mergeFrom(Role other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Role.Builder>public Role.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Role.Builder>IOExceptionpublic String getName()
The name of the role.
When Role is used in CreateRole, the role name must not be set.
When Role is used in output and other input such as UpdateRole, the role
name is the complete path, e.g., roles/logging.viewer for predefined roles
and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles.
string name = 1;getName in interface RoleOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The name of the role.
When Role is used in CreateRole, the role name must not be set.
When Role is used in output and other input such as UpdateRole, the role
name is the complete path, e.g., roles/logging.viewer for predefined roles
and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles.
string name = 1;getNameBytes in interface RoleOrBuilderpublic Role.Builder setName(String value)
The name of the role.
When Role is used in CreateRole, the role name must not be set.
When Role is used in output and other input such as UpdateRole, the role
name is the complete path, e.g., roles/logging.viewer for predefined roles
and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles.
string name = 1;value - The name to set.public Role.Builder clearName()
The name of the role.
When Role is used in CreateRole, the role name must not be set.
When Role is used in output and other input such as UpdateRole, the role
name is the complete path, e.g., roles/logging.viewer for predefined roles
and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles.
string name = 1;public Role.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of the role.
When Role is used in CreateRole, the role name must not be set.
When Role is used in output and other input such as UpdateRole, the role
name is the complete path, e.g., roles/logging.viewer for predefined roles
and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles.
string name = 1;value - The bytes for name to set.public String getTitle()
Optional. A human-readable title for the role. Typically this is limited to 100 UTF-8 bytes.
string title = 2;getTitle in interface RoleOrBuilderpublic com.google.protobuf.ByteString getTitleBytes()
Optional. A human-readable title for the role. Typically this is limited to 100 UTF-8 bytes.
string title = 2;getTitleBytes in interface RoleOrBuilderpublic Role.Builder setTitle(String value)
Optional. A human-readable title for the role. Typically this is limited to 100 UTF-8 bytes.
string title = 2;value - The title to set.public Role.Builder clearTitle()
Optional. A human-readable title for the role. Typically this is limited to 100 UTF-8 bytes.
string title = 2;public Role.Builder setTitleBytes(com.google.protobuf.ByteString value)
Optional. A human-readable title for the role. Typically this is limited to 100 UTF-8 bytes.
string title = 2;value - The bytes for title to set.public String getDescription()
Optional. A human-readable description for the role.
string description = 3;getDescription in interface RoleOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
Optional. A human-readable description for the role.
string description = 3;getDescriptionBytes in interface RoleOrBuilderpublic Role.Builder setDescription(String value)
Optional. A human-readable description for the role.
string description = 3;value - The description to set.public Role.Builder clearDescription()
Optional. A human-readable description for the role.
string description = 3;public Role.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Optional. A human-readable description for the role.
string description = 3;value - The bytes for description to set.public com.google.protobuf.ProtocolStringList getIncludedPermissionsList()
The names of the permissions this role grants when bound in an IAM policy.
repeated string included_permissions = 7;getIncludedPermissionsList in interface RoleOrBuilderpublic int getIncludedPermissionsCount()
The names of the permissions this role grants when bound in an IAM policy.
repeated string included_permissions = 7;getIncludedPermissionsCount in interface RoleOrBuilderpublic String getIncludedPermissions(int index)
The names of the permissions this role grants when bound in an IAM policy.
repeated string included_permissions = 7;getIncludedPermissions in interface RoleOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getIncludedPermissionsBytes(int index)
The names of the permissions this role grants when bound in an IAM policy.
repeated string included_permissions = 7;getIncludedPermissionsBytes in interface RoleOrBuilderindex - The index of the value to return.public Role.Builder setIncludedPermissions(int index, String value)
The names of the permissions this role grants when bound in an IAM policy.
repeated string included_permissions = 7;index - The index to set the value at.value - The includedPermissions to set.public Role.Builder addIncludedPermissions(String value)
The names of the permissions this role grants when bound in an IAM policy.
repeated string included_permissions = 7;value - The includedPermissions to add.public Role.Builder addAllIncludedPermissions(Iterable<String> values)
The names of the permissions this role grants when bound in an IAM policy.
repeated string included_permissions = 7;values - The includedPermissions to add.public Role.Builder clearIncludedPermissions()
The names of the permissions this role grants when bound in an IAM policy.
repeated string included_permissions = 7;public Role.Builder addIncludedPermissionsBytes(com.google.protobuf.ByteString value)
The names of the permissions this role grants when bound in an IAM policy.
repeated string included_permissions = 7;value - The bytes of the includedPermissions to add.public int getStageValue()
The current launch stage of the role. If the `ALPHA` launch stage has been selected for a role, the `stage` field will not be included in the returned definition for the role.
.google.iam.admin.v1.Role.RoleLaunchStage stage = 8;getStageValue in interface RoleOrBuilderpublic Role.Builder setStageValue(int value)
The current launch stage of the role. If the `ALPHA` launch stage has been selected for a role, the `stage` field will not be included in the returned definition for the role.
.google.iam.admin.v1.Role.RoleLaunchStage stage = 8;value - The enum numeric value on the wire for stage to set.public Role.RoleLaunchStage getStage()
The current launch stage of the role. If the `ALPHA` launch stage has been selected for a role, the `stage` field will not be included in the returned definition for the role.
.google.iam.admin.v1.Role.RoleLaunchStage stage = 8;getStage in interface RoleOrBuilderpublic Role.Builder setStage(Role.RoleLaunchStage value)
The current launch stage of the role. If the `ALPHA` launch stage has been selected for a role, the `stage` field will not be included in the returned definition for the role.
.google.iam.admin.v1.Role.RoleLaunchStage stage = 8;value - The stage to set.public Role.Builder clearStage()
The current launch stage of the role. If the `ALPHA` launch stage has been selected for a role, the `stage` field will not be included in the returned definition for the role.
.google.iam.admin.v1.Role.RoleLaunchStage stage = 8;public com.google.protobuf.ByteString getEtag()
Used to perform a consistent read-modify-write.
bytes etag = 9;getEtag in interface RoleOrBuilderpublic Role.Builder setEtag(com.google.protobuf.ByteString value)
Used to perform a consistent read-modify-write.
bytes etag = 9;value - The etag to set.public Role.Builder clearEtag()
Used to perform a consistent read-modify-write.
bytes etag = 9;public boolean getDeleted()
The current deleted state of the role. This field is read only. It will be ignored in calls to CreateRole and UpdateRole.
bool deleted = 11;getDeleted in interface RoleOrBuilderpublic Role.Builder setDeleted(boolean value)
The current deleted state of the role. This field is read only. It will be ignored in calls to CreateRole and UpdateRole.
bool deleted = 11;value - The deleted to set.public Role.Builder clearDeleted()
The current deleted state of the role. This field is read only. It will be ignored in calls to CreateRole and UpdateRole.
bool deleted = 11;public final Role.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Role.Builder>public final Role.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Role.Builder>Copyright © 2025 Google LLC. All rights reserved.