test_import.pb.go 5.5 KB

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