test_import.pb.go 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: test_import.proto
  3. package test
  4. import (
  5. bytes "bytes"
  6. gzip "compress/gzip"
  7. proto "github.com/golang/protobuf/proto"
  8. protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect"
  9. protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl"
  10. reflect "reflect"
  11. )
  12. // This is a compile-time assertion to ensure that this generated file
  13. // is compatible with the proto package it is being compiled against.
  14. // A compilation error at this line likely means your copy of the
  15. // proto package needs to be updated.
  16. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  17. type ImportEnum int32
  18. const (
  19. ImportEnum_IMPORT_ZERO ImportEnum = 0
  20. )
  21. func (e ImportEnum) Type() protoreflect.EnumType {
  22. return xxx_TestImport_protoFile_enumTypes[0]
  23. }
  24. func (e ImportEnum) Number() protoreflect.EnumNumber {
  25. return protoreflect.EnumNumber(e)
  26. }
  27. var ImportEnum_name = map[int32]string{
  28. 0: "IMPORT_ZERO",
  29. }
  30. var ImportEnum_value = map[string]int32{
  31. "IMPORT_ZERO": 0,
  32. }
  33. func (x ImportEnum) Enum() *ImportEnum {
  34. p := new(ImportEnum)
  35. *p = x
  36. return p
  37. }
  38. func (x ImportEnum) String() string {
  39. return proto.EnumName(ImportEnum_name, int32(x))
  40. }
  41. func (x *ImportEnum) UnmarshalJSON(data []byte) error {
  42. value, err := proto.UnmarshalJSONEnum(ImportEnum_value, data, "ImportEnum")
  43. if err != nil {
  44. return err
  45. }
  46. *x = ImportEnum(value)
  47. return nil
  48. }
  49. func (ImportEnum) EnumDescriptor() ([]byte, []int) {
  50. return fileDescriptor_89be98e26346f54e_gzipped, []int{0}
  51. }
  52. type ImportMessage struct {
  53. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  54. XXX_unrecognized []byte `json:"-"`
  55. XXX_sizecache int32 `json:"-"`
  56. }
  57. func (m *ImportMessage) ProtoReflect() protoreflect.Message {
  58. return xxx_TestImport_protoFile_messageTypes[0].MessageOf(m)
  59. }
  60. func (m *ImportMessage) Reset() { *m = ImportMessage{} }
  61. func (m *ImportMessage) String() string { return proto.CompactTextString(m) }
  62. func (*ImportMessage) ProtoMessage() {}
  63. func (*ImportMessage) Descriptor() ([]byte, []int) {
  64. return fileDescriptor_89be98e26346f54e_gzipped, []int{0}
  65. }
  66. func (m *ImportMessage) XXX_Unmarshal(b []byte) error {
  67. return xxx_messageInfo_ImportMessage.Unmarshal(m, b)
  68. }
  69. func (m *ImportMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  70. return xxx_messageInfo_ImportMessage.Marshal(b, m, deterministic)
  71. }
  72. func (m *ImportMessage) XXX_Merge(src proto.Message) {
  73. xxx_messageInfo_ImportMessage.Merge(m, src)
  74. }
  75. func (m *ImportMessage) XXX_Size() int {
  76. return xxx_messageInfo_ImportMessage.Size(m)
  77. }
  78. func (m *ImportMessage) XXX_DiscardUnknown() {
  79. xxx_messageInfo_ImportMessage.DiscardUnknown(m)
  80. }
  81. var xxx_messageInfo_ImportMessage proto.InternalMessageInfo
  82. func init() {
  83. proto.RegisterFile("test_import.proto", fileDescriptor_89be98e26346f54e_gzipped)
  84. proto.RegisterEnum("goproto.proto.test.ImportEnum", ImportEnum_name, ImportEnum_value)
  85. proto.RegisterType((*ImportMessage)(nil), "goproto.proto.test.ImportMessage")
  86. }
  87. var fileDescriptor_89be98e26346f54e = []byte{
  88. // 145 bytes of the wire-encoded FileDescriptorProto
  89. 0x0a, 0x11, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72,
  90. 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
  91. 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x22, 0x0f, 0x0a, 0x0d, 0x49, 0x6d, 0x70, 0x6f, 0x72,
  92. 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2a, 0x1d, 0x0a, 0x0a, 0x49, 0x6d, 0x70, 0x6f,
  93. 0x72, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x0f, 0x0a, 0x0b, 0x49, 0x4d, 0x50, 0x4f, 0x52, 0x54,
  94. 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00, 0x42, 0x38, 0x5a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75,
  95. 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f,
  96. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61,
  97. 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x74, 0x65, 0x73,
  98. 0x74,
  99. }
  100. var fileDescriptor_89be98e26346f54e_gzipped = func() []byte {
  101. bb := new(bytes.Buffer)
  102. zw, _ := gzip.NewWriterLevel(bb, gzip.NoCompression)
  103. zw.Write(fileDescriptor_89be98e26346f54e)
  104. zw.Close()
  105. return bb.Bytes()
  106. }()
  107. const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
  108. var TestImport_protoFile protoreflect.FileDescriptor
  109. var xxx_TestImport_protoFile_enumTypes [1]protoreflect.EnumType
  110. var xxx_TestImport_protoFile_messageTypes [1]protoimpl.MessageType
  111. var xxx_TestImport_protoFile_goTypes = []interface{}{
  112. (ImportEnum)(0), // 0: goproto.proto.test.ImportEnum
  113. (*ImportMessage)(nil), // 1: goproto.proto.test.ImportMessage
  114. }
  115. var xxx_TestImport_protoFile_depIdxs = []int32{}
  116. func init() {
  117. var messageTypes [1]protoreflect.MessageType
  118. TestImport_protoFile = protoimpl.FileBuilder{
  119. RawDescriptor: fileDescriptor_89be98e26346f54e,
  120. GoTypes: xxx_TestImport_protoFile_goTypes,
  121. DependencyIndexes: xxx_TestImport_protoFile_depIdxs,
  122. EnumOutputTypes: xxx_TestImport_protoFile_enumTypes[:],
  123. MessageOutputTypes: messageTypes[:],
  124. }.Init()
  125. messageGoTypes := xxx_TestImport_protoFile_goTypes[1:][:1]
  126. for i, mt := range messageTypes[:] {
  127. xxx_TestImport_protoFile_messageTypes[i].GoType = reflect.TypeOf(messageGoTypes[i])
  128. xxx_TestImport_protoFile_messageTypes[i].PBType = mt
  129. }
  130. xxx_TestImport_protoFile_goTypes = nil
  131. xxx_TestImport_protoFile_depIdxs = nil
  132. }