Class 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 type google.iam.admin.v1.Permission
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public Permission.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Permission.Builder>
      • setField

        public Permission.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                           Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Permission.Builder>
      • clearField

        public Permission.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Permission.Builder>
      • clearOneof

        public Permission.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Permission.Builder>
      • addRepeatedField

        public Permission.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Permission.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 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
      • 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.
      • 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.
      • 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 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.
      • 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.
      • setUnknownFields

        public final Permission.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Permission.Builder>
      • mergeUnknownFields

        public final Permission.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Permission.Builder>