test_import.pb.go 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: test3/test_import.proto
  3. package test3
  4. import (
  5. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  6. prototype "google.golang.org/protobuf/reflect/prototype"
  7. protoiface "google.golang.org/protobuf/runtime/protoiface"
  8. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  9. sync "sync"
  10. )
  11. const (
  12. // Verify that runtime/protoimpl is sufficiently up-to-date.
  13. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0)
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion)
  16. )
  17. type ImportEnum int32
  18. const (
  19. ImportEnum_IMPORT_ZERO ImportEnum = 0
  20. )
  21. var ImportEnum_name = map[int32]string{
  22. 0: "IMPORT_ZERO",
  23. }
  24. var ImportEnum_value = map[string]int32{
  25. "IMPORT_ZERO": 0,
  26. }
  27. func (x ImportEnum) Enum() *ImportEnum {
  28. p := new(ImportEnum)
  29. *p = x
  30. return p
  31. }
  32. func (x ImportEnum) String() string {
  33. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  34. }
  35. func (ImportEnum) Descriptor() protoreflect.EnumDescriptor {
  36. return file_test3_test_import_proto_enumTypes[0].EnumDescriptor
  37. }
  38. func (x ImportEnum) Number() protoreflect.EnumNumber {
  39. return protoreflect.EnumNumber(x)
  40. }
  41. // Deprecated: Use ImportEnum.Type instead.
  42. func (ImportEnum) EnumDescriptor() ([]byte, []int) {
  43. return file_test3_test_import_proto_rawDescGZIP(), []int{0}
  44. }
  45. type ImportMessage struct {
  46. sizeCache protoimpl.SizeCache
  47. unknownFields protoimpl.UnknownFields
  48. }
  49. func (x *ImportMessage) Reset() {
  50. *x = ImportMessage{}
  51. }
  52. func (x *ImportMessage) String() string {
  53. return protoimpl.X.MessageStringOf(x)
  54. }
  55. func (*ImportMessage) ProtoMessage() {}
  56. func (x *ImportMessage) ProtoReflect() protoreflect.Message {
  57. return file_test3_test_import_proto_msgTypes[0].MessageOf(x)
  58. }
  59. func (m *ImportMessage) XXX_Methods() *protoiface.Methods {
  60. return file_test3_test_import_proto_msgTypes[0].Methods()
  61. }
  62. // Deprecated: Use ImportMessage.ProtoReflect.Type instead.
  63. func (*ImportMessage) Descriptor() ([]byte, []int) {
  64. return file_test3_test_import_proto_rawDescGZIP(), []int{0}
  65. }
  66. var File_test3_test_import_proto protoreflect.FileDescriptor
  67. var file_test3_test_import_proto_rawDesc = []byte{
  68. 0x0a, 0x17, 0x74, 0x65, 0x73, 0x74, 0x33, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70,
  69. 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x67, 0x6f, 0x70, 0x72, 0x6f,
  70. 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x33, 0x22, 0x0f,
  71. 0x0a, 0x0d, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2a,
  72. 0x1d, 0x0a, 0x0a, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x0f, 0x0a,
  73. 0x0b, 0x49, 0x4d, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00, 0x42, 0x36,
  74. 0x5a, 0x34, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e,
  75. 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e, 0x74,
  76. 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73,
  77. 0x2f, 0x74, 0x65, 0x73, 0x74, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  78. }
  79. var (
  80. file_test3_test_import_proto_rawDescOnce sync.Once
  81. file_test3_test_import_proto_rawDescData = file_test3_test_import_proto_rawDesc
  82. )
  83. func file_test3_test_import_proto_rawDescGZIP() []byte {
  84. file_test3_test_import_proto_rawDescOnce.Do(func() {
  85. file_test3_test_import_proto_rawDescData = protoimpl.X.CompressGZIP(file_test3_test_import_proto_rawDescData)
  86. })
  87. return file_test3_test_import_proto_rawDescData
  88. }
  89. var file_test3_test_import_proto_enumTypes = make([]prototype.Enum, 1)
  90. var file_test3_test_import_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  91. var file_test3_test_import_proto_goTypes = []interface{}{
  92. (ImportEnum)(0), // 0: goproto.proto.test3.ImportEnum
  93. (*ImportMessage)(nil), // 1: goproto.proto.test3.ImportMessage
  94. }
  95. var file_test3_test_import_proto_depIdxs = []int32{
  96. 0, // starting offset of method output_type sub-list
  97. 0, // starting offset of method input_type sub-list
  98. 0, // starting offset of extension type_name sub-list
  99. 0, // starting offset of extension extendee sub-list
  100. 0, // starting offset of field type_name sub-list
  101. }
  102. func init() { file_test3_test_import_proto_init() }
  103. func file_test3_test_import_proto_init() {
  104. if File_test3_test_import_proto != nil {
  105. return
  106. }
  107. if !protoimpl.UnsafeEnabled {
  108. file_test3_test_import_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  109. switch v := v.(*ImportMessage); i {
  110. case 0:
  111. return &v.sizeCache
  112. case 1:
  113. return &v.unknownFields
  114. default:
  115. return nil
  116. }
  117. }
  118. }
  119. out := protoimpl.TypeBuilder{
  120. File: protoimpl.DescBuilder{
  121. RawDescriptor: file_test3_test_import_proto_rawDesc,
  122. NumEnums: 1,
  123. NumMessages: 1,
  124. NumExtensions: 0,
  125. NumServices: 0,
  126. },
  127. GoTypes: file_test3_test_import_proto_goTypes,
  128. DependencyIndexes: file_test3_test_import_proto_depIdxs,
  129. MessageInfos: file_test3_test_import_proto_msgTypes,
  130. }.Build()
  131. File_test3_test_import_proto = out.File
  132. file_test3_test_import_proto_enumTypes = out.Enums
  133. file_test3_test_import_proto_rawDesc = nil
  134. file_test3_test_import_proto_goTypes = nil
  135. file_test3_test_import_proto_depIdxs = nil
  136. }