Package com.google.iam.admin.v1
Class Permission.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Permission.Builder>
com.google.iam.admin.v1.Permission.Builder
- All Implemented Interfaces:
PermissionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Permission
public static final class Permission.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Permission.Builder>
implements PermissionOrBuilder
A permission which can be included by a role.Protobuf type
google.iam.admin.v1.Permission-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The service API associated with the permission is not enabled.The current custom role support level.A brief description of what this Permission is used for.The name of this Permission.Deprecated.google.iam.admin.v1.Permission.only_in_predefined_roles is deprecated.The preferred name for this permission.The current launch stage of the permission.The title of this Permission.booleanThe service API associated with the permission is not enabled.The current custom role support level.intThe current custom role support level.A brief description of what this Permission is used for.com.google.protobuf.ByteStringA brief description of what this Permission is used for.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()The name of this Permission.com.google.protobuf.ByteStringThe name of this Permission.booleanDeprecated.google.iam.admin.v1.Permission.only_in_predefined_roles is deprecated.The preferred name for this permission.com.google.protobuf.ByteStringThe preferred name for this permission.getStage()The current launch stage of the permission.intThe current launch stage of the permission.getTitle()The title of this Permission.com.google.protobuf.ByteStringThe title of this Permission.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Permission other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setApiDisabled(boolean value) The service API associated with the permission is not enabled.The current custom role support level.setCustomRolesSupportLevelValue(int value) The current custom role support level.setDescription(String value) A brief description of what this Permission is used for.setDescriptionBytes(com.google.protobuf.ByteString value) A brief description of what this Permission is used for.The name of this Permission.setNameBytes(com.google.protobuf.ByteString value) The name of this Permission.setOnlyInPredefinedRoles(boolean value) Deprecated.google.iam.admin.v1.Permission.only_in_predefined_roles is deprecated.setPrimaryPermission(String value) The preferred name for this permission.setPrimaryPermissionBytes(com.google.protobuf.ByteString value) The preferred name for this permission.The current launch stage of the permission.setStageValue(int value) The current launch stage of the permission.The title of this Permission.setTitleBytes(com.google.protobuf.ByteString value) The title of this Permission.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<Permission.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<Permission.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<Permission.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<Permission.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Permission.Builder>
-
mergeFrom
public Permission.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<Permission.Builder>- Throws:
IOException
-
getName
The name of this Permission.
string name = 1;- Specified by:
getNamein interfacePermissionOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of this Permission.
string name = 1;- Specified by:
getNameBytesin interfacePermissionOrBuilder- Returns:
- The bytes for name.
-
setName
The name of this Permission.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of this Permission.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The name of this Permission.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getTitle
The title of this Permission.
string title = 2;- Specified by:
getTitlein interfacePermissionOrBuilder- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()The title of this Permission.
string title = 2;- Specified by:
getTitleBytesin interfacePermissionOrBuilder- Returns:
- The bytes for title.
-
setTitle
The title of this Permission.
string title = 2;- Parameters:
value- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
The title of this Permission.
string title = 2;- Returns:
- This builder for chaining.
-
setTitleBytes
The title of this Permission.
string title = 2;- Parameters:
value- The bytes for title to set.- Returns:
- This builder for chaining.
-
getDescription
A brief description of what this Permission is used for. This permission can ONLY be used in predefined roles.
string description = 3;- Specified by:
getDescriptionin interfacePermissionOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public 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;- Specified by:
getDescriptionBytesin interfacePermissionOrBuilder- Returns:
- The bytes for description.
-
setDescription
A brief description of what this Permission is used for. This permission can ONLY be used in predefined roles.
string description = 3;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
A brief description of what this Permission is used for. This permission can ONLY be used in predefined roles.
string description = 3;- Returns:
- This builder for chaining.
-
setDescriptionBytes
A brief description of what this Permission is used for. This permission can ONLY be used in predefined roles.
string description = 3;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getOnlyInPredefinedRoles
Deprecated.google.iam.admin.v1.Permission.only_in_predefined_roles is deprecated. See google/iam/admin/v1/iam.proto;l=1450bool only_in_predefined_roles = 4 [deprecated = true];- Specified by:
getOnlyInPredefinedRolesin interfacePermissionOrBuilder- Returns:
- The onlyInPredefinedRoles.
-
setOnlyInPredefinedRoles
Deprecated.google.iam.admin.v1.Permission.only_in_predefined_roles is deprecated. See google/iam/admin/v1/iam.proto;l=1450bool only_in_predefined_roles = 4 [deprecated = true];- Parameters:
value- The onlyInPredefinedRoles to set.- Returns:
- This builder for chaining.
-
clearOnlyInPredefinedRoles
Deprecated.google.iam.admin.v1.Permission.only_in_predefined_roles is deprecated. See google/iam/admin/v1/iam.proto;l=1450bool only_in_predefined_roles = 4 [deprecated = true];- Returns:
- This builder for chaining.
-
getStageValue
public int getStageValue()The current launch stage of the permission.
.google.iam.admin.v1.Permission.PermissionLaunchStage stage = 5;- Specified by:
getStageValuein interfacePermissionOrBuilder- Returns:
- The enum numeric value on the wire for stage.
-
setStageValue
The current launch stage of the permission.
.google.iam.admin.v1.Permission.PermissionLaunchStage stage = 5;- 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 permission.
.google.iam.admin.v1.Permission.PermissionLaunchStage stage = 5;- Specified by:
getStagein interfacePermissionOrBuilder- Returns:
- The stage.
-
setStage
The current launch stage of the permission.
.google.iam.admin.v1.Permission.PermissionLaunchStage stage = 5;- Parameters:
value- The stage to set.- Returns:
- This builder for chaining.
-
clearStage
The current launch stage of the permission.
.google.iam.admin.v1.Permission.PermissionLaunchStage stage = 5;- Returns:
- This builder for chaining.
-
getCustomRolesSupportLevelValue
public int getCustomRolesSupportLevelValue()The current custom role support level.
.google.iam.admin.v1.Permission.CustomRolesSupportLevel custom_roles_support_level = 6;- Specified by:
getCustomRolesSupportLevelValuein interfacePermissionOrBuilder- Returns:
- The enum numeric value on the wire for customRolesSupportLevel.
-
setCustomRolesSupportLevelValue
The current custom role support level.
.google.iam.admin.v1.Permission.CustomRolesSupportLevel custom_roles_support_level = 6;- Parameters:
value- The enum numeric value on the wire for customRolesSupportLevel to set.- Returns:
- This builder for chaining.
-
getCustomRolesSupportLevel
The current custom role support level.
.google.iam.admin.v1.Permission.CustomRolesSupportLevel custom_roles_support_level = 6;- Specified by:
getCustomRolesSupportLevelin interfacePermissionOrBuilder- Returns:
- The customRolesSupportLevel.
-
setCustomRolesSupportLevel
The current custom role support level.
.google.iam.admin.v1.Permission.CustomRolesSupportLevel custom_roles_support_level = 6;- Parameters:
value- The customRolesSupportLevel to set.- Returns:
- This builder for chaining.
-
clearCustomRolesSupportLevel
The current custom role support level.
.google.iam.admin.v1.Permission.CustomRolesSupportLevel custom_roles_support_level = 6;- Returns:
- This builder for chaining.
-
getApiDisabled
public boolean getApiDisabled()The service API associated with the permission is not enabled.
bool api_disabled = 7;- Specified by:
getApiDisabledin interfacePermissionOrBuilder- Returns:
- The apiDisabled.
-
setApiDisabled
The service API associated with the permission is not enabled.
bool api_disabled = 7;- Parameters:
value- The apiDisabled to set.- Returns:
- This builder for chaining.
-
clearApiDisabled
The service API associated with the permission is not enabled.
bool api_disabled = 7;- Returns:
- This builder for chaining.
-
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;- Specified by:
getPrimaryPermissionin interfacePermissionOrBuilder- Returns:
- The primaryPermission.
-
getPrimaryPermissionBytes
public 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;- Specified by:
getPrimaryPermissionBytesin interfacePermissionOrBuilder- Returns:
- The bytes for primaryPermission.
-
setPrimaryPermission
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;- Parameters:
value- The primaryPermission to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setPrimaryPermissionBytes
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;- Parameters:
value- The bytes for primaryPermission to set.- Returns:
- This builder for chaining.
-