1// Code generated by protoc-gen-gogo. DO NOT EDIT.
2// source: secrets.proto
3
4package secrets
5
6import (
7	bytes "bytes"
8	context "context"
9	fmt "fmt"
10	proto "github.com/gogo/protobuf/proto"
11	github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
12	grpc "google.golang.org/grpc"
13	codes "google.golang.org/grpc/codes"
14	status "google.golang.org/grpc/status"
15	io "io"
16	math "math"
17	math_bits "math/bits"
18	reflect "reflect"
19	strings "strings"
20)
21
22// Reference imports to suppress errors if they are not otherwise used.
23var _ = proto.Marshal
24var _ = fmt.Errorf
25var _ = math.Inf
26
27// This is a compile-time assertion to ensure that this generated file
28// is compatible with the proto package it is being compiled against.
29// A compilation error at this line likely means your copy of the
30// proto package needs to be updated.
31const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
32
33type GetSecretRequest struct {
34	ID          string            `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
35	Annotations map[string]string `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
36}
37
38func (m *GetSecretRequest) Reset()      { *m = GetSecretRequest{} }
39func (*GetSecretRequest) ProtoMessage() {}
40func (*GetSecretRequest) Descriptor() ([]byte, []int) {
41	return fileDescriptor_d4bc6c625e214507, []int{0}
42}
43func (m *GetSecretRequest) XXX_Unmarshal(b []byte) error {
44	return m.Unmarshal(b)
45}
46func (m *GetSecretRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
47	if deterministic {
48		return xxx_messageInfo_GetSecretRequest.Marshal(b, m, deterministic)
49	} else {
50		b = b[:cap(b)]
51		n, err := m.MarshalToSizedBuffer(b)
52		if err != nil {
53			return nil, err
54		}
55		return b[:n], nil
56	}
57}
58func (m *GetSecretRequest) XXX_Merge(src proto.Message) {
59	xxx_messageInfo_GetSecretRequest.Merge(m, src)
60}
61func (m *GetSecretRequest) XXX_Size() int {
62	return m.Size()
63}
64func (m *GetSecretRequest) XXX_DiscardUnknown() {
65	xxx_messageInfo_GetSecretRequest.DiscardUnknown(m)
66}
67
68var xxx_messageInfo_GetSecretRequest proto.InternalMessageInfo
69
70func (m *GetSecretRequest) GetID() string {
71	if m != nil {
72		return m.ID
73	}
74	return ""
75}
76
77func (m *GetSecretRequest) GetAnnotations() map[string]string {
78	if m != nil {
79		return m.Annotations
80	}
81	return nil
82}
83
84type GetSecretResponse struct {
85	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
86}
87
88func (m *GetSecretResponse) Reset()      { *m = GetSecretResponse{} }
89func (*GetSecretResponse) ProtoMessage() {}
90func (*GetSecretResponse) Descriptor() ([]byte, []int) {
91	return fileDescriptor_d4bc6c625e214507, []int{1}
92}
93func (m *GetSecretResponse) XXX_Unmarshal(b []byte) error {
94	return m.Unmarshal(b)
95}
96func (m *GetSecretResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
97	if deterministic {
98		return xxx_messageInfo_GetSecretResponse.Marshal(b, m, deterministic)
99	} else {
100		b = b[:cap(b)]
101		n, err := m.MarshalToSizedBuffer(b)
102		if err != nil {
103			return nil, err
104		}
105		return b[:n], nil
106	}
107}
108func (m *GetSecretResponse) XXX_Merge(src proto.Message) {
109	xxx_messageInfo_GetSecretResponse.Merge(m, src)
110}
111func (m *GetSecretResponse) XXX_Size() int {
112	return m.Size()
113}
114func (m *GetSecretResponse) XXX_DiscardUnknown() {
115	xxx_messageInfo_GetSecretResponse.DiscardUnknown(m)
116}
117
118var xxx_messageInfo_GetSecretResponse proto.InternalMessageInfo
119
120func (m *GetSecretResponse) GetData() []byte {
121	if m != nil {
122		return m.Data
123	}
124	return nil
125}
126
127func init() {
128	proto.RegisterType((*GetSecretRequest)(nil), "moby.buildkit.secrets.v1.GetSecretRequest")
129	proto.RegisterMapType((map[string]string)(nil), "moby.buildkit.secrets.v1.GetSecretRequest.AnnotationsEntry")
130	proto.RegisterType((*GetSecretResponse)(nil), "moby.buildkit.secrets.v1.GetSecretResponse")
131}
132
133func init() { proto.RegisterFile("secrets.proto", fileDescriptor_d4bc6c625e214507) }
134
135var fileDescriptor_d4bc6c625e214507 = []byte{
136	// 288 bytes of a gzipped FileDescriptorProto
137	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2d, 0x4e, 0x4d, 0x2e,
138	0x4a, 0x2d, 0x29, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0xc8, 0xcd, 0x4f, 0xaa, 0xd4,
139	0x4b, 0x2a, 0xcd, 0xcc, 0x49, 0xc9, 0xce, 0x2c, 0xd1, 0x83, 0x49, 0x96, 0x19, 0x2a, 0x1d, 0x64,
140	0xe4, 0x12, 0x70, 0x4f, 0x2d, 0x09, 0x06, 0x8b, 0x04, 0xa5, 0x16, 0x96, 0xa6, 0x16, 0x97, 0x08,
141	0xf1, 0x71, 0x31, 0x79, 0xba, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x31, 0x79, 0xba, 0x08,
142	0xc5, 0x72, 0x71, 0x27, 0xe6, 0xe5, 0xe5, 0x97, 0x24, 0x96, 0x64, 0xe6, 0xe7, 0x15, 0x4b, 0x30,
143	0x29, 0x30, 0x6b, 0x70, 0x1b, 0x59, 0xeb, 0xe1, 0x32, 0x54, 0x0f, 0xdd, 0x40, 0x3d, 0x47, 0x84,
144	0x6e, 0xd7, 0xbc, 0x92, 0xa2, 0xca, 0x20, 0x64, 0xf3, 0xa4, 0xec, 0xb8, 0x04, 0xd0, 0x15, 0x08,
145	0x09, 0x70, 0x31, 0x67, 0xa7, 0x56, 0x42, 0xdd, 0x00, 0x62, 0x0a, 0x89, 0x70, 0xb1, 0x96, 0x25,
146	0xe6, 0x94, 0xa6, 0x4a, 0x30, 0x81, 0xc5, 0x20, 0x1c, 0x2b, 0x26, 0x0b, 0x46, 0x25, 0x75, 0x2e,
147	0x41, 0x24, 0x1b, 0x8b, 0x0b, 0xf2, 0xf3, 0x8a, 0x53, 0x85, 0x84, 0xb8, 0x58, 0x52, 0x12, 0x4b,
148	0x12, 0xc1, 0x26, 0xf0, 0x04, 0x81, 0xd9, 0x46, 0xf9, 0x5c, 0xec, 0x10, 0x55, 0xc5, 0x42, 0x29,
149	0x5c, 0x9c, 0x70, 0x3d, 0x42, 0x5a, 0xc4, 0x7b, 0x45, 0x4a, 0x9b, 0x28, 0xb5, 0x10, 0x47, 0x38,
150	0xd9, 0x5e, 0x78, 0x28, 0xc7, 0x70, 0xe3, 0xa1, 0x1c, 0xc3, 0x87, 0x87, 0x72, 0x8c, 0x0d, 0x8f,
151	0xe4, 0x18, 0x57, 0x3c, 0x92, 0x63, 0x3c, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07,
152	0x8f, 0xe4, 0x18, 0x5f, 0x3c, 0x92, 0x63, 0xf8, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86,
153	0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0x62, 0x87, 0x9a, 0x99, 0xc4, 0x06, 0x8e,
154	0x3d, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x2c, 0x38, 0xec, 0x1f, 0xce, 0x01, 0x00, 0x00,
155}
156
157func (this *GetSecretRequest) Equal(that interface{}) bool {
158	if that == nil {
159		return this == nil
160	}
161
162	that1, ok := that.(*GetSecretRequest)
163	if !ok {
164		that2, ok := that.(GetSecretRequest)
165		if ok {
166			that1 = &that2
167		} else {
168			return false
169		}
170	}
171	if that1 == nil {
172		return this == nil
173	} else if this == nil {
174		return false
175	}
176	if this.ID != that1.ID {
177		return false
178	}
179	if len(this.Annotations) != len(that1.Annotations) {
180		return false
181	}
182	for i := range this.Annotations {
183		if this.Annotations[i] != that1.Annotations[i] {
184			return false
185		}
186	}
187	return true
188}
189func (this *GetSecretResponse) Equal(that interface{}) bool {
190	if that == nil {
191		return this == nil
192	}
193
194	that1, ok := that.(*GetSecretResponse)
195	if !ok {
196		that2, ok := that.(GetSecretResponse)
197		if ok {
198			that1 = &that2
199		} else {
200			return false
201		}
202	}
203	if that1 == nil {
204		return this == nil
205	} else if this == nil {
206		return false
207	}
208	if !bytes.Equal(this.Data, that1.Data) {
209		return false
210	}
211	return true
212}
213func (this *GetSecretRequest) GoString() string {
214	if this == nil {
215		return "nil"
216	}
217	s := make([]string, 0, 6)
218	s = append(s, "&secrets.GetSecretRequest{")
219	s = append(s, "ID: "+fmt.Sprintf("%#v", this.ID)+",\n")
220	keysForAnnotations := make([]string, 0, len(this.Annotations))
221	for k, _ := range this.Annotations {
222		keysForAnnotations = append(keysForAnnotations, k)
223	}
224	github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations)
225	mapStringForAnnotations := "map[string]string{"
226	for _, k := range keysForAnnotations {
227		mapStringForAnnotations += fmt.Sprintf("%#v: %#v,", k, this.Annotations[k])
228	}
229	mapStringForAnnotations += "}"
230	if this.Annotations != nil {
231		s = append(s, "Annotations: "+mapStringForAnnotations+",\n")
232	}
233	s = append(s, "}")
234	return strings.Join(s, "")
235}
236func (this *GetSecretResponse) GoString() string {
237	if this == nil {
238		return "nil"
239	}
240	s := make([]string, 0, 5)
241	s = append(s, "&secrets.GetSecretResponse{")
242	s = append(s, "Data: "+fmt.Sprintf("%#v", this.Data)+",\n")
243	s = append(s, "}")
244	return strings.Join(s, "")
245}
246func valueToGoStringSecrets(v interface{}, typ string) string {
247	rv := reflect.ValueOf(v)
248	if rv.IsNil() {
249		return "nil"
250	}
251	pv := reflect.Indirect(rv).Interface()
252	return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
253}
254
255// Reference imports to suppress errors if they are not otherwise used.
256var _ context.Context
257var _ grpc.ClientConn
258
259// This is a compile-time assertion to ensure that this generated file
260// is compatible with the grpc package it is being compiled against.
261const _ = grpc.SupportPackageIsVersion4
262
263// SecretsClient is the client API for Secrets service.
264//
265// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
266type SecretsClient interface {
267	GetSecret(ctx context.Context, in *GetSecretRequest, opts ...grpc.CallOption) (*GetSecretResponse, error)
268}
269
270type secretsClient struct {
271	cc *grpc.ClientConn
272}
273
274func NewSecretsClient(cc *grpc.ClientConn) SecretsClient {
275	return &secretsClient{cc}
276}
277
278func (c *secretsClient) GetSecret(ctx context.Context, in *GetSecretRequest, opts ...grpc.CallOption) (*GetSecretResponse, error) {
279	out := new(GetSecretResponse)
280	err := c.cc.Invoke(ctx, "/moby.buildkit.secrets.v1.Secrets/GetSecret", in, out, opts...)
281	if err != nil {
282		return nil, err
283	}
284	return out, nil
285}
286
287// SecretsServer is the server API for Secrets service.
288type SecretsServer interface {
289	GetSecret(context.Context, *GetSecretRequest) (*GetSecretResponse, error)
290}
291
292// UnimplementedSecretsServer can be embedded to have forward compatible implementations.
293type UnimplementedSecretsServer struct {
294}
295
296func (*UnimplementedSecretsServer) GetSecret(ctx context.Context, req *GetSecretRequest) (*GetSecretResponse, error) {
297	return nil, status.Errorf(codes.Unimplemented, "method GetSecret not implemented")
298}
299
300func RegisterSecretsServer(s *grpc.Server, srv SecretsServer) {
301	s.RegisterService(&_Secrets_serviceDesc, srv)
302}
303
304func _Secrets_GetSecret_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
305	in := new(GetSecretRequest)
306	if err := dec(in); err != nil {
307		return nil, err
308	}
309	if interceptor == nil {
310		return srv.(SecretsServer).GetSecret(ctx, in)
311	}
312	info := &grpc.UnaryServerInfo{
313		Server:     srv,
314		FullMethod: "/moby.buildkit.secrets.v1.Secrets/GetSecret",
315	}
316	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
317		return srv.(SecretsServer).GetSecret(ctx, req.(*GetSecretRequest))
318	}
319	return interceptor(ctx, in, info, handler)
320}
321
322var _Secrets_serviceDesc = grpc.ServiceDesc{
323	ServiceName: "moby.buildkit.secrets.v1.Secrets",
324	HandlerType: (*SecretsServer)(nil),
325	Methods: []grpc.MethodDesc{
326		{
327			MethodName: "GetSecret",
328			Handler:    _Secrets_GetSecret_Handler,
329		},
330	},
331	Streams:  []grpc.StreamDesc{},
332	Metadata: "secrets.proto",
333}
334
335func (m *GetSecretRequest) Marshal() (dAtA []byte, err error) {
336	size := m.Size()
337	dAtA = make([]byte, size)
338	n, err := m.MarshalToSizedBuffer(dAtA[:size])
339	if err != nil {
340		return nil, err
341	}
342	return dAtA[:n], nil
343}
344
345func (m *GetSecretRequest) MarshalTo(dAtA []byte) (int, error) {
346	size := m.Size()
347	return m.MarshalToSizedBuffer(dAtA[:size])
348}
349
350func (m *GetSecretRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
351	i := len(dAtA)
352	_ = i
353	var l int
354	_ = l
355	if len(m.Annotations) > 0 {
356		for k := range m.Annotations {
357			v := m.Annotations[k]
358			baseI := i
359			i -= len(v)
360			copy(dAtA[i:], v)
361			i = encodeVarintSecrets(dAtA, i, uint64(len(v)))
362			i--
363			dAtA[i] = 0x12
364			i -= len(k)
365			copy(dAtA[i:], k)
366			i = encodeVarintSecrets(dAtA, i, uint64(len(k)))
367			i--
368			dAtA[i] = 0xa
369			i = encodeVarintSecrets(dAtA, i, uint64(baseI-i))
370			i--
371			dAtA[i] = 0x12
372		}
373	}
374	if len(m.ID) > 0 {
375		i -= len(m.ID)
376		copy(dAtA[i:], m.ID)
377		i = encodeVarintSecrets(dAtA, i, uint64(len(m.ID)))
378		i--
379		dAtA[i] = 0xa
380	}
381	return len(dAtA) - i, nil
382}
383
384func (m *GetSecretResponse) Marshal() (dAtA []byte, err error) {
385	size := m.Size()
386	dAtA = make([]byte, size)
387	n, err := m.MarshalToSizedBuffer(dAtA[:size])
388	if err != nil {
389		return nil, err
390	}
391	return dAtA[:n], nil
392}
393
394func (m *GetSecretResponse) MarshalTo(dAtA []byte) (int, error) {
395	size := m.Size()
396	return m.MarshalToSizedBuffer(dAtA[:size])
397}
398
399func (m *GetSecretResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
400	i := len(dAtA)
401	_ = i
402	var l int
403	_ = l
404	if len(m.Data) > 0 {
405		i -= len(m.Data)
406		copy(dAtA[i:], m.Data)
407		i = encodeVarintSecrets(dAtA, i, uint64(len(m.Data)))
408		i--
409		dAtA[i] = 0xa
410	}
411	return len(dAtA) - i, nil
412}
413
414func encodeVarintSecrets(dAtA []byte, offset int, v uint64) int {
415	offset -= sovSecrets(v)
416	base := offset
417	for v >= 1<<7 {
418		dAtA[offset] = uint8(v&0x7f | 0x80)
419		v >>= 7
420		offset++
421	}
422	dAtA[offset] = uint8(v)
423	return base
424}
425func (m *GetSecretRequest) Size() (n int) {
426	if m == nil {
427		return 0
428	}
429	var l int
430	_ = l
431	l = len(m.ID)
432	if l > 0 {
433		n += 1 + l + sovSecrets(uint64(l))
434	}
435	if len(m.Annotations) > 0 {
436		for k, v := range m.Annotations {
437			_ = k
438			_ = v
439			mapEntrySize := 1 + len(k) + sovSecrets(uint64(len(k))) + 1 + len(v) + sovSecrets(uint64(len(v)))
440			n += mapEntrySize + 1 + sovSecrets(uint64(mapEntrySize))
441		}
442	}
443	return n
444}
445
446func (m *GetSecretResponse) Size() (n int) {
447	if m == nil {
448		return 0
449	}
450	var l int
451	_ = l
452	l = len(m.Data)
453	if l > 0 {
454		n += 1 + l + sovSecrets(uint64(l))
455	}
456	return n
457}
458
459func sovSecrets(x uint64) (n int) {
460	return (math_bits.Len64(x|1) + 6) / 7
461}
462func sozSecrets(x uint64) (n int) {
463	return sovSecrets(uint64((x << 1) ^ uint64((int64(x) >> 63))))
464}
465func (this *GetSecretRequest) String() string {
466	if this == nil {
467		return "nil"
468	}
469	keysForAnnotations := make([]string, 0, len(this.Annotations))
470	for k, _ := range this.Annotations {
471		keysForAnnotations = append(keysForAnnotations, k)
472	}
473	github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations)
474	mapStringForAnnotations := "map[string]string{"
475	for _, k := range keysForAnnotations {
476		mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k])
477	}
478	mapStringForAnnotations += "}"
479	s := strings.Join([]string{`&GetSecretRequest{`,
480		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
481		`Annotations:` + mapStringForAnnotations + `,`,
482		`}`,
483	}, "")
484	return s
485}
486func (this *GetSecretResponse) String() string {
487	if this == nil {
488		return "nil"
489	}
490	s := strings.Join([]string{`&GetSecretResponse{`,
491		`Data:` + fmt.Sprintf("%v", this.Data) + `,`,
492		`}`,
493	}, "")
494	return s
495}
496func valueToStringSecrets(v interface{}) string {
497	rv := reflect.ValueOf(v)
498	if rv.IsNil() {
499		return "nil"
500	}
501	pv := reflect.Indirect(rv).Interface()
502	return fmt.Sprintf("*%v", pv)
503}
504func (m *GetSecretRequest) Unmarshal(dAtA []byte) error {
505	l := len(dAtA)
506	iNdEx := 0
507	for iNdEx < l {
508		preIndex := iNdEx
509		var wire uint64
510		for shift := uint(0); ; shift += 7 {
511			if shift >= 64 {
512				return ErrIntOverflowSecrets
513			}
514			if iNdEx >= l {
515				return io.ErrUnexpectedEOF
516			}
517			b := dAtA[iNdEx]
518			iNdEx++
519			wire |= uint64(b&0x7F) << shift
520			if b < 0x80 {
521				break
522			}
523		}
524		fieldNum := int32(wire >> 3)
525		wireType := int(wire & 0x7)
526		if wireType == 4 {
527			return fmt.Errorf("proto: GetSecretRequest: wiretype end group for non-group")
528		}
529		if fieldNum <= 0 {
530			return fmt.Errorf("proto: GetSecretRequest: illegal tag %d (wire type %d)", fieldNum, wire)
531		}
532		switch fieldNum {
533		case 1:
534			if wireType != 2 {
535				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
536			}
537			var stringLen uint64
538			for shift := uint(0); ; shift += 7 {
539				if shift >= 64 {
540					return ErrIntOverflowSecrets
541				}
542				if iNdEx >= l {
543					return io.ErrUnexpectedEOF
544				}
545				b := dAtA[iNdEx]
546				iNdEx++
547				stringLen |= uint64(b&0x7F) << shift
548				if b < 0x80 {
549					break
550				}
551			}
552			intStringLen := int(stringLen)
553			if intStringLen < 0 {
554				return ErrInvalidLengthSecrets
555			}
556			postIndex := iNdEx + intStringLen
557			if postIndex < 0 {
558				return ErrInvalidLengthSecrets
559			}
560			if postIndex > l {
561				return io.ErrUnexpectedEOF
562			}
563			m.ID = string(dAtA[iNdEx:postIndex])
564			iNdEx = postIndex
565		case 2:
566			if wireType != 2 {
567				return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
568			}
569			var msglen int
570			for shift := uint(0); ; shift += 7 {
571				if shift >= 64 {
572					return ErrIntOverflowSecrets
573				}
574				if iNdEx >= l {
575					return io.ErrUnexpectedEOF
576				}
577				b := dAtA[iNdEx]
578				iNdEx++
579				msglen |= int(b&0x7F) << shift
580				if b < 0x80 {
581					break
582				}
583			}
584			if msglen < 0 {
585				return ErrInvalidLengthSecrets
586			}
587			postIndex := iNdEx + msglen
588			if postIndex < 0 {
589				return ErrInvalidLengthSecrets
590			}
591			if postIndex > l {
592				return io.ErrUnexpectedEOF
593			}
594			if m.Annotations == nil {
595				m.Annotations = make(map[string]string)
596			}
597			var mapkey string
598			var mapvalue string
599			for iNdEx < postIndex {
600				entryPreIndex := iNdEx
601				var wire uint64
602				for shift := uint(0); ; shift += 7 {
603					if shift >= 64 {
604						return ErrIntOverflowSecrets
605					}
606					if iNdEx >= l {
607						return io.ErrUnexpectedEOF
608					}
609					b := dAtA[iNdEx]
610					iNdEx++
611					wire |= uint64(b&0x7F) << shift
612					if b < 0x80 {
613						break
614					}
615				}
616				fieldNum := int32(wire >> 3)
617				if fieldNum == 1 {
618					var stringLenmapkey uint64
619					for shift := uint(0); ; shift += 7 {
620						if shift >= 64 {
621							return ErrIntOverflowSecrets
622						}
623						if iNdEx >= l {
624							return io.ErrUnexpectedEOF
625						}
626						b := dAtA[iNdEx]
627						iNdEx++
628						stringLenmapkey |= uint64(b&0x7F) << shift
629						if b < 0x80 {
630							break
631						}
632					}
633					intStringLenmapkey := int(stringLenmapkey)
634					if intStringLenmapkey < 0 {
635						return ErrInvalidLengthSecrets
636					}
637					postStringIndexmapkey := iNdEx + intStringLenmapkey
638					if postStringIndexmapkey < 0 {
639						return ErrInvalidLengthSecrets
640					}
641					if postStringIndexmapkey > l {
642						return io.ErrUnexpectedEOF
643					}
644					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
645					iNdEx = postStringIndexmapkey
646				} else if fieldNum == 2 {
647					var stringLenmapvalue uint64
648					for shift := uint(0); ; shift += 7 {
649						if shift >= 64 {
650							return ErrIntOverflowSecrets
651						}
652						if iNdEx >= l {
653							return io.ErrUnexpectedEOF
654						}
655						b := dAtA[iNdEx]
656						iNdEx++
657						stringLenmapvalue |= uint64(b&0x7F) << shift
658						if b < 0x80 {
659							break
660						}
661					}
662					intStringLenmapvalue := int(stringLenmapvalue)
663					if intStringLenmapvalue < 0 {
664						return ErrInvalidLengthSecrets
665					}
666					postStringIndexmapvalue := iNdEx + intStringLenmapvalue
667					if postStringIndexmapvalue < 0 {
668						return ErrInvalidLengthSecrets
669					}
670					if postStringIndexmapvalue > l {
671						return io.ErrUnexpectedEOF
672					}
673					mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
674					iNdEx = postStringIndexmapvalue
675				} else {
676					iNdEx = entryPreIndex
677					skippy, err := skipSecrets(dAtA[iNdEx:])
678					if err != nil {
679						return err
680					}
681					if (skippy < 0) || (iNdEx+skippy) < 0 {
682						return ErrInvalidLengthSecrets
683					}
684					if (iNdEx + skippy) > postIndex {
685						return io.ErrUnexpectedEOF
686					}
687					iNdEx += skippy
688				}
689			}
690			m.Annotations[mapkey] = mapvalue
691			iNdEx = postIndex
692		default:
693			iNdEx = preIndex
694			skippy, err := skipSecrets(dAtA[iNdEx:])
695			if err != nil {
696				return err
697			}
698			if (skippy < 0) || (iNdEx+skippy) < 0 {
699				return ErrInvalidLengthSecrets
700			}
701			if (iNdEx + skippy) > l {
702				return io.ErrUnexpectedEOF
703			}
704			iNdEx += skippy
705		}
706	}
707
708	if iNdEx > l {
709		return io.ErrUnexpectedEOF
710	}
711	return nil
712}
713func (m *GetSecretResponse) Unmarshal(dAtA []byte) error {
714	l := len(dAtA)
715	iNdEx := 0
716	for iNdEx < l {
717		preIndex := iNdEx
718		var wire uint64
719		for shift := uint(0); ; shift += 7 {
720			if shift >= 64 {
721				return ErrIntOverflowSecrets
722			}
723			if iNdEx >= l {
724				return io.ErrUnexpectedEOF
725			}
726			b := dAtA[iNdEx]
727			iNdEx++
728			wire |= uint64(b&0x7F) << shift
729			if b < 0x80 {
730				break
731			}
732		}
733		fieldNum := int32(wire >> 3)
734		wireType := int(wire & 0x7)
735		if wireType == 4 {
736			return fmt.Errorf("proto: GetSecretResponse: wiretype end group for non-group")
737		}
738		if fieldNum <= 0 {
739			return fmt.Errorf("proto: GetSecretResponse: illegal tag %d (wire type %d)", fieldNum, wire)
740		}
741		switch fieldNum {
742		case 1:
743			if wireType != 2 {
744				return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
745			}
746			var byteLen int
747			for shift := uint(0); ; shift += 7 {
748				if shift >= 64 {
749					return ErrIntOverflowSecrets
750				}
751				if iNdEx >= l {
752					return io.ErrUnexpectedEOF
753				}
754				b := dAtA[iNdEx]
755				iNdEx++
756				byteLen |= int(b&0x7F) << shift
757				if b < 0x80 {
758					break
759				}
760			}
761			if byteLen < 0 {
762				return ErrInvalidLengthSecrets
763			}
764			postIndex := iNdEx + byteLen
765			if postIndex < 0 {
766				return ErrInvalidLengthSecrets
767			}
768			if postIndex > l {
769				return io.ErrUnexpectedEOF
770			}
771			m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
772			if m.Data == nil {
773				m.Data = []byte{}
774			}
775			iNdEx = postIndex
776		default:
777			iNdEx = preIndex
778			skippy, err := skipSecrets(dAtA[iNdEx:])
779			if err != nil {
780				return err
781			}
782			if (skippy < 0) || (iNdEx+skippy) < 0 {
783				return ErrInvalidLengthSecrets
784			}
785			if (iNdEx + skippy) > l {
786				return io.ErrUnexpectedEOF
787			}
788			iNdEx += skippy
789		}
790	}
791
792	if iNdEx > l {
793		return io.ErrUnexpectedEOF
794	}
795	return nil
796}
797func skipSecrets(dAtA []byte) (n int, err error) {
798	l := len(dAtA)
799	iNdEx := 0
800	depth := 0
801	for iNdEx < l {
802		var wire uint64
803		for shift := uint(0); ; shift += 7 {
804			if shift >= 64 {
805				return 0, ErrIntOverflowSecrets
806			}
807			if iNdEx >= l {
808				return 0, io.ErrUnexpectedEOF
809			}
810			b := dAtA[iNdEx]
811			iNdEx++
812			wire |= (uint64(b) & 0x7F) << shift
813			if b < 0x80 {
814				break
815			}
816		}
817		wireType := int(wire & 0x7)
818		switch wireType {
819		case 0:
820			for shift := uint(0); ; shift += 7 {
821				if shift >= 64 {
822					return 0, ErrIntOverflowSecrets
823				}
824				if iNdEx >= l {
825					return 0, io.ErrUnexpectedEOF
826				}
827				iNdEx++
828				if dAtA[iNdEx-1] < 0x80 {
829					break
830				}
831			}
832		case 1:
833			iNdEx += 8
834		case 2:
835			var length int
836			for shift := uint(0); ; shift += 7 {
837				if shift >= 64 {
838					return 0, ErrIntOverflowSecrets
839				}
840				if iNdEx >= l {
841					return 0, io.ErrUnexpectedEOF
842				}
843				b := dAtA[iNdEx]
844				iNdEx++
845				length |= (int(b) & 0x7F) << shift
846				if b < 0x80 {
847					break
848				}
849			}
850			if length < 0 {
851				return 0, ErrInvalidLengthSecrets
852			}
853			iNdEx += length
854		case 3:
855			depth++
856		case 4:
857			if depth == 0 {
858				return 0, ErrUnexpectedEndOfGroupSecrets
859			}
860			depth--
861		case 5:
862			iNdEx += 4
863		default:
864			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
865		}
866		if iNdEx < 0 {
867			return 0, ErrInvalidLengthSecrets
868		}
869		if depth == 0 {
870			return iNdEx, nil
871		}
872	}
873	return 0, io.ErrUnexpectedEOF
874}
875
876var (
877	ErrInvalidLengthSecrets        = fmt.Errorf("proto: negative length found during unmarshaling")
878	ErrIntOverflowSecrets          = fmt.Errorf("proto: integer overflow")
879	ErrUnexpectedEndOfGroupSecrets = fmt.Errorf("proto: unexpected end of group")
880)
881