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

package servicev1

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	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 Status int32

const (
	Status_STATUS_UNSPECIFIED Status = 0
	Status_STATUS_OFFLINE     Status = 1
	Status_STATUS_ONLINE      Status = 2
)

// Enum value maps for Status.
var (
	Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "STATUS_OFFLINE",
		2: "STATUS_ONLINE",
	}
	Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"STATUS_OFFLINE":     1,
		"STATUS_ONLINE":      2,
	}
)

func (x Status) Enum() *Status {
	p := new(Status)
	*p = x
	return p
}

func (x Status) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (Status) Descriptor() protoreflect.EnumDescriptor {
	return file_service_v1_status_proto_enumTypes[0].Descriptor()
}

func (Status) Type() protoreflect.EnumType {
	return &file_service_v1_status_proto_enumTypes[0]
}

func (x Status) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use Status.Descriptor instead.
func (Status) EnumDescriptor() ([]byte, []int) {
	return file_service_v1_status_proto_rawDescGZIP(), []int{0}
}

type ServiceStatus struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Id            string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name          string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description   string                 `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Type          string                 `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	Ip            string                 `protobuf:"bytes,5,opt,name=ip,proto3" json:"ip,omitempty"`
	Status        Status                 `protobuf:"varint,6,opt,name=status,proto3,enum=service.v1.Status" json:"status,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ServiceStatus) ProtoMessage() {}

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

func (x *ServiceStatus) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

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

func (x *ServiceStatus) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

func (x *ServiceStatus) GetType() string {
	if x != nil {
		return x.Type
	}
	return ""
}

func (x *ServiceStatus) GetIp() string {
	if x != nil {
		return x.Ip
	}
	return ""
}

func (x *ServiceStatus) GetStatus() Status {
	if x != nil {
		return x.Status
	}
	return Status_STATUS_UNSPECIFIED
}

var File_service_v1_status_proto protoreflect.FileDescriptor

const file_service_v1_status_proto_rawDesc = "" +
	"\n" +
	"\x17service/v1/status.proto\x12\n" +
	"service.v1\"\xa5\x01\n" +
	"\rServiceStatus\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
	"\x04name\x18\x02 \x01(\tR\x04name\x12 \n" +
	"\vdescription\x18\x03 \x01(\tR\vdescription\x12\x12\n" +
	"\x04type\x18\x04 \x01(\tR\x04type\x12\x0e\n" +
	"\x02ip\x18\x05 \x01(\tR\x02ip\x12*\n" +
	"\x06status\x18\x06 \x01(\x0e2\x12.service.v1.StatusR\x06status*G\n" +
	"\x06Status\x12\x16\n" +
	"\x12STATUS_UNSPECIFIED\x10\x00\x12\x12\n" +
	"\x0eSTATUS_OFFLINE\x10\x01\x12\x11\n" +
	"\rSTATUS_ONLINE\x10\x02B\xaa\x01\n" +
	"\x0ecom.service.v1B\vStatusProtoP\x01Z9github.com/cobotar/protocol/messages/service/v1;servicev1\xa2\x02\x03SXX\xaa\x02\x13Messages.Service.V1\xca\x02\n" +
	"Service\\V1\xe2\x02\x16Service\\V1\\GPBMetadata\xea\x02\vService::V1b\x06proto3"

var (
	file_service_v1_status_proto_rawDescOnce sync.Once
	file_service_v1_status_proto_rawDescData []byte
)

func file_service_v1_status_proto_rawDescGZIP() []byte {
	file_service_v1_status_proto_rawDescOnce.Do(func() {
		file_service_v1_status_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_v1_status_proto_rawDesc), len(file_service_v1_status_proto_rawDesc)))
	})
	return file_service_v1_status_proto_rawDescData
}

var file_service_v1_status_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_service_v1_status_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_service_v1_status_proto_goTypes = []any{
	(Status)(0),           // 0: service.v1.Status
	(*ServiceStatus)(nil), // 1: service.v1.ServiceStatus
}
var file_service_v1_status_proto_depIdxs = []int32{
	0, // 0: service.v1.ServiceStatus.status:type_name -> service.v1.Status
	1, // [1:1] is the sub-list for method output_type
	1, // [1:1] 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_service_v1_status_proto_init() }
func file_service_v1_status_proto_init() {
	if File_service_v1_status_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_v1_status_proto_rawDesc), len(file_service_v1_status_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_service_v1_status_proto_goTypes,
		DependencyIndexes: file_service_v1_status_proto_depIdxs,
		EnumInfos:         file_service_v1_status_proto_enumTypes,
		MessageInfos:      file_service_v1_status_proto_msgTypes,
	}.Build()
	File_service_v1_status_proto = out.File
	file_service_v1_status_proto_goTypes = nil
	file_service_v1_status_proto_depIdxs = nil
}
