test_import.pb.go 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. // Copyright 2018 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // Code generated by protoc-gen-go. DO NOT EDIT.
  5. // source: test/test_import.proto
  6. package test
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. type ImportEnum int32
  14. const (
  15. ImportEnum_IMPORT_ZERO ImportEnum = 0
  16. )
  17. // Enum value maps for ImportEnum.
  18. var (
  19. ImportEnum_name = map[int32]string{
  20. 0: "IMPORT_ZERO",
  21. }
  22. ImportEnum_value = map[string]int32{
  23. "IMPORT_ZERO": 0,
  24. }
  25. )
  26. func (x ImportEnum) Enum() *ImportEnum {
  27. p := new(ImportEnum)
  28. *p = x
  29. return p
  30. }
  31. func (x ImportEnum) String() string {
  32. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  33. }
  34. func (ImportEnum) Descriptor() protoreflect.EnumDescriptor {
  35. return file_test_test_import_proto_enumTypes[0].Descriptor()
  36. }
  37. func (ImportEnum) Type() protoreflect.EnumType {
  38. return &file_test_test_import_proto_enumTypes[0]
  39. }
  40. func (x ImportEnum) Number() protoreflect.EnumNumber {
  41. return protoreflect.EnumNumber(x)
  42. }
  43. // Deprecated: Do not use.
  44. func (x *ImportEnum) UnmarshalJSON(b []byte) error {
  45. num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
  46. if err != nil {
  47. return err
  48. }
  49. *x = ImportEnum(num)
  50. return nil
  51. }
  52. // Deprecated: Use ImportEnum.Descriptor instead.
  53. func (ImportEnum) EnumDescriptor() ([]byte, []int) {
  54. return file_test_test_import_proto_rawDescGZIP(), []int{0}
  55. }
  56. type ImportMessage struct {
  57. state protoimpl.MessageState
  58. sizeCache protoimpl.SizeCache
  59. unknownFields protoimpl.UnknownFields
  60. }
  61. func (x *ImportMessage) Reset() {
  62. *x = ImportMessage{}
  63. }
  64. func (x *ImportMessage) String() string {
  65. return protoimpl.X.MessageStringOf(x)
  66. }
  67. func (*ImportMessage) ProtoMessage() {}
  68. func (x *ImportMessage) ProtoReflect() protoreflect.Message {
  69. mi := &file_test_test_import_proto_msgTypes[0]
  70. if protoimpl.UnsafeEnabled && x != nil {
  71. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  72. if ms.LoadMessageInfo() == nil {
  73. ms.StoreMessageInfo(mi)
  74. }
  75. return ms
  76. }
  77. return mi.MessageOf(x)
  78. }
  79. // Deprecated: Use ImportMessage.ProtoReflect.Descriptor instead.
  80. func (*ImportMessage) Descriptor() ([]byte, []int) {
  81. return file_test_test_import_proto_rawDescGZIP(), []int{0}
  82. }
  83. var File_test_test_import_proto protoreflect.FileDescriptor
  84. var file_test_test_import_proto_rawDesc = []byte{
  85. 0x0a, 0x16, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f,
  86. 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74,
  87. 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x22, 0x0f, 0x0a, 0x0d,
  88. 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2a, 0x1d, 0x0a,
  89. 0x0a, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x0f, 0x0a, 0x0b, 0x49,
  90. 0x4d, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00, 0x42, 0x35, 0x5a, 0x33,
  91. 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72,
  92. 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72,
  93. 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x74,
  94. 0x65, 0x73, 0x74,
  95. }
  96. var (
  97. file_test_test_import_proto_rawDescOnce sync.Once
  98. file_test_test_import_proto_rawDescData = file_test_test_import_proto_rawDesc
  99. )
  100. func file_test_test_import_proto_rawDescGZIP() []byte {
  101. file_test_test_import_proto_rawDescOnce.Do(func() {
  102. file_test_test_import_proto_rawDescData = protoimpl.X.CompressGZIP(file_test_test_import_proto_rawDescData)
  103. })
  104. return file_test_test_import_proto_rawDescData
  105. }
  106. var file_test_test_import_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  107. var file_test_test_import_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  108. var file_test_test_import_proto_goTypes = []interface{}{
  109. (ImportEnum)(0), // 0: goproto.proto.test.ImportEnum
  110. (*ImportMessage)(nil), // 1: goproto.proto.test.ImportMessage
  111. }
  112. var file_test_test_import_proto_depIdxs = []int32{
  113. 0, // [0:0] is the sub-list for method output_type
  114. 0, // [0:0] is the sub-list for method input_type
  115. 0, // [0:0] is the sub-list for extension type_name
  116. 0, // [0:0] is the sub-list for extension extendee
  117. 0, // [0:0] is the sub-list for field type_name
  118. }
  119. func init() { file_test_test_import_proto_init() }
  120. func file_test_test_import_proto_init() {
  121. if File_test_test_import_proto != nil {
  122. return
  123. }
  124. if !protoimpl.UnsafeEnabled {
  125. file_test_test_import_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  126. switch v := v.(*ImportMessage); i {
  127. case 0:
  128. return &v.state
  129. case 1:
  130. return &v.sizeCache
  131. case 2:
  132. return &v.unknownFields
  133. default:
  134. return nil
  135. }
  136. }
  137. }
  138. type x struct{}
  139. out := protoimpl.TypeBuilder{
  140. File: protoimpl.DescBuilder{
  141. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  142. RawDescriptor: file_test_test_import_proto_rawDesc,
  143. NumEnums: 1,
  144. NumMessages: 1,
  145. NumExtensions: 0,
  146. NumServices: 0,
  147. },
  148. GoTypes: file_test_test_import_proto_goTypes,
  149. DependencyIndexes: file_test_test_import_proto_depIdxs,
  150. EnumInfos: file_test_test_import_proto_enumTypes,
  151. MessageInfos: file_test_test_import_proto_msgTypes,
  152. }.Build()
  153. File_test_test_import_proto = out.File
  154. file_test_test_import_proto_rawDesc = nil
  155. file_test_test_import_proto_goTypes = nil
  156. file_test_test_import_proto_depIdxs = nil
  157. }