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 Summary
Modifier and TypeMethodDescriptionbuild()clear()The time in milliseconds taken to complete the proxy check.The proxy that was checked.The real IP address as seen by the target server (if available).Whether the proxy check was successful.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintThe time in milliseconds taken to complete the proxy check.getProxy()The proxy that was checked.The proxy that was checked.The proxy that was checked.The real IP address as seen by the target server (if available).com.google.protobuf.ByteStringThe real IP address as seen by the target server (if available).booleangetValid()Whether the proxy check was successful.booleanhasProxy()The proxy that was checked.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeProxy(ProxyProto value) The proxy that was checked.setLatency(int value) The time in milliseconds taken to complete the proxy check.setProxy(ProxyProto value) The proxy that was checked.setProxy(ProxyProto.Builder builderForValue) The proxy that was checked.The real IP address as seen by the target server (if available).setRealIpBytes(com.google.protobuf.ByteString value) The real IP address as seen by the target server (if available).setValid(boolean value) Whether the proxy check was successful.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<ProxyCheckResponseSingle.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<ProxyCheckResponseSingle.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<ProxyCheckResponseSingle.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<ProxyCheckResponseSingle.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasProxyin interfaceProxyCheckResponseSingleOrBuilder- Returns:
- Whether the proxy field is set.
-
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:
getProxyin interfaceProxyCheckResponseSingleOrBuilder- 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
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
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
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
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
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:
getProxyOrBuilderin interfaceProxyCheckResponseSingleOrBuilder
-
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:
getValidin interfaceProxyCheckResponseSingleOrBuilder- Returns:
- The valid.
-
setValid
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
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:
getLatencyin interfaceProxyCheckResponseSingleOrBuilder- Returns:
- The latency.
-
setLatency
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
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
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:
getRealIpin interfaceProxyCheckResponseSingleOrBuilder- 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:
getRealIpBytesin interfaceProxyCheckResponseSingleOrBuilder- Returns:
- The bytes for realIp.
-
setRealIp
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
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
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.
-