test.pb.go 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. package testing
  2. import (
  3. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  4. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  5. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  6. reflect "reflect"
  7. sync "sync"
  8. unsafe "unsafe"
  9. )
  10. const (
  11. // Verify that this generated code is sufficiently up-to-date.
  12. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  13. // Verify that runtime/protoimpl is sufficiently up-to-date.
  14. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  15. )
  16. type TestingMessage struct {
  17. state protoimpl.MessageState `protogen:"open.v1"`
  18. TestField string `protobuf:"bytes,1,opt,name=test_field,json=testField,proto3" json:"test_field,omitempty"`
  19. unknownFields protoimpl.UnknownFields
  20. sizeCache protoimpl.SizeCache
  21. }
  22. func (x *TestingMessage) Reset() {
  23. *x = TestingMessage{}
  24. mi := &file_common_protoext_testing_test_proto_msgTypes[0]
  25. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  26. ms.StoreMessageInfo(mi)
  27. }
  28. func (x *TestingMessage) String() string {
  29. return protoimpl.X.MessageStringOf(x)
  30. }
  31. func (*TestingMessage) ProtoMessage() {}
  32. func (x *TestingMessage) ProtoReflect() protoreflect.Message {
  33. mi := &file_common_protoext_testing_test_proto_msgTypes[0]
  34. if x != nil {
  35. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  36. if ms.LoadMessageInfo() == nil {
  37. ms.StoreMessageInfo(mi)
  38. }
  39. return ms
  40. }
  41. return mi.MessageOf(x)
  42. }
  43. // Deprecated: Use TestingMessage.ProtoReflect.Descriptor instead.
  44. func (*TestingMessage) Descriptor() ([]byte, []int) {
  45. return file_common_protoext_testing_test_proto_rawDescGZIP(), []int{0}
  46. }
  47. func (x *TestingMessage) GetTestField() string {
  48. if x != nil {
  49. return x.TestField
  50. }
  51. return ""
  52. }
  53. var File_common_protoext_testing_test_proto protoreflect.FileDescriptor
  54. var file_common_protoext_testing_test_proto_rawDesc = string([]byte{
  55. 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78,
  56. 0x74, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70,
  57. 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  58. 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74,
  59. 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  60. 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
  61. 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x55, 0x0a, 0x0e, 0x54, 0x65,
  62. 0x73, 0x74, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x30, 0x0a, 0x0a,
  63. 0x74, 0x65, 0x73, 0x74, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  64. 0x42, 0x11, 0x82, 0xb5, 0x18, 0x0d, 0x12, 0x04, 0x74, 0x65, 0x73, 0x74, 0x12, 0x05, 0x74, 0x65,
  65. 0x73, 0x74, 0x32, 0x52, 0x09, 0x74, 0x65, 0x73, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x3a, 0x11,
  66. 0x82, 0xb5, 0x18, 0x0d, 0x0a, 0x04, 0x64, 0x65, 0x6d, 0x6f, 0x0a, 0x05, 0x64, 0x65, 0x6d, 0x6f,
  67. 0x32, 0x42, 0x84, 0x01, 0x0a, 0x26, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  68. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  69. 0x6f, 0x65, 0x78, 0x74, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x01, 0x5a, 0x33,
  70. 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79,
  71. 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d,
  72. 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x74, 0x65, 0x73, 0x74,
  73. 0x69, 0x6e, 0x67, 0xaa, 0x02, 0x22, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65,
  74. 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x45, 0x78, 0x74,
  75. 0x2e, 0x54, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  76. })
  77. var (
  78. file_common_protoext_testing_test_proto_rawDescOnce sync.Once
  79. file_common_protoext_testing_test_proto_rawDescData []byte
  80. )
  81. func file_common_protoext_testing_test_proto_rawDescGZIP() []byte {
  82. file_common_protoext_testing_test_proto_rawDescOnce.Do(func() {
  83. file_common_protoext_testing_test_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_common_protoext_testing_test_proto_rawDesc), len(file_common_protoext_testing_test_proto_rawDesc)))
  84. })
  85. return file_common_protoext_testing_test_proto_rawDescData
  86. }
  87. var file_common_protoext_testing_test_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  88. var file_common_protoext_testing_test_proto_goTypes = []any{
  89. (*TestingMessage)(nil), // 0: v2ray.core.common.protoext.testing.TestingMessage
  90. }
  91. var file_common_protoext_testing_test_proto_depIdxs = []int32{
  92. 0, // [0:0] is the sub-list for method output_type
  93. 0, // [0:0] is the sub-list for method input_type
  94. 0, // [0:0] is the sub-list for extension type_name
  95. 0, // [0:0] is the sub-list for extension extendee
  96. 0, // [0:0] is the sub-list for field type_name
  97. }
  98. func init() { file_common_protoext_testing_test_proto_init() }
  99. func file_common_protoext_testing_test_proto_init() {
  100. if File_common_protoext_testing_test_proto != nil {
  101. return
  102. }
  103. type x struct{}
  104. out := protoimpl.TypeBuilder{
  105. File: protoimpl.DescBuilder{
  106. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  107. RawDescriptor: unsafe.Slice(unsafe.StringData(file_common_protoext_testing_test_proto_rawDesc), len(file_common_protoext_testing_test_proto_rawDesc)),
  108. NumEnums: 0,
  109. NumMessages: 1,
  110. NumExtensions: 0,
  111. NumServices: 0,
  112. },
  113. GoTypes: file_common_protoext_testing_test_proto_goTypes,
  114. DependencyIndexes: file_common_protoext_testing_test_proto_depIdxs,
  115. MessageInfos: file_common_protoext_testing_test_proto_msgTypes,
  116. }.Build()
  117. File_common_protoext_testing_test_proto = out.File
  118. file_common_protoext_testing_test_proto_goTypes = nil
  119. file_common_protoext_testing_test_proto_depIdxs = nil
  120. }