// Copyright IBM Corp. 2020, 2026
// SPDX-License-Identifier: BUSL-1.1

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        (unknown)
// source: worker/health/v1/health_service.proto

package health

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type HealthInfo struct {
	state                   protoimpl.MessageState  `protogen:"open.v1"`
	State                   string                  `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
	ActiveSessionCount      *wrapperspb.UInt32Value `protobuf:"bytes,2,opt,name=active_session_count,json=active_connection_count,proto3" json:"active_session_count,omitempty"`
	SessionConnections      map[string]uint32       `protobuf:"bytes,3,rep,name=session_connections,proto3" json:"session_connections,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
	UpstreamConnectionState string                  `protobuf:"bytes,4,opt,name=upstream_connection_state,proto3" json:"upstream_connection_state,omitempty"`
	unknownFields           protoimpl.UnknownFields
	sizeCache               protoimpl.SizeCache
}

func (x *HealthInfo) Reset() {
	*x = HealthInfo{}
	mi := &file_worker_health_v1_health_service_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *HealthInfo) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*HealthInfo) ProtoMessage() {}

func (x *HealthInfo) ProtoReflect() protoreflect.Message {
	mi := &file_worker_health_v1_health_service_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use HealthInfo.ProtoReflect.Descriptor instead.
func (*HealthInfo) Descriptor() ([]byte, []int) {
	return file_worker_health_v1_health_service_proto_rawDescGZIP(), []int{0}
}

func (x *HealthInfo) GetState() string {
	if x != nil {
		return x.State
	}
	return ""
}

func (x *HealthInfo) GetActiveSessionCount() *wrapperspb.UInt32Value {
	if x != nil {
		return x.ActiveSessionCount
	}
	return nil
}

func (x *HealthInfo) GetSessionConnections() map[string]uint32 {
	if x != nil {
		return x.SessionConnections
	}
	return nil
}

func (x *HealthInfo) GetUpstreamConnectionState() string {
	if x != nil {
		return x.UpstreamConnectionState
	}
	return ""
}

var File_worker_health_v1_health_service_proto protoreflect.FileDescriptor

const file_worker_health_v1_health_service_proto_rawDesc = "" +
	"\n" +
	"%worker/health/v1/health_service.proto\x12\x10worker.health.v1\x1a\x1egoogle/protobuf/wrappers.proto\"\xe4\x02\n" +
	"\n" +
	"HealthInfo\x12\x14\n" +
	"\x05state\x18\x01 \x01(\tR\x05state\x12S\n" +
	"\x14active_session_count\x18\x02 \x01(\v2\x1c.google.protobuf.UInt32ValueR\x17active_connection_count\x12f\n" +
	"\x13session_connections\x18\x03 \x03(\v24.worker.health.v1.HealthInfo.SessionConnectionsEntryR\x13session_connections\x12<\n" +
	"\x19upstream_connection_state\x18\x04 \x01(\tR\x19upstream_connection_state\x1aE\n" +
	"\x17SessionConnectionsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\rR\x05value:\x028\x01BAZ?github.com/hashicorp/boundary/internal/gen/worker/health;healthb\x06proto3"

var (
	file_worker_health_v1_health_service_proto_rawDescOnce sync.Once
	file_worker_health_v1_health_service_proto_rawDescData []byte
)

func file_worker_health_v1_health_service_proto_rawDescGZIP() []byte {
	file_worker_health_v1_health_service_proto_rawDescOnce.Do(func() {
		file_worker_health_v1_health_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_worker_health_v1_health_service_proto_rawDesc), len(file_worker_health_v1_health_service_proto_rawDesc)))
	})
	return file_worker_health_v1_health_service_proto_rawDescData
}

var file_worker_health_v1_health_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_worker_health_v1_health_service_proto_goTypes = []any{
	(*HealthInfo)(nil),             // 0: worker.health.v1.HealthInfo
	nil,                            // 1: worker.health.v1.HealthInfo.SessionConnectionsEntry
	(*wrapperspb.UInt32Value)(nil), // 2: google.protobuf.UInt32Value
}
var file_worker_health_v1_health_service_proto_depIdxs = []int32{
	2, // 0: worker.health.v1.HealthInfo.active_session_count:type_name -> google.protobuf.UInt32Value
	1, // 1: worker.health.v1.HealthInfo.session_connections:type_name -> worker.health.v1.HealthInfo.SessionConnectionsEntry
	2, // [2:2] is the sub-list for method output_type
	2, // [2:2] is the sub-list for method input_type
	2, // [2:2] is the sub-list for extension type_name
	2, // [2:2] is the sub-list for extension extendee
	0, // [0:2] is the sub-list for field type_name
}

func init() { file_worker_health_v1_health_service_proto_init() }
func file_worker_health_v1_health_service_proto_init() {
	if File_worker_health_v1_health_service_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_worker_health_v1_health_service_proto_rawDesc), len(file_worker_health_v1_health_service_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_worker_health_v1_health_service_proto_goTypes,
		DependencyIndexes: file_worker_health_v1_health_service_proto_depIdxs,
		MessageInfos:      file_worker_health_v1_health_service_proto_msgTypes,
	}.Build()
	File_worker_health_v1_health_service_proto = out.File
	file_worker_health_v1_health_service_proto_goTypes = nil
	file_worker_health_v1_health_service_proto_depIdxs = nil
}
