Class UserCreateRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<UserCreateRequest.Builder>
com.google.protobuf.GeneratedMessage.Builder<UserCreateRequest.Builder>
com.soulfiremc.grpc.generated.UserCreateRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, UserCreateRequestOrBuilder, Cloneable
Enclosing class:
UserCreateRequest

public static final class UserCreateRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<UserCreateRequest.Builder> implements UserCreateRequestOrBuilder
Request message for creating a new user account in the SoulFire system.
The created user will have no password; authentication is done via JWT tokens.
Protobuf type soulfire.v1.UserCreateRequest
  • 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<UserCreateRequest.Builder>
    • clear

      public UserCreateRequest.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<UserCreateRequest.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<UserCreateRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public UserCreateRequest.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<UserCreateRequest.Builder>
    • mergeFrom

      public UserCreateRequest.Builder mergeFrom(UserCreateRequest other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<UserCreateRequest.Builder>
    • mergeFrom

      public UserCreateRequest.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<UserCreateRequest.Builder>
      Throws:
      IOException
    • getUsername

      public String getUsername()
      The username for the new user.
      Must be lowercase, between 3 and 32 characters.
      Must begin with an alphanumeric character, followed by alphanumeric characters or dashes,
      and end with an alphanumeric character.
      Must be unique across all users.
      
      string username = 1;
      Specified by:
      getUsername in interface UserCreateRequestOrBuilder
      Returns:
      The username.
    • getUsernameBytes

      public com.google.protobuf.ByteString getUsernameBytes()
      The username for the new user.
      Must be lowercase, between 3 and 32 characters.
      Must begin with an alphanumeric character, followed by alphanumeric characters or dashes,
      and end with an alphanumeric character.
      Must be unique across all users.
      
      string username = 1;
      Specified by:
      getUsernameBytes in interface UserCreateRequestOrBuilder
      Returns:
      The bytes for username.
    • setUsername

      public UserCreateRequest.Builder setUsername(String value)
      The username for the new user.
      Must be lowercase, between 3 and 32 characters.
      Must begin with an alphanumeric character, followed by alphanumeric characters or dashes,
      and end with an alphanumeric character.
      Must be unique across all users.
      
      string username = 1;
      Parameters:
      value - The username to set.
      Returns:
      This builder for chaining.
    • clearUsername

      public UserCreateRequest.Builder clearUsername()
      The username for the new user.
      Must be lowercase, between 3 and 32 characters.
      Must begin with an alphanumeric character, followed by alphanumeric characters or dashes,
      and end with an alphanumeric character.
      Must be unique across all users.
      
      string username = 1;
      Returns:
      This builder for chaining.
    • setUsernameBytes

      public UserCreateRequest.Builder setUsernameBytes(com.google.protobuf.ByteString value)
      The username for the new user.
      Must be lowercase, between 3 and 32 characters.
      Must begin with an alphanumeric character, followed by alphanumeric characters or dashes,
      and end with an alphanumeric character.
      Must be unique across all users.
      
      string username = 1;
      Parameters:
      value - The bytes for username to set.
      Returns:
      This builder for chaining.
    • getRoleValue

      public int getRoleValue()
      The role to assign to the user. Determines what permissions the user has.
      ADMIN users have all permissions, while USER role has limited permissions
      controlled by server settings.
      
      .soulfire.v1.UserRole role = 2;
      Specified by:
      getRoleValue in interface UserCreateRequestOrBuilder
      Returns:
      The enum numeric value on the wire for role.
    • setRoleValue

      public UserCreateRequest.Builder setRoleValue(int value)
      The role to assign to the user. Determines what permissions the user has.
      ADMIN users have all permissions, while USER role has limited permissions
      controlled by server settings.
      
      .soulfire.v1.UserRole role = 2;
      Parameters:
      value - The enum numeric value on the wire for role to set.
      Returns:
      This builder for chaining.
    • getRole

      public UserRole getRole()
      The role to assign to the user. Determines what permissions the user has.
      ADMIN users have all permissions, while USER role has limited permissions
      controlled by server settings.
      
      .soulfire.v1.UserRole role = 2;
      Specified by:
      getRole in interface UserCreateRequestOrBuilder
      Returns:
      The role.
    • setRole

      public UserCreateRequest.Builder setRole(UserRole value)
      The role to assign to the user. Determines what permissions the user has.
      ADMIN users have all permissions, while USER role has limited permissions
      controlled by server settings.
      
      .soulfire.v1.UserRole role = 2;
      Parameters:
      value - The role to set.
      Returns:
      This builder for chaining.
    • clearRole

      public UserCreateRequest.Builder clearRole()
      The role to assign to the user. Determines what permissions the user has.
      ADMIN users have all permissions, while USER role has limited permissions
      controlled by server settings.
      
      .soulfire.v1.UserRole role = 2;
      Returns:
      This builder for chaining.
    • getEmail

      public String getEmail()
      The email address for the user.
      Must be a valid email format and unique across all users.
      Maximum length is 255 characters.
      
      string email = 3;
      Specified by:
      getEmail in interface UserCreateRequestOrBuilder
      Returns:
      The email.
    • getEmailBytes

      public com.google.protobuf.ByteString getEmailBytes()
      The email address for the user.
      Must be a valid email format and unique across all users.
      Maximum length is 255 characters.
      
      string email = 3;
      Specified by:
      getEmailBytes in interface UserCreateRequestOrBuilder
      Returns:
      The bytes for email.
    • setEmail

      public UserCreateRequest.Builder setEmail(String value)
      The email address for the user.
      Must be a valid email format and unique across all users.
      Maximum length is 255 characters.
      
      string email = 3;
      Parameters:
      value - The email to set.
      Returns:
      This builder for chaining.
    • clearEmail

      public UserCreateRequest.Builder clearEmail()
      The email address for the user.
      Must be a valid email format and unique across all users.
      Maximum length is 255 characters.
      
      string email = 3;
      Returns:
      This builder for chaining.
    • setEmailBytes

      public UserCreateRequest.Builder setEmailBytes(com.google.protobuf.ByteString value)
      The email address for the user.
      Must be a valid email format and unique across all users.
      Maximum length is 255 characters.
      
      string email = 3;
      Parameters:
      value - The bytes for email to set.
      Returns:
      This builder for chaining.