Class ClientDataResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ClientDataResponse.Builder>
com.google.protobuf.GeneratedMessage.Builder<ClientDataResponse.Builder>
com.soulfiremc.grpc.generated.ClientDataResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ClientDataResponseOrBuilder, Cloneable
- Enclosing class:
ClientDataResponse
public static final class ClientDataResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ClientDataResponse.Builder>
implements ClientDataResponseOrBuilder
Response containing comprehensive information about the authenticated client and server. This is typically called after authentication to populate the client UI with user details.Protobuf type
soulfire.v1.ClientDataResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllServerPermissions(Iterable<? extends GlobalPermissionState> values) A complete list of all global permissions and whether they are granted to this user.addServerPermissions(int index, GlobalPermissionState value) A complete list of all global permissions and whether they are granted to this user.addServerPermissions(int index, GlobalPermissionState.Builder builderForValue) A complete list of all global permissions and whether they are granted to this user.A complete list of all global permissions and whether they are granted to this user.addServerPermissions(GlobalPermissionState.Builder builderForValue) A complete list of all global permissions and whether they are granted to this user.A complete list of all global permissions and whether they are granted to this user.addServerPermissionsBuilder(int index) A complete list of all global permissions and whether they are granted to this user.build()clear()The email address associated with the user account.clearId()The unique identifier (UUID) of the authenticated user.The role assigned to the user (ADMIN or USER), which determines base permission levels.Metadata about the server instance the client is connected to.A complete list of all global permissions and whether they are granted to this user.The display username of the authenticated user.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEmail()The email address associated with the user account.com.google.protobuf.ByteStringThe email address associated with the user account.getId()The unique identifier (UUID) of the authenticated user.com.google.protobuf.ByteStringThe unique identifier (UUID) of the authenticated user.getRole()The role assigned to the user (ADMIN or USER), which determines base permission levels.intThe role assigned to the user (ADMIN or USER), which determines base permission levels.Metadata about the server instance the client is connected to.Metadata about the server instance the client is connected to.Metadata about the server instance the client is connected to.getServerPermissions(int index) A complete list of all global permissions and whether they are granted to this user.getServerPermissionsBuilder(int index) A complete list of all global permissions and whether they are granted to this user.A complete list of all global permissions and whether they are granted to this user.intA complete list of all global permissions and whether they are granted to this user.A complete list of all global permissions and whether they are granted to this user.getServerPermissionsOrBuilder(int index) A complete list of all global permissions and whether they are granted to this user.List<? extends GlobalPermissionStateOrBuilder> A complete list of all global permissions and whether they are granted to this user.The display username of the authenticated user.com.google.protobuf.ByteStringThe display username of the authenticated user.booleanMetadata about the server instance the client is connected to.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ClientDataResponse other) mergeServerInfo(ServerInfo value) Metadata about the server instance the client is connected to.removeServerPermissions(int index) A complete list of all global permissions and whether they are granted to this user.The email address associated with the user account.setEmailBytes(com.google.protobuf.ByteString value) The email address associated with the user account.The unique identifier (UUID) of the authenticated user.setIdBytes(com.google.protobuf.ByteString value) The unique identifier (UUID) of the authenticated user.The role assigned to the user (ADMIN or USER), which determines base permission levels.setRoleValue(int value) The role assigned to the user (ADMIN or USER), which determines base permission levels.setServerInfo(ServerInfo value) Metadata about the server instance the client is connected to.setServerInfo(ServerInfo.Builder builderForValue) Metadata about the server instance the client is connected to.setServerPermissions(int index, GlobalPermissionState value) A complete list of all global permissions and whether they are granted to this user.setServerPermissions(int index, GlobalPermissionState.Builder builderForValue) A complete list of all global permissions and whether they are granted to this user.setUsername(String value) The display username of the authenticated user.setUsernameBytes(com.google.protobuf.ByteString value) The display username of the authenticated 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<ClientDataResponse.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<ClientDataResponse.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<ClientDataResponse.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<ClientDataResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ClientDataResponse.Builder>
-
mergeFrom
public ClientDataResponse.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<ClientDataResponse.Builder>- Throws:
IOException
-
getId
The unique identifier (UUID) of the authenticated user.
string id = 6;- Specified by:
getIdin interfaceClientDataResponseOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()The unique identifier (UUID) of the authenticated user.
string id = 6;- Specified by:
getIdBytesin interfaceClientDataResponseOrBuilder- Returns:
- The bytes for id.
-
setId
The unique identifier (UUID) of the authenticated user.
string id = 6;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
The unique identifier (UUID) of the authenticated user.
string id = 6;- Returns:
- This builder for chaining.
-
setIdBytes
The unique identifier (UUID) of the authenticated user.
string id = 6;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
getUsername
The display username of the authenticated user.
string username = 1;- Specified by:
getUsernamein interfaceClientDataResponseOrBuilder- Returns:
- The username.
-
getUsernameBytes
public com.google.protobuf.ByteString getUsernameBytes()The display username of the authenticated user.
string username = 1;- Specified by:
getUsernameBytesin interfaceClientDataResponseOrBuilder- Returns:
- The bytes for username.
-
setUsername
The display username of the authenticated user.
string username = 1;- Parameters:
value- The username to set.- Returns:
- This builder for chaining.
-
clearUsername
The display username of the authenticated user.
string username = 1;- Returns:
- This builder for chaining.
-
setUsernameBytes
The display username of the authenticated user.
string username = 1;- Parameters:
value- The bytes for username to set.- Returns:
- This builder for chaining.
-
getRoleValue
public int getRoleValue()The role assigned to the user (ADMIN or USER), which determines base permission levels.
.soulfire.v1.UserRole role = 7;- Specified by:
getRoleValuein interfaceClientDataResponseOrBuilder- Returns:
- The enum numeric value on the wire for role.
-
setRoleValue
The role assigned to the user (ADMIN or USER), which determines base permission levels.
.soulfire.v1.UserRole role = 7;- Parameters:
value- The enum numeric value on the wire for role to set.- Returns:
- This builder for chaining.
-
getRole
The role assigned to the user (ADMIN or USER), which determines base permission levels.
.soulfire.v1.UserRole role = 7;- Specified by:
getRolein interfaceClientDataResponseOrBuilder- Returns:
- The role.
-
setRole
The role assigned to the user (ADMIN or USER), which determines base permission levels.
.soulfire.v1.UserRole role = 7;- Parameters:
value- The role to set.- Returns:
- This builder for chaining.
-
clearRole
The role assigned to the user (ADMIN or USER), which determines base permission levels.
.soulfire.v1.UserRole role = 7;- Returns:
- This builder for chaining.
-
getEmail
The email address associated with the user account.
string email = 8;- Specified by:
getEmailin interfaceClientDataResponseOrBuilder- Returns:
- The email.
-
getEmailBytes
public com.google.protobuf.ByteString getEmailBytes()The email address associated with the user account.
string email = 8;- Specified by:
getEmailBytesin interfaceClientDataResponseOrBuilder- Returns:
- The bytes for email.
-
setEmail
The email address associated with the user account.
string email = 8;- Parameters:
value- The email to set.- Returns:
- This builder for chaining.
-
clearEmail
The email address associated with the user account.
string email = 8;- Returns:
- This builder for chaining.
-
setEmailBytes
The email address associated with the user account.
string email = 8;- Parameters:
value- The bytes for email to set.- Returns:
- This builder for chaining.
-
getServerPermissionsList
A complete list of all global permissions and whether they are granted to this user. This allows the client to determine which features/actions are available.
repeated .soulfire.v1.GlobalPermissionState server_permissions = 2;- Specified by:
getServerPermissionsListin interfaceClientDataResponseOrBuilder
-
getServerPermissionsCount
public int getServerPermissionsCount()A complete list of all global permissions and whether they are granted to this user. This allows the client to determine which features/actions are available.
repeated .soulfire.v1.GlobalPermissionState server_permissions = 2;- Specified by:
getServerPermissionsCountin interfaceClientDataResponseOrBuilder
-
getServerPermissions
A complete list of all global permissions and whether they are granted to this user. This allows the client to determine which features/actions are available.
repeated .soulfire.v1.GlobalPermissionState server_permissions = 2;- Specified by:
getServerPermissionsin interfaceClientDataResponseOrBuilder
-
setServerPermissions
A complete list of all global permissions and whether they are granted to this user. This allows the client to determine which features/actions are available.
repeated .soulfire.v1.GlobalPermissionState server_permissions = 2; -
setServerPermissions
public ClientDataResponse.Builder setServerPermissions(int index, GlobalPermissionState.Builder builderForValue) A complete list of all global permissions and whether they are granted to this user. This allows the client to determine which features/actions are available.
repeated .soulfire.v1.GlobalPermissionState server_permissions = 2; -
addServerPermissions
A complete list of all global permissions and whether they are granted to this user. This allows the client to determine which features/actions are available.
repeated .soulfire.v1.GlobalPermissionState server_permissions = 2; -
addServerPermissions
A complete list of all global permissions and whether they are granted to this user. This allows the client to determine which features/actions are available.
repeated .soulfire.v1.GlobalPermissionState server_permissions = 2; -
addServerPermissions
public ClientDataResponse.Builder addServerPermissions(GlobalPermissionState.Builder builderForValue) A complete list of all global permissions and whether they are granted to this user. This allows the client to determine which features/actions are available.
repeated .soulfire.v1.GlobalPermissionState server_permissions = 2; -
addServerPermissions
public ClientDataResponse.Builder addServerPermissions(int index, GlobalPermissionState.Builder builderForValue) A complete list of all global permissions and whether they are granted to this user. This allows the client to determine which features/actions are available.
repeated .soulfire.v1.GlobalPermissionState server_permissions = 2; -
addAllServerPermissions
public ClientDataResponse.Builder addAllServerPermissions(Iterable<? extends GlobalPermissionState> values) A complete list of all global permissions and whether they are granted to this user. This allows the client to determine which features/actions are available.
repeated .soulfire.v1.GlobalPermissionState server_permissions = 2; -
clearServerPermissions
A complete list of all global permissions and whether they are granted to this user. This allows the client to determine which features/actions are available.
repeated .soulfire.v1.GlobalPermissionState server_permissions = 2; -
removeServerPermissions
A complete list of all global permissions and whether they are granted to this user. This allows the client to determine which features/actions are available.
repeated .soulfire.v1.GlobalPermissionState server_permissions = 2; -
getServerPermissionsBuilder
A complete list of all global permissions and whether they are granted to this user. This allows the client to determine which features/actions are available.
repeated .soulfire.v1.GlobalPermissionState server_permissions = 2; -
getServerPermissionsOrBuilder
A complete list of all global permissions and whether they are granted to this user. This allows the client to determine which features/actions are available.
repeated .soulfire.v1.GlobalPermissionState server_permissions = 2;- Specified by:
getServerPermissionsOrBuilderin interfaceClientDataResponseOrBuilder
-
getServerPermissionsOrBuilderList
A complete list of all global permissions and whether they are granted to this user. This allows the client to determine which features/actions are available.
repeated .soulfire.v1.GlobalPermissionState server_permissions = 2;- Specified by:
getServerPermissionsOrBuilderListin interfaceClientDataResponseOrBuilder
-
addServerPermissionsBuilder
A complete list of all global permissions and whether they are granted to this user. This allows the client to determine which features/actions are available.
repeated .soulfire.v1.GlobalPermissionState server_permissions = 2; -
addServerPermissionsBuilder
A complete list of all global permissions and whether they are granted to this user. This allows the client to determine which features/actions are available.
repeated .soulfire.v1.GlobalPermissionState server_permissions = 2; -
getServerPermissionsBuilderList
A complete list of all global permissions and whether they are granted to this user. This allows the client to determine which features/actions are available.
repeated .soulfire.v1.GlobalPermissionState server_permissions = 2; -
hasServerInfo
public boolean hasServerInfo()Metadata about the server instance the client is connected to.
.soulfire.v1.ServerInfo server_info = 11;- Specified by:
hasServerInfoin interfaceClientDataResponseOrBuilder- Returns:
- Whether the serverInfo field is set.
-
getServerInfo
Metadata about the server instance the client is connected to.
.soulfire.v1.ServerInfo server_info = 11;- Specified by:
getServerInfoin interfaceClientDataResponseOrBuilder- Returns:
- The serverInfo.
-
setServerInfo
Metadata about the server instance the client is connected to.
.soulfire.v1.ServerInfo server_info = 11; -
setServerInfo
Metadata about the server instance the client is connected to.
.soulfire.v1.ServerInfo server_info = 11; -
mergeServerInfo
Metadata about the server instance the client is connected to.
.soulfire.v1.ServerInfo server_info = 11; -
clearServerInfo
Metadata about the server instance the client is connected to.
.soulfire.v1.ServerInfo server_info = 11; -
getServerInfoBuilder
Metadata about the server instance the client is connected to.
.soulfire.v1.ServerInfo server_info = 11; -
getServerInfoOrBuilder
Metadata about the server instance the client is connected to.
.soulfire.v1.ServerInfo server_info = 11;- Specified by:
getServerInfoOrBuilderin interfaceClientDataResponseOrBuilder
-