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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Permission.Builder> implements PermissionOrBuilder
A permission which can be included by a role.
Protobuf typegoogle.iam.admin.v1.Permission
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.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.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(Permission other)
Permission.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Permission.Builder
mergeFrom(com.google.protobuf.Message 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.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)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Permission.Builder>
-
clear
public Permission.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Permission.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Permission.Builder>
-
getDefaultInstanceForType
public Permission getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Permission build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Permission buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Permission.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Permission.Builder>
-
setField
public Permission.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Permission.Builder>
-
clearField
public Permission.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Permission.Builder>
-
clearOneof
public Permission.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Permission.Builder>
-
setRepeatedField
public Permission.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Permission.Builder>
-
addRepeatedField
public Permission.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Permission.Builder>
-
mergeFrom
public Permission.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Permission.Builder>
-
mergeFrom
public Permission.Builder mergeFrom(Permission other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Permission.Builder>
-
mergeFrom
public Permission.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Permission.Builder>
- Throws:
IOException
-
getName
public String getName()
The name of this Permission.
string name = 1;
- Specified by:
getName
in interfacePermissionOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The name of this Permission.
string name = 1;
- Specified by:
getNameBytes
in interfacePermissionOrBuilder
- Returns:
- The bytes for name.
-
setName
public Permission.Builder setName(String value)
The name of this Permission.
string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Permission.Builder clearName()
The name of this Permission.
string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
public Permission.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of this Permission.
string name = 1;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getTitle
public String getTitle()
The title of this Permission.
string title = 2;
- Specified by:
getTitle
in interfacePermissionOrBuilder
- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()
The title of this Permission.
string title = 2;
- Specified by:
getTitleBytes
in interfacePermissionOrBuilder
- Returns:
- The bytes for title.
-
setTitle
public Permission.Builder setTitle(String value)
The title of this Permission.
string title = 2;
- Parameters:
value
- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
public Permission.Builder clearTitle()
The title of this Permission.
string title = 2;
- Returns:
- This builder for chaining.
-
setTitleBytes
public Permission.Builder setTitleBytes(com.google.protobuf.ByteString value)
The title of this Permission.
string title = 2;
- Parameters:
value
- The bytes for title to set.- Returns:
- This builder for chaining.
-
getDescription
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;
- Specified by:
getDescription
in 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:
getDescriptionBytes
in interfacePermissionOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public 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;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
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;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
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;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
getOnlyInPredefinedRoles
@Deprecated public boolean 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:
getOnlyInPredefinedRoles
in interfacePermissionOrBuilder
- Returns:
- The onlyInPredefinedRoles.
-
setOnlyInPredefinedRoles
@Deprecated public 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=1450bool only_in_predefined_roles = 4 [deprecated = true];
- Parameters:
value
- The onlyInPredefinedRoles to set.- Returns:
- This builder for chaining.
-
clearOnlyInPredefinedRoles
@Deprecated public Permission.Builder 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:
getStageValue
in interfacePermissionOrBuilder
- Returns:
- The enum numeric value on the wire for stage.
-
setStageValue
public Permission.Builder setStageValue(int value)
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
public Permission.PermissionLaunchStage getStage()
The current launch stage of the permission.
.google.iam.admin.v1.Permission.PermissionLaunchStage stage = 5;
- Specified by:
getStage
in interfacePermissionOrBuilder
- Returns:
- The stage.
-
setStage
public Permission.Builder setStage(Permission.PermissionLaunchStage value)
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
public Permission.Builder 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:
getCustomRolesSupportLevelValue
in interfacePermissionOrBuilder
- Returns:
- The enum numeric value on the wire for customRolesSupportLevel.
-
setCustomRolesSupportLevelValue
public Permission.Builder setCustomRolesSupportLevelValue(int value)
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
public Permission.CustomRolesSupportLevel getCustomRolesSupportLevel()
The current custom role support level.
.google.iam.admin.v1.Permission.CustomRolesSupportLevel custom_roles_support_level = 6;
- Specified by:
getCustomRolesSupportLevel
in interfacePermissionOrBuilder
- Returns:
- The customRolesSupportLevel.
-
setCustomRolesSupportLevel
public Permission.Builder setCustomRolesSupportLevel(Permission.CustomRolesSupportLevel value)
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
public Permission.Builder 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:
getApiDisabled
in interfacePermissionOrBuilder
- Returns:
- The apiDisabled.
-
setApiDisabled
public Permission.Builder setApiDisabled(boolean value)
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
public Permission.Builder clearApiDisabled()
The service API associated with the permission is not enabled.
bool api_disabled = 7;
- Returns:
- This builder for chaining.
-
getPrimaryPermission
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;
- Specified by:
getPrimaryPermission
in 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:
getPrimaryPermissionBytes
in interfacePermissionOrBuilder
- Returns:
- The bytes for primaryPermission.
-
setPrimaryPermission
public 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;
- Parameters:
value
- The primaryPermission to set.- Returns:
- This builder for chaining.
-
clearPrimaryPermission
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;
- Returns:
- This builder for chaining.
-
setPrimaryPermissionBytes
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;
- Parameters:
value
- The bytes for primaryPermission to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Permission.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Permission.Builder>
-
mergeUnknownFields
public final Permission.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Permission.Builder>
-
-