351 lines
11 KiB
Go
351 lines
11 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.12
|
|
// protoc v7.35.1
|
|
// source: homelab/v1/homelab.proto
|
|
|
|
package homelabv1
|
|
|
|
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 GetLuckyNumberRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetLuckyNumberRequest) Reset() {
|
|
*x = GetLuckyNumberRequest{}
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetLuckyNumberRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetLuckyNumberRequest) ProtoMessage() {}
|
|
|
|
func (x *GetLuckyNumberRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_homelab_v1_homelab_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 GetLuckyNumberRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetLuckyNumberRequest) Descriptor() ([]byte, []int) {
|
|
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type GetLuckyNumberResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetLuckyNumberResponse) Reset() {
|
|
*x = GetLuckyNumberResponse{}
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetLuckyNumberResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetLuckyNumberResponse) ProtoMessage() {}
|
|
|
|
func (x *GetLuckyNumberResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[1]
|
|
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 GetLuckyNumberResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetLuckyNumberResponse) Descriptor() ([]byte, []int) {
|
|
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *GetLuckyNumberResponse) GetNumber() int64 {
|
|
if x != nil {
|
|
return x.Number
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type IncrementCounterRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *IncrementCounterRequest) Reset() {
|
|
*x = IncrementCounterRequest{}
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *IncrementCounterRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*IncrementCounterRequest) ProtoMessage() {}
|
|
|
|
func (x *IncrementCounterRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[2]
|
|
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 IncrementCounterRequest.ProtoReflect.Descriptor instead.
|
|
func (*IncrementCounterRequest) Descriptor() ([]byte, []int) {
|
|
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
type IncrementCounterResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *IncrementCounterResponse) Reset() {
|
|
*x = IncrementCounterResponse{}
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *IncrementCounterResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*IncrementCounterResponse) ProtoMessage() {}
|
|
|
|
func (x *IncrementCounterResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[3]
|
|
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 IncrementCounterResponse.ProtoReflect.Descriptor instead.
|
|
func (*IncrementCounterResponse) Descriptor() ([]byte, []int) {
|
|
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *IncrementCounterResponse) GetValue() int64 {
|
|
if x != nil {
|
|
return x.Value
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SayHelloRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SayHelloRequest) Reset() {
|
|
*x = SayHelloRequest{}
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SayHelloRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SayHelloRequest) ProtoMessage() {}
|
|
|
|
func (x *SayHelloRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[4]
|
|
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 SayHelloRequest.ProtoReflect.Descriptor instead.
|
|
func (*SayHelloRequest) Descriptor() ([]byte, []int) {
|
|
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *SayHelloRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SayHelloResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Greeting string `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SayHelloResponse) Reset() {
|
|
*x = SayHelloResponse{}
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SayHelloResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SayHelloResponse) ProtoMessage() {}
|
|
|
|
func (x *SayHelloResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[5]
|
|
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 SayHelloResponse.ProtoReflect.Descriptor instead.
|
|
func (*SayHelloResponse) Descriptor() ([]byte, []int) {
|
|
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *SayHelloResponse) GetGreeting() string {
|
|
if x != nil {
|
|
return x.Greeting
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_homelab_v1_homelab_proto protoreflect.FileDescriptor
|
|
|
|
const file_homelab_v1_homelab_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x18homelab/v1/homelab.proto\x12\n" +
|
|
"homelab.v1\"\x17\n" +
|
|
"\x15GetLuckyNumberRequest\"0\n" +
|
|
"\x16GetLuckyNumberResponse\x12\x16\n" +
|
|
"\x06number\x18\x01 \x01(\x03R\x06number\"\x19\n" +
|
|
"\x17IncrementCounterRequest\"0\n" +
|
|
"\x18IncrementCounterResponse\x12\x14\n" +
|
|
"\x05value\x18\x01 \x01(\x03R\x05value\"%\n" +
|
|
"\x0fSayHelloRequest\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\".\n" +
|
|
"\x10SayHelloResponse\x12\x1a\n" +
|
|
"\bgreeting\x18\x01 \x01(\tR\bgreeting2\x8f\x02\n" +
|
|
"\x0eHomelabService\x12W\n" +
|
|
"\x0eGetLuckyNumber\x12!.homelab.v1.GetLuckyNumberRequest\x1a\".homelab.v1.GetLuckyNumberResponse\x12]\n" +
|
|
"\x10IncrementCounter\x12#.homelab.v1.IncrementCounterRequest\x1a$.homelab.v1.IncrementCounterResponse\x12E\n" +
|
|
"\bSayHello\x12\x1b.homelab.v1.SayHelloRequest\x1a\x1c.homelab.v1.SayHelloResponseB*Z(pwa-homelab-mon/gen/homelab/v1;homelabv1b\x06proto3"
|
|
|
|
var (
|
|
file_homelab_v1_homelab_proto_rawDescOnce sync.Once
|
|
file_homelab_v1_homelab_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_homelab_v1_homelab_proto_rawDescGZIP() []byte {
|
|
file_homelab_v1_homelab_proto_rawDescOnce.Do(func() {
|
|
file_homelab_v1_homelab_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_homelab_v1_homelab_proto_rawDesc), len(file_homelab_v1_homelab_proto_rawDesc)))
|
|
})
|
|
return file_homelab_v1_homelab_proto_rawDescData
|
|
}
|
|
|
|
var file_homelab_v1_homelab_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
|
var file_homelab_v1_homelab_proto_goTypes = []any{
|
|
(*GetLuckyNumberRequest)(nil), // 0: homelab.v1.GetLuckyNumberRequest
|
|
(*GetLuckyNumberResponse)(nil), // 1: homelab.v1.GetLuckyNumberResponse
|
|
(*IncrementCounterRequest)(nil), // 2: homelab.v1.IncrementCounterRequest
|
|
(*IncrementCounterResponse)(nil), // 3: homelab.v1.IncrementCounterResponse
|
|
(*SayHelloRequest)(nil), // 4: homelab.v1.SayHelloRequest
|
|
(*SayHelloResponse)(nil), // 5: homelab.v1.SayHelloResponse
|
|
}
|
|
var file_homelab_v1_homelab_proto_depIdxs = []int32{
|
|
0, // 0: homelab.v1.HomelabService.GetLuckyNumber:input_type -> homelab.v1.GetLuckyNumberRequest
|
|
2, // 1: homelab.v1.HomelabService.IncrementCounter:input_type -> homelab.v1.IncrementCounterRequest
|
|
4, // 2: homelab.v1.HomelabService.SayHello:input_type -> homelab.v1.SayHelloRequest
|
|
1, // 3: homelab.v1.HomelabService.GetLuckyNumber:output_type -> homelab.v1.GetLuckyNumberResponse
|
|
3, // 4: homelab.v1.HomelabService.IncrementCounter:output_type -> homelab.v1.IncrementCounterResponse
|
|
5, // 5: homelab.v1.HomelabService.SayHello:output_type -> homelab.v1.SayHelloResponse
|
|
3, // [3:6] is the sub-list for method output_type
|
|
0, // [0:3] 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_homelab_v1_homelab_proto_init() }
|
|
func file_homelab_v1_homelab_proto_init() {
|
|
if File_homelab_v1_homelab_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_homelab_v1_homelab_proto_rawDesc), len(file_homelab_v1_homelab_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 6,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_homelab_v1_homelab_proto_goTypes,
|
|
DependencyIndexes: file_homelab_v1_homelab_proto_depIdxs,
|
|
MessageInfos: file_homelab_v1_homelab_proto_msgTypes,
|
|
}.Build()
|
|
File_homelab_v1_homelab_proto = out.File
|
|
file_homelab_v1_homelab_proto_goTypes = nil
|
|
file_homelab_v1_homelab_proto_depIdxs = nil
|
|
}
|