github.com/Uhtred009/v2ray-core-1@v4.31.2+incompatible/proxy/http/config.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.25.0
     4  // 	protoc        v3.13.0
     5  // source: proxy/http/config.proto
     6  
     7  package http
     8  
     9  import (
    10  	proto "github.com/golang/protobuf/proto"
    11  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    12  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    13  	reflect "reflect"
    14  	sync "sync"
    15  	protocol "v2ray.com/core/common/protocol"
    16  )
    17  
    18  const (
    19  	// Verify that this generated code is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    21  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    22  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    23  )
    24  
    25  // This is a compile-time assertion that a sufficiently up-to-date version
    26  // of the legacy proto package is being used.
    27  const _ = proto.ProtoPackageIsVersion4
    28  
    29  type Account struct {
    30  	state         protoimpl.MessageState
    31  	sizeCache     protoimpl.SizeCache
    32  	unknownFields protoimpl.UnknownFields
    33  
    34  	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
    35  	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
    36  }
    37  
    38  func (x *Account) Reset() {
    39  	*x = Account{}
    40  	if protoimpl.UnsafeEnabled {
    41  		mi := &file_proxy_http_config_proto_msgTypes[0]
    42  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    43  		ms.StoreMessageInfo(mi)
    44  	}
    45  }
    46  
    47  func (x *Account) String() string {
    48  	return protoimpl.X.MessageStringOf(x)
    49  }
    50  
    51  func (*Account) ProtoMessage() {}
    52  
    53  func (x *Account) ProtoReflect() protoreflect.Message {
    54  	mi := &file_proxy_http_config_proto_msgTypes[0]
    55  	if protoimpl.UnsafeEnabled && x != nil {
    56  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    57  		if ms.LoadMessageInfo() == nil {
    58  			ms.StoreMessageInfo(mi)
    59  		}
    60  		return ms
    61  	}
    62  	return mi.MessageOf(x)
    63  }
    64  
    65  // Deprecated: Use Account.ProtoReflect.Descriptor instead.
    66  func (*Account) Descriptor() ([]byte, []int) {
    67  	return file_proxy_http_config_proto_rawDescGZIP(), []int{0}
    68  }
    69  
    70  func (x *Account) GetUsername() string {
    71  	if x != nil {
    72  		return x.Username
    73  	}
    74  	return ""
    75  }
    76  
    77  func (x *Account) GetPassword() string {
    78  	if x != nil {
    79  		return x.Password
    80  	}
    81  	return ""
    82  }
    83  
    84  // Config for HTTP proxy server.
    85  type ServerConfig struct {
    86  	state         protoimpl.MessageState
    87  	sizeCache     protoimpl.SizeCache
    88  	unknownFields protoimpl.UnknownFields
    89  
    90  	// Deprecated: Do not use.
    91  	Timeout          uint32            `protobuf:"varint,1,opt,name=timeout,proto3" json:"timeout,omitempty"`
    92  	Accounts         map[string]string `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    93  	AllowTransparent bool              `protobuf:"varint,3,opt,name=allow_transparent,json=allowTransparent,proto3" json:"allow_transparent,omitempty"`
    94  	UserLevel        uint32            `protobuf:"varint,4,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
    95  }
    96  
    97  func (x *ServerConfig) Reset() {
    98  	*x = ServerConfig{}
    99  	if protoimpl.UnsafeEnabled {
   100  		mi := &file_proxy_http_config_proto_msgTypes[1]
   101  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   102  		ms.StoreMessageInfo(mi)
   103  	}
   104  }
   105  
   106  func (x *ServerConfig) String() string {
   107  	return protoimpl.X.MessageStringOf(x)
   108  }
   109  
   110  func (*ServerConfig) ProtoMessage() {}
   111  
   112  func (x *ServerConfig) ProtoReflect() protoreflect.Message {
   113  	mi := &file_proxy_http_config_proto_msgTypes[1]
   114  	if protoimpl.UnsafeEnabled && x != nil {
   115  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   116  		if ms.LoadMessageInfo() == nil {
   117  			ms.StoreMessageInfo(mi)
   118  		}
   119  		return ms
   120  	}
   121  	return mi.MessageOf(x)
   122  }
   123  
   124  // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
   125  func (*ServerConfig) Descriptor() ([]byte, []int) {
   126  	return file_proxy_http_config_proto_rawDescGZIP(), []int{1}
   127  }
   128  
   129  // Deprecated: Do not use.
   130  func (x *ServerConfig) GetTimeout() uint32 {
   131  	if x != nil {
   132  		return x.Timeout
   133  	}
   134  	return 0
   135  }
   136  
   137  func (x *ServerConfig) GetAccounts() map[string]string {
   138  	if x != nil {
   139  		return x.Accounts
   140  	}
   141  	return nil
   142  }
   143  
   144  func (x *ServerConfig) GetAllowTransparent() bool {
   145  	if x != nil {
   146  		return x.AllowTransparent
   147  	}
   148  	return false
   149  }
   150  
   151  func (x *ServerConfig) GetUserLevel() uint32 {
   152  	if x != nil {
   153  		return x.UserLevel
   154  	}
   155  	return 0
   156  }
   157  
   158  // ClientConfig is the protobuf config for HTTP proxy client.
   159  type ClientConfig struct {
   160  	state         protoimpl.MessageState
   161  	sizeCache     protoimpl.SizeCache
   162  	unknownFields protoimpl.UnknownFields
   163  
   164  	// Sever is a list of HTTP server addresses.
   165  	Server []*protocol.ServerEndpoint `protobuf:"bytes,1,rep,name=server,proto3" json:"server,omitempty"`
   166  }
   167  
   168  func (x *ClientConfig) Reset() {
   169  	*x = ClientConfig{}
   170  	if protoimpl.UnsafeEnabled {
   171  		mi := &file_proxy_http_config_proto_msgTypes[2]
   172  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   173  		ms.StoreMessageInfo(mi)
   174  	}
   175  }
   176  
   177  func (x *ClientConfig) String() string {
   178  	return protoimpl.X.MessageStringOf(x)
   179  }
   180  
   181  func (*ClientConfig) ProtoMessage() {}
   182  
   183  func (x *ClientConfig) ProtoReflect() protoreflect.Message {
   184  	mi := &file_proxy_http_config_proto_msgTypes[2]
   185  	if protoimpl.UnsafeEnabled && x != nil {
   186  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   187  		if ms.LoadMessageInfo() == nil {
   188  			ms.StoreMessageInfo(mi)
   189  		}
   190  		return ms
   191  	}
   192  	return mi.MessageOf(x)
   193  }
   194  
   195  // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
   196  func (*ClientConfig) Descriptor() ([]byte, []int) {
   197  	return file_proxy_http_config_proto_rawDescGZIP(), []int{2}
   198  }
   199  
   200  func (x *ClientConfig) GetServer() []*protocol.ServerEndpoint {
   201  	if x != nil {
   202  		return x.Server
   203  	}
   204  	return nil
   205  }
   206  
   207  var File_proxy_http_config_proto protoreflect.FileDescriptor
   208  
   209  var file_proxy_http_config_proto_rawDesc = []byte{
   210  	0x0a, 0x17, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x63, 0x6f, 0x6e,
   211  	0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x76, 0x32, 0x72, 0x61, 0x79,
   212  	0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x68, 0x74, 0x74, 0x70,
   213  	0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
   214  	0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72,
   215  	0x6f, 0x74, 0x6f, 0x22, 0x41, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a,
   216  	0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
   217  	0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61,
   218  	0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61,
   219  	0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x84, 0x02, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65,
   220  	0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1c, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f,
   221  	0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 0x74, 0x69,
   222  	0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x4d, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
   223  	0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
   224  	0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e,
   225  	0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x41, 0x63, 0x63,
   226  	0x6f, 0x75, 0x6e, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x61, 0x63, 0x63, 0x6f,
   227  	0x75, 0x6e, 0x74, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x74, 0x72,
   228  	0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52,
   229  	0x10, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e,
   230  	0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18,
   231  	0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x65, 0x76, 0x65, 0x6c,
   232  	0x1a, 0x3b, 0x0a, 0x0d, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72,
   233  	0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
   234  	0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
   235  	0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x52, 0x0a,
   236  	0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x42, 0x0a,
   237  	0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e,
   238  	0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
   239  	0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65,
   240  	0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65,
   241  	0x72, 0x42, 0x50, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
   242  	0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x50, 0x01,
   243  	0x5a, 0x19, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65,
   244  	0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x68, 0x74, 0x74, 0x70, 0xaa, 0x02, 0x15, 0x56, 0x32,
   245  	0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x48,
   246  	0x74, 0x74, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   247  }
   248  
   249  var (
   250  	file_proxy_http_config_proto_rawDescOnce sync.Once
   251  	file_proxy_http_config_proto_rawDescData = file_proxy_http_config_proto_rawDesc
   252  )
   253  
   254  func file_proxy_http_config_proto_rawDescGZIP() []byte {
   255  	file_proxy_http_config_proto_rawDescOnce.Do(func() {
   256  		file_proxy_http_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_http_config_proto_rawDescData)
   257  	})
   258  	return file_proxy_http_config_proto_rawDescData
   259  }
   260  
   261  var file_proxy_http_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   262  var file_proxy_http_config_proto_goTypes = []interface{}{
   263  	(*Account)(nil),                 // 0: v2ray.core.proxy.http.Account
   264  	(*ServerConfig)(nil),            // 1: v2ray.core.proxy.http.ServerConfig
   265  	(*ClientConfig)(nil),            // 2: v2ray.core.proxy.http.ClientConfig
   266  	nil,                             // 3: v2ray.core.proxy.http.ServerConfig.AccountsEntry
   267  	(*protocol.ServerEndpoint)(nil), // 4: v2ray.core.common.protocol.ServerEndpoint
   268  }
   269  var file_proxy_http_config_proto_depIdxs = []int32{
   270  	3, // 0: v2ray.core.proxy.http.ServerConfig.accounts:type_name -> v2ray.core.proxy.http.ServerConfig.AccountsEntry
   271  	4, // 1: v2ray.core.proxy.http.ClientConfig.server:type_name -> v2ray.core.common.protocol.ServerEndpoint
   272  	2, // [2:2] is the sub-list for method output_type
   273  	2, // [2:2] is the sub-list for method input_type
   274  	2, // [2:2] is the sub-list for extension type_name
   275  	2, // [2:2] is the sub-list for extension extendee
   276  	0, // [0:2] is the sub-list for field type_name
   277  }
   278  
   279  func init() { file_proxy_http_config_proto_init() }
   280  func file_proxy_http_config_proto_init() {
   281  	if File_proxy_http_config_proto != nil {
   282  		return
   283  	}
   284  	if !protoimpl.UnsafeEnabled {
   285  		file_proxy_http_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   286  			switch v := v.(*Account); i {
   287  			case 0:
   288  				return &v.state
   289  			case 1:
   290  				return &v.sizeCache
   291  			case 2:
   292  				return &v.unknownFields
   293  			default:
   294  				return nil
   295  			}
   296  		}
   297  		file_proxy_http_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   298  			switch v := v.(*ServerConfig); i {
   299  			case 0:
   300  				return &v.state
   301  			case 1:
   302  				return &v.sizeCache
   303  			case 2:
   304  				return &v.unknownFields
   305  			default:
   306  				return nil
   307  			}
   308  		}
   309  		file_proxy_http_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   310  			switch v := v.(*ClientConfig); i {
   311  			case 0:
   312  				return &v.state
   313  			case 1:
   314  				return &v.sizeCache
   315  			case 2:
   316  				return &v.unknownFields
   317  			default:
   318  				return nil
   319  			}
   320  		}
   321  	}
   322  	type x struct{}
   323  	out := protoimpl.TypeBuilder{
   324  		File: protoimpl.DescBuilder{
   325  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   326  			RawDescriptor: file_proxy_http_config_proto_rawDesc,
   327  			NumEnums:      0,
   328  			NumMessages:   4,
   329  			NumExtensions: 0,
   330  			NumServices:   0,
   331  		},
   332  		GoTypes:           file_proxy_http_config_proto_goTypes,
   333  		DependencyIndexes: file_proxy_http_config_proto_depIdxs,
   334  		MessageInfos:      file_proxy_http_config_proto_msgTypes,
   335  	}.Build()
   336  	File_proxy_http_config_proto = out.File
   337  	file_proxy_http_config_proto_rawDesc = nil
   338  	file_proxy_http_config_proto_goTypes = nil
   339  	file_proxy_http_config_proto_depIdxs = nil
   340  }