1// Code generated by protoc-gen-gogo. DO NOT EDIT.
2// source: proto/pbservice/healthcheck.proto
3
4package pbservice
5
6import (
7	fmt "fmt"
8	_ "github.com/gogo/protobuf/gogoproto"
9	_ "github.com/gogo/protobuf/types"
10	github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
11	proto "github.com/golang/protobuf/proto"
12	pbcommon "github.com/hashicorp/consul/proto/pbcommon"
13	github_com_hashicorp_consul_types "github.com/hashicorp/consul/types"
14	io "io"
15	math "math"
16	math_bits "math/bits"
17	time "time"
18)
19
20// Reference imports to suppress errors if they are not otherwise used.
21var _ = proto.Marshal
22var _ = fmt.Errorf
23var _ = math.Inf
24var _ = time.Kitchen
25
26// This is a compile-time assertion to ensure that this generated file
27// is compatible with the proto package it is being compiled against.
28// A compilation error at this line likely means your copy of the
29// proto package needs to be updated.
30const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
31
32// HealthCheck represents a single check on a given node
33//
34// mog annotation:
35//
36// target=github.com/hashicorp/consul/agent/structs.HealthCheck
37// output=healthcheck.gen.go
38// name=Structs
39type HealthCheck struct {
40	Node        string                                    `protobuf:"bytes,1,opt,name=Node,proto3" json:"Node,omitempty"`
41	CheckID     github_com_hashicorp_consul_types.CheckID `protobuf:"bytes,2,opt,name=CheckID,proto3,casttype=github.com/hashicorp/consul/types.CheckID" json:"CheckID,omitempty"`
42	Name        string                                    `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"`
43	Status      string                                    `protobuf:"bytes,4,opt,name=Status,proto3" json:"Status,omitempty"`
44	Notes       string                                    `protobuf:"bytes,5,opt,name=Notes,proto3" json:"Notes,omitempty"`
45	Output      string                                    `protobuf:"bytes,6,opt,name=Output,proto3" json:"Output,omitempty"`
46	ServiceID   string                                    `protobuf:"bytes,7,opt,name=ServiceID,proto3" json:"ServiceID,omitempty"`
47	ServiceName string                                    `protobuf:"bytes,8,opt,name=ServiceName,proto3" json:"ServiceName,omitempty"`
48	ServiceTags []string                                  `protobuf:"bytes,9,rep,name=ServiceTags,proto3" json:"ServiceTags,omitempty"`
49	Type        string                                    `protobuf:"bytes,12,opt,name=Type,proto3" json:"Type,omitempty"`
50	Definition  HealthCheckDefinition                     `protobuf:"bytes,10,opt,name=Definition,proto3" json:"Definition"`
51	// mog: func-to=RaftIndexToStructs func-from=NewRaftIndexFromStructs
52	pbcommon.RaftIndex `protobuf:"bytes,11,opt,name=RaftIndex,proto3,embedded=RaftIndex" json:"RaftIndex"`
53	// mog: func-to=EnterpriseMetaToStructs func-from=NewEnterpriseMetaFromStructs
54	EnterpriseMeta pbcommon.EnterpriseMeta `protobuf:"bytes,13,opt,name=EnterpriseMeta,proto3" json:"EnterpriseMeta"`
55	// mog: func-to=int func-from=int32
56	ExposedPort int32 `protobuf:"varint,14,opt,name=ExposedPort,proto3" json:"ExposedPort,omitempty"`
57}
58
59func (m *HealthCheck) Reset()         { *m = HealthCheck{} }
60func (m *HealthCheck) String() string { return proto.CompactTextString(m) }
61func (*HealthCheck) ProtoMessage()    {}
62func (*HealthCheck) Descriptor() ([]byte, []int) {
63	return fileDescriptor_8a6f7448747c9fbe, []int{0}
64}
65func (m *HealthCheck) XXX_Unmarshal(b []byte) error {
66	return m.Unmarshal(b)
67}
68func (m *HealthCheck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
69	if deterministic {
70		return xxx_messageInfo_HealthCheck.Marshal(b, m, deterministic)
71	} else {
72		b = b[:cap(b)]
73		n, err := m.MarshalToSizedBuffer(b)
74		if err != nil {
75			return nil, err
76		}
77		return b[:n], nil
78	}
79}
80func (m *HealthCheck) XXX_Merge(src proto.Message) {
81	xxx_messageInfo_HealthCheck.Merge(m, src)
82}
83func (m *HealthCheck) XXX_Size() int {
84	return m.Size()
85}
86func (m *HealthCheck) XXX_DiscardUnknown() {
87	xxx_messageInfo_HealthCheck.DiscardUnknown(m)
88}
89
90var xxx_messageInfo_HealthCheck proto.InternalMessageInfo
91
92type HeaderValue struct {
93	Value []string `protobuf:"bytes,1,rep,name=Value,proto3" json:"Value,omitempty"`
94}
95
96func (m *HeaderValue) Reset()         { *m = HeaderValue{} }
97func (m *HeaderValue) String() string { return proto.CompactTextString(m) }
98func (*HeaderValue) ProtoMessage()    {}
99func (*HeaderValue) Descriptor() ([]byte, []int) {
100	return fileDescriptor_8a6f7448747c9fbe, []int{1}
101}
102func (m *HeaderValue) XXX_Unmarshal(b []byte) error {
103	return m.Unmarshal(b)
104}
105func (m *HeaderValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
106	if deterministic {
107		return xxx_messageInfo_HeaderValue.Marshal(b, m, deterministic)
108	} else {
109		b = b[:cap(b)]
110		n, err := m.MarshalToSizedBuffer(b)
111		if err != nil {
112			return nil, err
113		}
114		return b[:n], nil
115	}
116}
117func (m *HeaderValue) XXX_Merge(src proto.Message) {
118	xxx_messageInfo_HeaderValue.Merge(m, src)
119}
120func (m *HeaderValue) XXX_Size() int {
121	return m.Size()
122}
123func (m *HeaderValue) XXX_DiscardUnknown() {
124	xxx_messageInfo_HeaderValue.DiscardUnknown(m)
125}
126
127var xxx_messageInfo_HeaderValue proto.InternalMessageInfo
128
129// HealthCheckDefinition of a single HealthCheck.
130//
131// mog annotation:
132//
133// target=github.com/hashicorp/consul/agent/structs.HealthCheckDefinition
134// output=healthcheck.gen.go
135// name=Structs
136type HealthCheckDefinition struct {
137	HTTP          string `protobuf:"bytes,1,opt,name=HTTP,proto3" json:"HTTP,omitempty"`
138	TLSServerName string `protobuf:"bytes,19,opt,name=TLSServerName,proto3" json:"TLSServerName,omitempty"`
139	TLSSkipVerify bool   `protobuf:"varint,2,opt,name=TLSSkipVerify,proto3" json:"TLSSkipVerify,omitempty"`
140	// mog: func-to=MapHeadersToStructs func-from=NewMapHeadersFromStructs
141	Header   map[string]HeaderValue `protobuf:"bytes,3,rep,name=Header,proto3" json:"Header" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
142	Method   string                 `protobuf:"bytes,4,opt,name=Method,proto3" json:"Method,omitempty"`
143	Body     string                 `protobuf:"bytes,18,opt,name=Body,proto3" json:"Body,omitempty"`
144	TCP      string                 `protobuf:"bytes,5,opt,name=TCP,proto3" json:"TCP,omitempty"`
145	Interval time.Duration          `protobuf:"bytes,6,opt,name=Interval,proto3,stdduration" json:"Interval"`
146	// mog: func-to=uint func-from=uint32
147	OutputMaxSize                  uint32        `protobuf:"varint,9,opt,name=OutputMaxSize,proto3" json:"OutputMaxSize,omitempty"`
148	Timeout                        time.Duration `protobuf:"bytes,7,opt,name=Timeout,proto3,stdduration" json:"Timeout"`
149	DeregisterCriticalServiceAfter time.Duration `protobuf:"bytes,8,opt,name=DeregisterCriticalServiceAfter,proto3,stdduration" json:"DeregisterCriticalServiceAfter"`
150	ScriptArgs                     []string      `protobuf:"bytes,10,rep,name=ScriptArgs,proto3" json:"ScriptArgs,omitempty"`
151	DockerContainerID              string        `protobuf:"bytes,11,opt,name=DockerContainerID,proto3" json:"DockerContainerID,omitempty"`
152	Shell                          string        `protobuf:"bytes,12,opt,name=Shell,proto3" json:"Shell,omitempty"`
153	H2PING                         string        `protobuf:"bytes,20,opt,name=H2PING,proto3" json:"H2PING,omitempty"`
154	GRPC                           string        `protobuf:"bytes,13,opt,name=GRPC,proto3" json:"GRPC,omitempty"`
155	GRPCUseTLS                     bool          `protobuf:"varint,14,opt,name=GRPCUseTLS,proto3" json:"GRPCUseTLS,omitempty"`
156	AliasNode                      string        `protobuf:"bytes,15,opt,name=AliasNode,proto3" json:"AliasNode,omitempty"`
157	AliasService                   string        `protobuf:"bytes,16,opt,name=AliasService,proto3" json:"AliasService,omitempty"`
158	TTL                            time.Duration `protobuf:"bytes,17,opt,name=TTL,proto3,stdduration" json:"TTL"`
159}
160
161func (m *HealthCheckDefinition) Reset()         { *m = HealthCheckDefinition{} }
162func (m *HealthCheckDefinition) String() string { return proto.CompactTextString(m) }
163func (*HealthCheckDefinition) ProtoMessage()    {}
164func (*HealthCheckDefinition) Descriptor() ([]byte, []int) {
165	return fileDescriptor_8a6f7448747c9fbe, []int{2}
166}
167func (m *HealthCheckDefinition) XXX_Unmarshal(b []byte) error {
168	return m.Unmarshal(b)
169}
170func (m *HealthCheckDefinition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
171	if deterministic {
172		return xxx_messageInfo_HealthCheckDefinition.Marshal(b, m, deterministic)
173	} else {
174		b = b[:cap(b)]
175		n, err := m.MarshalToSizedBuffer(b)
176		if err != nil {
177			return nil, err
178		}
179		return b[:n], nil
180	}
181}
182func (m *HealthCheckDefinition) XXX_Merge(src proto.Message) {
183	xxx_messageInfo_HealthCheckDefinition.Merge(m, src)
184}
185func (m *HealthCheckDefinition) XXX_Size() int {
186	return m.Size()
187}
188func (m *HealthCheckDefinition) XXX_DiscardUnknown() {
189	xxx_messageInfo_HealthCheckDefinition.DiscardUnknown(m)
190}
191
192var xxx_messageInfo_HealthCheckDefinition proto.InternalMessageInfo
193
194// CheckType is used to create either the CheckMonitor or the CheckTTL.
195// The following types are supported: Script, HTTP, TCP, Docker, TTL, GRPC,
196// Alias. Script, H2PING,
197// HTTP, Docker, TCP, H2PING and GRPC all require Interval. Only one of the types may
198// to be provided: TTL or Script/Interval or HTTP/Interval or TCP/Interval or
199// Docker/Interval or GRPC/Interval or H2PING/Interval or AliasService.
200//
201// mog annotation:
202//
203// target=github.com/hashicorp/consul/agent/structs.CheckType
204// output=healthcheck.gen.go
205// name=Structs
206type CheckType struct {
207	CheckID    github_com_hashicorp_consul_types.CheckID `protobuf:"bytes,1,opt,name=CheckID,proto3,casttype=github.com/hashicorp/consul/types.CheckID" json:"CheckID,omitempty"`
208	Name       string                                    `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
209	Status     string                                    `protobuf:"bytes,3,opt,name=Status,proto3" json:"Status,omitempty"`
210	Notes      string                                    `protobuf:"bytes,4,opt,name=Notes,proto3" json:"Notes,omitempty"`
211	ScriptArgs []string                                  `protobuf:"bytes,5,rep,name=ScriptArgs,proto3" json:"ScriptArgs,omitempty"`
212	HTTP       string                                    `protobuf:"bytes,6,opt,name=HTTP,proto3" json:"HTTP,omitempty"`
213	// mog: func-to=MapHeadersToStructs func-from=NewMapHeadersFromStructs
214	Header            map[string]HeaderValue `protobuf:"bytes,20,rep,name=Header,proto3" json:"Header" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
215	Method            string                 `protobuf:"bytes,7,opt,name=Method,proto3" json:"Method,omitempty"`
216	Body              string                 `protobuf:"bytes,26,opt,name=Body,proto3" json:"Body,omitempty"`
217	TCP               string                 `protobuf:"bytes,8,opt,name=TCP,proto3" json:"TCP,omitempty"`
218	Interval          time.Duration          `protobuf:"bytes,9,opt,name=Interval,proto3,stdduration" json:"Interval"`
219	AliasNode         string                 `protobuf:"bytes,10,opt,name=AliasNode,proto3" json:"AliasNode,omitempty"`
220	AliasService      string                 `protobuf:"bytes,11,opt,name=AliasService,proto3" json:"AliasService,omitempty"`
221	DockerContainerID string                 `protobuf:"bytes,12,opt,name=DockerContainerID,proto3" json:"DockerContainerID,omitempty"`
222	Shell             string                 `protobuf:"bytes,13,opt,name=Shell,proto3" json:"Shell,omitempty"`
223	H2PING            string                 `protobuf:"bytes,28,opt,name=H2PING,proto3" json:"H2PING,omitempty"`
224	GRPC              string                 `protobuf:"bytes,14,opt,name=GRPC,proto3" json:"GRPC,omitempty"`
225	GRPCUseTLS        bool                   `protobuf:"varint,15,opt,name=GRPCUseTLS,proto3" json:"GRPCUseTLS,omitempty"`
226	TLSServerName     string                 `protobuf:"bytes,27,opt,name=TLSServerName,proto3" json:"TLSServerName,omitempty"`
227	TLSSkipVerify     bool                   `protobuf:"varint,16,opt,name=TLSSkipVerify,proto3" json:"TLSSkipVerify,omitempty"`
228	Timeout           time.Duration          `protobuf:"bytes,17,opt,name=Timeout,proto3,stdduration" json:"Timeout"`
229	TTL               time.Duration          `protobuf:"bytes,18,opt,name=TTL,proto3,stdduration" json:"TTL"`
230	// mog: func-to=int func-from=int32
231	SuccessBeforePassing int32 `protobuf:"varint,21,opt,name=SuccessBeforePassing,proto3" json:"SuccessBeforePassing,omitempty"`
232	// mog: func-to=int func-from=int32
233	FailuresBeforeCritical int32 `protobuf:"varint,22,opt,name=FailuresBeforeCritical,proto3" json:"FailuresBeforeCritical,omitempty"`
234	// Definition fields used when exposing checks through a proxy
235	ProxyHTTP string `protobuf:"bytes,23,opt,name=ProxyHTTP,proto3" json:"ProxyHTTP,omitempty"`
236	ProxyGRPC string `protobuf:"bytes,24,opt,name=ProxyGRPC,proto3" json:"ProxyGRPC,omitempty"`
237	// DeregisterCriticalServiceAfter, if >0, will cause the associated
238	// service, if any, to be deregistered if this check is critical for
239	// longer than this duration.
240	DeregisterCriticalServiceAfter time.Duration `protobuf:"bytes,19,opt,name=DeregisterCriticalServiceAfter,proto3,stdduration" json:"DeregisterCriticalServiceAfter"`
241	// mog: func-to=int func-from=int32
242	OutputMaxSize int32 `protobuf:"varint,25,opt,name=OutputMaxSize,proto3" json:"OutputMaxSize,omitempty"`
243}
244
245func (m *CheckType) Reset()         { *m = CheckType{} }
246func (m *CheckType) String() string { return proto.CompactTextString(m) }
247func (*CheckType) ProtoMessage()    {}
248func (*CheckType) Descriptor() ([]byte, []int) {
249	return fileDescriptor_8a6f7448747c9fbe, []int{3}
250}
251func (m *CheckType) XXX_Unmarshal(b []byte) error {
252	return m.Unmarshal(b)
253}
254func (m *CheckType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
255	if deterministic {
256		return xxx_messageInfo_CheckType.Marshal(b, m, deterministic)
257	} else {
258		b = b[:cap(b)]
259		n, err := m.MarshalToSizedBuffer(b)
260		if err != nil {
261			return nil, err
262		}
263		return b[:n], nil
264	}
265}
266func (m *CheckType) XXX_Merge(src proto.Message) {
267	xxx_messageInfo_CheckType.Merge(m, src)
268}
269func (m *CheckType) XXX_Size() int {
270	return m.Size()
271}
272func (m *CheckType) XXX_DiscardUnknown() {
273	xxx_messageInfo_CheckType.DiscardUnknown(m)
274}
275
276var xxx_messageInfo_CheckType proto.InternalMessageInfo
277
278func init() {
279	proto.RegisterType((*HealthCheck)(nil), "pbservice.HealthCheck")
280	proto.RegisterType((*HeaderValue)(nil), "pbservice.HeaderValue")
281	proto.RegisterType((*HealthCheckDefinition)(nil), "pbservice.HealthCheckDefinition")
282	proto.RegisterMapType((map[string]HeaderValue)(nil), "pbservice.HealthCheckDefinition.HeaderEntry")
283	proto.RegisterType((*CheckType)(nil), "pbservice.CheckType")
284	proto.RegisterMapType((map[string]HeaderValue)(nil), "pbservice.CheckType.HeaderEntry")
285}
286
287func init() { proto.RegisterFile("proto/pbservice/healthcheck.proto", fileDescriptor_8a6f7448747c9fbe) }
288
289var fileDescriptor_8a6f7448747c9fbe = []byte{
290	// 1051 bytes of a gzipped FileDescriptorProto
291	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcd, 0x52, 0xe3, 0x46,
292	0x17, 0xb5, 0x30, 0x3f, 0x56, 0x1b, 0x18, 0xe8, 0x61, 0xf8, 0x7a, 0x98, 0x29, 0xe1, 0x8f, 0x64,
293	0x41, 0x2a, 0x44, 0xae, 0x22, 0x95, 0x54, 0x92, 0xaa, 0x24, 0x85, 0x31, 0x03, 0x4e, 0x01, 0x71,
294	0x64, 0x65, 0x16, 0xd9, 0x09, 0xb9, 0x6d, 0xab, 0x2c, 0xab, 0x55, 0xad, 0x16, 0x85, 0xf3, 0x14,
295	0xb3, 0x9c, 0x17, 0xc8, 0x2a, 0x2f, 0xc2, 0x92, 0x65, 0x56, 0x24, 0x81, 0xb7, 0xc8, 0x2a, 0xd5,
296	0xb7, 0x25, 0x23, 0x8f, 0x35, 0xb1, 0x33, 0x35, 0x59, 0xd1, 0xf7, 0xdc, 0x7b, 0xbb, 0xd5, 0x7d,
297	0xcf, 0x39, 0x06, 0xfd, 0x3f, 0xe4, 0x4c, 0xb0, 0x6a, 0x78, 0x11, 0x51, 0x7e, 0xe9, 0xb9, 0xb4,
298	0xda, 0xa3, 0x8e, 0x2f, 0x7a, 0x6e, 0x8f, 0xba, 0x7d, 0x13, 0x72, 0x58, 0x1f, 0x25, 0xb7, 0x8c,
299	0x2e, 0x63, 0x5d, 0x9f, 0x56, 0x21, 0x71, 0x11, 0x77, 0xaa, 0xed, 0x98, 0x3b, 0xc2, 0x63, 0x81,
300	0x2a, 0xdd, 0x7a, 0x96, 0xee, 0xe6, 0xb2, 0xc1, 0x80, 0x05, 0x55, 0xf5, 0x27, 0x49, 0x6e, 0x74,
301	0x59, 0x97, 0xa9, 0x02, 0xb9, 0x52, 0xe8, 0xce, 0x2f, 0xf3, 0xa8, 0x7c, 0x02, 0x67, 0x1e, 0xca,
302	0x33, 0x31, 0x46, 0xf3, 0xe7, 0xac, 0x4d, 0x89, 0x56, 0xd1, 0x76, 0x75, 0x0b, 0xd6, 0xf8, 0x18,
303	0x2d, 0x41, 0xb2, 0x51, 0x27, 0x73, 0x12, 0xae, 0x7d, 0xf2, 0xd7, 0xed, 0xf6, 0x47, 0x5d, 0x4f,
304	0xf4, 0xe2, 0x0b, 0xd3, 0x65, 0x83, 0x6a, 0xcf, 0x89, 0x7a, 0x9e, 0xcb, 0x78, 0x58, 0x75, 0x59,
305	0x10, 0xc5, 0x7e, 0x55, 0x0c, 0x43, 0x1a, 0x99, 0x49, 0x93, 0x95, 0x76, 0xc3, 0xe6, 0xce, 0x80,
306	0x92, 0x62, 0xb2, 0xb9, 0x33, 0xa0, 0x78, 0x13, 0x2d, 0xb6, 0x84, 0x23, 0xe2, 0x88, 0xcc, 0x03,
307	0x9a, 0x44, 0x78, 0x03, 0x2d, 0x9c, 0x33, 0x41, 0x23, 0xb2, 0x00, 0xb0, 0x0a, 0x64, 0xf5, 0xf7,
308	0xb1, 0x08, 0x63, 0x41, 0x16, 0x55, 0xb5, 0x8a, 0xf0, 0x73, 0xa4, 0xb7, 0xd4, 0x23, 0x35, 0xea,
309	0x64, 0x09, 0x52, 0x0f, 0x00, 0xae, 0xa0, 0x72, 0x12, 0xc0, 0xf1, 0x25, 0xc8, 0x67, 0xa1, 0x4c,
310	0x85, 0xed, 0x74, 0x23, 0xa2, 0x57, 0x8a, 0x99, 0x0a, 0x09, 0xc9, 0x6f, 0xb7, 0x87, 0x21, 0x25,
311	0xcb, 0xea, 0xdb, 0xe5, 0x1a, 0xbf, 0x40, 0xa8, 0x4e, 0x3b, 0x5e, 0xe0, 0xc9, 0x19, 0x10, 0x54,
312	0xd1, 0x76, 0xcb, 0xfb, 0x15, 0x73, 0x34, 0x2f, 0x33, 0xf3, 0xb0, 0x0f, 0x75, 0xb5, 0xf9, 0xeb,
313	0xdb, 0xed, 0x82, 0x95, 0xe9, 0xc4, 0x5f, 0x22, 0xdd, 0x72, 0x3a, 0xa2, 0x11, 0xb4, 0xe9, 0x15,
314	0x29, 0xc3, 0x36, 0xeb, 0x66, 0x32, 0xbc, 0x51, 0xa2, 0x56, 0x92, 0x7d, 0x37, 0xb7, 0xdb, 0x9a,
315	0xf5, 0x50, 0x8d, 0xeb, 0x68, 0xf5, 0x28, 0x10, 0x94, 0x87, 0xdc, 0x8b, 0xe8, 0x19, 0x15, 0x0e,
316	0x59, 0x81, 0xfe, 0xcd, 0xb4, 0x7f, 0x3c, 0x9b, 0x1c, 0xfe, 0x46, 0x8f, 0xbc, 0xfe, 0xd1, 0x55,
317	0xc8, 0x22, 0xda, 0x6e, 0x32, 0x2e, 0xc8, 0x6a, 0x45, 0xdb, 0x5d, 0xb0, 0xb2, 0xd0, 0xce, 0x07,
318	0x40, 0x93, 0x36, 0xe5, 0x2f, 0x1d, 0x3f, 0xa6, 0x72, 0x3a, 0xb0, 0x20, 0x1a, 0xbc, 0x94, 0x0a,
319	0x76, 0x5e, 0x2d, 0xa1, 0x27, 0xb9, 0x77, 0x96, 0xaf, 0x77, 0x62, 0xdb, 0xcd, 0x94, 0x56, 0x72,
320	0x8d, 0x3f, 0x44, 0x2b, 0xf6, 0x69, 0x4b, 0xbe, 0x31, 0xe5, 0x30, 0x97, 0xc7, 0x90, 0x1c, 0x07,
321	0xd3, 0xaa, 0xbe, 0x17, 0xbe, 0xa4, 0xdc, 0xeb, 0x0c, 0x81, 0x82, 0x25, 0x6b, 0x1c, 0xc4, 0xdf,
322	0xa1, 0x45, 0xf5, 0x79, 0xa4, 0x58, 0x29, 0xee, 0x96, 0xf7, 0xf7, 0xa6, 0x4d, 0xc1, 0x54, 0xe5,
323	0x47, 0x81, 0xe0, 0xc3, 0xe4, 0x51, 0x92, 0x1d, 0x24, 0xc7, 0xce, 0xa8, 0xe8, 0xb1, 0x76, 0xca,
324	0x48, 0x15, 0xc9, 0x3b, 0xd4, 0x58, 0x7b, 0x48, 0xb0, 0xba, 0x83, 0x5c, 0xe3, 0x35, 0x54, 0xb4,
325	0x0f, 0x9b, 0x09, 0x47, 0xe5, 0x12, 0x7f, 0x8b, 0x4a, 0x0d, 0xf9, 0xb8, 0x97, 0x8e, 0x0f, 0x1c,
326	0x2d, 0xef, 0x3f, 0x35, 0x95, 0x6c, 0xcd, 0x54, 0xb6, 0x66, 0x3d, 0x91, 0xad, 0x1a, 0xe9, 0xeb,
327	0xdf, 0xb7, 0x35, 0x6b, 0xd4, 0x24, 0x2f, 0xac, 0x48, 0x7d, 0xe6, 0x5c, 0xb5, 0xbc, 0x9f, 0x29,
328	0xd1, 0x2b, 0xda, 0xee, 0x8a, 0x35, 0x0e, 0xe2, 0xaf, 0xd1, 0x92, 0xed, 0x0d, 0x28, 0x8b, 0x05,
329	0xd0, 0x7d, 0xc6, 0x53, 0xd2, 0x1e, 0xdc, 0x47, 0x46, 0x9d, 0x72, 0xda, 0xf5, 0x22, 0x41, 0xf9,
330	0x21, 0xf7, 0x84, 0xe7, 0x3a, 0x7e, 0x42, 0xf7, 0x83, 0x8e, 0xa0, 0x1c, 0x44, 0x32, 0xe3, 0xae,
331	0x53, 0xb6, 0xc2, 0x06, 0x42, 0x2d, 0x97, 0x7b, 0xa1, 0x38, 0xe0, 0xdd, 0x88, 0x20, 0x60, 0x4c,
332	0x06, 0xc1, 0x7b, 0x68, 0xbd, 0xce, 0xdc, 0x3e, 0xe5, 0x87, 0x2c, 0x10, 0x8e, 0x17, 0x50, 0xde,
333	0xa8, 0x83, 0x0c, 0x74, 0x6b, 0x32, 0x21, 0xa9, 0xd7, 0xea, 0x51, 0xdf, 0x4f, 0x94, 0xa8, 0x02,
334	0x39, 0xb4, 0x93, 0xfd, 0x66, 0xe3, 0xfc, 0x98, 0x6c, 0xa8, 0xa1, 0xa9, 0x48, 0x0e, 0xed, 0xd8,
335	0x6a, 0x1e, 0x82, 0x2a, 0x74, 0x0b, 0xd6, 0xf2, 0x7b, 0xe4, 0xdf, 0x1f, 0x23, 0x6a, 0x9f, 0xb6,
336	0x80, 0xec, 0x25, 0x2b, 0x83, 0x48, 0x33, 0x39, 0xf0, 0x3d, 0x27, 0x02, 0x23, 0x7c, 0xa4, 0xcc,
337	0x64, 0x04, 0xe0, 0x1d, 0xb4, 0x0c, 0x41, 0x72, 0x45, 0xb2, 0x06, 0x05, 0x63, 0x18, 0xfe, 0x0c,
338	0x15, 0x6d, 0xfb, 0x94, 0xac, 0xcf, 0xfe, 0x86, 0xb2, 0x7e, 0xeb, 0x87, 0x54, 0x64, 0x40, 0x4b,
339	0x49, 0xae, 0x3e, 0x1d, 0x26, 0x9a, 0x91, 0x4b, 0xbc, 0x87, 0x16, 0x2e, 0x41, 0x76, 0x73, 0x89,
340	0xc8, 0xc7, 0x58, 0x9e, 0xaa, 0xd3, 0x52, 0x45, 0x5f, 0xcd, 0x7d, 0xa1, 0xed, 0xfc, 0xaa, 0x23,
341	0x1d, 0xa8, 0x0f, 0x86, 0x95, 0x71, 0x72, 0xed, 0xbd, 0x38, 0xf9, 0x5c, 0xae, 0x93, 0x17, 0xf3,
342	0x9d, 0x7c, 0x3e, 0xeb, 0xe4, 0xe3, 0xa4, 0x58, 0x98, 0x20, 0x45, 0xea, 0x18, 0x8b, 0x19, 0xc7,
343	0xf8, 0x66, 0xa4, 0xf2, 0x0d, 0x50, 0x79, 0xd6, 0x6b, 0x47, 0x97, 0x9c, 0x49, 0xd9, 0x4b, 0xb9,
344	0xca, 0xde, 0x9a, 0x54, 0x76, 0x29, 0x5f, 0xd9, 0xfa, 0xbb, 0x28, 0x7b, 0x8c, 0x57, 0x68, 0x1a,
345	0xaf, 0xca, 0x39, 0xbc, 0xca, 0x55, 0xca, 0xf2, 0x54, 0xa5, 0xac, 0xe4, 0x2b, 0xe5, 0x79, 0xae,
346	0x52, 0x56, 0xdf, 0xaa, 0x94, 0x47, 0x13, 0x4a, 0x99, 0xb0, 0xf0, 0x67, 0x33, 0x59, 0xf8, 0x5a,
347	0x9e, 0x85, 0x67, 0x1c, 0x6d, 0xfd, 0x1d, 0x1c, 0x2d, 0x91, 0x1c, 0xfe, 0x77, 0x92, 0xc3, 0xfb,
348	0x68, 0xa3, 0x15, 0xbb, 0x2e, 0x8d, 0xa2, 0x1a, 0xed, 0x30, 0x4e, 0x9b, 0x4e, 0x14, 0x79, 0x41,
349	0x97, 0x3c, 0x81, 0x9f, 0xc0, 0xdc, 0x1c, 0xfe, 0x1c, 0x6d, 0xbe, 0x70, 0x3c, 0x3f, 0xe6, 0x34,
350	0x49, 0xa4, 0xae, 0x47, 0x36, 0xa1, 0xeb, 0x2d, 0x59, 0x39, 0xff, 0x26, 0x67, 0x57, 0x43, 0xe0,
351	0xf5, 0xff, 0xd4, 0xfc, 0x47, 0xc0, 0x28, 0x0b, 0x43, 0x20, 0x99, 0x2c, 0x4c, 0x62, 0xba, 0x61,
352	0x3f, 0x7e, 0x7f, 0x86, 0x3d, 0xf1, 0x13, 0xf4, 0x14, 0xee, 0x35, 0x0e, 0xfe, 0x07, 0x6e, 0x55,
353	0x3b, 0xbb, 0xfe, 0xd3, 0x28, 0x5c, 0xdf, 0x19, 0xda, 0xcd, 0x9d, 0xa1, 0xfd, 0x71, 0x67, 0x68,
354	0xaf, 0xee, 0x8d, 0xc2, 0xeb, 0x7b, 0xa3, 0x70, 0x73, 0x6f, 0x14, 0x7e, 0xbb, 0x37, 0x0a, 0x3f,
355	0x7d, 0xfc, 0x4f, 0x66, 0xf5, 0xc6, 0x3f, 0xd3, 0x17, 0x8b, 0x00, 0x7c, 0xfa, 0x77, 0x00, 0x00,
356	0x00, 0xff, 0xff, 0x9d, 0xa1, 0x76, 0xfc, 0x66, 0x0b, 0x00, 0x00,
357}
358
359func (m *HealthCheck) Marshal() (dAtA []byte, err error) {
360	size := m.Size()
361	dAtA = make([]byte, size)
362	n, err := m.MarshalToSizedBuffer(dAtA[:size])
363	if err != nil {
364		return nil, err
365	}
366	return dAtA[:n], nil
367}
368
369func (m *HealthCheck) MarshalTo(dAtA []byte) (int, error) {
370	size := m.Size()
371	return m.MarshalToSizedBuffer(dAtA[:size])
372}
373
374func (m *HealthCheck) MarshalToSizedBuffer(dAtA []byte) (int, error) {
375	i := len(dAtA)
376	_ = i
377	var l int
378	_ = l
379	if m.ExposedPort != 0 {
380		i = encodeVarintHealthcheck(dAtA, i, uint64(m.ExposedPort))
381		i--
382		dAtA[i] = 0x70
383	}
384	{
385		size, err := m.EnterpriseMeta.MarshalToSizedBuffer(dAtA[:i])
386		if err != nil {
387			return 0, err
388		}
389		i -= size
390		i = encodeVarintHealthcheck(dAtA, i, uint64(size))
391	}
392	i--
393	dAtA[i] = 0x6a
394	if len(m.Type) > 0 {
395		i -= len(m.Type)
396		copy(dAtA[i:], m.Type)
397		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.Type)))
398		i--
399		dAtA[i] = 0x62
400	}
401	{
402		size, err := m.RaftIndex.MarshalToSizedBuffer(dAtA[:i])
403		if err != nil {
404			return 0, err
405		}
406		i -= size
407		i = encodeVarintHealthcheck(dAtA, i, uint64(size))
408	}
409	i--
410	dAtA[i] = 0x5a
411	{
412		size, err := m.Definition.MarshalToSizedBuffer(dAtA[:i])
413		if err != nil {
414			return 0, err
415		}
416		i -= size
417		i = encodeVarintHealthcheck(dAtA, i, uint64(size))
418	}
419	i--
420	dAtA[i] = 0x52
421	if len(m.ServiceTags) > 0 {
422		for iNdEx := len(m.ServiceTags) - 1; iNdEx >= 0; iNdEx-- {
423			i -= len(m.ServiceTags[iNdEx])
424			copy(dAtA[i:], m.ServiceTags[iNdEx])
425			i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.ServiceTags[iNdEx])))
426			i--
427			dAtA[i] = 0x4a
428		}
429	}
430	if len(m.ServiceName) > 0 {
431		i -= len(m.ServiceName)
432		copy(dAtA[i:], m.ServiceName)
433		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.ServiceName)))
434		i--
435		dAtA[i] = 0x42
436	}
437	if len(m.ServiceID) > 0 {
438		i -= len(m.ServiceID)
439		copy(dAtA[i:], m.ServiceID)
440		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.ServiceID)))
441		i--
442		dAtA[i] = 0x3a
443	}
444	if len(m.Output) > 0 {
445		i -= len(m.Output)
446		copy(dAtA[i:], m.Output)
447		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.Output)))
448		i--
449		dAtA[i] = 0x32
450	}
451	if len(m.Notes) > 0 {
452		i -= len(m.Notes)
453		copy(dAtA[i:], m.Notes)
454		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.Notes)))
455		i--
456		dAtA[i] = 0x2a
457	}
458	if len(m.Status) > 0 {
459		i -= len(m.Status)
460		copy(dAtA[i:], m.Status)
461		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.Status)))
462		i--
463		dAtA[i] = 0x22
464	}
465	if len(m.Name) > 0 {
466		i -= len(m.Name)
467		copy(dAtA[i:], m.Name)
468		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.Name)))
469		i--
470		dAtA[i] = 0x1a
471	}
472	if len(m.CheckID) > 0 {
473		i -= len(m.CheckID)
474		copy(dAtA[i:], m.CheckID)
475		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.CheckID)))
476		i--
477		dAtA[i] = 0x12
478	}
479	if len(m.Node) > 0 {
480		i -= len(m.Node)
481		copy(dAtA[i:], m.Node)
482		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.Node)))
483		i--
484		dAtA[i] = 0xa
485	}
486	return len(dAtA) - i, nil
487}
488
489func (m *HeaderValue) Marshal() (dAtA []byte, err error) {
490	size := m.Size()
491	dAtA = make([]byte, size)
492	n, err := m.MarshalToSizedBuffer(dAtA[:size])
493	if err != nil {
494		return nil, err
495	}
496	return dAtA[:n], nil
497}
498
499func (m *HeaderValue) MarshalTo(dAtA []byte) (int, error) {
500	size := m.Size()
501	return m.MarshalToSizedBuffer(dAtA[:size])
502}
503
504func (m *HeaderValue) MarshalToSizedBuffer(dAtA []byte) (int, error) {
505	i := len(dAtA)
506	_ = i
507	var l int
508	_ = l
509	if len(m.Value) > 0 {
510		for iNdEx := len(m.Value) - 1; iNdEx >= 0; iNdEx-- {
511			i -= len(m.Value[iNdEx])
512			copy(dAtA[i:], m.Value[iNdEx])
513			i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.Value[iNdEx])))
514			i--
515			dAtA[i] = 0xa
516		}
517	}
518	return len(dAtA) - i, nil
519}
520
521func (m *HealthCheckDefinition) Marshal() (dAtA []byte, err error) {
522	size := m.Size()
523	dAtA = make([]byte, size)
524	n, err := m.MarshalToSizedBuffer(dAtA[:size])
525	if err != nil {
526		return nil, err
527	}
528	return dAtA[:n], nil
529}
530
531func (m *HealthCheckDefinition) MarshalTo(dAtA []byte) (int, error) {
532	size := m.Size()
533	return m.MarshalToSizedBuffer(dAtA[:size])
534}
535
536func (m *HealthCheckDefinition) MarshalToSizedBuffer(dAtA []byte) (int, error) {
537	i := len(dAtA)
538	_ = i
539	var l int
540	_ = l
541	if len(m.H2PING) > 0 {
542		i -= len(m.H2PING)
543		copy(dAtA[i:], m.H2PING)
544		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.H2PING)))
545		i--
546		dAtA[i] = 0x1
547		i--
548		dAtA[i] = 0xa2
549	}
550	if len(m.TLSServerName) > 0 {
551		i -= len(m.TLSServerName)
552		copy(dAtA[i:], m.TLSServerName)
553		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.TLSServerName)))
554		i--
555		dAtA[i] = 0x1
556		i--
557		dAtA[i] = 0x9a
558	}
559	if len(m.Body) > 0 {
560		i -= len(m.Body)
561		copy(dAtA[i:], m.Body)
562		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.Body)))
563		i--
564		dAtA[i] = 0x1
565		i--
566		dAtA[i] = 0x92
567	}
568	n4, err4 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.TTL, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.TTL):])
569	if err4 != nil {
570		return 0, err4
571	}
572	i -= n4
573	i = encodeVarintHealthcheck(dAtA, i, uint64(n4))
574	i--
575	dAtA[i] = 0x1
576	i--
577	dAtA[i] = 0x8a
578	if len(m.AliasService) > 0 {
579		i -= len(m.AliasService)
580		copy(dAtA[i:], m.AliasService)
581		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.AliasService)))
582		i--
583		dAtA[i] = 0x1
584		i--
585		dAtA[i] = 0x82
586	}
587	if len(m.AliasNode) > 0 {
588		i -= len(m.AliasNode)
589		copy(dAtA[i:], m.AliasNode)
590		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.AliasNode)))
591		i--
592		dAtA[i] = 0x7a
593	}
594	if m.GRPCUseTLS {
595		i--
596		if m.GRPCUseTLS {
597			dAtA[i] = 1
598		} else {
599			dAtA[i] = 0
600		}
601		i--
602		dAtA[i] = 0x70
603	}
604	if len(m.GRPC) > 0 {
605		i -= len(m.GRPC)
606		copy(dAtA[i:], m.GRPC)
607		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.GRPC)))
608		i--
609		dAtA[i] = 0x6a
610	}
611	if len(m.Shell) > 0 {
612		i -= len(m.Shell)
613		copy(dAtA[i:], m.Shell)
614		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.Shell)))
615		i--
616		dAtA[i] = 0x62
617	}
618	if len(m.DockerContainerID) > 0 {
619		i -= len(m.DockerContainerID)
620		copy(dAtA[i:], m.DockerContainerID)
621		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.DockerContainerID)))
622		i--
623		dAtA[i] = 0x5a
624	}
625	if len(m.ScriptArgs) > 0 {
626		for iNdEx := len(m.ScriptArgs) - 1; iNdEx >= 0; iNdEx-- {
627			i -= len(m.ScriptArgs[iNdEx])
628			copy(dAtA[i:], m.ScriptArgs[iNdEx])
629			i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.ScriptArgs[iNdEx])))
630			i--
631			dAtA[i] = 0x52
632		}
633	}
634	if m.OutputMaxSize != 0 {
635		i = encodeVarintHealthcheck(dAtA, i, uint64(m.OutputMaxSize))
636		i--
637		dAtA[i] = 0x48
638	}
639	n5, err5 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.DeregisterCriticalServiceAfter, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.DeregisterCriticalServiceAfter):])
640	if err5 != nil {
641		return 0, err5
642	}
643	i -= n5
644	i = encodeVarintHealthcheck(dAtA, i, uint64(n5))
645	i--
646	dAtA[i] = 0x42
647	n6, err6 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.Timeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.Timeout):])
648	if err6 != nil {
649		return 0, err6
650	}
651	i -= n6
652	i = encodeVarintHealthcheck(dAtA, i, uint64(n6))
653	i--
654	dAtA[i] = 0x3a
655	n7, err7 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.Interval, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.Interval):])
656	if err7 != nil {
657		return 0, err7
658	}
659	i -= n7
660	i = encodeVarintHealthcheck(dAtA, i, uint64(n7))
661	i--
662	dAtA[i] = 0x32
663	if len(m.TCP) > 0 {
664		i -= len(m.TCP)
665		copy(dAtA[i:], m.TCP)
666		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.TCP)))
667		i--
668		dAtA[i] = 0x2a
669	}
670	if len(m.Method) > 0 {
671		i -= len(m.Method)
672		copy(dAtA[i:], m.Method)
673		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.Method)))
674		i--
675		dAtA[i] = 0x22
676	}
677	if len(m.Header) > 0 {
678		for k := range m.Header {
679			v := m.Header[k]
680			baseI := i
681			{
682				size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
683				if err != nil {
684					return 0, err
685				}
686				i -= size
687				i = encodeVarintHealthcheck(dAtA, i, uint64(size))
688			}
689			i--
690			dAtA[i] = 0x12
691			i -= len(k)
692			copy(dAtA[i:], k)
693			i = encodeVarintHealthcheck(dAtA, i, uint64(len(k)))
694			i--
695			dAtA[i] = 0xa
696			i = encodeVarintHealthcheck(dAtA, i, uint64(baseI-i))
697			i--
698			dAtA[i] = 0x1a
699		}
700	}
701	if m.TLSSkipVerify {
702		i--
703		if m.TLSSkipVerify {
704			dAtA[i] = 1
705		} else {
706			dAtA[i] = 0
707		}
708		i--
709		dAtA[i] = 0x10
710	}
711	if len(m.HTTP) > 0 {
712		i -= len(m.HTTP)
713		copy(dAtA[i:], m.HTTP)
714		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.HTTP)))
715		i--
716		dAtA[i] = 0xa
717	}
718	return len(dAtA) - i, nil
719}
720
721func (m *CheckType) Marshal() (dAtA []byte, err error) {
722	size := m.Size()
723	dAtA = make([]byte, size)
724	n, err := m.MarshalToSizedBuffer(dAtA[:size])
725	if err != nil {
726		return nil, err
727	}
728	return dAtA[:n], nil
729}
730
731func (m *CheckType) MarshalTo(dAtA []byte) (int, error) {
732	size := m.Size()
733	return m.MarshalToSizedBuffer(dAtA[:size])
734}
735
736func (m *CheckType) MarshalToSizedBuffer(dAtA []byte) (int, error) {
737	i := len(dAtA)
738	_ = i
739	var l int
740	_ = l
741	if len(m.H2PING) > 0 {
742		i -= len(m.H2PING)
743		copy(dAtA[i:], m.H2PING)
744		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.H2PING)))
745		i--
746		dAtA[i] = 0x1
747		i--
748		dAtA[i] = 0xe2
749	}
750	if len(m.TLSServerName) > 0 {
751		i -= len(m.TLSServerName)
752		copy(dAtA[i:], m.TLSServerName)
753		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.TLSServerName)))
754		i--
755		dAtA[i] = 0x1
756		i--
757		dAtA[i] = 0xda
758	}
759	if len(m.Body) > 0 {
760		i -= len(m.Body)
761		copy(dAtA[i:], m.Body)
762		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.Body)))
763		i--
764		dAtA[i] = 0x1
765		i--
766		dAtA[i] = 0xd2
767	}
768	if m.OutputMaxSize != 0 {
769		i = encodeVarintHealthcheck(dAtA, i, uint64(m.OutputMaxSize))
770		i--
771		dAtA[i] = 0x1
772		i--
773		dAtA[i] = 0xc8
774	}
775	if len(m.ProxyGRPC) > 0 {
776		i -= len(m.ProxyGRPC)
777		copy(dAtA[i:], m.ProxyGRPC)
778		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.ProxyGRPC)))
779		i--
780		dAtA[i] = 0x1
781		i--
782		dAtA[i] = 0xc2
783	}
784	if len(m.ProxyHTTP) > 0 {
785		i -= len(m.ProxyHTTP)
786		copy(dAtA[i:], m.ProxyHTTP)
787		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.ProxyHTTP)))
788		i--
789		dAtA[i] = 0x1
790		i--
791		dAtA[i] = 0xba
792	}
793	if m.FailuresBeforeCritical != 0 {
794		i = encodeVarintHealthcheck(dAtA, i, uint64(m.FailuresBeforeCritical))
795		i--
796		dAtA[i] = 0x1
797		i--
798		dAtA[i] = 0xb0
799	}
800	if m.SuccessBeforePassing != 0 {
801		i = encodeVarintHealthcheck(dAtA, i, uint64(m.SuccessBeforePassing))
802		i--
803		dAtA[i] = 0x1
804		i--
805		dAtA[i] = 0xa8
806	}
807	if len(m.Header) > 0 {
808		for k := range m.Header {
809			v := m.Header[k]
810			baseI := i
811			{
812				size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
813				if err != nil {
814					return 0, err
815				}
816				i -= size
817				i = encodeVarintHealthcheck(dAtA, i, uint64(size))
818			}
819			i--
820			dAtA[i] = 0x12
821			i -= len(k)
822			copy(dAtA[i:], k)
823			i = encodeVarintHealthcheck(dAtA, i, uint64(len(k)))
824			i--
825			dAtA[i] = 0xa
826			i = encodeVarintHealthcheck(dAtA, i, uint64(baseI-i))
827			i--
828			dAtA[i] = 0x1
829			i--
830			dAtA[i] = 0xa2
831		}
832	}
833	n10, err10 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.DeregisterCriticalServiceAfter, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.DeregisterCriticalServiceAfter):])
834	if err10 != nil {
835		return 0, err10
836	}
837	i -= n10
838	i = encodeVarintHealthcheck(dAtA, i, uint64(n10))
839	i--
840	dAtA[i] = 0x1
841	i--
842	dAtA[i] = 0x9a
843	n11, err11 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.TTL, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.TTL):])
844	if err11 != nil {
845		return 0, err11
846	}
847	i -= n11
848	i = encodeVarintHealthcheck(dAtA, i, uint64(n11))
849	i--
850	dAtA[i] = 0x1
851	i--
852	dAtA[i] = 0x92
853	n12, err12 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.Timeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.Timeout):])
854	if err12 != nil {
855		return 0, err12
856	}
857	i -= n12
858	i = encodeVarintHealthcheck(dAtA, i, uint64(n12))
859	i--
860	dAtA[i] = 0x1
861	i--
862	dAtA[i] = 0x8a
863	if m.TLSSkipVerify {
864		i--
865		if m.TLSSkipVerify {
866			dAtA[i] = 1
867		} else {
868			dAtA[i] = 0
869		}
870		i--
871		dAtA[i] = 0x1
872		i--
873		dAtA[i] = 0x80
874	}
875	if m.GRPCUseTLS {
876		i--
877		if m.GRPCUseTLS {
878			dAtA[i] = 1
879		} else {
880			dAtA[i] = 0
881		}
882		i--
883		dAtA[i] = 0x78
884	}
885	if len(m.GRPC) > 0 {
886		i -= len(m.GRPC)
887		copy(dAtA[i:], m.GRPC)
888		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.GRPC)))
889		i--
890		dAtA[i] = 0x72
891	}
892	if len(m.Shell) > 0 {
893		i -= len(m.Shell)
894		copy(dAtA[i:], m.Shell)
895		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.Shell)))
896		i--
897		dAtA[i] = 0x6a
898	}
899	if len(m.DockerContainerID) > 0 {
900		i -= len(m.DockerContainerID)
901		copy(dAtA[i:], m.DockerContainerID)
902		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.DockerContainerID)))
903		i--
904		dAtA[i] = 0x62
905	}
906	if len(m.AliasService) > 0 {
907		i -= len(m.AliasService)
908		copy(dAtA[i:], m.AliasService)
909		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.AliasService)))
910		i--
911		dAtA[i] = 0x5a
912	}
913	if len(m.AliasNode) > 0 {
914		i -= len(m.AliasNode)
915		copy(dAtA[i:], m.AliasNode)
916		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.AliasNode)))
917		i--
918		dAtA[i] = 0x52
919	}
920	n13, err13 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.Interval, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.Interval):])
921	if err13 != nil {
922		return 0, err13
923	}
924	i -= n13
925	i = encodeVarintHealthcheck(dAtA, i, uint64(n13))
926	i--
927	dAtA[i] = 0x4a
928	if len(m.TCP) > 0 {
929		i -= len(m.TCP)
930		copy(dAtA[i:], m.TCP)
931		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.TCP)))
932		i--
933		dAtA[i] = 0x42
934	}
935	if len(m.Method) > 0 {
936		i -= len(m.Method)
937		copy(dAtA[i:], m.Method)
938		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.Method)))
939		i--
940		dAtA[i] = 0x3a
941	}
942	if len(m.HTTP) > 0 {
943		i -= len(m.HTTP)
944		copy(dAtA[i:], m.HTTP)
945		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.HTTP)))
946		i--
947		dAtA[i] = 0x32
948	}
949	if len(m.ScriptArgs) > 0 {
950		for iNdEx := len(m.ScriptArgs) - 1; iNdEx >= 0; iNdEx-- {
951			i -= len(m.ScriptArgs[iNdEx])
952			copy(dAtA[i:], m.ScriptArgs[iNdEx])
953			i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.ScriptArgs[iNdEx])))
954			i--
955			dAtA[i] = 0x2a
956		}
957	}
958	if len(m.Notes) > 0 {
959		i -= len(m.Notes)
960		copy(dAtA[i:], m.Notes)
961		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.Notes)))
962		i--
963		dAtA[i] = 0x22
964	}
965	if len(m.Status) > 0 {
966		i -= len(m.Status)
967		copy(dAtA[i:], m.Status)
968		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.Status)))
969		i--
970		dAtA[i] = 0x1a
971	}
972	if len(m.Name) > 0 {
973		i -= len(m.Name)
974		copy(dAtA[i:], m.Name)
975		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.Name)))
976		i--
977		dAtA[i] = 0x12
978	}
979	if len(m.CheckID) > 0 {
980		i -= len(m.CheckID)
981		copy(dAtA[i:], m.CheckID)
982		i = encodeVarintHealthcheck(dAtA, i, uint64(len(m.CheckID)))
983		i--
984		dAtA[i] = 0xa
985	}
986	return len(dAtA) - i, nil
987}
988
989func encodeVarintHealthcheck(dAtA []byte, offset int, v uint64) int {
990	offset -= sovHealthcheck(v)
991	base := offset
992	for v >= 1<<7 {
993		dAtA[offset] = uint8(v&0x7f | 0x80)
994		v >>= 7
995		offset++
996	}
997	dAtA[offset] = uint8(v)
998	return base
999}
1000func (m *HealthCheck) Size() (n int) {
1001	if m == nil {
1002		return 0
1003	}
1004	var l int
1005	_ = l
1006	l = len(m.Node)
1007	if l > 0 {
1008		n += 1 + l + sovHealthcheck(uint64(l))
1009	}
1010	l = len(m.CheckID)
1011	if l > 0 {
1012		n += 1 + l + sovHealthcheck(uint64(l))
1013	}
1014	l = len(m.Name)
1015	if l > 0 {
1016		n += 1 + l + sovHealthcheck(uint64(l))
1017	}
1018	l = len(m.Status)
1019	if l > 0 {
1020		n += 1 + l + sovHealthcheck(uint64(l))
1021	}
1022	l = len(m.Notes)
1023	if l > 0 {
1024		n += 1 + l + sovHealthcheck(uint64(l))
1025	}
1026	l = len(m.Output)
1027	if l > 0 {
1028		n += 1 + l + sovHealthcheck(uint64(l))
1029	}
1030	l = len(m.ServiceID)
1031	if l > 0 {
1032		n += 1 + l + sovHealthcheck(uint64(l))
1033	}
1034	l = len(m.ServiceName)
1035	if l > 0 {
1036		n += 1 + l + sovHealthcheck(uint64(l))
1037	}
1038	if len(m.ServiceTags) > 0 {
1039		for _, s := range m.ServiceTags {
1040			l = len(s)
1041			n += 1 + l + sovHealthcheck(uint64(l))
1042		}
1043	}
1044	l = m.Definition.Size()
1045	n += 1 + l + sovHealthcheck(uint64(l))
1046	l = m.RaftIndex.Size()
1047	n += 1 + l + sovHealthcheck(uint64(l))
1048	l = len(m.Type)
1049	if l > 0 {
1050		n += 1 + l + sovHealthcheck(uint64(l))
1051	}
1052	l = m.EnterpriseMeta.Size()
1053	n += 1 + l + sovHealthcheck(uint64(l))
1054	if m.ExposedPort != 0 {
1055		n += 1 + sovHealthcheck(uint64(m.ExposedPort))
1056	}
1057	return n
1058}
1059
1060func (m *HeaderValue) Size() (n int) {
1061	if m == nil {
1062		return 0
1063	}
1064	var l int
1065	_ = l
1066	if len(m.Value) > 0 {
1067		for _, s := range m.Value {
1068			l = len(s)
1069			n += 1 + l + sovHealthcheck(uint64(l))
1070		}
1071	}
1072	return n
1073}
1074
1075func (m *HealthCheckDefinition) Size() (n int) {
1076	if m == nil {
1077		return 0
1078	}
1079	var l int
1080	_ = l
1081	l = len(m.HTTP)
1082	if l > 0 {
1083		n += 1 + l + sovHealthcheck(uint64(l))
1084	}
1085	if m.TLSSkipVerify {
1086		n += 2
1087	}
1088	if len(m.Header) > 0 {
1089		for k, v := range m.Header {
1090			_ = k
1091			_ = v
1092			l = v.Size()
1093			mapEntrySize := 1 + len(k) + sovHealthcheck(uint64(len(k))) + 1 + l + sovHealthcheck(uint64(l))
1094			n += mapEntrySize + 1 + sovHealthcheck(uint64(mapEntrySize))
1095		}
1096	}
1097	l = len(m.Method)
1098	if l > 0 {
1099		n += 1 + l + sovHealthcheck(uint64(l))
1100	}
1101	l = len(m.TCP)
1102	if l > 0 {
1103		n += 1 + l + sovHealthcheck(uint64(l))
1104	}
1105	l = github_com_gogo_protobuf_types.SizeOfStdDuration(m.Interval)
1106	n += 1 + l + sovHealthcheck(uint64(l))
1107	l = github_com_gogo_protobuf_types.SizeOfStdDuration(m.Timeout)
1108	n += 1 + l + sovHealthcheck(uint64(l))
1109	l = github_com_gogo_protobuf_types.SizeOfStdDuration(m.DeregisterCriticalServiceAfter)
1110	n += 1 + l + sovHealthcheck(uint64(l))
1111	if m.OutputMaxSize != 0 {
1112		n += 1 + sovHealthcheck(uint64(m.OutputMaxSize))
1113	}
1114	if len(m.ScriptArgs) > 0 {
1115		for _, s := range m.ScriptArgs {
1116			l = len(s)
1117			n += 1 + l + sovHealthcheck(uint64(l))
1118		}
1119	}
1120	l = len(m.DockerContainerID)
1121	if l > 0 {
1122		n += 1 + l + sovHealthcheck(uint64(l))
1123	}
1124	l = len(m.Shell)
1125	if l > 0 {
1126		n += 1 + l + sovHealthcheck(uint64(l))
1127	}
1128	l = len(m.GRPC)
1129	if l > 0 {
1130		n += 1 + l + sovHealthcheck(uint64(l))
1131	}
1132	if m.GRPCUseTLS {
1133		n += 2
1134	}
1135	l = len(m.AliasNode)
1136	if l > 0 {
1137		n += 1 + l + sovHealthcheck(uint64(l))
1138	}
1139	l = len(m.AliasService)
1140	if l > 0 {
1141		n += 2 + l + sovHealthcheck(uint64(l))
1142	}
1143	l = github_com_gogo_protobuf_types.SizeOfStdDuration(m.TTL)
1144	n += 2 + l + sovHealthcheck(uint64(l))
1145	l = len(m.Body)
1146	if l > 0 {
1147		n += 2 + l + sovHealthcheck(uint64(l))
1148	}
1149	l = len(m.TLSServerName)
1150	if l > 0 {
1151		n += 2 + l + sovHealthcheck(uint64(l))
1152	}
1153	l = len(m.H2PING)
1154	if l > 0 {
1155		n += 2 + l + sovHealthcheck(uint64(l))
1156	}
1157	return n
1158}
1159
1160func (m *CheckType) Size() (n int) {
1161	if m == nil {
1162		return 0
1163	}
1164	var l int
1165	_ = l
1166	l = len(m.CheckID)
1167	if l > 0 {
1168		n += 1 + l + sovHealthcheck(uint64(l))
1169	}
1170	l = len(m.Name)
1171	if l > 0 {
1172		n += 1 + l + sovHealthcheck(uint64(l))
1173	}
1174	l = len(m.Status)
1175	if l > 0 {
1176		n += 1 + l + sovHealthcheck(uint64(l))
1177	}
1178	l = len(m.Notes)
1179	if l > 0 {
1180		n += 1 + l + sovHealthcheck(uint64(l))
1181	}
1182	if len(m.ScriptArgs) > 0 {
1183		for _, s := range m.ScriptArgs {
1184			l = len(s)
1185			n += 1 + l + sovHealthcheck(uint64(l))
1186		}
1187	}
1188	l = len(m.HTTP)
1189	if l > 0 {
1190		n += 1 + l + sovHealthcheck(uint64(l))
1191	}
1192	l = len(m.Method)
1193	if l > 0 {
1194		n += 1 + l + sovHealthcheck(uint64(l))
1195	}
1196	l = len(m.TCP)
1197	if l > 0 {
1198		n += 1 + l + sovHealthcheck(uint64(l))
1199	}
1200	l = github_com_gogo_protobuf_types.SizeOfStdDuration(m.Interval)
1201	n += 1 + l + sovHealthcheck(uint64(l))
1202	l = len(m.AliasNode)
1203	if l > 0 {
1204		n += 1 + l + sovHealthcheck(uint64(l))
1205	}
1206	l = len(m.AliasService)
1207	if l > 0 {
1208		n += 1 + l + sovHealthcheck(uint64(l))
1209	}
1210	l = len(m.DockerContainerID)
1211	if l > 0 {
1212		n += 1 + l + sovHealthcheck(uint64(l))
1213	}
1214	l = len(m.Shell)
1215	if l > 0 {
1216		n += 1 + l + sovHealthcheck(uint64(l))
1217	}
1218	l = len(m.GRPC)
1219	if l > 0 {
1220		n += 1 + l + sovHealthcheck(uint64(l))
1221	}
1222	if m.GRPCUseTLS {
1223		n += 2
1224	}
1225	if m.TLSSkipVerify {
1226		n += 3
1227	}
1228	l = github_com_gogo_protobuf_types.SizeOfStdDuration(m.Timeout)
1229	n += 2 + l + sovHealthcheck(uint64(l))
1230	l = github_com_gogo_protobuf_types.SizeOfStdDuration(m.TTL)
1231	n += 2 + l + sovHealthcheck(uint64(l))
1232	l = github_com_gogo_protobuf_types.SizeOfStdDuration(m.DeregisterCriticalServiceAfter)
1233	n += 2 + l + sovHealthcheck(uint64(l))
1234	if len(m.Header) > 0 {
1235		for k, v := range m.Header {
1236			_ = k
1237			_ = v
1238			l = v.Size()
1239			mapEntrySize := 1 + len(k) + sovHealthcheck(uint64(len(k))) + 1 + l + sovHealthcheck(uint64(l))
1240			n += mapEntrySize + 2 + sovHealthcheck(uint64(mapEntrySize))
1241		}
1242	}
1243	if m.SuccessBeforePassing != 0 {
1244		n += 2 + sovHealthcheck(uint64(m.SuccessBeforePassing))
1245	}
1246	if m.FailuresBeforeCritical != 0 {
1247		n += 2 + sovHealthcheck(uint64(m.FailuresBeforeCritical))
1248	}
1249	l = len(m.ProxyHTTP)
1250	if l > 0 {
1251		n += 2 + l + sovHealthcheck(uint64(l))
1252	}
1253	l = len(m.ProxyGRPC)
1254	if l > 0 {
1255		n += 2 + l + sovHealthcheck(uint64(l))
1256	}
1257	if m.OutputMaxSize != 0 {
1258		n += 2 + sovHealthcheck(uint64(m.OutputMaxSize))
1259	}
1260	l = len(m.Body)
1261	if l > 0 {
1262		n += 2 + l + sovHealthcheck(uint64(l))
1263	}
1264	l = len(m.TLSServerName)
1265	if l > 0 {
1266		n += 2 + l + sovHealthcheck(uint64(l))
1267	}
1268	l = len(m.H2PING)
1269	if l > 0 {
1270		n += 2 + l + sovHealthcheck(uint64(l))
1271	}
1272	return n
1273}
1274
1275func sovHealthcheck(x uint64) (n int) {
1276	return (math_bits.Len64(x|1) + 6) / 7
1277}
1278func sozHealthcheck(x uint64) (n int) {
1279	return sovHealthcheck(uint64((x << 1) ^ uint64((int64(x) >> 63))))
1280}
1281func (m *HealthCheck) Unmarshal(dAtA []byte) error {
1282	l := len(dAtA)
1283	iNdEx := 0
1284	for iNdEx < l {
1285		preIndex := iNdEx
1286		var wire uint64
1287		for shift := uint(0); ; shift += 7 {
1288			if shift >= 64 {
1289				return ErrIntOverflowHealthcheck
1290			}
1291			if iNdEx >= l {
1292				return io.ErrUnexpectedEOF
1293			}
1294			b := dAtA[iNdEx]
1295			iNdEx++
1296			wire |= uint64(b&0x7F) << shift
1297			if b < 0x80 {
1298				break
1299			}
1300		}
1301		fieldNum := int32(wire >> 3)
1302		wireType := int(wire & 0x7)
1303		if wireType == 4 {
1304			return fmt.Errorf("proto: HealthCheck: wiretype end group for non-group")
1305		}
1306		if fieldNum <= 0 {
1307			return fmt.Errorf("proto: HealthCheck: illegal tag %d (wire type %d)", fieldNum, wire)
1308		}
1309		switch fieldNum {
1310		case 1:
1311			if wireType != 2 {
1312				return fmt.Errorf("proto: wrong wireType = %d for field Node", wireType)
1313			}
1314			var stringLen uint64
1315			for shift := uint(0); ; shift += 7 {
1316				if shift >= 64 {
1317					return ErrIntOverflowHealthcheck
1318				}
1319				if iNdEx >= l {
1320					return io.ErrUnexpectedEOF
1321				}
1322				b := dAtA[iNdEx]
1323				iNdEx++
1324				stringLen |= uint64(b&0x7F) << shift
1325				if b < 0x80 {
1326					break
1327				}
1328			}
1329			intStringLen := int(stringLen)
1330			if intStringLen < 0 {
1331				return ErrInvalidLengthHealthcheck
1332			}
1333			postIndex := iNdEx + intStringLen
1334			if postIndex < 0 {
1335				return ErrInvalidLengthHealthcheck
1336			}
1337			if postIndex > l {
1338				return io.ErrUnexpectedEOF
1339			}
1340			m.Node = string(dAtA[iNdEx:postIndex])
1341			iNdEx = postIndex
1342		case 2:
1343			if wireType != 2 {
1344				return fmt.Errorf("proto: wrong wireType = %d for field CheckID", wireType)
1345			}
1346			var stringLen uint64
1347			for shift := uint(0); ; shift += 7 {
1348				if shift >= 64 {
1349					return ErrIntOverflowHealthcheck
1350				}
1351				if iNdEx >= l {
1352					return io.ErrUnexpectedEOF
1353				}
1354				b := dAtA[iNdEx]
1355				iNdEx++
1356				stringLen |= uint64(b&0x7F) << shift
1357				if b < 0x80 {
1358					break
1359				}
1360			}
1361			intStringLen := int(stringLen)
1362			if intStringLen < 0 {
1363				return ErrInvalidLengthHealthcheck
1364			}
1365			postIndex := iNdEx + intStringLen
1366			if postIndex < 0 {
1367				return ErrInvalidLengthHealthcheck
1368			}
1369			if postIndex > l {
1370				return io.ErrUnexpectedEOF
1371			}
1372			m.CheckID = github_com_hashicorp_consul_types.CheckID(dAtA[iNdEx:postIndex])
1373			iNdEx = postIndex
1374		case 3:
1375			if wireType != 2 {
1376				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
1377			}
1378			var stringLen uint64
1379			for shift := uint(0); ; shift += 7 {
1380				if shift >= 64 {
1381					return ErrIntOverflowHealthcheck
1382				}
1383				if iNdEx >= l {
1384					return io.ErrUnexpectedEOF
1385				}
1386				b := dAtA[iNdEx]
1387				iNdEx++
1388				stringLen |= uint64(b&0x7F) << shift
1389				if b < 0x80 {
1390					break
1391				}
1392			}
1393			intStringLen := int(stringLen)
1394			if intStringLen < 0 {
1395				return ErrInvalidLengthHealthcheck
1396			}
1397			postIndex := iNdEx + intStringLen
1398			if postIndex < 0 {
1399				return ErrInvalidLengthHealthcheck
1400			}
1401			if postIndex > l {
1402				return io.ErrUnexpectedEOF
1403			}
1404			m.Name = string(dAtA[iNdEx:postIndex])
1405			iNdEx = postIndex
1406		case 4:
1407			if wireType != 2 {
1408				return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
1409			}
1410			var stringLen uint64
1411			for shift := uint(0); ; shift += 7 {
1412				if shift >= 64 {
1413					return ErrIntOverflowHealthcheck
1414				}
1415				if iNdEx >= l {
1416					return io.ErrUnexpectedEOF
1417				}
1418				b := dAtA[iNdEx]
1419				iNdEx++
1420				stringLen |= uint64(b&0x7F) << shift
1421				if b < 0x80 {
1422					break
1423				}
1424			}
1425			intStringLen := int(stringLen)
1426			if intStringLen < 0 {
1427				return ErrInvalidLengthHealthcheck
1428			}
1429			postIndex := iNdEx + intStringLen
1430			if postIndex < 0 {
1431				return ErrInvalidLengthHealthcheck
1432			}
1433			if postIndex > l {
1434				return io.ErrUnexpectedEOF
1435			}
1436			m.Status = string(dAtA[iNdEx:postIndex])
1437			iNdEx = postIndex
1438		case 5:
1439			if wireType != 2 {
1440				return fmt.Errorf("proto: wrong wireType = %d for field Notes", wireType)
1441			}
1442			var stringLen uint64
1443			for shift := uint(0); ; shift += 7 {
1444				if shift >= 64 {
1445					return ErrIntOverflowHealthcheck
1446				}
1447				if iNdEx >= l {
1448					return io.ErrUnexpectedEOF
1449				}
1450				b := dAtA[iNdEx]
1451				iNdEx++
1452				stringLen |= uint64(b&0x7F) << shift
1453				if b < 0x80 {
1454					break
1455				}
1456			}
1457			intStringLen := int(stringLen)
1458			if intStringLen < 0 {
1459				return ErrInvalidLengthHealthcheck
1460			}
1461			postIndex := iNdEx + intStringLen
1462			if postIndex < 0 {
1463				return ErrInvalidLengthHealthcheck
1464			}
1465			if postIndex > l {
1466				return io.ErrUnexpectedEOF
1467			}
1468			m.Notes = string(dAtA[iNdEx:postIndex])
1469			iNdEx = postIndex
1470		case 6:
1471			if wireType != 2 {
1472				return fmt.Errorf("proto: wrong wireType = %d for field Output", wireType)
1473			}
1474			var stringLen uint64
1475			for shift := uint(0); ; shift += 7 {
1476				if shift >= 64 {
1477					return ErrIntOverflowHealthcheck
1478				}
1479				if iNdEx >= l {
1480					return io.ErrUnexpectedEOF
1481				}
1482				b := dAtA[iNdEx]
1483				iNdEx++
1484				stringLen |= uint64(b&0x7F) << shift
1485				if b < 0x80 {
1486					break
1487				}
1488			}
1489			intStringLen := int(stringLen)
1490			if intStringLen < 0 {
1491				return ErrInvalidLengthHealthcheck
1492			}
1493			postIndex := iNdEx + intStringLen
1494			if postIndex < 0 {
1495				return ErrInvalidLengthHealthcheck
1496			}
1497			if postIndex > l {
1498				return io.ErrUnexpectedEOF
1499			}
1500			m.Output = string(dAtA[iNdEx:postIndex])
1501			iNdEx = postIndex
1502		case 7:
1503			if wireType != 2 {
1504				return fmt.Errorf("proto: wrong wireType = %d for field ServiceID", wireType)
1505			}
1506			var stringLen uint64
1507			for shift := uint(0); ; shift += 7 {
1508				if shift >= 64 {
1509					return ErrIntOverflowHealthcheck
1510				}
1511				if iNdEx >= l {
1512					return io.ErrUnexpectedEOF
1513				}
1514				b := dAtA[iNdEx]
1515				iNdEx++
1516				stringLen |= uint64(b&0x7F) << shift
1517				if b < 0x80 {
1518					break
1519				}
1520			}
1521			intStringLen := int(stringLen)
1522			if intStringLen < 0 {
1523				return ErrInvalidLengthHealthcheck
1524			}
1525			postIndex := iNdEx + intStringLen
1526			if postIndex < 0 {
1527				return ErrInvalidLengthHealthcheck
1528			}
1529			if postIndex > l {
1530				return io.ErrUnexpectedEOF
1531			}
1532			m.ServiceID = string(dAtA[iNdEx:postIndex])
1533			iNdEx = postIndex
1534		case 8:
1535			if wireType != 2 {
1536				return fmt.Errorf("proto: wrong wireType = %d for field ServiceName", wireType)
1537			}
1538			var stringLen uint64
1539			for shift := uint(0); ; shift += 7 {
1540				if shift >= 64 {
1541					return ErrIntOverflowHealthcheck
1542				}
1543				if iNdEx >= l {
1544					return io.ErrUnexpectedEOF
1545				}
1546				b := dAtA[iNdEx]
1547				iNdEx++
1548				stringLen |= uint64(b&0x7F) << shift
1549				if b < 0x80 {
1550					break
1551				}
1552			}
1553			intStringLen := int(stringLen)
1554			if intStringLen < 0 {
1555				return ErrInvalidLengthHealthcheck
1556			}
1557			postIndex := iNdEx + intStringLen
1558			if postIndex < 0 {
1559				return ErrInvalidLengthHealthcheck
1560			}
1561			if postIndex > l {
1562				return io.ErrUnexpectedEOF
1563			}
1564			m.ServiceName = string(dAtA[iNdEx:postIndex])
1565			iNdEx = postIndex
1566		case 9:
1567			if wireType != 2 {
1568				return fmt.Errorf("proto: wrong wireType = %d for field ServiceTags", wireType)
1569			}
1570			var stringLen uint64
1571			for shift := uint(0); ; shift += 7 {
1572				if shift >= 64 {
1573					return ErrIntOverflowHealthcheck
1574				}
1575				if iNdEx >= l {
1576					return io.ErrUnexpectedEOF
1577				}
1578				b := dAtA[iNdEx]
1579				iNdEx++
1580				stringLen |= uint64(b&0x7F) << shift
1581				if b < 0x80 {
1582					break
1583				}
1584			}
1585			intStringLen := int(stringLen)
1586			if intStringLen < 0 {
1587				return ErrInvalidLengthHealthcheck
1588			}
1589			postIndex := iNdEx + intStringLen
1590			if postIndex < 0 {
1591				return ErrInvalidLengthHealthcheck
1592			}
1593			if postIndex > l {
1594				return io.ErrUnexpectedEOF
1595			}
1596			m.ServiceTags = append(m.ServiceTags, string(dAtA[iNdEx:postIndex]))
1597			iNdEx = postIndex
1598		case 10:
1599			if wireType != 2 {
1600				return fmt.Errorf("proto: wrong wireType = %d for field Definition", wireType)
1601			}
1602			var msglen int
1603			for shift := uint(0); ; shift += 7 {
1604				if shift >= 64 {
1605					return ErrIntOverflowHealthcheck
1606				}
1607				if iNdEx >= l {
1608					return io.ErrUnexpectedEOF
1609				}
1610				b := dAtA[iNdEx]
1611				iNdEx++
1612				msglen |= int(b&0x7F) << shift
1613				if b < 0x80 {
1614					break
1615				}
1616			}
1617			if msglen < 0 {
1618				return ErrInvalidLengthHealthcheck
1619			}
1620			postIndex := iNdEx + msglen
1621			if postIndex < 0 {
1622				return ErrInvalidLengthHealthcheck
1623			}
1624			if postIndex > l {
1625				return io.ErrUnexpectedEOF
1626			}
1627			if err := m.Definition.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1628				return err
1629			}
1630			iNdEx = postIndex
1631		case 11:
1632			if wireType != 2 {
1633				return fmt.Errorf("proto: wrong wireType = %d for field RaftIndex", wireType)
1634			}
1635			var msglen int
1636			for shift := uint(0); ; shift += 7 {
1637				if shift >= 64 {
1638					return ErrIntOverflowHealthcheck
1639				}
1640				if iNdEx >= l {
1641					return io.ErrUnexpectedEOF
1642				}
1643				b := dAtA[iNdEx]
1644				iNdEx++
1645				msglen |= int(b&0x7F) << shift
1646				if b < 0x80 {
1647					break
1648				}
1649			}
1650			if msglen < 0 {
1651				return ErrInvalidLengthHealthcheck
1652			}
1653			postIndex := iNdEx + msglen
1654			if postIndex < 0 {
1655				return ErrInvalidLengthHealthcheck
1656			}
1657			if postIndex > l {
1658				return io.ErrUnexpectedEOF
1659			}
1660			if err := m.RaftIndex.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1661				return err
1662			}
1663			iNdEx = postIndex
1664		case 12:
1665			if wireType != 2 {
1666				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
1667			}
1668			var stringLen uint64
1669			for shift := uint(0); ; shift += 7 {
1670				if shift >= 64 {
1671					return ErrIntOverflowHealthcheck
1672				}
1673				if iNdEx >= l {
1674					return io.ErrUnexpectedEOF
1675				}
1676				b := dAtA[iNdEx]
1677				iNdEx++
1678				stringLen |= uint64(b&0x7F) << shift
1679				if b < 0x80 {
1680					break
1681				}
1682			}
1683			intStringLen := int(stringLen)
1684			if intStringLen < 0 {
1685				return ErrInvalidLengthHealthcheck
1686			}
1687			postIndex := iNdEx + intStringLen
1688			if postIndex < 0 {
1689				return ErrInvalidLengthHealthcheck
1690			}
1691			if postIndex > l {
1692				return io.ErrUnexpectedEOF
1693			}
1694			m.Type = string(dAtA[iNdEx:postIndex])
1695			iNdEx = postIndex
1696		case 13:
1697			if wireType != 2 {
1698				return fmt.Errorf("proto: wrong wireType = %d for field EnterpriseMeta", wireType)
1699			}
1700			var msglen int
1701			for shift := uint(0); ; shift += 7 {
1702				if shift >= 64 {
1703					return ErrIntOverflowHealthcheck
1704				}
1705				if iNdEx >= l {
1706					return io.ErrUnexpectedEOF
1707				}
1708				b := dAtA[iNdEx]
1709				iNdEx++
1710				msglen |= int(b&0x7F) << shift
1711				if b < 0x80 {
1712					break
1713				}
1714			}
1715			if msglen < 0 {
1716				return ErrInvalidLengthHealthcheck
1717			}
1718			postIndex := iNdEx + msglen
1719			if postIndex < 0 {
1720				return ErrInvalidLengthHealthcheck
1721			}
1722			if postIndex > l {
1723				return io.ErrUnexpectedEOF
1724			}
1725			if err := m.EnterpriseMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1726				return err
1727			}
1728			iNdEx = postIndex
1729		case 14:
1730			if wireType != 0 {
1731				return fmt.Errorf("proto: wrong wireType = %d for field ExposedPort", wireType)
1732			}
1733			m.ExposedPort = 0
1734			for shift := uint(0); ; shift += 7 {
1735				if shift >= 64 {
1736					return ErrIntOverflowHealthcheck
1737				}
1738				if iNdEx >= l {
1739					return io.ErrUnexpectedEOF
1740				}
1741				b := dAtA[iNdEx]
1742				iNdEx++
1743				m.ExposedPort |= int32(b&0x7F) << shift
1744				if b < 0x80 {
1745					break
1746				}
1747			}
1748		default:
1749			iNdEx = preIndex
1750			skippy, err := skipHealthcheck(dAtA[iNdEx:])
1751			if err != nil {
1752				return err
1753			}
1754			if skippy < 0 {
1755				return ErrInvalidLengthHealthcheck
1756			}
1757			if (iNdEx + skippy) < 0 {
1758				return ErrInvalidLengthHealthcheck
1759			}
1760			if (iNdEx + skippy) > l {
1761				return io.ErrUnexpectedEOF
1762			}
1763			iNdEx += skippy
1764		}
1765	}
1766
1767	if iNdEx > l {
1768		return io.ErrUnexpectedEOF
1769	}
1770	return nil
1771}
1772func (m *HeaderValue) Unmarshal(dAtA []byte) error {
1773	l := len(dAtA)
1774	iNdEx := 0
1775	for iNdEx < l {
1776		preIndex := iNdEx
1777		var wire uint64
1778		for shift := uint(0); ; shift += 7 {
1779			if shift >= 64 {
1780				return ErrIntOverflowHealthcheck
1781			}
1782			if iNdEx >= l {
1783				return io.ErrUnexpectedEOF
1784			}
1785			b := dAtA[iNdEx]
1786			iNdEx++
1787			wire |= uint64(b&0x7F) << shift
1788			if b < 0x80 {
1789				break
1790			}
1791		}
1792		fieldNum := int32(wire >> 3)
1793		wireType := int(wire & 0x7)
1794		if wireType == 4 {
1795			return fmt.Errorf("proto: HeaderValue: wiretype end group for non-group")
1796		}
1797		if fieldNum <= 0 {
1798			return fmt.Errorf("proto: HeaderValue: illegal tag %d (wire type %d)", fieldNum, wire)
1799		}
1800		switch fieldNum {
1801		case 1:
1802			if wireType != 2 {
1803				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
1804			}
1805			var stringLen uint64
1806			for shift := uint(0); ; shift += 7 {
1807				if shift >= 64 {
1808					return ErrIntOverflowHealthcheck
1809				}
1810				if iNdEx >= l {
1811					return io.ErrUnexpectedEOF
1812				}
1813				b := dAtA[iNdEx]
1814				iNdEx++
1815				stringLen |= uint64(b&0x7F) << shift
1816				if b < 0x80 {
1817					break
1818				}
1819			}
1820			intStringLen := int(stringLen)
1821			if intStringLen < 0 {
1822				return ErrInvalidLengthHealthcheck
1823			}
1824			postIndex := iNdEx + intStringLen
1825			if postIndex < 0 {
1826				return ErrInvalidLengthHealthcheck
1827			}
1828			if postIndex > l {
1829				return io.ErrUnexpectedEOF
1830			}
1831			m.Value = append(m.Value, string(dAtA[iNdEx:postIndex]))
1832			iNdEx = postIndex
1833		default:
1834			iNdEx = preIndex
1835			skippy, err := skipHealthcheck(dAtA[iNdEx:])
1836			if err != nil {
1837				return err
1838			}
1839			if skippy < 0 {
1840				return ErrInvalidLengthHealthcheck
1841			}
1842			if (iNdEx + skippy) < 0 {
1843				return ErrInvalidLengthHealthcheck
1844			}
1845			if (iNdEx + skippy) > l {
1846				return io.ErrUnexpectedEOF
1847			}
1848			iNdEx += skippy
1849		}
1850	}
1851
1852	if iNdEx > l {
1853		return io.ErrUnexpectedEOF
1854	}
1855	return nil
1856}
1857func (m *HealthCheckDefinition) Unmarshal(dAtA []byte) error {
1858	l := len(dAtA)
1859	iNdEx := 0
1860	for iNdEx < l {
1861		preIndex := iNdEx
1862		var wire uint64
1863		for shift := uint(0); ; shift += 7 {
1864			if shift >= 64 {
1865				return ErrIntOverflowHealthcheck
1866			}
1867			if iNdEx >= l {
1868				return io.ErrUnexpectedEOF
1869			}
1870			b := dAtA[iNdEx]
1871			iNdEx++
1872			wire |= uint64(b&0x7F) << shift
1873			if b < 0x80 {
1874				break
1875			}
1876		}
1877		fieldNum := int32(wire >> 3)
1878		wireType := int(wire & 0x7)
1879		if wireType == 4 {
1880			return fmt.Errorf("proto: HealthCheckDefinition: wiretype end group for non-group")
1881		}
1882		if fieldNum <= 0 {
1883			return fmt.Errorf("proto: HealthCheckDefinition: illegal tag %d (wire type %d)", fieldNum, wire)
1884		}
1885		switch fieldNum {
1886		case 1:
1887			if wireType != 2 {
1888				return fmt.Errorf("proto: wrong wireType = %d for field HTTP", wireType)
1889			}
1890			var stringLen uint64
1891			for shift := uint(0); ; shift += 7 {
1892				if shift >= 64 {
1893					return ErrIntOverflowHealthcheck
1894				}
1895				if iNdEx >= l {
1896					return io.ErrUnexpectedEOF
1897				}
1898				b := dAtA[iNdEx]
1899				iNdEx++
1900				stringLen |= uint64(b&0x7F) << shift
1901				if b < 0x80 {
1902					break
1903				}
1904			}
1905			intStringLen := int(stringLen)
1906			if intStringLen < 0 {
1907				return ErrInvalidLengthHealthcheck
1908			}
1909			postIndex := iNdEx + intStringLen
1910			if postIndex < 0 {
1911				return ErrInvalidLengthHealthcheck
1912			}
1913			if postIndex > l {
1914				return io.ErrUnexpectedEOF
1915			}
1916			m.HTTP = string(dAtA[iNdEx:postIndex])
1917			iNdEx = postIndex
1918		case 2:
1919			if wireType != 0 {
1920				return fmt.Errorf("proto: wrong wireType = %d for field TLSSkipVerify", wireType)
1921			}
1922			var v int
1923			for shift := uint(0); ; shift += 7 {
1924				if shift >= 64 {
1925					return ErrIntOverflowHealthcheck
1926				}
1927				if iNdEx >= l {
1928					return io.ErrUnexpectedEOF
1929				}
1930				b := dAtA[iNdEx]
1931				iNdEx++
1932				v |= int(b&0x7F) << shift
1933				if b < 0x80 {
1934					break
1935				}
1936			}
1937			m.TLSSkipVerify = bool(v != 0)
1938		case 3:
1939			if wireType != 2 {
1940				return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
1941			}
1942			var msglen int
1943			for shift := uint(0); ; shift += 7 {
1944				if shift >= 64 {
1945					return ErrIntOverflowHealthcheck
1946				}
1947				if iNdEx >= l {
1948					return io.ErrUnexpectedEOF
1949				}
1950				b := dAtA[iNdEx]
1951				iNdEx++
1952				msglen |= int(b&0x7F) << shift
1953				if b < 0x80 {
1954					break
1955				}
1956			}
1957			if msglen < 0 {
1958				return ErrInvalidLengthHealthcheck
1959			}
1960			postIndex := iNdEx + msglen
1961			if postIndex < 0 {
1962				return ErrInvalidLengthHealthcheck
1963			}
1964			if postIndex > l {
1965				return io.ErrUnexpectedEOF
1966			}
1967			if m.Header == nil {
1968				m.Header = make(map[string]HeaderValue)
1969			}
1970			var mapkey string
1971			mapvalue := &HeaderValue{}
1972			for iNdEx < postIndex {
1973				entryPreIndex := iNdEx
1974				var wire uint64
1975				for shift := uint(0); ; shift += 7 {
1976					if shift >= 64 {
1977						return ErrIntOverflowHealthcheck
1978					}
1979					if iNdEx >= l {
1980						return io.ErrUnexpectedEOF
1981					}
1982					b := dAtA[iNdEx]
1983					iNdEx++
1984					wire |= uint64(b&0x7F) << shift
1985					if b < 0x80 {
1986						break
1987					}
1988				}
1989				fieldNum := int32(wire >> 3)
1990				if fieldNum == 1 {
1991					var stringLenmapkey uint64
1992					for shift := uint(0); ; shift += 7 {
1993						if shift >= 64 {
1994							return ErrIntOverflowHealthcheck
1995						}
1996						if iNdEx >= l {
1997							return io.ErrUnexpectedEOF
1998						}
1999						b := dAtA[iNdEx]
2000						iNdEx++
2001						stringLenmapkey |= uint64(b&0x7F) << shift
2002						if b < 0x80 {
2003							break
2004						}
2005					}
2006					intStringLenmapkey := int(stringLenmapkey)
2007					if intStringLenmapkey < 0 {
2008						return ErrInvalidLengthHealthcheck
2009					}
2010					postStringIndexmapkey := iNdEx + intStringLenmapkey
2011					if postStringIndexmapkey < 0 {
2012						return ErrInvalidLengthHealthcheck
2013					}
2014					if postStringIndexmapkey > l {
2015						return io.ErrUnexpectedEOF
2016					}
2017					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
2018					iNdEx = postStringIndexmapkey
2019				} else if fieldNum == 2 {
2020					var mapmsglen int
2021					for shift := uint(0); ; shift += 7 {
2022						if shift >= 64 {
2023							return ErrIntOverflowHealthcheck
2024						}
2025						if iNdEx >= l {
2026							return io.ErrUnexpectedEOF
2027						}
2028						b := dAtA[iNdEx]
2029						iNdEx++
2030						mapmsglen |= int(b&0x7F) << shift
2031						if b < 0x80 {
2032							break
2033						}
2034					}
2035					if mapmsglen < 0 {
2036						return ErrInvalidLengthHealthcheck
2037					}
2038					postmsgIndex := iNdEx + mapmsglen
2039					if postmsgIndex < 0 {
2040						return ErrInvalidLengthHealthcheck
2041					}
2042					if postmsgIndex > l {
2043						return io.ErrUnexpectedEOF
2044					}
2045					mapvalue = &HeaderValue{}
2046					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
2047						return err
2048					}
2049					iNdEx = postmsgIndex
2050				} else {
2051					iNdEx = entryPreIndex
2052					skippy, err := skipHealthcheck(dAtA[iNdEx:])
2053					if err != nil {
2054						return err
2055					}
2056					if skippy < 0 {
2057						return ErrInvalidLengthHealthcheck
2058					}
2059					if (iNdEx + skippy) > postIndex {
2060						return io.ErrUnexpectedEOF
2061					}
2062					iNdEx += skippy
2063				}
2064			}
2065			m.Header[mapkey] = *mapvalue
2066			iNdEx = postIndex
2067		case 4:
2068			if wireType != 2 {
2069				return fmt.Errorf("proto: wrong wireType = %d for field Method", wireType)
2070			}
2071			var stringLen uint64
2072			for shift := uint(0); ; shift += 7 {
2073				if shift >= 64 {
2074					return ErrIntOverflowHealthcheck
2075				}
2076				if iNdEx >= l {
2077					return io.ErrUnexpectedEOF
2078				}
2079				b := dAtA[iNdEx]
2080				iNdEx++
2081				stringLen |= uint64(b&0x7F) << shift
2082				if b < 0x80 {
2083					break
2084				}
2085			}
2086			intStringLen := int(stringLen)
2087			if intStringLen < 0 {
2088				return ErrInvalidLengthHealthcheck
2089			}
2090			postIndex := iNdEx + intStringLen
2091			if postIndex < 0 {
2092				return ErrInvalidLengthHealthcheck
2093			}
2094			if postIndex > l {
2095				return io.ErrUnexpectedEOF
2096			}
2097			m.Method = string(dAtA[iNdEx:postIndex])
2098			iNdEx = postIndex
2099		case 5:
2100			if wireType != 2 {
2101				return fmt.Errorf("proto: wrong wireType = %d for field TCP", wireType)
2102			}
2103			var stringLen uint64
2104			for shift := uint(0); ; shift += 7 {
2105				if shift >= 64 {
2106					return ErrIntOverflowHealthcheck
2107				}
2108				if iNdEx >= l {
2109					return io.ErrUnexpectedEOF
2110				}
2111				b := dAtA[iNdEx]
2112				iNdEx++
2113				stringLen |= uint64(b&0x7F) << shift
2114				if b < 0x80 {
2115					break
2116				}
2117			}
2118			intStringLen := int(stringLen)
2119			if intStringLen < 0 {
2120				return ErrInvalidLengthHealthcheck
2121			}
2122			postIndex := iNdEx + intStringLen
2123			if postIndex < 0 {
2124				return ErrInvalidLengthHealthcheck
2125			}
2126			if postIndex > l {
2127				return io.ErrUnexpectedEOF
2128			}
2129			m.TCP = string(dAtA[iNdEx:postIndex])
2130			iNdEx = postIndex
2131		case 6:
2132			if wireType != 2 {
2133				return fmt.Errorf("proto: wrong wireType = %d for field Interval", wireType)
2134			}
2135			var msglen int
2136			for shift := uint(0); ; shift += 7 {
2137				if shift >= 64 {
2138					return ErrIntOverflowHealthcheck
2139				}
2140				if iNdEx >= l {
2141					return io.ErrUnexpectedEOF
2142				}
2143				b := dAtA[iNdEx]
2144				iNdEx++
2145				msglen |= int(b&0x7F) << shift
2146				if b < 0x80 {
2147					break
2148				}
2149			}
2150			if msglen < 0 {
2151				return ErrInvalidLengthHealthcheck
2152			}
2153			postIndex := iNdEx + msglen
2154			if postIndex < 0 {
2155				return ErrInvalidLengthHealthcheck
2156			}
2157			if postIndex > l {
2158				return io.ErrUnexpectedEOF
2159			}
2160			if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(&m.Interval, dAtA[iNdEx:postIndex]); err != nil {
2161				return err
2162			}
2163			iNdEx = postIndex
2164		case 7:
2165			if wireType != 2 {
2166				return fmt.Errorf("proto: wrong wireType = %d for field Timeout", wireType)
2167			}
2168			var msglen int
2169			for shift := uint(0); ; shift += 7 {
2170				if shift >= 64 {
2171					return ErrIntOverflowHealthcheck
2172				}
2173				if iNdEx >= l {
2174					return io.ErrUnexpectedEOF
2175				}
2176				b := dAtA[iNdEx]
2177				iNdEx++
2178				msglen |= int(b&0x7F) << shift
2179				if b < 0x80 {
2180					break
2181				}
2182			}
2183			if msglen < 0 {
2184				return ErrInvalidLengthHealthcheck
2185			}
2186			postIndex := iNdEx + msglen
2187			if postIndex < 0 {
2188				return ErrInvalidLengthHealthcheck
2189			}
2190			if postIndex > l {
2191				return io.ErrUnexpectedEOF
2192			}
2193			if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(&m.Timeout, dAtA[iNdEx:postIndex]); err != nil {
2194				return err
2195			}
2196			iNdEx = postIndex
2197		case 8:
2198			if wireType != 2 {
2199				return fmt.Errorf("proto: wrong wireType = %d for field DeregisterCriticalServiceAfter", wireType)
2200			}
2201			var msglen int
2202			for shift := uint(0); ; shift += 7 {
2203				if shift >= 64 {
2204					return ErrIntOverflowHealthcheck
2205				}
2206				if iNdEx >= l {
2207					return io.ErrUnexpectedEOF
2208				}
2209				b := dAtA[iNdEx]
2210				iNdEx++
2211				msglen |= int(b&0x7F) << shift
2212				if b < 0x80 {
2213					break
2214				}
2215			}
2216			if msglen < 0 {
2217				return ErrInvalidLengthHealthcheck
2218			}
2219			postIndex := iNdEx + msglen
2220			if postIndex < 0 {
2221				return ErrInvalidLengthHealthcheck
2222			}
2223			if postIndex > l {
2224				return io.ErrUnexpectedEOF
2225			}
2226			if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(&m.DeregisterCriticalServiceAfter, dAtA[iNdEx:postIndex]); err != nil {
2227				return err
2228			}
2229			iNdEx = postIndex
2230		case 9:
2231			if wireType != 0 {
2232				return fmt.Errorf("proto: wrong wireType = %d for field OutputMaxSize", wireType)
2233			}
2234			m.OutputMaxSize = 0
2235			for shift := uint(0); ; shift += 7 {
2236				if shift >= 64 {
2237					return ErrIntOverflowHealthcheck
2238				}
2239				if iNdEx >= l {
2240					return io.ErrUnexpectedEOF
2241				}
2242				b := dAtA[iNdEx]
2243				iNdEx++
2244				m.OutputMaxSize |= uint32(b&0x7F) << shift
2245				if b < 0x80 {
2246					break
2247				}
2248			}
2249		case 10:
2250			if wireType != 2 {
2251				return fmt.Errorf("proto: wrong wireType = %d for field ScriptArgs", wireType)
2252			}
2253			var stringLen uint64
2254			for shift := uint(0); ; shift += 7 {
2255				if shift >= 64 {
2256					return ErrIntOverflowHealthcheck
2257				}
2258				if iNdEx >= l {
2259					return io.ErrUnexpectedEOF
2260				}
2261				b := dAtA[iNdEx]
2262				iNdEx++
2263				stringLen |= uint64(b&0x7F) << shift
2264				if b < 0x80 {
2265					break
2266				}
2267			}
2268			intStringLen := int(stringLen)
2269			if intStringLen < 0 {
2270				return ErrInvalidLengthHealthcheck
2271			}
2272			postIndex := iNdEx + intStringLen
2273			if postIndex < 0 {
2274				return ErrInvalidLengthHealthcheck
2275			}
2276			if postIndex > l {
2277				return io.ErrUnexpectedEOF
2278			}
2279			m.ScriptArgs = append(m.ScriptArgs, string(dAtA[iNdEx:postIndex]))
2280			iNdEx = postIndex
2281		case 11:
2282			if wireType != 2 {
2283				return fmt.Errorf("proto: wrong wireType = %d for field DockerContainerID", wireType)
2284			}
2285			var stringLen uint64
2286			for shift := uint(0); ; shift += 7 {
2287				if shift >= 64 {
2288					return ErrIntOverflowHealthcheck
2289				}
2290				if iNdEx >= l {
2291					return io.ErrUnexpectedEOF
2292				}
2293				b := dAtA[iNdEx]
2294				iNdEx++
2295				stringLen |= uint64(b&0x7F) << shift
2296				if b < 0x80 {
2297					break
2298				}
2299			}
2300			intStringLen := int(stringLen)
2301			if intStringLen < 0 {
2302				return ErrInvalidLengthHealthcheck
2303			}
2304			postIndex := iNdEx + intStringLen
2305			if postIndex < 0 {
2306				return ErrInvalidLengthHealthcheck
2307			}
2308			if postIndex > l {
2309				return io.ErrUnexpectedEOF
2310			}
2311			m.DockerContainerID = string(dAtA[iNdEx:postIndex])
2312			iNdEx = postIndex
2313		case 12:
2314			if wireType != 2 {
2315				return fmt.Errorf("proto: wrong wireType = %d for field Shell", wireType)
2316			}
2317			var stringLen uint64
2318			for shift := uint(0); ; shift += 7 {
2319				if shift >= 64 {
2320					return ErrIntOverflowHealthcheck
2321				}
2322				if iNdEx >= l {
2323					return io.ErrUnexpectedEOF
2324				}
2325				b := dAtA[iNdEx]
2326				iNdEx++
2327				stringLen |= uint64(b&0x7F) << shift
2328				if b < 0x80 {
2329					break
2330				}
2331			}
2332			intStringLen := int(stringLen)
2333			if intStringLen < 0 {
2334				return ErrInvalidLengthHealthcheck
2335			}
2336			postIndex := iNdEx + intStringLen
2337			if postIndex < 0 {
2338				return ErrInvalidLengthHealthcheck
2339			}
2340			if postIndex > l {
2341				return io.ErrUnexpectedEOF
2342			}
2343			m.Shell = string(dAtA[iNdEx:postIndex])
2344			iNdEx = postIndex
2345		case 13:
2346			if wireType != 2 {
2347				return fmt.Errorf("proto: wrong wireType = %d for field GRPC", wireType)
2348			}
2349			var stringLen uint64
2350			for shift := uint(0); ; shift += 7 {
2351				if shift >= 64 {
2352					return ErrIntOverflowHealthcheck
2353				}
2354				if iNdEx >= l {
2355					return io.ErrUnexpectedEOF
2356				}
2357				b := dAtA[iNdEx]
2358				iNdEx++
2359				stringLen |= uint64(b&0x7F) << shift
2360				if b < 0x80 {
2361					break
2362				}
2363			}
2364			intStringLen := int(stringLen)
2365			if intStringLen < 0 {
2366				return ErrInvalidLengthHealthcheck
2367			}
2368			postIndex := iNdEx + intStringLen
2369			if postIndex < 0 {
2370				return ErrInvalidLengthHealthcheck
2371			}
2372			if postIndex > l {
2373				return io.ErrUnexpectedEOF
2374			}
2375			m.GRPC = string(dAtA[iNdEx:postIndex])
2376			iNdEx = postIndex
2377		case 14:
2378			if wireType != 0 {
2379				return fmt.Errorf("proto: wrong wireType = %d for field GRPCUseTLS", wireType)
2380			}
2381			var v int
2382			for shift := uint(0); ; shift += 7 {
2383				if shift >= 64 {
2384					return ErrIntOverflowHealthcheck
2385				}
2386				if iNdEx >= l {
2387					return io.ErrUnexpectedEOF
2388				}
2389				b := dAtA[iNdEx]
2390				iNdEx++
2391				v |= int(b&0x7F) << shift
2392				if b < 0x80 {
2393					break
2394				}
2395			}
2396			m.GRPCUseTLS = bool(v != 0)
2397		case 15:
2398			if wireType != 2 {
2399				return fmt.Errorf("proto: wrong wireType = %d for field AliasNode", wireType)
2400			}
2401			var stringLen uint64
2402			for shift := uint(0); ; shift += 7 {
2403				if shift >= 64 {
2404					return ErrIntOverflowHealthcheck
2405				}
2406				if iNdEx >= l {
2407					return io.ErrUnexpectedEOF
2408				}
2409				b := dAtA[iNdEx]
2410				iNdEx++
2411				stringLen |= uint64(b&0x7F) << shift
2412				if b < 0x80 {
2413					break
2414				}
2415			}
2416			intStringLen := int(stringLen)
2417			if intStringLen < 0 {
2418				return ErrInvalidLengthHealthcheck
2419			}
2420			postIndex := iNdEx + intStringLen
2421			if postIndex < 0 {
2422				return ErrInvalidLengthHealthcheck
2423			}
2424			if postIndex > l {
2425				return io.ErrUnexpectedEOF
2426			}
2427			m.AliasNode = string(dAtA[iNdEx:postIndex])
2428			iNdEx = postIndex
2429		case 16:
2430			if wireType != 2 {
2431				return fmt.Errorf("proto: wrong wireType = %d for field AliasService", wireType)
2432			}
2433			var stringLen uint64
2434			for shift := uint(0); ; shift += 7 {
2435				if shift >= 64 {
2436					return ErrIntOverflowHealthcheck
2437				}
2438				if iNdEx >= l {
2439					return io.ErrUnexpectedEOF
2440				}
2441				b := dAtA[iNdEx]
2442				iNdEx++
2443				stringLen |= uint64(b&0x7F) << shift
2444				if b < 0x80 {
2445					break
2446				}
2447			}
2448			intStringLen := int(stringLen)
2449			if intStringLen < 0 {
2450				return ErrInvalidLengthHealthcheck
2451			}
2452			postIndex := iNdEx + intStringLen
2453			if postIndex < 0 {
2454				return ErrInvalidLengthHealthcheck
2455			}
2456			if postIndex > l {
2457				return io.ErrUnexpectedEOF
2458			}
2459			m.AliasService = string(dAtA[iNdEx:postIndex])
2460			iNdEx = postIndex
2461		case 17:
2462			if wireType != 2 {
2463				return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType)
2464			}
2465			var msglen int
2466			for shift := uint(0); ; shift += 7 {
2467				if shift >= 64 {
2468					return ErrIntOverflowHealthcheck
2469				}
2470				if iNdEx >= l {
2471					return io.ErrUnexpectedEOF
2472				}
2473				b := dAtA[iNdEx]
2474				iNdEx++
2475				msglen |= int(b&0x7F) << shift
2476				if b < 0x80 {
2477					break
2478				}
2479			}
2480			if msglen < 0 {
2481				return ErrInvalidLengthHealthcheck
2482			}
2483			postIndex := iNdEx + msglen
2484			if postIndex < 0 {
2485				return ErrInvalidLengthHealthcheck
2486			}
2487			if postIndex > l {
2488				return io.ErrUnexpectedEOF
2489			}
2490			if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(&m.TTL, dAtA[iNdEx:postIndex]); err != nil {
2491				return err
2492			}
2493			iNdEx = postIndex
2494		case 18:
2495			if wireType != 2 {
2496				return fmt.Errorf("proto: wrong wireType = %d for field Body", wireType)
2497			}
2498			var stringLen uint64
2499			for shift := uint(0); ; shift += 7 {
2500				if shift >= 64 {
2501					return ErrIntOverflowHealthcheck
2502				}
2503				if iNdEx >= l {
2504					return io.ErrUnexpectedEOF
2505				}
2506				b := dAtA[iNdEx]
2507				iNdEx++
2508				stringLen |= uint64(b&0x7F) << shift
2509				if b < 0x80 {
2510					break
2511				}
2512			}
2513			intStringLen := int(stringLen)
2514			if intStringLen < 0 {
2515				return ErrInvalidLengthHealthcheck
2516			}
2517			postIndex := iNdEx + intStringLen
2518			if postIndex < 0 {
2519				return ErrInvalidLengthHealthcheck
2520			}
2521			if postIndex > l {
2522				return io.ErrUnexpectedEOF
2523			}
2524			m.Body = string(dAtA[iNdEx:postIndex])
2525			iNdEx = postIndex
2526		case 19:
2527			if wireType != 2 {
2528				return fmt.Errorf("proto: wrong wireType = %d for field TLSServerName", wireType)
2529			}
2530			var stringLen uint64
2531			for shift := uint(0); ; shift += 7 {
2532				if shift >= 64 {
2533					return ErrIntOverflowHealthcheck
2534				}
2535				if iNdEx >= l {
2536					return io.ErrUnexpectedEOF
2537				}
2538				b := dAtA[iNdEx]
2539				iNdEx++
2540				stringLen |= uint64(b&0x7F) << shift
2541				if b < 0x80 {
2542					break
2543				}
2544			}
2545			intStringLen := int(stringLen)
2546			if intStringLen < 0 {
2547				return ErrInvalidLengthHealthcheck
2548			}
2549			postIndex := iNdEx + intStringLen
2550			if postIndex < 0 {
2551				return ErrInvalidLengthHealthcheck
2552			}
2553			if postIndex > l {
2554				return io.ErrUnexpectedEOF
2555			}
2556			m.TLSServerName = string(dAtA[iNdEx:postIndex])
2557			iNdEx = postIndex
2558		case 20:
2559			if wireType != 2 {
2560				return fmt.Errorf("proto: wrong wireType = %d for field H2PING", wireType)
2561			}
2562			var stringLen uint64
2563			for shift := uint(0); ; shift += 7 {
2564				if shift >= 64 {
2565					return ErrIntOverflowHealthcheck
2566				}
2567				if iNdEx >= l {
2568					return io.ErrUnexpectedEOF
2569				}
2570				b := dAtA[iNdEx]
2571				iNdEx++
2572				stringLen |= uint64(b&0x7F) << shift
2573				if b < 0x80 {
2574					break
2575				}
2576			}
2577			intStringLen := int(stringLen)
2578			if intStringLen < 0 {
2579				return ErrInvalidLengthHealthcheck
2580			}
2581			postIndex := iNdEx + intStringLen
2582			if postIndex < 0 {
2583				return ErrInvalidLengthHealthcheck
2584			}
2585			if postIndex > l {
2586				return io.ErrUnexpectedEOF
2587			}
2588			m.H2PING = string(dAtA[iNdEx:postIndex])
2589			iNdEx = postIndex
2590		default:
2591			iNdEx = preIndex
2592			skippy, err := skipHealthcheck(dAtA[iNdEx:])
2593			if err != nil {
2594				return err
2595			}
2596			if skippy < 0 {
2597				return ErrInvalidLengthHealthcheck
2598			}
2599			if (iNdEx + skippy) < 0 {
2600				return ErrInvalidLengthHealthcheck
2601			}
2602			if (iNdEx + skippy) > l {
2603				return io.ErrUnexpectedEOF
2604			}
2605			iNdEx += skippy
2606		}
2607	}
2608
2609	if iNdEx > l {
2610		return io.ErrUnexpectedEOF
2611	}
2612	return nil
2613}
2614func (m *CheckType) Unmarshal(dAtA []byte) error {
2615	l := len(dAtA)
2616	iNdEx := 0
2617	for iNdEx < l {
2618		preIndex := iNdEx
2619		var wire uint64
2620		for shift := uint(0); ; shift += 7 {
2621			if shift >= 64 {
2622				return ErrIntOverflowHealthcheck
2623			}
2624			if iNdEx >= l {
2625				return io.ErrUnexpectedEOF
2626			}
2627			b := dAtA[iNdEx]
2628			iNdEx++
2629			wire |= uint64(b&0x7F) << shift
2630			if b < 0x80 {
2631				break
2632			}
2633		}
2634		fieldNum := int32(wire >> 3)
2635		wireType := int(wire & 0x7)
2636		if wireType == 4 {
2637			return fmt.Errorf("proto: CheckType: wiretype end group for non-group")
2638		}
2639		if fieldNum <= 0 {
2640			return fmt.Errorf("proto: CheckType: illegal tag %d (wire type %d)", fieldNum, wire)
2641		}
2642		switch fieldNum {
2643		case 1:
2644			if wireType != 2 {
2645				return fmt.Errorf("proto: wrong wireType = %d for field CheckID", wireType)
2646			}
2647			var stringLen uint64
2648			for shift := uint(0); ; shift += 7 {
2649				if shift >= 64 {
2650					return ErrIntOverflowHealthcheck
2651				}
2652				if iNdEx >= l {
2653					return io.ErrUnexpectedEOF
2654				}
2655				b := dAtA[iNdEx]
2656				iNdEx++
2657				stringLen |= uint64(b&0x7F) << shift
2658				if b < 0x80 {
2659					break
2660				}
2661			}
2662			intStringLen := int(stringLen)
2663			if intStringLen < 0 {
2664				return ErrInvalidLengthHealthcheck
2665			}
2666			postIndex := iNdEx + intStringLen
2667			if postIndex < 0 {
2668				return ErrInvalidLengthHealthcheck
2669			}
2670			if postIndex > l {
2671				return io.ErrUnexpectedEOF
2672			}
2673			m.CheckID = github_com_hashicorp_consul_types.CheckID(dAtA[iNdEx:postIndex])
2674			iNdEx = postIndex
2675		case 2:
2676			if wireType != 2 {
2677				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
2678			}
2679			var stringLen uint64
2680			for shift := uint(0); ; shift += 7 {
2681				if shift >= 64 {
2682					return ErrIntOverflowHealthcheck
2683				}
2684				if iNdEx >= l {
2685					return io.ErrUnexpectedEOF
2686				}
2687				b := dAtA[iNdEx]
2688				iNdEx++
2689				stringLen |= uint64(b&0x7F) << shift
2690				if b < 0x80 {
2691					break
2692				}
2693			}
2694			intStringLen := int(stringLen)
2695			if intStringLen < 0 {
2696				return ErrInvalidLengthHealthcheck
2697			}
2698			postIndex := iNdEx + intStringLen
2699			if postIndex < 0 {
2700				return ErrInvalidLengthHealthcheck
2701			}
2702			if postIndex > l {
2703				return io.ErrUnexpectedEOF
2704			}
2705			m.Name = string(dAtA[iNdEx:postIndex])
2706			iNdEx = postIndex
2707		case 3:
2708			if wireType != 2 {
2709				return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
2710			}
2711			var stringLen uint64
2712			for shift := uint(0); ; shift += 7 {
2713				if shift >= 64 {
2714					return ErrIntOverflowHealthcheck
2715				}
2716				if iNdEx >= l {
2717					return io.ErrUnexpectedEOF
2718				}
2719				b := dAtA[iNdEx]
2720				iNdEx++
2721				stringLen |= uint64(b&0x7F) << shift
2722				if b < 0x80 {
2723					break
2724				}
2725			}
2726			intStringLen := int(stringLen)
2727			if intStringLen < 0 {
2728				return ErrInvalidLengthHealthcheck
2729			}
2730			postIndex := iNdEx + intStringLen
2731			if postIndex < 0 {
2732				return ErrInvalidLengthHealthcheck
2733			}
2734			if postIndex > l {
2735				return io.ErrUnexpectedEOF
2736			}
2737			m.Status = string(dAtA[iNdEx:postIndex])
2738			iNdEx = postIndex
2739		case 4:
2740			if wireType != 2 {
2741				return fmt.Errorf("proto: wrong wireType = %d for field Notes", wireType)
2742			}
2743			var stringLen uint64
2744			for shift := uint(0); ; shift += 7 {
2745				if shift >= 64 {
2746					return ErrIntOverflowHealthcheck
2747				}
2748				if iNdEx >= l {
2749					return io.ErrUnexpectedEOF
2750				}
2751				b := dAtA[iNdEx]
2752				iNdEx++
2753				stringLen |= uint64(b&0x7F) << shift
2754				if b < 0x80 {
2755					break
2756				}
2757			}
2758			intStringLen := int(stringLen)
2759			if intStringLen < 0 {
2760				return ErrInvalidLengthHealthcheck
2761			}
2762			postIndex := iNdEx + intStringLen
2763			if postIndex < 0 {
2764				return ErrInvalidLengthHealthcheck
2765			}
2766			if postIndex > l {
2767				return io.ErrUnexpectedEOF
2768			}
2769			m.Notes = string(dAtA[iNdEx:postIndex])
2770			iNdEx = postIndex
2771		case 5:
2772			if wireType != 2 {
2773				return fmt.Errorf("proto: wrong wireType = %d for field ScriptArgs", wireType)
2774			}
2775			var stringLen uint64
2776			for shift := uint(0); ; shift += 7 {
2777				if shift >= 64 {
2778					return ErrIntOverflowHealthcheck
2779				}
2780				if iNdEx >= l {
2781					return io.ErrUnexpectedEOF
2782				}
2783				b := dAtA[iNdEx]
2784				iNdEx++
2785				stringLen |= uint64(b&0x7F) << shift
2786				if b < 0x80 {
2787					break
2788				}
2789			}
2790			intStringLen := int(stringLen)
2791			if intStringLen < 0 {
2792				return ErrInvalidLengthHealthcheck
2793			}
2794			postIndex := iNdEx + intStringLen
2795			if postIndex < 0 {
2796				return ErrInvalidLengthHealthcheck
2797			}
2798			if postIndex > l {
2799				return io.ErrUnexpectedEOF
2800			}
2801			m.ScriptArgs = append(m.ScriptArgs, string(dAtA[iNdEx:postIndex]))
2802			iNdEx = postIndex
2803		case 6:
2804			if wireType != 2 {
2805				return fmt.Errorf("proto: wrong wireType = %d for field HTTP", wireType)
2806			}
2807			var stringLen uint64
2808			for shift := uint(0); ; shift += 7 {
2809				if shift >= 64 {
2810					return ErrIntOverflowHealthcheck
2811				}
2812				if iNdEx >= l {
2813					return io.ErrUnexpectedEOF
2814				}
2815				b := dAtA[iNdEx]
2816				iNdEx++
2817				stringLen |= uint64(b&0x7F) << shift
2818				if b < 0x80 {
2819					break
2820				}
2821			}
2822			intStringLen := int(stringLen)
2823			if intStringLen < 0 {
2824				return ErrInvalidLengthHealthcheck
2825			}
2826			postIndex := iNdEx + intStringLen
2827			if postIndex < 0 {
2828				return ErrInvalidLengthHealthcheck
2829			}
2830			if postIndex > l {
2831				return io.ErrUnexpectedEOF
2832			}
2833			m.HTTP = string(dAtA[iNdEx:postIndex])
2834			iNdEx = postIndex
2835		case 7:
2836			if wireType != 2 {
2837				return fmt.Errorf("proto: wrong wireType = %d for field Method", wireType)
2838			}
2839			var stringLen uint64
2840			for shift := uint(0); ; shift += 7 {
2841				if shift >= 64 {
2842					return ErrIntOverflowHealthcheck
2843				}
2844				if iNdEx >= l {
2845					return io.ErrUnexpectedEOF
2846				}
2847				b := dAtA[iNdEx]
2848				iNdEx++
2849				stringLen |= uint64(b&0x7F) << shift
2850				if b < 0x80 {
2851					break
2852				}
2853			}
2854			intStringLen := int(stringLen)
2855			if intStringLen < 0 {
2856				return ErrInvalidLengthHealthcheck
2857			}
2858			postIndex := iNdEx + intStringLen
2859			if postIndex < 0 {
2860				return ErrInvalidLengthHealthcheck
2861			}
2862			if postIndex > l {
2863				return io.ErrUnexpectedEOF
2864			}
2865			m.Method = string(dAtA[iNdEx:postIndex])
2866			iNdEx = postIndex
2867		case 8:
2868			if wireType != 2 {
2869				return fmt.Errorf("proto: wrong wireType = %d for field TCP", wireType)
2870			}
2871			var stringLen uint64
2872			for shift := uint(0); ; shift += 7 {
2873				if shift >= 64 {
2874					return ErrIntOverflowHealthcheck
2875				}
2876				if iNdEx >= l {
2877					return io.ErrUnexpectedEOF
2878				}
2879				b := dAtA[iNdEx]
2880				iNdEx++
2881				stringLen |= uint64(b&0x7F) << shift
2882				if b < 0x80 {
2883					break
2884				}
2885			}
2886			intStringLen := int(stringLen)
2887			if intStringLen < 0 {
2888				return ErrInvalidLengthHealthcheck
2889			}
2890			postIndex := iNdEx + intStringLen
2891			if postIndex < 0 {
2892				return ErrInvalidLengthHealthcheck
2893			}
2894			if postIndex > l {
2895				return io.ErrUnexpectedEOF
2896			}
2897			m.TCP = string(dAtA[iNdEx:postIndex])
2898			iNdEx = postIndex
2899		case 9:
2900			if wireType != 2 {
2901				return fmt.Errorf("proto: wrong wireType = %d for field Interval", wireType)
2902			}
2903			var msglen int
2904			for shift := uint(0); ; shift += 7 {
2905				if shift >= 64 {
2906					return ErrIntOverflowHealthcheck
2907				}
2908				if iNdEx >= l {
2909					return io.ErrUnexpectedEOF
2910				}
2911				b := dAtA[iNdEx]
2912				iNdEx++
2913				msglen |= int(b&0x7F) << shift
2914				if b < 0x80 {
2915					break
2916				}
2917			}
2918			if msglen < 0 {
2919				return ErrInvalidLengthHealthcheck
2920			}
2921			postIndex := iNdEx + msglen
2922			if postIndex < 0 {
2923				return ErrInvalidLengthHealthcheck
2924			}
2925			if postIndex > l {
2926				return io.ErrUnexpectedEOF
2927			}
2928			if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(&m.Interval, dAtA[iNdEx:postIndex]); err != nil {
2929				return err
2930			}
2931			iNdEx = postIndex
2932		case 10:
2933			if wireType != 2 {
2934				return fmt.Errorf("proto: wrong wireType = %d for field AliasNode", wireType)
2935			}
2936			var stringLen uint64
2937			for shift := uint(0); ; shift += 7 {
2938				if shift >= 64 {
2939					return ErrIntOverflowHealthcheck
2940				}
2941				if iNdEx >= l {
2942					return io.ErrUnexpectedEOF
2943				}
2944				b := dAtA[iNdEx]
2945				iNdEx++
2946				stringLen |= uint64(b&0x7F) << shift
2947				if b < 0x80 {
2948					break
2949				}
2950			}
2951			intStringLen := int(stringLen)
2952			if intStringLen < 0 {
2953				return ErrInvalidLengthHealthcheck
2954			}
2955			postIndex := iNdEx + intStringLen
2956			if postIndex < 0 {
2957				return ErrInvalidLengthHealthcheck
2958			}
2959			if postIndex > l {
2960				return io.ErrUnexpectedEOF
2961			}
2962			m.AliasNode = string(dAtA[iNdEx:postIndex])
2963			iNdEx = postIndex
2964		case 11:
2965			if wireType != 2 {
2966				return fmt.Errorf("proto: wrong wireType = %d for field AliasService", wireType)
2967			}
2968			var stringLen uint64
2969			for shift := uint(0); ; shift += 7 {
2970				if shift >= 64 {
2971					return ErrIntOverflowHealthcheck
2972				}
2973				if iNdEx >= l {
2974					return io.ErrUnexpectedEOF
2975				}
2976				b := dAtA[iNdEx]
2977				iNdEx++
2978				stringLen |= uint64(b&0x7F) << shift
2979				if b < 0x80 {
2980					break
2981				}
2982			}
2983			intStringLen := int(stringLen)
2984			if intStringLen < 0 {
2985				return ErrInvalidLengthHealthcheck
2986			}
2987			postIndex := iNdEx + intStringLen
2988			if postIndex < 0 {
2989				return ErrInvalidLengthHealthcheck
2990			}
2991			if postIndex > l {
2992				return io.ErrUnexpectedEOF
2993			}
2994			m.AliasService = string(dAtA[iNdEx:postIndex])
2995			iNdEx = postIndex
2996		case 12:
2997			if wireType != 2 {
2998				return fmt.Errorf("proto: wrong wireType = %d for field DockerContainerID", wireType)
2999			}
3000			var stringLen uint64
3001			for shift := uint(0); ; shift += 7 {
3002				if shift >= 64 {
3003					return ErrIntOverflowHealthcheck
3004				}
3005				if iNdEx >= l {
3006					return io.ErrUnexpectedEOF
3007				}
3008				b := dAtA[iNdEx]
3009				iNdEx++
3010				stringLen |= uint64(b&0x7F) << shift
3011				if b < 0x80 {
3012					break
3013				}
3014			}
3015			intStringLen := int(stringLen)
3016			if intStringLen < 0 {
3017				return ErrInvalidLengthHealthcheck
3018			}
3019			postIndex := iNdEx + intStringLen
3020			if postIndex < 0 {
3021				return ErrInvalidLengthHealthcheck
3022			}
3023			if postIndex > l {
3024				return io.ErrUnexpectedEOF
3025			}
3026			m.DockerContainerID = string(dAtA[iNdEx:postIndex])
3027			iNdEx = postIndex
3028		case 13:
3029			if wireType != 2 {
3030				return fmt.Errorf("proto: wrong wireType = %d for field Shell", wireType)
3031			}
3032			var stringLen uint64
3033			for shift := uint(0); ; shift += 7 {
3034				if shift >= 64 {
3035					return ErrIntOverflowHealthcheck
3036				}
3037				if iNdEx >= l {
3038					return io.ErrUnexpectedEOF
3039				}
3040				b := dAtA[iNdEx]
3041				iNdEx++
3042				stringLen |= uint64(b&0x7F) << shift
3043				if b < 0x80 {
3044					break
3045				}
3046			}
3047			intStringLen := int(stringLen)
3048			if intStringLen < 0 {
3049				return ErrInvalidLengthHealthcheck
3050			}
3051			postIndex := iNdEx + intStringLen
3052			if postIndex < 0 {
3053				return ErrInvalidLengthHealthcheck
3054			}
3055			if postIndex > l {
3056				return io.ErrUnexpectedEOF
3057			}
3058			m.Shell = string(dAtA[iNdEx:postIndex])
3059			iNdEx = postIndex
3060		case 14:
3061			if wireType != 2 {
3062				return fmt.Errorf("proto: wrong wireType = %d for field GRPC", wireType)
3063			}
3064			var stringLen uint64
3065			for shift := uint(0); ; shift += 7 {
3066				if shift >= 64 {
3067					return ErrIntOverflowHealthcheck
3068				}
3069				if iNdEx >= l {
3070					return io.ErrUnexpectedEOF
3071				}
3072				b := dAtA[iNdEx]
3073				iNdEx++
3074				stringLen |= uint64(b&0x7F) << shift
3075				if b < 0x80 {
3076					break
3077				}
3078			}
3079			intStringLen := int(stringLen)
3080			if intStringLen < 0 {
3081				return ErrInvalidLengthHealthcheck
3082			}
3083			postIndex := iNdEx + intStringLen
3084			if postIndex < 0 {
3085				return ErrInvalidLengthHealthcheck
3086			}
3087			if postIndex > l {
3088				return io.ErrUnexpectedEOF
3089			}
3090			m.GRPC = string(dAtA[iNdEx:postIndex])
3091			iNdEx = postIndex
3092		case 15:
3093			if wireType != 0 {
3094				return fmt.Errorf("proto: wrong wireType = %d for field GRPCUseTLS", wireType)
3095			}
3096			var v int
3097			for shift := uint(0); ; shift += 7 {
3098				if shift >= 64 {
3099					return ErrIntOverflowHealthcheck
3100				}
3101				if iNdEx >= l {
3102					return io.ErrUnexpectedEOF
3103				}
3104				b := dAtA[iNdEx]
3105				iNdEx++
3106				v |= int(b&0x7F) << shift
3107				if b < 0x80 {
3108					break
3109				}
3110			}
3111			m.GRPCUseTLS = bool(v != 0)
3112		case 16:
3113			if wireType != 0 {
3114				return fmt.Errorf("proto: wrong wireType = %d for field TLSSkipVerify", wireType)
3115			}
3116			var v int
3117			for shift := uint(0); ; shift += 7 {
3118				if shift >= 64 {
3119					return ErrIntOverflowHealthcheck
3120				}
3121				if iNdEx >= l {
3122					return io.ErrUnexpectedEOF
3123				}
3124				b := dAtA[iNdEx]
3125				iNdEx++
3126				v |= int(b&0x7F) << shift
3127				if b < 0x80 {
3128					break
3129				}
3130			}
3131			m.TLSSkipVerify = bool(v != 0)
3132		case 17:
3133			if wireType != 2 {
3134				return fmt.Errorf("proto: wrong wireType = %d for field Timeout", wireType)
3135			}
3136			var msglen int
3137			for shift := uint(0); ; shift += 7 {
3138				if shift >= 64 {
3139					return ErrIntOverflowHealthcheck
3140				}
3141				if iNdEx >= l {
3142					return io.ErrUnexpectedEOF
3143				}
3144				b := dAtA[iNdEx]
3145				iNdEx++
3146				msglen |= int(b&0x7F) << shift
3147				if b < 0x80 {
3148					break
3149				}
3150			}
3151			if msglen < 0 {
3152				return ErrInvalidLengthHealthcheck
3153			}
3154			postIndex := iNdEx + msglen
3155			if postIndex < 0 {
3156				return ErrInvalidLengthHealthcheck
3157			}
3158			if postIndex > l {
3159				return io.ErrUnexpectedEOF
3160			}
3161			if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(&m.Timeout, dAtA[iNdEx:postIndex]); err != nil {
3162				return err
3163			}
3164			iNdEx = postIndex
3165		case 18:
3166			if wireType != 2 {
3167				return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType)
3168			}
3169			var msglen int
3170			for shift := uint(0); ; shift += 7 {
3171				if shift >= 64 {
3172					return ErrIntOverflowHealthcheck
3173				}
3174				if iNdEx >= l {
3175					return io.ErrUnexpectedEOF
3176				}
3177				b := dAtA[iNdEx]
3178				iNdEx++
3179				msglen |= int(b&0x7F) << shift
3180				if b < 0x80 {
3181					break
3182				}
3183			}
3184			if msglen < 0 {
3185				return ErrInvalidLengthHealthcheck
3186			}
3187			postIndex := iNdEx + msglen
3188			if postIndex < 0 {
3189				return ErrInvalidLengthHealthcheck
3190			}
3191			if postIndex > l {
3192				return io.ErrUnexpectedEOF
3193			}
3194			if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(&m.TTL, dAtA[iNdEx:postIndex]); err != nil {
3195				return err
3196			}
3197			iNdEx = postIndex
3198		case 19:
3199			if wireType != 2 {
3200				return fmt.Errorf("proto: wrong wireType = %d for field DeregisterCriticalServiceAfter", wireType)
3201			}
3202			var msglen int
3203			for shift := uint(0); ; shift += 7 {
3204				if shift >= 64 {
3205					return ErrIntOverflowHealthcheck
3206				}
3207				if iNdEx >= l {
3208					return io.ErrUnexpectedEOF
3209				}
3210				b := dAtA[iNdEx]
3211				iNdEx++
3212				msglen |= int(b&0x7F) << shift
3213				if b < 0x80 {
3214					break
3215				}
3216			}
3217			if msglen < 0 {
3218				return ErrInvalidLengthHealthcheck
3219			}
3220			postIndex := iNdEx + msglen
3221			if postIndex < 0 {
3222				return ErrInvalidLengthHealthcheck
3223			}
3224			if postIndex > l {
3225				return io.ErrUnexpectedEOF
3226			}
3227			if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(&m.DeregisterCriticalServiceAfter, dAtA[iNdEx:postIndex]); err != nil {
3228				return err
3229			}
3230			iNdEx = postIndex
3231		case 20:
3232			if wireType != 2 {
3233				return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
3234			}
3235			var msglen int
3236			for shift := uint(0); ; shift += 7 {
3237				if shift >= 64 {
3238					return ErrIntOverflowHealthcheck
3239				}
3240				if iNdEx >= l {
3241					return io.ErrUnexpectedEOF
3242				}
3243				b := dAtA[iNdEx]
3244				iNdEx++
3245				msglen |= int(b&0x7F) << shift
3246				if b < 0x80 {
3247					break
3248				}
3249			}
3250			if msglen < 0 {
3251				return ErrInvalidLengthHealthcheck
3252			}
3253			postIndex := iNdEx + msglen
3254			if postIndex < 0 {
3255				return ErrInvalidLengthHealthcheck
3256			}
3257			if postIndex > l {
3258				return io.ErrUnexpectedEOF
3259			}
3260			if m.Header == nil {
3261				m.Header = make(map[string]HeaderValue)
3262			}
3263			var mapkey string
3264			mapvalue := &HeaderValue{}
3265			for iNdEx < postIndex {
3266				entryPreIndex := iNdEx
3267				var wire uint64
3268				for shift := uint(0); ; shift += 7 {
3269					if shift >= 64 {
3270						return ErrIntOverflowHealthcheck
3271					}
3272					if iNdEx >= l {
3273						return io.ErrUnexpectedEOF
3274					}
3275					b := dAtA[iNdEx]
3276					iNdEx++
3277					wire |= uint64(b&0x7F) << shift
3278					if b < 0x80 {
3279						break
3280					}
3281				}
3282				fieldNum := int32(wire >> 3)
3283				if fieldNum == 1 {
3284					var stringLenmapkey uint64
3285					for shift := uint(0); ; shift += 7 {
3286						if shift >= 64 {
3287							return ErrIntOverflowHealthcheck
3288						}
3289						if iNdEx >= l {
3290							return io.ErrUnexpectedEOF
3291						}
3292						b := dAtA[iNdEx]
3293						iNdEx++
3294						stringLenmapkey |= uint64(b&0x7F) << shift
3295						if b < 0x80 {
3296							break
3297						}
3298					}
3299					intStringLenmapkey := int(stringLenmapkey)
3300					if intStringLenmapkey < 0 {
3301						return ErrInvalidLengthHealthcheck
3302					}
3303					postStringIndexmapkey := iNdEx + intStringLenmapkey
3304					if postStringIndexmapkey < 0 {
3305						return ErrInvalidLengthHealthcheck
3306					}
3307					if postStringIndexmapkey > l {
3308						return io.ErrUnexpectedEOF
3309					}
3310					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
3311					iNdEx = postStringIndexmapkey
3312				} else if fieldNum == 2 {
3313					var mapmsglen int
3314					for shift := uint(0); ; shift += 7 {
3315						if shift >= 64 {
3316							return ErrIntOverflowHealthcheck
3317						}
3318						if iNdEx >= l {
3319							return io.ErrUnexpectedEOF
3320						}
3321						b := dAtA[iNdEx]
3322						iNdEx++
3323						mapmsglen |= int(b&0x7F) << shift
3324						if b < 0x80 {
3325							break
3326						}
3327					}
3328					if mapmsglen < 0 {
3329						return ErrInvalidLengthHealthcheck
3330					}
3331					postmsgIndex := iNdEx + mapmsglen
3332					if postmsgIndex < 0 {
3333						return ErrInvalidLengthHealthcheck
3334					}
3335					if postmsgIndex > l {
3336						return io.ErrUnexpectedEOF
3337					}
3338					mapvalue = &HeaderValue{}
3339					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
3340						return err
3341					}
3342					iNdEx = postmsgIndex
3343				} else {
3344					iNdEx = entryPreIndex
3345					skippy, err := skipHealthcheck(dAtA[iNdEx:])
3346					if err != nil {
3347						return err
3348					}
3349					if skippy < 0 {
3350						return ErrInvalidLengthHealthcheck
3351					}
3352					if (iNdEx + skippy) > postIndex {
3353						return io.ErrUnexpectedEOF
3354					}
3355					iNdEx += skippy
3356				}
3357			}
3358			m.Header[mapkey] = *mapvalue
3359			iNdEx = postIndex
3360		case 21:
3361			if wireType != 0 {
3362				return fmt.Errorf("proto: wrong wireType = %d for field SuccessBeforePassing", wireType)
3363			}
3364			m.SuccessBeforePassing = 0
3365			for shift := uint(0); ; shift += 7 {
3366				if shift >= 64 {
3367					return ErrIntOverflowHealthcheck
3368				}
3369				if iNdEx >= l {
3370					return io.ErrUnexpectedEOF
3371				}
3372				b := dAtA[iNdEx]
3373				iNdEx++
3374				m.SuccessBeforePassing |= int32(b&0x7F) << shift
3375				if b < 0x80 {
3376					break
3377				}
3378			}
3379		case 22:
3380			if wireType != 0 {
3381				return fmt.Errorf("proto: wrong wireType = %d for field FailuresBeforeCritical", wireType)
3382			}
3383			m.FailuresBeforeCritical = 0
3384			for shift := uint(0); ; shift += 7 {
3385				if shift >= 64 {
3386					return ErrIntOverflowHealthcheck
3387				}
3388				if iNdEx >= l {
3389					return io.ErrUnexpectedEOF
3390				}
3391				b := dAtA[iNdEx]
3392				iNdEx++
3393				m.FailuresBeforeCritical |= int32(b&0x7F) << shift
3394				if b < 0x80 {
3395					break
3396				}
3397			}
3398		case 23:
3399			if wireType != 2 {
3400				return fmt.Errorf("proto: wrong wireType = %d for field ProxyHTTP", wireType)
3401			}
3402			var stringLen uint64
3403			for shift := uint(0); ; shift += 7 {
3404				if shift >= 64 {
3405					return ErrIntOverflowHealthcheck
3406				}
3407				if iNdEx >= l {
3408					return io.ErrUnexpectedEOF
3409				}
3410				b := dAtA[iNdEx]
3411				iNdEx++
3412				stringLen |= uint64(b&0x7F) << shift
3413				if b < 0x80 {
3414					break
3415				}
3416			}
3417			intStringLen := int(stringLen)
3418			if intStringLen < 0 {
3419				return ErrInvalidLengthHealthcheck
3420			}
3421			postIndex := iNdEx + intStringLen
3422			if postIndex < 0 {
3423				return ErrInvalidLengthHealthcheck
3424			}
3425			if postIndex > l {
3426				return io.ErrUnexpectedEOF
3427			}
3428			m.ProxyHTTP = string(dAtA[iNdEx:postIndex])
3429			iNdEx = postIndex
3430		case 24:
3431			if wireType != 2 {
3432				return fmt.Errorf("proto: wrong wireType = %d for field ProxyGRPC", wireType)
3433			}
3434			var stringLen uint64
3435			for shift := uint(0); ; shift += 7 {
3436				if shift >= 64 {
3437					return ErrIntOverflowHealthcheck
3438				}
3439				if iNdEx >= l {
3440					return io.ErrUnexpectedEOF
3441				}
3442				b := dAtA[iNdEx]
3443				iNdEx++
3444				stringLen |= uint64(b&0x7F) << shift
3445				if b < 0x80 {
3446					break
3447				}
3448			}
3449			intStringLen := int(stringLen)
3450			if intStringLen < 0 {
3451				return ErrInvalidLengthHealthcheck
3452			}
3453			postIndex := iNdEx + intStringLen
3454			if postIndex < 0 {
3455				return ErrInvalidLengthHealthcheck
3456			}
3457			if postIndex > l {
3458				return io.ErrUnexpectedEOF
3459			}
3460			m.ProxyGRPC = string(dAtA[iNdEx:postIndex])
3461			iNdEx = postIndex
3462		case 25:
3463			if wireType != 0 {
3464				return fmt.Errorf("proto: wrong wireType = %d for field OutputMaxSize", wireType)
3465			}
3466			m.OutputMaxSize = 0
3467			for shift := uint(0); ; shift += 7 {
3468				if shift >= 64 {
3469					return ErrIntOverflowHealthcheck
3470				}
3471				if iNdEx >= l {
3472					return io.ErrUnexpectedEOF
3473				}
3474				b := dAtA[iNdEx]
3475				iNdEx++
3476				m.OutputMaxSize |= int32(b&0x7F) << shift
3477				if b < 0x80 {
3478					break
3479				}
3480			}
3481		case 26:
3482			if wireType != 2 {
3483				return fmt.Errorf("proto: wrong wireType = %d for field Body", wireType)
3484			}
3485			var stringLen uint64
3486			for shift := uint(0); ; shift += 7 {
3487				if shift >= 64 {
3488					return ErrIntOverflowHealthcheck
3489				}
3490				if iNdEx >= l {
3491					return io.ErrUnexpectedEOF
3492				}
3493				b := dAtA[iNdEx]
3494				iNdEx++
3495				stringLen |= uint64(b&0x7F) << shift
3496				if b < 0x80 {
3497					break
3498				}
3499			}
3500			intStringLen := int(stringLen)
3501			if intStringLen < 0 {
3502				return ErrInvalidLengthHealthcheck
3503			}
3504			postIndex := iNdEx + intStringLen
3505			if postIndex < 0 {
3506				return ErrInvalidLengthHealthcheck
3507			}
3508			if postIndex > l {
3509				return io.ErrUnexpectedEOF
3510			}
3511			m.Body = string(dAtA[iNdEx:postIndex])
3512			iNdEx = postIndex
3513		case 27:
3514			if wireType != 2 {
3515				return fmt.Errorf("proto: wrong wireType = %d for field TLSServerName", wireType)
3516			}
3517			var stringLen uint64
3518			for shift := uint(0); ; shift += 7 {
3519				if shift >= 64 {
3520					return ErrIntOverflowHealthcheck
3521				}
3522				if iNdEx >= l {
3523					return io.ErrUnexpectedEOF
3524				}
3525				b := dAtA[iNdEx]
3526				iNdEx++
3527				stringLen |= uint64(b&0x7F) << shift
3528				if b < 0x80 {
3529					break
3530				}
3531			}
3532			intStringLen := int(stringLen)
3533			if intStringLen < 0 {
3534				return ErrInvalidLengthHealthcheck
3535			}
3536			postIndex := iNdEx + intStringLen
3537			if postIndex < 0 {
3538				return ErrInvalidLengthHealthcheck
3539			}
3540			if postIndex > l {
3541				return io.ErrUnexpectedEOF
3542			}
3543			m.TLSServerName = string(dAtA[iNdEx:postIndex])
3544			iNdEx = postIndex
3545		case 28:
3546			if wireType != 2 {
3547				return fmt.Errorf("proto: wrong wireType = %d for field H2PING", wireType)
3548			}
3549			var stringLen uint64
3550			for shift := uint(0); ; shift += 7 {
3551				if shift >= 64 {
3552					return ErrIntOverflowHealthcheck
3553				}
3554				if iNdEx >= l {
3555					return io.ErrUnexpectedEOF
3556				}
3557				b := dAtA[iNdEx]
3558				iNdEx++
3559				stringLen |= uint64(b&0x7F) << shift
3560				if b < 0x80 {
3561					break
3562				}
3563			}
3564			intStringLen := int(stringLen)
3565			if intStringLen < 0 {
3566				return ErrInvalidLengthHealthcheck
3567			}
3568			postIndex := iNdEx + intStringLen
3569			if postIndex < 0 {
3570				return ErrInvalidLengthHealthcheck
3571			}
3572			if postIndex > l {
3573				return io.ErrUnexpectedEOF
3574			}
3575			m.H2PING = string(dAtA[iNdEx:postIndex])
3576			iNdEx = postIndex
3577		default:
3578			iNdEx = preIndex
3579			skippy, err := skipHealthcheck(dAtA[iNdEx:])
3580			if err != nil {
3581				return err
3582			}
3583			if skippy < 0 {
3584				return ErrInvalidLengthHealthcheck
3585			}
3586			if (iNdEx + skippy) < 0 {
3587				return ErrInvalidLengthHealthcheck
3588			}
3589			if (iNdEx + skippy) > l {
3590				return io.ErrUnexpectedEOF
3591			}
3592			iNdEx += skippy
3593		}
3594	}
3595
3596	if iNdEx > l {
3597		return io.ErrUnexpectedEOF
3598	}
3599	return nil
3600}
3601func skipHealthcheck(dAtA []byte) (n int, err error) {
3602	l := len(dAtA)
3603	iNdEx := 0
3604	for iNdEx < l {
3605		var wire uint64
3606		for shift := uint(0); ; shift += 7 {
3607			if shift >= 64 {
3608				return 0, ErrIntOverflowHealthcheck
3609			}
3610			if iNdEx >= l {
3611				return 0, io.ErrUnexpectedEOF
3612			}
3613			b := dAtA[iNdEx]
3614			iNdEx++
3615			wire |= (uint64(b) & 0x7F) << shift
3616			if b < 0x80 {
3617				break
3618			}
3619		}
3620		wireType := int(wire & 0x7)
3621		switch wireType {
3622		case 0:
3623			for shift := uint(0); ; shift += 7 {
3624				if shift >= 64 {
3625					return 0, ErrIntOverflowHealthcheck
3626				}
3627				if iNdEx >= l {
3628					return 0, io.ErrUnexpectedEOF
3629				}
3630				iNdEx++
3631				if dAtA[iNdEx-1] < 0x80 {
3632					break
3633				}
3634			}
3635			return iNdEx, nil
3636		case 1:
3637			iNdEx += 8
3638			return iNdEx, nil
3639		case 2:
3640			var length int
3641			for shift := uint(0); ; shift += 7 {
3642				if shift >= 64 {
3643					return 0, ErrIntOverflowHealthcheck
3644				}
3645				if iNdEx >= l {
3646					return 0, io.ErrUnexpectedEOF
3647				}
3648				b := dAtA[iNdEx]
3649				iNdEx++
3650				length |= (int(b) & 0x7F) << shift
3651				if b < 0x80 {
3652					break
3653				}
3654			}
3655			if length < 0 {
3656				return 0, ErrInvalidLengthHealthcheck
3657			}
3658			iNdEx += length
3659			if iNdEx < 0 {
3660				return 0, ErrInvalidLengthHealthcheck
3661			}
3662			return iNdEx, nil
3663		case 3:
3664			for {
3665				var innerWire uint64
3666				var start int = iNdEx
3667				for shift := uint(0); ; shift += 7 {
3668					if shift >= 64 {
3669						return 0, ErrIntOverflowHealthcheck
3670					}
3671					if iNdEx >= l {
3672						return 0, io.ErrUnexpectedEOF
3673					}
3674					b := dAtA[iNdEx]
3675					iNdEx++
3676					innerWire |= (uint64(b) & 0x7F) << shift
3677					if b < 0x80 {
3678						break
3679					}
3680				}
3681				innerWireType := int(innerWire & 0x7)
3682				if innerWireType == 4 {
3683					break
3684				}
3685				next, err := skipHealthcheck(dAtA[start:])
3686				if err != nil {
3687					return 0, err
3688				}
3689				iNdEx = start + next
3690				if iNdEx < 0 {
3691					return 0, ErrInvalidLengthHealthcheck
3692				}
3693			}
3694			return iNdEx, nil
3695		case 4:
3696			return iNdEx, nil
3697		case 5:
3698			iNdEx += 4
3699			return iNdEx, nil
3700		default:
3701			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
3702		}
3703	}
3704	panic("unreachable")
3705}
3706
3707var (
3708	ErrInvalidLengthHealthcheck = fmt.Errorf("proto: negative length found during unmarshaling")
3709	ErrIntOverflowHealthcheck   = fmt.Errorf("proto: integer overflow")
3710)
3711