Class ProxyProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ProxyProto.Builder>
com.google.protobuf.GeneratedMessage.Builder<ProxyProto.Builder>
com.soulfiremc.grpc.generated.ProxyProto.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ProxyProtoOrBuilder, Cloneable
- Enclosing class:
ProxyProto
public static final class ProxyProto.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ProxyProto.Builder>
implements ProxyProtoOrBuilder
Represents a network proxy configuration used for routing bot connections. Proxies can be used to mask the origin of bot traffic or to distribute connections across multiple IP addresses. Used in instance configuration and proxy checking services.Protobuf type
soulfire.v1.ProxyProto-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The proxy server address in "host:port" format (e.g., "proxy.example.com:8080").Optional password for proxy authentication.The proxy protocol type.Optional username for proxy authentication.The proxy server address in "host:port" format (e.g., "proxy.example.com:8080").com.google.protobuf.ByteStringThe proxy server address in "host:port" format (e.g., "proxy.example.com:8080").static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional password for proxy authentication.com.google.protobuf.ByteStringOptional password for proxy authentication.getType()The proxy protocol type.intThe proxy protocol type.Optional username for proxy authentication.com.google.protobuf.ByteStringOptional username for proxy authentication.booleanOptional password for proxy authentication.booleanOptional username for proxy authentication.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ProxyProto other) setAddress(String value) The proxy server address in "host:port" format (e.g., "proxy.example.com:8080").setAddressBytes(com.google.protobuf.ByteString value) The proxy server address in "host:port" format (e.g., "proxy.example.com:8080").setPassword(String value) Optional password for proxy authentication.setPasswordBytes(com.google.protobuf.ByteString value) Optional password for proxy authentication.setType(ProxyProto.Type value) The proxy protocol type.setTypeValue(int value) The proxy protocol type.setUsername(String value) Optional username for proxy authentication.setUsernameBytes(com.google.protobuf.ByteString value) Optional username for proxy authentication.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<ProxyProto.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<ProxyProto.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<ProxyProto.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<ProxyProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ProxyProto.Builder>
-
mergeFrom
public ProxyProto.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<ProxyProto.Builder>- Throws:
IOException
-
getTypeValue
public int getTypeValue()The proxy protocol type. Determines how the connection is established.
.soulfire.v1.ProxyProto.Type type = 1;- Specified by:
getTypeValuein interfaceProxyProtoOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
The proxy protocol type. Determines how the connection is established.
.soulfire.v1.ProxyProto.Type type = 1;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
The proxy protocol type. Determines how the connection is established.
.soulfire.v1.ProxyProto.Type type = 1;- Specified by:
getTypein interfaceProxyProtoOrBuilder- Returns:
- The type.
-
setType
The proxy protocol type. Determines how the connection is established.
.soulfire.v1.ProxyProto.Type type = 1;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
The proxy protocol type. Determines how the connection is established.
.soulfire.v1.ProxyProto.Type type = 1;- Returns:
- This builder for chaining.
-
getAddress
The proxy server address in "host:port" format (e.g., "proxy.example.com:8080"). The address must be resolvable and the port must be valid (1-65535).
string address = 2;- Specified by:
getAddressin interfaceProxyProtoOrBuilder- Returns:
- The address.
-
getAddressBytes
public com.google.protobuf.ByteString getAddressBytes()The proxy server address in "host:port" format (e.g., "proxy.example.com:8080"). The address must be resolvable and the port must be valid (1-65535).
string address = 2;- Specified by:
getAddressBytesin interfaceProxyProtoOrBuilder- Returns:
- The bytes for address.
-
setAddress
The proxy server address in "host:port" format (e.g., "proxy.example.com:8080"). The address must be resolvable and the port must be valid (1-65535).
string address = 2;- Parameters:
value- The address to set.- Returns:
- This builder for chaining.
-
clearAddress
The proxy server address in "host:port" format (e.g., "proxy.example.com:8080"). The address must be resolvable and the port must be valid (1-65535).
string address = 2;- Returns:
- This builder for chaining.
-
setAddressBytes
The proxy server address in "host:port" format (e.g., "proxy.example.com:8080"). The address must be resolvable and the port must be valid (1-65535).
string address = 2;- Parameters:
value- The bytes for address to set.- Returns:
- This builder for chaining.
-
hasUsername
public boolean hasUsername()Optional username for proxy authentication. Required if the proxy server requires authentication. If password is set, username must also be set.
optional string username = 3;- Specified by:
hasUsernamein interfaceProxyProtoOrBuilder- Returns:
- Whether the username field is set.
-
getUsername
Optional username for proxy authentication. Required if the proxy server requires authentication. If password is set, username must also be set.
optional string username = 3;- Specified by:
getUsernamein interfaceProxyProtoOrBuilder- Returns:
- The username.
-
getUsernameBytes
public com.google.protobuf.ByteString getUsernameBytes()Optional username for proxy authentication. Required if the proxy server requires authentication. If password is set, username must also be set.
optional string username = 3;- Specified by:
getUsernameBytesin interfaceProxyProtoOrBuilder- Returns:
- The bytes for username.
-
setUsername
Optional username for proxy authentication. Required if the proxy server requires authentication. If password is set, username must also be set.
optional string username = 3;- Parameters:
value- The username to set.- Returns:
- This builder for chaining.
-
clearUsername
Optional username for proxy authentication. Required if the proxy server requires authentication. If password is set, username must also be set.
optional string username = 3;- Returns:
- This builder for chaining.
-
setUsernameBytes
Optional username for proxy authentication. Required if the proxy server requires authentication. If password is set, username must also be set.
optional string username = 3;- Parameters:
value- The bytes for username to set.- Returns:
- This builder for chaining.
-
hasPassword
public boolean hasPassword()Optional password for proxy authentication. Used with username for SOCKS5 or HTTP proxy authentication. Not supported for SOCKS4 proxies (will cause an error if set).
optional string password = 4;- Specified by:
hasPasswordin interfaceProxyProtoOrBuilder- Returns:
- Whether the password field is set.
-
getPassword
Optional password for proxy authentication. Used with username for SOCKS5 or HTTP proxy authentication. Not supported for SOCKS4 proxies (will cause an error if set).
optional string password = 4;- Specified by:
getPasswordin interfaceProxyProtoOrBuilder- Returns:
- The password.
-
getPasswordBytes
public com.google.protobuf.ByteString getPasswordBytes()Optional password for proxy authentication. Used with username for SOCKS5 or HTTP proxy authentication. Not supported for SOCKS4 proxies (will cause an error if set).
optional string password = 4;- Specified by:
getPasswordBytesin interfaceProxyProtoOrBuilder- Returns:
- The bytes for password.
-
setPassword
Optional password for proxy authentication. Used with username for SOCKS5 or HTTP proxy authentication. Not supported for SOCKS4 proxies (will cause an error if set).
optional string password = 4;- Parameters:
value- The password to set.- Returns:
- This builder for chaining.
-
clearPassword
Optional password for proxy authentication. Used with username for SOCKS5 or HTTP proxy authentication. Not supported for SOCKS4 proxies (will cause an error if set).
optional string password = 4;- Returns:
- This builder for chaining.
-
setPasswordBytes
Optional password for proxy authentication. Used with username for SOCKS5 or HTTP proxy authentication. Not supported for SOCKS4 proxies (will cause an error if set).
optional string password = 4;- Parameters:
value- The bytes for password to set.- Returns:
- This builder for chaining.
-