blob: 45c4382cf5f450cd4c8a06639c930d33432c6ff6 [file] [log] [blame]
Matteo Scandoloa4285862020-12-01 18:10:10 -08001/*
2Copyright The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17// Code generated by protoc-gen-gogo. DO NOT EDIT.
18// source: k8s.io/kubernetes/vendor/k8s.io/api/discovery/v1alpha1/generated.proto
19
20package v1alpha1
21
22import (
23 fmt "fmt"
24
25 io "io"
26
27 proto "github.com/gogo/protobuf/proto"
28 github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
29 k8s_io_api_core_v1 "k8s.io/api/core/v1"
30 v1 "k8s.io/api/core/v1"
31
32 math "math"
33 math_bits "math/bits"
34 reflect "reflect"
35 strings "strings"
36)
37
38// Reference imports to suppress errors if they are not otherwise used.
39var _ = proto.Marshal
40var _ = fmt.Errorf
41var _ = math.Inf
42
43// This is a compile-time assertion to ensure that this generated file
44// is compatible with the proto package it is being compiled against.
45// A compilation error at this line likely means your copy of the
46// proto package needs to be updated.
47const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
48
49func (m *Endpoint) Reset() { *m = Endpoint{} }
50func (*Endpoint) ProtoMessage() {}
51func (*Endpoint) Descriptor() ([]byte, []int) {
52 return fileDescriptor_772f83c5b34e07a5, []int{0}
53}
54func (m *Endpoint) XXX_Unmarshal(b []byte) error {
55 return m.Unmarshal(b)
56}
57func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
58 b = b[:cap(b)]
59 n, err := m.MarshalToSizedBuffer(b)
60 if err != nil {
61 return nil, err
62 }
63 return b[:n], nil
64}
65func (m *Endpoint) XXX_Merge(src proto.Message) {
66 xxx_messageInfo_Endpoint.Merge(m, src)
67}
68func (m *Endpoint) XXX_Size() int {
69 return m.Size()
70}
71func (m *Endpoint) XXX_DiscardUnknown() {
72 xxx_messageInfo_Endpoint.DiscardUnknown(m)
73}
74
75var xxx_messageInfo_Endpoint proto.InternalMessageInfo
76
77func (m *EndpointConditions) Reset() { *m = EndpointConditions{} }
78func (*EndpointConditions) ProtoMessage() {}
79func (*EndpointConditions) Descriptor() ([]byte, []int) {
80 return fileDescriptor_772f83c5b34e07a5, []int{1}
81}
82func (m *EndpointConditions) XXX_Unmarshal(b []byte) error {
83 return m.Unmarshal(b)
84}
85func (m *EndpointConditions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
86 b = b[:cap(b)]
87 n, err := m.MarshalToSizedBuffer(b)
88 if err != nil {
89 return nil, err
90 }
91 return b[:n], nil
92}
93func (m *EndpointConditions) XXX_Merge(src proto.Message) {
94 xxx_messageInfo_EndpointConditions.Merge(m, src)
95}
96func (m *EndpointConditions) XXX_Size() int {
97 return m.Size()
98}
99func (m *EndpointConditions) XXX_DiscardUnknown() {
100 xxx_messageInfo_EndpointConditions.DiscardUnknown(m)
101}
102
103var xxx_messageInfo_EndpointConditions proto.InternalMessageInfo
104
105func (m *EndpointPort) Reset() { *m = EndpointPort{} }
106func (*EndpointPort) ProtoMessage() {}
107func (*EndpointPort) Descriptor() ([]byte, []int) {
108 return fileDescriptor_772f83c5b34e07a5, []int{2}
109}
110func (m *EndpointPort) XXX_Unmarshal(b []byte) error {
111 return m.Unmarshal(b)
112}
113func (m *EndpointPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
114 b = b[:cap(b)]
115 n, err := m.MarshalToSizedBuffer(b)
116 if err != nil {
117 return nil, err
118 }
119 return b[:n], nil
120}
121func (m *EndpointPort) XXX_Merge(src proto.Message) {
122 xxx_messageInfo_EndpointPort.Merge(m, src)
123}
124func (m *EndpointPort) XXX_Size() int {
125 return m.Size()
126}
127func (m *EndpointPort) XXX_DiscardUnknown() {
128 xxx_messageInfo_EndpointPort.DiscardUnknown(m)
129}
130
131var xxx_messageInfo_EndpointPort proto.InternalMessageInfo
132
133func (m *EndpointSlice) Reset() { *m = EndpointSlice{} }
134func (*EndpointSlice) ProtoMessage() {}
135func (*EndpointSlice) Descriptor() ([]byte, []int) {
136 return fileDescriptor_772f83c5b34e07a5, []int{3}
137}
138func (m *EndpointSlice) XXX_Unmarshal(b []byte) error {
139 return m.Unmarshal(b)
140}
141func (m *EndpointSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
142 b = b[:cap(b)]
143 n, err := m.MarshalToSizedBuffer(b)
144 if err != nil {
145 return nil, err
146 }
147 return b[:n], nil
148}
149func (m *EndpointSlice) XXX_Merge(src proto.Message) {
150 xxx_messageInfo_EndpointSlice.Merge(m, src)
151}
152func (m *EndpointSlice) XXX_Size() int {
153 return m.Size()
154}
155func (m *EndpointSlice) XXX_DiscardUnknown() {
156 xxx_messageInfo_EndpointSlice.DiscardUnknown(m)
157}
158
159var xxx_messageInfo_EndpointSlice proto.InternalMessageInfo
160
161func (m *EndpointSliceList) Reset() { *m = EndpointSliceList{} }
162func (*EndpointSliceList) ProtoMessage() {}
163func (*EndpointSliceList) Descriptor() ([]byte, []int) {
164 return fileDescriptor_772f83c5b34e07a5, []int{4}
165}
166func (m *EndpointSliceList) XXX_Unmarshal(b []byte) error {
167 return m.Unmarshal(b)
168}
169func (m *EndpointSliceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
170 b = b[:cap(b)]
171 n, err := m.MarshalToSizedBuffer(b)
172 if err != nil {
173 return nil, err
174 }
175 return b[:n], nil
176}
177func (m *EndpointSliceList) XXX_Merge(src proto.Message) {
178 xxx_messageInfo_EndpointSliceList.Merge(m, src)
179}
180func (m *EndpointSliceList) XXX_Size() int {
181 return m.Size()
182}
183func (m *EndpointSliceList) XXX_DiscardUnknown() {
184 xxx_messageInfo_EndpointSliceList.DiscardUnknown(m)
185}
186
187var xxx_messageInfo_EndpointSliceList proto.InternalMessageInfo
188
189func init() {
190 proto.RegisterType((*Endpoint)(nil), "k8s.io.api.discovery.v1alpha1.Endpoint")
191 proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.discovery.v1alpha1.Endpoint.TopologyEntry")
192 proto.RegisterType((*EndpointConditions)(nil), "k8s.io.api.discovery.v1alpha1.EndpointConditions")
193 proto.RegisterType((*EndpointPort)(nil), "k8s.io.api.discovery.v1alpha1.EndpointPort")
194 proto.RegisterType((*EndpointSlice)(nil), "k8s.io.api.discovery.v1alpha1.EndpointSlice")
195 proto.RegisterType((*EndpointSliceList)(nil), "k8s.io.api.discovery.v1alpha1.EndpointSliceList")
196}
197
198func init() {
199 proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/discovery/v1alpha1/generated.proto", fileDescriptor_772f83c5b34e07a5)
200}
201
202var fileDescriptor_772f83c5b34e07a5 = []byte{
203 // 746 bytes of a gzipped FileDescriptorProto
204 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x4b, 0x6f, 0xd3, 0x4a,
205 0x14, 0x8e, 0x9b, 0x5a, 0xb2, 0x27, 0x8d, 0x6e, 0x3b, 0xba, 0x8b, 0x28, 0xf7, 0x5e, 0x3b, 0xca,
206 0x5d, 0x10, 0xa9, 0x30, 0x26, 0x15, 0x45, 0x15, 0xac, 0x6a, 0x28, 0x0f, 0x89, 0x47, 0x18, 0xba,
207 0x40, 0x88, 0x05, 0x13, 0x7b, 0xea, 0x98, 0x24, 0x1e, 0xcb, 0x9e, 0x44, 0xca, 0x8e, 0x9f, 0xc0,
208 0x0f, 0x62, 0x89, 0x50, 0x97, 0x5d, 0x76, 0x65, 0x51, 0xf7, 0x5f, 0x74, 0x85, 0x66, 0xfc, 0x4a,
209 0x09, 0x8f, 0xec, 0x66, 0xbe, 0x39, 0xdf, 0x77, 0xce, 0xf9, 0xe6, 0x1c, 0xf0, 0x68, 0x7c, 0x10,
210 0x23, 0x9f, 0x59, 0xe3, 0xd9, 0x90, 0x46, 0x01, 0xe5, 0x34, 0xb6, 0xe6, 0x34, 0x70, 0x59, 0x64,
211 0xe5, 0x0f, 0x24, 0xf4, 0x2d, 0xd7, 0x8f, 0x1d, 0x36, 0xa7, 0xd1, 0xc2, 0x9a, 0xf7, 0xc9, 0x24,
212 0x1c, 0x91, 0xbe, 0xe5, 0xd1, 0x80, 0x46, 0x84, 0x53, 0x17, 0x85, 0x11, 0xe3, 0x0c, 0xfe, 0x97,
213 0x85, 0x23, 0x12, 0xfa, 0xa8, 0x0c, 0x47, 0x45, 0x78, 0xfb, 0x96, 0xe7, 0xf3, 0xd1, 0x6c, 0x88,
214 0x1c, 0x36, 0xb5, 0x3c, 0xe6, 0x31, 0x4b, 0xb2, 0x86, 0xb3, 0x13, 0x79, 0x93, 0x17, 0x79, 0xca,
215 0xd4, 0xda, 0xdd, 0xa5, 0xe4, 0x0e, 0x8b, 0xa8, 0x35, 0x5f, 0xc9, 0xd8, 0xbe, 0x53, 0xc5, 0x4c,
216 0x89, 0x33, 0xf2, 0x03, 0x51, 0x5f, 0x38, 0xf6, 0x04, 0x10, 0x5b, 0x53, 0xca, 0xc9, 0xcf, 0x58,
217 0xd6, 0xaf, 0x58, 0xd1, 0x2c, 0xe0, 0xfe, 0x94, 0xae, 0x10, 0xee, 0xfe, 0x89, 0x10, 0x3b, 0x23,
218 0x3a, 0x25, 0x3f, 0xf2, 0xba, 0x9f, 0xeb, 0x40, 0x3b, 0x0a, 0xdc, 0x90, 0xf9, 0x01, 0x87, 0xbb,
219 0x40, 0x27, 0xae, 0x1b, 0xd1, 0x38, 0xa6, 0x71, 0x4b, 0xe9, 0xd4, 0x7b, 0xba, 0xdd, 0x4c, 0x13,
220 0x53, 0x3f, 0x2c, 0x40, 0x5c, 0xbd, 0x43, 0x0a, 0x80, 0xc3, 0x02, 0xd7, 0xe7, 0x3e, 0x0b, 0xe2,
221 0xd6, 0x46, 0x47, 0xe9, 0x35, 0xf6, 0xfa, 0xe8, 0xb7, 0xfe, 0xa2, 0x22, 0xd3, 0x83, 0x92, 0x68,
222 0xc3, 0xd3, 0xc4, 0xac, 0xa5, 0x89, 0x09, 0x2a, 0x0c, 0x2f, 0x09, 0xc3, 0x1e, 0xd0, 0x46, 0x2c,
223 0xe6, 0x01, 0x99, 0xd2, 0x56, 0xbd, 0xa3, 0xf4, 0x74, 0x7b, 0x2b, 0x4d, 0x4c, 0xed, 0x49, 0x8e,
224 0xe1, 0xf2, 0x15, 0x0e, 0x80, 0xce, 0x49, 0xe4, 0x51, 0x8e, 0xe9, 0x49, 0x6b, 0x53, 0xd6, 0xf3,
225 0xff, 0x72, 0x3d, 0xe2, 0x87, 0xd0, 0xbc, 0x8f, 0x5e, 0x0e, 0x3f, 0x50, 0x47, 0x04, 0xd1, 0x88,
226 0x06, 0x0e, 0xcd, 0x5a, 0x3c, 0x2e, 0x98, 0xb8, 0x12, 0x81, 0x0e, 0xd0, 0x38, 0x0b, 0xd9, 0x84,
227 0x79, 0x8b, 0x96, 0xda, 0xa9, 0xf7, 0x1a, 0x7b, 0xfb, 0x6b, 0x36, 0x88, 0x8e, 0x73, 0xde, 0x51,
228 0xc0, 0xa3, 0x85, 0xbd, 0x9d, 0x37, 0xa9, 0x15, 0x30, 0x2e, 0x85, 0xdb, 0xf7, 0x41, 0xf3, 0x5a,
229 0x30, 0xdc, 0x06, 0xf5, 0x31, 0x5d, 0xb4, 0x14, 0xd1, 0x2c, 0x16, 0x47, 0xf8, 0x37, 0x50, 0xe7,
230 0x64, 0x32, 0xa3, 0xd2, 0x65, 0x1d, 0x67, 0x97, 0x7b, 0x1b, 0x07, 0x4a, 0x77, 0x1f, 0xc0, 0x55,
231 0x4f, 0xa1, 0x09, 0xd4, 0x88, 0x12, 0x37, 0xd3, 0xd0, 0x6c, 0x3d, 0x4d, 0x4c, 0x15, 0x0b, 0x00,
232 0x67, 0x78, 0xf7, 0xab, 0x02, 0xb6, 0x0a, 0xde, 0x80, 0x45, 0x1c, 0xfe, 0x0b, 0x36, 0xa5, 0xc3,
233 0x32, 0xa9, 0xad, 0xa5, 0x89, 0xb9, 0xf9, 0x42, 0xb8, 0x2b, 0x51, 0xf8, 0x18, 0x68, 0x72, 0x5a,
234 0x1c, 0x36, 0xc9, 0x4a, 0xb0, 0x77, 0x45, 0x33, 0x83, 0x1c, 0xbb, 0x4a, 0xcc, 0x7f, 0x56, 0x37,
235 0x01, 0x15, 0xcf, 0xb8, 0x24, 0x8b, 0x34, 0x21, 0x8b, 0xb8, 0xfc, 0x48, 0x35, 0x4b, 0x23, 0xd2,
236 0x63, 0x89, 0xc2, 0x3e, 0x68, 0x90, 0x30, 0x2c, 0x68, 0xf2, 0x0b, 0x75, 0xfb, 0xaf, 0x34, 0x31,
237 0x1b, 0x87, 0x15, 0x8c, 0x97, 0x63, 0xba, 0x97, 0x1b, 0xa0, 0x59, 0x34, 0xf2, 0x7a, 0xe2, 0x3b,
238 0x14, 0xbe, 0x07, 0x9a, 0x58, 0x2a, 0x97, 0x70, 0x22, 0xbb, 0x69, 0xec, 0xdd, 0x5e, 0xfa, 0xb3,
239 0x72, 0x37, 0x50, 0x38, 0xf6, 0x04, 0x10, 0x23, 0x11, 0x5d, 0x8d, 0xc5, 0x73, 0xca, 0x49, 0x35,
240 0x93, 0x15, 0x86, 0x4b, 0x55, 0xf8, 0x10, 0x34, 0xf2, 0x2d, 0x38, 0x5e, 0x84, 0x34, 0x2f, 0xb3,
241 0x9b, 0x53, 0x1a, 0x87, 0xd5, 0xd3, 0xd5, 0xf5, 0x2b, 0x5e, 0xa6, 0xc1, 0x37, 0x40, 0xa7, 0x79,
242 0xe1, 0x62, 0x7b, 0xc4, 0x70, 0xdd, 0x58, 0x73, 0xb8, 0xec, 0x9d, 0x3c, 0x99, 0x5e, 0x20, 0x31,
243 0xae, 0xc4, 0xe0, 0x00, 0xa8, 0xc2, 0xce, 0xb8, 0x55, 0x97, 0xaa, 0xbb, 0x6b, 0xaa, 0x8a, 0x8f,
244 0xb0, 0x9b, 0xb9, 0xb2, 0x2a, 0x6e, 0x31, 0xce, 0x84, 0xba, 0x5f, 0x14, 0xb0, 0x73, 0xcd, 0xe5,
245 0x67, 0x7e, 0xcc, 0xe1, 0xbb, 0x15, 0xa7, 0xd1, 0x7a, 0x4e, 0x0b, 0xb6, 0xf4, 0xb9, 0x5c, 0x8b,
246 0x02, 0x59, 0x72, 0xf9, 0x15, 0x50, 0x7d, 0x4e, 0xa7, 0x85, 0x37, 0x37, 0xd7, 0xec, 0x42, 0x96,
247 0x57, 0xb5, 0xf1, 0x54, 0x48, 0xe0, 0x4c, 0xc9, 0x46, 0xa7, 0x17, 0x46, 0xed, 0xec, 0xc2, 0xa8,
248 0x9d, 0x5f, 0x18, 0xb5, 0x8f, 0xa9, 0xa1, 0x9c, 0xa6, 0x86, 0x72, 0x96, 0x1a, 0xca, 0x79, 0x6a,
249 0x28, 0xdf, 0x52, 0x43, 0xf9, 0x74, 0x69, 0xd4, 0xde, 0x6a, 0x85, 0xe6, 0xf7, 0x00, 0x00, 0x00,
250 0xff, 0xff, 0x65, 0x85, 0x5a, 0x9b, 0x75, 0x06, 0x00, 0x00,
251}
252
253func (m *Endpoint) Marshal() (dAtA []byte, err error) {
254 size := m.Size()
255 dAtA = make([]byte, size)
256 n, err := m.MarshalToSizedBuffer(dAtA[:size])
257 if err != nil {
258 return nil, err
259 }
260 return dAtA[:n], nil
261}
262
263func (m *Endpoint) MarshalTo(dAtA []byte) (int, error) {
264 size := m.Size()
265 return m.MarshalToSizedBuffer(dAtA[:size])
266}
267
268func (m *Endpoint) MarshalToSizedBuffer(dAtA []byte) (int, error) {
269 i := len(dAtA)
270 _ = i
271 var l int
272 _ = l
273 if len(m.Topology) > 0 {
274 keysForTopology := make([]string, 0, len(m.Topology))
275 for k := range m.Topology {
276 keysForTopology = append(keysForTopology, string(k))
277 }
278 github_com_gogo_protobuf_sortkeys.Strings(keysForTopology)
279 for iNdEx := len(keysForTopology) - 1; iNdEx >= 0; iNdEx-- {
280 v := m.Topology[string(keysForTopology[iNdEx])]
281 baseI := i
282 i -= len(v)
283 copy(dAtA[i:], v)
284 i = encodeVarintGenerated(dAtA, i, uint64(len(v)))
285 i--
286 dAtA[i] = 0x12
287 i -= len(keysForTopology[iNdEx])
288 copy(dAtA[i:], keysForTopology[iNdEx])
289 i = encodeVarintGenerated(dAtA, i, uint64(len(keysForTopology[iNdEx])))
290 i--
291 dAtA[i] = 0xa
292 i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
293 i--
294 dAtA[i] = 0x2a
295 }
296 }
297 if m.TargetRef != nil {
298 {
299 size, err := m.TargetRef.MarshalToSizedBuffer(dAtA[:i])
300 if err != nil {
301 return 0, err
302 }
303 i -= size
304 i = encodeVarintGenerated(dAtA, i, uint64(size))
305 }
306 i--
307 dAtA[i] = 0x22
308 }
309 if m.Hostname != nil {
310 i -= len(*m.Hostname)
311 copy(dAtA[i:], *m.Hostname)
312 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Hostname)))
313 i--
314 dAtA[i] = 0x1a
315 }
316 {
317 size, err := m.Conditions.MarshalToSizedBuffer(dAtA[:i])
318 if err != nil {
319 return 0, err
320 }
321 i -= size
322 i = encodeVarintGenerated(dAtA, i, uint64(size))
323 }
324 i--
325 dAtA[i] = 0x12
326 if len(m.Addresses) > 0 {
327 for iNdEx := len(m.Addresses) - 1; iNdEx >= 0; iNdEx-- {
328 i -= len(m.Addresses[iNdEx])
329 copy(dAtA[i:], m.Addresses[iNdEx])
330 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Addresses[iNdEx])))
331 i--
332 dAtA[i] = 0xa
333 }
334 }
335 return len(dAtA) - i, nil
336}
337
338func (m *EndpointConditions) Marshal() (dAtA []byte, err error) {
339 size := m.Size()
340 dAtA = make([]byte, size)
341 n, err := m.MarshalToSizedBuffer(dAtA[:size])
342 if err != nil {
343 return nil, err
344 }
345 return dAtA[:n], nil
346}
347
348func (m *EndpointConditions) MarshalTo(dAtA []byte) (int, error) {
349 size := m.Size()
350 return m.MarshalToSizedBuffer(dAtA[:size])
351}
352
353func (m *EndpointConditions) MarshalToSizedBuffer(dAtA []byte) (int, error) {
354 i := len(dAtA)
355 _ = i
356 var l int
357 _ = l
358 if m.Ready != nil {
359 i--
360 if *m.Ready {
361 dAtA[i] = 1
362 } else {
363 dAtA[i] = 0
364 }
365 i--
366 dAtA[i] = 0x8
367 }
368 return len(dAtA) - i, nil
369}
370
371func (m *EndpointPort) Marshal() (dAtA []byte, err error) {
372 size := m.Size()
373 dAtA = make([]byte, size)
374 n, err := m.MarshalToSizedBuffer(dAtA[:size])
375 if err != nil {
376 return nil, err
377 }
378 return dAtA[:n], nil
379}
380
381func (m *EndpointPort) MarshalTo(dAtA []byte) (int, error) {
382 size := m.Size()
383 return m.MarshalToSizedBuffer(dAtA[:size])
384}
385
386func (m *EndpointPort) MarshalToSizedBuffer(dAtA []byte) (int, error) {
387 i := len(dAtA)
388 _ = i
389 var l int
390 _ = l
391 if m.AppProtocol != nil {
392 i -= len(*m.AppProtocol)
393 copy(dAtA[i:], *m.AppProtocol)
394 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.AppProtocol)))
395 i--
396 dAtA[i] = 0x22
397 }
398 if m.Port != nil {
399 i = encodeVarintGenerated(dAtA, i, uint64(*m.Port))
400 i--
401 dAtA[i] = 0x18
402 }
403 if m.Protocol != nil {
404 i -= len(*m.Protocol)
405 copy(dAtA[i:], *m.Protocol)
406 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Protocol)))
407 i--
408 dAtA[i] = 0x12
409 }
410 if m.Name != nil {
411 i -= len(*m.Name)
412 copy(dAtA[i:], *m.Name)
413 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Name)))
414 i--
415 dAtA[i] = 0xa
416 }
417 return len(dAtA) - i, nil
418}
419
420func (m *EndpointSlice) Marshal() (dAtA []byte, err error) {
421 size := m.Size()
422 dAtA = make([]byte, size)
423 n, err := m.MarshalToSizedBuffer(dAtA[:size])
424 if err != nil {
425 return nil, err
426 }
427 return dAtA[:n], nil
428}
429
430func (m *EndpointSlice) MarshalTo(dAtA []byte) (int, error) {
431 size := m.Size()
432 return m.MarshalToSizedBuffer(dAtA[:size])
433}
434
435func (m *EndpointSlice) MarshalToSizedBuffer(dAtA []byte) (int, error) {
436 i := len(dAtA)
437 _ = i
438 var l int
439 _ = l
440 i -= len(m.AddressType)
441 copy(dAtA[i:], m.AddressType)
442 i = encodeVarintGenerated(dAtA, i, uint64(len(m.AddressType)))
443 i--
444 dAtA[i] = 0x22
445 if len(m.Ports) > 0 {
446 for iNdEx := len(m.Ports) - 1; iNdEx >= 0; iNdEx-- {
447 {
448 size, err := m.Ports[iNdEx].MarshalToSizedBuffer(dAtA[:i])
449 if err != nil {
450 return 0, err
451 }
452 i -= size
453 i = encodeVarintGenerated(dAtA, i, uint64(size))
454 }
455 i--
456 dAtA[i] = 0x1a
457 }
458 }
459 if len(m.Endpoints) > 0 {
460 for iNdEx := len(m.Endpoints) - 1; iNdEx >= 0; iNdEx-- {
461 {
462 size, err := m.Endpoints[iNdEx].MarshalToSizedBuffer(dAtA[:i])
463 if err != nil {
464 return 0, err
465 }
466 i -= size
467 i = encodeVarintGenerated(dAtA, i, uint64(size))
468 }
469 i--
470 dAtA[i] = 0x12
471 }
472 }
473 {
474 size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
475 if err != nil {
476 return 0, err
477 }
478 i -= size
479 i = encodeVarintGenerated(dAtA, i, uint64(size))
480 }
481 i--
482 dAtA[i] = 0xa
483 return len(dAtA) - i, nil
484}
485
486func (m *EndpointSliceList) Marshal() (dAtA []byte, err error) {
487 size := m.Size()
488 dAtA = make([]byte, size)
489 n, err := m.MarshalToSizedBuffer(dAtA[:size])
490 if err != nil {
491 return nil, err
492 }
493 return dAtA[:n], nil
494}
495
496func (m *EndpointSliceList) MarshalTo(dAtA []byte) (int, error) {
497 size := m.Size()
498 return m.MarshalToSizedBuffer(dAtA[:size])
499}
500
501func (m *EndpointSliceList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
502 i := len(dAtA)
503 _ = i
504 var l int
505 _ = l
506 if len(m.Items) > 0 {
507 for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
508 {
509 size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
510 if err != nil {
511 return 0, err
512 }
513 i -= size
514 i = encodeVarintGenerated(dAtA, i, uint64(size))
515 }
516 i--
517 dAtA[i] = 0x12
518 }
519 }
520 {
521 size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
522 if err != nil {
523 return 0, err
524 }
525 i -= size
526 i = encodeVarintGenerated(dAtA, i, uint64(size))
527 }
528 i--
529 dAtA[i] = 0xa
530 return len(dAtA) - i, nil
531}
532
533func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
534 offset -= sovGenerated(v)
535 base := offset
536 for v >= 1<<7 {
537 dAtA[offset] = uint8(v&0x7f | 0x80)
538 v >>= 7
539 offset++
540 }
541 dAtA[offset] = uint8(v)
542 return base
543}
544func (m *Endpoint) Size() (n int) {
545 if m == nil {
546 return 0
547 }
548 var l int
549 _ = l
550 if len(m.Addresses) > 0 {
551 for _, s := range m.Addresses {
552 l = len(s)
553 n += 1 + l + sovGenerated(uint64(l))
554 }
555 }
556 l = m.Conditions.Size()
557 n += 1 + l + sovGenerated(uint64(l))
558 if m.Hostname != nil {
559 l = len(*m.Hostname)
560 n += 1 + l + sovGenerated(uint64(l))
561 }
562 if m.TargetRef != nil {
563 l = m.TargetRef.Size()
564 n += 1 + l + sovGenerated(uint64(l))
565 }
566 if len(m.Topology) > 0 {
567 for k, v := range m.Topology {
568 _ = k
569 _ = v
570 mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v)))
571 n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
572 }
573 }
574 return n
575}
576
577func (m *EndpointConditions) Size() (n int) {
578 if m == nil {
579 return 0
580 }
581 var l int
582 _ = l
583 if m.Ready != nil {
584 n += 2
585 }
586 return n
587}
588
589func (m *EndpointPort) Size() (n int) {
590 if m == nil {
591 return 0
592 }
593 var l int
594 _ = l
595 if m.Name != nil {
596 l = len(*m.Name)
597 n += 1 + l + sovGenerated(uint64(l))
598 }
599 if m.Protocol != nil {
600 l = len(*m.Protocol)
601 n += 1 + l + sovGenerated(uint64(l))
602 }
603 if m.Port != nil {
604 n += 1 + sovGenerated(uint64(*m.Port))
605 }
606 if m.AppProtocol != nil {
607 l = len(*m.AppProtocol)
608 n += 1 + l + sovGenerated(uint64(l))
609 }
610 return n
611}
612
613func (m *EndpointSlice) Size() (n int) {
614 if m == nil {
615 return 0
616 }
617 var l int
618 _ = l
619 l = m.ObjectMeta.Size()
620 n += 1 + l + sovGenerated(uint64(l))
621 if len(m.Endpoints) > 0 {
622 for _, e := range m.Endpoints {
623 l = e.Size()
624 n += 1 + l + sovGenerated(uint64(l))
625 }
626 }
627 if len(m.Ports) > 0 {
628 for _, e := range m.Ports {
629 l = e.Size()
630 n += 1 + l + sovGenerated(uint64(l))
631 }
632 }
633 l = len(m.AddressType)
634 n += 1 + l + sovGenerated(uint64(l))
635 return n
636}
637
638func (m *EndpointSliceList) Size() (n int) {
639 if m == nil {
640 return 0
641 }
642 var l int
643 _ = l
644 l = m.ListMeta.Size()
645 n += 1 + l + sovGenerated(uint64(l))
646 if len(m.Items) > 0 {
647 for _, e := range m.Items {
648 l = e.Size()
649 n += 1 + l + sovGenerated(uint64(l))
650 }
651 }
652 return n
653}
654
655func sovGenerated(x uint64) (n int) {
656 return (math_bits.Len64(x|1) + 6) / 7
657}
658func sozGenerated(x uint64) (n int) {
659 return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
660}
661func (this *Endpoint) String() string {
662 if this == nil {
663 return "nil"
664 }
665 keysForTopology := make([]string, 0, len(this.Topology))
666 for k := range this.Topology {
667 keysForTopology = append(keysForTopology, k)
668 }
669 github_com_gogo_protobuf_sortkeys.Strings(keysForTopology)
670 mapStringForTopology := "map[string]string{"
671 for _, k := range keysForTopology {
672 mapStringForTopology += fmt.Sprintf("%v: %v,", k, this.Topology[k])
673 }
674 mapStringForTopology += "}"
675 s := strings.Join([]string{`&Endpoint{`,
676 `Addresses:` + fmt.Sprintf("%v", this.Addresses) + `,`,
677 `Conditions:` + strings.Replace(strings.Replace(this.Conditions.String(), "EndpointConditions", "EndpointConditions", 1), `&`, ``, 1) + `,`,
678 `Hostname:` + valueToStringGenerated(this.Hostname) + `,`,
679 `TargetRef:` + strings.Replace(fmt.Sprintf("%v", this.TargetRef), "ObjectReference", "v1.ObjectReference", 1) + `,`,
680 `Topology:` + mapStringForTopology + `,`,
681 `}`,
682 }, "")
683 return s
684}
685func (this *EndpointConditions) String() string {
686 if this == nil {
687 return "nil"
688 }
689 s := strings.Join([]string{`&EndpointConditions{`,
690 `Ready:` + valueToStringGenerated(this.Ready) + `,`,
691 `}`,
692 }, "")
693 return s
694}
695func (this *EndpointPort) String() string {
696 if this == nil {
697 return "nil"
698 }
699 s := strings.Join([]string{`&EndpointPort{`,
700 `Name:` + valueToStringGenerated(this.Name) + `,`,
701 `Protocol:` + valueToStringGenerated(this.Protocol) + `,`,
702 `Port:` + valueToStringGenerated(this.Port) + `,`,
703 `AppProtocol:` + valueToStringGenerated(this.AppProtocol) + `,`,
704 `}`,
705 }, "")
706 return s
707}
708func (this *EndpointSlice) String() string {
709 if this == nil {
710 return "nil"
711 }
712 repeatedStringForEndpoints := "[]Endpoint{"
713 for _, f := range this.Endpoints {
714 repeatedStringForEndpoints += strings.Replace(strings.Replace(f.String(), "Endpoint", "Endpoint", 1), `&`, ``, 1) + ","
715 }
716 repeatedStringForEndpoints += "}"
717 repeatedStringForPorts := "[]EndpointPort{"
718 for _, f := range this.Ports {
719 repeatedStringForPorts += strings.Replace(strings.Replace(f.String(), "EndpointPort", "EndpointPort", 1), `&`, ``, 1) + ","
720 }
721 repeatedStringForPorts += "}"
722 s := strings.Join([]string{`&EndpointSlice{`,
723 `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v11.ObjectMeta", 1), `&`, ``, 1) + `,`,
724 `Endpoints:` + repeatedStringForEndpoints + `,`,
725 `Ports:` + repeatedStringForPorts + `,`,
726 `AddressType:` + fmt.Sprintf("%v", this.AddressType) + `,`,
727 `}`,
728 }, "")
729 return s
730}
731func (this *EndpointSliceList) String() string {
732 if this == nil {
733 return "nil"
734 }
735 repeatedStringForItems := "[]EndpointSlice{"
736 for _, f := range this.Items {
737 repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "EndpointSlice", "EndpointSlice", 1), `&`, ``, 1) + ","
738 }
739 repeatedStringForItems += "}"
740 s := strings.Join([]string{`&EndpointSliceList{`,
741 `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v11.ListMeta", 1), `&`, ``, 1) + `,`,
742 `Items:` + repeatedStringForItems + `,`,
743 `}`,
744 }, "")
745 return s
746}
747func valueToStringGenerated(v interface{}) string {
748 rv := reflect.ValueOf(v)
749 if rv.IsNil() {
750 return "nil"
751 }
752 pv := reflect.Indirect(rv).Interface()
753 return fmt.Sprintf("*%v", pv)
754}
755func (m *Endpoint) Unmarshal(dAtA []byte) error {
756 l := len(dAtA)
757 iNdEx := 0
758 for iNdEx < l {
759 preIndex := iNdEx
760 var wire uint64
761 for shift := uint(0); ; shift += 7 {
762 if shift >= 64 {
763 return ErrIntOverflowGenerated
764 }
765 if iNdEx >= l {
766 return io.ErrUnexpectedEOF
767 }
768 b := dAtA[iNdEx]
769 iNdEx++
770 wire |= uint64(b&0x7F) << shift
771 if b < 0x80 {
772 break
773 }
774 }
775 fieldNum := int32(wire >> 3)
776 wireType := int(wire & 0x7)
777 if wireType == 4 {
778 return fmt.Errorf("proto: Endpoint: wiretype end group for non-group")
779 }
780 if fieldNum <= 0 {
781 return fmt.Errorf("proto: Endpoint: illegal tag %d (wire type %d)", fieldNum, wire)
782 }
783 switch fieldNum {
784 case 1:
785 if wireType != 2 {
786 return fmt.Errorf("proto: wrong wireType = %d for field Addresses", wireType)
787 }
788 var stringLen uint64
789 for shift := uint(0); ; shift += 7 {
790 if shift >= 64 {
791 return ErrIntOverflowGenerated
792 }
793 if iNdEx >= l {
794 return io.ErrUnexpectedEOF
795 }
796 b := dAtA[iNdEx]
797 iNdEx++
798 stringLen |= uint64(b&0x7F) << shift
799 if b < 0x80 {
800 break
801 }
802 }
803 intStringLen := int(stringLen)
804 if intStringLen < 0 {
805 return ErrInvalidLengthGenerated
806 }
807 postIndex := iNdEx + intStringLen
808 if postIndex < 0 {
809 return ErrInvalidLengthGenerated
810 }
811 if postIndex > l {
812 return io.ErrUnexpectedEOF
813 }
814 m.Addresses = append(m.Addresses, string(dAtA[iNdEx:postIndex]))
815 iNdEx = postIndex
816 case 2:
817 if wireType != 2 {
818 return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType)
819 }
820 var msglen int
821 for shift := uint(0); ; shift += 7 {
822 if shift >= 64 {
823 return ErrIntOverflowGenerated
824 }
825 if iNdEx >= l {
826 return io.ErrUnexpectedEOF
827 }
828 b := dAtA[iNdEx]
829 iNdEx++
830 msglen |= int(b&0x7F) << shift
831 if b < 0x80 {
832 break
833 }
834 }
835 if msglen < 0 {
836 return ErrInvalidLengthGenerated
837 }
838 postIndex := iNdEx + msglen
839 if postIndex < 0 {
840 return ErrInvalidLengthGenerated
841 }
842 if postIndex > l {
843 return io.ErrUnexpectedEOF
844 }
845 if err := m.Conditions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
846 return err
847 }
848 iNdEx = postIndex
849 case 3:
850 if wireType != 2 {
851 return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType)
852 }
853 var stringLen uint64
854 for shift := uint(0); ; shift += 7 {
855 if shift >= 64 {
856 return ErrIntOverflowGenerated
857 }
858 if iNdEx >= l {
859 return io.ErrUnexpectedEOF
860 }
861 b := dAtA[iNdEx]
862 iNdEx++
863 stringLen |= uint64(b&0x7F) << shift
864 if b < 0x80 {
865 break
866 }
867 }
868 intStringLen := int(stringLen)
869 if intStringLen < 0 {
870 return ErrInvalidLengthGenerated
871 }
872 postIndex := iNdEx + intStringLen
873 if postIndex < 0 {
874 return ErrInvalidLengthGenerated
875 }
876 if postIndex > l {
877 return io.ErrUnexpectedEOF
878 }
879 s := string(dAtA[iNdEx:postIndex])
880 m.Hostname = &s
881 iNdEx = postIndex
882 case 4:
883 if wireType != 2 {
884 return fmt.Errorf("proto: wrong wireType = %d for field TargetRef", wireType)
885 }
886 var msglen int
887 for shift := uint(0); ; shift += 7 {
888 if shift >= 64 {
889 return ErrIntOverflowGenerated
890 }
891 if iNdEx >= l {
892 return io.ErrUnexpectedEOF
893 }
894 b := dAtA[iNdEx]
895 iNdEx++
896 msglen |= int(b&0x7F) << shift
897 if b < 0x80 {
898 break
899 }
900 }
901 if msglen < 0 {
902 return ErrInvalidLengthGenerated
903 }
904 postIndex := iNdEx + msglen
905 if postIndex < 0 {
906 return ErrInvalidLengthGenerated
907 }
908 if postIndex > l {
909 return io.ErrUnexpectedEOF
910 }
911 if m.TargetRef == nil {
912 m.TargetRef = &v1.ObjectReference{}
913 }
914 if err := m.TargetRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
915 return err
916 }
917 iNdEx = postIndex
918 case 5:
919 if wireType != 2 {
920 return fmt.Errorf("proto: wrong wireType = %d for field Topology", wireType)
921 }
922 var msglen int
923 for shift := uint(0); ; shift += 7 {
924 if shift >= 64 {
925 return ErrIntOverflowGenerated
926 }
927 if iNdEx >= l {
928 return io.ErrUnexpectedEOF
929 }
930 b := dAtA[iNdEx]
931 iNdEx++
932 msglen |= int(b&0x7F) << shift
933 if b < 0x80 {
934 break
935 }
936 }
937 if msglen < 0 {
938 return ErrInvalidLengthGenerated
939 }
940 postIndex := iNdEx + msglen
941 if postIndex < 0 {
942 return ErrInvalidLengthGenerated
943 }
944 if postIndex > l {
945 return io.ErrUnexpectedEOF
946 }
947 if m.Topology == nil {
948 m.Topology = make(map[string]string)
949 }
950 var mapkey string
951 var mapvalue string
952 for iNdEx < postIndex {
953 entryPreIndex := iNdEx
954 var wire uint64
955 for shift := uint(0); ; shift += 7 {
956 if shift >= 64 {
957 return ErrIntOverflowGenerated
958 }
959 if iNdEx >= l {
960 return io.ErrUnexpectedEOF
961 }
962 b := dAtA[iNdEx]
963 iNdEx++
964 wire |= uint64(b&0x7F) << shift
965 if b < 0x80 {
966 break
967 }
968 }
969 fieldNum := int32(wire >> 3)
970 if fieldNum == 1 {
971 var stringLenmapkey uint64
972 for shift := uint(0); ; shift += 7 {
973 if shift >= 64 {
974 return ErrIntOverflowGenerated
975 }
976 if iNdEx >= l {
977 return io.ErrUnexpectedEOF
978 }
979 b := dAtA[iNdEx]
980 iNdEx++
981 stringLenmapkey |= uint64(b&0x7F) << shift
982 if b < 0x80 {
983 break
984 }
985 }
986 intStringLenmapkey := int(stringLenmapkey)
987 if intStringLenmapkey < 0 {
988 return ErrInvalidLengthGenerated
989 }
990 postStringIndexmapkey := iNdEx + intStringLenmapkey
991 if postStringIndexmapkey < 0 {
992 return ErrInvalidLengthGenerated
993 }
994 if postStringIndexmapkey > l {
995 return io.ErrUnexpectedEOF
996 }
997 mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
998 iNdEx = postStringIndexmapkey
999 } else if fieldNum == 2 {
1000 var stringLenmapvalue uint64
1001 for shift := uint(0); ; shift += 7 {
1002 if shift >= 64 {
1003 return ErrIntOverflowGenerated
1004 }
1005 if iNdEx >= l {
1006 return io.ErrUnexpectedEOF
1007 }
1008 b := dAtA[iNdEx]
1009 iNdEx++
1010 stringLenmapvalue |= uint64(b&0x7F) << shift
1011 if b < 0x80 {
1012 break
1013 }
1014 }
1015 intStringLenmapvalue := int(stringLenmapvalue)
1016 if intStringLenmapvalue < 0 {
1017 return ErrInvalidLengthGenerated
1018 }
1019 postStringIndexmapvalue := iNdEx + intStringLenmapvalue
1020 if postStringIndexmapvalue < 0 {
1021 return ErrInvalidLengthGenerated
1022 }
1023 if postStringIndexmapvalue > l {
1024 return io.ErrUnexpectedEOF
1025 }
1026 mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
1027 iNdEx = postStringIndexmapvalue
1028 } else {
1029 iNdEx = entryPreIndex
1030 skippy, err := skipGenerated(dAtA[iNdEx:])
1031 if err != nil {
1032 return err
1033 }
1034 if skippy < 0 {
1035 return ErrInvalidLengthGenerated
1036 }
1037 if (iNdEx + skippy) > postIndex {
1038 return io.ErrUnexpectedEOF
1039 }
1040 iNdEx += skippy
1041 }
1042 }
1043 m.Topology[mapkey] = mapvalue
1044 iNdEx = postIndex
1045 default:
1046 iNdEx = preIndex
1047 skippy, err := skipGenerated(dAtA[iNdEx:])
1048 if err != nil {
1049 return err
1050 }
1051 if skippy < 0 {
1052 return ErrInvalidLengthGenerated
1053 }
1054 if (iNdEx + skippy) < 0 {
1055 return ErrInvalidLengthGenerated
1056 }
1057 if (iNdEx + skippy) > l {
1058 return io.ErrUnexpectedEOF
1059 }
1060 iNdEx += skippy
1061 }
1062 }
1063
1064 if iNdEx > l {
1065 return io.ErrUnexpectedEOF
1066 }
1067 return nil
1068}
1069func (m *EndpointConditions) Unmarshal(dAtA []byte) error {
1070 l := len(dAtA)
1071 iNdEx := 0
1072 for iNdEx < l {
1073 preIndex := iNdEx
1074 var wire uint64
1075 for shift := uint(0); ; shift += 7 {
1076 if shift >= 64 {
1077 return ErrIntOverflowGenerated
1078 }
1079 if iNdEx >= l {
1080 return io.ErrUnexpectedEOF
1081 }
1082 b := dAtA[iNdEx]
1083 iNdEx++
1084 wire |= uint64(b&0x7F) << shift
1085 if b < 0x80 {
1086 break
1087 }
1088 }
1089 fieldNum := int32(wire >> 3)
1090 wireType := int(wire & 0x7)
1091 if wireType == 4 {
1092 return fmt.Errorf("proto: EndpointConditions: wiretype end group for non-group")
1093 }
1094 if fieldNum <= 0 {
1095 return fmt.Errorf("proto: EndpointConditions: illegal tag %d (wire type %d)", fieldNum, wire)
1096 }
1097 switch fieldNum {
1098 case 1:
1099 if wireType != 0 {
1100 return fmt.Errorf("proto: wrong wireType = %d for field Ready", wireType)
1101 }
1102 var v int
1103 for shift := uint(0); ; shift += 7 {
1104 if shift >= 64 {
1105 return ErrIntOverflowGenerated
1106 }
1107 if iNdEx >= l {
1108 return io.ErrUnexpectedEOF
1109 }
1110 b := dAtA[iNdEx]
1111 iNdEx++
1112 v |= int(b&0x7F) << shift
1113 if b < 0x80 {
1114 break
1115 }
1116 }
1117 b := bool(v != 0)
1118 m.Ready = &b
1119 default:
1120 iNdEx = preIndex
1121 skippy, err := skipGenerated(dAtA[iNdEx:])
1122 if err != nil {
1123 return err
1124 }
1125 if skippy < 0 {
1126 return ErrInvalidLengthGenerated
1127 }
1128 if (iNdEx + skippy) < 0 {
1129 return ErrInvalidLengthGenerated
1130 }
1131 if (iNdEx + skippy) > l {
1132 return io.ErrUnexpectedEOF
1133 }
1134 iNdEx += skippy
1135 }
1136 }
1137
1138 if iNdEx > l {
1139 return io.ErrUnexpectedEOF
1140 }
1141 return nil
1142}
1143func (m *EndpointPort) Unmarshal(dAtA []byte) error {
1144 l := len(dAtA)
1145 iNdEx := 0
1146 for iNdEx < l {
1147 preIndex := iNdEx
1148 var wire uint64
1149 for shift := uint(0); ; shift += 7 {
1150 if shift >= 64 {
1151 return ErrIntOverflowGenerated
1152 }
1153 if iNdEx >= l {
1154 return io.ErrUnexpectedEOF
1155 }
1156 b := dAtA[iNdEx]
1157 iNdEx++
1158 wire |= uint64(b&0x7F) << shift
1159 if b < 0x80 {
1160 break
1161 }
1162 }
1163 fieldNum := int32(wire >> 3)
1164 wireType := int(wire & 0x7)
1165 if wireType == 4 {
1166 return fmt.Errorf("proto: EndpointPort: wiretype end group for non-group")
1167 }
1168 if fieldNum <= 0 {
1169 return fmt.Errorf("proto: EndpointPort: illegal tag %d (wire type %d)", fieldNum, wire)
1170 }
1171 switch fieldNum {
1172 case 1:
1173 if wireType != 2 {
1174 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
1175 }
1176 var stringLen uint64
1177 for shift := uint(0); ; shift += 7 {
1178 if shift >= 64 {
1179 return ErrIntOverflowGenerated
1180 }
1181 if iNdEx >= l {
1182 return io.ErrUnexpectedEOF
1183 }
1184 b := dAtA[iNdEx]
1185 iNdEx++
1186 stringLen |= uint64(b&0x7F) << shift
1187 if b < 0x80 {
1188 break
1189 }
1190 }
1191 intStringLen := int(stringLen)
1192 if intStringLen < 0 {
1193 return ErrInvalidLengthGenerated
1194 }
1195 postIndex := iNdEx + intStringLen
1196 if postIndex < 0 {
1197 return ErrInvalidLengthGenerated
1198 }
1199 if postIndex > l {
1200 return io.ErrUnexpectedEOF
1201 }
1202 s := string(dAtA[iNdEx:postIndex])
1203 m.Name = &s
1204 iNdEx = postIndex
1205 case 2:
1206 if wireType != 2 {
1207 return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType)
1208 }
1209 var stringLen uint64
1210 for shift := uint(0); ; shift += 7 {
1211 if shift >= 64 {
1212 return ErrIntOverflowGenerated
1213 }
1214 if iNdEx >= l {
1215 return io.ErrUnexpectedEOF
1216 }
1217 b := dAtA[iNdEx]
1218 iNdEx++
1219 stringLen |= uint64(b&0x7F) << shift
1220 if b < 0x80 {
1221 break
1222 }
1223 }
1224 intStringLen := int(stringLen)
1225 if intStringLen < 0 {
1226 return ErrInvalidLengthGenerated
1227 }
1228 postIndex := iNdEx + intStringLen
1229 if postIndex < 0 {
1230 return ErrInvalidLengthGenerated
1231 }
1232 if postIndex > l {
1233 return io.ErrUnexpectedEOF
1234 }
1235 s := k8s_io_api_core_v1.Protocol(dAtA[iNdEx:postIndex])
1236 m.Protocol = &s
1237 iNdEx = postIndex
1238 case 3:
1239 if wireType != 0 {
1240 return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType)
1241 }
1242 var v int32
1243 for shift := uint(0); ; shift += 7 {
1244 if shift >= 64 {
1245 return ErrIntOverflowGenerated
1246 }
1247 if iNdEx >= l {
1248 return io.ErrUnexpectedEOF
1249 }
1250 b := dAtA[iNdEx]
1251 iNdEx++
1252 v |= int32(b&0x7F) << shift
1253 if b < 0x80 {
1254 break
1255 }
1256 }
1257 m.Port = &v
1258 case 4:
1259 if wireType != 2 {
1260 return fmt.Errorf("proto: wrong wireType = %d for field AppProtocol", wireType)
1261 }
1262 var stringLen uint64
1263 for shift := uint(0); ; shift += 7 {
1264 if shift >= 64 {
1265 return ErrIntOverflowGenerated
1266 }
1267 if iNdEx >= l {
1268 return io.ErrUnexpectedEOF
1269 }
1270 b := dAtA[iNdEx]
1271 iNdEx++
1272 stringLen |= uint64(b&0x7F) << shift
1273 if b < 0x80 {
1274 break
1275 }
1276 }
1277 intStringLen := int(stringLen)
1278 if intStringLen < 0 {
1279 return ErrInvalidLengthGenerated
1280 }
1281 postIndex := iNdEx + intStringLen
1282 if postIndex < 0 {
1283 return ErrInvalidLengthGenerated
1284 }
1285 if postIndex > l {
1286 return io.ErrUnexpectedEOF
1287 }
1288 s := string(dAtA[iNdEx:postIndex])
1289 m.AppProtocol = &s
1290 iNdEx = postIndex
1291 default:
1292 iNdEx = preIndex
1293 skippy, err := skipGenerated(dAtA[iNdEx:])
1294 if err != nil {
1295 return err
1296 }
1297 if skippy < 0 {
1298 return ErrInvalidLengthGenerated
1299 }
1300 if (iNdEx + skippy) < 0 {
1301 return ErrInvalidLengthGenerated
1302 }
1303 if (iNdEx + skippy) > l {
1304 return io.ErrUnexpectedEOF
1305 }
1306 iNdEx += skippy
1307 }
1308 }
1309
1310 if iNdEx > l {
1311 return io.ErrUnexpectedEOF
1312 }
1313 return nil
1314}
1315func (m *EndpointSlice) Unmarshal(dAtA []byte) error {
1316 l := len(dAtA)
1317 iNdEx := 0
1318 for iNdEx < l {
1319 preIndex := iNdEx
1320 var wire uint64
1321 for shift := uint(0); ; shift += 7 {
1322 if shift >= 64 {
1323 return ErrIntOverflowGenerated
1324 }
1325 if iNdEx >= l {
1326 return io.ErrUnexpectedEOF
1327 }
1328 b := dAtA[iNdEx]
1329 iNdEx++
1330 wire |= uint64(b&0x7F) << shift
1331 if b < 0x80 {
1332 break
1333 }
1334 }
1335 fieldNum := int32(wire >> 3)
1336 wireType := int(wire & 0x7)
1337 if wireType == 4 {
1338 return fmt.Errorf("proto: EndpointSlice: wiretype end group for non-group")
1339 }
1340 if fieldNum <= 0 {
1341 return fmt.Errorf("proto: EndpointSlice: illegal tag %d (wire type %d)", fieldNum, wire)
1342 }
1343 switch fieldNum {
1344 case 1:
1345 if wireType != 2 {
1346 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
1347 }
1348 var msglen int
1349 for shift := uint(0); ; shift += 7 {
1350 if shift >= 64 {
1351 return ErrIntOverflowGenerated
1352 }
1353 if iNdEx >= l {
1354 return io.ErrUnexpectedEOF
1355 }
1356 b := dAtA[iNdEx]
1357 iNdEx++
1358 msglen |= int(b&0x7F) << shift
1359 if b < 0x80 {
1360 break
1361 }
1362 }
1363 if msglen < 0 {
1364 return ErrInvalidLengthGenerated
1365 }
1366 postIndex := iNdEx + msglen
1367 if postIndex < 0 {
1368 return ErrInvalidLengthGenerated
1369 }
1370 if postIndex > l {
1371 return io.ErrUnexpectedEOF
1372 }
1373 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1374 return err
1375 }
1376 iNdEx = postIndex
1377 case 2:
1378 if wireType != 2 {
1379 return fmt.Errorf("proto: wrong wireType = %d for field Endpoints", wireType)
1380 }
1381 var msglen int
1382 for shift := uint(0); ; shift += 7 {
1383 if shift >= 64 {
1384 return ErrIntOverflowGenerated
1385 }
1386 if iNdEx >= l {
1387 return io.ErrUnexpectedEOF
1388 }
1389 b := dAtA[iNdEx]
1390 iNdEx++
1391 msglen |= int(b&0x7F) << shift
1392 if b < 0x80 {
1393 break
1394 }
1395 }
1396 if msglen < 0 {
1397 return ErrInvalidLengthGenerated
1398 }
1399 postIndex := iNdEx + msglen
1400 if postIndex < 0 {
1401 return ErrInvalidLengthGenerated
1402 }
1403 if postIndex > l {
1404 return io.ErrUnexpectedEOF
1405 }
1406 m.Endpoints = append(m.Endpoints, Endpoint{})
1407 if err := m.Endpoints[len(m.Endpoints)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1408 return err
1409 }
1410 iNdEx = postIndex
1411 case 3:
1412 if wireType != 2 {
1413 return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType)
1414 }
1415 var msglen int
1416 for shift := uint(0); ; shift += 7 {
1417 if shift >= 64 {
1418 return ErrIntOverflowGenerated
1419 }
1420 if iNdEx >= l {
1421 return io.ErrUnexpectedEOF
1422 }
1423 b := dAtA[iNdEx]
1424 iNdEx++
1425 msglen |= int(b&0x7F) << shift
1426 if b < 0x80 {
1427 break
1428 }
1429 }
1430 if msglen < 0 {
1431 return ErrInvalidLengthGenerated
1432 }
1433 postIndex := iNdEx + msglen
1434 if postIndex < 0 {
1435 return ErrInvalidLengthGenerated
1436 }
1437 if postIndex > l {
1438 return io.ErrUnexpectedEOF
1439 }
1440 m.Ports = append(m.Ports, EndpointPort{})
1441 if err := m.Ports[len(m.Ports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1442 return err
1443 }
1444 iNdEx = postIndex
1445 case 4:
1446 if wireType != 2 {
1447 return fmt.Errorf("proto: wrong wireType = %d for field AddressType", wireType)
1448 }
1449 var stringLen uint64
1450 for shift := uint(0); ; shift += 7 {
1451 if shift >= 64 {
1452 return ErrIntOverflowGenerated
1453 }
1454 if iNdEx >= l {
1455 return io.ErrUnexpectedEOF
1456 }
1457 b := dAtA[iNdEx]
1458 iNdEx++
1459 stringLen |= uint64(b&0x7F) << shift
1460 if b < 0x80 {
1461 break
1462 }
1463 }
1464 intStringLen := int(stringLen)
1465 if intStringLen < 0 {
1466 return ErrInvalidLengthGenerated
1467 }
1468 postIndex := iNdEx + intStringLen
1469 if postIndex < 0 {
1470 return ErrInvalidLengthGenerated
1471 }
1472 if postIndex > l {
1473 return io.ErrUnexpectedEOF
1474 }
1475 m.AddressType = AddressType(dAtA[iNdEx:postIndex])
1476 iNdEx = postIndex
1477 default:
1478 iNdEx = preIndex
1479 skippy, err := skipGenerated(dAtA[iNdEx:])
1480 if err != nil {
1481 return err
1482 }
1483 if skippy < 0 {
1484 return ErrInvalidLengthGenerated
1485 }
1486 if (iNdEx + skippy) < 0 {
1487 return ErrInvalidLengthGenerated
1488 }
1489 if (iNdEx + skippy) > l {
1490 return io.ErrUnexpectedEOF
1491 }
1492 iNdEx += skippy
1493 }
1494 }
1495
1496 if iNdEx > l {
1497 return io.ErrUnexpectedEOF
1498 }
1499 return nil
1500}
1501func (m *EndpointSliceList) Unmarshal(dAtA []byte) error {
1502 l := len(dAtA)
1503 iNdEx := 0
1504 for iNdEx < l {
1505 preIndex := iNdEx
1506 var wire uint64
1507 for shift := uint(0); ; shift += 7 {
1508 if shift >= 64 {
1509 return ErrIntOverflowGenerated
1510 }
1511 if iNdEx >= l {
1512 return io.ErrUnexpectedEOF
1513 }
1514 b := dAtA[iNdEx]
1515 iNdEx++
1516 wire |= uint64(b&0x7F) << shift
1517 if b < 0x80 {
1518 break
1519 }
1520 }
1521 fieldNum := int32(wire >> 3)
1522 wireType := int(wire & 0x7)
1523 if wireType == 4 {
1524 return fmt.Errorf("proto: EndpointSliceList: wiretype end group for non-group")
1525 }
1526 if fieldNum <= 0 {
1527 return fmt.Errorf("proto: EndpointSliceList: illegal tag %d (wire type %d)", fieldNum, wire)
1528 }
1529 switch fieldNum {
1530 case 1:
1531 if wireType != 2 {
1532 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
1533 }
1534 var msglen int
1535 for shift := uint(0); ; shift += 7 {
1536 if shift >= 64 {
1537 return ErrIntOverflowGenerated
1538 }
1539 if iNdEx >= l {
1540 return io.ErrUnexpectedEOF
1541 }
1542 b := dAtA[iNdEx]
1543 iNdEx++
1544 msglen |= int(b&0x7F) << shift
1545 if b < 0x80 {
1546 break
1547 }
1548 }
1549 if msglen < 0 {
1550 return ErrInvalidLengthGenerated
1551 }
1552 postIndex := iNdEx + msglen
1553 if postIndex < 0 {
1554 return ErrInvalidLengthGenerated
1555 }
1556 if postIndex > l {
1557 return io.ErrUnexpectedEOF
1558 }
1559 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1560 return err
1561 }
1562 iNdEx = postIndex
1563 case 2:
1564 if wireType != 2 {
1565 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
1566 }
1567 var msglen int
1568 for shift := uint(0); ; shift += 7 {
1569 if shift >= 64 {
1570 return ErrIntOverflowGenerated
1571 }
1572 if iNdEx >= l {
1573 return io.ErrUnexpectedEOF
1574 }
1575 b := dAtA[iNdEx]
1576 iNdEx++
1577 msglen |= int(b&0x7F) << shift
1578 if b < 0x80 {
1579 break
1580 }
1581 }
1582 if msglen < 0 {
1583 return ErrInvalidLengthGenerated
1584 }
1585 postIndex := iNdEx + msglen
1586 if postIndex < 0 {
1587 return ErrInvalidLengthGenerated
1588 }
1589 if postIndex > l {
1590 return io.ErrUnexpectedEOF
1591 }
1592 m.Items = append(m.Items, EndpointSlice{})
1593 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1594 return err
1595 }
1596 iNdEx = postIndex
1597 default:
1598 iNdEx = preIndex
1599 skippy, err := skipGenerated(dAtA[iNdEx:])
1600 if err != nil {
1601 return err
1602 }
1603 if skippy < 0 {
1604 return ErrInvalidLengthGenerated
1605 }
1606 if (iNdEx + skippy) < 0 {
1607 return ErrInvalidLengthGenerated
1608 }
1609 if (iNdEx + skippy) > l {
1610 return io.ErrUnexpectedEOF
1611 }
1612 iNdEx += skippy
1613 }
1614 }
1615
1616 if iNdEx > l {
1617 return io.ErrUnexpectedEOF
1618 }
1619 return nil
1620}
1621func skipGenerated(dAtA []byte) (n int, err error) {
1622 l := len(dAtA)
1623 iNdEx := 0
1624 depth := 0
1625 for iNdEx < l {
1626 var wire uint64
1627 for shift := uint(0); ; shift += 7 {
1628 if shift >= 64 {
1629 return 0, ErrIntOverflowGenerated
1630 }
1631 if iNdEx >= l {
1632 return 0, io.ErrUnexpectedEOF
1633 }
1634 b := dAtA[iNdEx]
1635 iNdEx++
1636 wire |= (uint64(b) & 0x7F) << shift
1637 if b < 0x80 {
1638 break
1639 }
1640 }
1641 wireType := int(wire & 0x7)
1642 switch wireType {
1643 case 0:
1644 for shift := uint(0); ; shift += 7 {
1645 if shift >= 64 {
1646 return 0, ErrIntOverflowGenerated
1647 }
1648 if iNdEx >= l {
1649 return 0, io.ErrUnexpectedEOF
1650 }
1651 iNdEx++
1652 if dAtA[iNdEx-1] < 0x80 {
1653 break
1654 }
1655 }
1656 case 1:
1657 iNdEx += 8
1658 case 2:
1659 var length int
1660 for shift := uint(0); ; shift += 7 {
1661 if shift >= 64 {
1662 return 0, ErrIntOverflowGenerated
1663 }
1664 if iNdEx >= l {
1665 return 0, io.ErrUnexpectedEOF
1666 }
1667 b := dAtA[iNdEx]
1668 iNdEx++
1669 length |= (int(b) & 0x7F) << shift
1670 if b < 0x80 {
1671 break
1672 }
1673 }
1674 if length < 0 {
1675 return 0, ErrInvalidLengthGenerated
1676 }
1677 iNdEx += length
1678 case 3:
1679 depth++
1680 case 4:
1681 if depth == 0 {
1682 return 0, ErrUnexpectedEndOfGroupGenerated
1683 }
1684 depth--
1685 case 5:
1686 iNdEx += 4
1687 default:
1688 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
1689 }
1690 if iNdEx < 0 {
1691 return 0, ErrInvalidLengthGenerated
1692 }
1693 if depth == 0 {
1694 return iNdEx, nil
1695 }
1696 }
1697 return 0, io.ErrUnexpectedEOF
1698}
1699
1700var (
1701 ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
1702 ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
1703 ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
1704)