github.com/v2fly/v2ray-core/v4@v4.45.2/proxy/mtproto/config.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.27.1
     4  // 	protoc        v3.17.3
     5  // source: proxy/mtproto/config.proto
     6  
     7  package mtproto
     8  
     9  import (
    10  	protocol "github.com/v2fly/v2ray-core/v4/common/protocol"
    11  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    12  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    13  	reflect "reflect"
    14  	sync "sync"
    15  )
    16  
    17  const (
    18  	// Verify that this generated code is sufficiently up-to-date.
    19  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    20  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    21  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    22  )
    23  
    24  type Account struct {
    25  	state         protoimpl.MessageState
    26  	sizeCache     protoimpl.SizeCache
    27  	unknownFields protoimpl.UnknownFields
    28  
    29  	Secret []byte `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
    30  }
    31  
    32  func (x *Account) Reset() {
    33  	*x = Account{}
    34  	if protoimpl.UnsafeEnabled {
    35  		mi := &file_proxy_mtproto_config_proto_msgTypes[0]
    36  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    37  		ms.StoreMessageInfo(mi)
    38  	}
    39  }
    40  
    41  func (x *Account) String() string {
    42  	return protoimpl.X.MessageStringOf(x)
    43  }
    44  
    45  func (*Account) ProtoMessage() {}
    46  
    47  func (x *Account) ProtoReflect() protoreflect.Message {
    48  	mi := &file_proxy_mtproto_config_proto_msgTypes[0]
    49  	if protoimpl.UnsafeEnabled && x != nil {
    50  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    51  		if ms.LoadMessageInfo() == nil {
    52  			ms.StoreMessageInfo(mi)
    53  		}
    54  		return ms
    55  	}
    56  	return mi.MessageOf(x)
    57  }
    58  
    59  // Deprecated: Use Account.ProtoReflect.Descriptor instead.
    60  func (*Account) Descriptor() ([]byte, []int) {
    61  	return file_proxy_mtproto_config_proto_rawDescGZIP(), []int{0}
    62  }
    63  
    64  func (x *Account) GetSecret() []byte {
    65  	if x != nil {
    66  		return x.Secret
    67  	}
    68  	return nil
    69  }
    70  
    71  type ServerConfig struct {
    72  	state         protoimpl.MessageState
    73  	sizeCache     protoimpl.SizeCache
    74  	unknownFields protoimpl.UnknownFields
    75  
    76  	// User is a list of users that allowed to connect to this inbound.
    77  	// Although this is a repeated field, only the first user is effective for
    78  	// now.
    79  	User []*protocol.User `protobuf:"bytes,1,rep,name=user,proto3" json:"user,omitempty"`
    80  }
    81  
    82  func (x *ServerConfig) Reset() {
    83  	*x = ServerConfig{}
    84  	if protoimpl.UnsafeEnabled {
    85  		mi := &file_proxy_mtproto_config_proto_msgTypes[1]
    86  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    87  		ms.StoreMessageInfo(mi)
    88  	}
    89  }
    90  
    91  func (x *ServerConfig) String() string {
    92  	return protoimpl.X.MessageStringOf(x)
    93  }
    94  
    95  func (*ServerConfig) ProtoMessage() {}
    96  
    97  func (x *ServerConfig) ProtoReflect() protoreflect.Message {
    98  	mi := &file_proxy_mtproto_config_proto_msgTypes[1]
    99  	if protoimpl.UnsafeEnabled && x != nil {
   100  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   101  		if ms.LoadMessageInfo() == nil {
   102  			ms.StoreMessageInfo(mi)
   103  		}
   104  		return ms
   105  	}
   106  	return mi.MessageOf(x)
   107  }
   108  
   109  // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
   110  func (*ServerConfig) Descriptor() ([]byte, []int) {
   111  	return file_proxy_mtproto_config_proto_rawDescGZIP(), []int{1}
   112  }
   113  
   114  func (x *ServerConfig) GetUser() []*protocol.User {
   115  	if x != nil {
   116  		return x.User
   117  	}
   118  	return nil
   119  }
   120  
   121  type ClientConfig struct {
   122  	state         protoimpl.MessageState
   123  	sizeCache     protoimpl.SizeCache
   124  	unknownFields protoimpl.UnknownFields
   125  }
   126  
   127  func (x *ClientConfig) Reset() {
   128  	*x = ClientConfig{}
   129  	if protoimpl.UnsafeEnabled {
   130  		mi := &file_proxy_mtproto_config_proto_msgTypes[2]
   131  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   132  		ms.StoreMessageInfo(mi)
   133  	}
   134  }
   135  
   136  func (x *ClientConfig) String() string {
   137  	return protoimpl.X.MessageStringOf(x)
   138  }
   139  
   140  func (*ClientConfig) ProtoMessage() {}
   141  
   142  func (x *ClientConfig) ProtoReflect() protoreflect.Message {
   143  	mi := &file_proxy_mtproto_config_proto_msgTypes[2]
   144  	if protoimpl.UnsafeEnabled && x != nil {
   145  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   146  		if ms.LoadMessageInfo() == nil {
   147  			ms.StoreMessageInfo(mi)
   148  		}
   149  		return ms
   150  	}
   151  	return mi.MessageOf(x)
   152  }
   153  
   154  // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
   155  func (*ClientConfig) Descriptor() ([]byte, []int) {
   156  	return file_proxy_mtproto_config_proto_rawDescGZIP(), []int{2}
   157  }
   158  
   159  var File_proxy_mtproto_config_proto protoreflect.FileDescriptor
   160  
   161  var file_proxy_mtproto_config_proto_rawDesc = []byte{
   162  	0x0a, 0x1a, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x6d, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
   163  	0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x76, 0x32,
   164  	0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x6d,
   165  	0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70,
   166  	0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f,
   167  	0x74, 0x6f, 0x22, 0x21, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a,
   168  	0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73,
   169  	0x65, 0x63, 0x72, 0x65, 0x74, 0x22, 0x44, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43,
   170  	0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x34, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20,
   171  	0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
   172  	0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
   173  	0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x0e, 0x0a, 0x0c, 0x43,
   174  	0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x69, 0x0a, 0x1c, 0x63,
   175  	0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72,
   176  	0x6f, 0x78, 0x79, 0x2e, 0x6d, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x67,
   177  	0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f,
   178  	0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x70, 0x72,
   179  	0x6f, 0x78, 0x79, 0x2f, 0x6d, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0xaa, 0x02, 0x18, 0x56, 0x32,
   180  	0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x4d,
   181  	0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   182  }
   183  
   184  var (
   185  	file_proxy_mtproto_config_proto_rawDescOnce sync.Once
   186  	file_proxy_mtproto_config_proto_rawDescData = file_proxy_mtproto_config_proto_rawDesc
   187  )
   188  
   189  func file_proxy_mtproto_config_proto_rawDescGZIP() []byte {
   190  	file_proxy_mtproto_config_proto_rawDescOnce.Do(func() {
   191  		file_proxy_mtproto_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_mtproto_config_proto_rawDescData)
   192  	})
   193  	return file_proxy_mtproto_config_proto_rawDescData
   194  }
   195  
   196  var file_proxy_mtproto_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   197  var file_proxy_mtproto_config_proto_goTypes = []interface{}{
   198  	(*Account)(nil),       // 0: v2ray.core.proxy.mtproto.Account
   199  	(*ServerConfig)(nil),  // 1: v2ray.core.proxy.mtproto.ServerConfig
   200  	(*ClientConfig)(nil),  // 2: v2ray.core.proxy.mtproto.ClientConfig
   201  	(*protocol.User)(nil), // 3: v2ray.core.common.protocol.User
   202  }
   203  var file_proxy_mtproto_config_proto_depIdxs = []int32{
   204  	3, // 0: v2ray.core.proxy.mtproto.ServerConfig.user:type_name -> v2ray.core.common.protocol.User
   205  	1, // [1:1] is the sub-list for method output_type
   206  	1, // [1:1] is the sub-list for method input_type
   207  	1, // [1:1] is the sub-list for extension type_name
   208  	1, // [1:1] is the sub-list for extension extendee
   209  	0, // [0:1] is the sub-list for field type_name
   210  }
   211  
   212  func init() { file_proxy_mtproto_config_proto_init() }
   213  func file_proxy_mtproto_config_proto_init() {
   214  	if File_proxy_mtproto_config_proto != nil {
   215  		return
   216  	}
   217  	if !protoimpl.UnsafeEnabled {
   218  		file_proxy_mtproto_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   219  			switch v := v.(*Account); i {
   220  			case 0:
   221  				return &v.state
   222  			case 1:
   223  				return &v.sizeCache
   224  			case 2:
   225  				return &v.unknownFields
   226  			default:
   227  				return nil
   228  			}
   229  		}
   230  		file_proxy_mtproto_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   231  			switch v := v.(*ServerConfig); i {
   232  			case 0:
   233  				return &v.state
   234  			case 1:
   235  				return &v.sizeCache
   236  			case 2:
   237  				return &v.unknownFields
   238  			default:
   239  				return nil
   240  			}
   241  		}
   242  		file_proxy_mtproto_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   243  			switch v := v.(*ClientConfig); i {
   244  			case 0:
   245  				return &v.state
   246  			case 1:
   247  				return &v.sizeCache
   248  			case 2:
   249  				return &v.unknownFields
   250  			default:
   251  				return nil
   252  			}
   253  		}
   254  	}
   255  	type x struct{}
   256  	out := protoimpl.TypeBuilder{
   257  		File: protoimpl.DescBuilder{
   258  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   259  			RawDescriptor: file_proxy_mtproto_config_proto_rawDesc,
   260  			NumEnums:      0,
   261  			NumMessages:   3,
   262  			NumExtensions: 0,
   263  			NumServices:   0,
   264  		},
   265  		GoTypes:           file_proxy_mtproto_config_proto_goTypes,
   266  		DependencyIndexes: file_proxy_mtproto_config_proto_depIdxs,
   267  		MessageInfos:      file_proxy_mtproto_config_proto_msgTypes,
   268  	}.Build()
   269  	File_proxy_mtproto_config_proto = out.File
   270  	file_proxy_mtproto_config_proto_rawDesc = nil
   271  	file_proxy_mtproto_config_proto_goTypes = nil
   272  	file_proxy_mtproto_config_proto_depIdxs = nil
   273  }