// Package alert_api defines the gRPC service interface for the Bitcoin SV Alert System.

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.10
// 	protoc        v6.32.1
// source: services/alert/alert_api/alert_api.proto

package alert_api

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	emptypb "google.golang.org/protobuf/types/known/emptypb"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	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)
)

// HealthResponse represents the health check response from the Alert System service.
type HealthResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ok indicates whether the service is healthy (true) or unhealthy (false)
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// details provides additional information about the health status
	Details string `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"`
	// timestamp indicates when the health check was performed
	Timestamp     *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*HealthResponse) ProtoMessage() {}

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

func (x *HealthResponse) GetOk() bool {
	if x != nil {
		return x.Ok
	}
	return false
}

func (x *HealthResponse) GetDetails() string {
	if x != nil {
		return x.Details
	}
	return ""
}

func (x *HealthResponse) GetTimestamp() *timestamppb.Timestamp {
	if x != nil {
		return x.Timestamp
	}
	return nil
}

var File_services_alert_alert_api_alert_api_proto protoreflect.FileDescriptor

const file_services_alert_alert_api_alert_api_proto_rawDesc = "" +
	"\n" +
	"(services/alert/alert_api/alert_api.proto\x12\talert_api\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\"t\n" +
	"\x0eHealthResponse\x12\x0e\n" +
	"\x02ok\x18\x01 \x01(\bR\x02ok\x12\x18\n" +
	"\adetails\x18\x02 \x01(\tR\adetails\x128\n" +
	"\ttimestamp\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\ttimestamp2M\n" +
	"\bAlertAPI\x12A\n" +
	"\n" +
	"HealthGRPC\x12\x16.google.protobuf.Empty\x1a\x19.alert_api.HealthResponse\"\x00B\x0eZ\f./;alert_apib\x06proto3"

var (
	file_services_alert_alert_api_alert_api_proto_rawDescOnce sync.Once
	file_services_alert_alert_api_alert_api_proto_rawDescData []byte
)

func file_services_alert_alert_api_alert_api_proto_rawDescGZIP() []byte {
	file_services_alert_alert_api_alert_api_proto_rawDescOnce.Do(func() {
		file_services_alert_alert_api_alert_api_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_services_alert_alert_api_alert_api_proto_rawDesc), len(file_services_alert_alert_api_alert_api_proto_rawDesc)))
	})
	return file_services_alert_alert_api_alert_api_proto_rawDescData
}

var file_services_alert_alert_api_alert_api_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_services_alert_alert_api_alert_api_proto_goTypes = []any{
	(*HealthResponse)(nil),        // 0: alert_api.HealthResponse
	(*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp
	(*emptypb.Empty)(nil),         // 2: google.protobuf.Empty
}
var file_services_alert_alert_api_alert_api_proto_depIdxs = []int32{
	1, // 0: alert_api.HealthResponse.timestamp:type_name -> google.protobuf.Timestamp
	2, // 1: alert_api.AlertAPI.HealthGRPC:input_type -> google.protobuf.Empty
	0, // 2: alert_api.AlertAPI.HealthGRPC:output_type -> alert_api.HealthResponse
	2, // [2:3] is the sub-list for method output_type
	1, // [1:2] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() { file_services_alert_alert_api_alert_api_proto_init() }
func file_services_alert_alert_api_alert_api_proto_init() {
	if File_services_alert_alert_api_alert_api_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_services_alert_alert_api_alert_api_proto_rawDesc), len(file_services_alert_alert_api_alert_api_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_services_alert_alert_api_alert_api_proto_goTypes,
		DependencyIndexes: file_services_alert_alert_api_alert_api_proto_depIdxs,
		MessageInfos:      file_services_alert_alert_api_alert_api_proto_msgTypes,
	}.Build()
	File_services_alert_alert_api_alert_api_proto = out.File
	file_services_alert_alert_api_alert_api_proto_goTypes = nil
	file_services_alert_alert_api_alert_api_proto_depIdxs = nil
}
