test.pb.go 6.1 KB

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