github.com/eagleql/xray-core@v1.4.4/proxy/vmess/account.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.14.0
     5  // source: proxy/vmess/account.proto
     6  
     7  package vmess
     8  
     9  import (
    10  	protocol "github.com/eagleql/xray-core/common/protocol"
    11  	proto "github.com/golang/protobuf/proto"
    12  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    13  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    14  	reflect "reflect"
    15  	sync "sync"
    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  	// ID of the account, in the form of a UUID, e.g.,
    35  	// "66ad4540-b58c-4ad2-9926-ea63445a9b57".
    36  	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    37  	// Number of alternative IDs. Client and server must share the same number.
    38  	AlterId uint32 `protobuf:"varint,2,opt,name=alter_id,json=alterId,proto3" json:"alter_id,omitempty"`
    39  	// Security settings. Only applies to client side.
    40  	SecuritySettings *protocol.SecurityConfig `protobuf:"bytes,3,opt,name=security_settings,json=securitySettings,proto3" json:"security_settings,omitempty"`
    41  	// Define tests enabled for this account
    42  	TestsEnabled string `protobuf:"bytes,4,opt,name=tests_enabled,json=testsEnabled,proto3" json:"tests_enabled,omitempty"`
    43  }
    44  
    45  func (x *Account) Reset() {
    46  	*x = Account{}
    47  	if protoimpl.UnsafeEnabled {
    48  		mi := &file_proxy_vmess_account_proto_msgTypes[0]
    49  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    50  		ms.StoreMessageInfo(mi)
    51  	}
    52  }
    53  
    54  func (x *Account) String() string {
    55  	return protoimpl.X.MessageStringOf(x)
    56  }
    57  
    58  func (*Account) ProtoMessage() {}
    59  
    60  func (x *Account) ProtoReflect() protoreflect.Message {
    61  	mi := &file_proxy_vmess_account_proto_msgTypes[0]
    62  	if protoimpl.UnsafeEnabled && x != nil {
    63  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    64  		if ms.LoadMessageInfo() == nil {
    65  			ms.StoreMessageInfo(mi)
    66  		}
    67  		return ms
    68  	}
    69  	return mi.MessageOf(x)
    70  }
    71  
    72  // Deprecated: Use Account.ProtoReflect.Descriptor instead.
    73  func (*Account) Descriptor() ([]byte, []int) {
    74  	return file_proxy_vmess_account_proto_rawDescGZIP(), []int{0}
    75  }
    76  
    77  func (x *Account) GetId() string {
    78  	if x != nil {
    79  		return x.Id
    80  	}
    81  	return ""
    82  }
    83  
    84  func (x *Account) GetAlterId() uint32 {
    85  	if x != nil {
    86  		return x.AlterId
    87  	}
    88  	return 0
    89  }
    90  
    91  func (x *Account) GetSecuritySettings() *protocol.SecurityConfig {
    92  	if x != nil {
    93  		return x.SecuritySettings
    94  	}
    95  	return nil
    96  }
    97  
    98  func (x *Account) GetTestsEnabled() string {
    99  	if x != nil {
   100  		return x.TestsEnabled
   101  	}
   102  	return ""
   103  }
   104  
   105  var File_proxy_vmess_account_proto protoreflect.FileDescriptor
   106  
   107  var file_proxy_vmess_account_proto_rawDesc = []byte{
   108  	0x0a, 0x19, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2f, 0x61, 0x63,
   109  	0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x78, 0x72, 0x61,
   110  	0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x1a, 0x1d, 0x63,
   111  	0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x68,
   112  	0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xac, 0x01, 0x0a,
   113  	0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
   114  	0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x6c, 0x74, 0x65,
   115  	0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x61, 0x6c, 0x74, 0x65,
   116  	0x72, 0x49, 0x64, 0x12, 0x51, 0x0a, 0x11, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f,
   117  	0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24,
   118  	0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f,
   119  	0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6f,
   120  	0x6e, 0x66, 0x69, 0x67, 0x52, 0x10, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x53, 0x65,
   121  	0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x65, 0x73, 0x74, 0x73, 0x5f,
   122  	0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x74,
   123  	0x65, 0x73, 0x74, 0x73, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x42, 0x52, 0x0a, 0x14, 0x63,
   124  	0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d,
   125  	0x65, 0x73, 0x73, 0x50, 0x01, 0x5a, 0x25, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
   126  	0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65,
   127  	0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 0xaa, 0x02, 0x10, 0x58,
   128  	0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x56, 0x6d, 0x65, 0x73, 0x73, 0x62,
   129  	0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   130  }
   131  
   132  var (
   133  	file_proxy_vmess_account_proto_rawDescOnce sync.Once
   134  	file_proxy_vmess_account_proto_rawDescData = file_proxy_vmess_account_proto_rawDesc
   135  )
   136  
   137  func file_proxy_vmess_account_proto_rawDescGZIP() []byte {
   138  	file_proxy_vmess_account_proto_rawDescOnce.Do(func() {
   139  		file_proxy_vmess_account_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_vmess_account_proto_rawDescData)
   140  	})
   141  	return file_proxy_vmess_account_proto_rawDescData
   142  }
   143  
   144  var file_proxy_vmess_account_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   145  var file_proxy_vmess_account_proto_goTypes = []interface{}{
   146  	(*Account)(nil),                 // 0: xray.proxy.vmess.Account
   147  	(*protocol.SecurityConfig)(nil), // 1: xray.common.protocol.SecurityConfig
   148  }
   149  var file_proxy_vmess_account_proto_depIdxs = []int32{
   150  	1, // 0: xray.proxy.vmess.Account.security_settings:type_name -> xray.common.protocol.SecurityConfig
   151  	1, // [1:1] is the sub-list for method output_type
   152  	1, // [1:1] is the sub-list for method input_type
   153  	1, // [1:1] is the sub-list for extension type_name
   154  	1, // [1:1] is the sub-list for extension extendee
   155  	0, // [0:1] is the sub-list for field type_name
   156  }
   157  
   158  func init() { file_proxy_vmess_account_proto_init() }
   159  func file_proxy_vmess_account_proto_init() {
   160  	if File_proxy_vmess_account_proto != nil {
   161  		return
   162  	}
   163  	if !protoimpl.UnsafeEnabled {
   164  		file_proxy_vmess_account_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   165  			switch v := v.(*Account); i {
   166  			case 0:
   167  				return &v.state
   168  			case 1:
   169  				return &v.sizeCache
   170  			case 2:
   171  				return &v.unknownFields
   172  			default:
   173  				return nil
   174  			}
   175  		}
   176  	}
   177  	type x struct{}
   178  	out := protoimpl.TypeBuilder{
   179  		File: protoimpl.DescBuilder{
   180  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   181  			RawDescriptor: file_proxy_vmess_account_proto_rawDesc,
   182  			NumEnums:      0,
   183  			NumMessages:   1,
   184  			NumExtensions: 0,
   185  			NumServices:   0,
   186  		},
   187  		GoTypes:           file_proxy_vmess_account_proto_goTypes,
   188  		DependencyIndexes: file_proxy_vmess_account_proto_depIdxs,
   189  		MessageInfos:      file_proxy_vmess_account_proto_msgTypes,
   190  	}.Build()
   191  	File_proxy_vmess_account_proto = out.File
   192  	file_proxy_vmess_account_proto_rawDesc = nil
   193  	file_proxy_vmess_account_proto_goTypes = nil
   194  	file_proxy_vmess_account_proto_depIdxs = nil
   195  }