// Code generated by protoc-gen-go. DO NOT EDIT.
// source: yandex/cloud/loadbalancer/v1/health_check.proto

package loadbalancer

import (
	fmt "fmt"
	proto "github.com/golang/protobuf/proto"
	duration "github.com/golang/protobuf/ptypes/duration"
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	math "math"
)

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package

// A HealthCheck resource. For more information, see [Health check](/docs/load-balancer/concepts/health-check).
type HealthCheck struct {
	// Name of the health check. The name must be unique for each target group that attached to a single load balancer. 3-63 characters long.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The interval between health checks. The default is 2 seconds.
	Interval *duration.Duration `protobuf:"bytes,2,opt,name=interval,proto3" json:"interval,omitempty"`
	// Timeout for a target to return a response for the health check. The default is 1 second.
	Timeout *duration.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// Number of failed health checks before changing the status to `` UNHEALTHY ``. The default is 2.
	UnhealthyThreshold int64 `protobuf:"varint,4,opt,name=unhealthy_threshold,json=unhealthyThreshold,proto3" json:"unhealthy_threshold,omitempty"`
	// Number of successful health checks required in order to set the `` HEALTHY `` status for the target. The default is 2.
	HealthyThreshold int64 `protobuf:"varint,5,opt,name=healthy_threshold,json=healthyThreshold,proto3" json:"healthy_threshold,omitempty"`
	// Protocol to use for the health check. Either TCP or HTTP.
	//
	// Types that are valid to be assigned to Options:
	//	*HealthCheck_TcpOptions_
	//	*HealthCheck_HttpOptions_
	Options              isHealthCheck_Options `protobuf_oneof:"options"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (m *HealthCheck) Reset()         { *m = HealthCheck{} }
func (m *HealthCheck) String() string { return proto.CompactTextString(m) }
func (*HealthCheck) ProtoMessage()    {}
func (*HealthCheck) Descriptor() ([]byte, []int) {
	return fileDescriptor_9b62ad9bb627f411, []int{0}
}

func (m *HealthCheck) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_HealthCheck.Unmarshal(m, b)
}
func (m *HealthCheck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_HealthCheck.Marshal(b, m, deterministic)
}
func (m *HealthCheck) XXX_Merge(src proto.Message) {
	xxx_messageInfo_HealthCheck.Merge(m, src)
}
func (m *HealthCheck) XXX_Size() int {
	return xxx_messageInfo_HealthCheck.Size(m)
}
func (m *HealthCheck) XXX_DiscardUnknown() {
	xxx_messageInfo_HealthCheck.DiscardUnknown(m)
}

var xxx_messageInfo_HealthCheck proto.InternalMessageInfo

func (m *HealthCheck) GetName() string {
	if m != nil {
		return m.Name
	}
	return ""
}

func (m *HealthCheck) GetInterval() *duration.Duration {
	if m != nil {
		return m.Interval
	}
	return nil
}

func (m *HealthCheck) GetTimeout() *duration.Duration {
	if m != nil {
		return m.Timeout
	}
	return nil
}

func (m *HealthCheck) GetUnhealthyThreshold() int64 {
	if m != nil {
		return m.UnhealthyThreshold
	}
	return 0
}

func (m *HealthCheck) GetHealthyThreshold() int64 {
	if m != nil {
		return m.HealthyThreshold
	}
	return 0
}

type isHealthCheck_Options interface {
	isHealthCheck_Options()
}

type HealthCheck_TcpOptions_ struct {
	TcpOptions *HealthCheck_TcpOptions `protobuf:"bytes,6,opt,name=tcp_options,json=tcpOptions,proto3,oneof"`
}

type HealthCheck_HttpOptions_ struct {
	HttpOptions *HealthCheck_HttpOptions `protobuf:"bytes,7,opt,name=http_options,json=httpOptions,proto3,oneof"`
}

func (*HealthCheck_TcpOptions_) isHealthCheck_Options() {}

func (*HealthCheck_HttpOptions_) isHealthCheck_Options() {}

func (m *HealthCheck) GetOptions() isHealthCheck_Options {
	if m != nil {
		return m.Options
	}
	return nil
}

func (m *HealthCheck) GetTcpOptions() *HealthCheck_TcpOptions {
	if x, ok := m.GetOptions().(*HealthCheck_TcpOptions_); ok {
		return x.TcpOptions
	}
	return nil
}

func (m *HealthCheck) GetHttpOptions() *HealthCheck_HttpOptions {
	if x, ok := m.GetOptions().(*HealthCheck_HttpOptions_); ok {
		return x.HttpOptions
	}
	return nil
}

// XXX_OneofWrappers is for the internal use of the proto package.
func (*HealthCheck) XXX_OneofWrappers() []interface{} {
	return []interface{}{
		(*HealthCheck_TcpOptions_)(nil),
		(*HealthCheck_HttpOptions_)(nil),
	}
}

// Configuration option for a TCP health check.
type HealthCheck_TcpOptions struct {
	// Port to use for TCP health checks.
	Port                 int64    `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *HealthCheck_TcpOptions) Reset()         { *m = HealthCheck_TcpOptions{} }
