Class ClientDataResponse

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.soulfiremc.grpc.generated.ClientDataResponse
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ClientDataResponseOrBuilder, Serializable

@Generated public final class ClientDataResponse extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

  • 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
    • getId

      public String getId()
      The unique identifier (UUID) of the authenticated user.
      
      string id = 6;
      Specified by:
      getId in interface ClientDataResponseOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
      The unique identifier (UUID) of the authenticated user.
      
      string id = 6;
      Specified by:
      getIdBytes in interface ClientDataResponseOrBuilder
      Returns:
      The bytes for id.
    • getUsername

      public String getUsername()
      The display username of the authenticated user.
      
      string username = 1;
      Specified by:
      getUsername in interface ClientDataResponseOrBuilder
      Returns:
      The username.
    • getUsernameBytes

      public com.google.protobuf.ByteString getUsernameBytes()
      The display username of the authenticated user.
      
      string username = 1;
      Specified by:
      getUsernameBytes in interface ClientDataResponseOrBuilder
      Returns:
      The bytes for username.
    • 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:
      getRoleValue in interface ClientDataResponseOrBuilder
      Returns:
      The enum numeric value on the wire for role.
    • getRole

      public UserRole getRole()
      The role assigned to the user (ADMIN or USER), which determines base permission levels.
      
      .soulfire.v1.UserRole role = 7;
      Specified by:
      getRole in interface ClientDataResponseOrBuilder
      Returns:
      The role.
    • getEmail

      public String getEmail()
      The email address associated with the user account.
      
      string email = 8;
      Specified by:
      getEmail in interface ClientDataResponseOrBuilder
      Returns:
      The email.
    • getEmailBytes

      public com.google.protobuf.ByteString getEmailBytes()
      The email address associated with the user account.
      
      string email = 8;
      Specified by:
      getEmailBytes in interface ClientDataResponseOrBuilder
      Returns:
      The bytes for email.
    • getServerPermissionsList

      public List<GlobalPermissionState> 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:
      getServerPermissionsList in interface ClientDataResponseOrBuilder
    • getServerPermissionsOrBuilderList

      public List<? extends GlobalPermissionStateOrBuilder> 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:
      getServerPermissionsOrBuilderList in interface ClientDataResponseOrBuilder
    • 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:
      getServerPermissionsCount in interface ClientDataResponseOrBuilder
    • getServerPermissions

      public GlobalPermissionState getServerPermissions(int index)
      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:
      getServerPermissions in interface ClientDataResponseOrBuilder
    • getServerPermissionsOrBuilder

      public GlobalPermissionStateOrBuilder getServerPermissionsOrBuilder(int index)
      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:
      getServerPermissionsOrBuilder in interface ClientDataResponseOrBuilder
    • hasServerInfo

      public boolean hasServerInfo()
      Metadata about the server instance the client is connected to.
      
      .soulfire.v1.ServerInfo server_info = 11;
      Specified by:
      hasServerInfo in interface ClientDataResponseOrBuilder
      Returns:
      Whether the serverInfo field is set.
    • getServerInfo

      public ServerInfo getServerInfo()
      Metadata about the server instance the client is connected to.
      
      .soulfire.v1.ServerInfo server_info = 11;
      Specified by:
      getServerInfo in interface ClientDataResponseOrBuilder
      Returns:
      The serverInfo.
    • getServerInfoOrBuilder

      public ServerInfoOrBuilder getServerInfoOrBuilder()
      Metadata about the server instance the client is connected to.
      
      .soulfire.v1.ServerInfo server_info = 11;
      Specified by:
      getServerInfoOrBuilder in interface ClientDataResponseOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ClientDataResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ClientDataResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ClientDataResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ClientDataResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ClientDataResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ClientDataResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ClientDataResponse parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ClientDataResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ClientDataResponse parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ClientDataResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ClientDataResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ClientDataResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ClientDataResponse.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ClientDataResponse.Builder newBuilder()
    • newBuilder

      public static ClientDataResponse.Builder newBuilder(ClientDataResponse prototype)
    • toBuilder

      public ClientDataResponse.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ClientDataResponse.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ClientDataResponse getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ClientDataResponse> parser()
    • getParserForType

      public com.google.protobuf.Parser<ClientDataResponse> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ClientDataResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder