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 Type
    Method
    Description
     
     
     
    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.ByteString
    The proxy server address in "host:port" format (e.g., "proxy.example.com:8080").
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    Optional password for proxy authentication.
    com.google.protobuf.ByteString
    Optional password for proxy authentication.
    The proxy protocol type.
    int
    The proxy protocol type.
    Optional username for proxy authentication.
    com.google.protobuf.ByteString
    Optional username for proxy authentication.
    boolean
    Optional password for proxy authentication.
    boolean
    Optional username for proxy authentication.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    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").
    Optional password for proxy authentication.
    setPasswordBytes(com.google.protobuf.ByteString value)
    Optional password for proxy authentication.
    The proxy protocol type.
    setTypeValue(int value)
    The proxy protocol type.
    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, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ProxyProto.Builder>
    • clear

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

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

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

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

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

      public ProxyProto.Builder mergeFrom(ProxyProto other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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<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:
      getTypeValue in interface ProxyProtoOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public ProxyProto.Builder setTypeValue(int value)
      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

      public ProxyProto.Type getType()
      The proxy protocol type. Determines how the connection is established.
      
      .soulfire.v1.ProxyProto.Type type = 1;
      Specified by:
      getType in interface ProxyProtoOrBuilder
      Returns:
      The type.
    • setType

      public ProxyProto.Builder setType(ProxyProto.Type value)
      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

      public ProxyProto.Builder clearType()
      The proxy protocol type. Determines how the connection is established.
      
      .soulfire.v1.ProxyProto.Type type = 1;
      Returns:
      This builder for chaining.
    • getAddress

      public 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;
      Specified by:
      getAddress in interface ProxyProtoOrBuilder
      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:
      getAddressBytes in interface ProxyProtoOrBuilder
      Returns:
      The bytes for address.
    • setAddress

      public ProxyProto.Builder setAddress(String value)
      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

      public ProxyProto.Builder 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

      public ProxyProto.Builder setAddressBytes(com.google.protobuf.ByteString value)
      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:
      hasUsername in interface ProxyProtoOrBuilder
      Returns:
      Whether the username field is set.
    • getUsername

      public 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;
      Specified by:
      getUsername in interface ProxyProtoOrBuilder
      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:
      getUsernameBytes in interface ProxyProtoOrBuilder
      Returns:
      The bytes for username.
    • setUsername

      public ProxyProto.Builder setUsername(String value)
      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

      public ProxyProto.Builder 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

      public ProxyProto.Builder setUsernameBytes(com.google.protobuf.ByteString value)
      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:
      hasPassword in interface ProxyProtoOrBuilder
      Returns:
      Whether the password field is set.
    • getPassword

      public 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;
      Specified by:
      getPassword in interface ProxyProtoOrBuilder
      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:
      getPasswordBytes in interface ProxyProtoOrBuilder
      Returns:
      The bytes for password.
    • setPassword

      public ProxyProto.Builder setPassword(String value)
      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

      public ProxyProto.Builder 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

      public ProxyProto.Builder setPasswordBytes(com.google.protobuf.ByteString value)
      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.