Class ProxyCheckResponseSingle.Builder

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

public static final class ProxyCheckResponseSingle.Builder extends com.google.protobuf.GeneratedMessage.Builder<ProxyCheckResponseSingle.Builder> implements ProxyCheckResponseSingleOrBuilder
Result of checking a single proxy's validity and performance.
Protobuf type soulfire.v1.ProxyCheckResponseSingle
  • 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<ProxyCheckResponseSingle.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<ProxyCheckResponseSingle.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<ProxyCheckResponseSingle.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ProxyCheckResponseSingle.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<ProxyCheckResponseSingle.Builder>
      Throws:
      IOException
    • hasProxy

      public boolean hasProxy()
      The proxy that was checked. This is echoed back from the request
      to allow correlation when checking multiple proxies.
      
      .soulfire.v1.ProxyProto proxy = 1;
      Specified by:
      hasProxy in interface ProxyCheckResponseSingleOrBuilder
      Returns:
      Whether the proxy field is set.
    • getProxy

      public ProxyProto getProxy()
      The proxy that was checked. This is echoed back from the request
      to allow correlation when checking multiple proxies.
      
      .soulfire.v1.ProxyProto proxy = 1;
      Specified by:
      getProxy in interface ProxyCheckResponseSingleOrBuilder
      Returns:
      The proxy.
    • setProxy

      The proxy that was checked. This is echoed back from the request
      to allow correlation when checking multiple proxies.
      
      .soulfire.v1.ProxyProto proxy = 1;
    • setProxy

      public ProxyCheckResponseSingle.Builder setProxy(ProxyProto.Builder builderForValue)
      The proxy that was checked. This is echoed back from the request
      to allow correlation when checking multiple proxies.
      
      .soulfire.v1.ProxyProto proxy = 1;
    • mergeProxy

      public ProxyCheckResponseSingle.Builder mergeProxy(ProxyProto value)
      The proxy that was checked. This is echoed back from the request
      to allow correlation when checking multiple proxies.
      
      .soulfire.v1.ProxyProto proxy = 1;
    • clearProxy

      public ProxyCheckResponseSingle.Builder clearProxy()
      The proxy that was checked. This is echoed back from the request
      to allow correlation when checking multiple proxies.
      
      .soulfire.v1.ProxyProto proxy = 1;
    • getProxyBuilder

      public ProxyProto.Builder getProxyBuilder()
      The proxy that was checked. This is echoed back from the request
      to allow correlation when checking multiple proxies.
      
      .soulfire.v1.ProxyProto proxy = 1;
    • getProxyOrBuilder

      public ProxyProtoOrBuilder getProxyOrBuilder()
      The proxy that was checked. This is echoed back from the request
      to allow correlation when checking multiple proxies.
      
      .soulfire.v1.ProxyProto proxy = 1;
      Specified by:
      getProxyOrBuilder in interface ProxyCheckResponseSingleOrBuilder
    • getValid

      public boolean getValid()
      Whether the proxy check was successful. A proxy is considered valid if
      a connection through it to the Minecraft server was established successfully
      and a status response packet was received within the 30-second timeout.
      If false, the proxy failed to connect, timed out, or encountered an error.
      
      bool valid = 2;
      Specified by:
      getValid in interface ProxyCheckResponseSingleOrBuilder
      Returns:
      The valid.
    • setValid

      public ProxyCheckResponseSingle.Builder setValid(boolean value)
      Whether the proxy check was successful. A proxy is considered valid if
      a connection through it to the Minecraft server was established successfully
      and a status response packet was received within the 30-second timeout.
      If false, the proxy failed to connect, timed out, or encountered an error.
      
      bool valid = 2;
      Parameters:
      value - The valid to set.
      Returns:
      This builder for chaining.
    • clearValid

      public ProxyCheckResponseSingle.Builder clearValid()
      Whether the proxy check was successful. A proxy is considered valid if
      a connection through it to the Minecraft server was established successfully
      and a status response packet was received within the 30-second timeout.
      If false, the proxy failed to connect, timed out, or encountered an error.
      
      bool valid = 2;
      Returns:
      This builder for chaining.
    • getLatency

      public int getLatency()
      The time in milliseconds taken to complete the proxy check.
      This measures the total time from starting the connection attempt
      until receiving the server status response (or until failure/timeout).
      Useful for comparing proxy performance and choosing the fastest proxies.
      
      int32 latency = 3;
      Specified by:
      getLatency in interface ProxyCheckResponseSingleOrBuilder
      Returns:
      The latency.
    • setLatency

      public ProxyCheckResponseSingle.Builder setLatency(int value)
      The time in milliseconds taken to complete the proxy check.
      This measures the total time from starting the connection attempt
      until receiving the server status response (or until failure/timeout).
      Useful for comparing proxy performance and choosing the fastest proxies.
      
      int32 latency = 3;
      Parameters:
      value - The latency to set.
      Returns:
      This builder for chaining.
    • clearLatency

      public ProxyCheckResponseSingle.Builder clearLatency()
      The time in milliseconds taken to complete the proxy check.
      This measures the total time from starting the connection attempt
      until receiving the server status response (or until failure/timeout).
      Useful for comparing proxy performance and choosing the fastest proxies.
      
      int32 latency = 3;
      Returns:
      This builder for chaining.
    • getRealIp

      public String getRealIp()
      The real IP address as seen by the target server (if available).
      This field may be empty if the IP could not be determined.
      Note: Currently not populated by the implementation.
      
      string real_ip = 4;
      Specified by:
      getRealIp in interface ProxyCheckResponseSingleOrBuilder
      Returns:
      The realIp.
    • getRealIpBytes

      public com.google.protobuf.ByteString getRealIpBytes()
      The real IP address as seen by the target server (if available).
      This field may be empty if the IP could not be determined.
      Note: Currently not populated by the implementation.
      
      string real_ip = 4;
      Specified by:
      getRealIpBytes in interface ProxyCheckResponseSingleOrBuilder
      Returns:
      The bytes for realIp.
    • setRealIp

      public ProxyCheckResponseSingle.Builder setRealIp(String value)
      The real IP address as seen by the target server (if available).
      This field may be empty if the IP could not be determined.
      Note: Currently not populated by the implementation.
      
      string real_ip = 4;
      Parameters:
      value - The realIp to set.
      Returns:
      This builder for chaining.
    • clearRealIp

      public ProxyCheckResponseSingle.Builder clearRealIp()
      The real IP address as seen by the target server (if available).
      This field may be empty if the IP could not be determined.
      Note: Currently not populated by the implementation.
      
      string real_ip = 4;
      Returns:
      This builder for chaining.
    • setRealIpBytes

      public ProxyCheckResponseSingle.Builder setRealIpBytes(com.google.protobuf.ByteString value)
      The real IP address as seen by the target server (if available).
      This field may be empty if the IP could not be determined.
      Note: Currently not populated by the implementation.
      
      string real_ip = 4;
      Parameters:
      value - The bytes for realIp to set.
      Returns:
      This builder for chaining.