// Copyright 2023 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v6.31.1
// source: backend/api/v2beta1/healthz.proto

package go_client

import (
	_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	emptypb "google.golang.org/protobuf/types/known/emptypb"
	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 GetHealthzResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// TODO(gkcalat): redesign this service to return status
	// and move server configuration into a separate service
	// TODO(gkcalat): rename or deprecate v1beta1 HealthzService
	//
	// Returns if KFP in multi-user mode
	MultiUser bool `protobuf:"varint,3,opt,name=multi_user,json=multiUser,proto3" json:"multi_user,omitempty"`
	// Returns the pipeline storage type (database or kubernetes)
	PipelineStore string `protobuf:"bytes,4,opt,name=pipeline_store,json=pipelineStore,proto3" json:"pipeline_store,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetHealthzResponse) ProtoMessage() {}

func (x *GetHealthzResponse) ProtoReflect() protoreflect.Message {
	mi := &file_backend_api_v2beta1_healthz_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 GetHealthzResponse.ProtoReflect.Descriptor instead.
func (*GetHealthzResponse) Descriptor() ([]byte, []int) {
	return file_backend_api_v2beta1_healthz_proto_rawDescGZIP(), []int{0}
}

func (x *GetHealthzResponse) GetMultiUser() bool {
	if x != nil {
		return x.MultiUser
	}
	return false
}

func (x *GetHealthzResponse) GetPipelineStore() string {
	if x != nil {
		return x.PipelineStore
	}
	return ""
}

var File_backend_api_v2beta1_healthz_proto protoreflect.FileDescriptor

const file_backend_api_v2beta1_healthz_proto_rawDesc = "" +
	"\n" +
	"!backend/api/v2beta1/healthz.proto\x12&kubeflow.pipelines.backend.api.v2beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"Z\n" +
	"\x12GetHealthzResponse\x12\x1d\n" +
	"\n" +
	"multi_user\x18\x03 \x01(\bR\tmultiUser\x12%\n" +
	"\x0epipeline_store\x18\x04 \x01(\tR\rpipelineStore2\x91\x01\n" +
	"\x0eHealthzService\x12\x7f\n" +
	"\n" +
	"GetHealthz\x12\x16.google.protobuf.Empty\x1a:.kubeflow.pipelines.backend.api.v2beta1.GetHealthzResponse\"\x1d\x82\xd3\xe4\x93\x02\x17\x12\x15/apis/v2beta1/healthzB\x98\x01\x92AX*\x02\x01\x02R#\n" +
	"\adefault\x12\x18\x12\x16\n" +
	"\x14\x1a\x12.google.rpc.StatusZ\x1f\n" +
	"\x1d\n" +
	"\x06Bearer\x12\x13\b\x02\x1a\rauthorization \x02b\f\n" +
	"\n" +
	"\n" +
	"\x06Bearer\x12\x00Z;github.com/kubeflow/pipelines/backend/api/v2beta1/go_clientb\x06proto3"

var (
	file_backend_api_v2beta1_healthz_proto_rawDescOnce sync.Once
	file_backend_api_v2beta1_healthz_proto_rawDescData []byte
)

func file_backend_api_v2beta1_healthz_proto_rawDescGZIP() []byte {
	file_backend_api_v2beta1_healthz_proto_rawDescOnce.Do(func() {
		file_backend_api_v2beta1_healthz_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_backend_api_v2beta1_healthz_proto_rawDesc), len(file_backend_api_v2beta1_healthz_proto_rawDesc)))
	})
	return file_backend_api_v2beta1_healthz_proto_rawDescData
}

var file_backend_api_v2beta1_healthz_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_backend_api_v2beta1_healthz_proto_goTypes = []any{
	(*GetHealthzResponse)(nil), // 0: kubeflow.pipelines.backend.api.v2beta1.GetHealthzResponse
	(*emptypb.Empty)(nil),      // 1: google.protobuf.Empty
}
var file_backend_api_v2beta1_healthz_proto_depIdxs = []int32{
	1, // 0: kubeflow.pipelines.backend.api.v2beta1.HealthzService.GetHealthz:input_type -> google.protobuf.Empty
	0, // 1: kubeflow.pipelines.backend.api.v2beta1.HealthzService.GetHealthz:output_type -> kubeflow.pipelines.backend.api.v2beta1.GetHealthzResponse
	1, // [1:2] is the sub-list for method output_type
	0, // [0:1] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_backend_api_v2beta1_healthz_proto_init() }
func file_backend_api_v2beta1_healthz_proto_init() {
	if File_backend_api_v2beta1_healthz_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_backend_api_v2beta1_healthz_proto_rawDesc), len(file_backend_api_v2beta1_healthz_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_backend_api_v2beta1_healthz_proto_goTypes,
		DependencyIndexes: file_backend_api_v2beta1_healthz_proto_depIdxs,
		MessageInfos:      file_backend_api_v2beta1_healthz_proto_msgTypes,
	}.Build()
	File_backend_api_v2beta1_healthz_proto = out.File
	file_backend_api_v2beta1_healthz_proto_goTypes = nil
	file_backend_api_v2beta1_healthz_proto_depIdxs = nil
}
