comments.pb.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: comments/comments.proto
  3. // COMMENT: package goproto.protoc.comments;
  4. package comments
  5. import (
  6. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  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. // COMMENT: Message1
  18. type Message1 struct {
  19. // COMMENT: Field1A
  20. Field1A *string `protobuf:"bytes,1,opt,name=Field1A" json:"Field1A,omitempty"`
  21. // COMMENT: Oneof1A
  22. //
  23. // Types that are valid to be assigned to Oneof1A:
  24. // COMMENT: Oneof1AField1
  25. // *Message1_Oneof1AField1
  26. Oneof1A isMessage1_Oneof1A `protobuf_oneof:"Oneof1a"`
  27. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  28. XXX_unrecognized protoimpl.UnknownFields `json:"-"`
  29. XXX_sizecache protoimpl.SizeCache `json:"-"`
  30. }
  31. func (x *Message1) Reset() {
  32. *x = Message1{}
  33. }
  34. func (x *Message1) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*Message1) ProtoMessage() {}
  38. func (x *Message1) ProtoReflect() protoreflect.Message {
  39. return file_comments_comments_proto_msgTypes[0].MessageOf(x)
  40. }
  41. func (m *Message1) XXX_Methods() *protoiface.Methods {
  42. return file_comments_comments_proto_msgTypes[0].Methods()
  43. }
  44. // Deprecated: Use Message1.ProtoReflect.Type instead.
  45. func (*Message1) Descriptor() ([]byte, []int) {
  46. return file_comments_comments_proto_rawDescGZIP(), []int{0}
  47. }
  48. func (x *Message1) GetField1A() string {
  49. if x != nil && x.Field1A != nil {
  50. return *x.Field1A
  51. }
  52. return ""
  53. }
  54. func (m *Message1) GetOneof1A() isMessage1_Oneof1A {
  55. if m != nil {
  56. return m.Oneof1A
  57. }
  58. return nil
  59. }
  60. func (x *Message1) GetOneof1AField1() string {
  61. if x, ok := x.GetOneof1A().(*Message1_Oneof1AField1); ok {
  62. return x.Oneof1AField1
  63. }
  64. return ""
  65. }
  66. // XXX_OneofWrappers is for the internal use of the proto package.
  67. func (*Message1) XXX_OneofWrappers() []interface{} {
  68. return []interface{}{
  69. (*Message1_Oneof1AField1)(nil),
  70. }
  71. }
  72. type isMessage1_Oneof1A interface {
  73. isMessage1_Oneof1A()
  74. }
  75. type Message1_Oneof1AField1 struct {
  76. Oneof1AField1 string `protobuf:"bytes,2,opt,name=Oneof1AField1,oneof"`
  77. }
  78. func (*Message1_Oneof1AField1) isMessage1_Oneof1A() {}
  79. // COMMENT: Message2
  80. type Message2 struct {
  81. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  82. XXX_unrecognized protoimpl.UnknownFields `json:"-"`
  83. XXX_sizecache protoimpl.SizeCache `json:"-"`
  84. }
  85. func (x *Message2) Reset() {
  86. *x = Message2{}
  87. }
  88. func (x *Message2) String() string {
  89. return protoimpl.X.MessageStringOf(x)
  90. }
  91. func (*Message2) ProtoMessage() {}
  92. func (x *Message2) ProtoReflect() protoreflect.Message {
  93. return file_comments_comments_proto_msgTypes[1].MessageOf(x)
  94. }
  95. func (m *Message2) XXX_Methods() *protoiface.Methods {
  96. return file_comments_comments_proto_msgTypes[1].Methods()
  97. }
  98. // Deprecated: Use Message2.ProtoReflect.Type instead.
  99. func (*Message2) Descriptor() ([]byte, []int) {
  100. return file_comments_comments_proto_rawDescGZIP(), []int{1}
  101. }
  102. // COMMENT: Message1A
  103. type Message1_Message1A struct {
  104. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  105. XXX_unrecognized protoimpl.UnknownFields `json:"-"`
  106. XXX_sizecache protoimpl.SizeCache `json:"-"`
  107. }
  108. func (x *Message1_Message1A) Reset() {
  109. *x = Message1_Message1A{}
  110. }
  111. func (x *Message1_Message1A) String() string {
  112. return protoimpl.X.MessageStringOf(x)
  113. }
  114. func (*Message1_Message1A) ProtoMessage() {}
  115. func (x *Message1_Message1A) ProtoReflect() protoreflect.Message {
  116. return file_comments_comments_proto_msgTypes[2].MessageOf(x)
  117. }
  118. func (m *Message1_Message1A) XXX_Methods() *protoiface.Methods {
  119. return file_comments_comments_proto_msgTypes[2].Methods()
  120. }
  121. // Deprecated: Use Message1_Message1A.ProtoReflect.Type instead.
  122. func (*Message1_Message1A) Descriptor() ([]byte, []int) {
  123. return file_comments_comments_proto_rawDescGZIP(), []int{0, 0}
  124. }
  125. // COMMENT: Message1B
  126. type Message1_Message1B struct {
  127. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  128. XXX_unrecognized protoimpl.UnknownFields `json:"-"`
  129. XXX_sizecache protoimpl.SizeCache `json:"-"`
  130. }
  131. func (x *Message1_Message1B) Reset() {
  132. *x = Message1_Message1B{}
  133. }
  134. func (x *Message1_Message1B) String() string {
  135. return protoimpl.X.MessageStringOf(x)
  136. }
  137. func (*Message1_Message1B) ProtoMessage() {}
  138. func (x *Message1_Message1B) ProtoReflect() protoreflect.Message {
  139. return file_comments_comments_proto_msgTypes[3].MessageOf(x)
  140. }
  141. func (m *Message1_Message1B) XXX_Methods() *protoiface.Methods {
  142. return file_comments_comments_proto_msgTypes[3].Methods()
  143. }
  144. // Deprecated: Use Message1_Message1B.ProtoReflect.Type instead.
  145. func (*Message1_Message1B) Descriptor() ([]byte, []int) {
  146. return file_comments_comments_proto_rawDescGZIP(), []int{0, 1}
  147. }
  148. // COMMENT: Message2A
  149. type Message2_Message2A struct {
  150. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  151. XXX_unrecognized protoimpl.UnknownFields `json:"-"`
  152. XXX_sizecache protoimpl.SizeCache `json:"-"`
  153. }
  154. func (x *Message2_Message2A) Reset() {
  155. *x = Message2_Message2A{}
  156. }
  157. func (x *Message2_Message2A) String() string {
  158. return protoimpl.X.MessageStringOf(x)
  159. }
  160. func (*Message2_Message2A) ProtoMessage() {}
  161. func (x *Message2_Message2A) ProtoReflect() protoreflect.Message {
  162. return file_comments_comments_proto_msgTypes[4].MessageOf(x)
  163. }
  164. func (m *Message2_Message2A) XXX_Methods() *protoiface.Methods {
  165. return file_comments_comments_proto_msgTypes[4].Methods()
  166. }
  167. // Deprecated: Use Message2_Message2A.ProtoReflect.Type instead.
  168. func (*Message2_Message2A) Descriptor() ([]byte, []int) {
  169. return file_comments_comments_proto_rawDescGZIP(), []int{1, 0}
  170. }
  171. // COMMENT: Message2B
  172. type Message2_Message2B struct {
  173. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  174. XXX_unrecognized protoimpl.UnknownFields `json:"-"`
  175. XXX_sizecache protoimpl.SizeCache `json:"-"`
  176. }
  177. func (x *Message2_Message2B) Reset() {
  178. *x = Message2_Message2B{}
  179. }
  180. func (x *Message2_Message2B) String() string {
  181. return protoimpl.X.MessageStringOf(x)
  182. }
  183. func (*Message2_Message2B) ProtoMessage() {}
  184. func (x *Message2_Message2B) ProtoReflect() protoreflect.Message {
  185. return file_comments_comments_proto_msgTypes[5].MessageOf(x)
  186. }
  187. func (m *Message2_Message2B) XXX_Methods() *protoiface.Methods {
  188. return file_comments_comments_proto_msgTypes[5].Methods()
  189. }
  190. // Deprecated: Use Message2_Message2B.ProtoReflect.Type instead.
  191. func (*Message2_Message2B) Descriptor() ([]byte, []int) {
  192. return file_comments_comments_proto_rawDescGZIP(), []int{1, 1}
  193. }
  194. var File_comments_comments_proto protoreflect.FileDescriptor
  195. var file_comments_comments_proto_rawDesc = []byte{
  196. 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x65,
  197. 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, 0x70, 0x72, 0x6f,
  198. 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,
  199. 0x74, 0x73, 0x22, 0x71, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x12, 0x18,
  200. 0x0a, 0x07, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x31, 0x41, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  201. 0x07, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x31, 0x41, 0x12, 0x26, 0x0a, 0x0d, 0x4f, 0x6e, 0x65, 0x6f,
  202. 0x66, 0x31, 0x41, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x31, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48,
  203. 0x00, 0x52, 0x0d, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x31, 0x41, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x31,
  204. 0x1a, 0x0b, 0x0a, 0x09, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x41, 0x1a, 0x0b, 0x0a,
  205. 0x09, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x42, 0x42, 0x09, 0x0a, 0x07, 0x4f, 0x6e,
  206. 0x65, 0x6f, 0x66, 0x31, 0x61, 0x22, 0x24, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  207. 0x32, 0x1a, 0x0b, 0x0a, 0x09, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x41, 0x1a, 0x0b,
  208. 0x0a, 0x09, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x42, 0x42, 0x40, 0x5a, 0x3e, 0x67,
  209. 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67,
  210. 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72,
  211. 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74,
  212. 0x64, 0x61, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73,
  213. }
  214. var (
  215. file_comments_comments_proto_rawDescOnce sync.Once
  216. file_comments_comments_proto_rawDescData = file_comments_comments_proto_rawDesc
  217. )
  218. func file_comments_comments_proto_rawDescGZIP() []byte {
  219. file_comments_comments_proto_rawDescOnce.Do(func() {
  220. file_comments_comments_proto_rawDescData = protoimpl.X.CompressGZIP(file_comments_comments_proto_rawDescData)
  221. })
  222. return file_comments_comments_proto_rawDescData
  223. }
  224. var file_comments_comments_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
  225. var file_comments_comments_proto_goTypes = []interface{}{
  226. (*Message1)(nil), // 0: goproto.protoc.comments.Message1
  227. (*Message2)(nil), // 1: goproto.protoc.comments.Message2
  228. (*Message1_Message1A)(nil), // 2: goproto.protoc.comments.Message1.Message1A
  229. (*Message1_Message1B)(nil), // 3: goproto.protoc.comments.Message1.Message1B
  230. (*Message2_Message2A)(nil), // 4: goproto.protoc.comments.Message2.Message2A
  231. (*Message2_Message2B)(nil), // 5: goproto.protoc.comments.Message2.Message2B
  232. }
  233. var file_comments_comments_proto_depIdxs = []int32{
  234. 0, // starting offset of method output_type sub-list
  235. 0, // starting offset of method input_type sub-list
  236. 0, // starting offset of extension type_name sub-list
  237. 0, // starting offset of extension extendee sub-list
  238. 0, // starting offset of field type_name sub-list
  239. }
  240. func init() { file_comments_comments_proto_init() }
  241. func file_comments_comments_proto_init() {
  242. if File_comments_comments_proto != nil {
  243. return
  244. }
  245. out := protoimpl.TypeBuilder{
  246. File: protoimpl.DescBuilder{
  247. RawDescriptor: file_comments_comments_proto_rawDesc,
  248. NumEnums: 0,
  249. NumMessages: 6,
  250. NumExtensions: 0,
  251. NumServices: 0,
  252. },
  253. GoTypes: file_comments_comments_proto_goTypes,
  254. DependencyIndexes: file_comments_comments_proto_depIdxs,
  255. MessageInfos: file_comments_comments_proto_msgTypes,
  256. }.Build()
  257. File_comments_comments_proto = out.File
  258. file_comments_comments_proto_rawDesc = nil
  259. file_comments_comments_proto_goTypes = nil
  260. file_comments_comments_proto_depIdxs = nil
  261. }