github.com/xraypb/xray-core@v1.6.6/proxy/mtproto/config.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.28.1
     4  // 	protoc        v3.18.0
     5  // source: proxy/mtproto/config.proto
     6  
     7  package mtproto
     8  
     9  import (
    10  	protocol "github.com/xraypb/xray-core/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, 0x12, 0x78, 0x72,
   164  	0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x6d, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   165  	0x1a, 0x1a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
   166  	0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x21, 0x0a, 0x07,
   167  	0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65,
   168  	0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22,
   169  	0x3e, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
   170  	0x2e, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
   171  	0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   172  	0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22,
   173  	0x0e, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42,
   174  	0x58, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78,
   175  	0x79, 0x2e, 0x6d, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74,
   176  	0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61,
   177  	0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x6d, 0x74, 0x70,
   178  	0x72, 0x6f, 0x74, 0x6f, 0xaa, 0x02, 0x12, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78,
   179  	0x79, 0x2e, 0x4d, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   180  	0x33,
   181  }
   182  
   183  var (
   184  	file_proxy_mtproto_config_proto_rawDescOnce sync.Once
   185  	file_proxy_mtproto_config_proto_rawDescData = file_proxy_mtproto_config_proto_rawDesc
   186  )
   187  
   188  func file_proxy_mtproto_config_proto_rawDescGZIP() []byte {
   189  	file_proxy_mtproto_config_proto_rawDescOnce.Do(func() {
   190  		file_proxy_mtproto_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_mtproto_config_proto_rawDescData)
   191  	})
   192  	return file_proxy_mtproto_config_proto_rawDescData
   193  }
   194  
   195  var file_proxy_mtproto_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   196  var file_proxy_mtproto_config_proto_goTypes = []interface{}{
   197  	(*Account)(nil),       // 0: xray.proxy.mtproto.Account
   198  	(*ServerConfig)(nil),  // 1: xray.proxy.mtproto.ServerConfig
   199  	(*ClientConfig)(nil),  // 2: xray.proxy.mtproto.ClientConfig
   200  	(*protocol.User)(nil), // 3: xray.common.protocol.User
   201  }
   202  var file_proxy_mtproto_config_proto_depIdxs = []int32{
   203  	3, // 0: xray.proxy.mtproto.ServerConfig.user:type_name -> xray.common.protocol.User
   204  	1, // [1:1] is the sub-list for method output_type
   205  	1, // [1:1] is the sub-list for method input_type
   206  	1, // [1:1] is the sub-list for extension type_name
   207  	1, // [1:1] is the sub-list for extension extendee
   208  	0, // [0:1] is the sub-list for field type_name
   209  }
   210  
   211  func init() { file_proxy_mtproto_config_proto_init() }
   212  func file_proxy_mtproto_config_proto_init() {
   213  	if File_proxy_mtproto_config_proto != nil {
   214  		return
   215  	}
   216  	if !protoimpl.UnsafeEnabled {
   217  		file_proxy_mtproto_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   218  			switch v := v.(*Account); i {
   219  			case 0:
   220  				return &v.state
   221  			case 1:
   222  				return &v.sizeCache
   223  			case 2:
   224  				return &v.unknownFields
   225  			default:
   226  				return nil
   227  			}
   228  		}
   229  		file_proxy_mtproto_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   230  			switch v := v.(*ServerConfig); i {
   231  			case 0:
   232  				return &v.state
   233  			case 1:
   234  				return &v.sizeCache
   235  			case 2:
   236  				return &v.unknownFields
   237  			default:
   238  				return nil
   239  			}
   240  		}
   241  		file_proxy_mtproto_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   242  			switch v := v.(*ClientConfig); i {
   243  			case 0:
   244  				return &v.state
   245  			case 1:
   246  				return &v.sizeCache
   247  			case 2:
   248  				return &v.unknownFields
   249  			default:
   250  				return nil
   251  			}
   252  		}
   253  	}
   254  	type x struct{}
   255  	out := protoimpl.TypeBuilder{
   256  		File: protoimpl.DescBuilder{
   257  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   258  			RawDescriptor: file_proxy_mtproto_config_proto_rawDesc,
   259  			NumEnums:      0,
   260  			NumMessages:   3,
   261  			NumExtensions: 0,
   262  			NumServices:   0,
   263  		},
   264  		GoTypes:           file_proxy_mtproto_config_proto_goTypes,
   265  		DependencyIndexes: file_proxy_mtproto_config_proto_depIdxs,
   266  		MessageInfos:      file_proxy_mtproto_config_proto_msgTypes,
   267  	}.Build()
   268  	File_proxy_mtproto_config_proto = out.File
   269  	file_proxy_mtproto_config_proto_rawDesc = nil
   270  	file_proxy_mtproto_config_proto_goTypes = nil
   271  	file_proxy_mtproto_config_proto_depIdxs = nil
   272  }