Package com.google.iam.admin.v1
Class Role
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.iam.admin.v1.Role
- All Implemented Interfaces:
RoleOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class Role
extends com.google.protobuf.GeneratedMessage
implements RoleOrBuilder
A role in the Identity and Access Management API.Protobuf type
google.iam.admin.v1.Role- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA role in the Identity and Access Management API.static enumA stage representing a role's lifecycle phase.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic RolebooleanThe current deleted state of the role.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.ByteStringgetEtag()Used to perform a consistent read-modify-write.getIncludedPermissions(int index) The names of the permissions this role grants when bound in an IAM policy.com.google.protobuf.ByteStringgetIncludedPermissionsBytes(int index) The names of the permissions this role grants when bound in an IAM policy.intThe names of the permissions this role grants when bound in an IAM policy.com.google.protobuf.ProtocolStringListThe names of the permissions this role grants when bound in an IAM policy.getName()The name of the role.com.google.protobuf.ByteStringThe name of the role.com.google.protobuf.Parser<Role>intgetStage()The current launch stage of the role.intThe current launch stage of the role.getTitle()Optional.com.google.protobuf.ByteStringOptional.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Role.Builderstatic Role.BuildernewBuilder(Role prototype) protected Role.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static RoleparseDelimitedFrom(InputStream input) static RoleparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RoleparseFrom(byte[] data) static RoleparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RoleparseFrom(com.google.protobuf.ByteString data) static RoleparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RoleparseFrom(com.google.protobuf.CodedInputStream input) static RoleparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RoleparseFrom(InputStream input) static RoleparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RoleparseFrom(ByteBuffer data) static RoleparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Role>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
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, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
TITLE_FIELD_NUMBER
public static final int TITLE_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
INCLUDED_PERMISSIONS_FIELD_NUMBER
public static final int INCLUDED_PERMISSIONS_FIELD_NUMBER- See Also:
-
STAGE_FIELD_NUMBER
public static final int STAGE_FIELD_NUMBER- See Also:
-
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER- See Also:
-
DELETED_FIELD_NUMBER
public static final int DELETED_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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;- Specified by:
getNamein interfaceRoleOrBuilder- Returns:
- The name.
-
getNameBytes
public 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;- Specified by:
getNameBytesin interfaceRoleOrBuilder- Returns:
- The bytes for name.
-
getTitle
Optional. A human-readable title for the role. Typically this is limited to 100 UTF-8 bytes.
string title = 2;- Specified by:
getTitlein interfaceRoleOrBuilder- Returns:
- The title.
-
getTitleBytes
public 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;- Specified by:
getTitleBytesin interfaceRoleOrBuilder- Returns:
- The bytes for title.
-
getDescription
Optional. A human-readable description for the role.
string description = 3;- Specified by:
getDescriptionin interfaceRoleOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Optional. A human-readable description for the role.
string description = 3;- Specified by:
getDescriptionBytesin interfaceRoleOrBuilder- Returns:
- The bytes for description.
-
getIncludedPermissionsList
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;- Specified by:
getIncludedPermissionsListin interfaceRoleOrBuilder- Returns:
- A list containing the includedPermissions.
-
getIncludedPermissionsCount
public int getIncludedPermissionsCount()The names of the permissions this role grants when bound in an IAM policy.
repeated string included_permissions = 7;- Specified by:
getIncludedPermissionsCountin interfaceRoleOrBuilder- Returns:
- The count of includedPermissions.
-
getIncludedPermissions
The names of the permissions this role grants when bound in an IAM policy.
repeated string included_permissions = 7;- Specified by:
getIncludedPermissionsin interfaceRoleOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The includedPermissions at the given index.
-
getIncludedPermissionsBytes
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;- Specified by:
getIncludedPermissionsBytesin interfaceRoleOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the includedPermissions at the given index.
-
getStageValue
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;- Specified by:
getStageValuein interfaceRoleOrBuilder- Returns:
- The enum numeric value on the wire for stage.
-
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;- Specified by:
getStagein interfaceRoleOrBuilder- Returns:
- The stage.
-
getEtag
public com.google.protobuf.ByteString getEtag()Used to perform a consistent read-modify-write.
bytes etag = 9;- Specified by:
getEtagin interfaceRoleOrBuilder- Returns:
- The etag.
-
getDeleted
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;- Specified by:
getDeletedin interfaceRoleOrBuilder- Returns:
- The deleted.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Role parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Role parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Role parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Role parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Role parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Role parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Role parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Role parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
- Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-