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

Add suggester model files #194

Open
wants to merge 1 commit 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
69 changes: 58 additions & 11 deletions gen/csharp/Asgt/Jester/V1/Jester.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,27 @@ static JesterReflection() {
"dGlvbnMSJgoFbW9kZWwYAiABKAsyEC5hc2d0LnR5cGUuTW9kZWxSBW1vZGVs",
"IoIBChFTdWdnZXN0aW9uT3B0aW9ucxIpChBzdWdnZXN0aW9uX2xpbWl0GAEg",
"ASgFUg9zdWdnZXN0aW9uTGltaXQSQgoObWluX2NvbmZpZGVuY2UYAiABKA4y",
"Gy5hc2d0LnR5cGUuQ29uZmlkZW5jZS5MZXZlbFINbWluQ29uZmlkZW5jZSK1",
"Gy5hc2d0LnR5cGUuQ29uZmlkZW5jZS5MZXZlbFINbWluQ29uZmlkZW5jZSLd",
"AQoRU3VnZ2VzdGlvblJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZRISCgR0",
"eXBlGAIgASgJUgR0eXBlEicKBmlucHV0cxgDIAMoCzIPLmFzZ3QudHlwZS5E",
"YXRhUgZpbnB1dHMSOwoHb3B0aW9ucxgEIAEoCzIhLmFzZ3QuamVzdGVyLnYx",
"LlN1Z2dlc3Rpb25PcHRpb25zUgdvcHRpb25zEhIKBHRhZ3MYBSADKAlSBHRh",
"Z3MygAEKBkplc3RlchJ2CgdTdWdnZXN0EiEuYXNndC5qZXN0ZXIudjEuU3Vn",
"Z2VzdGlvblJlcXVlc3QaIi5hc2d0Lmplc3Rlci52MS5TdWdnZXN0aW9uUmVz",
"cG9uc2Ui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edCode(descriptorData,
new pbr::FileDescriptor[] { global::Asgt.Type.DataReflection.Descriptor, global::Asgt.Type.ModelReflection.Descriptor, global::Asgt.Type.PredictionReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Grpc.Gateway.ProtocGenOpenapiv2.Options.AnnotationsReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Asgt.Jester.V1.SuggestionResponse), global::Asgt.Jester.V1.SuggestionResponse.Parser, new[]{ "Predictions", "Model" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Asgt.Jester.V1.SuggestionOptions), global::Asgt.Jester.V1.SuggestionOptions.Parser, new[]{ "SuggestionLimit", "MinConfidence" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Asgt.Jester.V1.SuggestionRequest), global::Asgt.Jester.V1.SuggestionRequest.Parser, new[]{ "Name", "Type", "Inputs", "Options", "Tags" }, null, null, null, null)
new pbr::GeneratedClrTypeInfo(typeof(global::Asgt.Jester.V1.SuggestionRequest), global::Asgt.Jester.V1.SuggestionRequest.Parser, new[]{ "Name", "Type", "Inputs", "Options", "Tags", "Model" }, null, null, null, null)
}));
}
#endregion
Expand Down Expand Up @@ -551,6 +552,7 @@ public SuggestionRequest(SuggestionRequest other) : this() {
inputs_ = other.inputs_.Clone();
options_ = other.options_ != null ? other.options_.Clone() : null;
tags_ = other.tags_.Clone();
model_ = other.model_ != null ? other.model_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}

Expand Down Expand Up @@ -618,6 +620,18 @@ public string Type {
get { return tags_; }
}

/// <summary>Field number for the "model" field.</summary>
public const int ModelFieldNumber = 6;
private global::Asgt.Type.Model model_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Asgt.Type.Model Model {
get { return model_; }
set {
model_ = value;
}
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
Expand All @@ -638,6 +652,7 @@ public bool Equals(SuggestionRequest other) {
if(!inputs_.Equals(other.inputs_)) return false;
if (!object.Equals(Options, other.Options)) return false;
if(!tags_.Equals(other.tags_)) return false;
if (!object.Equals(Model, other.Model)) return false;
return Equals(_unknownFields, other._unknownFields);
}

Expand All @@ -650,6 +665,7 @@ public override int GetHashCode() {
hash ^= inputs_.GetHashCode();
if (options_ != null) hash ^= Options.GetHashCode();
hash ^= tags_.GetHashCode();
if (model_ != null) hash ^= Model.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
Expand Down Expand Up @@ -682,6 +698,10 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteMessage(Options);
}
tags_.WriteTo(output, _repeated_tags_codec);
if (model_ != null) {
output.WriteRawTag(50);
output.WriteMessage(Model);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
Expand All @@ -706,6 +726,10 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteMessage(Options);
}
tags_.WriteTo(ref output, _repeated_tags_codec);
if (model_ != null) {
output.WriteRawTag(50);
output.WriteMessage(Model);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
Expand All @@ -727,6 +751,9 @@ public int CalculateSize() {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
}
size += tags_.CalculateSize(_repeated_tags_codec);
if (model_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Model);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
Expand All @@ -753,6 +780,12 @@ public void MergeFrom(SuggestionRequest other) {
Options.MergeFrom(other.Options);
}
tags_.Add(other.tags_);
if (other.model_ != null) {
if (model_ == null) {
Model = new global::Asgt.Type.Model();
}
Model.MergeFrom(other.Model);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}

Expand Down Expand Up @@ -791,6 +824,13 @@ public void MergeFrom(pb::CodedInputStream input) {
tags_.AddEntriesFrom(input, _repeated_tags_codec);
break;
}
case 50: {
if (model_ == null) {
Model = new global::Asgt.Type.Model();
}
input.ReadMessage(Model);
break;
}
}
}
#endif
Expand Down Expand Up @@ -829,6 +869,13 @@ public void MergeFrom(pb::CodedInputStream input) {
tags_.AddEntriesFrom(ref input, _repeated_tags_codec);
break;
}
case 50: {
if (model_ == null) {
Model = new global::Asgt.Type.Model();
}
input.ReadMessage(Model);
break;
}
}
}
}
Expand Down
Binary file modified gen/descriptor.bin
Binary file not shown.
78 changes: 45 additions & 33 deletions gen/go/asgt/jester/v1/jester.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions gen/java/ai/visma/asgt/jester/v1/JesterProto.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading