1
2
3
4
5
6
7 package internal
8
9 import (
10 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 reflect "reflect"
13 sync "sync"
14 )
15
16 const (
17
18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
19
20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
21 )
22
23 type TestPayload struct {
24 state protoimpl.MessageState
25 sizeCache protoimpl.SizeCache
26 unknownFields protoimpl.UnknownFields
27
28 Foo string `protobuf:"bytes,1,opt,name=foo,proto3" json:"foo,omitempty"`
29 Deadline int64 `protobuf:"varint,2,opt,name=deadline,proto3" json:"deadline,omitempty"`
30 Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
31 }
32
33 func (x *TestPayload) Reset() {
34 *x = TestPayload{}
35 if protoimpl.UnsafeEnabled {
36 mi := &file_github_com_containerd_ttrpc_test_proto_msgTypes[0]
37 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
38 ms.StoreMessageInfo(mi)
39 }
40 }
41
42 func (x *TestPayload) String() string {
43 return protoimpl.X.MessageStringOf(x)
44 }
45
46 func (*TestPayload) ProtoMessage() {}
47
48 func (x *TestPayload) ProtoReflect() protoreflect.Message {
49 mi := &file_github_com_containerd_ttrpc_test_proto_msgTypes[0]
50 if protoimpl.UnsafeEnabled && x != nil {
51 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
52 if ms.LoadMessageInfo() == nil {
53 ms.StoreMessageInfo(mi)
54 }
55 return ms
56 }
57 return mi.MessageOf(x)
58 }
59
60
61 func (*TestPayload) Descriptor() ([]byte, []int) {
62 return file_github_com_containerd_ttrpc_test_proto_rawDescGZIP(), []int{0}
63 }
64
65 func (x *TestPayload) GetFoo() string {
66 if x != nil {
67 return x.Foo
68 }
69 return ""
70 }
71
72 func (x *TestPayload) GetDeadline() int64 {
73 if x != nil {
74 return x.Deadline
75 }
76 return 0
77 }
78
79 func (x *TestPayload) GetMetadata() string {
80 if x != nil {
81 return x.Metadata
82 }
83 return ""
84 }
85
86 type EchoPayload struct {
87 state protoimpl.MessageState
88 sizeCache protoimpl.SizeCache
89 unknownFields protoimpl.UnknownFields
90
91 Seq int64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"`
92 Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
93 }
94
95 func (x *EchoPayload) Reset() {
96 *x = EchoPayload{}
97 if protoimpl.UnsafeEnabled {
98 mi := &file_github_com_containerd_ttrpc_test_proto_msgTypes[1]
99 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
100 ms.StoreMessageInfo(mi)
101 }
102 }
103
104 func (x *EchoPayload) String() string {
105 return protoimpl.X.MessageStringOf(x)
106 }
107
108 func (*EchoPayload) ProtoMessage() {}
109
110 func (x *EchoPayload) ProtoReflect() protoreflect.Message {
111 mi := &file_github_com_containerd_ttrpc_test_proto_msgTypes[1]
112 if protoimpl.UnsafeEnabled && x != nil {
113 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
114 if ms.LoadMessageInfo() == nil {
115 ms.StoreMessageInfo(mi)
116 }
117 return ms
118 }
119 return mi.MessageOf(x)
120 }
121
122
123 func (*EchoPayload) Descriptor() ([]byte, []int) {
124 return file_github_com_containerd_ttrpc_test_proto_rawDescGZIP(), []int{1}
125 }
126
127 func (x *EchoPayload) GetSeq() int64 {
128 if x != nil {
129 return x.Seq
130 }
131 return 0
132 }
133
134 func (x *EchoPayload) GetMsg() string {
135 if x != nil {
136 return x.Msg
137 }
138 return ""
139 }
140
141 var File_github_com_containerd_ttrpc_test_proto protoreflect.FileDescriptor
142
143 var file_github_com_containerd_ttrpc_test_proto_rawDesc = []byte{
144 0x0a, 0x26, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e,
145 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, 0x2f, 0x74, 0x74, 0x72, 0x70, 0x63, 0x2f, 0x74, 0x65,
146 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x74, 0x74, 0x72, 0x70, 0x63, 0x22,
147 0x57, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x10,
148 0x0a, 0x03, 0x66, 0x6f, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x66, 0x6f, 0x6f,
149 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01,
150 0x28, 0x03, 0x52, 0x08, 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x1a, 0x0a, 0x08,
151 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
152 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x31, 0x0a, 0x0b, 0x45, 0x63, 0x68, 0x6f,
153 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x71, 0x18, 0x01,
154 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67,
155 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x42, 0x26, 0x5a, 0x24, 0x67,
156 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69,
157 0x6e, 0x65, 0x72, 0x64, 0x2f, 0x74, 0x74, 0x72, 0x70, 0x63, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72,
158 0x6e, 0x61, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
159 }
160
161 var (
162 file_github_com_containerd_ttrpc_test_proto_rawDescOnce sync.Once
163 file_github_com_containerd_ttrpc_test_proto_rawDescData = file_github_com_containerd_ttrpc_test_proto_rawDesc
164 )
165
166 func file_github_com_containerd_ttrpc_test_proto_rawDescGZIP() []byte {
167 file_github_com_containerd_ttrpc_test_proto_rawDescOnce.Do(func() {
168 file_github_com_containerd_ttrpc_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_containerd_ttrpc_test_proto_rawDescData)
169 })
170 return file_github_com_containerd_ttrpc_test_proto_rawDescData
171 }
172
173 var file_github_com_containerd_ttrpc_test_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
174 var file_github_com_containerd_ttrpc_test_proto_goTypes = []interface{}{
175 (*TestPayload)(nil),
176 (*EchoPayload)(nil),
177 }
178 var file_github_com_containerd_ttrpc_test_proto_depIdxs = []int32{
179 0,
180 0,
181 0,
182 0,
183 0,
184 }
185
186 func init() { file_github_com_containerd_ttrpc_test_proto_init() }
187 func file_github_com_containerd_ttrpc_test_proto_init() {
188 if File_github_com_containerd_ttrpc_test_proto != nil {
189 return
190 }
191 if !protoimpl.UnsafeEnabled {
192 file_github_com_containerd_ttrpc_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
193 switch v := v.(*TestPayload); i {
194 case 0:
195 return &v.state
196 case 1:
197 return &v.sizeCache
198 case 2:
199 return &v.unknownFields
200 default:
201 return nil
202 }
203 }
204 file_github_com_containerd_ttrpc_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
205 switch v := v.(*EchoPayload); i {
206 case 0:
207 return &v.state
208 case 1:
209 return &v.sizeCache
210 case 2:
211 return &v.unknownFields
212 default:
213 return nil
214 }
215 }
216 }
217 type x struct{}
218 out := protoimpl.TypeBuilder{
219 File: protoimpl.DescBuilder{
220 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
221 RawDescriptor: file_github_com_containerd_ttrpc_test_proto_rawDesc,
222 NumEnums: 0,
223 NumMessages: 2,
224 NumExtensions: 0,
225 NumServices: 0,
226 },
227 GoTypes: file_github_com_containerd_ttrpc_test_proto_goTypes,
228 DependencyIndexes: file_github_com_containerd_ttrpc_test_proto_depIdxs,
229 MessageInfos: file_github_com_containerd_ttrpc_test_proto_msgTypes,
230 }.Build()
231 File_github_com_containerd_ttrpc_test_proto = out.File
232 file_github_com_containerd_ttrpc_test_proto_rawDesc = nil
233 file_github_com_containerd_ttrpc_test_proto_goTypes = nil
234 file_github_com_containerd_ttrpc_test_proto_depIdxs = nil
235 }
236
View as plain text