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 Summary
Modifier and TypeMethodDescriptionbuild()clear()The new email address for the user.clearId()The unique identifier (UUID) of the user to update.The new role to assign to the user.The new username for the user.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEmail()The new email address for the user.com.google.protobuf.ByteStringThe new email address for the user.getId()The unique identifier (UUID) of the user to update.com.google.protobuf.ByteStringThe unique identifier (UUID) of the user to update.getRole()The new role to assign to the user.intThe new role to assign to the user.The new username for the user.com.google.protobuf.ByteStringThe new username for the user.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(UpdateUserRequest other) The new email address for the user.setEmailBytes(com.google.protobuf.ByteString value) The new email address for the user.The unique identifier (UUID) of the user to update.setIdBytes(com.google.protobuf.ByteString value) The unique identifier (UUID) of the user to update.The new role to assign to the user.setRoleValue(int value) The new role to assign to the user.setUsername(String value) The new username for the user.setUsernameBytes(com.google.protobuf.ByteString value) The new username for the user.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<UpdateUserRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<UpdateUserRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<UpdateUserRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UpdateUserRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UpdateUserRequest.Builder>- Throws:
IOException
-
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:
getIdin interfaceUpdateUserRequestOrBuilder- 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:
getIdBytesin interfaceUpdateUserRequestOrBuilder- Returns:
- The bytes for id.
-
setId
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
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
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
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:
getUsernamein interfaceUpdateUserRequestOrBuilder- 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:
getUsernameBytesin interfaceUpdateUserRequestOrBuilder- Returns:
- The bytes for username.
-
setUsername
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
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
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:
getRoleValuein interfaceUpdateUserRequestOrBuilder- Returns:
- The enum numeric value on the wire for role.
-
setRoleValue
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
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:
getRolein interfaceUpdateUserRequestOrBuilder- Returns:
- The role.
-
setRole
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
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
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:
getEmailin interfaceUpdateUserRequestOrBuilder- 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:
getEmailBytesin interfaceUpdateUserRequestOrBuilder- Returns:
- The bytes for email.
-
setEmail
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
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
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.
-