test_import_a1m1.pb.go 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. // Copyright 2018 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // Code generated by protoc-gen-go. DO NOT EDIT.
  5. // source: imports/test_import_a1m1.proto
  6. package imports
  7. import (
  8. test_a_1 "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_1"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. type A1M1 struct {
  15. state protoimpl.MessageState
  16. sizeCache protoimpl.SizeCache
  17. unknownFields protoimpl.UnknownFields
  18. F *test_a_1.M1 `protobuf:"bytes,1,opt,name=f,proto3" json:"f,omitempty"`
  19. }
  20. func (x *A1M1) Reset() {
  21. *x = A1M1{}
  22. }
  23. func (x *A1M1) String() string {
  24. return protoimpl.X.MessageStringOf(x)
  25. }
  26. func (*A1M1) ProtoMessage() {}
  27. func (x *A1M1) ProtoReflect() protoreflect.Message {
  28. mi := &file_imports_test_import_a1m1_proto_msgTypes[0]
  29. if protoimpl.UnsafeEnabled && x != nil {
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. if ms.LoadMessageInfo() == nil {
  32. ms.StoreMessageInfo(mi)
  33. }
  34. return ms
  35. }
  36. return mi.MessageOf(x)
  37. }
  38. // Deprecated: Use A1M1.ProtoReflect.Descriptor instead.
  39. func (*A1M1) Descriptor() ([]byte, []int) {
  40. return file_imports_test_import_a1m1_proto_rawDescGZIP(), []int{0}
  41. }
  42. func (x *A1M1) GetF() *test_a_1.M1 {
  43. if x != nil {
  44. return x.F
  45. }
  46. return nil
  47. }
  48. var File_imports_test_import_a1m1_proto protoreflect.FileDescriptor
  49. var file_imports_test_import_a1m1_proto_rawDesc = []byte{
  50. 0x0a, 0x1e, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69,
  51. 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x61, 0x31, 0x6d, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  52. 0x12, 0x04, 0x74, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f,
  53. 0x74, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x5f, 0x31, 0x2f, 0x6d, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  54. 0x6f, 0x22, 0x20, 0x0a, 0x04, 0x41, 0x31, 0x4d, 0x31, 0x12, 0x18, 0x0a, 0x01, 0x66, 0x18, 0x01,
  55. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x61, 0x2e, 0x4d, 0x31,
  56. 0x52, 0x01, 0x66, 0x42, 0x3f, 0x5a, 0x3d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f,
  57. 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  58. 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e,
  59. 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70,
  60. 0x6f, 0x72, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  61. }
  62. var (
  63. file_imports_test_import_a1m1_proto_rawDescOnce sync.Once
  64. file_imports_test_import_a1m1_proto_rawDescData = file_imports_test_import_a1m1_proto_rawDesc
  65. )
  66. func file_imports_test_import_a1m1_proto_rawDescGZIP() []byte {
  67. file_imports_test_import_a1m1_proto_rawDescOnce.Do(func() {
  68. file_imports_test_import_a1m1_proto_rawDescData = protoimpl.X.CompressGZIP(file_imports_test_import_a1m1_proto_rawDescData)
  69. })
  70. return file_imports_test_import_a1m1_proto_rawDescData
  71. }
  72. var file_imports_test_import_a1m1_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  73. var file_imports_test_import_a1m1_proto_goTypes = []interface{}{
  74. (*A1M1)(nil), // 0: test.A1M1
  75. (*test_a_1.M1)(nil), // 1: test.a.M1
  76. }
  77. var file_imports_test_import_a1m1_proto_depIdxs = []int32{
  78. 1, // 0: test.A1M1.f:type_name -> test.a.M1
  79. 1, // [1:1] is the sub-list for method output_type
  80. 1, // [1:1] is the sub-list for method input_type
  81. 1, // [1:1] is the sub-list for extension type_name
  82. 1, // [1:1] is the sub-list for extension extendee
  83. 0, // [0:1] is the sub-list for field type_name
  84. }
  85. func init() { file_imports_test_import_a1m1_proto_init() }
  86. func file_imports_test_import_a1m1_proto_init() {
  87. if File_imports_test_import_a1m1_proto != nil {
  88. return
  89. }
  90. if !protoimpl.UnsafeEnabled {
  91. file_imports_test_import_a1m1_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  92. switch v := v.(*A1M1); i {
  93. case 0:
  94. return &v.state
  95. case 1:
  96. return &v.sizeCache
  97. case 2:
  98. return &v.unknownFields
  99. default:
  100. return nil
  101. }
  102. }
  103. }
  104. type x struct{}
  105. out := protoimpl.TypeBuilder{
  106. File: protoimpl.DescBuilder{
  107. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  108. RawDescriptor: file_imports_test_import_a1m1_proto_rawDesc,
  109. NumEnums: 0,
  110. NumMessages: 1,
  111. NumExtensions: 0,
  112. NumServices: 0,
  113. },
  114. GoTypes: file_imports_test_import_a1m1_proto_goTypes,
  115. DependencyIndexes: file_imports_test_import_a1m1_proto_depIdxs,
  116. MessageInfos: file_imports_test_import_a1m1_proto_msgTypes,
  117. }.Build()
  118. File_imports_test_import_a1m1_proto = out.File
  119. file_imports_test_import_a1m1_proto_rawDesc = nil
  120. file_imports_test_import_a1m1_proto_goTypes = nil
  121. file_imports_test_import_a1m1_proto_depIdxs = nil
  122. }