fork of https://github.com/sourcegraph/zoekt
1// Copyright 2020 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//
5// Note (@Sourcegraph): This file was copied / adapted from
6// https://github.com/protocolbuffers/protobuf-go/blob/v1.30.0/internal/testprotos/news/news.proto to aid our testing.
7
8// Code generated by protoc-gen-go. DO NOT EDIT.
9// versions:
10// protoc-gen-go v1.29.1
11// protoc (unknown)
12// source: news.proto
13
14package v1
15
16import (
17 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
18 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
19 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
20 reflect "reflect"
21 sync "sync"
22)
23
24const (
25 // Verify that this generated code is sufficiently up-to-date.
26 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
27 // Verify that runtime/protoimpl is sufficiently up-to-date.
28 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
29)
30
31type Article_Status int32
32
33const (
34 Article_STATUS_DRAFT_UNSPECIFIED Article_Status = 0
35 Article_STATUS_PUBLISHED Article_Status = 1
36 Article_STATUS_REVOKED Article_Status = 2
37)
38
39// Enum value maps for Article_Status.
40var (
41 Article_Status_name = map[int32]string{
42 0: "STATUS_DRAFT_UNSPECIFIED",
43 1: "STATUS_PUBLISHED",
44 2: "STATUS_REVOKED",
45 }
46 Article_Status_value = map[string]int32{
47 "STATUS_DRAFT_UNSPECIFIED": 0,
48 "STATUS_PUBLISHED": 1,
49 "STATUS_REVOKED": 2,
50 }
51)
52
53func (x Article_Status) Enum() *Article_Status {
54 p := new(Article_Status)
55 *p = x
56 return p
57}
58
59func (x Article_Status) String() string {
60 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
61}
62
63func (Article_Status) Descriptor() protoreflect.EnumDescriptor {
64 return file_news_proto_enumTypes[0].Descriptor()
65}
66
67func (Article_Status) Type() protoreflect.EnumType {
68 return &file_news_proto_enumTypes[0]
69}
70
71func (x Article_Status) Number() protoreflect.EnumNumber {
72 return protoreflect.EnumNumber(x)
73}
74
75// Deprecated: Use Article_Status.Descriptor instead.
76func (Article_Status) EnumDescriptor() ([]byte, []int) {
77 return file_news_proto_rawDescGZIP(), []int{0, 0}
78}
79
80type Article struct {
81 state protoimpl.MessageState
82 sizeCache protoimpl.SizeCache
83 unknownFields protoimpl.UnknownFields
84
85 Author string `protobuf:"bytes,1,opt,name=author,proto3" json:"author,omitempty"`
86 Date *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=date,proto3" json:"date,omitempty"`
87 Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
88 Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
89 Status Article_Status `protobuf:"varint,8,opt,name=status,proto3,enum=grpc.testprotos.news.v1.Article_Status" json:"status,omitempty"`
90 Attachments []*Attachment `protobuf:"bytes,7,rep,name=attachments,proto3" json:"attachments,omitempty"`
91}
92
93func (x *Article) Reset() {
94 *x = Article{}
95 if protoimpl.UnsafeEnabled {
96 mi := &file_news_proto_msgTypes[0]
97 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
98 ms.StoreMessageInfo(mi)
99 }
100}
101
102func (x *Article) String() string {
103 return protoimpl.X.MessageStringOf(x)
104}
105
106func (*Article) ProtoMessage() {}
107
108func (x *Article) ProtoReflect() protoreflect.Message {
109 mi := &file_news_proto_msgTypes[0]
110 if protoimpl.UnsafeEnabled && x != nil {
111 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
112 if ms.LoadMessageInfo() == nil {
113 ms.StoreMessageInfo(mi)
114 }
115 return ms
116 }
117 return mi.MessageOf(x)
118}
119
120// Deprecated: Use Article.ProtoReflect.Descriptor instead.
121func (*Article) Descriptor() ([]byte, []int) {
122 return file_news_proto_rawDescGZIP(), []int{0}
123}
124
125func (x *Article) GetAuthor() string {
126 if x != nil {
127 return x.Author
128 }
129 return ""
130}
131
132func (x *Article) GetDate() *timestamppb.Timestamp {
133 if x != nil {
134 return x.Date
135 }
136 return nil
137}
138
139func (x *Article) GetTitle() string {
140 if x != nil {
141 return x.Title
142 }
143 return ""
144}
145
146func (x *Article) GetContent() string {
147 if x != nil {
148 return x.Content
149 }
150 return ""
151}
152
153func (x *Article) GetStatus() Article_Status {
154 if x != nil {
155 return x.Status
156 }
157 return Article_STATUS_DRAFT_UNSPECIFIED
158}
159
160func (x *Article) GetAttachments() []*Attachment {
161 if x != nil {
162 return x.Attachments
163 }
164 return nil
165}
166
167type Attachment struct {
168 state protoimpl.MessageState
169 sizeCache protoimpl.SizeCache
170 unknownFields protoimpl.UnknownFields
171
172 // Types that are assignable to Contents:
173 //
174 // *Attachment_BinaryAttachment
175 // *Attachment_KeyValueAttachment
176 Contents isAttachment_Contents `protobuf_oneof:"contents"`
177}
178
179func (x *Attachment) Reset() {
180 *x = Attachment{}
181 if protoimpl.UnsafeEnabled {
182 mi := &file_news_proto_msgTypes[1]
183 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
184 ms.StoreMessageInfo(mi)
185 }
186}
187
188func (x *Attachment) String() string {
189 return protoimpl.X.MessageStringOf(x)
190}
191
192func (*Attachment) ProtoMessage() {}
193
194func (x *Attachment) ProtoReflect() protoreflect.Message {
195 mi := &file_news_proto_msgTypes[1]
196 if protoimpl.UnsafeEnabled && x != nil {
197 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
198 if ms.LoadMessageInfo() == nil {
199 ms.StoreMessageInfo(mi)
200 }
201 return ms
202 }
203 return mi.MessageOf(x)
204}
205
206// Deprecated: Use Attachment.ProtoReflect.Descriptor instead.
207func (*Attachment) Descriptor() ([]byte, []int) {
208 return file_news_proto_rawDescGZIP(), []int{1}
209}
210
211func (m *Attachment) GetContents() isAttachment_Contents {
212 if m != nil {
213 return m.Contents
214 }
215 return nil
216}
217
218func (x *Attachment) GetBinaryAttachment() *BinaryAttachment {
219 if x, ok := x.GetContents().(*Attachment_BinaryAttachment); ok {
220 return x.BinaryAttachment
221 }
222 return nil
223}
224
225func (x *Attachment) GetKeyValueAttachment() *KeyValueAttachment {
226 if x, ok := x.GetContents().(*Attachment_KeyValueAttachment); ok {
227 return x.KeyValueAttachment
228 }
229 return nil
230}
231
232type isAttachment_Contents interface {
233 isAttachment_Contents()
234}
235
236type Attachment_BinaryAttachment struct {
237 BinaryAttachment *BinaryAttachment `protobuf:"bytes,1,opt,name=binary_attachment,json=binaryAttachment,proto3,oneof"`
238}
239
240type Attachment_KeyValueAttachment struct {
241 KeyValueAttachment *KeyValueAttachment `protobuf:"bytes,2,opt,name=key_value_attachment,json=keyValueAttachment,proto3,oneof"`
242}
243
244func (*Attachment_BinaryAttachment) isAttachment_Contents() {}
245
246func (*Attachment_KeyValueAttachment) isAttachment_Contents() {}
247
248type BinaryAttachment struct {
249 state protoimpl.MessageState
250 sizeCache protoimpl.SizeCache
251 unknownFields protoimpl.UnknownFields
252
253 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
254 Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
255}
256
257func (x *BinaryAttachment) Reset() {
258 *x = BinaryAttachment{}
259 if protoimpl.UnsafeEnabled {
260 mi := &file_news_proto_msgTypes[2]
261 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
262 ms.StoreMessageInfo(mi)
263 }
264}
265
266func (x *BinaryAttachment) String() string {
267 return protoimpl.X.MessageStringOf(x)
268}
269
270func (*BinaryAttachment) ProtoMessage() {}
271
272func (x *BinaryAttachment) ProtoReflect() protoreflect.Message {
273 mi := &file_news_proto_msgTypes[2]
274 if protoimpl.UnsafeEnabled && x != nil {
275 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
276 if ms.LoadMessageInfo() == nil {
277 ms.StoreMessageInfo(mi)
278 }
279 return ms
280 }
281 return mi.MessageOf(x)
282}
283
284// Deprecated: Use BinaryAttachment.ProtoReflect.Descriptor instead.
285func (*BinaryAttachment) Descriptor() ([]byte, []int) {
286 return file_news_proto_rawDescGZIP(), []int{2}
287}
288
289func (x *BinaryAttachment) GetName() string {
290 if x != nil {
291 return x.Name
292 }
293 return ""
294}
295
296func (x *BinaryAttachment) GetData() []byte {
297 if x != nil {
298 return x.Data
299 }
300 return nil
301}
302
303type KeyValueAttachment struct {
304 state protoimpl.MessageState
305 sizeCache protoimpl.SizeCache
306 unknownFields protoimpl.UnknownFields
307
308 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
309 Data map[string]string `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
310}
311
312func (x *KeyValueAttachment) Reset() {
313 *x = KeyValueAttachment{}
314 if protoimpl.UnsafeEnabled {
315 mi := &file_news_proto_msgTypes[3]
316 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
317 ms.StoreMessageInfo(mi)
318 }
319}
320
321func (x *KeyValueAttachment) String() string {
322 return protoimpl.X.MessageStringOf(x)
323}
324
325func (*KeyValueAttachment) ProtoMessage() {}
326
327func (x *KeyValueAttachment) ProtoReflect() protoreflect.Message {
328 mi := &file_news_proto_msgTypes[3]
329 if protoimpl.UnsafeEnabled && x != nil {
330 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
331 if ms.LoadMessageInfo() == nil {
332 ms.StoreMessageInfo(mi)
333 }
334 return ms
335 }
336 return mi.MessageOf(x)
337}
338
339// Deprecated: Use KeyValueAttachment.ProtoReflect.Descriptor instead.
340func (*KeyValueAttachment) Descriptor() ([]byte, []int) {
341 return file_news_proto_rawDescGZIP(), []int{3}
342}
343
344func (x *KeyValueAttachment) GetName() string {
345 if x != nil {
346 return x.Name
347 }
348 return ""
349}
350
351func (x *KeyValueAttachment) GetData() map[string]string {
352 if x != nil {
353 return x.Data
354 }
355 return nil
356}
357
358var File_news_proto protoreflect.FileDescriptor
359
360var file_news_proto_rawDesc = []byte{
361 0x0a, 0x0a, 0x6e, 0x65, 0x77, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x72,
362 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6e, 0x65,
363 0x77, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
364 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
365 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdb, 0x02, 0x0a, 0x07, 0x41, 0x72, 0x74, 0x69, 0x63,
366 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01,
367 0x28, 0x09, 0x52, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x04, 0x64, 0x61,
368 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
369 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
370 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x64, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69,
371 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,
372 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28,
373 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x3f, 0x0a, 0x06, 0x73, 0x74,
374 0x61, 0x74, 0x75, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x67, 0x72, 0x70,
375 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6e, 0x65, 0x77,
376 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x63, 0x6c, 0x65, 0x2e, 0x53, 0x74, 0x61,
377 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x45, 0x0a, 0x0b, 0x61,
378 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b,
379 0x32, 0x23, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74,
380 0x6f, 0x73, 0x2e, 0x6e, 0x65, 0x77, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x74, 0x74, 0x61, 0x63,
381 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e,
382 0x74, 0x73, 0x22, 0x50, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1c, 0x0a, 0x18,
383 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x52, 0x41, 0x46, 0x54, 0x5f, 0x55, 0x4e, 0x53,
384 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x54,
385 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x53, 0x48, 0x45, 0x44, 0x10, 0x01,
386 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x52, 0x45, 0x56, 0x4f, 0x4b,
387 0x45, 0x44, 0x10, 0x02, 0x22, 0xd3, 0x01, 0x0a, 0x0a, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d,
388 0x65, 0x6e, 0x74, 0x12, 0x58, 0x0a, 0x11, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x74,
389 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29,
390 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73,
391 0x2e, 0x6e, 0x65, 0x77, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x41,
392 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x10, 0x62, 0x69, 0x6e,
393 0x61, 0x72, 0x79, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x5f, 0x0a,
394 0x14, 0x6b, 0x65, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x61, 0x63,
395 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x72,
396 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6e, 0x65,
397 0x77, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x74,
398 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x12, 0x6b, 0x65, 0x79, 0x56,
399 0x61, 0x6c, 0x75, 0x65, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0a,
400 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x3a, 0x0a, 0x10, 0x42, 0x69,
401 0x6e, 0x61, 0x72, 0x79, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x12,
402 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
403 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c,
404 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xac, 0x01, 0x0a, 0x12, 0x4b, 0x65, 0x79, 0x56, 0x61,
405 0x6c, 0x75, 0x65, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a,
406 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
407 0x65, 0x12, 0x49, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
408 0x35, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f,
409 0x73, 0x2e, 0x6e, 0x65, 0x77, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c,
410 0x75, 0x65, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x44, 0x61, 0x74,
411 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x37, 0x0a, 0x09,
412 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
413 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76,
414 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
415 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
416 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x67, 0x72, 0x61, 0x70, 0x68, 0x2f,
417 0x7a, 0x6f, 0x65, 0x6b, 0x74, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70,
418 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x6e, 0x65, 0x77, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70,
419 0x72, 0x6f, 0x74, 0x6f, 0x33,
420}
421
422var (
423 file_news_proto_rawDescOnce sync.Once
424 file_news_proto_rawDescData = file_news_proto_rawDesc
425)
426
427func file_news_proto_rawDescGZIP() []byte {
428 file_news_proto_rawDescOnce.Do(func() {
429 file_news_proto_rawDescData = protoimpl.X.CompressGZIP(file_news_proto_rawDescData)
430 })
431 return file_news_proto_rawDescData
432}
433
434var file_news_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
435var file_news_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
436var file_news_proto_goTypes = []interface{}{
437 (Article_Status)(0), // 0: grpc.testprotos.news.v1.Article.Status
438 (*Article)(nil), // 1: grpc.testprotos.news.v1.Article
439 (*Attachment)(nil), // 2: grpc.testprotos.news.v1.Attachment
440 (*BinaryAttachment)(nil), // 3: grpc.testprotos.news.v1.BinaryAttachment
441 (*KeyValueAttachment)(nil), // 4: grpc.testprotos.news.v1.KeyValueAttachment
442 nil, // 5: grpc.testprotos.news.v1.KeyValueAttachment.DataEntry
443 (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp
444}
445var file_news_proto_depIdxs = []int32{
446 6, // 0: grpc.testprotos.news.v1.Article.date:type_name -> google.protobuf.Timestamp
447 0, // 1: grpc.testprotos.news.v1.Article.status:type_name -> grpc.testprotos.news.v1.Article.Status
448 2, // 2: grpc.testprotos.news.v1.Article.attachments:type_name -> grpc.testprotos.news.v1.Attachment
449 3, // 3: grpc.testprotos.news.v1.Attachment.binary_attachment:type_name -> grpc.testprotos.news.v1.BinaryAttachment
450 4, // 4: grpc.testprotos.news.v1.Attachment.key_value_attachment:type_name -> grpc.testprotos.news.v1.KeyValueAttachment
451 5, // 5: grpc.testprotos.news.v1.KeyValueAttachment.data:type_name -> grpc.testprotos.news.v1.KeyValueAttachment.DataEntry
452 6, // [6:6] is the sub-list for method output_type
453 6, // [6:6] is the sub-list for method input_type
454 6, // [6:6] is the sub-list for extension type_name
455 6, // [6:6] is the sub-list for extension extendee
456 0, // [0:6] is the sub-list for field type_name
457}
458
459func init() { file_news_proto_init() }
460func file_news_proto_init() {
461 if File_news_proto != nil {
462 return
463 }
464 if !protoimpl.UnsafeEnabled {
465 file_news_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
466 switch v := v.(*Article); i {
467 case 0:
468 return &v.state
469 case 1:
470 return &v.sizeCache
471 case 2:
472 return &v.unknownFields
473 default:
474 return nil
475 }
476 }
477 file_news_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
478 switch v := v.(*Attachment); i {
479 case 0:
480 return &v.state
481 case 1:
482 return &v.sizeCache
483 case 2:
484 return &v.unknownFields
485 default:
486 return nil
487 }
488 }
489 file_news_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
490 switch v := v.(*BinaryAttachment); i {
491 case 0:
492 return &v.state
493 case 1:
494 return &v.sizeCache
495 case 2:
496 return &v.unknownFields
497 default:
498 return nil
499 }
500 }
501 file_news_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
502 switch v := v.(*KeyValueAttachment); i {
503 case 0:
504 return &v.state
505 case 1:
506 return &v.sizeCache
507 case 2:
508 return &v.unknownFields
509 default:
510 return nil
511 }
512 }
513 }
514 file_news_proto_msgTypes[1].OneofWrappers = []interface{}{
515 (*Attachment_BinaryAttachment)(nil),
516 (*Attachment_KeyValueAttachment)(nil),
517 }
518 type x struct{}
519 out := protoimpl.TypeBuilder{
520 File: protoimpl.DescBuilder{
521 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
522 RawDescriptor: file_news_proto_rawDesc,
523 NumEnums: 1,
524 NumMessages: 5,
525 NumExtensions: 0,
526 NumServices: 0,
527 },
528 GoTypes: file_news_proto_goTypes,
529 DependencyIndexes: file_news_proto_depIdxs,
530 EnumInfos: file_news_proto_enumTypes,
531 MessageInfos: file_news_proto_msgTypes,
532 }.Build()
533 File_news_proto = out.File
534 file_news_proto_rawDesc = nil
535 file_news_proto_goTypes = nil
536 file_news_proto_depIdxs = nil
537}