test_import.pb.go 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: test/test_import.proto
  3. package test
  4. import (
  5. protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect"
  6. protoregistry "github.com/golang/protobuf/v2/reflect/protoregistry"
  7. protoiface "github.com/golang/protobuf/v2/runtime/protoiface"
  8. protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl"
  9. sync "sync"
  10. )
  11. const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
  12. type ImportEnum int32
  13. const (
  14. ImportEnum_IMPORT_ZERO ImportEnum = 0
  15. )
  16. // Deprecated: Use ImportEnum.Type.Values instead.
  17. var ImportEnum_name = map[int32]string{
  18. 0: "IMPORT_ZERO",
  19. }
  20. // Deprecated: Use ImportEnum.Type.Values instead.
  21. var ImportEnum_value = map[string]int32{
  22. "IMPORT_ZERO": 0,
  23. }
  24. func (x ImportEnum) Enum() *ImportEnum {
  25. p := new(ImportEnum)
  26. *p = x
  27. return p
  28. }
  29. func (x ImportEnum) String() string {
  30. return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
  31. }
  32. func (ImportEnum) Type() protoreflect.EnumType {
  33. return file_test_test_import_proto_enumTypes[0]
  34. }
  35. func (x ImportEnum) Number() protoreflect.EnumNumber {
  36. return protoreflect.EnumNumber(x)
  37. }
  38. // Deprecated: Do not use.
  39. func (x *ImportEnum) UnmarshalJSON(b []byte) error {
  40. num, err := protoimpl.X.UnmarshalJSONEnum(x.Type(), b)
  41. if err != nil {
  42. return err
  43. }
  44. *x = ImportEnum(num)
  45. return nil
  46. }
  47. // Deprecated: Use ImportEnum.Type instead.
  48. func (ImportEnum) EnumDescriptor() ([]byte, []int) {
  49. return file_test_test_import_proto_rawDescGZIP(), []int{0}
  50. }
  51. type ImportMessage struct {
  52. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  53. XXX_unrecognized protoimpl.UnknownFields `json:"-"`
  54. XXX_sizecache protoimpl.SizeCache `json:"-"`
  55. }
  56. func (x *ImportMessage) Reset() {
  57. *x = ImportMessage{}
  58. }
  59. func (x *ImportMessage) String() string {
  60. return protoimpl.X.MessageStringOf(x)
  61. }
  62. func (*ImportMessage) ProtoMessage() {}
  63. func (x *ImportMessage) ProtoReflect() protoreflect.Message {
  64. return file_test_test_import_proto_msgTypes[0].MessageOf(x)
  65. }
  66. func (m *ImportMessage) XXX_Methods() *protoiface.Methods {
  67. return file_test_test_import_proto_msgTypes[0].Methods()
  68. }
  69. // Deprecated: Use ImportMessage.ProtoReflect.Type instead.
  70. func (*ImportMessage) Descriptor() ([]byte, []int) {
  71. return file_test_test_import_proto_rawDescGZIP(), []int{0}
  72. }
  73. var File_test_test_import_proto protoreflect.FileDescriptor
  74. var file_test_test_import_proto_rawDesc = []byte{
  75. 0x0a, 0x16, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f,
  76. 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74,
  77. 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x22, 0x0f, 0x0a, 0x0d,
  78. 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2a, 0x1d, 0x0a,
  79. 0x0a, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x0f, 0x0a, 0x0b, 0x49,
  80. 0x4d, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00, 0x42, 0x38, 0x5a, 0x36,
  81. 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e,
  82. 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e,
  83. 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  84. 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74,
  85. }
  86. var (
  87. file_test_test_import_proto_rawDescOnce sync.Once
  88. file_test_test_import_proto_rawDescData = file_test_test_import_proto_rawDesc
  89. )
  90. func file_test_test_import_proto_rawDescGZIP() []byte {
  91. file_test_test_import_proto_rawDescOnce.Do(func() {
  92. file_test_test_import_proto_rawDescData = protoimpl.X.CompressGZIP(file_test_test_import_proto_rawDescData)
  93. })
  94. return file_test_test_import_proto_rawDescData
  95. }
  96. var file_test_test_import_proto_enumTypes = make([]protoreflect.EnumType, 1)
  97. var file_test_test_import_proto_msgTypes = make([]protoimpl.MessageType, 1)
  98. var file_test_test_import_proto_goTypes = []interface{}{
  99. (ImportEnum)(0), // 0: goproto.proto.test.ImportEnum
  100. (*ImportMessage)(nil), // 1: goproto.proto.test.ImportMessage
  101. }
  102. var file_test_test_import_proto_depIdxs = []int32{}
  103. func init() { file_test_test_import_proto_init() }
  104. func file_test_test_import_proto_init() {
  105. if File_test_test_import_proto != nil {
  106. return
  107. }
  108. File_test_test_import_proto = protoimpl.FileBuilder{
  109. RawDescriptor: file_test_test_import_proto_rawDesc,
  110. GoTypes: file_test_test_import_proto_goTypes,
  111. DependencyIndexes: file_test_test_import_proto_depIdxs,
  112. EnumOutputTypes: file_test_test_import_proto_enumTypes,
  113. MessageOutputTypes: file_test_test_import_proto_msgTypes,
  114. FilesRegistry: protoregistry.GlobalFiles,
  115. TypesRegistry: protoregistry.GlobalTypes,
  116. }.Init()
  117. file_test_test_import_proto_rawDesc = nil
  118. file_test_test_import_proto_goTypes = nil
  119. file_test_test_import_proto_depIdxs = nil
  120. }