Class Permission.Builder (3.13.0)

public static final class Permission.Builder extends GeneratedMessageV3.Builder<Permission.Builder> implements PermissionOrBuilder

A permission which can be included by a role.

Protobuf type google.iam.admin.v1.Permission

Implements

PermissionOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Permission.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Permission.Builder
Overrides

build()

public Permission build()
Returns
TypeDescription
Permission

buildPartial()

public Permission buildPartial()
Returns
TypeDescription
Permission

clear()

public Permission.Builder clear()
Returns
TypeDescription
Permission.Builder
Overrides

clearApiDisabled()

public Permission.Builder clearApiDisabled()

The service API associated with the permission is not enabled.

bool api_disabled = 7;

Returns
TypeDescription
Permission.Builder

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
TypeDescription
Permission.Builder

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
TypeDescription
Permission.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Permission.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Permission.Builder
Overrides

clearName()

public Permission.Builder clearName()

The name of this Permission.

string name = 1;

Returns
TypeDescription
Permission.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Permission.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Permission.Builder
Overrides

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=1450

bool only_in_predefined_roles = 4 [deprecated = true];

Returns
TypeDescription
Permission.Builder

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
TypeDescription
Permission.Builder

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
TypeDescription
Permission.Builder

This builder for chaining.

clearTitle()

public Permission.Builder clearTitle()

The title of this Permission.

string title = 2;

Returns
TypeDescription
Permission.Builder

This builder for chaining.

clone()

public Permission.Builder clone()
Returns
TypeDescription
Permission.Builder
Overrides

getApiDisabled()

public boolean getApiDisabled()

The service API associated with the permission is not enabled.

bool api_disabled = 7;

Returns
TypeDescription
boolean

The apiDisabled.

getCustomRolesSupportLevel()

public Permission.CustomRolesSupportLevel getCustomRolesSupportLevel()

The current custom role support level.

.google.iam.admin.v1.Permission.CustomRolesSupportLevel custom_roles_support_level = 6;

Returns
TypeDescription
Permission.CustomRolesSupportLevel

The customRolesSupportLevel.

getCustomRolesSupportLevelValue()

public int getCustomRolesSupportLevelValue()

The current custom role support level.

.google.iam.admin.v1.Permission.CustomRolesSupportLevel custom_roles_support_level = 6;

Returns
TypeDescription
int

The enum numeric value on the wire for customRolesSupportLevel.

getDefaultInstanceForType()

public Permission getDefaultInstanceForType()
Returns
TypeDescription
Permission

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;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A brief description of what this Permission is used for. This permission can ONLY be used in predefined roles.

string description = 3;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

The name of this Permission.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of this Permission.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

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=1450

bool only_in_predefined_roles = 4 [deprecated = true];

Returns
TypeDescription
boolean

The onlyInPredefinedRoles.

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;

Returns
TypeDescription
String

The primaryPermission.

getPrimaryPermissionBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for primaryPermission.

getStage()

public Permission.PermissionLaunchStage getStage()

The current launch stage of the permission.

.google.iam.admin.v1.Permission.PermissionLaunchStage stage = 5;

Returns
TypeDescription
Permission.PermissionLaunchStage

The stage.

getStageValue()

public int getStageValue()

The current launch stage of the permission.

.google.iam.admin.v1.Permission.PermissionLaunchStage stage = 5;

Returns
TypeDescription
int

The enum numeric value on the wire for stage.

getTitle()

public String getTitle()

The title of this Permission.

string title = 2;

Returns
TypeDescription
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

The title of this Permission.

string title = 2;

Returns
TypeDescription
ByteString

The bytes for title.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Permission other)

public Permission.Builder mergeFrom(Permission other)
Parameter
NameDescription
otherPermission
Returns
TypeDescription
Permission.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Permission.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Permission.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Permission.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Permission.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Permission.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Permission.Builder
Overrides

setApiDisabled(boolean value)

public Permission.Builder setApiDisabled(boolean value)

The service API associated with the permission is not enabled.

bool api_disabled = 7;

Parameter
NameDescription
valueboolean

The apiDisabled to set.

Returns
TypeDescription
Permission.Builder

This builder for chaining.

setCustomRolesSupportLevel(Permission.CustomRolesSupportLevel value)

public Permission.Builder setCustomRolesSupportLevel(Permission.CustomRolesSupportLevel value)

The current custom role support level.

.google.iam.admin.v1.Permission.CustomRolesSupportLevel custom_roles_support_level = 6;

Parameter
NameDescription
valuePermission.CustomRolesSupportLevel

The customRolesSupportLevel to set.

Returns
TypeDescription
Permission.Builder

This builder for chaining.

setCustomRolesSupportLevelValue(int value)

public Permission.Builder setCustomRolesSupportLevelValue(int value)

The current custom role support level.

.google.iam.admin.v1.Permission.CustomRolesSupportLevel custom_roles_support_level = 6;

Parameter
NameDescription
valueint

The enum numeric value on the wire for customRolesSupportLevel to set.

Returns
TypeDescription
Permission.Builder

This builder for chaining.

setDescription(String value)

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;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Permission.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Permission.Builder setDescriptionBytes(ByteString value)

A brief description of what this Permission is used for. This permission can ONLY be used in predefined roles.

string description = 3;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Permission.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Permission.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Permission.Builder
Overrides

setName(String value)

public Permission.Builder setName(String value)

The name of this Permission.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Permission.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Permission.Builder setNameBytes(ByteString value)

The name of this Permission.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Permission.Builder

This builder for chaining.

setOnlyInPredefinedRoles(boolean value) (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=1450

bool only_in_predefined_roles = 4 [deprecated = true];

Parameter
NameDescription
valueboolean

The onlyInPredefinedRoles to set.

Returns
TypeDescription
Permission.Builder

This builder for chaining.

setPrimaryPermission(String value)

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;

Parameter
NameDescription
valueString

The primaryPermission to set.

Returns
TypeDescription
Permission.Builder

This builder for chaining.

setPrimaryPermissionBytes(ByteString value)

public Permission.Builder setPrimaryPermissionBytes(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;

Parameter
NameDescription
valueByteString

The bytes for primaryPermission to set.

Returns
TypeDescription
Permission.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Permission.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Permission.Builder
Overrides

setStage(Permission.PermissionLaunchStage value)

public Permission.Builder setStage(Permission.PermissionLaunchStage value)

The current launch stage of the permission.

.google.iam.admin.v1.Permission.PermissionLaunchStage stage = 5;

Parameter
NameDescription
valuePermission.PermissionLaunchStage

The stage to set.

Returns
TypeDescription
Permission.Builder

This builder for chaining.

setStageValue(int value)

public Permission.Builder setStageValue(int value)

The current launch stage of the permission.

.google.iam.admin.v1.Permission.PermissionLaunchStage stage = 5;

Parameter
NameDescription
valueint

The enum numeric value on the wire for stage to set.

Returns
TypeDescription
Permission.Builder

This builder for chaining.

setTitle(String value)

public Permission.Builder setTitle(String value)

The title of this Permission.

string title = 2;

Parameter
NameDescription
valueString

The title to set.

Returns
TypeDescription
Permission.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public Permission.Builder setTitleBytes(ByteString value)

The title of this Permission.

string title = 2;

Parameter
NameDescription
valueByteString

The bytes for title to set.

Returns
TypeDescription
Permission.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Permission.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Permission.Builder
Overrides