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

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

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

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

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

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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<ClientDataResponse.Builder>
      Throws:
      IOException
    • 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.
    • setId

      public ClientDataResponse.Builder setId(String value)
      The unique identifier (UUID) of the authenticated user.
      
      string id = 6;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public ClientDataResponse.Builder clearId()
      The unique identifier (UUID) of the authenticated user.
      
      string id = 6;
      Returns:
      This builder for chaining.
    • setIdBytes

      public ClientDataResponse.Builder setIdBytes(com.google.protobuf.ByteString value)
      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

      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.
    • setUsername

      public ClientDataResponse.Builder setUsername(String value)
      The display username of the authenticated user.
      
      string username = 1;
      Parameters:
      value - The username to set.
      Returns:
      This builder for chaining.
    • clearUsername

      public ClientDataResponse.Builder clearUsername()
      The display username of the authenticated user.
      
      string username = 1;
      Returns:
      This builder for chaining.
    • setUsernameBytes

      public ClientDataResponse.Builder setUsernameBytes(com.google.protobuf.ByteString value)
      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:
      getRoleValue in interface ClientDataResponseOrBuilder
      Returns:
      The enum numeric value on the wire for role.
    • setRoleValue

      public ClientDataResponse.Builder setRoleValue(int value)
      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

      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.
    • setRole

      public ClientDataResponse.Builder setRole(UserRole value)
      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

      public ClientDataResponse.Builder 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

      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.
    • setEmail

      public ClientDataResponse.Builder setEmail(String value)
      The email address associated with the user account.
      
      string email = 8;
      Parameters:
      value - The email to set.
      Returns:
      This builder for chaining.
    • clearEmail

      public ClientDataResponse.Builder clearEmail()
      The email address associated with the user account.
      
      string email = 8;
      Returns:
      This builder for chaining.
    • setEmailBytes

      public ClientDataResponse.Builder setEmailBytes(com.google.protobuf.ByteString value)
      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

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

      public ClientDataResponse.Builder setServerPermissions(int index, GlobalPermissionState value)
      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

      public ClientDataResponse.Builder addServerPermissions(GlobalPermissionState value)
      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 value)
      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

      public ClientDataResponse.Builder 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

      public ClientDataResponse.Builder removeServerPermissions(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;
    • getServerPermissionsBuilder

      public GlobalPermissionState.Builder getServerPermissionsBuilder(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;
    • 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
    • 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
    • addServerPermissionsBuilder

      public GlobalPermissionState.Builder 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

      public GlobalPermissionState.Builder addServerPermissionsBuilder(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;
    • getServerPermissionsBuilderList

      public List<GlobalPermissionState.Builder> 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:
      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.
    • setServerInfo

      public ClientDataResponse.Builder setServerInfo(ServerInfo value)
      Metadata about the server instance the client is connected to.
      
      .soulfire.v1.ServerInfo server_info = 11;
    • setServerInfo

      public ClientDataResponse.Builder setServerInfo(ServerInfo.Builder builderForValue)
      Metadata about the server instance the client is connected to.
      
      .soulfire.v1.ServerInfo server_info = 11;
    • mergeServerInfo

      public ClientDataResponse.Builder mergeServerInfo(ServerInfo value)
      Metadata about the server instance the client is connected to.
      
      .soulfire.v1.ServerInfo server_info = 11;
    • clearServerInfo

      public ClientDataResponse.Builder clearServerInfo()
      Metadata about the server instance the client is connected to.
      
      .soulfire.v1.ServerInfo server_info = 11;
    • getServerInfoBuilder

      public ServerInfo.Builder getServerInfoBuilder()
      Metadata about the server instance the client is connected to.
      
      .soulfire.v1.ServerInfo server_info = 11;
    • 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