Class ServerInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ServerInfo.Builder>
com.google.protobuf.GeneratedMessage.Builder<ServerInfo.Builder>
com.soulfiremc.grpc.generated.ServerInfo.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ServerInfoOrBuilder, Cloneable
Enclosing class:
ServerInfo

public static final class ServerInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<ServerInfo.Builder> implements ServerInfoOrBuilder
Contains metadata about the SoulFire server instance.
This information is useful for client compatibility checks and connecting to related services.
Protobuf type soulfire.v1.ServerInfo
  • 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<ServerInfo.Builder>
    • clear

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

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

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

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

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

      public ServerInfo.Builder mergeFrom(ServerInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ServerInfo.Builder>
    • mergeFrom

      public ServerInfo.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<ServerInfo.Builder>
      Throws:
      IOException
    • getVersion

      public String getVersion()
      The semantic version of the SoulFire server (e.g., "1.0.0").
      
      string version = 1;
      Specified by:
      getVersion in interface ServerInfoOrBuilder
      Returns:
      The version.
    • getVersionBytes

      public com.google.protobuf.ByteString getVersionBytes()
      The semantic version of the SoulFire server (e.g., "1.0.0").
      
      string version = 1;
      Specified by:
      getVersionBytes in interface ServerInfoOrBuilder
      Returns:
      The bytes for version.
    • setVersion

      public ServerInfo.Builder setVersion(String value)
      The semantic version of the SoulFire server (e.g., "1.0.0").
      
      string version = 1;
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

      public ServerInfo.Builder clearVersion()
      The semantic version of the SoulFire server (e.g., "1.0.0").
      
      string version = 1;
      Returns:
      This builder for chaining.
    • setVersionBytes

      public ServerInfo.Builder setVersionBytes(com.google.protobuf.ByteString value)
      The semantic version of the SoulFire server (e.g., "1.0.0").
      
      string version = 1;
      Parameters:
      value - The bytes for version to set.
      Returns:
      This builder for chaining.
    • getCommitHash

      public String getCommitHash()
      The git commit hash of the server build, useful for debugging and version tracking.
      
      string commit_hash = 2;
      Specified by:
      getCommitHash in interface ServerInfoOrBuilder
      Returns:
      The commitHash.
    • getCommitHashBytes

      public com.google.protobuf.ByteString getCommitHashBytes()
      The git commit hash of the server build, useful for debugging and version tracking.
      
      string commit_hash = 2;
      Specified by:
      getCommitHashBytes in interface ServerInfoOrBuilder
      Returns:
      The bytes for commitHash.
    • setCommitHash

      public ServerInfo.Builder setCommitHash(String value)
      The git commit hash of the server build, useful for debugging and version tracking.
      
      string commit_hash = 2;
      Parameters:
      value - The commitHash to set.
      Returns:
      This builder for chaining.
    • clearCommitHash

      public ServerInfo.Builder clearCommitHash()
      The git commit hash of the server build, useful for debugging and version tracking.
      
      string commit_hash = 2;
      Returns:
      This builder for chaining.
    • setCommitHashBytes

      public ServerInfo.Builder setCommitHashBytes(com.google.protobuf.ByteString value)
      The git commit hash of the server build, useful for debugging and version tracking.
      
      string commit_hash = 2;
      Parameters:
      value - The bytes for commitHash to set.
      Returns:
      This builder for chaining.
    • getBranchName

      public String getBranchName()
      The git branch name from which the server was built (e.g., "main", "develop").
      
      string branch_name = 3;
      Specified by:
      getBranchName in interface ServerInfoOrBuilder
      Returns:
      The branchName.
    • getBranchNameBytes

      public com.google.protobuf.ByteString getBranchNameBytes()
      The git branch name from which the server was built (e.g., "main", "develop").
      
      string branch_name = 3;
      Specified by:
      getBranchNameBytes in interface ServerInfoOrBuilder
      Returns:
      The bytes for branchName.
    • setBranchName

      public ServerInfo.Builder setBranchName(String value)
      The git branch name from which the server was built (e.g., "main", "develop").
      
      string branch_name = 3;
      Parameters:
      value - The branchName to set.
      Returns:
      This builder for chaining.
    • clearBranchName

      public ServerInfo.Builder clearBranchName()
      The git branch name from which the server was built (e.g., "main", "develop").
      
      string branch_name = 3;
      Returns:
      This builder for chaining.
    • setBranchNameBytes

      public ServerInfo.Builder setBranchNameBytes(com.google.protobuf.ByteString value)
      The git branch name from which the server was built (e.g., "main", "develop").
      
      string branch_name = 3;
      Parameters:
      value - The bytes for branchName to set.
      Returns:
      This builder for chaining.
    • getPublicApiAddress

      public String getPublicApiAddress()
      The public URL for the gRPC/HTTP API endpoint.
      This is the base address clients should use to connect to the server.
      
      string public_api_address = 4;
      Specified by:
      getPublicApiAddress in interface ServerInfoOrBuilder
      Returns:
      The publicApiAddress.
    • getPublicApiAddressBytes

      public com.google.protobuf.ByteString getPublicApiAddressBytes()
      The public URL for the gRPC/HTTP API endpoint.
      This is the base address clients should use to connect to the server.
      
      string public_api_address = 4;
      Specified by:
      getPublicApiAddressBytes in interface ServerInfoOrBuilder
      Returns:
      The bytes for publicApiAddress.
    • setPublicApiAddress

      public ServerInfo.Builder setPublicApiAddress(String value)
      The public URL for the gRPC/HTTP API endpoint.
      This is the base address clients should use to connect to the server.
      
      string public_api_address = 4;
      Parameters:
      value - The publicApiAddress to set.
      Returns:
      This builder for chaining.
    • clearPublicApiAddress

      public ServerInfo.Builder clearPublicApiAddress()
      The public URL for the gRPC/HTTP API endpoint.
      This is the base address clients should use to connect to the server.
      
      string public_api_address = 4;
      Returns:
      This builder for chaining.
    • setPublicApiAddressBytes

      public ServerInfo.Builder setPublicApiAddressBytes(com.google.protobuf.ByteString value)
      The public URL for the gRPC/HTTP API endpoint.
      This is the base address clients should use to connect to the server.
      
      string public_api_address = 4;
      Parameters:
      value - The bytes for publicApiAddress to set.
      Returns:
      This builder for chaining.
    • getPublicWebdavAddress

      public String getPublicWebdavAddress()
      The public URL for the WebDAV file access endpoint.
      Derived from public_api_address with "/webdav" appended.
      
      string public_webdav_address = 5;
      Specified by:
      getPublicWebdavAddress in interface ServerInfoOrBuilder
      Returns:
      The publicWebdavAddress.
    • getPublicWebdavAddressBytes

      public com.google.protobuf.ByteString getPublicWebdavAddressBytes()
      The public URL for the WebDAV file access endpoint.
      Derived from public_api_address with "/webdav" appended.
      
      string public_webdav_address = 5;
      Specified by:
      getPublicWebdavAddressBytes in interface ServerInfoOrBuilder
      Returns:
      The bytes for publicWebdavAddress.
    • setPublicWebdavAddress

      public ServerInfo.Builder setPublicWebdavAddress(String value)
      The public URL for the WebDAV file access endpoint.
      Derived from public_api_address with "/webdav" appended.
      
      string public_webdav_address = 5;
      Parameters:
      value - The publicWebdavAddress to set.
      Returns:
      This builder for chaining.
    • clearPublicWebdavAddress

      public ServerInfo.Builder clearPublicWebdavAddress()
      The public URL for the WebDAV file access endpoint.
      Derived from public_api_address with "/webdav" appended.
      
      string public_webdav_address = 5;
      Returns:
      This builder for chaining.
    • setPublicWebdavAddressBytes

      public ServerInfo.Builder setPublicWebdavAddressBytes(com.google.protobuf.ByteString value)
      The public URL for the WebDAV file access endpoint.
      Derived from public_api_address with "/webdav" appended.
      
      string public_webdav_address = 5;
      Parameters:
      value - The bytes for publicWebdavAddress to set.
      Returns:
      This builder for chaining.
    • getPublicDocsAddress

      public String getPublicDocsAddress()
      The public URL for the API documentation endpoint.
      Derived from public_api_address with "/docs" appended.
      
      string public_docs_address = 6;
      Specified by:
      getPublicDocsAddress in interface ServerInfoOrBuilder
      Returns:
      The publicDocsAddress.
    • getPublicDocsAddressBytes

      public com.google.protobuf.ByteString getPublicDocsAddressBytes()
      The public URL for the API documentation endpoint.
      Derived from public_api_address with "/docs" appended.
      
      string public_docs_address = 6;
      Specified by:
      getPublicDocsAddressBytes in interface ServerInfoOrBuilder
      Returns:
      The bytes for publicDocsAddress.
    • setPublicDocsAddress

      public ServerInfo.Builder setPublicDocsAddress(String value)
      The public URL for the API documentation endpoint.
      Derived from public_api_address with "/docs" appended.
      
      string public_docs_address = 6;
      Parameters:
      value - The publicDocsAddress to set.
      Returns:
      This builder for chaining.
    • clearPublicDocsAddress

      public ServerInfo.Builder clearPublicDocsAddress()
      The public URL for the API documentation endpoint.
      Derived from public_api_address with "/docs" appended.
      
      string public_docs_address = 6;
      Returns:
      This builder for chaining.
    • setPublicDocsAddressBytes

      public ServerInfo.Builder setPublicDocsAddressBytes(com.google.protobuf.ByteString value)
      The public URL for the API documentation endpoint.
      Derived from public_api_address with "/docs" appended.
      
      string public_docs_address = 6;
      Parameters:
      value - The bytes for publicDocsAddress to set.
      Returns:
      This builder for chaining.
    • getMinecraftVersion

      public String getMinecraftVersion()
      The native Minecraft protocol version supported by this server (e.g., "1.21.4").
      
      string minecraft_version = 7;
      Specified by:
      getMinecraftVersion in interface ServerInfoOrBuilder
      Returns:
      The minecraftVersion.
    • getMinecraftVersionBytes

      public com.google.protobuf.ByteString getMinecraftVersionBytes()
      The native Minecraft protocol version supported by this server (e.g., "1.21.4").
      
      string minecraft_version = 7;
      Specified by:
      getMinecraftVersionBytes in interface ServerInfoOrBuilder
      Returns:
      The bytes for minecraftVersion.
    • setMinecraftVersion

      public ServerInfo.Builder setMinecraftVersion(String value)
      The native Minecraft protocol version supported by this server (e.g., "1.21.4").
      
      string minecraft_version = 7;
      Parameters:
      value - The minecraftVersion to set.
      Returns:
      This builder for chaining.
    • clearMinecraftVersion

      public ServerInfo.Builder clearMinecraftVersion()
      The native Minecraft protocol version supported by this server (e.g., "1.21.4").
      
      string minecraft_version = 7;
      Returns:
      This builder for chaining.
    • setMinecraftVersionBytes

      public ServerInfo.Builder setMinecraftVersionBytes(com.google.protobuf.ByteString value)
      The native Minecraft protocol version supported by this server (e.g., "1.21.4").
      
      string minecraft_version = 7;
      Parameters:
      value - The bytes for minecraftVersion to set.
      Returns:
      This builder for chaining.