Package com.google.iam.admin.v1
Class Role.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Role.Builder>
com.google.iam.admin.v1.Role.Builder
- All Implemented Interfaces:
RoleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Role
public static final class Role.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Role.Builder>
implements RoleOrBuilder
A role in the Identity and Access Management API.Protobuf type
google.iam.admin.v1.Role-
Method Summary
Modifier and TypeMethodDescriptionaddAllIncludedPermissions(Iterable<String> values) The names of the permissions this role grants when bound in an IAM policy.addIncludedPermissions(String value) The names of the permissions this role grants when bound in an IAM policy.addIncludedPermissionsBytes(com.google.protobuf.ByteString value) The names of the permissions this role grants when bound in an IAM policy.build()clear()The current deleted state of the role.Optional.Used to perform a consistent read-modify-write.The names of the permissions this role grants when bound in an IAM policy.The name of the role.The current launch stage of the role.Optional.booleanThe current deleted state of the role.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.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.getStage()The current launch stage of the role.intThe current launch stage of the role.getTitle()Optional.com.google.protobuf.ByteStringOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDeleted(boolean value) The current deleted state of the role.setDescription(String value) Optional.setDescriptionBytes(com.google.protobuf.ByteString value) Optional.setEtag(com.google.protobuf.ByteString value) Used to perform a consistent read-modify-write.setIncludedPermissions(int index, String value) The names of the permissions this role grants when bound in an IAM policy.The name of the role.setNameBytes(com.google.protobuf.ByteString value) The name of the role.setStage(Role.RoleLaunchStage value) The current launch stage of the role.setStageValue(int value) The current launch stage of the role.Optional.setTitleBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<Role.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Role.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Role.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Role.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Role.Builder>
-
mergeFrom
public Role.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Role.Builder>- Throws:
IOException
-
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.
-
setName
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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setNameBytes
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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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.
-
setTitle
Optional. A human-readable title for the role. Typically this is limited to 100 UTF-8 bytes.
string title = 2;- Parameters:
value- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
Optional. A human-readable title for the role. Typically this is limited to 100 UTF-8 bytes.
string title = 2;- Returns:
- This builder for chaining.
-
setTitleBytes
Optional. A human-readable title for the role. Typically this is limited to 100 UTF-8 bytes.
string title = 2;- Parameters:
value- The bytes for title to set.- Returns:
- This builder for chaining.
-
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.
-
setDescription
Optional. A human-readable description for the role.
string description = 3;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Optional. A human-readable description for the role.
string description = 3;- Returns:
- This builder for chaining.
-
setDescriptionBytes
Optional. A human-readable description for the role.
string description = 3;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
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.
-
setIncludedPermissions
The names of the permissions this role grants when bound in an IAM policy.
repeated string included_permissions = 7;- Parameters:
index- The index to set the value at.value- The includedPermissions to set.- Returns:
- This builder for chaining.
-
addIncludedPermissions
The names of the permissions this role grants when bound in an IAM policy.
repeated string included_permissions = 7;- Parameters:
value- The includedPermissions to add.- Returns:
- This builder for chaining.
-
addAllIncludedPermissions
The names of the permissions this role grants when bound in an IAM policy.
repeated string included_permissions = 7;- Parameters:
values- The includedPermissions to add.- Returns:
- This builder for chaining.
-
clearIncludedPermissions
The names of the permissions this role grants when bound in an IAM policy.
repeated string included_permissions = 7;- Returns:
- This builder for chaining.
-
addIncludedPermissionsBytes
The names of the permissions this role grants when bound in an IAM policy.
repeated string included_permissions = 7;- Parameters:
value- The bytes of the includedPermissions to add.- Returns:
- This builder for chaining.
-
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.
-
setStageValue
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;- Parameters:
value- The enum numeric value on the wire for stage to set.- Returns:
- This builder for chaining.
-
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.
-
setStage
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;- Parameters:
value- The stage to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
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.
-
setEtag
Used to perform a consistent read-modify-write.
bytes etag = 9;- Parameters:
value- The etag to set.- Returns:
- This builder for chaining.
-
clearEtag
Used to perform a consistent read-modify-write.
bytes etag = 9;- Returns:
- This builder for chaining.
-
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.
-
setDeleted
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;- Parameters:
value- The deleted to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-