test_import.pb.go 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: test/test_import.proto
  3. package test
  4. import (
  5. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  6. protoregistry "google.golang.org/protobuf/reflect/protoregistry"
  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. // Deprecated: Use ImportEnum.Type.Values instead.
  22. var ImportEnum_name = map[int32]string{
  23. 0: "IMPORT_ZERO",
  24. }
  25. // Deprecated: Use ImportEnum.Type.Values instead.
  26. var ImportEnum_value = map[string]int32{
  27. "IMPORT_ZERO": 0,
  28. }
  29. func (x ImportEnum) Enum() *ImportEnum {
  30. p := new(ImportEnum)
  31. *p = x
  32. return p
  33. }
  34. func (x ImportEnum) String() string {
  35. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  36. }
  37. func (ImportEnum) Descriptor() protoreflect.EnumDescriptor {
  38. return file_test_test_import_proto_enumTypes[0].Descriptor()
  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.Type instead.
  53. func (ImportEnum) EnumDescriptor() ([]byte, []int) {
  54. return file_test_test_import_proto_rawDescGZIP(), []int{0}
  55. }
  56. type ImportMessage struct {
  57. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  58. XXX_unrecognized protoimpl.UnknownFields `json:"-"`
  59. XXX_sizecache protoimpl.SizeCache `json:"-"`
  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. return file_test_test_import_proto_msgTypes[0].MessageOf(x)
  70. }
  71. func (m *ImportMessage) XXX_Methods() *protoiface.Methods {
  72. return file_test_test_import_proto_msgTypes[0].Methods()
  73. }
  74. // Deprecated: Use ImportMessage.ProtoReflect.Type instead.
  75. func (*ImportMessage) Descriptor() ([]byte, []int) {
  76. return file_test_test_import_proto_rawDescGZIP(), []int{0}
  77. }
  78. var File_test_test_import_proto protoreflect.FileDescriptor
  79. var file_test_test_import_proto_rawDesc = []byte{
  80. 0x0a, 0x16, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f,
  81. 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74,
  82. 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x22, 0x0f, 0x0a, 0x0d,
  83. 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2a, 0x1d, 0x0a,
  84. 0x0a, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x0f, 0x0a, 0x0b, 0x49,
  85. 0x4d, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00, 0x42, 0x35, 0x5a, 0x33,
  86. 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72,
  87. 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72,
  88. 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x74,
  89. 0x65, 0x73, 0x74,
  90. }
  91. var (
  92. file_test_test_import_proto_rawDescOnce sync.Once
  93. file_test_test_import_proto_rawDescData = file_test_test_import_proto_rawDesc
  94. )
  95. func file_test_test_import_proto_rawDescGZIP() []byte {
  96. file_test_test_import_proto_rawDescOnce.Do(func() {
  97. file_test_test_import_proto_rawDescData = protoimpl.X.CompressGZIP(file_test_test_import_proto_rawDescData)
  98. })
  99. return file_test_test_import_proto_rawDescData
  100. }
  101. var file_test_test_import_proto_enumTypes = make([]protoreflect.EnumType, 1)
  102. var file_test_test_import_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  103. var file_test_test_import_proto_goTypes = []interface{}{
  104. (ImportEnum)(0), // 0: goproto.proto.test.ImportEnum
  105. (*ImportMessage)(nil), // 1: goproto.proto.test.ImportMessage
  106. }
  107. var file_test_test_import_proto_depIdxs = []int32{}
  108. func init() { file_test_test_import_proto_init() }
  109. func file_test_test_import_proto_init() {
  110. if File_test_test_import_proto != nil {
  111. return
  112. }
  113. File_test_test_import_proto = protoimpl.FileBuilder{
  114. RawDescriptor: file_test_test_import_proto_rawDesc,
  115. GoTypes: file_test_test_import_proto_goTypes,
  116. DependencyIndexes: file_test_test_import_proto_depIdxs,
  117. EnumOutputTypes: file_test_test_import_proto_enumTypes,
  118. MessageOutputTypes: file_test_test_import_proto_msgTypes,
  119. FilesRegistry: protoregistry.GlobalFiles,
  120. TypesRegistry: protoregistry.GlobalTypes,
  121. }.Init()
  122. file_test_test_import_proto_rawDesc = nil
  123. file_test_test_import_proto_goTypes = nil
  124. file_test_test_import_proto_depIdxs = nil
  125. }