public final class Role extends com.google.protobuf.GeneratedMessageV3 implements RoleOrBuilder
A role in the Identity and Access Management API.Protobuf type
google.iam.admin.v1.Role| Modifier and Type | Class and Description |
|---|---|
static class |
Role.Builder
A role in the Identity and Access Management API.
|
static class |
Role.RoleLaunchStage
A stage representing a role's lifecycle phase.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DELETED_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
ETAG_FIELD_NUMBER |
static int |
INCLUDED_PERMISSIONS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
STAGE_FIELD_NUMBER |
static int |
TITLE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static Role |
getDefaultInstance() |
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.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.
|
com.google.protobuf.Parser<Role> |
getParserForType() |
int |
getSerializedSize() |
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.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Role.Builder |
newBuilder() |
static Role.Builder |
newBuilder(Role prototype) |
Role.Builder |
newBuilderForType() |
protected Role.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Role |
parseDelimitedFrom(InputStream input) |
static Role |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Role |
parseFrom(byte[] data) |
static Role |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Role |
parseFrom(ByteBuffer data) |
static Role |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Role |
parseFrom(com.google.protobuf.ByteString data) |
static Role |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Role |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Role |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Role |
parseFrom(InputStream input) |
static Role |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Role> |
parser() |
Role.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int TITLE_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int INCLUDED_PERMISSIONS_FIELD_NUMBER
public static final int STAGE_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
public static final int DELETED_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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 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.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 com.google.protobuf.ByteString getEtag()
Used to perform a consistent read-modify-write.
bytes etag = 9;getEtag in interface RoleOrBuilderpublic 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Role parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Role parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Role parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Role parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Role parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Role parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Role parseFrom(InputStream input) throws IOException
IOExceptionpublic static Role parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Role parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Role parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Role parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Role parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Role.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Role.Builder newBuilder()
public static Role.Builder newBuilder(Role prototype)
public Role.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Role.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Role getDefaultInstance()
public static com.google.protobuf.Parser<Role> parser()
public com.google.protobuf.Parser<Role> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Role getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.