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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Permission.Builder>
    • clear

      public Permission.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Permission.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Permission.Builder>
    • getDefaultInstanceForType

      public Permission getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Permission build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Permission buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Permission.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Permission.Builder>
    • mergeFrom

      public Permission.Builder mergeFrom(Permission other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Permission.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The name of this Permission.
       
      string name = 1;
      Specified by:
      getName in interface PermissionOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of this Permission.
       
      string name = 1;
      Specified by:
      getNameBytes in interface PermissionOrBuilder
      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 interface PermissionOrBuilder
      Returns:
      The title.
    • getTitleBytes

      public com.google.protobuf.ByteString getTitleBytes()
       The title of this Permission.
       
      string title = 2;
      Specified by:
      getTitleBytes in interface PermissionOrBuilder
      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 interface PermissionOrBuilder
      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 interface PermissionOrBuilder
      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=1450
      bool only_in_predefined_roles = 4 [deprecated = true];
      Specified by:
      getOnlyInPredefinedRoles in interface PermissionOrBuilder
      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=1450
      bool 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=1450
      bool 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 interface PermissionOrBuilder
      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

       The current launch stage of the permission.
       
      .google.iam.admin.v1.Permission.PermissionLaunchStage stage = 5;
      Specified by:
      getStage in interface PermissionOrBuilder
      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

      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 interface PermissionOrBuilder
      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 interface PermissionOrBuilder
      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 interface PermissionOrBuilder
      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 interface PermissionOrBuilder
      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 interface PermissionOrBuilder
      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.