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 Summary
Modifier and TypeMethodDescriptionbuild()clear()The email address for the user.The role to assign to the user.The username for the new user.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEmail()The email address for the user.com.google.protobuf.ByteStringThe email address for the user.getRole()The role to assign to the user.intThe role to assign to the user.The username for the new user.com.google.protobuf.ByteStringThe username for the new 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(UserCreateRequest other) The email address for the user.setEmailBytes(com.google.protobuf.ByteString value) The email address for the user.The role to assign to the user.setRoleValue(int value) The role to assign to the user.setUsername(String value) The username for the new user.setUsernameBytes(com.google.protobuf.ByteString value) The username for the new 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<UserCreateRequest.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<UserCreateRequest.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<UserCreateRequest.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<UserCreateRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UserCreateRequest.Builder>- Throws:
IOException
-
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:
getUsernamein interfaceUserCreateRequestOrBuilder- 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:
getUsernameBytesin interfaceUserCreateRequestOrBuilder- Returns:
- The bytes for username.
-
setUsername
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
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
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:
getRoleValuein interfaceUserCreateRequestOrBuilder- Returns:
- The enum numeric value on the wire for role.
-
setRoleValue
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
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:
getRolein interfaceUserCreateRequestOrBuilder- Returns:
- The role.
-
setRole
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
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
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:
getEmailin interfaceUserCreateRequestOrBuilder- 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:
getEmailBytesin interfaceUserCreateRequestOrBuilder- Returns:
- The bytes for email.
-
setEmail
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
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
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.
-