Class UpdateUserRequest.Builder

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

public static final class UpdateUserRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<UpdateUserRequest.Builder> implements UpdateUserRequestOrBuilder
Request message for updating an existing user's profile information.
All fields except ID will be updated to the provided values.
Protobuf type soulfire.v1.UpdateUserRequest
  • 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<UpdateUserRequest.Builder>
    • clear

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

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

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

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

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

      public UpdateUserRequest.Builder mergeFrom(UpdateUserRequest other)
    • isInitialized

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

      public UpdateUserRequest.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<UpdateUserRequest.Builder>
      Throws:
      IOException
    • getId

      public String getId()
      The unique identifier (UUID) of the user to update.
      Cannot be the ID of the requesting user (cannot update self via this method).
      Cannot be the root user ID (00000000-0000-0000-0000-000000000000).
      
      string id = 1;
      Specified by:
      getId in interface UpdateUserRequestOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
      The unique identifier (UUID) of the user to update.
      Cannot be the ID of the requesting user (cannot update self via this method).
      Cannot be the root user ID (00000000-0000-0000-0000-000000000000).
      
      string id = 1;
      Specified by:
      getIdBytes in interface UpdateUserRequestOrBuilder
      Returns:
      The bytes for id.
    • setId

      public UpdateUserRequest.Builder setId(String value)
      The unique identifier (UUID) of the user to update.
      Cannot be the ID of the requesting user (cannot update self via this method).
      Cannot be the root user ID (00000000-0000-0000-0000-000000000000).
      
      string id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public UpdateUserRequest.Builder clearId()
      The unique identifier (UUID) of the user to update.
      Cannot be the ID of the requesting user (cannot update self via this method).
      Cannot be the root user ID (00000000-0000-0000-0000-000000000000).
      
      string id = 1;
      Returns:
      This builder for chaining.
    • setIdBytes

      public UpdateUserRequest.Builder setIdBytes(com.google.protobuf.ByteString value)
      The unique identifier (UUID) of the user to update.
      Cannot be the ID of the requesting user (cannot update self via this method).
      Cannot be the root user ID (00000000-0000-0000-0000-000000000000).
      
      string id = 1;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getUsername

      public String getUsername()
      The new username for the 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 = 2;
      Specified by:
      getUsername in interface UpdateUserRequestOrBuilder
      Returns:
      The username.
    • getUsernameBytes

      public com.google.protobuf.ByteString getUsernameBytes()
      The new username for the 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 = 2;
      Specified by:
      getUsernameBytes in interface UpdateUserRequestOrBuilder
      Returns:
      The bytes for username.
    • setUsername

      public UpdateUserRequest.Builder setUsername(String value)
      The new username for the 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 = 2;
      Parameters:
      value - The username to set.
      Returns:
      This builder for chaining.
    • clearUsername

      public UpdateUserRequest.Builder clearUsername()
      The new username for the 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 = 2;
      Returns:
      This builder for chaining.
    • setUsernameBytes

      public UpdateUserRequest.Builder setUsernameBytes(com.google.protobuf.ByteString value)
      The new username for the 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 = 2;
      Parameters:
      value - The bytes for username to set.
      Returns:
      This builder for chaining.
    • getRoleValue

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

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

      public UserRole getRole()
      The new role to assign to the user.
      ADMIN users have all permissions, while USER role has limited permissions.
      
      .soulfire.v1.UserRole role = 3;
      Specified by:
      getRole in interface UpdateUserRequestOrBuilder
      Returns:
      The role.
    • setRole

      public UpdateUserRequest.Builder setRole(UserRole value)
      The new role to assign to the user.
      ADMIN users have all permissions, while USER role has limited permissions.
      
      .soulfire.v1.UserRole role = 3;
      Parameters:
      value - The role to set.
      Returns:
      This builder for chaining.
    • clearRole

      public UpdateUserRequest.Builder clearRole()
      The new role to assign to the user.
      ADMIN users have all permissions, while USER role has limited permissions.
      
      .soulfire.v1.UserRole role = 3;
      Returns:
      This builder for chaining.
    • getEmail

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

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

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

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

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