func (m *HealthCheck_TcpOptions) String() string { return proto.CompactTextString(m) }
func (*HealthCheck_TcpOptions) ProtoMessage()    {}
func (*HealthCheck_TcpOptions) Descriptor() ([]byte, []int) {
	return fileDescriptor_9b62ad9bb627f411, []int{0, 0}
}

func (m *HealthCheck_TcpOptions) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_HealthCheck_TcpOptions.Unmarshal(m, b)
}
func (m *HealthCheck_TcpOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_HealthCheck_TcpOptions.Marshal(b, m, deterministic)
}
func (m *HealthCheck_TcpOptions) XXX_Merge(src proto.Message) {
	xxx_messageInfo_HealthCheck_TcpOptions.Merge(m, src)
}
func (m *HealthCheck_TcpOptions) XXX_Size() int {
	return xxx_messageInfo_HealthCheck_TcpOptions.Size(m)
}
func (m *HealthCheck_TcpOptions) XXX_DiscardUnknown() {
	xxx_messageInfo_HealthCheck_TcpOptions.DiscardUnknown(m)
}

var xxx_messageInfo_HealthCheck_TcpOptions proto.InternalMessageInfo

func (m *HealthCheck_TcpOptions) GetPort() int64 {
	if m != nil {
		return m.Port
	}
	return 0
}

// Configuration option for an HTTP health check.
type HealthCheck_HttpOptions struct {
	// Port to use for HTTP health checks.
	Port int64 `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"`
	// URL path to set for health checking requests for every target in the target group.
	// For example `` /ping ``. The default path is `` / ``.
	Path                 string   `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *HealthCheck_HttpOptions) Reset()         { *m = HealthCheck_HttpOptions{} }
func (m *HealthCheck_HttpOptions) String() string { return proto.CompactTextString(m) }
func (*HealthCheck_HttpOptions) ProtoMessage()    {}
func (*HealthCheck_HttpOptions) Descriptor() ([]byte, []int) {
	return fileDescriptor_9b62ad9bb627f411, []int{0, 1}
}

func (m *HealthCheck_HttpOptions) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_HealthCheck_HttpOptions.Unmarshal(m, b)
}
func (m *HealthCheck_HttpOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_HealthCheck_HttpOptions.Marshal(b, m, deterministic)
}
func (m *HealthCheck_HttpOptions) XXX_Merge(src proto.Message) {
	xxx_messageInfo_HealthCheck_HttpOptions.Merge(m, src)
}
func (m *HealthCheck_HttpOptions) XXX_Size() int {
	return xxx_messageInfo_HealthCheck_HttpOptions.Size(m)
}
func (m *HealthCheck_HttpOptions) XXX_DiscardUnknown() {
	xxx_messageInfo_HealthCheck_HttpOptions.DiscardUnknown(m)
}

var xxx_messageInfo_HealthCheck_HttpOptions proto.InternalMessageInfo

func (m *HealthCheck_HttpOptions) GetPort() int64 {
	if m != nil {
		return m.Port
	}
	return 0
}

func (m *HealthCheck_HttpOptions) GetPath() string {
	if m != nil {
		return m.Path
	}
	return ""
}

func init() {
	proto.RegisterType((*HealthCheck)(nil), "yandex.cloud.loadbalancer.v1.HealthCheck")
	proto.RegisterType((*HealthCheck_TcpOptions)(nil), "yandex.cloud.loadbalancer.v1.HealthCheck.TcpOptions")
	proto.RegisterType((*HealthCheck_HttpOptions)(nil), "yandex.cloud.loadbalancer.v1.HealthCheck.HttpOptions")
}

func init() {
	proto.RegisterFile("yandex/cloud/loadbalancer/v1/health_check.proto", fileDescriptor_9b62ad9bb627f411)
}

var fileDescriptor_9b62ad9bb627f411 = []byte{
	// 446 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xc1, 0x6f, 0xd3, 0x30,
	0x14, 0xc6, 0x09, 0x0d, 0xeb, 0xf6, 0x82, 0x04, 0x98, 0x4b, 0xa8, 0x18, 0x54, 0x48, 0x48, 0x3d,
	0x60, 0x67, 0x6e, 0xe9, 0xa6, 0x8a, 0x5b, 0xe0, 0xd0, 0x0b, 0x9a, 0x14, 0x4d, 0x42, 0x5a, 0x35,
	0x55, 0x6e, 0x62, 0xe2, 0x88, 0x34, 0x8e, 0xb2, 0x97, 0x8a, 0x0d, 0xf8, 0xdf, 0xe0, 0xd4, 0x3f,
	0x83, 0x2b, 0x67, 0x8e, 0x3b, 0xa1, 0x39, 0x69, 0x1b, 0x98, 0xb4, 0x72, 0xcb, 0x93, 0xbf, 0xdf,
	0xf7, 0xbe, 0xf8, 0x3d, 0x83, 0x77, 0x21, 0xb2, 0x48, 0x7e, 0xf6, 0xc2, 0x54, 0x97, 0x91, 0x97,
	0x6a, 0x11, 0xcd, 0x44, 0x2a, 0xb2, 0x50, 0x16, 0xde, 0x82, 0x7b, 0x4a, 0x8a, 0x14, 0xd5, 0x34,
	0x54, 0x32, 0xfc, 0xc4, 0xf2, 0x42, 0xa3, 0x26, 0x4f, 0x2b, 0x80, 0x19, 0x80, 0x35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