// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc v7.34.1 // source: homeops/hub.proto package homeops import ( 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 PongResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Pong string `protobuf:"bytes,1,opt,name=pong,proto3" json:"pong,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *PongResponse) Reset() { *x = PongResponse{} mi := &file_homeops_hub_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *PongResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*PongResponse) ProtoMessage() {} func (x *PongResponse) ProtoReflect() protoreflect.Message { mi := &file_homeops_hub_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 PongResponse.ProtoReflect.Descriptor instead. func (*PongResponse) Descriptor() ([]byte, []int) { return file_homeops_hub_proto_rawDescGZIP(), []int{0} } func (x *PongResponse) GetPong() string { if x != nil { return x.Pong } return "" } type RegisterAgentRequest struct { state protoimpl.MessageState `protogen:"open.v1"` AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` AgentName string `protobuf:"bytes,2,opt,name=agent_name,json=agentName,proto3" json:"agent_name,omitempty"` Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` Host *HostInfo `protobuf:"bytes,4,opt,name=host,proto3" json:"host,omitempty"` Capability []*Capability `protobuf:"bytes,5,rep,name=capability,proto3" json:"capability,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *RegisterAgentRequest) Reset() { *x = RegisterAgentRequest{} mi := &file_homeops_hub_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *RegisterAgentRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*RegisterAgentRequest) ProtoMessage() {} func (x *RegisterAgentRequest) ProtoReflect() protoreflect.Message { mi := &file_homeops_hub_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 RegisterAgentRequest.ProtoReflect.Descriptor instead. func (*RegisterAgentRequest) Descriptor() ([]byte, []int) { return file_homeops_hub_proto_rawDescGZIP(), []int{1} } func (x *RegisterAgentRequest) GetAgentId() string { if x != nil { return x.AgentId } return "" } func (x *RegisterAgentRequest) GetAgentName() string { if x != nil { return x.AgentName } return "" } func (x *RegisterAgentRequest) GetVersion() string { if x != nil { return x.Version } return "" } func (x *RegisterAgentRequest) GetHost() *HostInfo { if x != nil { return x.Host } return nil } func (x *RegisterAgentRequest) GetCapability() []*Capability { if x != nil { return x.Capability } return nil } type HostInfo struct { state protoimpl.MessageState `protogen:"open.v1"` System string `protobuf:"bytes,1,opt,name=system,proto3" json:"system,omitempty"` Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"` Arch string `protobuf:"bytes,3,opt,name=arch,proto3" json:"arch,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *HostInfo) Reset() { *x = HostInfo{} mi := &file_homeops_hub_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *HostInfo) String() string { return protoimpl.X.MessageStringOf(x) } func (*HostInfo) ProtoMessage() {} func (x *HostInfo) ProtoReflect() protoreflect.Message { mi := &file_homeops_hub_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 HostInfo.ProtoReflect.Descriptor instead. func (*HostInfo) Descriptor() ([]byte, []int) { return file_homeops_hub_proto_rawDescGZIP(), []int{2} } func (x *HostInfo) GetSystem() string { if x != nil { return x.System } return "" } func (x *HostInfo) GetHostname() string { if x != nil { return x.Hostname } return "" } func (x *HostInfo) GetArch() string { if x != nil { return x.Arch } return "" } type Capability struct { state protoimpl.MessageState `protogen:"open.v1"` Available bool `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Capability) Reset() { *x = Capability{} mi := &file_homeops_hub_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Capability) String() string { return protoimpl.X.MessageStringOf(x) } func (*Capability) ProtoMessage() {} func (x *Capability) ProtoReflect() protoreflect.Message { mi := &file_homeops_hub_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 Capability.ProtoReflect.Descriptor instead. func (*Capability) Descriptor() ([]byte, []int) { return file_homeops_hub_proto_rawDescGZIP(), []int{3} } func (x *Capability) GetAvailable() bool { if x != nil { return x.Available } return false } func (x *Capability) GetVersion() string { if x != nil { return x.Version } return "" } func (x *Capability) GetName() string { if x != nil { return x.Name } return "" } func (x *Capability) GetReason() string { if x != nil { return x.Reason } return "" } type RegisterAgentResponse struct { state protoimpl.MessageState `protogen:"open.v1"` HeartbeatIntervalSecond int64 `protobuf:"varint,1,opt,name=heartbeat_interval_second,json=heartbeatIntervalSecond,proto3" json:"heartbeat_interval_second,omitempty"` AgentId string `protobuf:"bytes,2,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *RegisterAgentResponse) Reset() { *x = RegisterAgentResponse{} mi := &file_homeops_hub_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *RegisterAgentResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*RegisterAgentResponse) ProtoMessage() {} func (x *RegisterAgentResponse) ProtoReflect() protoreflect.Message { mi := &file_homeops_hub_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 RegisterAgentResponse.ProtoReflect.Descriptor instead. func (*RegisterAgentResponse) Descriptor() ([]byte, []int) { return file_homeops_hub_proto_rawDescGZIP(), []int{4} } func (x *RegisterAgentResponse) GetHeartbeatIntervalSecond() int64 { if x != nil { return x.HeartbeatIntervalSecond } return 0 } func (x *RegisterAgentResponse) GetAgentId() string { if x != nil { return x.AgentId } return "" } var File_homeops_hub_proto protoreflect.FileDescriptor const file_homeops_hub_proto_rawDesc = "" + "\n" + "\x11homeops/hub.proto\x1a\x1bgoogle/protobuf/empty.proto\"\"\n" + "\fPongResponse\x12\x12\n" + "\x04pong\x18\x01 \x01(\tR\x04pong\"\xb6\x01\n" + "\x14RegisterAgentRequest\x12\x19\n" + "\bagent_id\x18\x01 \x01(\tR\aagentId\x12\x1d\n" + "\n" + "agent_name\x18\x02 \x01(\tR\tagentName\x12\x18\n" + "\aversion\x18\x03 \x01(\tR\aversion\x12\x1d\n" + "\x04host\x18\x04 \x01(\v2\t.HostInfoR\x04host\x12+\n" + "\n" + "capability\x18\x05 \x03(\v2\v.CapabilityR\n" + "capability\"R\n" + "\bHostInfo\x12\x16\n" + "\x06system\x18\x01 \x01(\tR\x06system\x12\x1a\n" + "\bhostname\x18\x02 \x01(\tR\bhostname\x12\x12\n" + "\x04arch\x18\x03 \x01(\tR\x04arch\"p\n" + "\n" + "Capability\x12\x1c\n" + "\tavailable\x18\x01 \x01(\bR\tavailable\x12\x18\n" + "\aversion\x18\x02 \x01(\tR\aversion\x12\x12\n" + "\x04name\x18\x03 \x01(\tR\x04name\x12\x16\n" + "\x06reason\x18\x04 \x01(\tR\x06reason\"n\n" + "\x15RegisterAgentResponse\x12:\n" + "\x19heartbeat_interval_second\x18\x01 \x01(\x03R\x17heartbeatIntervalSecond\x12\x19\n" + "\bagent_id\x18\x02 \x01(\tR\aagentId2x\n" + "\x03Hub\x12/\n" + "\x04Ping\x12\x16.google.protobuf.Empty\x1a\r.PongResponse\"\x00\x12@\n" + "\rRegisterAgent\x12\x15.RegisterAgentRequest\x1a\x16.RegisterAgentResponse\"\x00B HostInfo 3, // 1: RegisterAgentRequest.capability:type_name -> Capability 5, // 2: Hub.Ping:input_type -> google.protobuf.Empty 1, // 3: Hub.RegisterAgent:input_type -> RegisterAgentRequest 0, // 4: Hub.Ping:output_type -> PongResponse 4, // 5: Hub.RegisterAgent:output_type -> RegisterAgentResponse 4, // [4:6] is the sub-list for method output_type 2, // [2:4] 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_homeops_hub_proto_init() } func file_homeops_hub_proto_init() { if File_homeops_hub_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_homeops_hub_proto_rawDesc), len(file_homeops_hub_proto_rawDesc)), NumEnums: 0, NumMessages: 5, NumExtensions: 0, NumServices: 1, }, GoTypes: file_homeops_hub_proto_goTypes, DependencyIndexes: file_homeops_hub_proto_depIdxs, MessageInfos: file_homeops_hub_proto_msgTypes, }.Build() File_homeops_hub_proto = out.File file_homeops_hub_proto_goTypes = nil file_homeops_hub_proto_depIdxs = nil }