public static final class Permission.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Permission.Builder> implements PermissionOrBuilder
A permission which can be included by a role.Protobuf type
google.iam.admin.v1.Permission| Modifier and Type | Method and Description |
|---|---|
Permission.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Permission |
build() |
Permission |
buildPartial() |
Permission.Builder |
clear() |
Permission.Builder |
clearApiDisabled()
The service API associated with the permission is not enabled.
|
Permission.Builder |
clearCustomRolesSupportLevel()
The current custom role support level.
|
Permission.Builder |
clearDescription()
A brief description of what this Permission is used for.
|
Permission.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Permission.Builder |
clearName()
The name of this Permission.
|
Permission.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Permission.Builder |
clearOnlyInPredefinedRoles()
Deprecated.
google.iam.admin.v1.Permission.only_in_predefined_roles is deprecated. See
google/iam/admin/v1/iam.proto;l=1450
|
Permission.Builder |
clearPrimaryPermission()
The preferred name for this permission.
|
Permission.Builder |
clearStage()
The current launch stage of the permission.
|
Permission.Builder |
clearTitle()
The title of this Permission.
|
Permission.Builder |
clone() |
boolean |
getApiDisabled()
The service API associated with the permission is not enabled.
|
Permission.CustomRolesSupportLevel |
getCustomRolesSupportLevel()
The current custom role support level.
|
int |
getCustomRolesSupportLevelValue()
The current custom role support level.
|
Permission |
getDefaultInstanceForType() |
String |
getDescription()
A brief description of what this Permission is used for.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
A brief description of what this Permission is used for.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getName()
The name of this Permission.
|
com.google.protobuf.ByteString |
getNameBytes()
The name of this Permission.
|
boolean |
getOnlyInPredefinedRoles()
Deprecated.
google.iam.admin.v1.Permission.only_in_predefined_roles is deprecated. See
google/iam/admin/v1/iam.proto;l=1450
|
String |
getPrimaryPermission()
The preferred name for this permission.
|
com.google.protobuf.ByteString |
getPrimaryPermissionBytes()
The preferred name for this permission.
|
Permission.PermissionLaunchStage |
getStage()
The current launch stage of the permission.
|
int |
getStageValue()
The current launch stage of the permission.
|
String |
getTitle()
The title of this Permission.
|
com.google.protobuf.ByteString |
getTitleBytes()
The title of this Permission.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Permission.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Permission.Builder |
mergeFrom(com.google.protobuf.Message other) |
Permission.Builder |
mergeFrom(Permission other) |
Permission.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Permission.Builder |
setApiDisabled(boolean value)
The service API associated with the permission is not enabled.
|
Permission.Builder |
setCustomRolesSupportLevel(Permission.CustomRolesSupportLevel value)
The current custom role support level.
|
Permission.Builder |
setCustomRolesSupportLevelValue(int value)
The current custom role support level.
|
Permission.Builder |
setDescription(String value)
A brief description of what this Permission is used for.
|
Permission.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
A brief description of what this Permission is used for.
|
Permission.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Permission.Builder |
setName(String value)
The name of this Permission.
|
Permission.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The name of this Permission.
|
Permission.Builder |
setOnlyInPredefinedRoles(boolean value)
Deprecated.
google.iam.admin.v1.Permission.only_in_predefined_roles is deprecated. See
google/iam/admin/v1/iam.proto;l=1450
|
Permission.Builder |
setPrimaryPermission(String value)
The preferred name for this permission.
|
Permission.Builder |
setPrimaryPermissionBytes(com.google.protobuf.ByteString value)
The preferred name for this permission.
|
Permission.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Permission.Builder |
setStage(Permission.PermissionLaunchStage value)
The current launch stage of the permission.
|
Permission.Builder |
setStageValue(int value)
The current launch stage of the permission.
|
Permission.Builder |
setTitle(String value)
The title of this Permission.
|
Permission.Builder |
setTitleBytes(com.google.protobuf.ByteString value)
The title of this Permission.
|
Permission.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<Permission.Builder>public Permission.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Permission.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<Permission.Builder>public Permission getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Permission build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Permission buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Permission.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Permission.Builder>public Permission.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<Permission.Builder>public Permission.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Permission.Builder>public Permission.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Permission.Builder>public Permission.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<Permission.Builder>public Permission.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<Permission.Builder>public Permission.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Permission.Builder>public Permission.Builder mergeFrom(Permission other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Permission.Builder>public Permission.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<Permission.Builder>IOExceptionpublic String getName()
The name of this Permission.
string name = 1;getName in interface PermissionOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The name of this Permission.
string name = 1;getNameBytes in interface PermissionOrBuilderpublic Permission.Builder setName(String value)
The name of this Permission.
string name = 1;value - The name to set.public Permission.Builder clearName()
The name of this Permission.
string name = 1;public Permission.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of this Permission.
string name = 1;value - The bytes for name to set.public String getTitle()
The title of this Permission.
string title = 2;getTitle in interface PermissionOrBuilderpublic com.google.protobuf.ByteString getTitleBytes()
The title of this Permission.
string title = 2;getTitleBytes in interface PermissionOrBuilderpublic Permission.Builder setTitle(String value)
The title of this Permission.
string title = 2;value - The title to set.public Permission.Builder clearTitle()
The title of this Permission.
string title = 2;public Permission.Builder setTitleBytes(com.google.protobuf.ByteString value)
The title of this Permission.
string title = 2;value - The bytes for title to set.public String getDescription()
A brief description of what this Permission is used for. This permission can ONLY be used in predefined roles.
string description = 3;getDescription in interface PermissionOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
A brief description of what this Permission is used for. This permission can ONLY be used in predefined roles.
string description = 3;getDescriptionBytes in interface PermissionOrBuilderpublic Permission.Builder setDescription(String value)
A brief description of what this Permission is used for. This permission can ONLY be used in predefined roles.
string description = 3;value - The description to set.public Permission.Builder clearDescription()
A brief description of what this Permission is used for. This permission can ONLY be used in predefined roles.
string description = 3;public Permission.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
A brief description of what this Permission is used for. This permission can ONLY be used in predefined roles.
string description = 3;value - The bytes for description to set.@Deprecated public boolean getOnlyInPredefinedRoles()
bool only_in_predefined_roles = 4 [deprecated = true];getOnlyInPredefinedRoles in interface PermissionOrBuilder@Deprecated public Permission.Builder setOnlyInPredefinedRoles(boolean value)
bool only_in_predefined_roles = 4 [deprecated = true];value - The onlyInPredefinedRoles to set.@Deprecated public Permission.Builder clearOnlyInPredefinedRoles()
bool only_in_predefined_roles = 4 [deprecated = true];public int getStageValue()
The current launch stage of the permission.
.google.iam.admin.v1.Permission.PermissionLaunchStage stage = 5;getStageValue in interface PermissionOrBuilderpublic Permission.Builder setStageValue(int value)
The current launch stage of the permission.
.google.iam.admin.v1.Permission.PermissionLaunchStage stage = 5;value - The enum numeric value on the wire for stage to set.public Permission.PermissionLaunchStage getStage()
The current launch stage of the permission.
.google.iam.admin.v1.Permission.PermissionLaunchStage stage = 5;getStage in interface PermissionOrBuilderpublic Permission.Builder setStage(Permission.PermissionLaunchStage value)
The current launch stage of the permission.
.google.iam.admin.v1.Permission.PermissionLaunchStage stage = 5;value - The stage to set.public Permission.Builder clearStage()
The current launch stage of the permission.
.google.iam.admin.v1.Permission.PermissionLaunchStage stage = 5;public int getCustomRolesSupportLevelValue()
The current custom role support level.
.google.iam.admin.v1.Permission.CustomRolesSupportLevel custom_roles_support_level = 6;
getCustomRolesSupportLevelValue in interface PermissionOrBuilderpublic Permission.Builder setCustomRolesSupportLevelValue(int value)
The current custom role support level.
.google.iam.admin.v1.Permission.CustomRolesSupportLevel custom_roles_support_level = 6;
value - The enum numeric value on the wire for customRolesSupportLevel to set.public Permission.CustomRolesSupportLevel getCustomRolesSupportLevel()
The current custom role support level.
.google.iam.admin.v1.Permission.CustomRolesSupportLevel custom_roles_support_level = 6;
getCustomRolesSupportLevel in interface PermissionOrBuilderpublic Permission.Builder setCustomRolesSupportLevel(Permission.CustomRolesSupportLevel value)
The current custom role support level.
.google.iam.admin.v1.Permission.CustomRolesSupportLevel custom_roles_support_level = 6;
value - The customRolesSupportLevel to set.public Permission.Builder clearCustomRolesSupportLevel()
The current custom role support level.
.google.iam.admin.v1.Permission.CustomRolesSupportLevel custom_roles_support_level = 6;
public boolean getApiDisabled()
The service API associated with the permission is not enabled.
bool api_disabled = 7;getApiDisabled in interface PermissionOrBuilderpublic Permission.Builder setApiDisabled(boolean value)
The service API associated with the permission is not enabled.
bool api_disabled = 7;value - The apiDisabled to set.public Permission.Builder clearApiDisabled()
The service API associated with the permission is not enabled.
bool api_disabled = 7;public String getPrimaryPermission()
The preferred name for this permission. If present, then this permission is an alias of, and equivalent to, the listed primary_permission.
string primary_permission = 8;getPrimaryPermission in interface PermissionOrBuilderpublic com.google.protobuf.ByteString getPrimaryPermissionBytes()
The preferred name for this permission. If present, then this permission is an alias of, and equivalent to, the listed primary_permission.
string primary_permission = 8;getPrimaryPermissionBytes in interface PermissionOrBuilderpublic Permission.Builder setPrimaryPermission(String value)
The preferred name for this permission. If present, then this permission is an alias of, and equivalent to, the listed primary_permission.
string primary_permission = 8;value - The primaryPermission to set.public Permission.Builder clearPrimaryPermission()
The preferred name for this permission. If present, then this permission is an alias of, and equivalent to, the listed primary_permission.
string primary_permission = 8;public Permission.Builder setPrimaryPermissionBytes(com.google.protobuf.ByteString value)
The preferred name for this permission. If present, then this permission is an alias of, and equivalent to, the listed primary_permission.
string primary_permission = 8;value - The bytes for primaryPermission to set.public final Permission.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Permission.Builder>public final Permission.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Permission.Builder>Copyright © 2025 Google LLC. All rights reserved.