Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASGT - new tail thresholds #234

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
78 changes: 55 additions & 23 deletions gen/csharp/Asgt/Modelregistry/V1/ModelRegistry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ static ModelRegistryReflection() {
"dHlwZS9tb2RlbC5wcm90bxoaYXNndC90eXBlL3ByZWRpY3Rpb24ucHJvdG8a",
"GGFzZ3QvdHlwZS9yZXZpc2lvbi5wcm90bxoeYXNndC90eXBlL3RhcmdldF9t",
"ZXRyaWNzLnByb3RvGiBhc2d0L3R5cGUvdHJhaW5fc3RhdGlzdGljcy5wcm90",
"bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnByb3RvIvAGChRSZWdpc3Rlck1v",
"bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnByb3RvIooJChRSZWdpc3Rlck1v",
"ZGVsUmVxdWVzdBIsCgdkYXRhc2V0GAEgASgLMhIuYXNndC50eXBlLkRhdGFz",
"ZXRSB2RhdGFzZXQSLwoIcmV2aXNpb24YAiABKAsyEy5hc2d0Ln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XNndC5Nb2RlbHJlZ2lzdHJ5LlYxygIVQXNndFxNb2RlbHJl",
"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)
}));
Expand Down Expand Up @@ -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);
}

Expand Down Expand Up @@ -249,6 +256,17 @@ public string MetricVersion {
}
}

/// <summary>Field number for the "tail_target_to_confidence_thresholds" field.</summary>
public const int TailTargetToConfidenceThresholdsFieldNumber = 12;
private static readonly pbc::MapField<string, global::Asgt.Type.ConfidenceThresholds>.Codec _map_tailTargetToConfidenceThresholds_codec
= new pbc::MapField<string, global::Asgt.Type.ConfidenceThresholds>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Asgt.Type.ConfidenceThresholds.Parser), 98);
private readonly pbc::MapField<string, global::Asgt.Type.ConfidenceThresholds> tailTargetToConfidenceThresholds_ = new pbc::MapField<string, global::Asgt.Type.ConfidenceThresholds>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::MapField<string, global::Asgt.Type.ConfidenceThresholds> TailTargetToConfidenceThresholds {
get { return tailTargetToConfidenceThresholds_; }
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
Expand All @@ -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);
}

Expand All @@ -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();
}
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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();
}
Expand Down Expand Up @@ -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);
}

Expand Down Expand Up @@ -530,6 +554,10 @@ public void MergeFrom(pb::CodedInputStream input) {
MetricVersion = input.ReadString();
break;
}
case 98: {
tailTargetToConfidenceThresholds_.AddEntriesFrom(input, _map_tailTargetToConfidenceThresholds_codec);
break;
}
}
}
#endif
Expand Down Expand Up @@ -597,6 +625,10 @@ public void MergeFrom(pb::CodedInputStream input) {
MetricVersion = input.ReadString();
break;
}
case 98: {
tailTargetToConfidenceThresholds_.AddEntriesFrom(ref input, _map_tailTargetToConfidenceThresholds_codec);
break;
}
}
}
}
Expand Down
Loading