From e0900f02d246ee402b44a10368016f8a93b9bc40 Mon Sep 17 00:00:00 2001 From: Michal Derdak Date: Mon, 6 Jan 2025 15:01:58 +0100 Subject: [PATCH 1/4] Update model_registry.proto --- proto/asgt/modelregistry/v1/model_registry.proto | 1 + 1 file changed, 1 insertion(+) diff --git a/proto/asgt/modelregistry/v1/model_registry.proto b/proto/asgt/modelregistry/v1/model_registry.proto index c0512aa9..fb263d31 100644 --- a/proto/asgt/modelregistry/v1/model_registry.proto +++ b/proto/asgt/modelregistry/v1/model_registry.proto @@ -36,6 +36,7 @@ message RegisterModelRequest { asgt.type.TrainStatistics train_statistics = 7; asgt.type.DatasetStatistics dataset_statistics = 8; map target_to_confidence_thresholds = 10; + map tail_target_to_confidence_thresholds = 11; string metric_version = 11; } From ee16a9e8fb17e0f157edfa90959147f1e0fd9e93 Mon Sep 17 00:00:00 2001 From: Michal Derdak Date: Mon, 6 Jan 2025 15:03:27 +0100 Subject: [PATCH 2/4] Update model_registry.proto --- proto/asgt/modelregistry/v1/model_registry.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto/asgt/modelregistry/v1/model_registry.proto b/proto/asgt/modelregistry/v1/model_registry.proto index fb263d31..bcb92f2d 100644 --- a/proto/asgt/modelregistry/v1/model_registry.proto +++ b/proto/asgt/modelregistry/v1/model_registry.proto @@ -36,8 +36,8 @@ message RegisterModelRequest { asgt.type.TrainStatistics train_statistics = 7; asgt.type.DatasetStatistics dataset_statistics = 8; map target_to_confidence_thresholds = 10; - map tail_target_to_confidence_thresholds = 11; string metric_version = 11; + map tail_target_to_confidence_thresholds = 12; } //message DeleteModelRequest { From 4d43f41d4636fbc7dffd5b0463c8e03f688166f9 Mon Sep 17 00:00:00 2001 From: Michal Derdak Date: Mon, 6 Jan 2025 15:04:48 +0100 Subject: [PATCH 3/4] Update Makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 390421e1..c6df70fe 100644 --- a/Makefile +++ b/Makefile @@ -81,7 +81,7 @@ docker: @rm -rf gen # run the code generation in docker and copy files to local directory in the end - docker build --progress plain --build-arg BUF_TOKEN=$$BUF_TOKEN -t vmlapis . + docker build --platform=linux/amd64 --progress plain --build-arg BUF_TOKEN=$$BUF_TOKEN -t vmlapis . DOCKERID=$$(docker create vmlapis) ;\ docker cp $$DOCKERID:/app/gen ./ ;\ docker rm $$DOCKERID From 274ad03a16ffa3e1fdd36a983353913816592ad3 Mon Sep 17 00:00:00 2001 From: Michal Derdak Date: Mon, 6 Jan 2025 15:07:31 +0100 Subject: [PATCH 4/4] gen --- .../Asgt/Modelregistry/V1/ModelRegistry.cs | 78 ++++-- .../modelregistry/v1/model_registry.pb.go | 217 ++++++++------- .../modelregistry/v1/ModelRegistryProto.java | 64 +++-- .../v1/RegisterModelRequest.java | 251 ++++++++++++++++++ .../v1/RegisterModelRequestOrBuilder.java | 34 +++ .../modelregistry/v1/model_registry_pb.d.ts | 4 + .../modelregistry/v1/model_registry_pb.js | 36 ++- .../modelregistry/v1/model_registry_pb2.py | 28 +- .../modelregistry/v1/model_registry_pb2.pyi | 13 +- 9 files changed, 570 insertions(+), 155 deletions(-) diff --git a/gen/csharp/Asgt/Modelregistry/V1/ModelRegistry.cs b/gen/csharp/Asgt/Modelregistry/V1/ModelRegistry.cs index 34f75d45..12c59312 100644 --- a/gen/csharp/Asgt/Modelregistry/V1/ModelRegistry.cs +++ b/gen/csharp/Asgt/Modelregistry/V1/ModelRegistry.cs @@ -30,7 +30,7 @@ static ModelRegistryReflection() { "dHlwZS9tb2RlbC5wcm90bxoaYXNndC90eXBlL3ByZWRpY3Rpb24ucHJvdG8a", "GGFzZ3QvdHlwZS9yZXZpc2lvbi5wcm90bxoeYXNndC90eXBlL3RhcmdldF9t", "ZXRyaWNzLnByb3RvGiBhc2d0L3R5cGUvdHJhaW5fc3RhdGlzdGljcy5wcm90", - "bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnByb3RvIvAGChRSZWdpc3Rlck1v", + "bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnByb3RvIooJChRSZWdpc3Rlck1v", "ZGVsUmVxdWVzdBIsCgdkYXRhc2V0GAEgASgLMhIuYXNndC50eXBlLkRhdGFz", "ZXRSB2RhdGFzZXQSLwoIcmV2aXNpb24YAiABKAsyEy5hc2d0LnR5cGUuUmV2", "aXNpb25SCHJldmlzaW9uEiMKDW1vZGVsX3ZlcnNpb24YAyABKANSDG1vZGVs", @@ -46,31 +46,37 @@ static ModelRegistryReflection() { "Mk0uYXNndC5tb2RlbHJlZ2lzdHJ5LnYxLlJlZ2lzdGVyTW9kZWxSZXF1ZXN0", "LlRhcmdldFRvQ29uZmlkZW5jZVRocmVzaG9sZHNFbnRyeVIcdGFyZ2V0VG9D", "b25maWRlbmNlVGhyZXNob2xkcxIlCg5tZXRyaWNfdmVyc2lvbhgLIAEoCVIN", - "bWV0cmljVmVyc2lvbho6CgxNZXRyaWNzRW50cnkSEAoDa2V5GAEgASgJUgNr", - "ZXkSFAoFdmFsdWUYAiABKAVSBXZhbHVlOgI4ARpwCiFUYXJnZXRUb0NvbmZp", - "ZGVuY2VUaHJlc2hvbGRzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSNQoFdmFs", - "dWUYAiABKAsyHy5hc2d0LnR5cGUuQ29uZmlkZW5jZVRocmVzaG9sZHNSBXZh", - "bHVlOgI4AUoECAkQCiJGChZHZXRDdXJyZW50TW9kZWxSZXF1ZXN0EiwKB2Rh", - "dGFzZXQYASABKAsyEi5hc2d0LnR5cGUuRGF0YXNldFIHZGF0YXNldCJBChdH", - "ZXRDdXJyZW50TW9kZWxSZXNwb25zZRImCgVtb2RlbBgBIAEoCzIQLmFzZ3Qu", - "dHlwZS5Nb2RlbFIFbW9kZWwyzQIKDU1vZGVsUmVnaXN0cnkSVAoNUmVnaXN0", - "ZXJNb2RlbBIrLmFzZ3QubW9kZWxyZWdpc3RyeS52MS5SZWdpc3Rlck1vZGVs", - "UmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRJwCg9HZXRDdXJyZW50", - "TW9kZWwSLS5hc2d0Lm1vZGVscmVnaXN0cnkudjEuR2V0Q3VycmVudE1vZGVs", - "UmVxdWVzdBouLmFzZ3QubW9kZWxyZWdpc3RyeS52MS5HZXRDdXJyZW50TW9k", - "ZWxSZXNwb25zZRJ0ChNHZXRDdXJyZW50RnVsbE1vZGVsEi0uYXNndC5tb2Rl", - "bHJlZ2lzdHJ5LnYxLkdldEN1cnJlbnRNb2RlbFJlcXVlc3QaLi5hc2d0Lm1v", - "ZGVscmVnaXN0cnkudjEuR2V0Q3VycmVudE1vZGVsUmVzcG9uc2VC8wEKHmFp", - "LnZpc21hLmFzZ3QubW9kZWxyZWdpc3RyeS52MUISTW9kZWxSZWdpc3RyeVBy", - "b3RvUAFaR2dpdGh1Yi5jb20vZS1jb25vbWljL3ZtbGFwaXMvZ2VuL2dvL2Fz", - "Z3QvbW9kZWxyZWdpc3RyeS92MTttb2RlbHJlZ2lzdHJ5ogIDQU1YqgIVQXNn", - "dC5Nb2RlbHJlZ2lzdHJ5LlYxygIVQXNndFxNb2RlbHJlZ2lzdHJ5XFYx4gIh", - "QXNndFxNb2RlbHJlZ2lzdHJ5XFYxXEdQQk1ldGFkYXRh6gIXQXNndDo6TW9k", - "ZWxyZWdpc3RyeTo6VjFiBnByb3RvMw==")); + "bWV0cmljVmVyc2lvbhKhAQokdGFpbF90YXJnZXRfdG9fY29uZmlkZW5jZV90", + "aHJlc2hvbGRzGAwgAygLMlEuYXNndC5tb2RlbHJlZ2lzdHJ5LnYxLlJlZ2lz", + "dGVyTW9kZWxSZXF1ZXN0LlRhaWxUYXJnZXRUb0NvbmZpZGVuY2VUaHJlc2hv", + "bGRzRW50cnlSIHRhaWxUYXJnZXRUb0NvbmZpZGVuY2VUaHJlc2hvbGRzGjoK", + "DE1ldHJpY3NFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEo", + "BVIFdmFsdWU6AjgBGnAKIVRhcmdldFRvQ29uZmlkZW5jZVRocmVzaG9sZHNF", + "bnRyeRIQCgNrZXkYASABKAlSA2tleRI1CgV2YWx1ZRgCIAEoCzIfLmFzZ3Qu", + "dHlwZS5Db25maWRlbmNlVGhyZXNob2xkc1IFdmFsdWU6AjgBGnQKJVRhaWxU", + "YXJnZXRUb0NvbmZpZGVuY2VUaHJlc2hvbGRzRW50cnkSEAoDa2V5GAEgASgJ", + "UgNrZXkSNQoFdmFsdWUYAiABKAsyHy5hc2d0LnR5cGUuQ29uZmlkZW5jZVRo", + "cmVzaG9sZHNSBXZhbHVlOgI4AUoECAkQCiJGChZHZXRDdXJyZW50TW9kZWxS", + "ZXF1ZXN0EiwKB2RhdGFzZXQYASABKAsyEi5hc2d0LnR5cGUuRGF0YXNldFIH", + "ZGF0YXNldCJBChdHZXRDdXJyZW50TW9kZWxSZXNwb25zZRImCgVtb2RlbBgB", + "IAEoCzIQLmFzZ3QudHlwZS5Nb2RlbFIFbW9kZWwyzQIKDU1vZGVsUmVnaXN0", + "cnkSVAoNUmVnaXN0ZXJNb2RlbBIrLmFzZ3QubW9kZWxyZWdpc3RyeS52MS5S", + "ZWdpc3Rlck1vZGVsUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRJw", + "Cg9HZXRDdXJyZW50TW9kZWwSLS5hc2d0Lm1vZGVscmVnaXN0cnkudjEuR2V0", + "Q3VycmVudE1vZGVsUmVxdWVzdBouLmFzZ3QubW9kZWxyZWdpc3RyeS52MS5H", + "ZXRDdXJyZW50TW9kZWxSZXNwb25zZRJ0ChNHZXRDdXJyZW50RnVsbE1vZGVs", + "Ei0uYXNndC5tb2RlbHJlZ2lzdHJ5LnYxLkdldEN1cnJlbnRNb2RlbFJlcXVl", + "c3QaLi5hc2d0Lm1vZGVscmVnaXN0cnkudjEuR2V0Q3VycmVudE1vZGVsUmVz", + "cG9uc2VC8wEKHmFpLnZpc21hLmFzZ3QubW9kZWxyZWdpc3RyeS52MUISTW9k", + "ZWxSZWdpc3RyeVByb3RvUAFaR2dpdGh1Yi5jb20vZS1jb25vbWljL3ZtbGFw", + "aXMvZ2VuL2dvL2FzZ3QvbW9kZWxyZWdpc3RyeS92MTttb2RlbHJlZ2lzdHJ5", + "ogIDQU1YqgIVQXNndC5Nb2RlbHJlZ2lzdHJ5LlYxygIVQXNndFxNb2RlbHJl", + "Z2lzdHJ5XFYx4gIhQXNndFxNb2RlbHJlZ2lzdHJ5XFYxXEdQQk1ldGFkYXRh", + "6gIXQXNndDo6TW9kZWxyZWdpc3RyeTo6VjFiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Asgt.Type.DatasetReflection.Descriptor, global::Asgt.Type.DatasetStatisticsReflection.Descriptor, global::Asgt.Type.ModelReflection.Descriptor, global::Asgt.Type.PredictionReflection.Descriptor, global::Asgt.Type.RevisionReflection.Descriptor, global::Asgt.Type.TargetMetricsReflection.Descriptor, global::Asgt.Type.TrainStatisticsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Asgt.Modelregistry.V1.RegisterModelRequest), global::Asgt.Modelregistry.V1.RegisterModelRequest.Parser, new[]{ "Dataset", "Revision", "ModelVersion", "Metrics", "TargetMetrics", "InputType", "TrainStatistics", "DatasetStatistics", "TargetToConfidenceThresholds", "MetricVersion" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Asgt.Modelregistry.V1.RegisterModelRequest), global::Asgt.Modelregistry.V1.RegisterModelRequest.Parser, new[]{ "Dataset", "Revision", "ModelVersion", "Metrics", "TargetMetrics", "InputType", "TrainStatistics", "DatasetStatistics", "TargetToConfidenceThresholds", "MetricVersion", "TailTargetToConfidenceThresholds" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, }), new pbr::GeneratedClrTypeInfo(typeof(global::Asgt.Modelregistry.V1.GetCurrentModelRequest), global::Asgt.Modelregistry.V1.GetCurrentModelRequest.Parser, new[]{ "Dataset" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Asgt.Modelregistry.V1.GetCurrentModelResponse), global::Asgt.Modelregistry.V1.GetCurrentModelResponse.Parser, new[]{ "Model" }, null, null, null, null) })); @@ -123,6 +129,7 @@ public RegisterModelRequest(RegisterModelRequest other) : this() { datasetStatistics_ = other.datasetStatistics_ != null ? other.datasetStatistics_.Clone() : null; targetToConfidenceThresholds_ = other.targetToConfidenceThresholds_.Clone(); metricVersion_ = other.metricVersion_; + tailTargetToConfidenceThresholds_ = other.tailTargetToConfidenceThresholds_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -249,6 +256,17 @@ public string MetricVersion { } } + /// Field number for the "tail_target_to_confidence_thresholds" field. + public const int TailTargetToConfidenceThresholdsFieldNumber = 12; + private static readonly pbc::MapField.Codec _map_tailTargetToConfidenceThresholds_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Asgt.Type.ConfidenceThresholds.Parser), 98); + private readonly pbc::MapField tailTargetToConfidenceThresholds_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField TailTargetToConfidenceThresholds { + get { return tailTargetToConfidenceThresholds_; } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -274,6 +292,7 @@ public bool Equals(RegisterModelRequest other) { if (!object.Equals(DatasetStatistics, other.DatasetStatistics)) return false; if (!TargetToConfidenceThresholds.Equals(other.TargetToConfidenceThresholds)) return false; if (MetricVersion != other.MetricVersion) return false; + if (!TailTargetToConfidenceThresholds.Equals(other.TailTargetToConfidenceThresholds)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -291,6 +310,7 @@ public override int GetHashCode() { if (datasetStatistics_ != null) hash ^= DatasetStatistics.GetHashCode(); hash ^= TargetToConfidenceThresholds.GetHashCode(); if (MetricVersion.Length != 0) hash ^= MetricVersion.GetHashCode(); + hash ^= TailTargetToConfidenceThresholds.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -340,6 +360,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(90); output.WriteString(MetricVersion); } + tailTargetToConfidenceThresholds_.WriteTo(output, _map_tailTargetToConfidenceThresholds_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -381,6 +402,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(90); output.WriteString(MetricVersion); } + tailTargetToConfidenceThresholds_.WriteTo(ref output, _map_tailTargetToConfidenceThresholds_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -415,6 +437,7 @@ public int CalculateSize() { if (MetricVersion.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(MetricVersion); } + size += tailTargetToConfidenceThresholds_.CalculateSize(_map_tailTargetToConfidenceThresholds_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -463,6 +486,7 @@ public void MergeFrom(RegisterModelRequest other) { if (other.MetricVersion.Length != 0) { MetricVersion = other.MetricVersion; } + tailTargetToConfidenceThresholds_.MergeFrom(other.tailTargetToConfidenceThresholds_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -530,6 +554,10 @@ public void MergeFrom(pb::CodedInputStream input) { MetricVersion = input.ReadString(); break; } + case 98: { + tailTargetToConfidenceThresholds_.AddEntriesFrom(input, _map_tailTargetToConfidenceThresholds_codec); + break; + } } } #endif @@ -597,6 +625,10 @@ public void MergeFrom(pb::CodedInputStream input) { MetricVersion = input.ReadString(); break; } + case 98: { + tailTargetToConfidenceThresholds_.AddEntriesFrom(ref input, _map_tailTargetToConfidenceThresholds_codec); + break; + } } } } diff --git a/gen/go/asgt/modelregistry/v1/model_registry.pb.go b/gen/go/asgt/modelregistry/v1/model_registry.pb.go index ba5a8702..3bc8a52c 100644 --- a/gen/go/asgt/modelregistry/v1/model_registry.pb.go +++ b/gen/go/asgt/modelregistry/v1/model_registry.pb.go @@ -27,16 +27,17 @@ type RegisterModelRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Dataset *_type.Dataset `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` - Revision *_type.Revision `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - ModelVersion int64 `protobuf:"varint,3,opt,name=model_version,json=modelVersion,proto3" json:"model_version,omitempty"` - Metrics map[string]int32 `protobuf:"bytes,4,rep,name=metrics,proto3" json:"metrics,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` - TargetMetrics []*_type.TargetMetrics `protobuf:"bytes,5,rep,name=target_metrics,json=targetMetrics,proto3" json:"target_metrics,omitempty"` - InputType _type.Model_InputType `protobuf:"varint,6,opt,name=input_type,json=inputType,proto3,enum=asgt.type.Model_InputType" json:"input_type,omitempty"` - TrainStatistics *_type.TrainStatistics `protobuf:"bytes,7,opt,name=train_statistics,json=trainStatistics,proto3" json:"train_statistics,omitempty"` - DatasetStatistics *_type.DatasetStatistics `protobuf:"bytes,8,opt,name=dataset_statistics,json=datasetStatistics,proto3" json:"dataset_statistics,omitempty"` - TargetToConfidenceThresholds map[string]*_type.ConfidenceThresholds `protobuf:"bytes,10,rep,name=target_to_confidence_thresholds,json=targetToConfidenceThresholds,proto3" json:"target_to_confidence_thresholds,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - MetricVersion string `protobuf:"bytes,11,opt,name=metric_version,json=metricVersion,proto3" json:"metric_version,omitempty"` + Dataset *_type.Dataset `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` + Revision *_type.Revision `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + ModelVersion int64 `protobuf:"varint,3,opt,name=model_version,json=modelVersion,proto3" json:"model_version,omitempty"` + Metrics map[string]int32 `protobuf:"bytes,4,rep,name=metrics,proto3" json:"metrics,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + TargetMetrics []*_type.TargetMetrics `protobuf:"bytes,5,rep,name=target_metrics,json=targetMetrics,proto3" json:"target_metrics,omitempty"` + InputType _type.Model_InputType `protobuf:"varint,6,opt,name=input_type,json=inputType,proto3,enum=asgt.type.Model_InputType" json:"input_type,omitempty"` + TrainStatistics *_type.TrainStatistics `protobuf:"bytes,7,opt,name=train_statistics,json=trainStatistics,proto3" json:"train_statistics,omitempty"` + DatasetStatistics *_type.DatasetStatistics `protobuf:"bytes,8,opt,name=dataset_statistics,json=datasetStatistics,proto3" json:"dataset_statistics,omitempty"` + TargetToConfidenceThresholds map[string]*_type.ConfidenceThresholds `protobuf:"bytes,10,rep,name=target_to_confidence_thresholds,json=targetToConfidenceThresholds,proto3" json:"target_to_confidence_thresholds,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + MetricVersion string `protobuf:"bytes,11,opt,name=metric_version,json=metricVersion,proto3" json:"metric_version,omitempty"` + TailTargetToConfidenceThresholds map[string]*_type.ConfidenceThresholds `protobuf:"bytes,12,rep,name=tail_target_to_confidence_thresholds,json=tailTargetToConfidenceThresholds,proto3" json:"tail_target_to_confidence_thresholds,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } func (x *RegisterModelRequest) Reset() { @@ -141,6 +142,13 @@ func (x *RegisterModelRequest) GetMetricVersion() string { return "" } +func (x *RegisterModelRequest) GetTailTargetToConfidenceThresholds() map[string]*_type.ConfidenceThresholds { + if x != nil { + return x.TailTargetToConfidenceThresholds + } + return nil +} + type GetCurrentModelRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -256,7 +264,7 @@ var file_asgt_modelregistry_v1_model_registry_proto_rawDesc = []byte{ 0x73, 0x67, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf0, 0x06, 0x0a, + 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8a, 0x09, 0x0a, 0x14, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x73, 0x67, 0x74, 0x2e, 0x74, 0x79, @@ -300,64 +308,82 @@ var file_asgt_modelregistry_v1_model_registry_proto_rawDesc = []byte{ 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6d, 0x65, - 0x74, 0x72, 0x69, 0x63, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x3a, 0x0a, 0x0c, 0x4d, - 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x70, 0x0a, 0x21, 0x54, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x54, 0x6f, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x54, 0x68, 0x72, - 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x35, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, - 0x61, 0x73, 0x67, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x64, - 0x65, 0x6e, 0x63, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x73, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x4a, 0x04, 0x08, 0x09, 0x10, 0x0a, 0x22, - 0x46, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4d, 0x6f, 0x64, - 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x07, 0x64, 0x61, 0x74, - 0x61, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x73, 0x67, - 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x52, 0x07, - 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x22, 0x41, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x43, 0x75, - 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x26, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x10, 0x2e, 0x61, 0x73, 0x67, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x4d, 0x6f, - 0x64, 0x65, 0x6c, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x32, 0xcd, 0x02, 0x0a, 0x0d, 0x4d, - 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x12, 0x54, 0x0a, 0x0d, - 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x2b, 0x2e, - 0x61, 0x73, 0x67, 0x74, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x4d, 0x6f, - 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, - 0x74, 0x79, 0x12, 0x70, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, + 0x74, 0x72, 0x69, 0x63, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0xa1, 0x01, 0x0a, 0x24, + 0x74, 0x61, 0x69, 0x6c, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x6f, 0x5f, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, + 0x6f, 0x6c, 0x64, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x51, 0x2e, 0x61, 0x73, 0x67, + 0x74, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x6c, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x61, 0x69, 0x6c, 0x54, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x54, 0x6f, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x54, 0x68, + 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x20, 0x74, + 0x61, 0x69, 0x6c, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x6f, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x73, 0x1a, + 0x3a, 0x0a, 0x0c, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x70, 0x0a, 0x21, 0x54, + 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x6f, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1f, 0x2e, 0x61, 0x73, 0x67, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, + 0x64, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x74, 0x0a, + 0x25, 0x54, 0x61, 0x69, 0x6c, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x6f, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x61, 0x73, 0x67, 0x74, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x54, 0x68, + 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x4a, 0x04, 0x08, 0x09, 0x10, 0x0a, 0x22, 0x46, 0x0a, 0x16, 0x47, 0x65, 0x74, + 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x73, 0x67, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x52, 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, + 0x74, 0x22, 0x41, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4d, + 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x05, + 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x61, 0x73, + 0x67, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x05, 0x6d, + 0x6f, 0x64, 0x65, 0x6c, 0x32, 0xcd, 0x02, 0x0a, 0x0d, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x12, 0x54, 0x0a, 0x0d, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x2b, 0x2e, 0x61, 0x73, 0x67, 0x74, 0x2e, 0x6d, + 0x6f, 0x64, 0x65, 0x6c, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x70, 0x0a, 0x0f, + 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, + 0x2d, 0x2e, 0x61, 0x73, 0x67, 0x74, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, + 0x6e, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, + 0x2e, 0x61, 0x73, 0x67, 0x74, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, + 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, + 0x0a, 0x13, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x2d, 0x2e, 0x61, 0x73, 0x67, 0x74, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x61, 0x73, 0x67, 0x74, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, - 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x2d, 0x2e, 0x61, 0x73, - 0x67, 0x74, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4d, 0x6f, - 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x61, 0x73, 0x67, - 0x74, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, - 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4d, 0x6f, 0x64, - 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xf3, 0x01, 0x0a, 0x1e, 0x61, - 0x69, 0x2e, 0x76, 0x69, 0x73, 0x6d, 0x61, 0x2e, 0x61, 0x73, 0x67, 0x74, 0x2e, 0x6d, 0x6f, 0x64, - 0x65, 0x6c, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x42, 0x12, 0x4d, - 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x47, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x65, 0x2d, 0x63, 0x6f, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x2f, 0x76, 0x6d, 0x6c, 0x61, 0x70, 0x69, - 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x73, 0x67, 0x74, 0x2f, 0x6d, 0x6f, - 0x64, 0x65, 0x6c, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x6d, - 0x6f, 0x64, 0x65, 0x6c, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0xa2, 0x02, 0x03, 0x41, - 0x4d, 0x58, 0xaa, 0x02, 0x15, 0x41, 0x73, 0x67, 0x74, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x72, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15, 0x41, 0x73, 0x67, - 0x74, 0x5c, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, - 0x56, 0x31, 0xe2, 0x02, 0x21, 0x41, 0x73, 0x67, 0x74, 0x5c, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x72, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x17, 0x41, 0x73, 0x67, 0x74, 0x3a, 0x3a, 0x4d, - 0x6f, 0x64, 0x65, 0x6c, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xf3, 0x01, 0x0a, 0x1e, 0x61, 0x69, 0x2e, 0x76, 0x69, 0x73, 0x6d, + 0x61, 0x2e, 0x61, 0x73, 0x67, 0x74, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x42, 0x12, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x47, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x2d, 0x63, 0x6f, 0x6e, 0x6f, + 0x6d, 0x69, 0x63, 0x2f, 0x76, 0x6d, 0x6c, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, + 0x67, 0x6f, 0x2f, 0x61, 0x73, 0x67, 0x74, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0xa2, 0x02, 0x03, 0x41, 0x4d, 0x58, 0xaa, 0x02, 0x15, 0x41, + 0x73, 0x67, 0x74, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15, 0x41, 0x73, 0x67, 0x74, 0x5c, 0x4d, 0x6f, 0x64, 0x65, + 0x6c, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x21, 0x41, + 0x73, 0x67, 0x74, 0x5c, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x17, 0x41, 0x73, 0x67, 0x74, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( @@ -372,46 +398,49 @@ func file_asgt_modelregistry_v1_model_registry_proto_rawDescGZIP() []byte { return file_asgt_modelregistry_v1_model_registry_proto_rawDescData } -var file_asgt_modelregistry_v1_model_registry_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_asgt_modelregistry_v1_model_registry_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_asgt_modelregistry_v1_model_registry_proto_goTypes = []interface{}{ (*RegisterModelRequest)(nil), // 0: asgt.modelregistry.v1.RegisterModelRequest (*GetCurrentModelRequest)(nil), // 1: asgt.modelregistry.v1.GetCurrentModelRequest (*GetCurrentModelResponse)(nil), // 2: asgt.modelregistry.v1.GetCurrentModelResponse nil, // 3: asgt.modelregistry.v1.RegisterModelRequest.MetricsEntry nil, // 4: asgt.modelregistry.v1.RegisterModelRequest.TargetToConfidenceThresholdsEntry - (*_type.Dataset)(nil), // 5: asgt.type.Dataset - (*_type.Revision)(nil), // 6: asgt.type.Revision - (*_type.TargetMetrics)(nil), // 7: asgt.type.TargetMetrics - (_type.Model_InputType)(0), // 8: asgt.type.Model.InputType - (*_type.TrainStatistics)(nil), // 9: asgt.type.TrainStatistics - (*_type.DatasetStatistics)(nil), // 10: asgt.type.DatasetStatistics - (*_type.Model)(nil), // 11: asgt.type.Model - (*_type.ConfidenceThresholds)(nil), // 12: asgt.type.ConfidenceThresholds - (*emptypb.Empty)(nil), // 13: google.protobuf.Empty + nil, // 5: asgt.modelregistry.v1.RegisterModelRequest.TailTargetToConfidenceThresholdsEntry + (*_type.Dataset)(nil), // 6: asgt.type.Dataset + (*_type.Revision)(nil), // 7: asgt.type.Revision + (*_type.TargetMetrics)(nil), // 8: asgt.type.TargetMetrics + (_type.Model_InputType)(0), // 9: asgt.type.Model.InputType + (*_type.TrainStatistics)(nil), // 10: asgt.type.TrainStatistics + (*_type.DatasetStatistics)(nil), // 11: asgt.type.DatasetStatistics + (*_type.Model)(nil), // 12: asgt.type.Model + (*_type.ConfidenceThresholds)(nil), // 13: asgt.type.ConfidenceThresholds + (*emptypb.Empty)(nil), // 14: google.protobuf.Empty } var file_asgt_modelregistry_v1_model_registry_proto_depIdxs = []int32{ - 5, // 0: asgt.modelregistry.v1.RegisterModelRequest.dataset:type_name -> asgt.type.Dataset - 6, // 1: asgt.modelregistry.v1.RegisterModelRequest.revision:type_name -> asgt.type.Revision + 6, // 0: asgt.modelregistry.v1.RegisterModelRequest.dataset:type_name -> asgt.type.Dataset + 7, // 1: asgt.modelregistry.v1.RegisterModelRequest.revision:type_name -> asgt.type.Revision 3, // 2: asgt.modelregistry.v1.RegisterModelRequest.metrics:type_name -> asgt.modelregistry.v1.RegisterModelRequest.MetricsEntry - 7, // 3: asgt.modelregistry.v1.RegisterModelRequest.target_metrics:type_name -> asgt.type.TargetMetrics - 8, // 4: asgt.modelregistry.v1.RegisterModelRequest.input_type:type_name -> asgt.type.Model.InputType - 9, // 5: asgt.modelregistry.v1.RegisterModelRequest.train_statistics:type_name -> asgt.type.TrainStatistics - 10, // 6: asgt.modelregistry.v1.RegisterModelRequest.dataset_statistics:type_name -> asgt.type.DatasetStatistics + 8, // 3: asgt.modelregistry.v1.RegisterModelRequest.target_metrics:type_name -> asgt.type.TargetMetrics + 9, // 4: asgt.modelregistry.v1.RegisterModelRequest.input_type:type_name -> asgt.type.Model.InputType + 10, // 5: asgt.modelregistry.v1.RegisterModelRequest.train_statistics:type_name -> asgt.type.TrainStatistics + 11, // 6: asgt.modelregistry.v1.RegisterModelRequest.dataset_statistics:type_name -> asgt.type.DatasetStatistics 4, // 7: asgt.modelregistry.v1.RegisterModelRequest.target_to_confidence_thresholds:type_name -> asgt.modelregistry.v1.RegisterModelRequest.TargetToConfidenceThresholdsEntry - 5, // 8: asgt.modelregistry.v1.GetCurrentModelRequest.dataset:type_name -> asgt.type.Dataset - 11, // 9: asgt.modelregistry.v1.GetCurrentModelResponse.model:type_name -> asgt.type.Model - 12, // 10: asgt.modelregistry.v1.RegisterModelRequest.TargetToConfidenceThresholdsEntry.value:type_name -> asgt.type.ConfidenceThresholds - 0, // 11: asgt.modelregistry.v1.ModelRegistry.RegisterModel:input_type -> asgt.modelregistry.v1.RegisterModelRequest - 1, // 12: asgt.modelregistry.v1.ModelRegistry.GetCurrentModel:input_type -> asgt.modelregistry.v1.GetCurrentModelRequest - 1, // 13: asgt.modelregistry.v1.ModelRegistry.GetCurrentFullModel:input_type -> asgt.modelregistry.v1.GetCurrentModelRequest - 13, // 14: asgt.modelregistry.v1.ModelRegistry.RegisterModel:output_type -> google.protobuf.Empty - 2, // 15: asgt.modelregistry.v1.ModelRegistry.GetCurrentModel:output_type -> asgt.modelregistry.v1.GetCurrentModelResponse - 2, // 16: asgt.modelregistry.v1.ModelRegistry.GetCurrentFullModel:output_type -> asgt.modelregistry.v1.GetCurrentModelResponse - 14, // [14:17] is the sub-list for method output_type - 11, // [11:14] is the sub-list for method input_type - 11, // [11:11] is the sub-list for extension type_name - 11, // [11:11] is the sub-list for extension extendee - 0, // [0:11] is the sub-list for field type_name + 5, // 8: asgt.modelregistry.v1.RegisterModelRequest.tail_target_to_confidence_thresholds:type_name -> asgt.modelregistry.v1.RegisterModelRequest.TailTargetToConfidenceThresholdsEntry + 6, // 9: asgt.modelregistry.v1.GetCurrentModelRequest.dataset:type_name -> asgt.type.Dataset + 12, // 10: asgt.modelregistry.v1.GetCurrentModelResponse.model:type_name -> asgt.type.Model + 13, // 11: asgt.modelregistry.v1.RegisterModelRequest.TargetToConfidenceThresholdsEntry.value:type_name -> asgt.type.ConfidenceThresholds + 13, // 12: asgt.modelregistry.v1.RegisterModelRequest.TailTargetToConfidenceThresholdsEntry.value:type_name -> asgt.type.ConfidenceThresholds + 0, // 13: asgt.modelregistry.v1.ModelRegistry.RegisterModel:input_type -> asgt.modelregistry.v1.RegisterModelRequest + 1, // 14: asgt.modelregistry.v1.ModelRegistry.GetCurrentModel:input_type -> asgt.modelregistry.v1.GetCurrentModelRequest + 1, // 15: asgt.modelregistry.v1.ModelRegistry.GetCurrentFullModel:input_type -> asgt.modelregistry.v1.GetCurrentModelRequest + 14, // 16: asgt.modelregistry.v1.ModelRegistry.RegisterModel:output_type -> google.protobuf.Empty + 2, // 17: asgt.modelregistry.v1.ModelRegistry.GetCurrentModel:output_type -> asgt.modelregistry.v1.GetCurrentModelResponse + 2, // 18: asgt.modelregistry.v1.ModelRegistry.GetCurrentFullModel:output_type -> asgt.modelregistry.v1.GetCurrentModelResponse + 16, // [16:19] is the sub-list for method output_type + 13, // [13:16] is the sub-list for method input_type + 13, // [13:13] is the sub-list for extension type_name + 13, // [13:13] is the sub-list for extension extendee + 0, // [0:13] is the sub-list for field type_name } func init() { file_asgt_modelregistry_v1_model_registry_proto_init() } @@ -463,7 +492,7 @@ func file_asgt_modelregistry_v1_model_registry_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_asgt_modelregistry_v1_model_registry_proto_rawDesc, NumEnums: 0, - NumMessages: 5, + NumMessages: 6, NumExtensions: 0, NumServices: 1, }, diff --git a/gen/java/ai/visma/asgt/modelregistry/v1/ModelRegistryProto.java b/gen/java/ai/visma/asgt/modelregistry/v1/ModelRegistryProto.java index b7547d44..25ccc7ae 100644 --- a/gen/java/ai/visma/asgt/modelregistry/v1/ModelRegistryProto.java +++ b/gen/java/ai/visma/asgt/modelregistry/v1/ModelRegistryProto.java @@ -29,6 +29,11 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_asgt_modelregistry_v1_RegisterModelRequest_TargetToConfidenceThresholdsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_asgt_modelregistry_v1_RegisterModelRequest_TailTargetToConfidenceThresholdsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_asgt_modelregistry_v1_RegisterModelRequest_TailTargetToConfidenceThresholdsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_asgt_modelregistry_v1_GetCurrentModelRequest_descriptor; static final @@ -55,7 +60,7 @@ public static void registerAllExtensions( "pe/prediction.proto\032\030asgt/type/revision." + "proto\032\036asgt/type/target_metrics.proto\032 a" + "sgt/type/train_statistics.proto\032\033google/" + - "protobuf/empty.proto\"\360\006\n\024RegisterModelRe" + + "protobuf/empty.proto\"\212\t\n\024RegisterModelRe" + "quest\022,\n\007dataset\030\001 \001(\0132\022.asgt.type.Datas" + "etR\007dataset\022/\n\010revision\030\002 \001(\0132\023.asgt.typ" + "e.RevisionR\010revision\022#\n\rmodel_version\030\003 " + @@ -73,29 +78,36 @@ public static void registerAllExtensions( "RegisterModelRequest.TargetToConfidenceT" + "hresholdsEntryR\034targetToConfidenceThresh" + "olds\022%\n\016metric_version\030\013 \001(\tR\rmetricVers" + - "ion\032:\n\014MetricsEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n" + - "\005value\030\002 \001(\005R\005value:\0028\001\032p\n!TargetToConfi" + - "denceThresholdsEntry\022\020\n\003key\030\001 \001(\tR\003key\0225" + - "\n\005value\030\002 \001(\0132\037.asgt.type.ConfidenceThre" + - "sholdsR\005value:\0028\001J\004\010\t\020\n\"F\n\026GetCurrentMod" + - "elRequest\022,\n\007dataset\030\001 \001(\0132\022.asgt.type.D" + - "atasetR\007dataset\"A\n\027GetCurrentModelRespon" + - "se\022&\n\005model\030\001 \001(\0132\020.asgt.type.ModelR\005mod" + - "el2\315\002\n\rModelRegistry\022T\n\rRegisterModel\022+." + - "asgt.modelregistry.v1.RegisterModelReque" + - "st\032\026.google.protobuf.Empty\022p\n\017GetCurrent" + + "ion\022\241\001\n$tail_target_to_confidence_thresh" + + "olds\030\014 \003(\0132Q.asgt.modelregistry.v1.Regis" + + "terModelRequest.TailTargetToConfidenceTh" + + "resholdsEntryR tailTargetToConfidenceThr" + + "esholds\032:\n\014MetricsEntry\022\020\n\003key\030\001 \001(\tR\003ke" + + "y\022\024\n\005value\030\002 \001(\005R\005value:\0028\001\032p\n!TargetToC" + + "onfidenceThresholdsEntry\022\020\n\003key\030\001 \001(\tR\003k" + + "ey\0225\n\005value\030\002 \001(\0132\037.asgt.type.Confidence" + + "ThresholdsR\005value:\0028\001\032t\n%TailTargetToCon" + + "fidenceThresholdsEntry\022\020\n\003key\030\001 \001(\tR\003key" + + "\0225\n\005value\030\002 \001(\0132\037.asgt.type.ConfidenceTh" + + "resholdsR\005value:\0028\001J\004\010\t\020\n\"F\n\026GetCurrentM" + + "odelRequest\022,\n\007dataset\030\001 \001(\0132\022.asgt.type" + + ".DatasetR\007dataset\"A\n\027GetCurrentModelResp" + + "onse\022&\n\005model\030\001 \001(\0132\020.asgt.type.ModelR\005m" + + "odel2\315\002\n\rModelRegistry\022T\n\rRegisterModel\022" + + "+.asgt.modelregistry.v1.RegisterModelReq" + + "uest\032\026.google.protobuf.Empty\022p\n\017GetCurre" + + "ntModel\022-.asgt.modelregistry.v1.GetCurre" + + "ntModelRequest\032..asgt.modelregistry.v1.G" + + "etCurrentModelResponse\022t\n\023GetCurrentFull" + "Model\022-.asgt.modelregistry.v1.GetCurrent" + "ModelRequest\032..asgt.modelregistry.v1.Get" + - "CurrentModelResponse\022t\n\023GetCurrentFullMo" + - "del\022-.asgt.modelregistry.v1.GetCurrentMo" + - "delRequest\032..asgt.modelregistry.v1.GetCu" + - "rrentModelResponseB\363\001\n\036ai.visma.asgt.mod" + - "elregistry.v1B\022ModelRegistryProtoP\001ZGgit" + - "hub.com/e-conomic/vmlapis/gen/go/asgt/mo" + - "delregistry/v1;modelregistry\242\002\003AMX\252\002\025Asg" + - "t.Modelregistry.V1\312\002\025Asgt\\Modelregistry\\" + - "V1\342\002!Asgt\\Modelregistry\\V1\\GPBMetadata\352\002" + - "\027Asgt::Modelregistry::V1b\006proto3" + "CurrentModelResponseB\363\001\n\036ai.visma.asgt.m" + + "odelregistry.v1B\022ModelRegistryProtoP\001ZGg" + + "ithub.com/e-conomic/vmlapis/gen/go/asgt/" + + "modelregistry/v1;modelregistry\242\002\003AMX\252\002\025A" + + "sgt.Modelregistry.V1\312\002\025Asgt\\Modelregistr" + + "y\\V1\342\002!Asgt\\Modelregistry\\V1\\GPBMetadata" + + "\352\002\027Asgt::Modelregistry::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -114,7 +126,7 @@ public static void registerAllExtensions( internal_static_asgt_modelregistry_v1_RegisterModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_asgt_modelregistry_v1_RegisterModelRequest_descriptor, - new java.lang.String[] { "Dataset", "Revision", "ModelVersion", "Metrics", "TargetMetrics", "InputType", "TrainStatistics", "DatasetStatistics", "TargetToConfidenceThresholds", "MetricVersion", }); + new java.lang.String[] { "Dataset", "Revision", "ModelVersion", "Metrics", "TargetMetrics", "InputType", "TrainStatistics", "DatasetStatistics", "TargetToConfidenceThresholds", "MetricVersion", "TailTargetToConfidenceThresholds", }); internal_static_asgt_modelregistry_v1_RegisterModelRequest_MetricsEntry_descriptor = internal_static_asgt_modelregistry_v1_RegisterModelRequest_descriptor.getNestedTypes().get(0); internal_static_asgt_modelregistry_v1_RegisterModelRequest_MetricsEntry_fieldAccessorTable = new @@ -127,6 +139,12 @@ public static void registerAllExtensions( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_asgt_modelregistry_v1_RegisterModelRequest_TargetToConfidenceThresholdsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); + internal_static_asgt_modelregistry_v1_RegisterModelRequest_TailTargetToConfidenceThresholdsEntry_descriptor = + internal_static_asgt_modelregistry_v1_RegisterModelRequest_descriptor.getNestedTypes().get(2); + internal_static_asgt_modelregistry_v1_RegisterModelRequest_TailTargetToConfidenceThresholdsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_asgt_modelregistry_v1_RegisterModelRequest_TailTargetToConfidenceThresholdsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); internal_static_asgt_modelregistry_v1_GetCurrentModelRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_asgt_modelregistry_v1_GetCurrentModelRequest_fieldAccessorTable = new diff --git a/gen/java/ai/visma/asgt/modelregistry/v1/RegisterModelRequest.java b/gen/java/ai/visma/asgt/modelregistry/v1/RegisterModelRequest.java index 2aa28aa1..2d9cc5a2 100644 --- a/gen/java/ai/visma/asgt/modelregistry/v1/RegisterModelRequest.java +++ b/gen/java/ai/visma/asgt/modelregistry/v1/RegisterModelRequest.java @@ -42,6 +42,8 @@ protected com.google.protobuf.MapField internalGetMapField( return internalGetMetrics(); case 10: return internalGetTargetToConfidenceThresholds(); + case 12: + return internalGetTailTargetToConfidenceThresholds(); default: throw new RuntimeException( "Invalid map field number: " + number); @@ -424,6 +426,85 @@ public java.lang.String getMetricVersion() { } } + public static final int TAIL_TARGET_TO_CONFIDENCE_THRESHOLDS_FIELD_NUMBER = 12; + private static final class TailTargetToConfidenceThresholdsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, ai.visma.asgt.type.ConfidenceThresholds> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + ai.visma.asgt.modelregistry.v1.ModelRegistryProto.internal_static_asgt_modelregistry_v1_RegisterModelRequest_TailTargetToConfidenceThresholdsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + ai.visma.asgt.type.ConfidenceThresholds.getDefaultInstance()); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, ai.visma.asgt.type.ConfidenceThresholds> tailTargetToConfidenceThresholds_; + private com.google.protobuf.MapField + internalGetTailTargetToConfidenceThresholds() { + if (tailTargetToConfidenceThresholds_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TailTargetToConfidenceThresholdsDefaultEntryHolder.defaultEntry); + } + return tailTargetToConfidenceThresholds_; + } + public int getTailTargetToConfidenceThresholdsCount() { + return internalGetTailTargetToConfidenceThresholds().getMap().size(); + } + /** + * map<string, .asgt.type.ConfidenceThresholds> tail_target_to_confidence_thresholds = 12 [json_name = "tailTargetToConfidenceThresholds"]; + */ + @java.lang.Override + public boolean containsTailTargetToConfidenceThresholds( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetTailTargetToConfidenceThresholds().getMap().containsKey(key); + } + /** + * Use {@link #getTailTargetToConfidenceThresholdsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTailTargetToConfidenceThresholds() { + return getTailTargetToConfidenceThresholdsMap(); + } + /** + * map<string, .asgt.type.ConfidenceThresholds> tail_target_to_confidence_thresholds = 12 [json_name = "tailTargetToConfidenceThresholds"]; + */ + @java.lang.Override + public java.util.Map getTailTargetToConfidenceThresholdsMap() { + return internalGetTailTargetToConfidenceThresholds().getMap(); + } + /** + * map<string, .asgt.type.ConfidenceThresholds> tail_target_to_confidence_thresholds = 12 [json_name = "tailTargetToConfidenceThresholds"]; + */ + @java.lang.Override + public /* nullable */ +ai.visma.asgt.type.ConfidenceThresholds getTailTargetToConfidenceThresholdsOrDefault( + java.lang.String key, + /* nullable */ +ai.visma.asgt.type.ConfidenceThresholds defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTailTargetToConfidenceThresholds().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .asgt.type.ConfidenceThresholds> tail_target_to_confidence_thresholds = 12 [json_name = "tailTargetToConfidenceThresholds"]; + */ + @java.lang.Override + public ai.visma.asgt.type.ConfidenceThresholds getTailTargetToConfidenceThresholdsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTailTargetToConfidenceThresholds().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -474,6 +555,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, metricVersion_); } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetTailTargetToConfidenceThresholds(), + TailTargetToConfidenceThresholdsDefaultEntryHolder.defaultEntry, + 12); getUnknownFields().writeTo(output); } @@ -534,6 +621,16 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, metricVersion_); } + for (java.util.Map.Entry entry + : internalGetTailTargetToConfidenceThresholds().getMap().entrySet()) { + com.google.protobuf.MapEntry + tailTargetToConfidenceThresholds__ = TailTargetToConfidenceThresholdsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, tailTargetToConfidenceThresholds__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -580,6 +677,8 @@ public boolean equals(final java.lang.Object obj) { other.internalGetTargetToConfidenceThresholds())) return false; if (!getMetricVersion() .equals(other.getMetricVersion())) return false; + if (!internalGetTailTargetToConfidenceThresholds().equals( + other.internalGetTailTargetToConfidenceThresholds())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -626,6 +725,10 @@ public int hashCode() { } hash = (37 * hash) + METRIC_VERSION_FIELD_NUMBER; hash = (53 * hash) + getMetricVersion().hashCode(); + if (!internalGetTailTargetToConfidenceThresholds().getMap().isEmpty()) { + hash = (37 * hash) + TAIL_TARGET_TO_CONFIDENCE_THRESHOLDS_FIELD_NUMBER; + hash = (53 * hash) + internalGetTailTargetToConfidenceThresholds().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -743,6 +846,8 @@ protected com.google.protobuf.MapField internalGetMapField( return internalGetMetrics(); case 10: return internalGetTargetToConfidenceThresholds(); + case 12: + return internalGetTailTargetToConfidenceThresholds(); default: throw new RuntimeException( "Invalid map field number: " + number); @@ -756,6 +861,8 @@ protected com.google.protobuf.MapField internalGetMutableMapField( return internalGetMutableMetrics(); case 10: return internalGetMutableTargetToConfidenceThresholds(); + case 12: + return internalGetMutableTailTargetToConfidenceThresholds(); default: throw new RuntimeException( "Invalid map field number: " + number); @@ -815,6 +922,7 @@ public Builder clear() { } internalGetMutableTargetToConfidenceThresholds().clear(); metricVersion_ = ""; + internalGetMutableTailTargetToConfidenceThresholds().clear(); return this; } @@ -898,6 +1006,10 @@ private void buildPartial0(ai.visma.asgt.modelregistry.v1.RegisterModelRequest r if (((from_bitField0_ & 0x00000200) != 0)) { result.metricVersion_ = metricVersion_; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.tailTargetToConfidenceThresholds_ = internalGetTailTargetToConfidenceThresholds(); + result.tailTargetToConfidenceThresholds_.makeImmutable(); + } } @java.lang.Override @@ -999,6 +1111,9 @@ public Builder mergeFrom(ai.visma.asgt.modelregistry.v1.RegisterModelRequest oth bitField0_ |= 0x00000200; onChanged(); } + internalGetMutableTailTargetToConfidenceThresholds().mergeFrom( + other.internalGetTailTargetToConfidenceThresholds()); + bitField0_ |= 0x00000400; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1099,6 +1214,15 @@ public Builder mergeFrom( bitField0_ |= 0x00000200; break; } // case 90 + case 98: { + com.google.protobuf.MapEntry + tailTargetToConfidenceThresholds__ = input.readMessage( + TailTargetToConfidenceThresholdsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableTailTargetToConfidenceThresholds().getMutableMap().put( + tailTargetToConfidenceThresholds__.getKey(), tailTargetToConfidenceThresholds__.getValue()); + bitField0_ |= 0x00000400; + break; + } // case 98 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -2240,6 +2364,133 @@ public Builder setMetricVersionBytes( onChanged(); return this; } + + private com.google.protobuf.MapField< + java.lang.String, ai.visma.asgt.type.ConfidenceThresholds> tailTargetToConfidenceThresholds_; + private com.google.protobuf.MapField + internalGetTailTargetToConfidenceThresholds() { + if (tailTargetToConfidenceThresholds_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TailTargetToConfidenceThresholdsDefaultEntryHolder.defaultEntry); + } + return tailTargetToConfidenceThresholds_; + } + private com.google.protobuf.MapField + internalGetMutableTailTargetToConfidenceThresholds() { + if (tailTargetToConfidenceThresholds_ == null) { + tailTargetToConfidenceThresholds_ = com.google.protobuf.MapField.newMapField( + TailTargetToConfidenceThresholdsDefaultEntryHolder.defaultEntry); + } + if (!tailTargetToConfidenceThresholds_.isMutable()) { + tailTargetToConfidenceThresholds_ = tailTargetToConfidenceThresholds_.copy(); + } + bitField0_ |= 0x00000400; + onChanged(); + return tailTargetToConfidenceThresholds_; + } + public int getTailTargetToConfidenceThresholdsCount() { + return internalGetTailTargetToConfidenceThresholds().getMap().size(); + } + /** + * map<string, .asgt.type.ConfidenceThresholds> tail_target_to_confidence_thresholds = 12 [json_name = "tailTargetToConfidenceThresholds"]; + */ + @java.lang.Override + public boolean containsTailTargetToConfidenceThresholds( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetTailTargetToConfidenceThresholds().getMap().containsKey(key); + } + /** + * Use {@link #getTailTargetToConfidenceThresholdsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTailTargetToConfidenceThresholds() { + return getTailTargetToConfidenceThresholdsMap(); + } + /** + * map<string, .asgt.type.ConfidenceThresholds> tail_target_to_confidence_thresholds = 12 [json_name = "tailTargetToConfidenceThresholds"]; + */ + @java.lang.Override + public java.util.Map getTailTargetToConfidenceThresholdsMap() { + return internalGetTailTargetToConfidenceThresholds().getMap(); + } + /** + * map<string, .asgt.type.ConfidenceThresholds> tail_target_to_confidence_thresholds = 12 [json_name = "tailTargetToConfidenceThresholds"]; + */ + @java.lang.Override + public /* nullable */ +ai.visma.asgt.type.ConfidenceThresholds getTailTargetToConfidenceThresholdsOrDefault( + java.lang.String key, + /* nullable */ +ai.visma.asgt.type.ConfidenceThresholds defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTailTargetToConfidenceThresholds().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .asgt.type.ConfidenceThresholds> tail_target_to_confidence_thresholds = 12 [json_name = "tailTargetToConfidenceThresholds"]; + */ + @java.lang.Override + public ai.visma.asgt.type.ConfidenceThresholds getTailTargetToConfidenceThresholdsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTailTargetToConfidenceThresholds().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearTailTargetToConfidenceThresholds() { + bitField0_ = (bitField0_ & ~0x00000400); + internalGetMutableTailTargetToConfidenceThresholds().getMutableMap() + .clear(); + return this; + } + /** + * map<string, .asgt.type.ConfidenceThresholds> tail_target_to_confidence_thresholds = 12 [json_name = "tailTargetToConfidenceThresholds"]; + */ + public Builder removeTailTargetToConfidenceThresholds( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableTailTargetToConfidenceThresholds().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableTailTargetToConfidenceThresholds() { + bitField0_ |= 0x00000400; + return internalGetMutableTailTargetToConfidenceThresholds().getMutableMap(); + } + /** + * map<string, .asgt.type.ConfidenceThresholds> tail_target_to_confidence_thresholds = 12 [json_name = "tailTargetToConfidenceThresholds"]; + */ + public Builder putTailTargetToConfidenceThresholds( + java.lang.String key, + ai.visma.asgt.type.ConfidenceThresholds value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableTailTargetToConfidenceThresholds().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000400; + return this; + } + /** + * map<string, .asgt.type.ConfidenceThresholds> tail_target_to_confidence_thresholds = 12 [json_name = "tailTargetToConfidenceThresholds"]; + */ + public Builder putAllTailTargetToConfidenceThresholds( + java.util.Map values) { + internalGetMutableTailTargetToConfidenceThresholds().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000400; + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/gen/java/ai/visma/asgt/modelregistry/v1/RegisterModelRequestOrBuilder.java b/gen/java/ai/visma/asgt/modelregistry/v1/RegisterModelRequestOrBuilder.java index 84bb54f3..f59bc546 100644 --- a/gen/java/ai/visma/asgt/modelregistry/v1/RegisterModelRequestOrBuilder.java +++ b/gen/java/ai/visma/asgt/modelregistry/v1/RegisterModelRequestOrBuilder.java @@ -185,4 +185,38 @@ ai.visma.asgt.type.ConfidenceThresholds getTargetToConfidenceThresholdsOrThrow( */ com.google.protobuf.ByteString getMetricVersionBytes(); + + /** + * map<string, .asgt.type.ConfidenceThresholds> tail_target_to_confidence_thresholds = 12 [json_name = "tailTargetToConfidenceThresholds"]; + */ + int getTailTargetToConfidenceThresholdsCount(); + /** + * map<string, .asgt.type.ConfidenceThresholds> tail_target_to_confidence_thresholds = 12 [json_name = "tailTargetToConfidenceThresholds"]; + */ + boolean containsTailTargetToConfidenceThresholds( + java.lang.String key); + /** + * Use {@link #getTailTargetToConfidenceThresholdsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getTailTargetToConfidenceThresholds(); + /** + * map<string, .asgt.type.ConfidenceThresholds> tail_target_to_confidence_thresholds = 12 [json_name = "tailTargetToConfidenceThresholds"]; + */ + java.util.Map + getTailTargetToConfidenceThresholdsMap(); + /** + * map<string, .asgt.type.ConfidenceThresholds> tail_target_to_confidence_thresholds = 12 [json_name = "tailTargetToConfidenceThresholds"]; + */ + /* nullable */ +ai.visma.asgt.type.ConfidenceThresholds getTailTargetToConfidenceThresholdsOrDefault( + java.lang.String key, + /* nullable */ +ai.visma.asgt.type.ConfidenceThresholds defaultValue); + /** + * map<string, .asgt.type.ConfidenceThresholds> tail_target_to_confidence_thresholds = 12 [json_name = "tailTargetToConfidenceThresholds"]; + */ + ai.visma.asgt.type.ConfidenceThresholds getTailTargetToConfidenceThresholdsOrThrow( + java.lang.String key); } diff --git a/gen/js/asgt/modelregistry/v1/model_registry_pb.d.ts b/gen/js/asgt/modelregistry/v1/model_registry_pb.d.ts index f4323a06..ef6cbc22 100644 --- a/gen/js/asgt/modelregistry/v1/model_registry_pb.d.ts +++ b/gen/js/asgt/modelregistry/v1/model_registry_pb.d.ts @@ -51,6 +51,9 @@ export class RegisterModelRequest extends jspb.Message { getMetricVersion(): string; setMetricVersion(value: string): RegisterModelRequest; + getTailTargetToConfidenceThresholdsMap(): jspb.Map; + clearTailTargetToConfidenceThresholdsMap(): RegisterModelRequest; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): RegisterModelRequest.AsObject; static toObject(includeInstance: boolean, msg: RegisterModelRequest): RegisterModelRequest.AsObject; @@ -71,6 +74,7 @@ export namespace RegisterModelRequest { datasetStatistics?: asgt_type_dataset_statistics_pb.DatasetStatistics.AsObject, targetToConfidenceThresholdsMap: Array<[string, asgt_type_model_pb.ConfidenceThresholds.AsObject]>, metricVersion: string, + tailTargetToConfidenceThresholdsMap: Array<[string, asgt_type_model_pb.ConfidenceThresholds.AsObject]>, } } diff --git a/gen/js/asgt/modelregistry/v1/model_registry_pb.js b/gen/js/asgt/modelregistry/v1/model_registry_pb.js index 9f9ed47a..eca4bf61 100644 --- a/gen/js/asgt/modelregistry/v1/model_registry_pb.js +++ b/gen/js/asgt/modelregistry/v1/model_registry_pb.js @@ -152,7 +152,8 @@ proto.asgt.modelregistry.v1.RegisterModelRequest.toObject = function(includeInst trainStatistics: (f = msg.getTrainStatistics()) && asgt_type_train_statistics_pb.TrainStatistics.toObject(includeInstance, f), datasetStatistics: (f = msg.getDatasetStatistics()) && asgt_type_dataset_statistics_pb.DatasetStatistics.toObject(includeInstance, f), targetToConfidenceThresholdsMap: (f = msg.getTargetToConfidenceThresholdsMap()) ? f.toObject(includeInstance, proto.asgt.type.ConfidenceThresholds.toObject) : [], - metricVersion: jspb.Message.getFieldWithDefault(msg, 11, "") + metricVersion: jspb.Message.getFieldWithDefault(msg, 11, ""), + tailTargetToConfidenceThresholdsMap: (f = msg.getTailTargetToConfidenceThresholdsMap()) ? f.toObject(includeInstance, proto.asgt.type.ConfidenceThresholds.toObject) : [] }; if (includeInstance) { @@ -238,6 +239,12 @@ proto.asgt.modelregistry.v1.RegisterModelRequest.deserializeBinaryFromReader = f var value = /** @type {string} */ (reader.readString()); msg.setMetricVersion(value); break; + case 12: + var value = msg.getTailTargetToConfidenceThresholdsMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.asgt.type.ConfidenceThresholds.deserializeBinaryFromReader, "", new proto.asgt.type.ConfidenceThresholds()); + }); + break; default: reader.skipField(); break; @@ -336,6 +343,10 @@ proto.asgt.modelregistry.v1.RegisterModelRequest.serializeBinaryToWriter = funct f ); } + f = message.getTailTargetToConfidenceThresholdsMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(12, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.asgt.type.ConfidenceThresholds.serializeBinaryToWriter); + } }; @@ -625,6 +636,29 @@ proto.asgt.modelregistry.v1.RegisterModelRequest.prototype.setMetricVersion = fu }; +/** + * map tail_target_to_confidence_thresholds = 12; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.asgt.modelregistry.v1.RegisterModelRequest.prototype.getTailTargetToConfidenceThresholdsMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 12, opt_noLazyCreate, + proto.asgt.type.ConfidenceThresholds)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.asgt.modelregistry.v1.RegisterModelRequest} returns this + */ +proto.asgt.modelregistry.v1.RegisterModelRequest.prototype.clearTailTargetToConfidenceThresholdsMap = function() { + this.getTailTargetToConfidenceThresholdsMap().clear(); + return this; +}; + + diff --git a/gen/python/asgt/modelregistry/v1/model_registry_pb2.py b/gen/python/asgt/modelregistry/v1/model_registry_pb2.py index 5dda2b75..c69ffa34 100644 --- a/gen/python/asgt/modelregistry/v1/model_registry_pb2.py +++ b/gen/python/asgt/modelregistry/v1/model_registry_pb2.py @@ -21,7 +21,7 @@ from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*asgt/modelregistry/v1/model_registry.proto\x12\x15\x61sgt.modelregistry.v1\x1a\x17\x61sgt/type/dataset.proto\x1a\"asgt/type/dataset_statistics.proto\x1a\x15\x61sgt/type/model.proto\x1a\x1a\x61sgt/type/prediction.proto\x1a\x18\x61sgt/type/revision.proto\x1a\x1e\x61sgt/type/target_metrics.proto\x1a asgt/type/train_statistics.proto\x1a\x1bgoogle/protobuf/empty.proto\"\xf0\x06\n\x14RegisterModelRequest\x12,\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x12.asgt.type.DatasetR\x07\x64\x61taset\x12/\n\x08revision\x18\x02 \x01(\x0b\x32\x13.asgt.type.RevisionR\x08revision\x12#\n\rmodel_version\x18\x03 \x01(\x03R\x0cmodelVersion\x12R\n\x07metrics\x18\x04 \x03(\x0b\x32\x38.asgt.modelregistry.v1.RegisterModelRequest.MetricsEntryR\x07metrics\x12?\n\x0etarget_metrics\x18\x05 \x03(\x0b\x32\x18.asgt.type.TargetMetricsR\rtargetMetrics\x12\x39\n\ninput_type\x18\x06 \x01(\x0e\x32\x1a.asgt.type.Model.InputTypeR\tinputType\x12\x45\n\x10train_statistics\x18\x07 \x01(\x0b\x32\x1a.asgt.type.TrainStatisticsR\x0ftrainStatistics\x12K\n\x12\x64\x61taset_statistics\x18\x08 \x01(\x0b\x32\x1c.asgt.type.DatasetStatisticsR\x11\x64\x61tasetStatistics\x12\x94\x01\n\x1ftarget_to_confidence_thresholds\x18\n \x03(\x0b\x32M.asgt.modelregistry.v1.RegisterModelRequest.TargetToConfidenceThresholdsEntryR\x1ctargetToConfidenceThresholds\x12%\n\x0emetric_version\x18\x0b \x01(\tR\rmetricVersion\x1a:\n\x0cMetricsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\x05R\x05value:\x02\x38\x01\x1ap\n!TargetToConfidenceThresholdsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32\x1f.asgt.type.ConfidenceThresholdsR\x05value:\x02\x38\x01J\x04\x08\t\x10\n\"F\n\x16GetCurrentModelRequest\x12,\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x12.asgt.type.DatasetR\x07\x64\x61taset\"A\n\x17GetCurrentModelResponse\x12&\n\x05model\x18\x01 \x01(\x0b\x32\x10.asgt.type.ModelR\x05model2\xcd\x02\n\rModelRegistry\x12T\n\rRegisterModel\x12+.asgt.modelregistry.v1.RegisterModelRequest\x1a\x16.google.protobuf.Empty\x12p\n\x0fGetCurrentModel\x12-.asgt.modelregistry.v1.GetCurrentModelRequest\x1a..asgt.modelregistry.v1.GetCurrentModelResponse\x12t\n\x13GetCurrentFullModel\x12-.asgt.modelregistry.v1.GetCurrentModelRequest\x1a..asgt.modelregistry.v1.GetCurrentModelResponseBIZGgithub.com/e-conomic/vmlapis/gen/go/asgt/modelregistry/v1;modelregistryb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*asgt/modelregistry/v1/model_registry.proto\x12\x15\x61sgt.modelregistry.v1\x1a\x17\x61sgt/type/dataset.proto\x1a\"asgt/type/dataset_statistics.proto\x1a\x15\x61sgt/type/model.proto\x1a\x1a\x61sgt/type/prediction.proto\x1a\x18\x61sgt/type/revision.proto\x1a\x1e\x61sgt/type/target_metrics.proto\x1a asgt/type/train_statistics.proto\x1a\x1bgoogle/protobuf/empty.proto\"\x8a\t\n\x14RegisterModelRequest\x12,\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x12.asgt.type.DatasetR\x07\x64\x61taset\x12/\n\x08revision\x18\x02 \x01(\x0b\x32\x13.asgt.type.RevisionR\x08revision\x12#\n\rmodel_version\x18\x03 \x01(\x03R\x0cmodelVersion\x12R\n\x07metrics\x18\x04 \x03(\x0b\x32\x38.asgt.modelregistry.v1.RegisterModelRequest.MetricsEntryR\x07metrics\x12?\n\x0etarget_metrics\x18\x05 \x03(\x0b\x32\x18.asgt.type.TargetMetricsR\rtargetMetrics\x12\x39\n\ninput_type\x18\x06 \x01(\x0e\x32\x1a.asgt.type.Model.InputTypeR\tinputType\x12\x45\n\x10train_statistics\x18\x07 \x01(\x0b\x32\x1a.asgt.type.TrainStatisticsR\x0ftrainStatistics\x12K\n\x12\x64\x61taset_statistics\x18\x08 \x01(\x0b\x32\x1c.asgt.type.DatasetStatisticsR\x11\x64\x61tasetStatistics\x12\x94\x01\n\x1ftarget_to_confidence_thresholds\x18\n \x03(\x0b\x32M.asgt.modelregistry.v1.RegisterModelRequest.TargetToConfidenceThresholdsEntryR\x1ctargetToConfidenceThresholds\x12%\n\x0emetric_version\x18\x0b \x01(\tR\rmetricVersion\x12\xa1\x01\n$tail_target_to_confidence_thresholds\x18\x0c \x03(\x0b\x32Q.asgt.modelregistry.v1.RegisterModelRequest.TailTargetToConfidenceThresholdsEntryR tailTargetToConfidenceThresholds\x1a:\n\x0cMetricsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\x05R\x05value:\x02\x38\x01\x1ap\n!TargetToConfidenceThresholdsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32\x1f.asgt.type.ConfidenceThresholdsR\x05value:\x02\x38\x01\x1at\n%TailTargetToConfidenceThresholdsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32\x1f.asgt.type.ConfidenceThresholdsR\x05value:\x02\x38\x01J\x04\x08\t\x10\n\"F\n\x16GetCurrentModelRequest\x12,\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x12.asgt.type.DatasetR\x07\x64\x61taset\"A\n\x17GetCurrentModelResponse\x12&\n\x05model\x18\x01 \x01(\x0b\x32\x10.asgt.type.ModelR\x05model2\xcd\x02\n\rModelRegistry\x12T\n\rRegisterModel\x12+.asgt.modelregistry.v1.RegisterModelRequest\x1a\x16.google.protobuf.Empty\x12p\n\x0fGetCurrentModel\x12-.asgt.modelregistry.v1.GetCurrentModelRequest\x1a..asgt.modelregistry.v1.GetCurrentModelResponse\x12t\n\x13GetCurrentFullModel\x12-.asgt.modelregistry.v1.GetCurrentModelRequest\x1a..asgt.modelregistry.v1.GetCurrentModelResponseBIZGgithub.com/e-conomic/vmlapis/gen/go/asgt/modelregistry/v1;modelregistryb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -34,16 +34,20 @@ _REGISTERMODELREQUEST_METRICSENTRY._serialized_options = b'8\001' _REGISTERMODELREQUEST_TARGETTOCONFIDENCETHRESHOLDSENTRY._options = None _REGISTERMODELREQUEST_TARGETTOCONFIDENCETHRESHOLDSENTRY._serialized_options = b'8\001' + _REGISTERMODELREQUEST_TAILTARGETTOCONFIDENCETHRESHOLDSENTRY._options = None + _REGISTERMODELREQUEST_TAILTARGETTOCONFIDENCETHRESHOLDSENTRY._serialized_options = b'8\001' _globals['_REGISTERMODELREQUEST']._serialized_start=303 - _globals['_REGISTERMODELREQUEST']._serialized_end=1183 - _globals['_REGISTERMODELREQUEST_METRICSENTRY']._serialized_start=1005 - _globals['_REGISTERMODELREQUEST_METRICSENTRY']._serialized_end=1063 - _globals['_REGISTERMODELREQUEST_TARGETTOCONFIDENCETHRESHOLDSENTRY']._serialized_start=1065 - _globals['_REGISTERMODELREQUEST_TARGETTOCONFIDENCETHRESHOLDSENTRY']._serialized_end=1177 - _globals['_GETCURRENTMODELREQUEST']._serialized_start=1185 - _globals['_GETCURRENTMODELREQUEST']._serialized_end=1255 - _globals['_GETCURRENTMODELRESPONSE']._serialized_start=1257 - _globals['_GETCURRENTMODELRESPONSE']._serialized_end=1322 - _globals['_MODELREGISTRY']._serialized_start=1325 - _globals['_MODELREGISTRY']._serialized_end=1658 + _globals['_REGISTERMODELREQUEST']._serialized_end=1465 + _globals['_REGISTERMODELREQUEST_METRICSENTRY']._serialized_start=1169 + _globals['_REGISTERMODELREQUEST_METRICSENTRY']._serialized_end=1227 + _globals['_REGISTERMODELREQUEST_TARGETTOCONFIDENCETHRESHOLDSENTRY']._serialized_start=1229 + _globals['_REGISTERMODELREQUEST_TARGETTOCONFIDENCETHRESHOLDSENTRY']._serialized_end=1341 + _globals['_REGISTERMODELREQUEST_TAILTARGETTOCONFIDENCETHRESHOLDSENTRY']._serialized_start=1343 + _globals['_REGISTERMODELREQUEST_TAILTARGETTOCONFIDENCETHRESHOLDSENTRY']._serialized_end=1459 + _globals['_GETCURRENTMODELREQUEST']._serialized_start=1467 + _globals['_GETCURRENTMODELREQUEST']._serialized_end=1537 + _globals['_GETCURRENTMODELRESPONSE']._serialized_start=1539 + _globals['_GETCURRENTMODELRESPONSE']._serialized_end=1604 + _globals['_MODELREGISTRY']._serialized_start=1607 + _globals['_MODELREGISTRY']._serialized_end=1940 # @@protoc_insertion_point(module_scope) diff --git a/gen/python/asgt/modelregistry/v1/model_registry_pb2.pyi b/gen/python/asgt/modelregistry/v1/model_registry_pb2.pyi index e065b51b..351ca722 100644 --- a/gen/python/asgt/modelregistry/v1/model_registry_pb2.pyi +++ b/gen/python/asgt/modelregistry/v1/model_registry_pb2.pyi @@ -14,7 +14,7 @@ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Map DESCRIPTOR: _descriptor.FileDescriptor class RegisterModelRequest(_message.Message): - __slots__ = ["dataset", "revision", "model_version", "metrics", "target_metrics", "input_type", "train_statistics", "dataset_statistics", "target_to_confidence_thresholds", "metric_version"] + __slots__ = ["dataset", "revision", "model_version", "metrics", "target_metrics", "input_type", "train_statistics", "dataset_statistics", "target_to_confidence_thresholds", "metric_version", "tail_target_to_confidence_thresholds"] class MetricsEntry(_message.Message): __slots__ = ["key", "value"] KEY_FIELD_NUMBER: _ClassVar[int] @@ -29,6 +29,13 @@ class RegisterModelRequest(_message.Message): key: str value: _model_pb2.ConfidenceThresholds def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_model_pb2.ConfidenceThresholds, _Mapping]] = ...) -> None: ... + class TailTargetToConfidenceThresholdsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: _model_pb2.ConfidenceThresholds + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_model_pb2.ConfidenceThresholds, _Mapping]] = ...) -> None: ... DATASET_FIELD_NUMBER: _ClassVar[int] REVISION_FIELD_NUMBER: _ClassVar[int] MODEL_VERSION_FIELD_NUMBER: _ClassVar[int] @@ -39,6 +46,7 @@ class RegisterModelRequest(_message.Message): DATASET_STATISTICS_FIELD_NUMBER: _ClassVar[int] TARGET_TO_CONFIDENCE_THRESHOLDS_FIELD_NUMBER: _ClassVar[int] METRIC_VERSION_FIELD_NUMBER: _ClassVar[int] + TAIL_TARGET_TO_CONFIDENCE_THRESHOLDS_FIELD_NUMBER: _ClassVar[int] dataset: _dataset_pb2.Dataset revision: _revision_pb2.Revision model_version: int @@ -49,7 +57,8 @@ class RegisterModelRequest(_message.Message): dataset_statistics: _dataset_statistics_pb2.DatasetStatistics target_to_confidence_thresholds: _containers.MessageMap[str, _model_pb2.ConfidenceThresholds] metric_version: str - def __init__(self, dataset: _Optional[_Union[_dataset_pb2.Dataset, _Mapping]] = ..., revision: _Optional[_Union[_revision_pb2.Revision, _Mapping]] = ..., model_version: _Optional[int] = ..., metrics: _Optional[_Mapping[str, int]] = ..., target_metrics: _Optional[_Iterable[_Union[_target_metrics_pb2.TargetMetrics, _Mapping]]] = ..., input_type: _Optional[_Union[_model_pb2.Model.InputType, str]] = ..., train_statistics: _Optional[_Union[_train_statistics_pb2.TrainStatistics, _Mapping]] = ..., dataset_statistics: _Optional[_Union[_dataset_statistics_pb2.DatasetStatistics, _Mapping]] = ..., target_to_confidence_thresholds: _Optional[_Mapping[str, _model_pb2.ConfidenceThresholds]] = ..., metric_version: _Optional[str] = ...) -> None: ... + tail_target_to_confidence_thresholds: _containers.MessageMap[str, _model_pb2.ConfidenceThresholds] + def __init__(self, dataset: _Optional[_Union[_dataset_pb2.Dataset, _Mapping]] = ..., revision: _Optional[_Union[_revision_pb2.Revision, _Mapping]] = ..., model_version: _Optional[int] = ..., metrics: _Optional[_Mapping[str, int]] = ..., target_metrics: _Optional[_Iterable[_Union[_target_metrics_pb2.TargetMetrics, _Mapping]]] = ..., input_type: _Optional[_Union[_model_pb2.Model.InputType, str]] = ..., train_statistics: _Optional[_Union[_train_statistics_pb2.TrainStatistics, _Mapping]] = ..., dataset_statistics: _Optional[_Union[_dataset_statistics_pb2.DatasetStatistics, _Mapping]] = ..., target_to_confidence_thresholds: _Optional[_Mapping[str, _model_pb2.ConfidenceThresholds]] = ..., metric_version: _Optional[str] = ..., tail_target_to_confidence_thresholds: _Optional[_Mapping[str, _model_pb2.ConfidenceThresholds]] = ...) -> None: ... class GetCurrentModelRequest(_message.Message): __slots__ = ["dataset"]