From 101f12dc1e6de1b9e501cff6dfe1002a5257d4e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Tich=C3=A1k?= Date: Tue, 13 Feb 2024 13:22:47 +0100 Subject: [PATCH] [apricot] implementation of GetRuntimeEntries rpc call --- apricot/cacheproxy/service.go | 4 + apricot/config.go | 1 + apricot/local/service.go | 21 + apricot/protos/apricot.pb.go | 719 ++++++++++++++++-------------- apricot/protos/apricot.proto | 7 +- apricot/protos/apricot_grpc.pb.go | 177 ++++++-- apricot/remote/server.go | 16 + apricot/remote/service.go | 12 + configuration/service.go | 1 + 9 files changed, 587 insertions(+), 371 deletions(-) diff --git a/apricot/cacheproxy/service.go b/apricot/cacheproxy/service.go index d89ab10ec..fcc72fbe0 100644 --- a/apricot/cacheproxy/service.go +++ b/apricot/cacheproxy/service.go @@ -49,6 +49,10 @@ func (s Service) SetRuntimeEntry(component string, key string, value string) err return s.base.SetRuntimeEntry(component, key, value) } +func (s Service) GetRuntimeEntries(component string) (map[string]string, error) { + return s.base.GetRuntimeEntries(component) +} + func (s Service) ListRuntimeEntries(component string) ([]string, error) { return s.base.ListRuntimeEntries(component) } diff --git a/apricot/config.go b/apricot/config.go index 3669a0b22..f6f3c9456 100644 --- a/apricot/config.go +++ b/apricot/config.go @@ -53,6 +53,7 @@ func setFlags() error { pflag.String("backendUri", viper.GetString("backendUri"), "URI of the Consul server or YAML configuration file") pflag.Bool("verbose", viper.GetBool("verbose"), "Verbose logging") pflag.Bool("trimSpaceInVarsFromConsulKV", viper.GetBool("trimSpaceInVarsFromConsulKV"), "When true, the variables imported from the Consul KV are trimmed if the contain whitespaces") + pflag.String("workingDir", viper.GetString("workingDir"), "Working directory for apricot") pflag.Parse() return viper.BindPFlags(pflag.CommandLine) diff --git a/apricot/local/service.go b/apricot/local/service.go index ed8484dc7..749e3ec6a 100644 --- a/apricot/local/service.go +++ b/apricot/local/service.go @@ -45,6 +45,7 @@ import ( "github.com/AliceO2Group/Control/configuration/componentcfg" "github.com/AliceO2Group/Control/configuration/template" "github.com/flosch/pongo2/v6" + "github.com/hashicorp/go-multierror" "github.com/sirupsen/logrus" "github.com/spf13/viper" ) @@ -477,6 +478,26 @@ func (s *Service) SetRuntimeEntry(component string, key string, value string) er } } +func (s *Service) GetRuntimeEntries(component string) (map[string]string, error) { + s.logMethod() + + if keys, err := s.ListRuntimeEntries(component); err == nil { + var keysErrors *multierror.Error + entries := make(map[string]string) + for _, key := range keys { + if entry, err := s.GetRuntimeEntry(component, key); err == nil { + entries[key] = entry + } else { + keysErrors = multierror.Append(keysErrors, err) + } + } + return entries, keysErrors.ErrorOrNil() + } else { + return nil, err + } + +} + func (s *Service) ListRuntimeEntries(component string) ([]string, error) { s.logMethod() diff --git a/apricot/protos/apricot.pb.go b/apricot/protos/apricot.pb.go index dc86586c7..e53252a04 100644 --- a/apricot/protos/apricot.pb.go +++ b/apricot/protos/apricot.pb.go @@ -23,8 +23,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 -// protoc v4.24.2 +// protoc-gen-go v1.31.0 +// protoc v4.25.1 // source: protos/apricot.proto package apricotpb @@ -1000,6 +1000,53 @@ func (x *GetEntryRequest) GetKey() string { return "" } +type GetRuntimeEntriesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Component string `protobuf:"bytes,1,opt,name=component,proto3" json:"component,omitempty"` +} + +func (x *GetRuntimeEntriesRequest) Reset() { + *x = GetRuntimeEntriesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_protos_apricot_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetRuntimeEntriesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRuntimeEntriesRequest) ProtoMessage() {} + +func (x *GetRuntimeEntriesRequest) ProtoReflect() protoreflect.Message { + mi := &file_protos_apricot_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetRuntimeEntriesRequest.ProtoReflect.Descriptor instead. +func (*GetRuntimeEntriesRequest) Descriptor() ([]byte, []int) { + return file_protos_apricot_proto_rawDescGZIP(), []int{16} +} + +func (x *GetRuntimeEntriesRequest) GetComponent() string { + if x != nil { + return x.Component + } + return "" +} + type ListRuntimeEntriesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1011,7 +1058,7 @@ type ListRuntimeEntriesRequest struct { func (x *ListRuntimeEntriesRequest) Reset() { *x = ListRuntimeEntriesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_protos_apricot_proto_msgTypes[16] + mi := &file_protos_apricot_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1024,7 +1071,7 @@ func (x *ListRuntimeEntriesRequest) String() string { func (*ListRuntimeEntriesRequest) ProtoMessage() {} func (x *ListRuntimeEntriesRequest) ProtoReflect() protoreflect.Message { - mi := &file_protos_apricot_proto_msgTypes[16] + mi := &file_protos_apricot_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1037,7 +1084,7 @@ func (x *ListRuntimeEntriesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListRuntimeEntriesRequest.ProtoReflect.Descriptor instead. func (*ListRuntimeEntriesRequest) Descriptor() ([]byte, []int) { - return file_protos_apricot_proto_rawDescGZIP(), []int{16} + return file_protos_apricot_proto_rawDescGZIP(), []int{17} } func (x *ListRuntimeEntriesRequest) GetComponent() string { @@ -1060,7 +1107,7 @@ type ComponentEntriesQuery struct { func (x *ComponentEntriesQuery) Reset() { *x = ComponentEntriesQuery{} if protoimpl.UnsafeEnabled { - mi := &file_protos_apricot_proto_msgTypes[17] + mi := &file_protos_apricot_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1073,7 +1120,7 @@ func (x *ComponentEntriesQuery) String() string { func (*ComponentEntriesQuery) ProtoMessage() {} func (x *ComponentEntriesQuery) ProtoReflect() protoreflect.Message { - mi := &file_protos_apricot_proto_msgTypes[17] + mi := &file_protos_apricot_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1086,7 +1133,7 @@ func (x *ComponentEntriesQuery) ProtoReflect() protoreflect.Message { // Deprecated: Use ComponentEntriesQuery.ProtoReflect.Descriptor instead. func (*ComponentEntriesQuery) Descriptor() ([]byte, []int) { - return file_protos_apricot_proto_rawDescGZIP(), []int{17} + return file_protos_apricot_proto_rawDescGZIP(), []int{18} } func (x *ComponentEntriesQuery) GetComponent() string { @@ -1126,7 +1173,7 @@ type ListComponentEntriesRequest struct { func (x *ListComponentEntriesRequest) Reset() { *x = ListComponentEntriesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_protos_apricot_proto_msgTypes[18] + mi := &file_protos_apricot_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1139,7 +1186,7 @@ func (x *ListComponentEntriesRequest) String() string { func (*ListComponentEntriesRequest) ProtoMessage() {} func (x *ListComponentEntriesRequest) ProtoReflect() protoreflect.Message { - mi := &file_protos_apricot_proto_msgTypes[18] + mi := &file_protos_apricot_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1152,7 +1199,7 @@ func (x *ListComponentEntriesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListComponentEntriesRequest.ProtoReflect.Descriptor instead. func (*ListComponentEntriesRequest) Descriptor() ([]byte, []int) { - return file_protos_apricot_proto_rawDescGZIP(), []int{18} + return file_protos_apricot_proto_rawDescGZIP(), []int{19} } func (m *ListComponentEntriesRequest) GetQueryPath() isListComponentEntriesRequest_QueryPath { @@ -1210,7 +1257,7 @@ type ComponentEntriesResponse struct { func (x *ComponentEntriesResponse) Reset() { *x = ComponentEntriesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_protos_apricot_proto_msgTypes[19] + mi := &file_protos_apricot_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1223,7 +1270,7 @@ func (x *ComponentEntriesResponse) String() string { func (*ComponentEntriesResponse) ProtoMessage() {} func (x *ComponentEntriesResponse) ProtoReflect() protoreflect.Message { - mi := &file_protos_apricot_proto_msgTypes[19] + mi := &file_protos_apricot_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1236,7 +1283,7 @@ func (x *ComponentEntriesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ComponentEntriesResponse.ProtoReflect.Descriptor instead. func (*ComponentEntriesResponse) Descriptor() ([]byte, []int) { - return file_protos_apricot_proto_rawDescGZIP(), []int{19} + return file_protos_apricot_proto_rawDescGZIP(), []int{20} } func (x *ComponentEntriesResponse) GetPayload() []string { @@ -1257,7 +1304,7 @@ type DetectorsRequest struct { func (x *DetectorsRequest) Reset() { *x = DetectorsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_protos_apricot_proto_msgTypes[20] + mi := &file_protos_apricot_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1270,7 +1317,7 @@ func (x *DetectorsRequest) String() string { func (*DetectorsRequest) ProtoMessage() {} func (x *DetectorsRequest) ProtoReflect() protoreflect.Message { - mi := &file_protos_apricot_proto_msgTypes[20] + mi := &file_protos_apricot_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1283,7 +1330,7 @@ func (x *DetectorsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DetectorsRequest.ProtoReflect.Descriptor instead. func (*DetectorsRequest) Descriptor() ([]byte, []int) { - return file_protos_apricot_proto_rawDescGZIP(), []int{20} + return file_protos_apricot_proto_rawDescGZIP(), []int{21} } func (x *DetectorsRequest) GetGetAll() bool { @@ -1304,7 +1351,7 @@ type DetectorsResponse struct { func (x *DetectorsResponse) Reset() { *x = DetectorsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_protos_apricot_proto_msgTypes[21] + mi := &file_protos_apricot_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1317,7 +1364,7 @@ func (x *DetectorsResponse) String() string { func (*DetectorsResponse) ProtoMessage() {} func (x *DetectorsResponse) ProtoReflect() protoreflect.Message { - mi := &file_protos_apricot_proto_msgTypes[21] + mi := &file_protos_apricot_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1330,7 +1377,7 @@ func (x *DetectorsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DetectorsResponse.ProtoReflect.Descriptor instead. func (*DetectorsResponse) Descriptor() ([]byte, []int) { - return file_protos_apricot_proto_rawDescGZIP(), []int{21} + return file_protos_apricot_proto_rawDescGZIP(), []int{22} } func (x *DetectorsResponse) GetDetectors() []string { @@ -1351,7 +1398,7 @@ type HostGetRequest struct { func (x *HostGetRequest) Reset() { *x = HostGetRequest{} if protoimpl.UnsafeEnabled { - mi := &file_protos_apricot_proto_msgTypes[22] + mi := &file_protos_apricot_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1364,7 +1411,7 @@ func (x *HostGetRequest) String() string { func (*HostGetRequest) ProtoMessage() {} func (x *HostGetRequest) ProtoReflect() protoreflect.Message { - mi := &file_protos_apricot_proto_msgTypes[22] + mi := &file_protos_apricot_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1377,7 +1424,7 @@ func (x *HostGetRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use HostGetRequest.ProtoReflect.Descriptor instead. func (*HostGetRequest) Descriptor() ([]byte, []int) { - return file_protos_apricot_proto_rawDescGZIP(), []int{22} + return file_protos_apricot_proto_rawDescGZIP(), []int{23} } func (x *HostGetRequest) GetDetector() string { @@ -1398,7 +1445,7 @@ type HostEntriesResponse struct { func (x *HostEntriesResponse) Reset() { *x = HostEntriesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_protos_apricot_proto_msgTypes[23] + mi := &file_protos_apricot_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1411,7 +1458,7 @@ func (x *HostEntriesResponse) String() string { func (*HostEntriesResponse) ProtoMessage() {} func (x *HostEntriesResponse) ProtoReflect() protoreflect.Message { - mi := &file_protos_apricot_proto_msgTypes[23] + mi := &file_protos_apricot_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1424,7 +1471,7 @@ func (x *HostEntriesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use HostEntriesResponse.ProtoReflect.Descriptor instead. func (*HostEntriesResponse) Descriptor() ([]byte, []int) { - return file_protos_apricot_proto_rawDescGZIP(), []int{23} + return file_protos_apricot_proto_rawDescGZIP(), []int{24} } func (x *HostEntriesResponse) GetHosts() []string { @@ -1448,7 +1495,7 @@ type ImportComponentConfigurationRequest struct { func (x *ImportComponentConfigurationRequest) Reset() { *x = ImportComponentConfigurationRequest{} if protoimpl.UnsafeEnabled { - mi := &file_protos_apricot_proto_msgTypes[24] + mi := &file_protos_apricot_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1461,7 +1508,7 @@ func (x *ImportComponentConfigurationRequest) String() string { func (*ImportComponentConfigurationRequest) ProtoMessage() {} func (x *ImportComponentConfigurationRequest) ProtoReflect() protoreflect.Message { - mi := &file_protos_apricot_proto_msgTypes[24] + mi := &file_protos_apricot_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1474,7 +1521,7 @@ func (x *ImportComponentConfigurationRequest) ProtoReflect() protoreflect.Messag // Deprecated: Use ImportComponentConfigurationRequest.ProtoReflect.Descriptor instead. func (*ImportComponentConfigurationRequest) Descriptor() ([]byte, []int) { - return file_protos_apricot_proto_rawDescGZIP(), []int{24} + return file_protos_apricot_proto_rawDescGZIP(), []int{25} } func (x *ImportComponentConfigurationRequest) GetQuery() *ComponentQuery { @@ -1518,7 +1565,7 @@ type ImportComponentConfigurationResponse struct { func (x *ImportComponentConfigurationResponse) Reset() { *x = ImportComponentConfigurationResponse{} if protoimpl.UnsafeEnabled { - mi := &file_protos_apricot_proto_msgTypes[25] + mi := &file_protos_apricot_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1531,7 +1578,7 @@ func (x *ImportComponentConfigurationResponse) String() string { func (*ImportComponentConfigurationResponse) ProtoMessage() {} func (x *ImportComponentConfigurationResponse) ProtoReflect() protoreflect.Message { - mi := &file_protos_apricot_proto_msgTypes[25] + mi := &file_protos_apricot_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1544,7 +1591,7 @@ func (x *ImportComponentConfigurationResponse) ProtoReflect() protoreflect.Messa // Deprecated: Use ImportComponentConfigurationResponse.ProtoReflect.Descriptor instead. func (*ImportComponentConfigurationResponse) Descriptor() ([]byte, []int) { - return file_protos_apricot_proto_rawDescGZIP(), []int{25} + return file_protos_apricot_proto_rawDescGZIP(), []int{26} } func (x *ImportComponentConfigurationResponse) GetExistingComponentUpdated() bool { @@ -1579,7 +1626,7 @@ type CRUCardsResponse struct { func (x *CRUCardsResponse) Reset() { *x = CRUCardsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_protos_apricot_proto_msgTypes[26] + mi := &file_protos_apricot_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1592,7 +1639,7 @@ func (x *CRUCardsResponse) String() string { func (*CRUCardsResponse) ProtoMessage() {} func (x *CRUCardsResponse) ProtoReflect() protoreflect.Message { - mi := &file_protos_apricot_proto_msgTypes[26] + mi := &file_protos_apricot_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1605,7 +1652,7 @@ func (x *CRUCardsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CRUCardsResponse.ProtoReflect.Descriptor instead. func (*CRUCardsResponse) Descriptor() ([]byte, []int) { - return file_protos_apricot_proto_rawDescGZIP(), []int{26} + return file_protos_apricot_proto_rawDescGZIP(), []int{27} } func (x *CRUCardsResponse) GetCards() string { @@ -1627,7 +1674,7 @@ type CardRequest struct { func (x *CardRequest) Reset() { *x = CardRequest{} if protoimpl.UnsafeEnabled { - mi := &file_protos_apricot_proto_msgTypes[27] + mi := &file_protos_apricot_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1640,7 +1687,7 @@ func (x *CardRequest) String() string { func (*CardRequest) ProtoMessage() {} func (x *CardRequest) ProtoReflect() protoreflect.Message { - mi := &file_protos_apricot_proto_msgTypes[27] + mi := &file_protos_apricot_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1653,7 +1700,7 @@ func (x *CardRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CardRequest.ProtoReflect.Descriptor instead. func (*CardRequest) Descriptor() ([]byte, []int) { - return file_protos_apricot_proto_rawDescGZIP(), []int{27} + return file_protos_apricot_proto_rawDescGZIP(), []int{28} } func (x *CardRequest) GetHostname() string { @@ -1681,7 +1728,7 @@ type CRUCardEndpointResponse struct { func (x *CRUCardEndpointResponse) Reset() { *x = CRUCardEndpointResponse{} if protoimpl.UnsafeEnabled { - mi := &file_protos_apricot_proto_msgTypes[28] + mi := &file_protos_apricot_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1694,7 +1741,7 @@ func (x *CRUCardEndpointResponse) String() string { func (*CRUCardEndpointResponse) ProtoMessage() {} func (x *CRUCardEndpointResponse) ProtoReflect() protoreflect.Message { - mi := &file_protos_apricot_proto_msgTypes[28] + mi := &file_protos_apricot_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1707,7 +1754,7 @@ func (x *CRUCardEndpointResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CRUCardEndpointResponse.ProtoReflect.Descriptor instead. func (*CRUCardEndpointResponse) Descriptor() ([]byte, []int) { - return file_protos_apricot_proto_rawDescGZIP(), []int{28} + return file_protos_apricot_proto_rawDescGZIP(), []int{29} } func (x *CRUCardEndpointResponse) GetEndpoints() string { @@ -1813,221 +1860,230 @@ var file_protos_apricot_proto_rawDesc = []byte{ 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x23, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x22, 0x39, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, - 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, - 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x22, 0x83, 0x01, 0x0a, - 0x15, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, - 0x73, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, - 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, - 0x6e, 0x65, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x07, 0x72, 0x75, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x10, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, - 0x52, 0x75, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x72, 0x75, 0x6e, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x20, 0x0a, 0x0b, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x6f, - 0x6c, 0x65, 0x22, 0xa6, 0x01, 0x0a, 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6f, - 0x6e, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x14, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x48, 0x00, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x36, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, - 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, - 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, - 0x65, 0x73, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x00, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, - 0x12, 0x2c, 0x0a, 0x11, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x69, 0x6e, 0x63, - 0x6c, 0x75, 0x64, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x73, 0x42, 0x0b, - 0x0a, 0x09, 0x71, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x74, 0x68, 0x22, 0x34, 0x0a, 0x18, 0x43, - 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, - 0x61, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, - 0x64, 0x22, 0x2a, 0x0a, 0x10, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x67, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x22, 0x31, 0x0a, - 0x11, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, - 0x22, 0x2c, 0x0a, 0x0e, 0x48, 0x6f, 0x73, 0x74, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0x2b, - 0x0a, 0x13, 0x48, 0x6f, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x22, 0xb8, 0x01, 0x0a, 0x23, - 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x2d, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x43, 0x6f, 0x6d, - 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, 0x65, - 0x72, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x22, 0x0a, 0x0c, - 0x6e, 0x65, 0x77, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, - 0x12, 0x24, 0x0a, 0x0d, 0x75, 0x73, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, - 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x75, 0x73, 0x65, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x22, 0xba, 0x01, 0x0a, 0x24, 0x49, 0x6d, 0x70, 0x6f, 0x72, - 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x3a, 0x0a, 0x18, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x70, 0x6f, - 0x6e, 0x65, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x18, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x70, 0x6f, - 0x6e, 0x65, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x32, 0x0a, 0x14, 0x65, - 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x65, 0x78, 0x69, 0x73, 0x74, - 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, - 0x22, 0x0a, 0x0c, 0x6e, 0x65, 0x77, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x22, 0x28, 0x0a, 0x10, 0x43, 0x52, 0x55, 0x43, 0x61, 0x72, 0x64, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x61, 0x72, 0x64, 0x73, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x61, 0x72, 0x64, 0x73, 0x22, 0x49, 0x0a, - 0x0b, 0x43, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, - 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x61, 0x72, 0x64, - 0x53, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x61, - 0x72, 0x64, 0x53, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x22, 0x37, 0x0a, 0x17, 0x43, 0x52, 0x55, 0x43, - 0x61, 0x72, 0x64, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, - 0x73, 0x2a, 0x96, 0x03, 0x0a, 0x07, 0x52, 0x75, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, - 0x04, 0x4e, 0x55, 0x4c, 0x4c, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x48, 0x59, 0x53, 0x49, - 0x43, 0x53, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x45, 0x43, 0x48, 0x4e, 0x49, 0x43, 0x41, - 0x4c, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x45, 0x44, 0x45, 0x53, 0x54, 0x41, 0x4c, 0x10, - 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x50, 0x55, 0x4c, 0x53, 0x45, 0x52, 0x10, 0x04, 0x12, 0x09, 0x0a, - 0x05, 0x4c, 0x41, 0x53, 0x45, 0x52, 0x10, 0x05, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x41, 0x4c, 0x49, - 0x42, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x49, 0x54, 0x48, 0x52, 0x5f, 0x54, 0x55, 0x4e, - 0x49, 0x4e, 0x47, 0x10, 0x06, 0x12, 0x1c, 0x0a, 0x18, 0x43, 0x41, 0x4c, 0x49, 0x42, 0x52, 0x41, - 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x56, 0x43, 0x41, 0x53, 0x4e, 0x5f, 0x54, 0x55, 0x4e, 0x49, 0x4e, - 0x47, 0x10, 0x07, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x41, 0x4c, 0x49, 0x42, 0x52, 0x41, 0x54, 0x49, - 0x4f, 0x4e, 0x5f, 0x54, 0x48, 0x52, 0x5f, 0x53, 0x43, 0x41, 0x4e, 0x10, 0x08, 0x12, 0x1c, 0x0a, - 0x18, 0x43, 0x41, 0x4c, 0x49, 0x42, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x49, 0x47, - 0x49, 0x54, 0x41, 0x4c, 0x5f, 0x53, 0x43, 0x41, 0x4e, 0x10, 0x09, 0x12, 0x1b, 0x0a, 0x17, 0x43, - 0x41, 0x4c, 0x49, 0x42, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x4e, 0x41, 0x4c, 0x4f, - 0x47, 0x5f, 0x53, 0x43, 0x41, 0x4e, 0x10, 0x0a, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x41, 0x4c, 0x49, - 0x42, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x48, 0x52, 0x10, 0x0b, 0x12, 0x1b, 0x0a, - 0x17, 0x43, 0x41, 0x4c, 0x49, 0x42, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x4c, 0x50, - 0x49, 0x44, 0x45, 0x5f, 0x53, 0x43, 0x41, 0x4e, 0x10, 0x0c, 0x12, 0x0f, 0x0a, 0x0b, 0x43, 0x41, - 0x4c, 0x49, 0x42, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x0d, 0x12, 0x0b, 0x0a, 0x07, 0x43, - 0x4f, 0x53, 0x4d, 0x49, 0x43, 0x53, 0x10, 0x0e, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x59, 0x4e, 0x54, - 0x48, 0x45, 0x54, 0x49, 0x43, 0x10, 0x0f, 0x12, 0x09, 0x0a, 0x05, 0x4e, 0x4f, 0x49, 0x53, 0x45, - 0x10, 0x10, 0x12, 0x1c, 0x0a, 0x18, 0x43, 0x41, 0x4c, 0x49, 0x42, 0x52, 0x41, 0x54, 0x49, 0x4f, - 0x4e, 0x5f, 0x50, 0x55, 0x4c, 0x53, 0x45, 0x5f, 0x4c, 0x45, 0x4e, 0x47, 0x54, 0x48, 0x10, 0x11, - 0x12, 0x17, 0x0a, 0x13, 0x43, 0x41, 0x4c, 0x49, 0x42, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, - 0x56, 0x52, 0x45, 0x53, 0x45, 0x54, 0x44, 0x10, 0x12, 0x12, 0x08, 0x0a, 0x03, 0x41, 0x4e, 0x59, - 0x10, 0xac, 0x02, 0x22, 0x05, 0x08, 0x13, 0x10, 0xab, 0x02, 0x32, 0xea, 0x0d, 0x0a, 0x07, 0x41, - 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x12, 0x3c, 0x0a, 0x0c, 0x4e, 0x65, 0x77, 0x52, 0x75, 0x6e, - 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x0e, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, - 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1a, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, - 0x2e, 0x52, 0x75, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x33, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, - 0x6c, 0x74, 0x73, 0x12, 0x0e, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x45, 0x6d, - 0x70, 0x74, 0x79, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x53, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x4d, 0x61, 0x70, 0x22, 0x00, 0x12, 0x2f, 0x0a, 0x07, 0x47, 0x65, 0x74, - 0x56, 0x61, 0x72, 0x73, 0x12, 0x0e, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x45, - 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4d, 0x61, 0x70, 0x22, 0x00, 0x12, 0x50, 0x0a, 0x0f, 0x52, 0x61, - 0x77, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x76, 0x65, 0x12, 0x1f, 0x2e, - 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x52, 0x61, 0x77, 0x47, 0x65, 0x74, 0x52, 0x65, - 0x63, 0x75, 0x72, 0x73, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, - 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, - 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x48, 0x0a, 0x0d, - 0x4c, 0x69, 0x73, 0x74, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x19, 0x2e, - 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, - 0x6f, 0x74, 0x2e, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x73, - 0x74, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x17, 0x2e, 0x61, 0x70, 0x72, - 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x48, 0x6f, - 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x73, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x0e, 0x2e, 0x61, - 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x20, 0x2e, 0x61, - 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x45, - 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x47, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x46, + 0x79, 0x22, 0x38, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x45, + 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, + 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x22, 0x39, 0x0a, 0x19, 0x4c, + 0x69, 0x73, 0x74, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, + 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6d, + 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x22, 0x83, 0x01, 0x0a, 0x15, 0x43, 0x6f, 0x6d, 0x70, 0x6f, + 0x6e, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x12, 0x2a, + 0x0a, 0x07, 0x72, 0x75, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x10, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x52, 0x75, 0x6e, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x07, 0x72, 0x75, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x6d, 0x61, + 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x22, 0xa6, 0x01, 0x0a, + 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x45, 0x6e, + 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x04, + 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x70, 0x61, + 0x74, 0x68, 0x12, 0x36, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, + 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x48, 0x00, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x2c, 0x0a, 0x11, 0x69, 0x6e, + 0x63, 0x6c, 0x75, 0x64, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x73, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x73, 0x42, 0x0b, 0x0a, 0x09, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x50, 0x61, 0x74, 0x68, 0x22, 0x34, 0x0a, 0x18, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, + 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x2a, 0x0a, 0x10, 0x44, + 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x16, 0x0a, 0x06, 0x67, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x06, 0x67, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x22, 0x31, 0x0a, 0x11, 0x44, 0x65, 0x74, 0x65, 0x63, + 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, + 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x09, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x22, 0x2c, 0x0a, 0x0e, 0x48, 0x6f, + 0x73, 0x74, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, + 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0x2b, 0x0a, 0x13, 0x48, 0x6f, 0x73, 0x74, + 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x14, 0x0a, 0x05, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, + 0x68, 0x6f, 0x73, 0x74, 0x73, 0x22, 0xb8, 0x01, 0x0a, 0x23, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, + 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2d, 0x0a, + 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, + 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x18, 0x0a, 0x07, + 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x6e, 0x65, 0x77, 0x43, 0x6f, 0x6d, + 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x6e, 0x65, + 0x77, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x75, 0x73, + 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0d, 0x75, 0x73, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, + 0x22, 0xba, 0x01, 0x0a, 0x24, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6f, + 0x6e, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x18, 0x65, 0x78, 0x69, + 0x73, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x65, 0x78, 0x69, + 0x73, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x32, 0x0a, 0x14, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, + 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x14, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x6e, 0x65, 0x77, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0c, 0x6e, 0x65, 0x77, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x28, 0x0a, + 0x10, 0x43, 0x52, 0x55, 0x43, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x61, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x63, 0x61, 0x72, 0x64, 0x73, 0x22, 0x49, 0x0a, 0x0b, 0x43, 0x61, 0x72, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x61, 0x72, 0x64, 0x53, 0x65, 0x72, 0x69, 0x61, 0x6c, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x61, 0x72, 0x64, 0x53, 0x65, 0x72, 0x69, + 0x61, 0x6c, 0x22, 0x37, 0x0a, 0x17, 0x43, 0x52, 0x55, 0x43, 0x61, 0x72, 0x64, 0x45, 0x6e, 0x64, + 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, + 0x09, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x2a, 0x96, 0x03, 0x0a, 0x07, + 0x52, 0x75, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x55, 0x4c, 0x4c, 0x10, + 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x48, 0x59, 0x53, 0x49, 0x43, 0x53, 0x10, 0x01, 0x12, 0x0d, + 0x0a, 0x09, 0x54, 0x45, 0x43, 0x48, 0x4e, 0x49, 0x43, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x0c, 0x0a, + 0x08, 0x50, 0x45, 0x44, 0x45, 0x53, 0x54, 0x41, 0x4c, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x50, + 0x55, 0x4c, 0x53, 0x45, 0x52, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x4c, 0x41, 0x53, 0x45, 0x52, + 0x10, 0x05, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x41, 0x4c, 0x49, 0x42, 0x52, 0x41, 0x54, 0x49, 0x4f, + 0x4e, 0x5f, 0x49, 0x54, 0x48, 0x52, 0x5f, 0x54, 0x55, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x06, 0x12, + 0x1c, 0x0a, 0x18, 0x43, 0x41, 0x4c, 0x49, 0x42, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x56, + 0x43, 0x41, 0x53, 0x4e, 0x5f, 0x54, 0x55, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x07, 0x12, 0x18, 0x0a, + 0x14, 0x43, 0x41, 0x4c, 0x49, 0x42, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x48, 0x52, + 0x5f, 0x53, 0x43, 0x41, 0x4e, 0x10, 0x08, 0x12, 0x1c, 0x0a, 0x18, 0x43, 0x41, 0x4c, 0x49, 0x42, + 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x49, 0x47, 0x49, 0x54, 0x41, 0x4c, 0x5f, 0x53, + 0x43, 0x41, 0x4e, 0x10, 0x09, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x41, 0x4c, 0x49, 0x42, 0x52, 0x41, + 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x4e, 0x41, 0x4c, 0x4f, 0x47, 0x5f, 0x53, 0x43, 0x41, 0x4e, + 0x10, 0x0a, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x41, 0x4c, 0x49, 0x42, 0x52, 0x41, 0x54, 0x49, 0x4f, + 0x4e, 0x5f, 0x46, 0x48, 0x52, 0x10, 0x0b, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x41, 0x4c, 0x49, 0x42, + 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x4c, 0x50, 0x49, 0x44, 0x45, 0x5f, 0x53, 0x43, + 0x41, 0x4e, 0x10, 0x0c, 0x12, 0x0f, 0x0a, 0x0b, 0x43, 0x41, 0x4c, 0x49, 0x42, 0x52, 0x41, 0x54, + 0x49, 0x4f, 0x4e, 0x10, 0x0d, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x4f, 0x53, 0x4d, 0x49, 0x43, 0x53, + 0x10, 0x0e, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x59, 0x4e, 0x54, 0x48, 0x45, 0x54, 0x49, 0x43, 0x10, + 0x0f, 0x12, 0x09, 0x0a, 0x05, 0x4e, 0x4f, 0x49, 0x53, 0x45, 0x10, 0x10, 0x12, 0x1c, 0x0a, 0x18, + 0x43, 0x41, 0x4c, 0x49, 0x42, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x55, 0x4c, 0x53, + 0x45, 0x5f, 0x4c, 0x45, 0x4e, 0x47, 0x54, 0x48, 0x10, 0x11, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x41, + 0x4c, 0x49, 0x42, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x56, 0x52, 0x45, 0x53, 0x45, 0x54, + 0x44, 0x10, 0x12, 0x12, 0x08, 0x0a, 0x03, 0x41, 0x4e, 0x59, 0x10, 0xac, 0x02, 0x22, 0x05, 0x08, + 0x13, 0x10, 0xab, 0x02, 0x32, 0xb8, 0x0e, 0x0a, 0x07, 0x41, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, + 0x12, 0x3c, 0x0a, 0x0c, 0x4e, 0x65, 0x77, 0x52, 0x75, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, + 0x12, 0x0e, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, + 0x1a, 0x1a, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x52, 0x75, 0x6e, 0x4e, 0x75, + 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x33, + 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x0e, 0x2e, + 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x12, 0x2e, + 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4d, 0x61, + 0x70, 0x22, 0x00, 0x12, 0x2f, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x56, 0x61, 0x72, 0x73, 0x12, 0x0e, + 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x12, + 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4d, + 0x61, 0x70, 0x22, 0x00, 0x12, 0x50, 0x0a, 0x0f, 0x52, 0x61, 0x77, 0x47, 0x65, 0x74, 0x52, 0x65, + 0x63, 0x75, 0x72, 0x73, 0x69, 0x76, 0x65, 0x12, 0x1f, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, + 0x74, 0x2e, 0x52, 0x61, 0x77, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x76, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, + 0x6f, 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x48, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x65, + 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x19, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, + 0x74, 0x2e, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x44, 0x65, 0x74, + 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x4b, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x73, 0x74, 0x49, 0x6e, 0x76, 0x65, 0x6e, + 0x74, 0x6f, 0x72, 0x79, 0x12, 0x17, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x48, + 0x6f, 0x73, 0x74, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, + 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, + 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, + 0x15, 0x47, 0x65, 0x74, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x49, 0x6e, 0x76, + 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x0e, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, + 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x20, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, + 0x2e, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x12, 0x47, 0x65, + 0x74, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x46, 0x6f, 0x72, 0x48, 0x6f, 0x73, 0x74, + 0x12, 0x14, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, + 0x2e, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x73, 0x46, 0x6f, 0x72, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x15, 0x2e, 0x61, 0x70, + 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x44, 0x65, 0x74, + 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x47, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x43, 0x52, 0x55, 0x43, 0x61, 0x72, 0x64, 0x73, 0x46, 0x6f, 0x72, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x14, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x61, - 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x14, 0x47, 0x65, 0x74, - 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x46, 0x6f, 0x72, 0x48, 0x6f, 0x73, 0x74, - 0x73, 0x12, 0x15, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x48, 0x6f, 0x73, 0x74, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, - 0x6f, 0x74, 0x2e, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x43, 0x52, 0x55, - 0x43, 0x61, 0x72, 0x64, 0x73, 0x46, 0x6f, 0x72, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x14, 0x2e, 0x61, - 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x43, 0x52, 0x55, - 0x43, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x52, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x46, - 0x6f, 0x72, 0x43, 0x52, 0x55, 0x43, 0x61, 0x72, 0x64, 0x12, 0x14, 0x2e, 0x61, 0x70, 0x72, 0x69, - 0x63, 0x6f, 0x74, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x20, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x43, 0x52, 0x55, 0x43, 0x61, 0x72, - 0x64, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x50, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, - 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x1f, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, - 0x2e, 0x47, 0x65, 0x74, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, - 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x44, 0x0a, 0x0f, 0x53, 0x65, 0x74, 0x52, 0x75, 0x6e, 0x74, - 0x69, 0x6d, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x1f, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, - 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x61, 0x70, 0x72, 0x69, - 0x63, 0x6f, 0x74, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x12, 0x4c, - 0x69, 0x73, 0x74, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, - 0x73, 0x12, 0x22, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, - 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, + 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x43, 0x52, 0x55, 0x43, 0x61, 0x72, 0x64, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x52, 0x0a, 0x16, 0x47, 0x65, 0x74, + 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x46, 0x6f, 0x72, 0x43, 0x52, 0x55, 0x43, + 0x61, 0x72, 0x64, 0x12, 0x14, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x43, 0x61, + 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x61, 0x70, 0x72, 0x69, + 0x63, 0x6f, 0x74, 0x2e, 0x43, 0x52, 0x55, 0x43, 0x61, 0x72, 0x64, 0x45, 0x6e, 0x64, 0x70, 0x6f, + 0x69, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x50, 0x0a, + 0x0f, 0x47, 0x65, 0x74, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x1f, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x75, + 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1a, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, + 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x44, 0x0a, 0x0f, 0x53, 0x65, 0x74, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x1f, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x74, + 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x45, 0x6d, + 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x52, 0x75, 0x6e, 0x74, + 0x69, 0x6d, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x61, 0x70, 0x72, + 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x45, + 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, + 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4d, 0x61, + 0x70, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x75, 0x6e, 0x74, 0x69, + 0x6d, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x22, 0x2e, 0x61, 0x70, 0x72, 0x69, + 0x63, 0x6f, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x45, + 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, + 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, + 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x45, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, + 0x65, 0x6e, 0x74, 0x73, 0x12, 0x0e, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x45, + 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x21, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x43, + 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x61, 0x0a, 0x14, 0x4c, 0x69, 0x73, + 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, + 0x73, 0x12, 0x24, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x0e, 0x4c, 0x69, - 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x0e, 0x2e, 0x61, - 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x21, 0x2e, 0x61, - 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, - 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x61, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, - 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x24, 0x2e, 0x61, 0x70, 0x72, 0x69, - 0x63, 0x6f, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, - 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x21, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, - 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x59, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x70, - 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, - 0x79, 0x12, 0x17, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, - 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x21, 0x2e, 0x61, 0x70, 0x72, - 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x45, 0x6e, - 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x54, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x2e, 0x61, - 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, - 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6e, 0x0a, 0x26, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x70, - 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x57, 0x69, 0x74, 0x68, 0x4c, 0x61, 0x73, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, - 0x19, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, - 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x61, 0x70, 0x72, - 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x57, 0x69, 0x74, 0x68, 0x4c, 0x61, 0x73, 0x74, 0x49, 0x6e, - 0x64, 0x65, 0x78, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x15, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, - 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x17, - 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, - 0x6e, 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x17, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, - 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x22, 0x00, 0x12, 0x7d, 0x0a, 0x1c, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x6d, 0x70, - 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x2c, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x49, 0x6d, 0x70, - 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2d, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, - 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x44, 0x0a, 0x20, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x43, - 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, - 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x0e, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, - 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x0e, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, - 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x42, 0x5e, 0x0a, 0x22, 0x63, 0x68, 0x2e, 0x63, 0x65, - 0x72, 0x6e, 0x2e, 0x61, 0x6c, 0x69, 0x63, 0x65, 0x2e, 0x6f, 0x32, 0x2e, 0x61, 0x70, 0x72, 0x69, - 0x63, 0x6f, 0x74, 0x2e, 0x72, 0x70, 0x63, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5a, 0x38, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x6c, 0x69, 0x63, 0x65, 0x4f, - 0x32, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2f, 0x61, - 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x3b, 0x61, 0x70, - 0x72, 0x69, 0x63, 0x6f, 0x74, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, + 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x59, 0x0a, 0x19, + 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x17, 0x2e, 0x61, 0x70, 0x72, 0x69, + 0x63, 0x6f, 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x1a, 0x21, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x43, 0x6f, 0x6d, + 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x43, 0x6f, + 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x43, + 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x1a, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, + 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6e, 0x0a, + 0x26, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x57, 0x69, 0x74, 0x68, 0x4c, 0x61, + 0x73, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x19, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, + 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x43, 0x6f, 0x6d, + 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x57, 0x69, + 0x74, 0x68, 0x4c, 0x61, 0x73, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x22, 0x00, 0x12, 0x4b, 0x0a, + 0x15, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, + 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x17, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, + 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, 0x1a, + 0x17, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, + 0x65, 0x6e, 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, 0x22, 0x00, 0x12, 0x7d, 0x0a, 0x1c, 0x49, 0x6d, + 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2c, 0x2e, 0x61, 0x70, 0x72, + 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6f, + 0x6e, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, + 0x6f, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, + 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x44, 0x0a, 0x20, 0x49, 0x6e, 0x76, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, + 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x0e, 0x2e, + 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x0e, 0x2e, + 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x42, + 0x5e, 0x0a, 0x22, 0x63, 0x68, 0x2e, 0x63, 0x65, 0x72, 0x6e, 0x2e, 0x61, 0x6c, 0x69, 0x63, 0x65, + 0x2e, 0x6f, 0x32, 0x2e, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2e, 0x72, 0x70, 0x63, 0x73, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x5a, 0x38, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x41, 0x6c, 0x69, 0x63, 0x65, 0x4f, 0x32, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x43, + 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2f, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x3b, 0x61, 0x70, 0x72, 0x69, 0x63, 0x6f, 0x74, 0x70, 0x62, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2043,7 +2099,7 @@ func file_protos_apricot_proto_rawDescGZIP() []byte { } var file_protos_apricot_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_protos_apricot_proto_msgTypes = make([]protoimpl.MessageInfo, 32) +var file_protos_apricot_proto_msgTypes = make([]protoimpl.MessageInfo, 33) var file_protos_apricot_proto_goTypes = []interface{}{ (RunType)(0), // 0: apricot.RunType (*Empty)(nil), // 1: apricot.Empty @@ -2062,79 +2118,82 @@ var file_protos_apricot_proto_goTypes = []interface{}{ (*GetRuntimeEntryRequest)(nil), // 14: apricot.GetRuntimeEntryRequest (*SetRuntimeEntryRequest)(nil), // 15: apricot.SetRuntimeEntryRequest (*GetEntryRequest)(nil), // 16: apricot.GetEntryRequest - (*ListRuntimeEntriesRequest)(nil), // 17: apricot.ListRuntimeEntriesRequest - (*ComponentEntriesQuery)(nil), // 18: apricot.ComponentEntriesQuery - (*ListComponentEntriesRequest)(nil), // 19: apricot.ListComponentEntriesRequest - (*ComponentEntriesResponse)(nil), // 20: apricot.ComponentEntriesResponse - (*DetectorsRequest)(nil), // 21: apricot.DetectorsRequest - (*DetectorsResponse)(nil), // 22: apricot.DetectorsResponse - (*HostGetRequest)(nil), // 23: apricot.HostGetRequest - (*HostEntriesResponse)(nil), // 24: apricot.HostEntriesResponse - (*ImportComponentConfigurationRequest)(nil), // 25: apricot.ImportComponentConfigurationRequest - (*ImportComponentConfigurationResponse)(nil), // 26: apricot.ImportComponentConfigurationResponse - (*CRUCardsResponse)(nil), // 27: apricot.CRUCardsResponse - (*CardRequest)(nil), // 28: apricot.CardRequest - (*CRUCardEndpointResponse)(nil), // 29: apricot.CRUCardEndpointResponse - nil, // 30: apricot.ComponentRequest.VarStackEntry - nil, // 31: apricot.DetectorEntriesResponse.DetectorEntriesEntry - nil, // 32: apricot.StringMap.StringMapEntry + (*GetRuntimeEntriesRequest)(nil), // 17: apricot.GetRuntimeEntriesRequest + (*ListRuntimeEntriesRequest)(nil), // 18: apricot.ListRuntimeEntriesRequest + (*ComponentEntriesQuery)(nil), // 19: apricot.ComponentEntriesQuery + (*ListComponentEntriesRequest)(nil), // 20: apricot.ListComponentEntriesRequest + (*ComponentEntriesResponse)(nil), // 21: apricot.ComponentEntriesResponse + (*DetectorsRequest)(nil), // 22: apricot.DetectorsRequest + (*DetectorsResponse)(nil), // 23: apricot.DetectorsResponse + (*HostGetRequest)(nil), // 24: apricot.HostGetRequest + (*HostEntriesResponse)(nil), // 25: apricot.HostEntriesResponse + (*ImportComponentConfigurationRequest)(nil), // 26: apricot.ImportComponentConfigurationRequest + (*ImportComponentConfigurationResponse)(nil), // 27: apricot.ImportComponentConfigurationResponse + (*CRUCardsResponse)(nil), // 28: apricot.CRUCardsResponse + (*CardRequest)(nil), // 29: apricot.CardRequest + (*CRUCardEndpointResponse)(nil), // 30: apricot.CRUCardEndpointResponse + nil, // 31: apricot.ComponentRequest.VarStackEntry + nil, // 32: apricot.DetectorEntriesResponse.DetectorEntriesEntry + nil, // 33: apricot.StringMap.StringMapEntry } var file_protos_apricot_proto_depIdxs = []int32{ 0, // 0: apricot.ComponentQuery.runType:type_name -> apricot.RunType 2, // 1: apricot.ComponentRequest.query:type_name -> apricot.ComponentQuery - 30, // 2: apricot.ComponentRequest.varStack:type_name -> apricot.ComponentRequest.VarStackEntry - 31, // 3: apricot.DetectorEntriesResponse.detectorEntries:type_name -> apricot.DetectorEntriesResponse.DetectorEntriesEntry - 32, // 4: apricot.StringMap.stringMap:type_name -> apricot.StringMap.StringMapEntry + 31, // 2: apricot.ComponentRequest.varStack:type_name -> apricot.ComponentRequest.VarStackEntry + 32, // 3: apricot.DetectorEntriesResponse.detectorEntries:type_name -> apricot.DetectorEntriesResponse.DetectorEntriesEntry + 33, // 4: apricot.StringMap.stringMap:type_name -> apricot.StringMap.StringMapEntry 0, // 5: apricot.ComponentEntriesQuery.runType:type_name -> apricot.RunType - 18, // 6: apricot.ListComponentEntriesRequest.query:type_name -> apricot.ComponentEntriesQuery + 19, // 6: apricot.ListComponentEntriesRequest.query:type_name -> apricot.ComponentEntriesQuery 2, // 7: apricot.ImportComponentConfigurationRequest.query:type_name -> apricot.ComponentQuery 9, // 8: apricot.DetectorEntriesResponse.DetectorEntriesEntry.value:type_name -> apricot.DetectorInventoryResponse 1, // 9: apricot.Apricot.NewRunNumber:input_type -> apricot.Empty 1, // 10: apricot.Apricot.GetDefaults:input_type -> apricot.Empty 1, // 11: apricot.Apricot.GetVars:input_type -> apricot.Empty 13, // 12: apricot.Apricot.RawGetRecursive:input_type -> apricot.RawGetRecursiveRequest - 21, // 13: apricot.Apricot.ListDetectors:input_type -> apricot.DetectorsRequest - 23, // 14: apricot.Apricot.GetHostInventory:input_type -> apricot.HostGetRequest + 22, // 13: apricot.Apricot.ListDetectors:input_type -> apricot.DetectorsRequest + 24, // 14: apricot.Apricot.GetHostInventory:input_type -> apricot.HostGetRequest 1, // 15: apricot.Apricot.GetDetectorsInventory:input_type -> apricot.Empty 6, // 16: apricot.Apricot.GetDetectorForHost:input_type -> apricot.HostRequest 7, // 17: apricot.Apricot.GetDetectorsForHosts:input_type -> apricot.HostsRequest 6, // 18: apricot.Apricot.GetCRUCardsForHost:input_type -> apricot.HostRequest - 28, // 19: apricot.Apricot.GetEndpointsForCRUCard:input_type -> apricot.CardRequest + 29, // 19: apricot.Apricot.GetEndpointsForCRUCard:input_type -> apricot.CardRequest 14, // 20: apricot.Apricot.GetRuntimeEntry:input_type -> apricot.GetRuntimeEntryRequest 15, // 21: apricot.Apricot.SetRuntimeEntry:input_type -> apricot.SetRuntimeEntryRequest - 17, // 22: apricot.Apricot.ListRuntimeEntries:input_type -> apricot.ListRuntimeEntriesRequest - 1, // 23: apricot.Apricot.ListComponents:input_type -> apricot.Empty - 19, // 24: apricot.Apricot.ListComponentEntries:input_type -> apricot.ListComponentEntriesRequest - 2, // 25: apricot.Apricot.ListComponentEntryHistory:input_type -> apricot.ComponentQuery - 3, // 26: apricot.Apricot.GetComponentConfiguration:input_type -> apricot.ComponentRequest - 3, // 27: apricot.Apricot.GetComponentConfigurationWithLastIndex:input_type -> apricot.ComponentRequest - 2, // 28: apricot.Apricot.ResolveComponentQuery:input_type -> apricot.ComponentQuery - 25, // 29: apricot.Apricot.ImportComponentConfiguration:input_type -> apricot.ImportComponentConfigurationRequest - 1, // 30: apricot.Apricot.InvalidateComponentTemplateCache:input_type -> apricot.Empty - 11, // 31: apricot.Apricot.NewRunNumber:output_type -> apricot.RunNumberResponse - 12, // 32: apricot.Apricot.GetDefaults:output_type -> apricot.StringMap - 12, // 33: apricot.Apricot.GetVars:output_type -> apricot.StringMap - 4, // 34: apricot.Apricot.RawGetRecursive:output_type -> apricot.ComponentResponse - 22, // 35: apricot.Apricot.ListDetectors:output_type -> apricot.DetectorsResponse - 24, // 36: apricot.Apricot.GetHostInventory:output_type -> apricot.HostEntriesResponse - 10, // 37: apricot.Apricot.GetDetectorsInventory:output_type -> apricot.DetectorEntriesResponse - 8, // 38: apricot.Apricot.GetDetectorForHost:output_type -> apricot.DetectorResponse - 22, // 39: apricot.Apricot.GetDetectorsForHosts:output_type -> apricot.DetectorsResponse - 27, // 40: apricot.Apricot.GetCRUCardsForHost:output_type -> apricot.CRUCardsResponse - 29, // 41: apricot.Apricot.GetEndpointsForCRUCard:output_type -> apricot.CRUCardEndpointResponse - 4, // 42: apricot.Apricot.GetRuntimeEntry:output_type -> apricot.ComponentResponse - 1, // 43: apricot.Apricot.SetRuntimeEntry:output_type -> apricot.Empty - 20, // 44: apricot.Apricot.ListRuntimeEntries:output_type -> apricot.ComponentEntriesResponse - 20, // 45: apricot.Apricot.ListComponents:output_type -> apricot.ComponentEntriesResponse - 20, // 46: apricot.Apricot.ListComponentEntries:output_type -> apricot.ComponentEntriesResponse - 20, // 47: apricot.Apricot.ListComponentEntryHistory:output_type -> apricot.ComponentEntriesResponse - 4, // 48: apricot.Apricot.GetComponentConfiguration:output_type -> apricot.ComponentResponse - 5, // 49: apricot.Apricot.GetComponentConfigurationWithLastIndex:output_type -> apricot.ComponentResponseWithLastIndex - 2, // 50: apricot.Apricot.ResolveComponentQuery:output_type -> apricot.ComponentQuery - 26, // 51: apricot.Apricot.ImportComponentConfiguration:output_type -> apricot.ImportComponentConfigurationResponse - 1, // 52: apricot.Apricot.InvalidateComponentTemplateCache:output_type -> apricot.Empty - 31, // [31:53] is the sub-list for method output_type - 9, // [9:31] is the sub-list for method input_type + 17, // 22: apricot.Apricot.GetRuntimeEntries:input_type -> apricot.GetRuntimeEntriesRequest + 18, // 23: apricot.Apricot.ListRuntimeEntries:input_type -> apricot.ListRuntimeEntriesRequest + 1, // 24: apricot.Apricot.ListComponents:input_type -> apricot.Empty + 20, // 25: apricot.Apricot.ListComponentEntries:input_type -> apricot.ListComponentEntriesRequest + 2, // 26: apricot.Apricot.ListComponentEntryHistory:input_type -> apricot.ComponentQuery + 3, // 27: apricot.Apricot.GetComponentConfiguration:input_type -> apricot.ComponentRequest + 3, // 28: apricot.Apricot.GetComponentConfigurationWithLastIndex:input_type -> apricot.ComponentRequest + 2, // 29: apricot.Apricot.ResolveComponentQuery:input_type -> apricot.ComponentQuery + 26, // 30: apricot.Apricot.ImportComponentConfiguration:input_type -> apricot.ImportComponentConfigurationRequest + 1, // 31: apricot.Apricot.InvalidateComponentTemplateCache:input_type -> apricot.Empty + 11, // 32: apricot.Apricot.NewRunNumber:output_type -> apricot.RunNumberResponse + 12, // 33: apricot.Apricot.GetDefaults:output_type -> apricot.StringMap + 12, // 34: apricot.Apricot.GetVars:output_type -> apricot.StringMap + 4, // 35: apricot.Apricot.RawGetRecursive:output_type -> apricot.ComponentResponse + 23, // 36: apricot.Apricot.ListDetectors:output_type -> apricot.DetectorsResponse + 25, // 37: apricot.Apricot.GetHostInventory:output_type -> apricot.HostEntriesResponse + 10, // 38: apricot.Apricot.GetDetectorsInventory:output_type -> apricot.DetectorEntriesResponse + 8, // 39: apricot.Apricot.GetDetectorForHost:output_type -> apricot.DetectorResponse + 23, // 40: apricot.Apricot.GetDetectorsForHosts:output_type -> apricot.DetectorsResponse + 28, // 41: apricot.Apricot.GetCRUCardsForHost:output_type -> apricot.CRUCardsResponse + 30, // 42: apricot.Apricot.GetEndpointsForCRUCard:output_type -> apricot.CRUCardEndpointResponse + 4, // 43: apricot.Apricot.GetRuntimeEntry:output_type -> apricot.ComponentResponse + 1, // 44: apricot.Apricot.SetRuntimeEntry:output_type -> apricot.Empty + 12, // 45: apricot.Apricot.GetRuntimeEntries:output_type -> apricot.StringMap + 21, // 46: apricot.Apricot.ListRuntimeEntries:output_type -> apricot.ComponentEntriesResponse + 21, // 47: apricot.Apricot.ListComponents:output_type -> apricot.ComponentEntriesResponse + 21, // 48: apricot.Apricot.ListComponentEntries:output_type -> apricot.ComponentEntriesResponse + 21, // 49: apricot.Apricot.ListComponentEntryHistory:output_type -> apricot.ComponentEntriesResponse + 4, // 50: apricot.Apricot.GetComponentConfiguration:output_type -> apricot.ComponentResponse + 5, // 51: apricot.Apricot.GetComponentConfigurationWithLastIndex:output_type -> apricot.ComponentResponseWithLastIndex + 2, // 52: apricot.Apricot.ResolveComponentQuery:output_type -> apricot.ComponentQuery + 27, // 53: apricot.Apricot.ImportComponentConfiguration:output_type -> apricot.ImportComponentConfigurationResponse + 1, // 54: apricot.Apricot.InvalidateComponentTemplateCache:output_type -> apricot.Empty + 32, // [32:55] is the sub-list for method output_type + 9, // [9:32] is the sub-list for method input_type 9, // [9:9] is the sub-list for extension type_name 9, // [9:9] is the sub-list for extension extendee 0, // [0:9] is the sub-list for field type_name @@ -2339,7 +2398,7 @@ func file_protos_apricot_proto_init() { } } file_protos_apricot_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListRuntimeEntriesRequest); i { + switch v := v.(*GetRuntimeEntriesRequest); i { case 0: return &v.state case 1: @@ -2351,7 +2410,7 @@ func file_protos_apricot_proto_init() { } } file_protos_apricot_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ComponentEntriesQuery); i { + switch v := v.(*ListRuntimeEntriesRequest); i { case 0: return &v.state case 1: @@ -2363,7 +2422,7 @@ func file_protos_apricot_proto_init() { } } file_protos_apricot_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListComponentEntriesRequest); i { + switch v := v.(*ComponentEntriesQuery); i { case 0: return &v.state case 1: @@ -2375,7 +2434,7 @@ func file_protos_apricot_proto_init() { } } file_protos_apricot_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ComponentEntriesResponse); i { + switch v := v.(*ListComponentEntriesRequest); i { case 0: return &v.state case 1: @@ -2387,7 +2446,7 @@ func file_protos_apricot_proto_init() { } } file_protos_apricot_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DetectorsRequest); i { + switch v := v.(*ComponentEntriesResponse); i { case 0: return &v.state case 1: @@ -2399,7 +2458,7 @@ func file_protos_apricot_proto_init() { } } file_protos_apricot_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DetectorsResponse); i { + switch v := v.(*DetectorsRequest); i { case 0: return &v.state case 1: @@ -2411,7 +2470,7 @@ func file_protos_apricot_proto_init() { } } file_protos_apricot_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HostGetRequest); i { + switch v := v.(*DetectorsResponse); i { case 0: return &v.state case 1: @@ -2423,7 +2482,7 @@ func file_protos_apricot_proto_init() { } } file_protos_apricot_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HostEntriesResponse); i { + switch v := v.(*HostGetRequest); i { case 0: return &v.state case 1: @@ -2435,7 +2494,7 @@ func file_protos_apricot_proto_init() { } } file_protos_apricot_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ImportComponentConfigurationRequest); i { + switch v := v.(*HostEntriesResponse); i { case 0: return &v.state case 1: @@ -2447,7 +2506,7 @@ func file_protos_apricot_proto_init() { } } file_protos_apricot_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ImportComponentConfigurationResponse); i { + switch v := v.(*ImportComponentConfigurationRequest); i { case 0: return &v.state case 1: @@ -2459,7 +2518,7 @@ func file_protos_apricot_proto_init() { } } file_protos_apricot_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CRUCardsResponse); i { + switch v := v.(*ImportComponentConfigurationResponse); i { case 0: return &v.state case 1: @@ -2471,7 +2530,7 @@ func file_protos_apricot_proto_init() { } } file_protos_apricot_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CardRequest); i { + switch v := v.(*CRUCardsResponse); i { case 0: return &v.state case 1: @@ -2483,6 +2542,18 @@ func file_protos_apricot_proto_init() { } } file_protos_apricot_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CardRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protos_apricot_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CRUCardEndpointResponse); i { case 0: return &v.state @@ -2499,7 +2570,7 @@ func file_protos_apricot_proto_init() { (*ComponentRequest_Path)(nil), (*ComponentRequest_Query)(nil), } - file_protos_apricot_proto_msgTypes[18].OneofWrappers = []interface{}{ + file_protos_apricot_proto_msgTypes[19].OneofWrappers = []interface{}{ (*ListComponentEntriesRequest_Path)(nil), (*ListComponentEntriesRequest_Query)(nil), } @@ -2509,7 +2580,7 @@ func file_protos_apricot_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_protos_apricot_proto_rawDesc, NumEnums: 1, - NumMessages: 32, + NumMessages: 33, NumExtensions: 0, NumServices: 1, }, diff --git a/apricot/protos/apricot.proto b/apricot/protos/apricot.proto index 6b37f8fe0..e02d226f2 100644 --- a/apricot/protos/apricot.proto +++ b/apricot/protos/apricot.proto @@ -46,6 +46,7 @@ service Apricot { // Runtime KV calls rpc GetRuntimeEntry(GetRuntimeEntryRequest) returns (ComponentResponse) {} rpc SetRuntimeEntry(SetRuntimeEntryRequest) returns (Empty) {} + rpc GetRuntimeEntries(GetRuntimeEntriesRequest) returns (StringMap) {} rpc ListRuntimeEntries(ListRuntimeEntriesRequest) returns (ComponentEntriesResponse) {} // Component configuration calls @@ -163,6 +164,10 @@ message GetEntryRequest { string key = 1; } +message GetRuntimeEntriesRequest { + string component = 1; +} + message ListRuntimeEntriesRequest { string component = 1; } @@ -225,4 +230,4 @@ message CardRequest { message CRUCardEndpointResponse { string endpoints = 1; -} \ No newline at end of file +} diff --git a/apricot/protos/apricot_grpc.pb.go b/apricot/protos/apricot_grpc.pb.go index 0e06a91a1..15252494a 100644 --- a/apricot/protos/apricot_grpc.pb.go +++ b/apricot/protos/apricot_grpc.pb.go @@ -1,7 +1,30 @@ +// +// === This file is part of ALICE O² === +// +// Copyright 2020-2021 CERN and copyright holders of ALICE O². +// Author: Teo Mrnjavac +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// In applying this license CERN does not waive the privileges and +// immunities granted to it by virtue of its status as an +// Intergovernmental Organization or submit itself to any jurisdiction. + // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v4.24.2 +// - protoc-gen-go-grpc v1.3.0 +// - protoc v4.25.1 // source: protos/apricot.proto package apricotpb @@ -18,6 +41,32 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + Apricot_NewRunNumber_FullMethodName = "/apricot.Apricot/NewRunNumber" + Apricot_GetDefaults_FullMethodName = "/apricot.Apricot/GetDefaults" + Apricot_GetVars_FullMethodName = "/apricot.Apricot/GetVars" + Apricot_RawGetRecursive_FullMethodName = "/apricot.Apricot/RawGetRecursive" + Apricot_ListDetectors_FullMethodName = "/apricot.Apricot/ListDetectors" + Apricot_GetHostInventory_FullMethodName = "/apricot.Apricot/GetHostInventory" + Apricot_GetDetectorsInventory_FullMethodName = "/apricot.Apricot/GetDetectorsInventory" + Apricot_GetDetectorForHost_FullMethodName = "/apricot.Apricot/GetDetectorForHost" + Apricot_GetDetectorsForHosts_FullMethodName = "/apricot.Apricot/GetDetectorsForHosts" + Apricot_GetCRUCardsForHost_FullMethodName = "/apricot.Apricot/GetCRUCardsForHost" + Apricot_GetEndpointsForCRUCard_FullMethodName = "/apricot.Apricot/GetEndpointsForCRUCard" + Apricot_GetRuntimeEntry_FullMethodName = "/apricot.Apricot/GetRuntimeEntry" + Apricot_SetRuntimeEntry_FullMethodName = "/apricot.Apricot/SetRuntimeEntry" + Apricot_GetRuntimeEntries_FullMethodName = "/apricot.Apricot/GetRuntimeEntries" + Apricot_ListRuntimeEntries_FullMethodName = "/apricot.Apricot/ListRuntimeEntries" + Apricot_ListComponents_FullMethodName = "/apricot.Apricot/ListComponents" + Apricot_ListComponentEntries_FullMethodName = "/apricot.Apricot/ListComponentEntries" + Apricot_ListComponentEntryHistory_FullMethodName = "/apricot.Apricot/ListComponentEntryHistory" + Apricot_GetComponentConfiguration_FullMethodName = "/apricot.Apricot/GetComponentConfiguration" + Apricot_GetComponentConfigurationWithLastIndex_FullMethodName = "/apricot.Apricot/GetComponentConfigurationWithLastIndex" + Apricot_ResolveComponentQuery_FullMethodName = "/apricot.Apricot/ResolveComponentQuery" + Apricot_ImportComponentConfiguration_FullMethodName = "/apricot.Apricot/ImportComponentConfiguration" + Apricot_InvalidateComponentTemplateCache_FullMethodName = "/apricot.Apricot/InvalidateComponentTemplateCache" +) + // ApricotClient is the client API for Apricot service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -37,6 +86,7 @@ type ApricotClient interface { // Runtime KV calls GetRuntimeEntry(ctx context.Context, in *GetRuntimeEntryRequest, opts ...grpc.CallOption) (*ComponentResponse, error) SetRuntimeEntry(ctx context.Context, in *SetRuntimeEntryRequest, opts ...grpc.CallOption) (*Empty, error) + GetRuntimeEntries(ctx context.Context, in *GetRuntimeEntriesRequest, opts ...grpc.CallOption) (*StringMap, error) ListRuntimeEntries(ctx context.Context, in *ListRuntimeEntriesRequest, opts ...grpc.CallOption) (*ComponentEntriesResponse, error) // Component configuration calls ListComponents(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ComponentEntriesResponse, error) @@ -59,7 +109,7 @@ func NewApricotClient(cc grpc.ClientConnInterface) ApricotClient { func (c *apricotClient) NewRunNumber(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*RunNumberResponse, error) { out := new(RunNumberResponse) - err := c.cc.Invoke(ctx, "/apricot.Apricot/NewRunNumber", in, out, opts...) + err := c.cc.Invoke(ctx, Apricot_NewRunNumber_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -68,7 +118,7 @@ func (c *apricotClient) NewRunNumber(ctx context.Context, in *Empty, opts ...grp func (c *apricotClient) GetDefaults(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*StringMap, error) { out := new(StringMap) - err := c.cc.Invoke(ctx, "/apricot.Apricot/GetDefaults", in, out, opts...) + err := c.cc.Invoke(ctx, Apricot_GetDefaults_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -77,7 +127,7 @@ func (c *apricotClient) GetDefaults(ctx context.Context, in *Empty, opts ...grpc func (c *apricotClient) GetVars(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*StringMap, error) { out := new(StringMap) - err := c.cc.Invoke(ctx, "/apricot.Apricot/GetVars", in, out, opts...) + err := c.cc.Invoke(ctx, Apricot_GetVars_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -86,7 +136,7 @@ func (c *apricotClient) GetVars(ctx context.Context, in *Empty, opts ...grpc.Cal func (c *apricotClient) RawGetRecursive(ctx context.Context, in *RawGetRecursiveRequest, opts ...grpc.CallOption) (*ComponentResponse, error) { out := new(ComponentResponse) - err := c.cc.Invoke(ctx, "/apricot.Apricot/RawGetRecursive", in, out, opts...) + err := c.cc.Invoke(ctx, Apricot_RawGetRecursive_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -95,7 +145,7 @@ func (c *apricotClient) RawGetRecursive(ctx context.Context, in *RawGetRecursive func (c *apricotClient) ListDetectors(ctx context.Context, in *DetectorsRequest, opts ...grpc.CallOption) (*DetectorsResponse, error) { out := new(DetectorsResponse) - err := c.cc.Invoke(ctx, "/apricot.Apricot/ListDetectors", in, out, opts...) + err := c.cc.Invoke(ctx, Apricot_ListDetectors_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -104,7 +154,7 @@ func (c *apricotClient) ListDetectors(ctx context.Context, in *DetectorsRequest, func (c *apricotClient) GetHostInventory(ctx context.Context, in *HostGetRequest, opts ...grpc.CallOption) (*HostEntriesResponse, error) { out := new(HostEntriesResponse) - err := c.cc.Invoke(ctx, "/apricot.Apricot/GetHostInventory", in, out, opts...) + err := c.cc.Invoke(ctx, Apricot_GetHostInventory_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -113,7 +163,7 @@ func (c *apricotClient) GetHostInventory(ctx context.Context, in *HostGetRequest func (c *apricotClient) GetDetectorsInventory(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*DetectorEntriesResponse, error) { out := new(DetectorEntriesResponse) - err := c.cc.Invoke(ctx, "/apricot.Apricot/GetDetectorsInventory", in, out, opts...) + err := c.cc.Invoke(ctx, Apricot_GetDetectorsInventory_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -122,7 +172,7 @@ func (c *apricotClient) GetDetectorsInventory(ctx context.Context, in *Empty, op func (c *apricotClient) GetDetectorForHost(ctx context.Context, in *HostRequest, opts ...grpc.CallOption) (*DetectorResponse, error) { out := new(DetectorResponse) - err := c.cc.Invoke(ctx, "/apricot.Apricot/GetDetectorForHost", in, out, opts...) + err := c.cc.Invoke(ctx, Apricot_GetDetectorForHost_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -131,7 +181,7 @@ func (c *apricotClient) GetDetectorForHost(ctx context.Context, in *HostRequest, func (c *apricotClient) GetDetectorsForHosts(ctx context.Context, in *HostsRequest, opts ...grpc.CallOption) (*DetectorsResponse, error) { out := new(DetectorsResponse) - err := c.cc.Invoke(ctx, "/apricot.Apricot/GetDetectorsForHosts", in, out, opts...) + err := c.cc.Invoke(ctx, Apricot_GetDetectorsForHosts_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -140,7 +190,7 @@ func (c *apricotClient) GetDetectorsForHosts(ctx context.Context, in *HostsReque func (c *apricotClient) GetCRUCardsForHost(ctx context.Context, in *HostRequest, opts ...grpc.CallOption) (*CRUCardsResponse, error) { out := new(CRUCardsResponse) - err := c.cc.Invoke(ctx, "/apricot.Apricot/GetCRUCardsForHost", in, out, opts...) + err := c.cc.Invoke(ctx, Apricot_GetCRUCardsForHost_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -149,7 +199,7 @@ func (c *apricotClient) GetCRUCardsForHost(ctx context.Context, in *HostRequest, func (c *apricotClient) GetEndpointsForCRUCard(ctx context.Context, in *CardRequest, opts ...grpc.CallOption) (*CRUCardEndpointResponse, error) { out := new(CRUCardEndpointResponse) - err := c.cc.Invoke(ctx, "/apricot.Apricot/GetEndpointsForCRUCard", in, out, opts...) + err := c.cc.Invoke(ctx, Apricot_GetEndpointsForCRUCard_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -158,7 +208,7 @@ func (c *apricotClient) GetEndpointsForCRUCard(ctx context.Context, in *CardRequ func (c *apricotClient) GetRuntimeEntry(ctx context.Context, in *GetRuntimeEntryRequest, opts ...grpc.CallOption) (*ComponentResponse, error) { out := new(ComponentResponse) - err := c.cc.Invoke(ctx, "/apricot.Apricot/GetRuntimeEntry", in, out, opts...) + err := c.cc.Invoke(ctx, Apricot_GetRuntimeEntry_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -167,7 +217,16 @@ func (c *apricotClient) GetRuntimeEntry(ctx context.Context, in *GetRuntimeEntry func (c *apricotClient) SetRuntimeEntry(ctx context.Context, in *SetRuntimeEntryRequest, opts ...grpc.CallOption) (*Empty, error) { out := new(Empty) - err := c.cc.Invoke(ctx, "/apricot.Apricot/SetRuntimeEntry", in, out, opts...) + err := c.cc.Invoke(ctx, Apricot_SetRuntimeEntry_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *apricotClient) GetRuntimeEntries(ctx context.Context, in *GetRuntimeEntriesRequest, opts ...grpc.CallOption) (*StringMap, error) { + out := new(StringMap) + err := c.cc.Invoke(ctx, Apricot_GetRuntimeEntries_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -176,7 +235,7 @@ func (c *apricotClient) SetRuntimeEntry(ctx context.Context, in *SetRuntimeEntry func (c *apricotClient) ListRuntimeEntries(ctx context.Context, in *ListRuntimeEntriesRequest, opts ...grpc.CallOption) (*ComponentEntriesResponse, error) { out := new(ComponentEntriesResponse) - err := c.cc.Invoke(ctx, "/apricot.Apricot/ListRuntimeEntries", in, out, opts...) + err := c.cc.Invoke(ctx, Apricot_ListRuntimeEntries_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -185,7 +244,7 @@ func (c *apricotClient) ListRuntimeEntries(ctx context.Context, in *ListRuntimeE func (c *apricotClient) ListComponents(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ComponentEntriesResponse, error) { out := new(ComponentEntriesResponse) - err := c.cc.Invoke(ctx, "/apricot.Apricot/ListComponents", in, out, opts...) + err := c.cc.Invoke(ctx, Apricot_ListComponents_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -194,7 +253,7 @@ func (c *apricotClient) ListComponents(ctx context.Context, in *Empty, opts ...g func (c *apricotClient) ListComponentEntries(ctx context.Context, in *ListComponentEntriesRequest, opts ...grpc.CallOption) (*ComponentEntriesResponse, error) { out := new(ComponentEntriesResponse) - err := c.cc.Invoke(ctx, "/apricot.Apricot/ListComponentEntries", in, out, opts...) + err := c.cc.Invoke(ctx, Apricot_ListComponentEntries_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -203,7 +262,7 @@ func (c *apricotClient) ListComponentEntries(ctx context.Context, in *ListCompon func (c *apricotClient) ListComponentEntryHistory(ctx context.Context, in *ComponentQuery, opts ...grpc.CallOption) (*ComponentEntriesResponse, error) { out := new(ComponentEntriesResponse) - err := c.cc.Invoke(ctx, "/apricot.Apricot/ListComponentEntryHistory", in, out, opts...) + err := c.cc.Invoke(ctx, Apricot_ListComponentEntryHistory_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -212,7 +271,7 @@ func (c *apricotClient) ListComponentEntryHistory(ctx context.Context, in *Compo func (c *apricotClient) GetComponentConfiguration(ctx context.Context, in *ComponentRequest, opts ...grpc.CallOption) (*ComponentResponse, error) { out := new(ComponentResponse) - err := c.cc.Invoke(ctx, "/apricot.Apricot/GetComponentConfiguration", in, out, opts...) + err := c.cc.Invoke(ctx, Apricot_GetComponentConfiguration_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -221,7 +280,7 @@ func (c *apricotClient) GetComponentConfiguration(ctx context.Context, in *Compo func (c *apricotClient) GetComponentConfigurationWithLastIndex(ctx context.Context, in *ComponentRequest, opts ...grpc.CallOption) (*ComponentResponseWithLastIndex, error) { out := new(ComponentResponseWithLastIndex) - err := c.cc.Invoke(ctx, "/apricot.Apricot/GetComponentConfigurationWithLastIndex", in, out, opts...) + err := c.cc.Invoke(ctx, Apricot_GetComponentConfigurationWithLastIndex_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -230,7 +289,7 @@ func (c *apricotClient) GetComponentConfigurationWithLastIndex(ctx context.Conte func (c *apricotClient) ResolveComponentQuery(ctx context.Context, in *ComponentQuery, opts ...grpc.CallOption) (*ComponentQuery, error) { out := new(ComponentQuery) - err := c.cc.Invoke(ctx, "/apricot.Apricot/ResolveComponentQuery", in, out, opts...) + err := c.cc.Invoke(ctx, Apricot_ResolveComponentQuery_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -239,7 +298,7 @@ func (c *apricotClient) ResolveComponentQuery(ctx context.Context, in *Component func (c *apricotClient) ImportComponentConfiguration(ctx context.Context, in *ImportComponentConfigurationRequest, opts ...grpc.CallOption) (*ImportComponentConfigurationResponse, error) { out := new(ImportComponentConfigurationResponse) - err := c.cc.Invoke(ctx, "/apricot.Apricot/ImportComponentConfiguration", in, out, opts...) + err := c.cc.Invoke(ctx, Apricot_ImportComponentConfiguration_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -248,7 +307,7 @@ func (c *apricotClient) ImportComponentConfiguration(ctx context.Context, in *Im func (c *apricotClient) InvalidateComponentTemplateCache(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) { out := new(Empty) - err := c.cc.Invoke(ctx, "/apricot.Apricot/InvalidateComponentTemplateCache", in, out, opts...) + err := c.cc.Invoke(ctx, Apricot_InvalidateComponentTemplateCache_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -274,6 +333,7 @@ type ApricotServer interface { // Runtime KV calls GetRuntimeEntry(context.Context, *GetRuntimeEntryRequest) (*ComponentResponse, error) SetRuntimeEntry(context.Context, *SetRuntimeEntryRequest) (*Empty, error) + GetRuntimeEntries(context.Context, *GetRuntimeEntriesRequest) (*StringMap, error) ListRuntimeEntries(context.Context, *ListRuntimeEntriesRequest) (*ComponentEntriesResponse, error) // Component configuration calls ListComponents(context.Context, *Empty) (*ComponentEntriesResponse, error) @@ -329,6 +389,9 @@ func (UnimplementedApricotServer) GetRuntimeEntry(context.Context, *GetRuntimeEn func (UnimplementedApricotServer) SetRuntimeEntry(context.Context, *SetRuntimeEntryRequest) (*Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method SetRuntimeEntry not implemented") } +func (UnimplementedApricotServer) GetRuntimeEntries(context.Context, *GetRuntimeEntriesRequest) (*StringMap, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetRuntimeEntries not implemented") +} func (UnimplementedApricotServer) ListRuntimeEntries(context.Context, *ListRuntimeEntriesRequest) (*ComponentEntriesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListRuntimeEntries not implemented") } @@ -378,7 +441,7 @@ func _Apricot_NewRunNumber_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/apricot.Apricot/NewRunNumber", + FullMethod: Apricot_NewRunNumber_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApricotServer).NewRunNumber(ctx, req.(*Empty)) @@ -396,7 +459,7 @@ func _Apricot_GetDefaults_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/apricot.Apricot/GetDefaults", + FullMethod: Apricot_GetDefaults_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApricotServer).GetDefaults(ctx, req.(*Empty)) @@ -414,7 +477,7 @@ func _Apricot_GetVars_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/apricot.Apricot/GetVars", + FullMethod: Apricot_GetVars_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApricotServer).GetVars(ctx, req.(*Empty)) @@ -432,7 +495,7 @@ func _Apricot_RawGetRecursive_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/apricot.Apricot/RawGetRecursive", + FullMethod: Apricot_RawGetRecursive_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApricotServer).RawGetRecursive(ctx, req.(*RawGetRecursiveRequest)) @@ -450,7 +513,7 @@ func _Apricot_ListDetectors_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/apricot.Apricot/ListDetectors", + FullMethod: Apricot_ListDetectors_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApricotServer).ListDetectors(ctx, req.(*DetectorsRequest)) @@ -468,7 +531,7 @@ func _Apricot_GetHostInventory_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/apricot.Apricot/GetHostInventory", + FullMethod: Apricot_GetHostInventory_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApricotServer).GetHostInventory(ctx, req.(*HostGetRequest)) @@ -486,7 +549,7 @@ func _Apricot_GetDetectorsInventory_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/apricot.Apricot/GetDetectorsInventory", + FullMethod: Apricot_GetDetectorsInventory_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApricotServer).GetDetectorsInventory(ctx, req.(*Empty)) @@ -504,7 +567,7 @@ func _Apricot_GetDetectorForHost_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/apricot.Apricot/GetDetectorForHost", + FullMethod: Apricot_GetDetectorForHost_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApricotServer).GetDetectorForHost(ctx, req.(*HostRequest)) @@ -522,7 +585,7 @@ func _Apricot_GetDetectorsForHosts_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/apricot.Apricot/GetDetectorsForHosts", + FullMethod: Apricot_GetDetectorsForHosts_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApricotServer).GetDetectorsForHosts(ctx, req.(*HostsRequest)) @@ -540,7 +603,7 @@ func _Apricot_GetCRUCardsForHost_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/apricot.Apricot/GetCRUCardsForHost", + FullMethod: Apricot_GetCRUCardsForHost_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApricotServer).GetCRUCardsForHost(ctx, req.(*HostRequest)) @@ -558,7 +621,7 @@ func _Apricot_GetEndpointsForCRUCard_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/apricot.Apricot/GetEndpointsForCRUCard", + FullMethod: Apricot_GetEndpointsForCRUCard_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApricotServer).GetEndpointsForCRUCard(ctx, req.(*CardRequest)) @@ -576,7 +639,7 @@ func _Apricot_GetRuntimeEntry_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/apricot.Apricot/GetRuntimeEntry", + FullMethod: Apricot_GetRuntimeEntry_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApricotServer).GetRuntimeEntry(ctx, req.(*GetRuntimeEntryRequest)) @@ -594,7 +657,7 @@ func _Apricot_SetRuntimeEntry_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/apricot.Apricot/SetRuntimeEntry", + FullMethod: Apricot_SetRuntimeEntry_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApricotServer).SetRuntimeEntry(ctx, req.(*SetRuntimeEntryRequest)) @@ -602,6 +665,24 @@ func _Apricot_SetRuntimeEntry_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _Apricot_GetRuntimeEntries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetRuntimeEntriesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ApricotServer).GetRuntimeEntries(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Apricot_GetRuntimeEntries_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ApricotServer).GetRuntimeEntries(ctx, req.(*GetRuntimeEntriesRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _Apricot_ListRuntimeEntries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListRuntimeEntriesRequest) if err := dec(in); err != nil { @@ -612,7 +693,7 @@ func _Apricot_ListRuntimeEntries_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/apricot.Apricot/ListRuntimeEntries", + FullMethod: Apricot_ListRuntimeEntries_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApricotServer).ListRuntimeEntries(ctx, req.(*ListRuntimeEntriesRequest)) @@ -630,7 +711,7 @@ func _Apricot_ListComponents_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/apricot.Apricot/ListComponents", + FullMethod: Apricot_ListComponents_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApricotServer).ListComponents(ctx, req.(*Empty)) @@ -648,7 +729,7 @@ func _Apricot_ListComponentEntries_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/apricot.Apricot/ListComponentEntries", + FullMethod: Apricot_ListComponentEntries_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApricotServer).ListComponentEntries(ctx, req.(*ListComponentEntriesRequest)) @@ -666,7 +747,7 @@ func _Apricot_ListComponentEntryHistory_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/apricot.Apricot/ListComponentEntryHistory", + FullMethod: Apricot_ListComponentEntryHistory_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApricotServer).ListComponentEntryHistory(ctx, req.(*ComponentQuery)) @@ -684,7 +765,7 @@ func _Apricot_GetComponentConfiguration_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/apricot.Apricot/GetComponentConfiguration", + FullMethod: Apricot_GetComponentConfiguration_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApricotServer).GetComponentConfiguration(ctx, req.(*ComponentRequest)) @@ -702,7 +783,7 @@ func _Apricot_GetComponentConfigurationWithLastIndex_Handler(srv interface{}, ct } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/apricot.Apricot/GetComponentConfigurationWithLastIndex", + FullMethod: Apricot_GetComponentConfigurationWithLastIndex_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApricotServer).GetComponentConfigurationWithLastIndex(ctx, req.(*ComponentRequest)) @@ -720,7 +801,7 @@ func _Apricot_ResolveComponentQuery_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/apricot.Apricot/ResolveComponentQuery", + FullMethod: Apricot_ResolveComponentQuery_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApricotServer).ResolveComponentQuery(ctx, req.(*ComponentQuery)) @@ -738,7 +819,7 @@ func _Apricot_ImportComponentConfiguration_Handler(srv interface{}, ctx context. } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/apricot.Apricot/ImportComponentConfiguration", + FullMethod: Apricot_ImportComponentConfiguration_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApricotServer).ImportComponentConfiguration(ctx, req.(*ImportComponentConfigurationRequest)) @@ -756,7 +837,7 @@ func _Apricot_InvalidateComponentTemplateCache_Handler(srv interface{}, ctx cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/apricot.Apricot/InvalidateComponentTemplateCache", + FullMethod: Apricot_InvalidateComponentTemplateCache_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApricotServer).InvalidateComponentTemplateCache(ctx, req.(*Empty)) @@ -823,6 +904,10 @@ var Apricot_ServiceDesc = grpc.ServiceDesc{ MethodName: "SetRuntimeEntry", Handler: _Apricot_SetRuntimeEntry_Handler, }, + { + MethodName: "GetRuntimeEntries", + Handler: _Apricot_GetRuntimeEntries_Handler, + }, { MethodName: "ListRuntimeEntries", Handler: _Apricot_ListRuntimeEntries_Handler, diff --git a/apricot/remote/server.go b/apricot/remote/server.go index 45ae0cb56..e7b980e7f 100644 --- a/apricot/remote/server.go +++ b/apricot/remote/server.go @@ -308,6 +308,22 @@ func (m *RpcServer) SetRuntimeEntry(_ context.Context, request *apricotpb.SetRun return &apricotpb.Empty{}, E_OK.Err() } +func (m *RpcServer) GetRuntimeEntries(_ context.Context, request *apricotpb.GetRuntimeEntriesRequest) (*apricotpb.StringMap, error) { + if m == nil || m.service == nil { + return nil, E_CONFIGURATION_BACKEND_UNAVAILABLE + } + m.logMethod() + if request == nil { + return nil, E_BAD_INPUT + } + + entries, err := m.service.GetRuntimeEntries(request.Component) + if err != nil { + return nil, err + } + return &apricotpb.StringMap{StringMap: entries}, E_OK.Err() +} + func (m *RpcServer) ListRuntimeEntries(_ context.Context, request *apricotpb.ListRuntimeEntriesRequest) (*apricotpb.ComponentEntriesResponse, error) { if m == nil || m.service == nil { return nil, E_CONFIGURATION_BACKEND_UNAVAILABLE diff --git a/apricot/remote/service.go b/apricot/remote/service.go index e00c15e4d..c56679c11 100644 --- a/apricot/remote/service.go +++ b/apricot/remote/service.go @@ -254,6 +254,18 @@ func (c *RemoteService) SetRuntimeEntry(component string, key string, value stri return nil } +func (c *RemoteService) GetRuntimeEntries(component string) (payload map[string]string, err error) { + request := &apricotpb.GetRuntimeEntriesRequest{ + Component: component, + } + var response *apricotpb.StringMap + response, err = c.cli.GetRuntimeEntries(context.Background(), request, grpc.EmptyCallOption{}) + if err != nil { + return nil, err + } + return response.GetStringMap(), nil +} + func (c *RemoteService) ListRuntimeEntries(component string) (payload []string, err error) { request := &apricotpb.ListRuntimeEntriesRequest{ Component: component, diff --git a/configuration/service.go b/configuration/service.go index 1e78d8cff..a74f0da00 100644 --- a/configuration/service.go +++ b/configuration/service.go @@ -30,6 +30,7 @@ import ( type RuntimeService interface { GetRuntimeEntry(component string, key string) (string, error) + GetRuntimeEntries(component string) (map[string]string, error) SetRuntimeEntry(component string, key string, value string) error ListRuntimeEntries(component string) ([]string, error) }