Interface ProxyProtoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ProxyProto, ProxyProto.Builder
@Generated
public interface ProxyProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionThe 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").Optional 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.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getTypeValue
int getTypeValue()The proxy protocol type. Determines how the connection is established.
.soulfire.v1.ProxyProto.Type type = 1;- Returns:
- The enum numeric value on the wire for type.
-
getType
ProxyProto.Type getType()The proxy protocol type. Determines how the connection is established.
.soulfire.v1.ProxyProto.Type type = 1;- Returns:
- The type.
-
getAddress
String 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;- Returns:
- The address.
-
getAddressBytes
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;- Returns:
- The bytes for address.
-
hasUsername
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;- Returns:
- Whether the username field is set.
-
getUsername
String 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;- Returns:
- The username.
-
getUsernameBytes
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;- Returns:
- The bytes for username.
-
hasPassword
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;- Returns:
- Whether the password field is set.
-
getPassword
String 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;- Returns:
- The password.
-
getPasswordBytes
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;- Returns:
- The bytes for password.
-