From ac286a703e5ad9b7c3e2a092b6acbeeaed3d9a0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Canton-cornak=E2=80=9D?= <“anton.cornak@visma.com”> Date: Thu, 13 Mar 2025 09:43:26 +0100 Subject: [PATCH 1/4] removed linesservice --- gen/csharp/LinesserviceGrpc.cs | 155 ---- .../Ssn/Linesservice/V1/Linesservice.cs | 488 ------------ gen/go/ssn/linesservice/v1/linesservice.pb.go | 252 ------ .../linesservice/v1/linesservice_grpc.pb.go | 107 --- .../ssn/linesservice/v1/LinesRequest.java | 625 --------------- .../v1/LinesRequestOrBuilder.java | 32 - .../ssn/linesservice/v1/LinesResponse.java | 719 ------------------ .../v1/LinesResponseOrBuilder.java | 35 - .../ssn/linesservice/v1/LinesServiceGrpc.java | 332 -------- .../linesservice/v1/LinesserviceProto.java | 89 --- .../v1/linesservice_grpc_web_pb.d.ts | 31 - .../v1/linesservice_grpc_web_pb.js | 145 ---- .../ssn/linesservice/v1/linesservice_pb.d.ts | 52 -- gen/js/ssn/linesservice/v1/linesservice_pb.js | 437 ----------- .../ssn/linesservice/v1/linesservice_pb2.py | 43 -- .../ssn/linesservice/v1/linesservice_pb2.pyi | 22 - .../linesservice/v1/linesservice_pb2_grpc.py | 77 -- proto/ssn/linesservice/v1/linesservice.proto | 22 - 18 files changed, 3663 deletions(-) delete mode 100644 gen/csharp/LinesserviceGrpc.cs delete mode 100644 gen/csharp/Ssn/Linesservice/V1/Linesservice.cs delete mode 100644 gen/go/ssn/linesservice/v1/linesservice.pb.go delete mode 100644 gen/go/ssn/linesservice/v1/linesservice_grpc.pb.go delete mode 100644 gen/java/ai/visma/ssn/linesservice/v1/LinesRequest.java delete mode 100644 gen/java/ai/visma/ssn/linesservice/v1/LinesRequestOrBuilder.java delete mode 100644 gen/java/ai/visma/ssn/linesservice/v1/LinesResponse.java delete mode 100644 gen/java/ai/visma/ssn/linesservice/v1/LinesResponseOrBuilder.java delete mode 100644 gen/java/ai/visma/ssn/linesservice/v1/LinesServiceGrpc.java delete mode 100644 gen/java/ai/visma/ssn/linesservice/v1/LinesserviceProto.java delete mode 100644 gen/js/ssn/linesservice/v1/linesservice_grpc_web_pb.d.ts delete mode 100644 gen/js/ssn/linesservice/v1/linesservice_grpc_web_pb.js delete mode 100644 gen/js/ssn/linesservice/v1/linesservice_pb.d.ts delete mode 100644 gen/js/ssn/linesservice/v1/linesservice_pb.js delete mode 100644 gen/python/ssn/linesservice/v1/linesservice_pb2.py delete mode 100644 gen/python/ssn/linesservice/v1/linesservice_pb2.pyi delete mode 100644 gen/python/ssn/linesservice/v1/linesservice_pb2_grpc.py delete mode 100644 proto/ssn/linesservice/v1/linesservice.proto diff --git a/gen/csharp/LinesserviceGrpc.cs b/gen/csharp/LinesserviceGrpc.cs deleted file mode 100644 index 255a72fa..00000000 --- a/gen/csharp/LinesserviceGrpc.cs +++ /dev/null @@ -1,155 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ssn/linesservice/v1/linesservice.proto -// -#pragma warning disable 0414, 1591, 8981, 0612 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Ssn.Linesservice.V1 { - public static partial class LinesService - { - static readonly string __ServiceName = "ssn.linesservice.v1.LinesService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_ssn_linesservice_v1_LinesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Ssn.Linesservice.V1.LinesRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_ssn_linesservice_v1_LinesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Ssn.Linesservice.V1.LinesResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Predict = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Predict", - __Marshaller_ssn_linesservice_v1_LinesRequest, - __Marshaller_ssn_linesservice_v1_LinesResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Ssn.Linesservice.V1.LinesserviceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of LinesService - [grpc::BindServiceMethod(typeof(LinesService), "BindService")] - public abstract partial class LinesServiceBase - { - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Predict(global::Ssn.Linesservice.V1.LinesRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for LinesService - public partial class LinesServiceClient : grpc::ClientBase - { - /// Creates a new client for LinesService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public LinesServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for LinesService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public LinesServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected LinesServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected LinesServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Ssn.Linesservice.V1.LinesResponse Predict(global::Ssn.Linesservice.V1.LinesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Predict(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Ssn.Linesservice.V1.LinesResponse Predict(global::Ssn.Linesservice.V1.LinesRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Predict, null, options, request); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall PredictAsync(global::Ssn.Linesservice.V1.LinesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return PredictAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall PredictAsync(global::Ssn.Linesservice.V1.LinesRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Predict, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override LinesServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new LinesServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(LinesServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_Predict, serviceImpl.Predict).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, LinesServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_Predict, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Predict)); - } - - } -} -#endregion diff --git a/gen/csharp/Ssn/Linesservice/V1/Linesservice.cs b/gen/csharp/Ssn/Linesservice/V1/Linesservice.cs deleted file mode 100644 index ecf6501a..00000000 --- a/gen/csharp/Ssn/Linesservice/V1/Linesservice.cs +++ /dev/null @@ -1,488 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ssn/linesservice/v1/linesservice.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Ssn.Linesservice.V1 { - - /// Holder for reflection information generated from ssn/linesservice/v1/linesservice.proto - public static partial class LinesserviceReflection { - - #region Descriptor - /// File descriptor for ssn/linesservice/v1/linesservice.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static LinesserviceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CiZzc24vbGluZXNzZXJ2aWNlL3YxL2xpbmVzc2VydmljZS5wcm90bxITc3Nu", - "LmxpbmVzc2VydmljZS52MRoYc3NuL3R5cGUvY2FuZGlkYXRlLnByb3RvGh5z", - "c24vdHlwZS90ZXh0X2Fubm90YXRpb24ucHJvdG8iZwoMTGluZXNSZXF1ZXN0", - "EkEKD3RleHRfYW5ub3RhdGlvbhgBIAEoCzIYLnNzbi50eXBlLlRleHRBbm5v", - "dGF0aW9uUg50ZXh0QW5ub3RhdGlvbhIUCgVpbWFnZRgCIAEoDFIFaW1hZ2Ui", - "VwoNTGluZXNSZXNwb25zZRJGCg5wdXJjaGFzZV9saW5lcxgBIAMoCzIfLnNz", - "bi50eXBlLlB1cmNoYXNlTGluZUNhbmRpZGF0ZVINcHVyY2hhc2VMaW5lczJg", - "CgxMaW5lc1NlcnZpY2USUAoHUHJlZGljdBIhLnNzbi5saW5lc3NlcnZpY2Uu", - "djEuTGluZXNSZXF1ZXN0GiIuc3NuLmxpbmVzc2VydmljZS52MS5MaW5lc1Jl", - "c3BvbnNlQuUBChxhaS52aXNtYS5zc24ubGluZXNzZXJ2aWNlLnYxQhFMaW5l", - "c3NlcnZpY2VQcm90b1ABWkRnaXRodWIuY29tL2UtY29ub21pYy92bWxhcGlz", - "L2dlbi9nby9zc24vbGluZXNzZXJ2aWNlL3YxO2xpbmVzc2VydmljZaICA1NM", - "WKoCE1Nzbi5MaW5lc3NlcnZpY2UuVjHKAhNTc25cTGluZXNzZXJ2aWNlXFYx", - "4gIfU3NuXExpbmVzc2VydmljZVxWMVxHUEJNZXRhZGF0YeoCFVNzbjo6TGlu", - "ZXNzZXJ2aWNlOjpWMWIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Ssn.Type.CandidateReflection.Descriptor, global::Ssn.Type.TextAnnotationReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Linesservice.V1.LinesRequest), global::Ssn.Linesservice.V1.LinesRequest.Parser, new[]{ "TextAnnotation", "Image" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Linesservice.V1.LinesResponse), global::Ssn.Linesservice.V1.LinesResponse.Parser, new[]{ "PurchaseLines" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class LinesRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LinesRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Ssn.Linesservice.V1.LinesserviceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LinesRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LinesRequest(LinesRequest other) : this() { - textAnnotation_ = other.textAnnotation_ != null ? other.textAnnotation_.Clone() : null; - image_ = other.image_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LinesRequest Clone() { - return new LinesRequest(this); - } - - /// Field number for the "text_annotation" field. - public const int TextAnnotationFieldNumber = 1; - private global::Ssn.Type.TextAnnotation textAnnotation_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Ssn.Type.TextAnnotation TextAnnotation { - get { return textAnnotation_; } - set { - textAnnotation_ = value; - } - } - - /// Field number for the "image" field. - public const int ImageFieldNumber = 2; - private pb::ByteString image_ = pb::ByteString.Empty; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Image { - get { return image_; } - set { - image_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LinesRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LinesRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(TextAnnotation, other.TextAnnotation)) return false; - if (Image != other.Image) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (textAnnotation_ != null) hash ^= TextAnnotation.GetHashCode(); - if (Image.Length != 0) hash ^= Image.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (textAnnotation_ != null) { - output.WriteRawTag(10); - output.WriteMessage(TextAnnotation); - } - if (Image.Length != 0) { - output.WriteRawTag(18); - output.WriteBytes(Image); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (textAnnotation_ != null) { - output.WriteRawTag(10); - output.WriteMessage(TextAnnotation); - } - if (Image.Length != 0) { - output.WriteRawTag(18); - output.WriteBytes(Image); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (textAnnotation_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TextAnnotation); - } - if (Image.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Image); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LinesRequest other) { - if (other == null) { - return; - } - if (other.textAnnotation_ != null) { - if (textAnnotation_ == null) { - TextAnnotation = new global::Ssn.Type.TextAnnotation(); - } - TextAnnotation.MergeFrom(other.TextAnnotation); - } - if (other.Image.Length != 0) { - Image = other.Image; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - if ((tag & 7) == 4) { - // Abort on any end group tag. - return; - } - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (textAnnotation_ == null) { - TextAnnotation = new global::Ssn.Type.TextAnnotation(); - } - input.ReadMessage(TextAnnotation); - break; - } - case 18: { - Image = input.ReadBytes(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - if ((tag & 7) == 4) { - // Abort on any end group tag. - return; - } - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (textAnnotation_ == null) { - TextAnnotation = new global::Ssn.Type.TextAnnotation(); - } - input.ReadMessage(TextAnnotation); - break; - } - case 18: { - Image = input.ReadBytes(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class LinesResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LinesResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Ssn.Linesservice.V1.LinesserviceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LinesResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LinesResponse(LinesResponse other) : this() { - purchaseLines_ = other.purchaseLines_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LinesResponse Clone() { - return new LinesResponse(this); - } - - /// Field number for the "purchase_lines" field. - public const int PurchaseLinesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_purchaseLines_codec - = pb::FieldCodec.ForMessage(10, global::Ssn.Type.PurchaseLineCandidate.Parser); - private readonly pbc::RepeatedField purchaseLines_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PurchaseLines { - get { return purchaseLines_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LinesResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LinesResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!purchaseLines_.Equals(other.purchaseLines_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= purchaseLines_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - purchaseLines_.WriteTo(output, _repeated_purchaseLines_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - purchaseLines_.WriteTo(ref output, _repeated_purchaseLines_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += purchaseLines_.CalculateSize(_repeated_purchaseLines_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LinesResponse other) { - if (other == null) { - return; - } - purchaseLines_.Add(other.purchaseLines_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - if ((tag & 7) == 4) { - // Abort on any end group tag. - return; - } - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - purchaseLines_.AddEntriesFrom(input, _repeated_purchaseLines_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - if ((tag & 7) == 4) { - // Abort on any end group tag. - return; - } - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - purchaseLines_.AddEntriesFrom(ref input, _repeated_purchaseLines_codec); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/gen/go/ssn/linesservice/v1/linesservice.pb.go b/gen/go/ssn/linesservice/v1/linesservice.pb.go deleted file mode 100644 index 12464007..00000000 --- a/gen/go/ssn/linesservice/v1/linesservice.pb.go +++ /dev/null @@ -1,252 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.33.0 -// protoc (unknown) -// source: ssn/linesservice/v1/linesservice.proto - -package linesservice - -import ( - _type "github.com/e-conomic/vmlapis/gen/go/ssn/type" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type LinesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TextAnnotation *_type.TextAnnotation `protobuf:"bytes,1,opt,name=text_annotation,json=textAnnotation,proto3" json:"text_annotation,omitempty"` - Image []byte `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` -} - -func (x *LinesRequest) Reset() { - *x = LinesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ssn_linesservice_v1_linesservice_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LinesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LinesRequest) ProtoMessage() {} - -func (x *LinesRequest) ProtoReflect() protoreflect.Message { - mi := &file_ssn_linesservice_v1_linesservice_proto_msgTypes[0] - 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 LinesRequest.ProtoReflect.Descriptor instead. -func (*LinesRequest) Descriptor() ([]byte, []int) { - return file_ssn_linesservice_v1_linesservice_proto_rawDescGZIP(), []int{0} -} - -func (x *LinesRequest) GetTextAnnotation() *_type.TextAnnotation { - if x != nil { - return x.TextAnnotation - } - return nil -} - -func (x *LinesRequest) GetImage() []byte { - if x != nil { - return x.Image - } - return nil -} - -type LinesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PurchaseLines []*_type.PurchaseLineCandidate `protobuf:"bytes,1,rep,name=purchase_lines,json=purchaseLines,proto3" json:"purchase_lines,omitempty"` -} - -func (x *LinesResponse) Reset() { - *x = LinesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_ssn_linesservice_v1_linesservice_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LinesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LinesResponse) ProtoMessage() {} - -func (x *LinesResponse) ProtoReflect() protoreflect.Message { - mi := &file_ssn_linesservice_v1_linesservice_proto_msgTypes[1] - 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 LinesResponse.ProtoReflect.Descriptor instead. -func (*LinesResponse) Descriptor() ([]byte, []int) { - return file_ssn_linesservice_v1_linesservice_proto_rawDescGZIP(), []int{1} -} - -func (x *LinesResponse) GetPurchaseLines() []*_type.PurchaseLineCandidate { - if x != nil { - return x.PurchaseLines - } - return nil -} - -var File_ssn_linesservice_v1_linesservice_proto protoreflect.FileDescriptor - -var file_ssn_linesservice_v1_linesservice_proto_rawDesc = []byte{ - 0x0a, 0x26, 0x73, 0x73, 0x6e, 0x2f, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x73, 0x73, 0x6e, 0x2e, 0x6c, 0x69, - 0x6e, 0x65, 0x73, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x18, 0x73, - 0x73, 0x6e, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x63, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x73, 0x73, 0x6e, 0x2f, 0x74, 0x79, 0x70, - 0x65, 0x2f, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x67, 0x0a, 0x0c, 0x4c, 0x69, 0x6e, 0x65, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x0f, 0x74, 0x65, 0x78, 0x74, 0x5f, - 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x18, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x54, 0x65, 0x78, 0x74, - 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x74, 0x65, 0x78, 0x74, - 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, - 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, - 0x22, 0x57, 0x0a, 0x0d, 0x4c, 0x69, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x46, 0x0a, 0x0e, 0x70, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65, 0x5f, 0x6c, 0x69, - 0x6e, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x73, 0x73, 0x6e, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x2e, 0x50, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65, 0x4c, 0x69, 0x6e, - 0x65, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0d, 0x70, 0x75, 0x72, 0x63, - 0x68, 0x61, 0x73, 0x65, 0x4c, 0x69, 0x6e, 0x65, 0x73, 0x32, 0x60, 0x0a, 0x0c, 0x4c, 0x69, 0x6e, - 0x65, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x50, 0x0a, 0x07, 0x50, 0x72, 0x65, - 0x64, 0x69, 0x63, 0x74, 0x12, 0x21, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x6c, 0x69, 0x6e, 0x65, 0x73, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x6e, 0x65, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x6c, 0x69, - 0x6e, 0x65, 0x73, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, - 0x6e, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xe5, 0x01, 0x0a, 0x1c, - 0x61, 0x69, 0x2e, 0x76, 0x69, 0x73, 0x6d, 0x61, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x6c, 0x69, 0x6e, - 0x65, 0x73, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x11, 0x4c, 0x69, - 0x6e, 0x65, 0x73, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x44, 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, 0x73, 0x73, 0x6e, 0x2f, 0x6c, 0x69, 0x6e, 0x65, 0x73, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x6c, 0x69, 0x6e, 0x65, 0x73, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x53, 0x4c, 0x58, 0xaa, 0x02, 0x13, - 0x53, 0x73, 0x6e, 0x2e, 0x4c, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x2e, 0x56, 0x31, 0xca, 0x02, 0x13, 0x53, 0x73, 0x6e, 0x5c, 0x4c, 0x69, 0x6e, 0x65, 0x73, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1f, 0x53, 0x73, 0x6e, 0x5c, - 0x4c, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x56, 0x31, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x15, 0x53, 0x73, - 0x6e, 0x3a, 0x3a, 0x4c, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x3a, - 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_ssn_linesservice_v1_linesservice_proto_rawDescOnce sync.Once - file_ssn_linesservice_v1_linesservice_proto_rawDescData = file_ssn_linesservice_v1_linesservice_proto_rawDesc -) - -func file_ssn_linesservice_v1_linesservice_proto_rawDescGZIP() []byte { - file_ssn_linesservice_v1_linesservice_proto_rawDescOnce.Do(func() { - file_ssn_linesservice_v1_linesservice_proto_rawDescData = protoimpl.X.CompressGZIP(file_ssn_linesservice_v1_linesservice_proto_rawDescData) - }) - return file_ssn_linesservice_v1_linesservice_proto_rawDescData -} - -var file_ssn_linesservice_v1_linesservice_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_ssn_linesservice_v1_linesservice_proto_goTypes = []interface{}{ - (*LinesRequest)(nil), // 0: ssn.linesservice.v1.LinesRequest - (*LinesResponse)(nil), // 1: ssn.linesservice.v1.LinesResponse - (*_type.TextAnnotation)(nil), // 2: ssn.type.TextAnnotation - (*_type.PurchaseLineCandidate)(nil), // 3: ssn.type.PurchaseLineCandidate -} -var file_ssn_linesservice_v1_linesservice_proto_depIdxs = []int32{ - 2, // 0: ssn.linesservice.v1.LinesRequest.text_annotation:type_name -> ssn.type.TextAnnotation - 3, // 1: ssn.linesservice.v1.LinesResponse.purchase_lines:type_name -> ssn.type.PurchaseLineCandidate - 0, // 2: ssn.linesservice.v1.LinesService.Predict:input_type -> ssn.linesservice.v1.LinesRequest - 1, // 3: ssn.linesservice.v1.LinesService.Predict:output_type -> ssn.linesservice.v1.LinesResponse - 3, // [3:4] is the sub-list for method output_type - 2, // [2:3] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_ssn_linesservice_v1_linesservice_proto_init() } -func file_ssn_linesservice_v1_linesservice_proto_init() { - if File_ssn_linesservice_v1_linesservice_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_ssn_linesservice_v1_linesservice_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LinesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ssn_linesservice_v1_linesservice_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LinesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_ssn_linesservice_v1_linesservice_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_ssn_linesservice_v1_linesservice_proto_goTypes, - DependencyIndexes: file_ssn_linesservice_v1_linesservice_proto_depIdxs, - MessageInfos: file_ssn_linesservice_v1_linesservice_proto_msgTypes, - }.Build() - File_ssn_linesservice_v1_linesservice_proto = out.File - file_ssn_linesservice_v1_linesservice_proto_rawDesc = nil - file_ssn_linesservice_v1_linesservice_proto_goTypes = nil - file_ssn_linesservice_v1_linesservice_proto_depIdxs = nil -} diff --git a/gen/go/ssn/linesservice/v1/linesservice_grpc.pb.go b/gen/go/ssn/linesservice/v1/linesservice_grpc.pb.go deleted file mode 100644 index 9a95eb89..00000000 --- a/gen/go/ssn/linesservice/v1/linesservice_grpc.pb.go +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc (unknown) -// source: ssn/linesservice/v1/linesservice.proto - -package linesservice - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -const ( - LinesService_Predict_FullMethodName = "/ssn.linesservice.v1.LinesService/Predict" -) - -// LinesServiceClient is the client API for LinesService 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. -type LinesServiceClient interface { - Predict(ctx context.Context, in *LinesRequest, opts ...grpc.CallOption) (*LinesResponse, error) -} - -type linesServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewLinesServiceClient(cc grpc.ClientConnInterface) LinesServiceClient { - return &linesServiceClient{cc} -} - -func (c *linesServiceClient) Predict(ctx context.Context, in *LinesRequest, opts ...grpc.CallOption) (*LinesResponse, error) { - out := new(LinesResponse) - err := c.cc.Invoke(ctx, LinesService_Predict_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// LinesServiceServer is the server API for LinesService service. -// All implementations should embed UnimplementedLinesServiceServer -// for forward compatibility -type LinesServiceServer interface { - Predict(context.Context, *LinesRequest) (*LinesResponse, error) -} - -// UnimplementedLinesServiceServer should be embedded to have forward compatible implementations. -type UnimplementedLinesServiceServer struct { -} - -func (UnimplementedLinesServiceServer) Predict(context.Context, *LinesRequest) (*LinesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Predict not implemented") -} - -// UnsafeLinesServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to LinesServiceServer will -// result in compilation errors. -type UnsafeLinesServiceServer interface { - mustEmbedUnimplementedLinesServiceServer() -} - -func RegisterLinesServiceServer(s grpc.ServiceRegistrar, srv LinesServiceServer) { - s.RegisterService(&LinesService_ServiceDesc, srv) -} - -func _LinesService_Predict_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LinesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(LinesServiceServer).Predict(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: LinesService_Predict_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(LinesServiceServer).Predict(ctx, req.(*LinesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// LinesService_ServiceDesc is the grpc.ServiceDesc for LinesService service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var LinesService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "ssn.linesservice.v1.LinesService", - HandlerType: (*LinesServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Predict", - Handler: _LinesService_Predict_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "ssn/linesservice/v1/linesservice.proto", -} diff --git a/gen/java/ai/visma/ssn/linesservice/v1/LinesRequest.java b/gen/java/ai/visma/ssn/linesservice/v1/LinesRequest.java deleted file mode 100644 index b191ba7a..00000000 --- a/gen/java/ai/visma/ssn/linesservice/v1/LinesRequest.java +++ /dev/null @@ -1,625 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: ssn/linesservice/v1/linesservice.proto -// Protobuf Java Version: 4.29.3 - -package ai.visma.ssn.linesservice.v1; - -/** - * Protobuf type {@code ssn.linesservice.v1.LinesRequest} - */ -public final class LinesRequest extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:ssn.linesservice.v1.LinesRequest) - LinesRequestOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 29, - /* patch= */ 3, - /* suffix= */ "", - LinesRequest.class.getName()); - } - // Use LinesRequest.newBuilder() to construct. - private LinesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private LinesRequest() { - image_ = com.google.protobuf.ByteString.EMPTY; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ai.visma.ssn.linesservice.v1.LinesserviceProto.internal_static_ssn_linesservice_v1_LinesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return ai.visma.ssn.linesservice.v1.LinesserviceProto.internal_static_ssn_linesservice_v1_LinesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ai.visma.ssn.linesservice.v1.LinesRequest.class, ai.visma.ssn.linesservice.v1.LinesRequest.Builder.class); - } - - private int bitField0_; - public static final int TEXT_ANNOTATION_FIELD_NUMBER = 1; - private ai.visma.ssn.type.TextAnnotation textAnnotation_; - /** - * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; - * @return Whether the textAnnotation field is set. - */ - @java.lang.Override - public boolean hasTextAnnotation() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; - * @return The textAnnotation. - */ - @java.lang.Override - public ai.visma.ssn.type.TextAnnotation getTextAnnotation() { - return textAnnotation_ == null ? ai.visma.ssn.type.TextAnnotation.getDefaultInstance() : textAnnotation_; - } - /** - * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; - */ - @java.lang.Override - public ai.visma.ssn.type.TextAnnotationOrBuilder getTextAnnotationOrBuilder() { - return textAnnotation_ == null ? ai.visma.ssn.type.TextAnnotation.getDefaultInstance() : textAnnotation_; - } - - public static final int IMAGE_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString image_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes image = 2 [json_name = "image"]; - * @return The image. - */ - @java.lang.Override - public com.google.protobuf.ByteString getImage() { - return image_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getTextAnnotation()); - } - if (!image_.isEmpty()) { - output.writeBytes(2, image_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTextAnnotation()); - } - if (!image_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, image_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof ai.visma.ssn.linesservice.v1.LinesRequest)) { - return super.equals(obj); - } - ai.visma.ssn.linesservice.v1.LinesRequest other = (ai.visma.ssn.linesservice.v1.LinesRequest) obj; - - if (hasTextAnnotation() != other.hasTextAnnotation()) return false; - if (hasTextAnnotation()) { - if (!getTextAnnotation() - .equals(other.getTextAnnotation())) return false; - } - if (!getImage() - .equals(other.getImage())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTextAnnotation()) { - hash = (37 * hash) + TEXT_ANNOTATION_FIELD_NUMBER; - hash = (53 * hash) + getTextAnnotation().hashCode(); - } - hash = (37 * hash) + IMAGE_FIELD_NUMBER; - hash = (53 * hash) + getImage().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ai.visma.ssn.linesservice.v1.LinesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ai.visma.ssn.linesservice.v1.LinesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ai.visma.ssn.linesservice.v1.LinesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ai.visma.ssn.linesservice.v1.LinesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ai.visma.ssn.linesservice.v1.LinesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ai.visma.ssn.linesservice.v1.LinesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ai.visma.ssn.linesservice.v1.LinesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static ai.visma.ssn.linesservice.v1.LinesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static ai.visma.ssn.linesservice.v1.LinesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static ai.visma.ssn.linesservice.v1.LinesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static ai.visma.ssn.linesservice.v1.LinesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static ai.visma.ssn.linesservice.v1.LinesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ai.visma.ssn.linesservice.v1.LinesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ssn.linesservice.v1.LinesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:ssn.linesservice.v1.LinesRequest) - ai.visma.ssn.linesservice.v1.LinesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ai.visma.ssn.linesservice.v1.LinesserviceProto.internal_static_ssn_linesservice_v1_LinesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return ai.visma.ssn.linesservice.v1.LinesserviceProto.internal_static_ssn_linesservice_v1_LinesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ai.visma.ssn.linesservice.v1.LinesRequest.class, ai.visma.ssn.linesservice.v1.LinesRequest.Builder.class); - } - - // Construct using ai.visma.ssn.linesservice.v1.LinesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - getTextAnnotationFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - textAnnotation_ = null; - if (textAnnotationBuilder_ != null) { - textAnnotationBuilder_.dispose(); - textAnnotationBuilder_ = null; - } - image_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ai.visma.ssn.linesservice.v1.LinesserviceProto.internal_static_ssn_linesservice_v1_LinesRequest_descriptor; - } - - @java.lang.Override - public ai.visma.ssn.linesservice.v1.LinesRequest getDefaultInstanceForType() { - return ai.visma.ssn.linesservice.v1.LinesRequest.getDefaultInstance(); - } - - @java.lang.Override - public ai.visma.ssn.linesservice.v1.LinesRequest build() { - ai.visma.ssn.linesservice.v1.LinesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ai.visma.ssn.linesservice.v1.LinesRequest buildPartial() { - ai.visma.ssn.linesservice.v1.LinesRequest result = new ai.visma.ssn.linesservice.v1.LinesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(ai.visma.ssn.linesservice.v1.LinesRequest result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.textAnnotation_ = textAnnotationBuilder_ == null - ? textAnnotation_ - : textAnnotationBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.image_ = image_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ai.visma.ssn.linesservice.v1.LinesRequest) { - return mergeFrom((ai.visma.ssn.linesservice.v1.LinesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ai.visma.ssn.linesservice.v1.LinesRequest other) { - if (other == ai.visma.ssn.linesservice.v1.LinesRequest.getDefaultInstance()) return this; - if (other.hasTextAnnotation()) { - mergeTextAnnotation(other.getTextAnnotation()); - } - if (other.getImage() != com.google.protobuf.ByteString.EMPTY) { - setImage(other.getImage()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getTextAnnotationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - image_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private ai.visma.ssn.type.TextAnnotation textAnnotation_; - private com.google.protobuf.SingleFieldBuilder< - ai.visma.ssn.type.TextAnnotation, ai.visma.ssn.type.TextAnnotation.Builder, ai.visma.ssn.type.TextAnnotationOrBuilder> textAnnotationBuilder_; - /** - * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; - * @return Whether the textAnnotation field is set. - */ - public boolean hasTextAnnotation() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; - * @return The textAnnotation. - */ - public ai.visma.ssn.type.TextAnnotation getTextAnnotation() { - if (textAnnotationBuilder_ == null) { - return textAnnotation_ == null ? ai.visma.ssn.type.TextAnnotation.getDefaultInstance() : textAnnotation_; - } else { - return textAnnotationBuilder_.getMessage(); - } - } - /** - * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; - */ - public Builder setTextAnnotation(ai.visma.ssn.type.TextAnnotation value) { - if (textAnnotationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - textAnnotation_ = value; - } else { - textAnnotationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; - */ - public Builder setTextAnnotation( - ai.visma.ssn.type.TextAnnotation.Builder builderForValue) { - if (textAnnotationBuilder_ == null) { - textAnnotation_ = builderForValue.build(); - } else { - textAnnotationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; - */ - public Builder mergeTextAnnotation(ai.visma.ssn.type.TextAnnotation value) { - if (textAnnotationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - textAnnotation_ != null && - textAnnotation_ != ai.visma.ssn.type.TextAnnotation.getDefaultInstance()) { - getTextAnnotationBuilder().mergeFrom(value); - } else { - textAnnotation_ = value; - } - } else { - textAnnotationBuilder_.mergeFrom(value); - } - if (textAnnotation_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; - */ - public Builder clearTextAnnotation() { - bitField0_ = (bitField0_ & ~0x00000001); - textAnnotation_ = null; - if (textAnnotationBuilder_ != null) { - textAnnotationBuilder_.dispose(); - textAnnotationBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; - */ - public ai.visma.ssn.type.TextAnnotation.Builder getTextAnnotationBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getTextAnnotationFieldBuilder().getBuilder(); - } - /** - * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; - */ - public ai.visma.ssn.type.TextAnnotationOrBuilder getTextAnnotationOrBuilder() { - if (textAnnotationBuilder_ != null) { - return textAnnotationBuilder_.getMessageOrBuilder(); - } else { - return textAnnotation_ == null ? - ai.visma.ssn.type.TextAnnotation.getDefaultInstance() : textAnnotation_; - } - } - /** - * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; - */ - private com.google.protobuf.SingleFieldBuilder< - ai.visma.ssn.type.TextAnnotation, ai.visma.ssn.type.TextAnnotation.Builder, ai.visma.ssn.type.TextAnnotationOrBuilder> - getTextAnnotationFieldBuilder() { - if (textAnnotationBuilder_ == null) { - textAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilder< - ai.visma.ssn.type.TextAnnotation, ai.visma.ssn.type.TextAnnotation.Builder, ai.visma.ssn.type.TextAnnotationOrBuilder>( - getTextAnnotation(), - getParentForChildren(), - isClean()); - textAnnotation_ = null; - } - return textAnnotationBuilder_; - } - - private com.google.protobuf.ByteString image_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes image = 2 [json_name = "image"]; - * @return The image. - */ - @java.lang.Override - public com.google.protobuf.ByteString getImage() { - return image_; - } - /** - * bytes image = 2 [json_name = "image"]; - * @param value The image to set. - * @return This builder for chaining. - */ - public Builder setImage(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - image_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * bytes image = 2 [json_name = "image"]; - * @return This builder for chaining. - */ - public Builder clearImage() { - bitField0_ = (bitField0_ & ~0x00000002); - image_ = getDefaultInstance().getImage(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:ssn.linesservice.v1.LinesRequest) - } - - // @@protoc_insertion_point(class_scope:ssn.linesservice.v1.LinesRequest) - private static final ai.visma.ssn.linesservice.v1.LinesRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ai.visma.ssn.linesservice.v1.LinesRequest(); - } - - public static ai.visma.ssn.linesservice.v1.LinesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LinesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ai.visma.ssn.linesservice.v1.LinesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/gen/java/ai/visma/ssn/linesservice/v1/LinesRequestOrBuilder.java b/gen/java/ai/visma/ssn/linesservice/v1/LinesRequestOrBuilder.java deleted file mode 100644 index 78194076..00000000 --- a/gen/java/ai/visma/ssn/linesservice/v1/LinesRequestOrBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: ssn/linesservice/v1/linesservice.proto -// Protobuf Java Version: 4.29.3 - -package ai.visma.ssn.linesservice.v1; - -public interface LinesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ssn.linesservice.v1.LinesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; - * @return Whether the textAnnotation field is set. - */ - boolean hasTextAnnotation(); - /** - * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; - * @return The textAnnotation. - */ - ai.visma.ssn.type.TextAnnotation getTextAnnotation(); - /** - * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; - */ - ai.visma.ssn.type.TextAnnotationOrBuilder getTextAnnotationOrBuilder(); - - /** - * bytes image = 2 [json_name = "image"]; - * @return The image. - */ - com.google.protobuf.ByteString getImage(); -} diff --git a/gen/java/ai/visma/ssn/linesservice/v1/LinesResponse.java b/gen/java/ai/visma/ssn/linesservice/v1/LinesResponse.java deleted file mode 100644 index c1ccdd9a..00000000 --- a/gen/java/ai/visma/ssn/linesservice/v1/LinesResponse.java +++ /dev/null @@ -1,719 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: ssn/linesservice/v1/linesservice.proto -// Protobuf Java Version: 4.29.3 - -package ai.visma.ssn.linesservice.v1; - -/** - * Protobuf type {@code ssn.linesservice.v1.LinesResponse} - */ -public final class LinesResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:ssn.linesservice.v1.LinesResponse) - LinesResponseOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 29, - /* patch= */ 3, - /* suffix= */ "", - LinesResponse.class.getName()); - } - // Use LinesResponse.newBuilder() to construct. - private LinesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private LinesResponse() { - purchaseLines_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ai.visma.ssn.linesservice.v1.LinesserviceProto.internal_static_ssn_linesservice_v1_LinesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return ai.visma.ssn.linesservice.v1.LinesserviceProto.internal_static_ssn_linesservice_v1_LinesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ai.visma.ssn.linesservice.v1.LinesResponse.class, ai.visma.ssn.linesservice.v1.LinesResponse.Builder.class); - } - - public static final int PURCHASE_LINES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List purchaseLines_; - /** - * repeated .ssn.type.PurchaseLineCandidate purchase_lines = 1 [json_name = "purchaseLines"]; - */ - @java.lang.Override - public java.util.List getPurchaseLinesList() { - return purchaseLines_; - } - /** - * repeated .ssn.type.PurchaseLineCandidate purchase_lines = 1 [json_name = "purchaseLines"]; - */ - @java.lang.Override - public java.util.List - getPurchaseLinesOrBuilderList() { - return purchaseLines_; - } - /** - * repeated .ssn.type.PurchaseLineCandidate purchase_lines = 1 [json_name = "purchaseLines"]; - */ - @java.lang.Override - public int getPurchaseLinesCount() { - return purchaseLines_.size(); - } - /** - * repeated .ssn.type.PurchaseLineCandidate purchase_lines = 1 [json_name = "purchaseLines"]; - */ - @java.lang.Override - public ai.visma.ssn.type.PurchaseLineCandidate getPurchaseLines(int index) { - return purchaseLines_.get(index); - } - /** - * repeated .ssn.type.PurchaseLineCandidate purchase_lines = 1 [json_name = "purchaseLines"]; - */ - @java.lang.Override - public ai.visma.ssn.type.PurchaseLineCandidateOrBuilder getPurchaseLinesOrBuilder( - int index) { - return purchaseLines_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < purchaseLines_.size(); i++) { - output.writeMessage(1, purchaseLines_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < purchaseLines_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, purchaseLines_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof ai.visma.ssn.linesservice.v1.LinesResponse)) { - return super.equals(obj); - } - ai.visma.ssn.linesservice.v1.LinesResponse other = (ai.visma.ssn.linesservice.v1.LinesResponse) obj; - - if (!getPurchaseLinesList() - .equals(other.getPurchaseLinesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPurchaseLinesCount() > 0) { - hash = (37 * hash) + PURCHASE_LINES_FIELD_NUMBER; - hash = (53 * hash) + getPurchaseLinesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ai.visma.ssn.linesservice.v1.LinesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ai.visma.ssn.linesservice.v1.LinesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ai.visma.ssn.linesservice.v1.LinesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ai.visma.ssn.linesservice.v1.LinesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ai.visma.ssn.linesservice.v1.LinesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ai.visma.ssn.linesservice.v1.LinesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ai.visma.ssn.linesservice.v1.LinesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static ai.visma.ssn.linesservice.v1.LinesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static ai.visma.ssn.linesservice.v1.LinesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static ai.visma.ssn.linesservice.v1.LinesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static ai.visma.ssn.linesservice.v1.LinesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static ai.visma.ssn.linesservice.v1.LinesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ai.visma.ssn.linesservice.v1.LinesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ssn.linesservice.v1.LinesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:ssn.linesservice.v1.LinesResponse) - ai.visma.ssn.linesservice.v1.LinesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return ai.visma.ssn.linesservice.v1.LinesserviceProto.internal_static_ssn_linesservice_v1_LinesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return ai.visma.ssn.linesservice.v1.LinesserviceProto.internal_static_ssn_linesservice_v1_LinesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ai.visma.ssn.linesservice.v1.LinesResponse.class, ai.visma.ssn.linesservice.v1.LinesResponse.Builder.class); - } - - // Construct using ai.visma.ssn.linesservice.v1.LinesResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (purchaseLinesBuilder_ == null) { - purchaseLines_ = java.util.Collections.emptyList(); - } else { - purchaseLines_ = null; - purchaseLinesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return ai.visma.ssn.linesservice.v1.LinesserviceProto.internal_static_ssn_linesservice_v1_LinesResponse_descriptor; - } - - @java.lang.Override - public ai.visma.ssn.linesservice.v1.LinesResponse getDefaultInstanceForType() { - return ai.visma.ssn.linesservice.v1.LinesResponse.getDefaultInstance(); - } - - @java.lang.Override - public ai.visma.ssn.linesservice.v1.LinesResponse build() { - ai.visma.ssn.linesservice.v1.LinesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public ai.visma.ssn.linesservice.v1.LinesResponse buildPartial() { - ai.visma.ssn.linesservice.v1.LinesResponse result = new ai.visma.ssn.linesservice.v1.LinesResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(ai.visma.ssn.linesservice.v1.LinesResponse result) { - if (purchaseLinesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - purchaseLines_ = java.util.Collections.unmodifiableList(purchaseLines_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.purchaseLines_ = purchaseLines_; - } else { - result.purchaseLines_ = purchaseLinesBuilder_.build(); - } - } - - private void buildPartial0(ai.visma.ssn.linesservice.v1.LinesResponse result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ai.visma.ssn.linesservice.v1.LinesResponse) { - return mergeFrom((ai.visma.ssn.linesservice.v1.LinesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ai.visma.ssn.linesservice.v1.LinesResponse other) { - if (other == ai.visma.ssn.linesservice.v1.LinesResponse.getDefaultInstance()) return this; - if (purchaseLinesBuilder_ == null) { - if (!other.purchaseLines_.isEmpty()) { - if (purchaseLines_.isEmpty()) { - purchaseLines_ = other.purchaseLines_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePurchaseLinesIsMutable(); - purchaseLines_.addAll(other.purchaseLines_); - } - onChanged(); - } - } else { - if (!other.purchaseLines_.isEmpty()) { - if (purchaseLinesBuilder_.isEmpty()) { - purchaseLinesBuilder_.dispose(); - purchaseLinesBuilder_ = null; - purchaseLines_ = other.purchaseLines_; - bitField0_ = (bitField0_ & ~0x00000001); - purchaseLinesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getPurchaseLinesFieldBuilder() : null; - } else { - purchaseLinesBuilder_.addAllMessages(other.purchaseLines_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - ai.visma.ssn.type.PurchaseLineCandidate m = - input.readMessage( - ai.visma.ssn.type.PurchaseLineCandidate.parser(), - extensionRegistry); - if (purchaseLinesBuilder_ == null) { - ensurePurchaseLinesIsMutable(); - purchaseLines_.add(m); - } else { - purchaseLinesBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List purchaseLines_ = - java.util.Collections.emptyList(); - private void ensurePurchaseLinesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - purchaseLines_ = new java.util.ArrayList(purchaseLines_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - ai.visma.ssn.type.PurchaseLineCandidate, ai.visma.ssn.type.PurchaseLineCandidate.Builder, ai.visma.ssn.type.PurchaseLineCandidateOrBuilder> purchaseLinesBuilder_; - - /** - * repeated .ssn.type.PurchaseLineCandidate purchase_lines = 1 [json_name = "purchaseLines"]; - */ - public java.util.List getPurchaseLinesList() { - if (purchaseLinesBuilder_ == null) { - return java.util.Collections.unmodifiableList(purchaseLines_); - } else { - return purchaseLinesBuilder_.getMessageList(); - } - } - /** - * repeated .ssn.type.PurchaseLineCandidate purchase_lines = 1 [json_name = "purchaseLines"]; - */ - public int getPurchaseLinesCount() { - if (purchaseLinesBuilder_ == null) { - return purchaseLines_.size(); - } else { - return purchaseLinesBuilder_.getCount(); - } - } - /** - * repeated .ssn.type.PurchaseLineCandidate purchase_lines = 1 [json_name = "purchaseLines"]; - */ - public ai.visma.ssn.type.PurchaseLineCandidate getPurchaseLines(int index) { - if (purchaseLinesBuilder_ == null) { - return purchaseLines_.get(index); - } else { - return purchaseLinesBuilder_.getMessage(index); - } - } - /** - * repeated .ssn.type.PurchaseLineCandidate purchase_lines = 1 [json_name = "purchaseLines"]; - */ - public Builder setPurchaseLines( - int index, ai.visma.ssn.type.PurchaseLineCandidate value) { - if (purchaseLinesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePurchaseLinesIsMutable(); - purchaseLines_.set(index, value); - onChanged(); - } else { - purchaseLinesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ssn.type.PurchaseLineCandidate purchase_lines = 1 [json_name = "purchaseLines"]; - */ - public Builder setPurchaseLines( - int index, ai.visma.ssn.type.PurchaseLineCandidate.Builder builderForValue) { - if (purchaseLinesBuilder_ == null) { - ensurePurchaseLinesIsMutable(); - purchaseLines_.set(index, builderForValue.build()); - onChanged(); - } else { - purchaseLinesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ssn.type.PurchaseLineCandidate purchase_lines = 1 [json_name = "purchaseLines"]; - */ - public Builder addPurchaseLines(ai.visma.ssn.type.PurchaseLineCandidate value) { - if (purchaseLinesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePurchaseLinesIsMutable(); - purchaseLines_.add(value); - onChanged(); - } else { - purchaseLinesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ssn.type.PurchaseLineCandidate purchase_lines = 1 [json_name = "purchaseLines"]; - */ - public Builder addPurchaseLines( - int index, ai.visma.ssn.type.PurchaseLineCandidate value) { - if (purchaseLinesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePurchaseLinesIsMutable(); - purchaseLines_.add(index, value); - onChanged(); - } else { - purchaseLinesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ssn.type.PurchaseLineCandidate purchase_lines = 1 [json_name = "purchaseLines"]; - */ - public Builder addPurchaseLines( - ai.visma.ssn.type.PurchaseLineCandidate.Builder builderForValue) { - if (purchaseLinesBuilder_ == null) { - ensurePurchaseLinesIsMutable(); - purchaseLines_.add(builderForValue.build()); - onChanged(); - } else { - purchaseLinesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ssn.type.PurchaseLineCandidate purchase_lines = 1 [json_name = "purchaseLines"]; - */ - public Builder addPurchaseLines( - int index, ai.visma.ssn.type.PurchaseLineCandidate.Builder builderForValue) { - if (purchaseLinesBuilder_ == null) { - ensurePurchaseLinesIsMutable(); - purchaseLines_.add(index, builderForValue.build()); - onChanged(); - } else { - purchaseLinesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ssn.type.PurchaseLineCandidate purchase_lines = 1 [json_name = "purchaseLines"]; - */ - public Builder addAllPurchaseLines( - java.lang.Iterable values) { - if (purchaseLinesBuilder_ == null) { - ensurePurchaseLinesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, purchaseLines_); - onChanged(); - } else { - purchaseLinesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ssn.type.PurchaseLineCandidate purchase_lines = 1 [json_name = "purchaseLines"]; - */ - public Builder clearPurchaseLines() { - if (purchaseLinesBuilder_ == null) { - purchaseLines_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - purchaseLinesBuilder_.clear(); - } - return this; - } - /** - * repeated .ssn.type.PurchaseLineCandidate purchase_lines = 1 [json_name = "purchaseLines"]; - */ - public Builder removePurchaseLines(int index) { - if (purchaseLinesBuilder_ == null) { - ensurePurchaseLinesIsMutable(); - purchaseLines_.remove(index); - onChanged(); - } else { - purchaseLinesBuilder_.remove(index); - } - return this; - } - /** - * repeated .ssn.type.PurchaseLineCandidate purchase_lines = 1 [json_name = "purchaseLines"]; - */ - public ai.visma.ssn.type.PurchaseLineCandidate.Builder getPurchaseLinesBuilder( - int index) { - return getPurchaseLinesFieldBuilder().getBuilder(index); - } - /** - * repeated .ssn.type.PurchaseLineCandidate purchase_lines = 1 [json_name = "purchaseLines"]; - */ - public ai.visma.ssn.type.PurchaseLineCandidateOrBuilder getPurchaseLinesOrBuilder( - int index) { - if (purchaseLinesBuilder_ == null) { - return purchaseLines_.get(index); } else { - return purchaseLinesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ssn.type.PurchaseLineCandidate purchase_lines = 1 [json_name = "purchaseLines"]; - */ - public java.util.List - getPurchaseLinesOrBuilderList() { - if (purchaseLinesBuilder_ != null) { - return purchaseLinesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(purchaseLines_); - } - } - /** - * repeated .ssn.type.PurchaseLineCandidate purchase_lines = 1 [json_name = "purchaseLines"]; - */ - public ai.visma.ssn.type.PurchaseLineCandidate.Builder addPurchaseLinesBuilder() { - return getPurchaseLinesFieldBuilder().addBuilder( - ai.visma.ssn.type.PurchaseLineCandidate.getDefaultInstance()); - } - /** - * repeated .ssn.type.PurchaseLineCandidate purchase_lines = 1 [json_name = "purchaseLines"]; - */ - public ai.visma.ssn.type.PurchaseLineCandidate.Builder addPurchaseLinesBuilder( - int index) { - return getPurchaseLinesFieldBuilder().addBuilder( - index, ai.visma.ssn.type.PurchaseLineCandidate.getDefaultInstance()); - } - /** - * repeated .ssn.type.PurchaseLineCandidate purchase_lines = 1 [json_name = "purchaseLines"]; - */ - public java.util.List - getPurchaseLinesBuilderList() { - return getPurchaseLinesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - ai.visma.ssn.type.PurchaseLineCandidate, ai.visma.ssn.type.PurchaseLineCandidate.Builder, ai.visma.ssn.type.PurchaseLineCandidateOrBuilder> - getPurchaseLinesFieldBuilder() { - if (purchaseLinesBuilder_ == null) { - purchaseLinesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - ai.visma.ssn.type.PurchaseLineCandidate, ai.visma.ssn.type.PurchaseLineCandidate.Builder, ai.visma.ssn.type.PurchaseLineCandidateOrBuilder>( - purchaseLines_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - purchaseLines_ = null; - } - return purchaseLinesBuilder_; - } - - // @@protoc_insertion_point(builder_scope:ssn.linesservice.v1.LinesResponse) - } - - // @@protoc_insertion_point(class_scope:ssn.linesservice.v1.LinesResponse) - private static final ai.visma.ssn.linesservice.v1.LinesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ai.visma.ssn.linesservice.v1.LinesResponse(); - } - - public static ai.visma.ssn.linesservice.v1.LinesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LinesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public ai.visma.ssn.linesservice.v1.LinesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/gen/java/ai/visma/ssn/linesservice/v1/LinesResponseOrBuilder.java b/gen/java/ai/visma/ssn/linesservice/v1/LinesResponseOrBuilder.java deleted file mode 100644 index fcac5ba5..00000000 --- a/gen/java/ai/visma/ssn/linesservice/v1/LinesResponseOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: ssn/linesservice/v1/linesservice.proto -// Protobuf Java Version: 4.29.3 - -package ai.visma.ssn.linesservice.v1; - -public interface LinesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:ssn.linesservice.v1.LinesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .ssn.type.PurchaseLineCandidate purchase_lines = 1 [json_name = "purchaseLines"]; - */ - java.util.List - getPurchaseLinesList(); - /** - * repeated .ssn.type.PurchaseLineCandidate purchase_lines = 1 [json_name = "purchaseLines"]; - */ - ai.visma.ssn.type.PurchaseLineCandidate getPurchaseLines(int index); - /** - * repeated .ssn.type.PurchaseLineCandidate purchase_lines = 1 [json_name = "purchaseLines"]; - */ - int getPurchaseLinesCount(); - /** - * repeated .ssn.type.PurchaseLineCandidate purchase_lines = 1 [json_name = "purchaseLines"]; - */ - java.util.List - getPurchaseLinesOrBuilderList(); - /** - * repeated .ssn.type.PurchaseLineCandidate purchase_lines = 1 [json_name = "purchaseLines"]; - */ - ai.visma.ssn.type.PurchaseLineCandidateOrBuilder getPurchaseLinesOrBuilder( - int index); -} diff --git a/gen/java/ai/visma/ssn/linesservice/v1/LinesServiceGrpc.java b/gen/java/ai/visma/ssn/linesservice/v1/LinesServiceGrpc.java deleted file mode 100644 index e43ff4f6..00000000 --- a/gen/java/ai/visma/ssn/linesservice/v1/LinesServiceGrpc.java +++ /dev/null @@ -1,332 +0,0 @@ -package ai.visma.ssn.linesservice.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.70.0)", - comments = "Source: ssn/linesservice/v1/linesservice.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class LinesServiceGrpc { - - private LinesServiceGrpc() {} - - public static final java.lang.String SERVICE_NAME = "ssn.linesservice.v1.LinesService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getPredictMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Predict", - requestType = ai.visma.ssn.linesservice.v1.LinesRequest.class, - responseType = ai.visma.ssn.linesservice.v1.LinesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getPredictMethod() { - io.grpc.MethodDescriptor getPredictMethod; - if ((getPredictMethod = LinesServiceGrpc.getPredictMethod) == null) { - synchronized (LinesServiceGrpc.class) { - if ((getPredictMethod = LinesServiceGrpc.getPredictMethod) == null) { - LinesServiceGrpc.getPredictMethod = getPredictMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Predict")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ai.visma.ssn.linesservice.v1.LinesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - ai.visma.ssn.linesservice.v1.LinesResponse.getDefaultInstance())) - .setSchemaDescriptor(new LinesServiceMethodDescriptorSupplier("Predict")) - .build(); - } - } - } - return getPredictMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static LinesServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public LinesServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LinesServiceStub(channel, callOptions); - } - }; - return LinesServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports all types of calls on the service - */ - public static LinesServiceBlockingV2Stub newBlockingV2Stub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public LinesServiceBlockingV2Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LinesServiceBlockingV2Stub(channel, callOptions); - } - }; - return LinesServiceBlockingV2Stub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static LinesServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public LinesServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LinesServiceBlockingStub(channel, callOptions); - } - }; - return LinesServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static LinesServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public LinesServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LinesServiceFutureStub(channel, callOptions); - } - }; - return LinesServiceFutureStub.newStub(factory, channel); - } - - /** - */ - public interface AsyncService { - - /** - */ - default void predict(ai.visma.ssn.linesservice.v1.LinesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPredictMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service LinesService. - */ - public static abstract class LinesServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return LinesServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service LinesService. - */ - public static final class LinesServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private LinesServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected LinesServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LinesServiceStub(channel, callOptions); - } - - /** - */ - public void predict(ai.visma.ssn.linesservice.v1.LinesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPredictMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service LinesService. - */ - public static final class LinesServiceBlockingV2Stub - extends io.grpc.stub.AbstractBlockingStub { - private LinesServiceBlockingV2Stub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected LinesServiceBlockingV2Stub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LinesServiceBlockingV2Stub(channel, callOptions); - } - - /** - */ - public ai.visma.ssn.linesservice.v1.LinesResponse predict(ai.visma.ssn.linesservice.v1.LinesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPredictMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do limited synchronous rpc calls to service LinesService. - */ - public static final class LinesServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private LinesServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected LinesServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LinesServiceBlockingStub(channel, callOptions); - } - - /** - */ - public ai.visma.ssn.linesservice.v1.LinesResponse predict(ai.visma.ssn.linesservice.v1.LinesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPredictMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service LinesService. - */ - public static final class LinesServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private LinesServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected LinesServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LinesServiceFutureStub(channel, callOptions); - } - - /** - */ - public com.google.common.util.concurrent.ListenableFuture predict( - ai.visma.ssn.linesservice.v1.LinesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPredictMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_PREDICT = 0; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_PREDICT: - serviceImpl.predict((ai.visma.ssn.linesservice.v1.LinesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getPredictMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - ai.visma.ssn.linesservice.v1.LinesRequest, - ai.visma.ssn.linesservice.v1.LinesResponse>( - service, METHODID_PREDICT))) - .build(); - } - - private static abstract class LinesServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - LinesServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return ai.visma.ssn.linesservice.v1.LinesserviceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("LinesService"); - } - } - - private static final class LinesServiceFileDescriptorSupplier - extends LinesServiceBaseDescriptorSupplier { - LinesServiceFileDescriptorSupplier() {} - } - - private static final class LinesServiceMethodDescriptorSupplier - extends LinesServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - LinesServiceMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (LinesServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new LinesServiceFileDescriptorSupplier()) - .addMethod(getPredictMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/gen/java/ai/visma/ssn/linesservice/v1/LinesserviceProto.java b/gen/java/ai/visma/ssn/linesservice/v1/LinesserviceProto.java deleted file mode 100644 index 200c5851..00000000 --- a/gen/java/ai/visma/ssn/linesservice/v1/LinesserviceProto.java +++ /dev/null @@ -1,89 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: ssn/linesservice/v1/linesservice.proto -// Protobuf Java Version: 4.29.3 - -package ai.visma.ssn.linesservice.v1; - -public final class LinesserviceProto { - private LinesserviceProto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 29, - /* patch= */ 3, - /* suffix= */ "", - LinesserviceProto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ssn_linesservice_v1_LinesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_ssn_linesservice_v1_LinesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_ssn_linesservice_v1_LinesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_ssn_linesservice_v1_LinesResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n&ssn/linesservice/v1/linesservice.proto" + - "\022\023ssn.linesservice.v1\032\030ssn/type/candidat" + - "e.proto\032\036ssn/type/text_annotation.proto\"" + - "g\n\014LinesRequest\022A\n\017text_annotation\030\001 \001(\013" + - "2\030.ssn.type.TextAnnotationR\016textAnnotati" + - "on\022\024\n\005image\030\002 \001(\014R\005image\"W\n\rLinesRespons" + - "e\022F\n\016purchase_lines\030\001 \003(\0132\037.ssn.type.Pur" + - "chaseLineCandidateR\rpurchaseLines2`\n\014Lin" + - "esService\022P\n\007Predict\022!.ssn.linesservice." + - "v1.LinesRequest\032\".ssn.linesservice.v1.Li" + - "nesResponseB\345\001\n\034ai.visma.ssn.linesservic" + - "e.v1B\021LinesserviceProtoP\001ZDgithub.com/e-" + - "conomic/vmlapis/gen/go/ssn/linesservice/" + - "v1;linesservice\242\002\003SLX\252\002\023Ssn.Linesservice" + - ".V1\312\002\023Ssn\\Linesservice\\V1\342\002\037Ssn\\Linesser" + - "vice\\V1\\GPBMetadata\352\002\025Ssn::Linesservice:" + - ":V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - ai.visma.ssn.type.CandidateProto.getDescriptor(), - ai.visma.ssn.type.TextAnnotationProto.getDescriptor(), - }); - internal_static_ssn_linesservice_v1_LinesRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ssn_linesservice_v1_LinesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_ssn_linesservice_v1_LinesRequest_descriptor, - new java.lang.String[] { "TextAnnotation", "Image", }); - internal_static_ssn_linesservice_v1_LinesResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_ssn_linesservice_v1_LinesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_ssn_linesservice_v1_LinesResponse_descriptor, - new java.lang.String[] { "PurchaseLines", }); - descriptor.resolveAllFeaturesImmutable(); - ai.visma.ssn.type.CandidateProto.getDescriptor(); - ai.visma.ssn.type.TextAnnotationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/js/ssn/linesservice/v1/linesservice_grpc_web_pb.d.ts b/gen/js/ssn/linesservice/v1/linesservice_grpc_web_pb.d.ts deleted file mode 100644 index 7961cf1a..00000000 --- a/gen/js/ssn/linesservice/v1/linesservice_grpc_web_pb.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import * as grpcWeb from 'grpc-web'; - -import * as ssn_linesservice_v1_linesservice_pb from '../../../ssn/linesservice/v1/linesservice_pb'; // proto import: "ssn/linesservice/v1/linesservice.proto" - - -export class LinesServiceClient { - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }); - - predict( - request: ssn_linesservice_v1_linesservice_pb.LinesRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: ssn_linesservice_v1_linesservice_pb.LinesResponse) => void - ): grpcWeb.ClientReadableStream; - -} - -export class LinesServicePromiseClient { - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }); - - predict( - request: ssn_linesservice_v1_linesservice_pb.LinesRequest, - metadata?: grpcWeb.Metadata - ): Promise; - -} - diff --git a/gen/js/ssn/linesservice/v1/linesservice_grpc_web_pb.js b/gen/js/ssn/linesservice/v1/linesservice_grpc_web_pb.js deleted file mode 100644 index 7ff6055a..00000000 --- a/gen/js/ssn/linesservice/v1/linesservice_grpc_web_pb.js +++ /dev/null @@ -1,145 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for ssn.linesservice.v1 - * @enhanceable - * @public - */ - -// Code generated by protoc-gen-grpc-web. DO NOT EDIT. -// versions: -// protoc-gen-grpc-web v1.5.0 -// protoc v0.0.0 -// source: ssn/linesservice/v1/linesservice.proto - - -/* eslint-disable */ -// @ts-nocheck - - - -const grpc = {}; -grpc.web = require('grpc-web'); - - -var ssn_type_candidate_pb = require('../../../ssn/type/candidate_pb.js') - -var ssn_type_text_annotation_pb = require('../../../ssn/type/text_annotation_pb.js') -const proto = {}; -proto.ssn = {}; -proto.ssn.linesservice = {}; -proto.ssn.linesservice.v1 = require('./linesservice_pb.js'); - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?grpc.web.ClientOptions} options - * @constructor - * @struct - * @final - */ -proto.ssn.linesservice.v1.LinesServiceClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options.format = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname.replace(/\/+$/, ''); - -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?grpc.web.ClientOptions} options - * @constructor - * @struct - * @final - */ -proto.ssn.linesservice.v1.LinesServicePromiseClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options.format = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname.replace(/\/+$/, ''); - -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.ssn.linesservice.v1.LinesRequest, - * !proto.ssn.linesservice.v1.LinesResponse>} - */ -const methodDescriptor_LinesService_Predict = new grpc.web.MethodDescriptor( - '/ssn.linesservice.v1.LinesService/Predict', - grpc.web.MethodType.UNARY, - proto.ssn.linesservice.v1.LinesRequest, - proto.ssn.linesservice.v1.LinesResponse, - /** - * @param {!proto.ssn.linesservice.v1.LinesRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.ssn.linesservice.v1.LinesResponse.deserializeBinary -); - - -/** - * @param {!proto.ssn.linesservice.v1.LinesRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.ssn.linesservice.v1.LinesResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.ssn.linesservice.v1.LinesServiceClient.prototype.predict = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/ssn.linesservice.v1.LinesService/Predict', - request, - metadata || {}, - methodDescriptor_LinesService_Predict, - callback); -}; - - -/** - * @param {!proto.ssn.linesservice.v1.LinesRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.ssn.linesservice.v1.LinesServicePromiseClient.prototype.predict = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/ssn.linesservice.v1.LinesService/Predict', - request, - metadata || {}, - methodDescriptor_LinesService_Predict); -}; - - -module.exports = proto.ssn.linesservice.v1; - diff --git a/gen/js/ssn/linesservice/v1/linesservice_pb.d.ts b/gen/js/ssn/linesservice/v1/linesservice_pb.d.ts deleted file mode 100644 index 0100ed78..00000000 --- a/gen/js/ssn/linesservice/v1/linesservice_pb.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -import * as jspb from 'google-protobuf' - -import * as ssn_type_candidate_pb from '../../../ssn/type/candidate_pb'; // proto import: "ssn/type/candidate.proto" -import * as ssn_type_text_annotation_pb from '../../../ssn/type/text_annotation_pb'; // proto import: "ssn/type/text_annotation.proto" - - -export class LinesRequest extends jspb.Message { - getTextAnnotation(): ssn_type_text_annotation_pb.TextAnnotation | undefined; - setTextAnnotation(value?: ssn_type_text_annotation_pb.TextAnnotation): LinesRequest; - hasTextAnnotation(): boolean; - clearTextAnnotation(): LinesRequest; - - getImage(): Uint8Array | string; - getImage_asU8(): Uint8Array; - getImage_asB64(): string; - setImage(value: Uint8Array | string): LinesRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LinesRequest.AsObject; - static toObject(includeInstance: boolean, msg: LinesRequest): LinesRequest.AsObject; - static serializeBinaryToWriter(message: LinesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LinesRequest; - static deserializeBinaryFromReader(message: LinesRequest, reader: jspb.BinaryReader): LinesRequest; -} - -export namespace LinesRequest { - export type AsObject = { - textAnnotation?: ssn_type_text_annotation_pb.TextAnnotation.AsObject, - image: Uint8Array | string, - } -} - -export class LinesResponse extends jspb.Message { - getPurchaseLinesList(): Array; - setPurchaseLinesList(value: Array): LinesResponse; - clearPurchaseLinesList(): LinesResponse; - addPurchaseLines(value?: ssn_type_candidate_pb.PurchaseLineCandidate, index?: number): ssn_type_candidate_pb.PurchaseLineCandidate; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LinesResponse.AsObject; - static toObject(includeInstance: boolean, msg: LinesResponse): LinesResponse.AsObject; - static serializeBinaryToWriter(message: LinesResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LinesResponse; - static deserializeBinaryFromReader(message: LinesResponse, reader: jspb.BinaryReader): LinesResponse; -} - -export namespace LinesResponse { - export type AsObject = { - purchaseLinesList: Array, - } -} - diff --git a/gen/js/ssn/linesservice/v1/linesservice_pb.js b/gen/js/ssn/linesservice/v1/linesservice_pb.js deleted file mode 100644 index 08d48ec1..00000000 --- a/gen/js/ssn/linesservice/v1/linesservice_pb.js +++ /dev/null @@ -1,437 +0,0 @@ -// source: ssn/linesservice/v1/linesservice.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = - (typeof globalThis !== 'undefined' && globalThis) || - (typeof window !== 'undefined' && window) || - (typeof global !== 'undefined' && global) || - (typeof self !== 'undefined' && self) || - (function () { return this; }).call(null) || - Function('return this')(); - -var ssn_type_candidate_pb = require('../../../ssn/type/candidate_pb.js'); -goog.object.extend(proto, ssn_type_candidate_pb); -var ssn_type_text_annotation_pb = require('../../../ssn/type/text_annotation_pb.js'); -goog.object.extend(proto, ssn_type_text_annotation_pb); -goog.exportSymbol('proto.ssn.linesservice.v1.LinesRequest', null, global); -goog.exportSymbol('proto.ssn.linesservice.v1.LinesResponse', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.ssn.linesservice.v1.LinesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.ssn.linesservice.v1.LinesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.ssn.linesservice.v1.LinesRequest.displayName = 'proto.ssn.linesservice.v1.LinesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.ssn.linesservice.v1.LinesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.ssn.linesservice.v1.LinesResponse.repeatedFields_, null); -}; -goog.inherits(proto.ssn.linesservice.v1.LinesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.ssn.linesservice.v1.LinesResponse.displayName = 'proto.ssn.linesservice.v1.LinesResponse'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.ssn.linesservice.v1.LinesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.ssn.linesservice.v1.LinesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.ssn.linesservice.v1.LinesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ssn.linesservice.v1.LinesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - textAnnotation: (f = msg.getTextAnnotation()) && ssn_type_text_annotation_pb.TextAnnotation.toObject(includeInstance, f), - image: msg.getImage_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ssn.linesservice.v1.LinesRequest} - */ -proto.ssn.linesservice.v1.LinesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ssn.linesservice.v1.LinesRequest; - return proto.ssn.linesservice.v1.LinesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ssn.linesservice.v1.LinesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ssn.linesservice.v1.LinesRequest} - */ -proto.ssn.linesservice.v1.LinesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new ssn_type_text_annotation_pb.TextAnnotation; - reader.readMessage(value,ssn_type_text_annotation_pb.TextAnnotation.deserializeBinaryFromReader); - msg.setTextAnnotation(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setImage(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.ssn.linesservice.v1.LinesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ssn.linesservice.v1.LinesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ssn.linesservice.v1.LinesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ssn.linesservice.v1.LinesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTextAnnotation(); - if (f != null) { - writer.writeMessage( - 1, - f, - ssn_type_text_annotation_pb.TextAnnotation.serializeBinaryToWriter - ); - } - f = message.getImage_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } -}; - - -/** - * optional ssn.type.TextAnnotation text_annotation = 1; - * @return {?proto.ssn.type.TextAnnotation} - */ -proto.ssn.linesservice.v1.LinesRequest.prototype.getTextAnnotation = function() { - return /** @type{?proto.ssn.type.TextAnnotation} */ ( - jspb.Message.getWrapperField(this, ssn_type_text_annotation_pb.TextAnnotation, 1)); -}; - - -/** - * @param {?proto.ssn.type.TextAnnotation|undefined} value - * @return {!proto.ssn.linesservice.v1.LinesRequest} returns this -*/ -proto.ssn.linesservice.v1.LinesRequest.prototype.setTextAnnotation = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.ssn.linesservice.v1.LinesRequest} returns this - */ -proto.ssn.linesservice.v1.LinesRequest.prototype.clearTextAnnotation = function() { - return this.setTextAnnotation(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.ssn.linesservice.v1.LinesRequest.prototype.hasTextAnnotation = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional bytes image = 2; - * @return {!(string|Uint8Array)} - */ -proto.ssn.linesservice.v1.LinesRequest.prototype.getImage = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes image = 2; - * This is a type-conversion wrapper around `getImage()` - * @return {string} - */ -proto.ssn.linesservice.v1.LinesRequest.prototype.getImage_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getImage())); -}; - - -/** - * optional bytes image = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getImage()` - * @return {!Uint8Array} - */ -proto.ssn.linesservice.v1.LinesRequest.prototype.getImage_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getImage())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.ssn.linesservice.v1.LinesRequest} returns this - */ -proto.ssn.linesservice.v1.LinesRequest.prototype.setImage = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.ssn.linesservice.v1.LinesResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.ssn.linesservice.v1.LinesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.ssn.linesservice.v1.LinesResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.ssn.linesservice.v1.LinesResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ssn.linesservice.v1.LinesResponse.toObject = function(includeInstance, msg) { - var f, obj = { - purchaseLinesList: jspb.Message.toObjectList(msg.getPurchaseLinesList(), - ssn_type_candidate_pb.PurchaseLineCandidate.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ssn.linesservice.v1.LinesResponse} - */ -proto.ssn.linesservice.v1.LinesResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ssn.linesservice.v1.LinesResponse; - return proto.ssn.linesservice.v1.LinesResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ssn.linesservice.v1.LinesResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ssn.linesservice.v1.LinesResponse} - */ -proto.ssn.linesservice.v1.LinesResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new ssn_type_candidate_pb.PurchaseLineCandidate; - reader.readMessage(value,ssn_type_candidate_pb.PurchaseLineCandidate.deserializeBinaryFromReader); - msg.addPurchaseLines(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.ssn.linesservice.v1.LinesResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ssn.linesservice.v1.LinesResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ssn.linesservice.v1.LinesResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ssn.linesservice.v1.LinesResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPurchaseLinesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - ssn_type_candidate_pb.PurchaseLineCandidate.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated ssn.type.PurchaseLineCandidate purchase_lines = 1; - * @return {!Array} - */ -proto.ssn.linesservice.v1.LinesResponse.prototype.getPurchaseLinesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, ssn_type_candidate_pb.PurchaseLineCandidate, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.ssn.linesservice.v1.LinesResponse} returns this -*/ -proto.ssn.linesservice.v1.LinesResponse.prototype.setPurchaseLinesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.ssn.type.PurchaseLineCandidate=} opt_value - * @param {number=} opt_index - * @return {!proto.ssn.type.PurchaseLineCandidate} - */ -proto.ssn.linesservice.v1.LinesResponse.prototype.addPurchaseLines = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ssn.type.PurchaseLineCandidate, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.ssn.linesservice.v1.LinesResponse} returns this - */ -proto.ssn.linesservice.v1.LinesResponse.prototype.clearPurchaseLinesList = function() { - return this.setPurchaseLinesList([]); -}; - - -goog.object.extend(exports, proto.ssn.linesservice.v1); diff --git a/gen/python/ssn/linesservice/v1/linesservice_pb2.py b/gen/python/ssn/linesservice/v1/linesservice_pb2.py deleted file mode 100644 index 9cf8f20b..00000000 --- a/gen/python/ssn/linesservice/v1/linesservice_pb2.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: ssn/linesservice/v1/linesservice.proto -# Protobuf Python Version: 5.29.3 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, - '', - 'ssn/linesservice/v1/linesservice.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from vml_proto.ssn.type import candidate_pb2 as ssn_dot_type_dot_candidate__pb2 -from vml_proto.ssn.type import text_annotation_pb2 as ssn_dot_type_dot_text__annotation__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&ssn/linesservice/v1/linesservice.proto\x12\x13ssn.linesservice.v1\x1a\x18ssn/type/candidate.proto\x1a\x1essn/type/text_annotation.proto\"g\n\x0cLinesRequest\x12\x41\n\x0ftext_annotation\x18\x01 \x01(\x0b\x32\x18.ssn.type.TextAnnotationR\x0etextAnnotation\x12\x14\n\x05image\x18\x02 \x01(\x0cR\x05image\"W\n\rLinesResponse\x12\x46\n\x0epurchase_lines\x18\x01 \x03(\x0b\x32\x1f.ssn.type.PurchaseLineCandidateR\rpurchaseLines2`\n\x0cLinesService\x12P\n\x07Predict\x12!.ssn.linesservice.v1.LinesRequest\x1a\".ssn.linesservice.v1.LinesResponseBYB\x11LinesserviceProtoZDgithub.com/e-conomic/vmlapis/gen/go/ssn/linesservice/v1;linesserviceb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ssn.linesservice.v1.linesservice_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'B\021LinesserviceProtoZDgithub.com/e-conomic/vmlapis/gen/go/ssn/linesservice/v1;linesservice' - _globals['_LINESREQUEST']._serialized_start=121 - _globals['_LINESREQUEST']._serialized_end=224 - _globals['_LINESRESPONSE']._serialized_start=226 - _globals['_LINESRESPONSE']._serialized_end=313 - _globals['_LINESSERVICE']._serialized_start=315 - _globals['_LINESSERVICE']._serialized_end=411 -# @@protoc_insertion_point(module_scope) diff --git a/gen/python/ssn/linesservice/v1/linesservice_pb2.pyi b/gen/python/ssn/linesservice/v1/linesservice_pb2.pyi deleted file mode 100644 index 094033ed..00000000 --- a/gen/python/ssn/linesservice/v1/linesservice_pb2.pyi +++ /dev/null @@ -1,22 +0,0 @@ -from ssn.type import candidate_pb2 as _candidate_pb2 -from ssn.type import text_annotation_pb2 as _text_annotation_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class LinesRequest(_message.Message): - __slots__ = ("text_annotation", "image") - TEXT_ANNOTATION_FIELD_NUMBER: _ClassVar[int] - IMAGE_FIELD_NUMBER: _ClassVar[int] - text_annotation: _text_annotation_pb2.TextAnnotation - image: bytes - def __init__(self, text_annotation: _Optional[_Union[_text_annotation_pb2.TextAnnotation, _Mapping]] = ..., image: _Optional[bytes] = ...) -> None: ... - -class LinesResponse(_message.Message): - __slots__ = ("purchase_lines",) - PURCHASE_LINES_FIELD_NUMBER: _ClassVar[int] - purchase_lines: _containers.RepeatedCompositeFieldContainer[_candidate_pb2.PurchaseLineCandidate] - def __init__(self, purchase_lines: _Optional[_Iterable[_Union[_candidate_pb2.PurchaseLineCandidate, _Mapping]]] = ...) -> None: ... diff --git a/gen/python/ssn/linesservice/v1/linesservice_pb2_grpc.py b/gen/python/ssn/linesservice/v1/linesservice_pb2_grpc.py deleted file mode 100644 index 114e98d8..00000000 --- a/gen/python/ssn/linesservice/v1/linesservice_pb2_grpc.py +++ /dev/null @@ -1,77 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from vml_proto.ssn.linesservice.v1 import linesservice_pb2 as ssn_dot_linesservice_dot_v1_dot_linesservice__pb2 - - -class LinesServiceStub(object): - """Missing associated documentation comment in .proto file.""" - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Predict = channel.unary_unary( - '/ssn.linesservice.v1.LinesService/Predict', - request_serializer=ssn_dot_linesservice_dot_v1_dot_linesservice__pb2.LinesRequest.SerializeToString, - response_deserializer=ssn_dot_linesservice_dot_v1_dot_linesservice__pb2.LinesResponse.FromString, - _registered_method=True) - - -class LinesServiceServicer(object): - """Missing associated documentation comment in .proto file.""" - - def Predict(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_LinesServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Predict': grpc.unary_unary_rpc_method_handler( - servicer.Predict, - request_deserializer=ssn_dot_linesservice_dot_v1_dot_linesservice__pb2.LinesRequest.FromString, - response_serializer=ssn_dot_linesservice_dot_v1_dot_linesservice__pb2.LinesResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'ssn.linesservice.v1.LinesService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - server.add_registered_method_handlers('ssn.linesservice.v1.LinesService', rpc_method_handlers) - - - # This class is part of an EXPERIMENTAL API. -class LinesService(object): - """Missing associated documentation comment in .proto file.""" - - @staticmethod - def Predict(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/ssn.linesservice.v1.LinesService/Predict', - ssn_dot_linesservice_dot_v1_dot_linesservice__pb2.LinesRequest.SerializeToString, - ssn_dot_linesservice_dot_v1_dot_linesservice__pb2.LinesResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) diff --git a/proto/ssn/linesservice/v1/linesservice.proto b/proto/ssn/linesservice/v1/linesservice.proto deleted file mode 100644 index 9d0b6ee5..00000000 --- a/proto/ssn/linesservice/v1/linesservice.proto +++ /dev/null @@ -1,22 +0,0 @@ -syntax = "proto3"; - -package ssn.linesservice.v1; - -import "ssn/type/candidate.proto"; -import "ssn/type/text_annotation.proto"; - -option go_package = "github.com/e-conomic/vmlapis/gen/go/ssn/linesservice/v1;linesservice"; -option java_outer_classname = "LinesserviceProto"; - -service LinesService { - rpc Predict(LinesRequest) returns (LinesResponse); -} - -message LinesRequest { - ssn.type.TextAnnotation text_annotation = 1; - bytes image = 2; -} - -message LinesResponse { - repeated ssn.type.PurchaseLineCandidate purchase_lines = 1; -} From 06163db83d053ff52dc9d364c5af28163f695e2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Canton-cornak=E2=80=9D?= <“anton.cornak@visma.com”> Date: Thu, 13 Mar 2025 10:00:23 +0100 Subject: [PATCH 2/4] predictservice --- proto/ssn/predictservice/v1/predictservice.proto | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 proto/ssn/predictservice/v1/predictservice.proto diff --git a/proto/ssn/predictservice/v1/predictservice.proto b/proto/ssn/predictservice/v1/predictservice.proto new file mode 100644 index 00000000..5ea9b312 --- /dev/null +++ b/proto/ssn/predictservice/v1/predictservice.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +package ssn.predictservice.v1; + +// Import Triton's gRPC service definitions +import "triton-inference-server/common/protobuf/grpc_service.proto"; + +option go_package = "github.com/e-conomic/vmlapis/gen/go/ssn/predictservice/v1;predictservice"; +option java_outer_classname = "PredictServiceProtos"; + +service PredictService { + rpc Predict(ModelInferRequest) returns (ModelInferResponse); +} \ No newline at end of file From 8bb12f00ee2c96f6e73cd1c530487449e2a8287d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Canton-cornak=E2=80=9D?= <“anton.cornak@visma.com”> Date: Thu, 13 Mar 2025 11:08:50 +0100 Subject: [PATCH 3/4] triton definitions --- .../predictservice/v1/predictservice.proto | 68 ++++++++++++++++++- 1 file changed, 65 insertions(+), 3 deletions(-) diff --git a/proto/ssn/predictservice/v1/predictservice.proto b/proto/ssn/predictservice/v1/predictservice.proto index 5ea9b312..b6fd0e91 100644 --- a/proto/ssn/predictservice/v1/predictservice.proto +++ b/proto/ssn/predictservice/v1/predictservice.proto @@ -2,12 +2,74 @@ syntax = "proto3"; package ssn.predictservice.v1; -// Import Triton's gRPC service definitions -import "triton-inference-server/common/protobuf/grpc_service.proto"; option go_package = "github.com/e-conomic/vmlapis/gen/go/ssn/predictservice/v1;predictservice"; option java_outer_classname = "PredictServiceProtos"; service PredictService { rpc Predict(ModelInferRequest) returns (ModelInferResponse); -} \ No newline at end of file +} + +// https://github.com/triton-inference-server/common/blob/main/protobuf/grpc_service.proto +message InferParameter { + oneof parameter_choice { + bool bool_param = 1; + int64 int64_param = 2; + string string_param = 3; + double double_param = 4; + uint64 uint64_param = 5; + } +} + +message InferTensorContents { + repeated bool bool_contents = 1; + repeated int32 int_contents = 2; + repeated int64 int64_contents = 3; + repeated uint32 uint_contents = 4; + repeated uint64 uint64_contents = 5; + repeated float fp32_contents = 6; + repeated double fp64_contents = 7; + repeated bytes bytes_contents = 8; +} + + +message ModelInferRequest { + message InferInputTensor { + string name = 1; + string datatype = 2; + repeated int64 shape = 3; + map parameters = 4; + InferTensorContents contents = 5; + } + + message InferRequestedOutputTensor { + string name = 1; + map parameters = 2; + } + + string model_name = 1; + string model_version = 2; + string id = 3; + map parameters = 4; + repeated InferInputTensor inputs = 5; + repeated InferRequestedOutputTensor outputs = 6; + repeated bytes raw_input_contents = 7; +} + +message ModelInferResponse { + message InferOutputTensor { + string name = 1; + string datatype = 2; + repeated int64 shape = 3; + map parameters = 4; + InferTensorContents contents = 5; + } + + string model_name = 1; + string model_version = 2; + string id = 3; + map parameters = 4; + repeated InferOutputTensor outputs = 5; + repeated bytes raw_output_contents = 6; +} + From db50e07c0e3e1d200ed6e523ea561ad39dbdf3c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Canton-cornak=E2=80=9D?= <“anton.cornak@visma.com”> Date: Thu, 13 Mar 2025 12:32:34 +0100 Subject: [PATCH 4/4] protogen --- gen/csharp/PredictserviceGrpc.cs | 155 + .../Ssn/Predictservice/V1/Predictservice.cs | 2593 ++++++++++ .../predictservice/v1/predictservice.pb.go | 1003 ++++ .../v1/predictservice_grpc.pb.go | 107 + .../ssn/predictservice/v1/InferParameter.java | 990 ++++ .../v1/InferParameterOrBuilder.java | 74 + .../v1/InferTensorContents.java | 1750 +++++++ .../v1/InferTensorContentsOrBuilder.java | 147 + .../predictservice/v1/ModelInferRequest.java | 4185 +++++++++++++++++ .../v1/ModelInferRequestOrBuilder.java | 146 + .../predictservice/v1/ModelInferResponse.java | 2985 ++++++++++++ .../v1/ModelInferResponseOrBuilder.java | 122 + .../predictservice/v1/PredictServiceGrpc.java | 332 ++ .../v1/PredictserviceProto.java | 252 + .../v1/predictservice_grpc_web_pb.d.ts | 31 + .../v1/predictservice_grpc_web_pb.js | 141 + .../predictservice/v1/predictservice_pb.d.ts | 302 ++ .../predictservice/v1/predictservice_pb.js | 2622 +++++++++++ .../predictservice/v1/predictservice_pb2.py | 71 + .../predictservice/v1/predictservice_pb2.pyi | 142 + .../v1/predictservice_pb2_grpc.py | 77 + .../predictservice/v1/predictservice.proto | 3 - 22 files changed, 18227 insertions(+), 3 deletions(-) create mode 100644 gen/csharp/PredictserviceGrpc.cs create mode 100644 gen/csharp/Ssn/Predictservice/V1/Predictservice.cs create mode 100644 gen/go/ssn/predictservice/v1/predictservice.pb.go create mode 100644 gen/go/ssn/predictservice/v1/predictservice_grpc.pb.go create mode 100644 gen/java/ai/visma/ssn/predictservice/v1/InferParameter.java create mode 100644 gen/java/ai/visma/ssn/predictservice/v1/InferParameterOrBuilder.java create mode 100644 gen/java/ai/visma/ssn/predictservice/v1/InferTensorContents.java create mode 100644 gen/java/ai/visma/ssn/predictservice/v1/InferTensorContentsOrBuilder.java create mode 100644 gen/java/ai/visma/ssn/predictservice/v1/ModelInferRequest.java create mode 100644 gen/java/ai/visma/ssn/predictservice/v1/ModelInferRequestOrBuilder.java create mode 100644 gen/java/ai/visma/ssn/predictservice/v1/ModelInferResponse.java create mode 100644 gen/java/ai/visma/ssn/predictservice/v1/ModelInferResponseOrBuilder.java create mode 100644 gen/java/ai/visma/ssn/predictservice/v1/PredictServiceGrpc.java create mode 100644 gen/java/ai/visma/ssn/predictservice/v1/PredictserviceProto.java create mode 100644 gen/js/ssn/predictservice/v1/predictservice_grpc_web_pb.d.ts create mode 100644 gen/js/ssn/predictservice/v1/predictservice_grpc_web_pb.js create mode 100644 gen/js/ssn/predictservice/v1/predictservice_pb.d.ts create mode 100644 gen/js/ssn/predictservice/v1/predictservice_pb.js create mode 100644 gen/python/ssn/predictservice/v1/predictservice_pb2.py create mode 100644 gen/python/ssn/predictservice/v1/predictservice_pb2.pyi create mode 100644 gen/python/ssn/predictservice/v1/predictservice_pb2_grpc.py diff --git a/gen/csharp/PredictserviceGrpc.cs b/gen/csharp/PredictserviceGrpc.cs new file mode 100644 index 00000000..f71a57be --- /dev/null +++ b/gen/csharp/PredictserviceGrpc.cs @@ -0,0 +1,155 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ssn/predictservice/v1/predictservice.proto +// +#pragma warning disable 0414, 1591, 8981, 0612 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Ssn.Predictservice.V1 { + public static partial class PredictService + { + static readonly string __ServiceName = "ssn.predictservice.v1.PredictService"; + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (message is global::Google.Protobuf.IBufferMessage) + { + context.SetPayloadLength(message.CalculateSize()); + global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); + context.Complete(); + return; + } + #endif + context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static class __Helper_MessageCache + { + public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (__Helper_MessageCache.IsBufferMessage) + { + return parser.ParseFrom(context.PayloadAsReadOnlySequence()); + } + #endif + return parser.ParseFrom(context.PayloadAsNewBuffer()); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ssn_predictservice_v1_ModelInferRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Ssn.Predictservice.V1.ModelInferRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_ssn_predictservice_v1_ModelInferResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Ssn.Predictservice.V1.ModelInferResponse.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Predict = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Predict", + __Marshaller_ssn_predictservice_v1_ModelInferRequest, + __Marshaller_ssn_predictservice_v1_ModelInferResponse); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Ssn.Predictservice.V1.PredictserviceReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of PredictService + [grpc::BindServiceMethod(typeof(PredictService), "BindService")] + public abstract partial class PredictServiceBase + { + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Predict(global::Ssn.Predictservice.V1.ModelInferRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for PredictService + public partial class PredictServiceClient : grpc::ClientBase + { + /// Creates a new client for PredictService + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public PredictServiceClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for PredictService that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public PredictServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected PredictServiceClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected PredictServiceClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Ssn.Predictservice.V1.ModelInferResponse Predict(global::Ssn.Predictservice.V1.ModelInferRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Predict(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Ssn.Predictservice.V1.ModelInferResponse Predict(global::Ssn.Predictservice.V1.ModelInferRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Predict, null, options, request); + } + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall PredictAsync(global::Ssn.Predictservice.V1.ModelInferRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return PredictAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall PredictAsync(global::Ssn.Predictservice.V1.ModelInferRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Predict, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override PredictServiceClient NewInstance(ClientBaseConfiguration configuration) + { + return new PredictServiceClient(configuration); + } + } + + /// Creates service definition that can be registered with a server + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static grpc::ServerServiceDefinition BindService(PredictServiceBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_Predict, serviceImpl.Predict).Build(); + } + + /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. + /// Note: this method is part of an experimental API that can change or be removed without any prior notice. + /// Service methods will be bound by calling AddMethod on this object. + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static void BindService(grpc::ServiceBinderBase serviceBinder, PredictServiceBase serviceImpl) + { + serviceBinder.AddMethod(__Method_Predict, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Predict)); + } + + } +} +#endregion diff --git a/gen/csharp/Ssn/Predictservice/V1/Predictservice.cs b/gen/csharp/Ssn/Predictservice/V1/Predictservice.cs new file mode 100644 index 00000000..a6aa4041 --- /dev/null +++ b/gen/csharp/Ssn/Predictservice/V1/Predictservice.cs @@ -0,0 +1,2593 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ssn/predictservice/v1/predictservice.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Ssn.Predictservice.V1 { + + /// Holder for reflection information generated from ssn/predictservice/v1/predictservice.proto + public static partial class PredictserviceReflection { + + #region Descriptor + /// File descriptor for ssn/predictservice/v1/predictservice.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PredictserviceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cipzc24vcHJlZGljdHNlcnZpY2UvdjEvcHJlZGljdHNlcnZpY2UucHJvdG8S", + "FXNzbi5wcmVkaWN0c2VydmljZS52MSLXAQoOSW5mZXJQYXJhbWV0ZXISHwoK", + "Ym9vbF9wYXJhbRgBIAEoCEgAUglib29sUGFyYW0SIQoLaW50NjRfcGFyYW0Y", + "AiABKANIAFIKaW50NjRQYXJhbRIjCgxzdHJpbmdfcGFyYW0YAyABKAlIAFIL", + "c3RyaW5nUGFyYW0SIwoMZG91YmxlX3BhcmFtGAQgASgBSABSC2RvdWJsZVBh", + "cmFtEiMKDHVpbnQ2NF9wYXJhbRgFIAEoBEgAUgt1aW50NjRQYXJhbUISChBw", + "YXJhbWV0ZXJfY2hvaWNlIsMCChNJbmZlclRlbnNvckNvbnRlbnRzEiMKDWJv", + "b2xfY29udGVudHMYASADKAhSDGJvb2xDb250ZW50cxIhCgxpbnRfY29udGVu", + "dHMYAiADKAVSC2ludENvbnRlbnRzEiUKDmludDY0X2NvbnRlbnRzGAMgAygD", + "Ug1pbnQ2NENvbnRlbnRzEiMKDXVpbnRfY29udGVudHMYBCADKA1SDHVpbnRD", + "b250ZW50cxInCg91aW50NjRfY29udGVudHMYBSADKARSDnVpbnQ2NENvbnRl", + "bnRzEiMKDWZwMzJfY29udGVudHMYBiADKAJSDGZwMzJDb250ZW50cxIjCg1m", + "cDY0X2NvbnRlbnRzGAcgAygBUgxmcDY0Q29udGVudHMSJQoOYnl0ZXNfY29u", + "dGVudHMYCCADKAxSDWJ5dGVzQ29udGVudHMiiQkKEU1vZGVsSW5mZXJSZXF1", + "ZXN0Eh0KCm1vZGVsX25hbWUYASABKAlSCW1vZGVsTmFtZRIjCg1tb2RlbF92", + "ZXJzaW9uGAIgASgJUgxtb2RlbFZlcnNpb24SDgoCaWQYAyABKAlSAmlkElgK", + "CnBhcmFtZXRlcnMYBCADKAsyOC5zc24ucHJlZGljdHNlcnZpY2UudjEuTW9k", + "ZWxJbmZlclJlcXVlc3QuUGFyYW1ldGVyc0VudHJ5UgpwYXJhbWV0ZXJzElEK", + "BmlucHV0cxgFIAMoCzI5LnNzbi5wcmVkaWN0c2VydmljZS52MS5Nb2RlbElu", + "ZmVyUmVxdWVzdC5JbmZlcklucHV0VGVuc29yUgZpbnB1dHMSXQoHb3V0cHV0", + "cxgGIAMoCzJDLnNzbi5wcmVkaWN0c2VydmljZS52MS5Nb2RlbEluZmVyUmVx", + "dWVzdC5JbmZlclJlcXVlc3RlZE91dHB1dFRlbnNvclIHb3V0cHV0cxIsChJy", + "YXdfaW5wdXRfY29udGVudHMYByADKAxSEHJhd0lucHV0Q29udGVudHMa8QIK", + "EEluZmVySW5wdXRUZW5zb3ISEgoEbmFtZRgBIAEoCVIEbmFtZRIaCghkYXRh", + "dHlwZRgCIAEoCVIIZGF0YXR5cGUSFAoFc2hhcGUYAyADKANSBXNoYXBlEmkK", + "CnBhcmFtZXRlcnMYBCADKAsySS5zc24ucHJlZGljdHNlcnZpY2UudjEuTW9k", + "ZWxJbmZlclJlcXVlc3QuSW5mZXJJbnB1dFRlbnNvci5QYXJhbWV0ZXJzRW50", + "cnlSCnBhcmFtZXRlcnMSRgoIY29udGVudHMYBSABKAsyKi5zc24ucHJlZGlj", + "dHNlcnZpY2UudjEuSW5mZXJUZW5zb3JDb250ZW50c1IIY29udGVudHMaZAoP", + "UGFyYW1ldGVyc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EjsKBXZhbHVlGAIg", + "ASgLMiUuc3NuLnByZWRpY3RzZXJ2aWNlLnYxLkluZmVyUGFyYW1ldGVyUgV2", + "YWx1ZToCOAEaiwIKGkluZmVyUmVxdWVzdGVkT3V0cHV0VGVuc29yEhIKBG5h", + "bWUYASABKAlSBG5hbWUScwoKcGFyYW1ldGVycxgCIAMoCzJTLnNzbi5wcmVk", + "aWN0c2VydmljZS52MS5Nb2RlbEluZmVyUmVxdWVzdC5JbmZlclJlcXVlc3Rl", + "ZE91dHB1dFRlbnNvci5QYXJhbWV0ZXJzRW50cnlSCnBhcmFtZXRlcnMaZAoP", + "UGFyYW1ldGVyc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EjsKBXZhbHVlGAIg", + "ASgLMiUuc3NuLnByZWRpY3RzZXJ2aWNlLnYxLkluZmVyUGFyYW1ldGVyUgV2", + "YWx1ZToCOAEaZAoPUGFyYW1ldGVyc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5", + "EjsKBXZhbHVlGAIgASgLMiUuc3NuLnByZWRpY3RzZXJ2aWNlLnYxLkluZmVy", + "UGFyYW1ldGVyUgV2YWx1ZToCOAEipwYKEk1vZGVsSW5mZXJSZXNwb25zZRId", + "Cgptb2RlbF9uYW1lGAEgASgJUgltb2RlbE5hbWUSIwoNbW9kZWxfdmVyc2lv", + "bhgCIAEoCVIMbW9kZWxWZXJzaW9uEg4KAmlkGAMgASgJUgJpZBJZCgpwYXJh", + "bWV0ZXJzGAQgAygLMjkuc3NuLnByZWRpY3RzZXJ2aWNlLnYxLk1vZGVsSW5m", + "ZXJSZXNwb25zZS5QYXJhbWV0ZXJzRW50cnlSCnBhcmFtZXRlcnMSVQoHb3V0", + "cHV0cxgFIAMoCzI7LnNzbi5wcmVkaWN0c2VydmljZS52MS5Nb2RlbEluZmVy", + "UmVzcG9uc2UuSW5mZXJPdXRwdXRUZW5zb3JSB291dHB1dHMSLgoTcmF3X291", + "dHB1dF9jb250ZW50cxgGIAMoDFIRcmF3T3V0cHV0Q29udGVudHMa9AIKEUlu", + "ZmVyT3V0cHV0VGVuc29yEhIKBG5hbWUYASABKAlSBG5hbWUSGgoIZGF0YXR5", + "cGUYAiABKAlSCGRhdGF0eXBlEhQKBXNoYXBlGAMgAygDUgVzaGFwZRJrCgpw", + "YXJhbWV0ZXJzGAQgAygLMksuc3NuLnByZWRpY3RzZXJ2aWNlLnYxLk1vZGVs", + "SW5mZXJSZXNwb25zZS5JbmZlck91dHB1dFRlbnNvci5QYXJhbWV0ZXJzRW50", + "cnlSCnBhcmFtZXRlcnMSRgoIY29udGVudHMYBSABKAsyKi5zc24ucHJlZGlj", + "dHNlcnZpY2UudjEuSW5mZXJUZW5zb3JDb250ZW50c1IIY29udGVudHMaZAoP", + "UGFyYW1ldGVyc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EjsKBXZhbHVlGAIg", + "ASgLMiUuc3NuLnByZWRpY3RzZXJ2aWNlLnYxLkluZmVyUGFyYW1ldGVyUgV2", + "YWx1ZToCOAEaZAoPUGFyYW1ldGVyc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5", + "EjsKBXZhbHVlGAIgASgLMiUuc3NuLnByZWRpY3RzZXJ2aWNlLnYxLkluZmVy", + "UGFyYW1ldGVyUgV2YWx1ZToCOAEycAoOUHJlZGljdFNlcnZpY2USXgoHUHJl", + "ZGljdBIoLnNzbi5wcmVkaWN0c2VydmljZS52MS5Nb2RlbEluZmVyUmVxdWVz", + "dBopLnNzbi5wcmVkaWN0c2VydmljZS52MS5Nb2RlbEluZmVyUmVzcG9uc2VC", + "9QEKHmFpLnZpc21hLnNzbi5wcmVkaWN0c2VydmljZS52MUITUHJlZGljdHNl", + "cnZpY2VQcm90b1ABWkhnaXRodWIuY29tL2UtY29ub21pYy92bWxhcGlzL2dl", + "bi9nby9zc24vcHJlZGljdHNlcnZpY2UvdjE7cHJlZGljdHNlcnZpY2WiAgNT", + "UFiqAhVTc24uUHJlZGljdHNlcnZpY2UuVjHKAhVTc25cUHJlZGljdHNlcnZp", + "Y2VcVjHiAiFTc25cUHJlZGljdHNlcnZpY2VcVjFcR1BCTWV0YWRhdGHqAhdT", + "c246OlByZWRpY3RzZXJ2aWNlOjpWMWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Predictservice.V1.InferParameter), global::Ssn.Predictservice.V1.InferParameter.Parser, new[]{ "BoolParam", "Int64Param", "StringParam", "DoubleParam", "Uint64Param" }, new[]{ "ParameterChoice" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Predictservice.V1.InferTensorContents), global::Ssn.Predictservice.V1.InferTensorContents.Parser, new[]{ "BoolContents", "IntContents", "Int64Contents", "UintContents", "Uint64Contents", "Fp32Contents", "Fp64Contents", "BytesContents" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Predictservice.V1.ModelInferRequest), global::Ssn.Predictservice.V1.ModelInferRequest.Parser, new[]{ "ModelName", "ModelVersion", "Id", "Parameters", "Inputs", "Outputs", "RawInputContents" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Predictservice.V1.ModelInferRequest.Types.InferInputTensor), global::Ssn.Predictservice.V1.ModelInferRequest.Types.InferInputTensor.Parser, new[]{ "Name", "Datatype", "Shape", "Parameters", "Contents" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Predictservice.V1.ModelInferRequest.Types.InferRequestedOutputTensor), global::Ssn.Predictservice.V1.ModelInferRequest.Types.InferRequestedOutputTensor.Parser, new[]{ "Name", "Parameters" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Predictservice.V1.ModelInferResponse), global::Ssn.Predictservice.V1.ModelInferResponse.Parser, new[]{ "ModelName", "ModelVersion", "Id", "Parameters", "Outputs", "RawOutputContents" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Predictservice.V1.ModelInferResponse.Types.InferOutputTensor), global::Ssn.Predictservice.V1.ModelInferResponse.Types.InferOutputTensor.Parser, new[]{ "Name", "Datatype", "Shape", "Parameters", "Contents" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + null, }) + })); + } + #endregion + + } + #region Messages + /// + /// https://github.com/triton-inference-server/common/blob/main/protobuf/grpc_service.proto + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class InferParameter : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InferParameter()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Ssn.Predictservice.V1.PredictserviceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InferParameter() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InferParameter(InferParameter other) : this() { + switch (other.ParameterChoiceCase) { + case ParameterChoiceOneofCase.BoolParam: + BoolParam = other.BoolParam; + break; + case ParameterChoiceOneofCase.Int64Param: + Int64Param = other.Int64Param; + break; + case ParameterChoiceOneofCase.StringParam: + StringParam = other.StringParam; + break; + case ParameterChoiceOneofCase.DoubleParam: + DoubleParam = other.DoubleParam; + break; + case ParameterChoiceOneofCase.Uint64Param: + Uint64Param = other.Uint64Param; + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InferParameter Clone() { + return new InferParameter(this); + } + + /// Field number for the "bool_param" field. + public const int BoolParamFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool BoolParam { + get { return HasBoolParam ? (bool) parameterChoice_ : false; } + set { + parameterChoice_ = value; + parameterChoiceCase_ = ParameterChoiceOneofCase.BoolParam; + } + } + /// Gets whether the "bool_param" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBoolParam { + get { return parameterChoiceCase_ == ParameterChoiceOneofCase.BoolParam; } + } + /// Clears the value of the oneof if it's currently set to "bool_param" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBoolParam() { + if (HasBoolParam) { + ClearParameterChoice(); + } + } + + /// Field number for the "int64_param" field. + public const int Int64ParamFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Int64Param { + get { return HasInt64Param ? (long) parameterChoice_ : 0L; } + set { + parameterChoice_ = value; + parameterChoiceCase_ = ParameterChoiceOneofCase.Int64Param; + } + } + /// Gets whether the "int64_param" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInt64Param { + get { return parameterChoiceCase_ == ParameterChoiceOneofCase.Int64Param; } + } + /// Clears the value of the oneof if it's currently set to "int64_param" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInt64Param() { + if (HasInt64Param) { + ClearParameterChoice(); + } + } + + /// Field number for the "string_param" field. + public const int StringParamFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string StringParam { + get { return HasStringParam ? (string) parameterChoice_ : ""; } + set { + parameterChoice_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + parameterChoiceCase_ = ParameterChoiceOneofCase.StringParam; + } + } + /// Gets whether the "string_param" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasStringParam { + get { return parameterChoiceCase_ == ParameterChoiceOneofCase.StringParam; } + } + /// Clears the value of the oneof if it's currently set to "string_param" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearStringParam() { + if (HasStringParam) { + ClearParameterChoice(); + } + } + + /// Field number for the "double_param" field. + public const int DoubleParamFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double DoubleParam { + get { return HasDoubleParam ? (double) parameterChoice_ : 0D; } + set { + parameterChoice_ = value; + parameterChoiceCase_ = ParameterChoiceOneofCase.DoubleParam; + } + } + /// Gets whether the "double_param" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDoubleParam { + get { return parameterChoiceCase_ == ParameterChoiceOneofCase.DoubleParam; } + } + /// Clears the value of the oneof if it's currently set to "double_param" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDoubleParam() { + if (HasDoubleParam) { + ClearParameterChoice(); + } + } + + /// Field number for the "uint64_param" field. + public const int Uint64ParamFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong Uint64Param { + get { return HasUint64Param ? (ulong) parameterChoice_ : 0UL; } + set { + parameterChoice_ = value; + parameterChoiceCase_ = ParameterChoiceOneofCase.Uint64Param; + } + } + /// Gets whether the "uint64_param" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUint64Param { + get { return parameterChoiceCase_ == ParameterChoiceOneofCase.Uint64Param; } + } + /// Clears the value of the oneof if it's currently set to "uint64_param" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUint64Param() { + if (HasUint64Param) { + ClearParameterChoice(); + } + } + + private object parameterChoice_; + /// Enum of possible cases for the "parameter_choice" oneof. + public enum ParameterChoiceOneofCase { + None = 0, + BoolParam = 1, + Int64Param = 2, + StringParam = 3, + DoubleParam = 4, + Uint64Param = 5, + } + private ParameterChoiceOneofCase parameterChoiceCase_ = ParameterChoiceOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ParameterChoiceOneofCase ParameterChoiceCase { + get { return parameterChoiceCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParameterChoice() { + parameterChoiceCase_ = ParameterChoiceOneofCase.None; + parameterChoice_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InferParameter); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InferParameter other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BoolParam != other.BoolParam) return false; + if (Int64Param != other.Int64Param) return false; + if (StringParam != other.StringParam) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleParam, other.DoubleParam)) return false; + if (Uint64Param != other.Uint64Param) return false; + if (ParameterChoiceCase != other.ParameterChoiceCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasBoolParam) hash ^= BoolParam.GetHashCode(); + if (HasInt64Param) hash ^= Int64Param.GetHashCode(); + if (HasStringParam) hash ^= StringParam.GetHashCode(); + if (HasDoubleParam) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleParam); + if (HasUint64Param) hash ^= Uint64Param.GetHashCode(); + hash ^= (int) parameterChoiceCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasBoolParam) { + output.WriteRawTag(8); + output.WriteBool(BoolParam); + } + if (HasInt64Param) { + output.WriteRawTag(16); + output.WriteInt64(Int64Param); + } + if (HasStringParam) { + output.WriteRawTag(26); + output.WriteString(StringParam); + } + if (HasDoubleParam) { + output.WriteRawTag(33); + output.WriteDouble(DoubleParam); + } + if (HasUint64Param) { + output.WriteRawTag(40); + output.WriteUInt64(Uint64Param); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasBoolParam) { + output.WriteRawTag(8); + output.WriteBool(BoolParam); + } + if (HasInt64Param) { + output.WriteRawTag(16); + output.WriteInt64(Int64Param); + } + if (HasStringParam) { + output.WriteRawTag(26); + output.WriteString(StringParam); + } + if (HasDoubleParam) { + output.WriteRawTag(33); + output.WriteDouble(DoubleParam); + } + if (HasUint64Param) { + output.WriteRawTag(40); + output.WriteUInt64(Uint64Param); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasBoolParam) { + size += 1 + 1; + } + if (HasInt64Param) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Int64Param); + } + if (HasStringParam) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(StringParam); + } + if (HasDoubleParam) { + size += 1 + 8; + } + if (HasUint64Param) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Uint64Param); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InferParameter other) { + if (other == null) { + return; + } + switch (other.ParameterChoiceCase) { + case ParameterChoiceOneofCase.BoolParam: + BoolParam = other.BoolParam; + break; + case ParameterChoiceOneofCase.Int64Param: + Int64Param = other.Int64Param; + break; + case ParameterChoiceOneofCase.StringParam: + StringParam = other.StringParam; + break; + case ParameterChoiceOneofCase.DoubleParam: + DoubleParam = other.DoubleParam; + break; + case ParameterChoiceOneofCase.Uint64Param: + Uint64Param = other.Uint64Param; + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + BoolParam = input.ReadBool(); + break; + } + case 16: { + Int64Param = input.ReadInt64(); + break; + } + case 26: { + StringParam = input.ReadString(); + break; + } + case 33: { + DoubleParam = input.ReadDouble(); + break; + } + case 40: { + Uint64Param = input.ReadUInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + BoolParam = input.ReadBool(); + break; + } + case 16: { + Int64Param = input.ReadInt64(); + break; + } + case 26: { + StringParam = input.ReadString(); + break; + } + case 33: { + DoubleParam = input.ReadDouble(); + break; + } + case 40: { + Uint64Param = input.ReadUInt64(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class InferTensorContents : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InferTensorContents()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Ssn.Predictservice.V1.PredictserviceReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InferTensorContents() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InferTensorContents(InferTensorContents other) : this() { + boolContents_ = other.boolContents_.Clone(); + intContents_ = other.intContents_.Clone(); + int64Contents_ = other.int64Contents_.Clone(); + uintContents_ = other.uintContents_.Clone(); + uint64Contents_ = other.uint64Contents_.Clone(); + fp32Contents_ = other.fp32Contents_.Clone(); + fp64Contents_ = other.fp64Contents_.Clone(); + bytesContents_ = other.bytesContents_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InferTensorContents Clone() { + return new InferTensorContents(this); + } + + /// Field number for the "bool_contents" field. + public const int BoolContentsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_boolContents_codec + = pb::FieldCodec.ForBool(10); + private readonly pbc::RepeatedField boolContents_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BoolContents { + get { return boolContents_; } + } + + /// Field number for the "int_contents" field. + public const int IntContentsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_intContents_codec + = pb::FieldCodec.ForInt32(18); + private readonly pbc::RepeatedField intContents_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField IntContents { + get { return intContents_; } + } + + /// Field number for the "int64_contents" field. + public const int Int64ContentsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_int64Contents_codec + = pb::FieldCodec.ForInt64(26); + private readonly pbc::RepeatedField int64Contents_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Int64Contents { + get { return int64Contents_; } + } + + /// Field number for the "uint_contents" field. + public const int UintContentsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_uintContents_codec + = pb::FieldCodec.ForUInt32(34); + private readonly pbc::RepeatedField uintContents_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField UintContents { + get { return uintContents_; } + } + + /// Field number for the "uint64_contents" field. + public const int Uint64ContentsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_uint64Contents_codec + = pb::FieldCodec.ForUInt64(42); + private readonly pbc::RepeatedField uint64Contents_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Uint64Contents { + get { return uint64Contents_; } + } + + /// Field number for the "fp32_contents" field. + public const int Fp32ContentsFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_fp32Contents_codec + = pb::FieldCodec.ForFloat(50); + private readonly pbc::RepeatedField fp32Contents_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Fp32Contents { + get { return fp32Contents_; } + } + + /// Field number for the "fp64_contents" field. + public const int Fp64ContentsFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_fp64Contents_codec + = pb::FieldCodec.ForDouble(58); + private readonly pbc::RepeatedField fp64Contents_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Fp64Contents { + get { return fp64Contents_; } + } + + /// Field number for the "bytes_contents" field. + public const int BytesContentsFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_bytesContents_codec + = pb::FieldCodec.ForBytes(66); + private readonly pbc::RepeatedField bytesContents_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BytesContents { + get { return bytesContents_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InferTensorContents); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InferTensorContents other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!boolContents_.Equals(other.boolContents_)) return false; + if(!intContents_.Equals(other.intContents_)) return false; + if(!int64Contents_.Equals(other.int64Contents_)) return false; + if(!uintContents_.Equals(other.uintContents_)) return false; + if(!uint64Contents_.Equals(other.uint64Contents_)) return false; + if(!fp32Contents_.Equals(other.fp32Contents_)) return false; + if(!fp64Contents_.Equals(other.fp64Contents_)) return false; + if(!bytesContents_.Equals(other.bytesContents_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= boolContents_.GetHashCode(); + hash ^= intContents_.GetHashCode(); + hash ^= int64Contents_.GetHashCode(); + hash ^= uintContents_.GetHashCode(); + hash ^= uint64Contents_.GetHashCode(); + hash ^= fp32Contents_.GetHashCode(); + hash ^= fp64Contents_.GetHashCode(); + hash ^= bytesContents_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + boolContents_.WriteTo(output, _repeated_boolContents_codec); + intContents_.WriteTo(output, _repeated_intContents_codec); + int64Contents_.WriteTo(output, _repeated_int64Contents_codec); + uintContents_.WriteTo(output, _repeated_uintContents_codec); + uint64Contents_.WriteTo(output, _repeated_uint64Contents_codec); + fp32Contents_.WriteTo(output, _repeated_fp32Contents_codec); + fp64Contents_.WriteTo(output, _repeated_fp64Contents_codec); + bytesContents_.WriteTo(output, _repeated_bytesContents_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + boolContents_.WriteTo(ref output, _repeated_boolContents_codec); + intContents_.WriteTo(ref output, _repeated_intContents_codec); + int64Contents_.WriteTo(ref output, _repeated_int64Contents_codec); + uintContents_.WriteTo(ref output, _repeated_uintContents_codec); + uint64Contents_.WriteTo(ref output, _repeated_uint64Contents_codec); + fp32Contents_.WriteTo(ref output, _repeated_fp32Contents_codec); + fp64Contents_.WriteTo(ref output, _repeated_fp64Contents_codec); + bytesContents_.WriteTo(ref output, _repeated_bytesContents_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += boolContents_.CalculateSize(_repeated_boolContents_codec); + size += intContents_.CalculateSize(_repeated_intContents_codec); + size += int64Contents_.CalculateSize(_repeated_int64Contents_codec); + size += uintContents_.CalculateSize(_repeated_uintContents_codec); + size += uint64Contents_.CalculateSize(_repeated_uint64Contents_codec); + size += fp32Contents_.CalculateSize(_repeated_fp32Contents_codec); + size += fp64Contents_.CalculateSize(_repeated_fp64Contents_codec); + size += bytesContents_.CalculateSize(_repeated_bytesContents_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InferTensorContents other) { + if (other == null) { + return; + } + boolContents_.Add(other.boolContents_); + intContents_.Add(other.intContents_); + int64Contents_.Add(other.int64Contents_); + uintContents_.Add(other.uintContents_); + uint64Contents_.Add(other.uint64Contents_); + fp32Contents_.Add(other.fp32Contents_); + fp64Contents_.Add(other.fp64Contents_); + bytesContents_.Add(other.bytesContents_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: + case 8: { + boolContents_.AddEntriesFrom(input, _repeated_boolContents_codec); + break; + } + case 18: + case 16: { + intContents_.AddEntriesFrom(input, _repeated_intContents_codec); + break; + } + case 26: + case 24: { + int64Contents_.AddEntriesFrom(input, _repeated_int64Contents_codec); + break; + } + case 34: + case 32: { + uintContents_.AddEntriesFrom(input, _repeated_uintContents_codec); + break; + } + case 42: + case 40: { + uint64Contents_.AddEntriesFrom(input, _repeated_uint64Contents_codec); + break; + } + case 50: + case 53: { + fp32Contents_.AddEntriesFrom(input, _repeated_fp32Contents_codec); + break; + } + case 58: + case 57: { + fp64Contents_.AddEntriesFrom(input, _repeated_fp64Contents_codec); + break; + } + case 66: { + bytesContents_.AddEntriesFrom(input, _repeated_bytesContents_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: + case 8: { + boolContents_.AddEntriesFrom(ref input, _repeated_boolContents_codec); + break; + } + case 18: + case 16: { + intContents_.AddEntriesFrom(ref input, _repeated_intContents_codec); + break; + } + case 26: + case 24: { + int64Contents_.AddEntriesFrom(ref input, _repeated_int64Contents_codec); + break; + } + case 34: + case 32: { + uintContents_.AddEntriesFrom(ref input, _repeated_uintContents_codec); + break; + } + case 42: + case 40: { + uint64Contents_.AddEntriesFrom(ref input, _repeated_uint64Contents_codec); + break; + } + case 50: + case 53: { + fp32Contents_.AddEntriesFrom(ref input, _repeated_fp32Contents_codec); + break; + } + case 58: + case 57: { + fp64Contents_.AddEntriesFrom(ref input, _repeated_fp64Contents_codec); + break; + } + case 66: { + bytesContents_.AddEntriesFrom(ref input, _repeated_bytesContents_codec); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ModelInferRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ModelInferRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Ssn.Predictservice.V1.PredictserviceReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ModelInferRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ModelInferRequest(ModelInferRequest other) : this() { + modelName_ = other.modelName_; + modelVersion_ = other.modelVersion_; + id_ = other.id_; + parameters_ = other.parameters_.Clone(); + inputs_ = other.inputs_.Clone(); + outputs_ = other.outputs_.Clone(); + rawInputContents_ = other.rawInputContents_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ModelInferRequest Clone() { + return new ModelInferRequest(this); + } + + /// Field number for the "model_name" field. + public const int ModelNameFieldNumber = 1; + private string modelName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ModelName { + get { return modelName_; } + set { + modelName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "model_version" field. + public const int ModelVersionFieldNumber = 2; + private string modelVersion_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ModelVersion { + get { return modelVersion_; } + set { + modelVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 3; + private string id_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "parameters" field. + public const int ParametersFieldNumber = 4; + private static readonly pbc::MapField.Codec _map_parameters_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Ssn.Predictservice.V1.InferParameter.Parser), 34); + private readonly pbc::MapField parameters_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Parameters { + get { return parameters_; } + } + + /// Field number for the "inputs" field. + public const int InputsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_inputs_codec + = pb::FieldCodec.ForMessage(42, global::Ssn.Predictservice.V1.ModelInferRequest.Types.InferInputTensor.Parser); + private readonly pbc::RepeatedField inputs_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Inputs { + get { return inputs_; } + } + + /// Field number for the "outputs" field. + public const int OutputsFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_outputs_codec + = pb::FieldCodec.ForMessage(50, global::Ssn.Predictservice.V1.ModelInferRequest.Types.InferRequestedOutputTensor.Parser); + private readonly pbc::RepeatedField outputs_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Outputs { + get { return outputs_; } + } + + /// Field number for the "raw_input_contents" field. + public const int RawInputContentsFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_rawInputContents_codec + = pb::FieldCodec.ForBytes(58); + private readonly pbc::RepeatedField rawInputContents_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RawInputContents { + get { return rawInputContents_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ModelInferRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ModelInferRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ModelName != other.ModelName) return false; + if (ModelVersion != other.ModelVersion) return false; + if (Id != other.Id) return false; + if (!Parameters.Equals(other.Parameters)) return false; + if(!inputs_.Equals(other.inputs_)) return false; + if(!outputs_.Equals(other.outputs_)) return false; + if(!rawInputContents_.Equals(other.rawInputContents_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ModelName.Length != 0) hash ^= ModelName.GetHashCode(); + if (ModelVersion.Length != 0) hash ^= ModelVersion.GetHashCode(); + if (Id.Length != 0) hash ^= Id.GetHashCode(); + hash ^= Parameters.GetHashCode(); + hash ^= inputs_.GetHashCode(); + hash ^= outputs_.GetHashCode(); + hash ^= rawInputContents_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ModelName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ModelName); + } + if (ModelVersion.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ModelVersion); + } + if (Id.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Id); + } + parameters_.WriteTo(output, _map_parameters_codec); + inputs_.WriteTo(output, _repeated_inputs_codec); + outputs_.WriteTo(output, _repeated_outputs_codec); + rawInputContents_.WriteTo(output, _repeated_rawInputContents_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ModelName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ModelName); + } + if (ModelVersion.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ModelVersion); + } + if (Id.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Id); + } + parameters_.WriteTo(ref output, _map_parameters_codec); + inputs_.WriteTo(ref output, _repeated_inputs_codec); + outputs_.WriteTo(ref output, _repeated_outputs_codec); + rawInputContents_.WriteTo(ref output, _repeated_rawInputContents_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ModelName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ModelName); + } + if (ModelVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ModelVersion); + } + if (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + size += parameters_.CalculateSize(_map_parameters_codec); + size += inputs_.CalculateSize(_repeated_inputs_codec); + size += outputs_.CalculateSize(_repeated_outputs_codec); + size += rawInputContents_.CalculateSize(_repeated_rawInputContents_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ModelInferRequest other) { + if (other == null) { + return; + } + if (other.ModelName.Length != 0) { + ModelName = other.ModelName; + } + if (other.ModelVersion.Length != 0) { + ModelVersion = other.ModelVersion; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + parameters_.MergeFrom(other.parameters_); + inputs_.Add(other.inputs_); + outputs_.Add(other.outputs_); + rawInputContents_.Add(other.rawInputContents_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + ModelName = input.ReadString(); + break; + } + case 18: { + ModelVersion = input.ReadString(); + break; + } + case 26: { + Id = input.ReadString(); + break; + } + case 34: { + parameters_.AddEntriesFrom(input, _map_parameters_codec); + break; + } + case 42: { + inputs_.AddEntriesFrom(input, _repeated_inputs_codec); + break; + } + case 50: { + outputs_.AddEntriesFrom(input, _repeated_outputs_codec); + break; + } + case 58: { + rawInputContents_.AddEntriesFrom(input, _repeated_rawInputContents_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ModelName = input.ReadString(); + break; + } + case 18: { + ModelVersion = input.ReadString(); + break; + } + case 26: { + Id = input.ReadString(); + break; + } + case 34: { + parameters_.AddEntriesFrom(ref input, _map_parameters_codec); + break; + } + case 42: { + inputs_.AddEntriesFrom(ref input, _repeated_inputs_codec); + break; + } + case 50: { + outputs_.AddEntriesFrom(ref input, _repeated_outputs_codec); + break; + } + case 58: { + rawInputContents_.AddEntriesFrom(ref input, _repeated_rawInputContents_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ModelInferRequest message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class InferInputTensor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InferInputTensor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Ssn.Predictservice.V1.ModelInferRequest.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InferInputTensor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InferInputTensor(InferInputTensor other) : this() { + name_ = other.name_; + datatype_ = other.datatype_; + shape_ = other.shape_.Clone(); + parameters_ = other.parameters_.Clone(); + contents_ = other.contents_ != null ? other.contents_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InferInputTensor Clone() { + return new InferInputTensor(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "datatype" field. + public const int DatatypeFieldNumber = 2; + private string datatype_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Datatype { + get { return datatype_; } + set { + datatype_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "shape" field. + public const int ShapeFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_shape_codec + = pb::FieldCodec.ForInt64(26); + private readonly pbc::RepeatedField shape_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Shape { + get { return shape_; } + } + + /// Field number for the "parameters" field. + public const int ParametersFieldNumber = 4; + private static readonly pbc::MapField.Codec _map_parameters_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Ssn.Predictservice.V1.InferParameter.Parser), 34); + private readonly pbc::MapField parameters_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Parameters { + get { return parameters_; } + } + + /// Field number for the "contents" field. + public const int ContentsFieldNumber = 5; + private global::Ssn.Predictservice.V1.InferTensorContents contents_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Ssn.Predictservice.V1.InferTensorContents Contents { + get { return contents_; } + set { + contents_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InferInputTensor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InferInputTensor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Datatype != other.Datatype) return false; + if(!shape_.Equals(other.shape_)) return false; + if (!Parameters.Equals(other.Parameters)) return false; + if (!object.Equals(Contents, other.Contents)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Datatype.Length != 0) hash ^= Datatype.GetHashCode(); + hash ^= shape_.GetHashCode(); + hash ^= Parameters.GetHashCode(); + if (contents_ != null) hash ^= Contents.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Datatype.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Datatype); + } + shape_.WriteTo(output, _repeated_shape_codec); + parameters_.WriteTo(output, _map_parameters_codec); + if (contents_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Contents); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Datatype.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Datatype); + } + shape_.WriteTo(ref output, _repeated_shape_codec); + parameters_.WriteTo(ref output, _map_parameters_codec); + if (contents_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Contents); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Datatype.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Datatype); + } + size += shape_.CalculateSize(_repeated_shape_codec); + size += parameters_.CalculateSize(_map_parameters_codec); + if (contents_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Contents); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InferInputTensor other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Datatype.Length != 0) { + Datatype = other.Datatype; + } + shape_.Add(other.shape_); + parameters_.MergeFrom(other.parameters_); + if (other.contents_ != null) { + if (contents_ == null) { + Contents = new global::Ssn.Predictservice.V1.InferTensorContents(); + } + Contents.MergeFrom(other.Contents); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Datatype = input.ReadString(); + break; + } + case 26: + case 24: { + shape_.AddEntriesFrom(input, _repeated_shape_codec); + break; + } + case 34: { + parameters_.AddEntriesFrom(input, _map_parameters_codec); + break; + } + case 42: { + if (contents_ == null) { + Contents = new global::Ssn.Predictservice.V1.InferTensorContents(); + } + input.ReadMessage(Contents); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Datatype = input.ReadString(); + break; + } + case 26: + case 24: { + shape_.AddEntriesFrom(ref input, _repeated_shape_codec); + break; + } + case 34: { + parameters_.AddEntriesFrom(ref input, _map_parameters_codec); + break; + } + case 42: { + if (contents_ == null) { + Contents = new global::Ssn.Predictservice.V1.InferTensorContents(); + } + input.ReadMessage(Contents); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class InferRequestedOutputTensor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InferRequestedOutputTensor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Ssn.Predictservice.V1.ModelInferRequest.Descriptor.NestedTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InferRequestedOutputTensor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InferRequestedOutputTensor(InferRequestedOutputTensor other) : this() { + name_ = other.name_; + parameters_ = other.parameters_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InferRequestedOutputTensor Clone() { + return new InferRequestedOutputTensor(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "parameters" field. + public const int ParametersFieldNumber = 2; + private static readonly pbc::MapField.Codec _map_parameters_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Ssn.Predictservice.V1.InferParameter.Parser), 18); + private readonly pbc::MapField parameters_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Parameters { + get { return parameters_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InferRequestedOutputTensor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InferRequestedOutputTensor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!Parameters.Equals(other.Parameters)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + hash ^= Parameters.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + parameters_.WriteTo(output, _map_parameters_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + parameters_.WriteTo(ref output, _map_parameters_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + size += parameters_.CalculateSize(_map_parameters_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InferRequestedOutputTensor other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + parameters_.MergeFrom(other.parameters_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + parameters_.AddEntriesFrom(input, _map_parameters_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + parameters_.AddEntriesFrom(ref input, _map_parameters_codec); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ModelInferResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ModelInferResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Ssn.Predictservice.V1.PredictserviceReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ModelInferResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ModelInferResponse(ModelInferResponse other) : this() { + modelName_ = other.modelName_; + modelVersion_ = other.modelVersion_; + id_ = other.id_; + parameters_ = other.parameters_.Clone(); + outputs_ = other.outputs_.Clone(); + rawOutputContents_ = other.rawOutputContents_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ModelInferResponse Clone() { + return new ModelInferResponse(this); + } + + /// Field number for the "model_name" field. + public const int ModelNameFieldNumber = 1; + private string modelName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ModelName { + get { return modelName_; } + set { + modelName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "model_version" field. + public const int ModelVersionFieldNumber = 2; + private string modelVersion_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ModelVersion { + get { return modelVersion_; } + set { + modelVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 3; + private string id_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "parameters" field. + public const int ParametersFieldNumber = 4; + private static readonly pbc::MapField.Codec _map_parameters_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Ssn.Predictservice.V1.InferParameter.Parser), 34); + private readonly pbc::MapField parameters_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Parameters { + get { return parameters_; } + } + + /// Field number for the "outputs" field. + public const int OutputsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_outputs_codec + = pb::FieldCodec.ForMessage(42, global::Ssn.Predictservice.V1.ModelInferResponse.Types.InferOutputTensor.Parser); + private readonly pbc::RepeatedField outputs_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Outputs { + get { return outputs_; } + } + + /// Field number for the "raw_output_contents" field. + public const int RawOutputContentsFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_rawOutputContents_codec + = pb::FieldCodec.ForBytes(50); + private readonly pbc::RepeatedField rawOutputContents_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RawOutputContents { + get { return rawOutputContents_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ModelInferResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ModelInferResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ModelName != other.ModelName) return false; + if (ModelVersion != other.ModelVersion) return false; + if (Id != other.Id) return false; + if (!Parameters.Equals(other.Parameters)) return false; + if(!outputs_.Equals(other.outputs_)) return false; + if(!rawOutputContents_.Equals(other.rawOutputContents_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ModelName.Length != 0) hash ^= ModelName.GetHashCode(); + if (ModelVersion.Length != 0) hash ^= ModelVersion.GetHashCode(); + if (Id.Length != 0) hash ^= Id.GetHashCode(); + hash ^= Parameters.GetHashCode(); + hash ^= outputs_.GetHashCode(); + hash ^= rawOutputContents_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ModelName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ModelName); + } + if (ModelVersion.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ModelVersion); + } + if (Id.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Id); + } + parameters_.WriteTo(output, _map_parameters_codec); + outputs_.WriteTo(output, _repeated_outputs_codec); + rawOutputContents_.WriteTo(output, _repeated_rawOutputContents_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ModelName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ModelName); + } + if (ModelVersion.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ModelVersion); + } + if (Id.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Id); + } + parameters_.WriteTo(ref output, _map_parameters_codec); + outputs_.WriteTo(ref output, _repeated_outputs_codec); + rawOutputContents_.WriteTo(ref output, _repeated_rawOutputContents_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ModelName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ModelName); + } + if (ModelVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ModelVersion); + } + if (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + size += parameters_.CalculateSize(_map_parameters_codec); + size += outputs_.CalculateSize(_repeated_outputs_codec); + size += rawOutputContents_.CalculateSize(_repeated_rawOutputContents_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ModelInferResponse other) { + if (other == null) { + return; + } + if (other.ModelName.Length != 0) { + ModelName = other.ModelName; + } + if (other.ModelVersion.Length != 0) { + ModelVersion = other.ModelVersion; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + parameters_.MergeFrom(other.parameters_); + outputs_.Add(other.outputs_); + rawOutputContents_.Add(other.rawOutputContents_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + ModelName = input.ReadString(); + break; + } + case 18: { + ModelVersion = input.ReadString(); + break; + } + case 26: { + Id = input.ReadString(); + break; + } + case 34: { + parameters_.AddEntriesFrom(input, _map_parameters_codec); + break; + } + case 42: { + outputs_.AddEntriesFrom(input, _repeated_outputs_codec); + break; + } + case 50: { + rawOutputContents_.AddEntriesFrom(input, _repeated_rawOutputContents_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ModelName = input.ReadString(); + break; + } + case 18: { + ModelVersion = input.ReadString(); + break; + } + case 26: { + Id = input.ReadString(); + break; + } + case 34: { + parameters_.AddEntriesFrom(ref input, _map_parameters_codec); + break; + } + case 42: { + outputs_.AddEntriesFrom(ref input, _repeated_outputs_codec); + break; + } + case 50: { + rawOutputContents_.AddEntriesFrom(ref input, _repeated_rawOutputContents_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ModelInferResponse message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class InferOutputTensor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InferOutputTensor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Ssn.Predictservice.V1.ModelInferResponse.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InferOutputTensor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InferOutputTensor(InferOutputTensor other) : this() { + name_ = other.name_; + datatype_ = other.datatype_; + shape_ = other.shape_.Clone(); + parameters_ = other.parameters_.Clone(); + contents_ = other.contents_ != null ? other.contents_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InferOutputTensor Clone() { + return new InferOutputTensor(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "datatype" field. + public const int DatatypeFieldNumber = 2; + private string datatype_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Datatype { + get { return datatype_; } + set { + datatype_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "shape" field. + public const int ShapeFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_shape_codec + = pb::FieldCodec.ForInt64(26); + private readonly pbc::RepeatedField shape_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Shape { + get { return shape_; } + } + + /// Field number for the "parameters" field. + public const int ParametersFieldNumber = 4; + private static readonly pbc::MapField.Codec _map_parameters_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Ssn.Predictservice.V1.InferParameter.Parser), 34); + private readonly pbc::MapField parameters_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Parameters { + get { return parameters_; } + } + + /// Field number for the "contents" field. + public const int ContentsFieldNumber = 5; + private global::Ssn.Predictservice.V1.InferTensorContents contents_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Ssn.Predictservice.V1.InferTensorContents Contents { + get { return contents_; } + set { + contents_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InferOutputTensor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InferOutputTensor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Datatype != other.Datatype) return false; + if(!shape_.Equals(other.shape_)) return false; + if (!Parameters.Equals(other.Parameters)) return false; + if (!object.Equals(Contents, other.Contents)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Datatype.Length != 0) hash ^= Datatype.GetHashCode(); + hash ^= shape_.GetHashCode(); + hash ^= Parameters.GetHashCode(); + if (contents_ != null) hash ^= Contents.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Datatype.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Datatype); + } + shape_.WriteTo(output, _repeated_shape_codec); + parameters_.WriteTo(output, _map_parameters_codec); + if (contents_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Contents); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Datatype.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Datatype); + } + shape_.WriteTo(ref output, _repeated_shape_codec); + parameters_.WriteTo(ref output, _map_parameters_codec); + if (contents_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Contents); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Datatype.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Datatype); + } + size += shape_.CalculateSize(_repeated_shape_codec); + size += parameters_.CalculateSize(_map_parameters_codec); + if (contents_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Contents); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InferOutputTensor other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Datatype.Length != 0) { + Datatype = other.Datatype; + } + shape_.Add(other.shape_); + parameters_.MergeFrom(other.parameters_); + if (other.contents_ != null) { + if (contents_ == null) { + Contents = new global::Ssn.Predictservice.V1.InferTensorContents(); + } + Contents.MergeFrom(other.Contents); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Datatype = input.ReadString(); + break; + } + case 26: + case 24: { + shape_.AddEntriesFrom(input, _repeated_shape_codec); + break; + } + case 34: { + parameters_.AddEntriesFrom(input, _map_parameters_codec); + break; + } + case 42: { + if (contents_ == null) { + Contents = new global::Ssn.Predictservice.V1.InferTensorContents(); + } + input.ReadMessage(Contents); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Datatype = input.ReadString(); + break; + } + case 26: + case 24: { + shape_.AddEntriesFrom(ref input, _repeated_shape_codec); + break; + } + case 34: { + parameters_.AddEntriesFrom(ref input, _map_parameters_codec); + break; + } + case 42: { + if (contents_ == null) { + Contents = new global::Ssn.Predictservice.V1.InferTensorContents(); + } + input.ReadMessage(Contents); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/gen/go/ssn/predictservice/v1/predictservice.pb.go b/gen/go/ssn/predictservice/v1/predictservice.pb.go new file mode 100644 index 00000000..be38922a --- /dev/null +++ b/gen/go/ssn/predictservice/v1/predictservice.pb.go @@ -0,0 +1,1003 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.33.0 +// protoc (unknown) +// source: ssn/predictservice/v1/predictservice.proto + +package predictservice + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// https://github.com/triton-inference-server/common/blob/main/protobuf/grpc_service.proto +type InferParameter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to ParameterChoice: + // + // *InferParameter_BoolParam + // *InferParameter_Int64Param + // *InferParameter_StringParam + // *InferParameter_DoubleParam + // *InferParameter_Uint64Param + ParameterChoice isInferParameter_ParameterChoice `protobuf_oneof:"parameter_choice"` +} + +func (x *InferParameter) Reset() { + *x = InferParameter{} + if protoimpl.UnsafeEnabled { + mi := &file_ssn_predictservice_v1_predictservice_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InferParameter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InferParameter) ProtoMessage() {} + +func (x *InferParameter) ProtoReflect() protoreflect.Message { + mi := &file_ssn_predictservice_v1_predictservice_proto_msgTypes[0] + 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 InferParameter.ProtoReflect.Descriptor instead. +func (*InferParameter) Descriptor() ([]byte, []int) { + return file_ssn_predictservice_v1_predictservice_proto_rawDescGZIP(), []int{0} +} + +func (m *InferParameter) GetParameterChoice() isInferParameter_ParameterChoice { + if m != nil { + return m.ParameterChoice + } + return nil +} + +func (x *InferParameter) GetBoolParam() bool { + if x, ok := x.GetParameterChoice().(*InferParameter_BoolParam); ok { + return x.BoolParam + } + return false +} + +func (x *InferParameter) GetInt64Param() int64 { + if x, ok := x.GetParameterChoice().(*InferParameter_Int64Param); ok { + return x.Int64Param + } + return 0 +} + +func (x *InferParameter) GetStringParam() string { + if x, ok := x.GetParameterChoice().(*InferParameter_StringParam); ok { + return x.StringParam + } + return "" +} + +func (x *InferParameter) GetDoubleParam() float64 { + if x, ok := x.GetParameterChoice().(*InferParameter_DoubleParam); ok { + return x.DoubleParam + } + return 0 +} + +func (x *InferParameter) GetUint64Param() uint64 { + if x, ok := x.GetParameterChoice().(*InferParameter_Uint64Param); ok { + return x.Uint64Param + } + return 0 +} + +type isInferParameter_ParameterChoice interface { + isInferParameter_ParameterChoice() +} + +type InferParameter_BoolParam struct { + BoolParam bool `protobuf:"varint,1,opt,name=bool_param,json=boolParam,proto3,oneof"` +} + +type InferParameter_Int64Param struct { + Int64Param int64 `protobuf:"varint,2,opt,name=int64_param,json=int64Param,proto3,oneof"` +} + +type InferParameter_StringParam struct { + StringParam string `protobuf:"bytes,3,opt,name=string_param,json=stringParam,proto3,oneof"` +} + +type InferParameter_DoubleParam struct { + DoubleParam float64 `protobuf:"fixed64,4,opt,name=double_param,json=doubleParam,proto3,oneof"` +} + +type InferParameter_Uint64Param struct { + Uint64Param uint64 `protobuf:"varint,5,opt,name=uint64_param,json=uint64Param,proto3,oneof"` +} + +func (*InferParameter_BoolParam) isInferParameter_ParameterChoice() {} + +func (*InferParameter_Int64Param) isInferParameter_ParameterChoice() {} + +func (*InferParameter_StringParam) isInferParameter_ParameterChoice() {} + +func (*InferParameter_DoubleParam) isInferParameter_ParameterChoice() {} + +func (*InferParameter_Uint64Param) isInferParameter_ParameterChoice() {} + +type InferTensorContents struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BoolContents []bool `protobuf:"varint,1,rep,packed,name=bool_contents,json=boolContents,proto3" json:"bool_contents,omitempty"` + IntContents []int32 `protobuf:"varint,2,rep,packed,name=int_contents,json=intContents,proto3" json:"int_contents,omitempty"` + Int64Contents []int64 `protobuf:"varint,3,rep,packed,name=int64_contents,json=int64Contents,proto3" json:"int64_contents,omitempty"` + UintContents []uint32 `protobuf:"varint,4,rep,packed,name=uint_contents,json=uintContents,proto3" json:"uint_contents,omitempty"` + Uint64Contents []uint64 `protobuf:"varint,5,rep,packed,name=uint64_contents,json=uint64Contents,proto3" json:"uint64_contents,omitempty"` + Fp32Contents []float32 `protobuf:"fixed32,6,rep,packed,name=fp32_contents,json=fp32Contents,proto3" json:"fp32_contents,omitempty"` + Fp64Contents []float64 `protobuf:"fixed64,7,rep,packed,name=fp64_contents,json=fp64Contents,proto3" json:"fp64_contents,omitempty"` + BytesContents [][]byte `protobuf:"bytes,8,rep,name=bytes_contents,json=bytesContents,proto3" json:"bytes_contents,omitempty"` +} + +func (x *InferTensorContents) Reset() { + *x = InferTensorContents{} + if protoimpl.UnsafeEnabled { + mi := &file_ssn_predictservice_v1_predictservice_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InferTensorContents) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InferTensorContents) ProtoMessage() {} + +func (x *InferTensorContents) ProtoReflect() protoreflect.Message { + mi := &file_ssn_predictservice_v1_predictservice_proto_msgTypes[1] + 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 InferTensorContents.ProtoReflect.Descriptor instead. +func (*InferTensorContents) Descriptor() ([]byte, []int) { + return file_ssn_predictservice_v1_predictservice_proto_rawDescGZIP(), []int{1} +} + +func (x *InferTensorContents) GetBoolContents() []bool { + if x != nil { + return x.BoolContents + } + return nil +} + +func (x *InferTensorContents) GetIntContents() []int32 { + if x != nil { + return x.IntContents + } + return nil +} + +func (x *InferTensorContents) GetInt64Contents() []int64 { + if x != nil { + return x.Int64Contents + } + return nil +} + +func (x *InferTensorContents) GetUintContents() []uint32 { + if x != nil { + return x.UintContents + } + return nil +} + +func (x *InferTensorContents) GetUint64Contents() []uint64 { + if x != nil { + return x.Uint64Contents + } + return nil +} + +func (x *InferTensorContents) GetFp32Contents() []float32 { + if x != nil { + return x.Fp32Contents + } + return nil +} + +func (x *InferTensorContents) GetFp64Contents() []float64 { + if x != nil { + return x.Fp64Contents + } + return nil +} + +func (x *InferTensorContents) GetBytesContents() [][]byte { + if x != nil { + return x.BytesContents + } + return nil +} + +type ModelInferRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ModelName string `protobuf:"bytes,1,opt,name=model_name,json=modelName,proto3" json:"model_name,omitempty"` + ModelVersion string `protobuf:"bytes,2,opt,name=model_version,json=modelVersion,proto3" json:"model_version,omitempty"` + Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` + Parameters map[string]*InferParameter `protobuf:"bytes,4,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Inputs []*ModelInferRequest_InferInputTensor `protobuf:"bytes,5,rep,name=inputs,proto3" json:"inputs,omitempty"` + Outputs []*ModelInferRequest_InferRequestedOutputTensor `protobuf:"bytes,6,rep,name=outputs,proto3" json:"outputs,omitempty"` + RawInputContents [][]byte `protobuf:"bytes,7,rep,name=raw_input_contents,json=rawInputContents,proto3" json:"raw_input_contents,omitempty"` +} + +func (x *ModelInferRequest) Reset() { + *x = ModelInferRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ssn_predictservice_v1_predictservice_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ModelInferRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ModelInferRequest) ProtoMessage() {} + +func (x *ModelInferRequest) ProtoReflect() protoreflect.Message { + mi := &file_ssn_predictservice_v1_predictservice_proto_msgTypes[2] + 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 ModelInferRequest.ProtoReflect.Descriptor instead. +func (*ModelInferRequest) Descriptor() ([]byte, []int) { + return file_ssn_predictservice_v1_predictservice_proto_rawDescGZIP(), []int{2} +} + +func (x *ModelInferRequest) GetModelName() string { + if x != nil { + return x.ModelName + } + return "" +} + +func (x *ModelInferRequest) GetModelVersion() string { + if x != nil { + return x.ModelVersion + } + return "" +} + +func (x *ModelInferRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *ModelInferRequest) GetParameters() map[string]*InferParameter { + if x != nil { + return x.Parameters + } + return nil +} + +func (x *ModelInferRequest) GetInputs() []*ModelInferRequest_InferInputTensor { + if x != nil { + return x.Inputs + } + return nil +} + +func (x *ModelInferRequest) GetOutputs() []*ModelInferRequest_InferRequestedOutputTensor { + if x != nil { + return x.Outputs + } + return nil +} + +func (x *ModelInferRequest) GetRawInputContents() [][]byte { + if x != nil { + return x.RawInputContents + } + return nil +} + +type ModelInferResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ModelName string `protobuf:"bytes,1,opt,name=model_name,json=modelName,proto3" json:"model_name,omitempty"` + ModelVersion string `protobuf:"bytes,2,opt,name=model_version,json=modelVersion,proto3" json:"model_version,omitempty"` + Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` + Parameters map[string]*InferParameter `protobuf:"bytes,4,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Outputs []*ModelInferResponse_InferOutputTensor `protobuf:"bytes,5,rep,name=outputs,proto3" json:"outputs,omitempty"` + RawOutputContents [][]byte `protobuf:"bytes,6,rep,name=raw_output_contents,json=rawOutputContents,proto3" json:"raw_output_contents,omitempty"` +} + +func (x *ModelInferResponse) Reset() { + *x = ModelInferResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ssn_predictservice_v1_predictservice_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ModelInferResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ModelInferResponse) ProtoMessage() {} + +func (x *ModelInferResponse) ProtoReflect() protoreflect.Message { + mi := &file_ssn_predictservice_v1_predictservice_proto_msgTypes[3] + 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 ModelInferResponse.ProtoReflect.Descriptor instead. +func (*ModelInferResponse) Descriptor() ([]byte, []int) { + return file_ssn_predictservice_v1_predictservice_proto_rawDescGZIP(), []int{3} +} + +func (x *ModelInferResponse) GetModelName() string { + if x != nil { + return x.ModelName + } + return "" +} + +func (x *ModelInferResponse) GetModelVersion() string { + if x != nil { + return x.ModelVersion + } + return "" +} + +func (x *ModelInferResponse) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *ModelInferResponse) GetParameters() map[string]*InferParameter { + if x != nil { + return x.Parameters + } + return nil +} + +func (x *ModelInferResponse) GetOutputs() []*ModelInferResponse_InferOutputTensor { + if x != nil { + return x.Outputs + } + return nil +} + +func (x *ModelInferResponse) GetRawOutputContents() [][]byte { + if x != nil { + return x.RawOutputContents + } + return nil +} + +type ModelInferRequest_InferInputTensor struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Datatype string `protobuf:"bytes,2,opt,name=datatype,proto3" json:"datatype,omitempty"` + Shape []int64 `protobuf:"varint,3,rep,packed,name=shape,proto3" json:"shape,omitempty"` + Parameters map[string]*InferParameter `protobuf:"bytes,4,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Contents *InferTensorContents `protobuf:"bytes,5,opt,name=contents,proto3" json:"contents,omitempty"` +} + +func (x *ModelInferRequest_InferInputTensor) Reset() { + *x = ModelInferRequest_InferInputTensor{} + if protoimpl.UnsafeEnabled { + mi := &file_ssn_predictservice_v1_predictservice_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ModelInferRequest_InferInputTensor) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ModelInferRequest_InferInputTensor) ProtoMessage() {} + +func (x *ModelInferRequest_InferInputTensor) ProtoReflect() protoreflect.Message { + mi := &file_ssn_predictservice_v1_predictservice_proto_msgTypes[4] + 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 ModelInferRequest_InferInputTensor.ProtoReflect.Descriptor instead. +func (*ModelInferRequest_InferInputTensor) Descriptor() ([]byte, []int) { + return file_ssn_predictservice_v1_predictservice_proto_rawDescGZIP(), []int{2, 0} +} + +func (x *ModelInferRequest_InferInputTensor) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ModelInferRequest_InferInputTensor) GetDatatype() string { + if x != nil { + return x.Datatype + } + return "" +} + +func (x *ModelInferRequest_InferInputTensor) GetShape() []int64 { + if x != nil { + return x.Shape + } + return nil +} + +func (x *ModelInferRequest_InferInputTensor) GetParameters() map[string]*InferParameter { + if x != nil { + return x.Parameters + } + return nil +} + +func (x *ModelInferRequest_InferInputTensor) GetContents() *InferTensorContents { + if x != nil { + return x.Contents + } + return nil +} + +type ModelInferRequest_InferRequestedOutputTensor struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Parameters map[string]*InferParameter `protobuf:"bytes,2,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *ModelInferRequest_InferRequestedOutputTensor) Reset() { + *x = ModelInferRequest_InferRequestedOutputTensor{} + if protoimpl.UnsafeEnabled { + mi := &file_ssn_predictservice_v1_predictservice_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ModelInferRequest_InferRequestedOutputTensor) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ModelInferRequest_InferRequestedOutputTensor) ProtoMessage() {} + +func (x *ModelInferRequest_InferRequestedOutputTensor) ProtoReflect() protoreflect.Message { + mi := &file_ssn_predictservice_v1_predictservice_proto_msgTypes[5] + 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 ModelInferRequest_InferRequestedOutputTensor.ProtoReflect.Descriptor instead. +func (*ModelInferRequest_InferRequestedOutputTensor) Descriptor() ([]byte, []int) { + return file_ssn_predictservice_v1_predictservice_proto_rawDescGZIP(), []int{2, 1} +} + +func (x *ModelInferRequest_InferRequestedOutputTensor) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ModelInferRequest_InferRequestedOutputTensor) GetParameters() map[string]*InferParameter { + if x != nil { + return x.Parameters + } + return nil +} + +type ModelInferResponse_InferOutputTensor struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Datatype string `protobuf:"bytes,2,opt,name=datatype,proto3" json:"datatype,omitempty"` + Shape []int64 `protobuf:"varint,3,rep,packed,name=shape,proto3" json:"shape,omitempty"` + Parameters map[string]*InferParameter `protobuf:"bytes,4,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Contents *InferTensorContents `protobuf:"bytes,5,opt,name=contents,proto3" json:"contents,omitempty"` +} + +func (x *ModelInferResponse_InferOutputTensor) Reset() { + *x = ModelInferResponse_InferOutputTensor{} + if protoimpl.UnsafeEnabled { + mi := &file_ssn_predictservice_v1_predictservice_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ModelInferResponse_InferOutputTensor) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ModelInferResponse_InferOutputTensor) ProtoMessage() {} + +func (x *ModelInferResponse_InferOutputTensor) ProtoReflect() protoreflect.Message { + mi := &file_ssn_predictservice_v1_predictservice_proto_msgTypes[9] + 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 ModelInferResponse_InferOutputTensor.ProtoReflect.Descriptor instead. +func (*ModelInferResponse_InferOutputTensor) Descriptor() ([]byte, []int) { + return file_ssn_predictservice_v1_predictservice_proto_rawDescGZIP(), []int{3, 0} +} + +func (x *ModelInferResponse_InferOutputTensor) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ModelInferResponse_InferOutputTensor) GetDatatype() string { + if x != nil { + return x.Datatype + } + return "" +} + +func (x *ModelInferResponse_InferOutputTensor) GetShape() []int64 { + if x != nil { + return x.Shape + } + return nil +} + +func (x *ModelInferResponse_InferOutputTensor) GetParameters() map[string]*InferParameter { + if x != nil { + return x.Parameters + } + return nil +} + +func (x *ModelInferResponse_InferOutputTensor) GetContents() *InferTensorContents { + if x != nil { + return x.Contents + } + return nil +} + +var File_ssn_predictservice_v1_predictservice_proto protoreflect.FileDescriptor + +var file_ssn_predictservice_v1_predictservice_proto_rawDesc = []byte{ + 0x0a, 0x2a, 0x73, 0x73, 0x6e, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x73, 0x73, + 0x6e, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x2e, 0x76, 0x31, 0x22, 0xd7, 0x01, 0x0a, 0x0e, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x70, + 0x61, 0x72, 0x61, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, + 0x6f, 0x6c, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x21, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x36, 0x34, + 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0a, + 0x69, 0x6e, 0x74, 0x36, 0x34, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, + 0x23, 0x0a, 0x0c, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x12, 0x23, 0x0a, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x70, + 0x61, 0x72, 0x61, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x0b, 0x75, 0x69, + 0x6e, 0x74, 0x36, 0x34, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x42, 0x12, 0x0a, 0x10, 0x70, 0x61, 0x72, + 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x68, 0x6f, 0x69, 0x63, 0x65, 0x22, 0xc3, 0x02, + 0x0a, 0x13, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x43, 0x6f, 0x6e, + 0x74, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x63, 0x6f, + 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x08, 0x52, 0x0c, 0x62, 0x6f, + 0x6f, 0x6c, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x6e, + 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x05, + 0x52, 0x0b, 0x69, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x25, 0x0a, + 0x0e, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, + 0x03, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x43, 0x6f, 0x6e, 0x74, + 0x65, 0x6e, 0x74, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x75, 0x69, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, + 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0c, 0x75, 0x69, 0x6e, + 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x75, 0x69, 0x6e, + 0x74, 0x36, 0x34, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, + 0x28, 0x04, 0x52, 0x0e, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, + 0x74, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x70, 0x33, 0x32, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, + 0x6e, 0x74, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x02, 0x52, 0x0c, 0x66, 0x70, 0x33, 0x32, 0x43, + 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x70, 0x36, 0x34, 0x5f, + 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x01, 0x52, 0x0c, + 0x66, 0x70, 0x36, 0x34, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x25, 0x0a, 0x0e, + 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x08, + 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0d, 0x62, 0x79, 0x74, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x65, + 0x6e, 0x74, 0x73, 0x22, 0x89, 0x09, 0x0a, 0x11, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x49, 0x6e, 0x66, + 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x6f, 0x64, + 0x65, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, + 0x6f, 0x64, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x6f, 0x64, 0x65, + 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x58, 0x0a, + 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x38, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x49, + 0x6e, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x70, 0x61, 0x72, + 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x51, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, + 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x70, 0x72, + 0x65, 0x64, 0x69, 0x63, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x2e, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x54, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x52, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, 0x5d, 0x0a, 0x07, 0x6f, 0x75, + 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x73, 0x73, + 0x6e, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x65, 0x64, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x52, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x72, 0x61, 0x77, + 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, + 0x07, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x10, 0x72, 0x61, 0x77, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x43, + 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0xf1, 0x02, 0x0a, 0x10, 0x49, 0x6e, 0x66, 0x65, + 0x72, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, + 0x73, 0x68, 0x61, 0x70, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x03, 0x52, 0x05, 0x73, 0x68, 0x61, + 0x70, 0x65, 0x12, 0x69, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, + 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x49, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x70, 0x72, 0x65, + 0x64, 0x69, 0x63, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, + 0x6f, 0x64, 0x65, 0x6c, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x2e, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x46, 0x0a, + 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2a, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x08, 0x63, 0x6f, 0x6e, + 0x74, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x64, 0x0a, 0x0f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, + 0x65, 0x72, 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, 0x3b, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x73, 0x73, 0x6e, 0x2e, + 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x8b, 0x02, 0x0a, 0x1a, + 0x49, 0x6e, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4f, 0x75, + 0x74, 0x70, 0x75, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x73, + 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x53, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, + 0x49, 0x6e, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x66, + 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4f, 0x75, 0x74, 0x70, 0x75, + 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, + 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, + 0x65, 0x72, 0x73, 0x1a, 0x64, 0x0a, 0x0f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, + 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, 0x3b, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x70, 0x72, + 0x65, 0x64, 0x69, 0x63, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x49, 0x6e, 0x66, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x64, 0x0a, 0x0f, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 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, 0x3b, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, + 0x73, 0x73, 0x6e, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x65, 0x74, 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, + 0xa7, 0x06, 0x0a, 0x12, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x6f, 0x64, 0x65, + 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6d, 0x6f, + 0x64, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x59, 0x0a, 0x0a, 0x70, 0x61, + 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, + 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x49, 0x6e, 0x66, 0x65, + 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, + 0x74, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, + 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x55, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, + 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x70, 0x72, 0x65, + 0x64, 0x69, 0x63, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, + 0x6f, 0x64, 0x65, 0x6c, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x2e, 0x0a, 0x13, + 0x72, 0x61, 0x77, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, + 0x6e, 0x74, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x11, 0x72, 0x61, 0x77, 0x4f, 0x75, + 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0xf4, 0x02, 0x0a, + 0x11, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x54, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, + 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x70, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x03, 0x52, 0x05, 0x73, 0x68, 0x61, 0x70, 0x65, 0x12, 0x6b, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, + 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x4b, 0x2e, 0x73, + 0x73, 0x6e, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x4f, 0x75, 0x74, + 0x70, 0x75, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, + 0x74, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, + 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x46, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, + 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x70, 0x72, + 0x65, 0x64, 0x69, 0x63, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x49, 0x6e, 0x66, 0x65, 0x72, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x65, + 0x6e, 0x74, 0x73, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x64, 0x0a, + 0x0f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 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, 0x3b, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x25, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x1a, 0x64, 0x0a, 0x0f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, + 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, 0x3b, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x70, 0x72, + 0x65, 0x64, 0x69, 0x63, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x49, 0x6e, 0x66, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x32, 0x70, 0x0a, 0x0e, 0x50, 0x72, 0x65, + 0x64, 0x69, 0x63, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5e, 0x0a, 0x07, 0x50, + 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x12, 0x28, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x70, 0x72, 0x65, + 0x64, 0x69, 0x63, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, + 0x6f, 0x64, 0x65, 0x6c, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x29, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x49, 0x6e, + 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xf5, 0x01, 0x0a, 0x1e, + 0x61, 0x69, 0x2e, 0x76, 0x69, 0x73, 0x6d, 0x61, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x70, 0x72, 0x65, + 0x64, 0x69, 0x63, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x13, + 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x48, 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, 0x73, 0x73, 0x6e, 0x2f, 0x70, + 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, + 0x3b, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, + 0x02, 0x03, 0x53, 0x50, 0x58, 0xaa, 0x02, 0x15, 0x53, 0x73, 0x6e, 0x2e, 0x50, 0x72, 0x65, 0x64, + 0x69, 0x63, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15, + 0x53, 0x73, 0x6e, 0x5c, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x21, 0x53, 0x73, 0x6e, 0x5c, 0x50, 0x72, 0x65, 0x64, + 0x69, 0x63, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x17, 0x53, 0x73, 0x6e, 0x3a, + 0x3a, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x3a, + 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ssn_predictservice_v1_predictservice_proto_rawDescOnce sync.Once + file_ssn_predictservice_v1_predictservice_proto_rawDescData = file_ssn_predictservice_v1_predictservice_proto_rawDesc +) + +func file_ssn_predictservice_v1_predictservice_proto_rawDescGZIP() []byte { + file_ssn_predictservice_v1_predictservice_proto_rawDescOnce.Do(func() { + file_ssn_predictservice_v1_predictservice_proto_rawDescData = protoimpl.X.CompressGZIP(file_ssn_predictservice_v1_predictservice_proto_rawDescData) + }) + return file_ssn_predictservice_v1_predictservice_proto_rawDescData +} + +var file_ssn_predictservice_v1_predictservice_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_ssn_predictservice_v1_predictservice_proto_goTypes = []interface{}{ + (*InferParameter)(nil), // 0: ssn.predictservice.v1.InferParameter + (*InferTensorContents)(nil), // 1: ssn.predictservice.v1.InferTensorContents + (*ModelInferRequest)(nil), // 2: ssn.predictservice.v1.ModelInferRequest + (*ModelInferResponse)(nil), // 3: ssn.predictservice.v1.ModelInferResponse + (*ModelInferRequest_InferInputTensor)(nil), // 4: ssn.predictservice.v1.ModelInferRequest.InferInputTensor + (*ModelInferRequest_InferRequestedOutputTensor)(nil), // 5: ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor + nil, // 6: ssn.predictservice.v1.ModelInferRequest.ParametersEntry + nil, // 7: ssn.predictservice.v1.ModelInferRequest.InferInputTensor.ParametersEntry + nil, // 8: ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.ParametersEntry + (*ModelInferResponse_InferOutputTensor)(nil), // 9: ssn.predictservice.v1.ModelInferResponse.InferOutputTensor + nil, // 10: ssn.predictservice.v1.ModelInferResponse.ParametersEntry + nil, // 11: ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.ParametersEntry +} +var file_ssn_predictservice_v1_predictservice_proto_depIdxs = []int32{ + 6, // 0: ssn.predictservice.v1.ModelInferRequest.parameters:type_name -> ssn.predictservice.v1.ModelInferRequest.ParametersEntry + 4, // 1: ssn.predictservice.v1.ModelInferRequest.inputs:type_name -> ssn.predictservice.v1.ModelInferRequest.InferInputTensor + 5, // 2: ssn.predictservice.v1.ModelInferRequest.outputs:type_name -> ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor + 10, // 3: ssn.predictservice.v1.ModelInferResponse.parameters:type_name -> ssn.predictservice.v1.ModelInferResponse.ParametersEntry + 9, // 4: ssn.predictservice.v1.ModelInferResponse.outputs:type_name -> ssn.predictservice.v1.ModelInferResponse.InferOutputTensor + 7, // 5: ssn.predictservice.v1.ModelInferRequest.InferInputTensor.parameters:type_name -> ssn.predictservice.v1.ModelInferRequest.InferInputTensor.ParametersEntry + 1, // 6: ssn.predictservice.v1.ModelInferRequest.InferInputTensor.contents:type_name -> ssn.predictservice.v1.InferTensorContents + 8, // 7: ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.parameters:type_name -> ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.ParametersEntry + 0, // 8: ssn.predictservice.v1.ModelInferRequest.ParametersEntry.value:type_name -> ssn.predictservice.v1.InferParameter + 0, // 9: ssn.predictservice.v1.ModelInferRequest.InferInputTensor.ParametersEntry.value:type_name -> ssn.predictservice.v1.InferParameter + 0, // 10: ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.ParametersEntry.value:type_name -> ssn.predictservice.v1.InferParameter + 11, // 11: ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.parameters:type_name -> ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.ParametersEntry + 1, // 12: ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.contents:type_name -> ssn.predictservice.v1.InferTensorContents + 0, // 13: ssn.predictservice.v1.ModelInferResponse.ParametersEntry.value:type_name -> ssn.predictservice.v1.InferParameter + 0, // 14: ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.ParametersEntry.value:type_name -> ssn.predictservice.v1.InferParameter + 2, // 15: ssn.predictservice.v1.PredictService.Predict:input_type -> ssn.predictservice.v1.ModelInferRequest + 3, // 16: ssn.predictservice.v1.PredictService.Predict:output_type -> ssn.predictservice.v1.ModelInferResponse + 16, // [16:17] is the sub-list for method output_type + 15, // [15:16] is the sub-list for method input_type + 15, // [15:15] is the sub-list for extension type_name + 15, // [15:15] is the sub-list for extension extendee + 0, // [0:15] is the sub-list for field type_name +} + +func init() { file_ssn_predictservice_v1_predictservice_proto_init() } +func file_ssn_predictservice_v1_predictservice_proto_init() { + if File_ssn_predictservice_v1_predictservice_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ssn_predictservice_v1_predictservice_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InferParameter); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ssn_predictservice_v1_predictservice_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InferTensorContents); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ssn_predictservice_v1_predictservice_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ModelInferRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ssn_predictservice_v1_predictservice_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ModelInferResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ssn_predictservice_v1_predictservice_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ModelInferRequest_InferInputTensor); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ssn_predictservice_v1_predictservice_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ModelInferRequest_InferRequestedOutputTensor); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ssn_predictservice_v1_predictservice_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ModelInferResponse_InferOutputTensor); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_ssn_predictservice_v1_predictservice_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*InferParameter_BoolParam)(nil), + (*InferParameter_Int64Param)(nil), + (*InferParameter_StringParam)(nil), + (*InferParameter_DoubleParam)(nil), + (*InferParameter_Uint64Param)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ssn_predictservice_v1_predictservice_proto_rawDesc, + NumEnums: 0, + NumMessages: 12, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_ssn_predictservice_v1_predictservice_proto_goTypes, + DependencyIndexes: file_ssn_predictservice_v1_predictservice_proto_depIdxs, + MessageInfos: file_ssn_predictservice_v1_predictservice_proto_msgTypes, + }.Build() + File_ssn_predictservice_v1_predictservice_proto = out.File + file_ssn_predictservice_v1_predictservice_proto_rawDesc = nil + file_ssn_predictservice_v1_predictservice_proto_goTypes = nil + file_ssn_predictservice_v1_predictservice_proto_depIdxs = nil +} diff --git a/gen/go/ssn/predictservice/v1/predictservice_grpc.pb.go b/gen/go/ssn/predictservice/v1/predictservice_grpc.pb.go new file mode 100644 index 00000000..38662196 --- /dev/null +++ b/gen/go/ssn/predictservice/v1/predictservice_grpc.pb.go @@ -0,0 +1,107 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: ssn/predictservice/v1/predictservice.proto + +package predictservice + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + PredictService_Predict_FullMethodName = "/ssn.predictservice.v1.PredictService/Predict" +) + +// PredictServiceClient is the client API for PredictService 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. +type PredictServiceClient interface { + Predict(ctx context.Context, in *ModelInferRequest, opts ...grpc.CallOption) (*ModelInferResponse, error) +} + +type predictServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewPredictServiceClient(cc grpc.ClientConnInterface) PredictServiceClient { + return &predictServiceClient{cc} +} + +func (c *predictServiceClient) Predict(ctx context.Context, in *ModelInferRequest, opts ...grpc.CallOption) (*ModelInferResponse, error) { + out := new(ModelInferResponse) + err := c.cc.Invoke(ctx, PredictService_Predict_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// PredictServiceServer is the server API for PredictService service. +// All implementations should embed UnimplementedPredictServiceServer +// for forward compatibility +type PredictServiceServer interface { + Predict(context.Context, *ModelInferRequest) (*ModelInferResponse, error) +} + +// UnimplementedPredictServiceServer should be embedded to have forward compatible implementations. +type UnimplementedPredictServiceServer struct { +} + +func (UnimplementedPredictServiceServer) Predict(context.Context, *ModelInferRequest) (*ModelInferResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Predict not implemented") +} + +// UnsafePredictServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to PredictServiceServer will +// result in compilation errors. +type UnsafePredictServiceServer interface { + mustEmbedUnimplementedPredictServiceServer() +} + +func RegisterPredictServiceServer(s grpc.ServiceRegistrar, srv PredictServiceServer) { + s.RegisterService(&PredictService_ServiceDesc, srv) +} + +func _PredictService_Predict_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ModelInferRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PredictServiceServer).Predict(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PredictService_Predict_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PredictServiceServer).Predict(ctx, req.(*ModelInferRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// PredictService_ServiceDesc is the grpc.ServiceDesc for PredictService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var PredictService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "ssn.predictservice.v1.PredictService", + HandlerType: (*PredictServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Predict", + Handler: _PredictService_Predict_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "ssn/predictservice/v1/predictservice.proto", +} diff --git a/gen/java/ai/visma/ssn/predictservice/v1/InferParameter.java b/gen/java/ai/visma/ssn/predictservice/v1/InferParameter.java new file mode 100644 index 00000000..43c287f0 --- /dev/null +++ b/gen/java/ai/visma/ssn/predictservice/v1/InferParameter.java @@ -0,0 +1,990 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: ssn/predictservice/v1/predictservice.proto +// Protobuf Java Version: 4.29.3 + +package ai.visma.ssn.predictservice.v1; + +/** + *
+ * https://github.com/triton-inference-server/common/blob/main/protobuf/grpc_service.proto
+ * 
+ * + * Protobuf type {@code ssn.predictservice.v1.InferParameter} + */ +public final class InferParameter extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:ssn.predictservice.v1.InferParameter) + InferParameterOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + InferParameter.class.getName()); + } + // Use InferParameter.newBuilder() to construct. + private InferParameter(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private InferParameter() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_InferParameter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_InferParameter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + ai.visma.ssn.predictservice.v1.InferParameter.class, ai.visma.ssn.predictservice.v1.InferParameter.Builder.class); + } + + private int parameterChoiceCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object parameterChoice_; + public enum ParameterChoiceCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + BOOL_PARAM(1), + INT64_PARAM(2), + STRING_PARAM(3), + DOUBLE_PARAM(4), + UINT64_PARAM(5), + PARAMETERCHOICE_NOT_SET(0); + private final int value; + private ParameterChoiceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ParameterChoiceCase valueOf(int value) { + return forNumber(value); + } + + public static ParameterChoiceCase forNumber(int value) { + switch (value) { + case 1: return BOOL_PARAM; + case 2: return INT64_PARAM; + case 3: return STRING_PARAM; + case 4: return DOUBLE_PARAM; + case 5: return UINT64_PARAM; + case 0: return PARAMETERCHOICE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ParameterChoiceCase + getParameterChoiceCase() { + return ParameterChoiceCase.forNumber( + parameterChoiceCase_); + } + + public static final int BOOL_PARAM_FIELD_NUMBER = 1; + /** + * bool bool_param = 1 [json_name = "boolParam"]; + * @return Whether the boolParam field is set. + */ + @java.lang.Override + public boolean hasBoolParam() { + return parameterChoiceCase_ == 1; + } + /** + * bool bool_param = 1 [json_name = "boolParam"]; + * @return The boolParam. + */ + @java.lang.Override + public boolean getBoolParam() { + if (parameterChoiceCase_ == 1) { + return (java.lang.Boolean) parameterChoice_; + } + return false; + } + + public static final int INT64_PARAM_FIELD_NUMBER = 2; + /** + * int64 int64_param = 2 [json_name = "int64Param"]; + * @return Whether the int64Param field is set. + */ + @java.lang.Override + public boolean hasInt64Param() { + return parameterChoiceCase_ == 2; + } + /** + * int64 int64_param = 2 [json_name = "int64Param"]; + * @return The int64Param. + */ + @java.lang.Override + public long getInt64Param() { + if (parameterChoiceCase_ == 2) { + return (java.lang.Long) parameterChoice_; + } + return 0L; + } + + public static final int STRING_PARAM_FIELD_NUMBER = 3; + /** + * string string_param = 3 [json_name = "stringParam"]; + * @return Whether the stringParam field is set. + */ + public boolean hasStringParam() { + return parameterChoiceCase_ == 3; + } + /** + * string string_param = 3 [json_name = "stringParam"]; + * @return The stringParam. + */ + public java.lang.String getStringParam() { + java.lang.Object ref = ""; + if (parameterChoiceCase_ == 3) { + ref = parameterChoice_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (parameterChoiceCase_ == 3) { + parameterChoice_ = s; + } + return s; + } + } + /** + * string string_param = 3 [json_name = "stringParam"]; + * @return The bytes for stringParam. + */ + public com.google.protobuf.ByteString + getStringParamBytes() { + java.lang.Object ref = ""; + if (parameterChoiceCase_ == 3) { + ref = parameterChoice_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (parameterChoiceCase_ == 3) { + parameterChoice_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOUBLE_PARAM_FIELD_NUMBER = 4; + /** + * double double_param = 4 [json_name = "doubleParam"]; + * @return Whether the doubleParam field is set. + */ + @java.lang.Override + public boolean hasDoubleParam() { + return parameterChoiceCase_ == 4; + } + /** + * double double_param = 4 [json_name = "doubleParam"]; + * @return The doubleParam. + */ + @java.lang.Override + public double getDoubleParam() { + if (parameterChoiceCase_ == 4) { + return (java.lang.Double) parameterChoice_; + } + return 0D; + } + + public static final int UINT64_PARAM_FIELD_NUMBER = 5; + /** + * uint64 uint64_param = 5 [json_name = "uint64Param"]; + * @return Whether the uint64Param field is set. + */ + @java.lang.Override + public boolean hasUint64Param() { + return parameterChoiceCase_ == 5; + } + /** + * uint64 uint64_param = 5 [json_name = "uint64Param"]; + * @return The uint64Param. + */ + @java.lang.Override + public long getUint64Param() { + if (parameterChoiceCase_ == 5) { + return (java.lang.Long) parameterChoice_; + } + return 0L; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (parameterChoiceCase_ == 1) { + output.writeBool( + 1, (boolean)((java.lang.Boolean) parameterChoice_)); + } + if (parameterChoiceCase_ == 2) { + output.writeInt64( + 2, (long)((java.lang.Long) parameterChoice_)); + } + if (parameterChoiceCase_ == 3) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, parameterChoice_); + } + if (parameterChoiceCase_ == 4) { + output.writeDouble( + 4, (double)((java.lang.Double) parameterChoice_)); + } + if (parameterChoiceCase_ == 5) { + output.writeUInt64( + 5, (long)((java.lang.Long) parameterChoice_)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (parameterChoiceCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 1, (boolean)((java.lang.Boolean) parameterChoice_)); + } + if (parameterChoiceCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 2, (long)((java.lang.Long) parameterChoice_)); + } + if (parameterChoiceCase_ == 3) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, parameterChoice_); + } + if (parameterChoiceCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize( + 4, (double)((java.lang.Double) parameterChoice_)); + } + if (parameterChoiceCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size( + 5, (long)((java.lang.Long) parameterChoice_)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof ai.visma.ssn.predictservice.v1.InferParameter)) { + return super.equals(obj); + } + ai.visma.ssn.predictservice.v1.InferParameter other = (ai.visma.ssn.predictservice.v1.InferParameter) obj; + + if (!getParameterChoiceCase().equals(other.getParameterChoiceCase())) return false; + switch (parameterChoiceCase_) { + case 1: + if (getBoolParam() + != other.getBoolParam()) return false; + break; + case 2: + if (getInt64Param() + != other.getInt64Param()) return false; + break; + case 3: + if (!getStringParam() + .equals(other.getStringParam())) return false; + break; + case 4: + if (java.lang.Double.doubleToLongBits(getDoubleParam()) + != java.lang.Double.doubleToLongBits( + other.getDoubleParam())) return false; + break; + case 5: + if (getUint64Param() + != other.getUint64Param()) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (parameterChoiceCase_) { + case 1: + hash = (37 * hash) + BOOL_PARAM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBoolParam()); + break; + case 2: + hash = (37 * hash) + INT64_PARAM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getInt64Param()); + break; + case 3: + hash = (37 * hash) + STRING_PARAM_FIELD_NUMBER; + hash = (53 * hash) + getStringParam().hashCode(); + break; + case 4: + hash = (37 * hash) + DOUBLE_PARAM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDoubleParam())); + break; + case 5: + hash = (37 * hash) + UINT64_PARAM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUint64Param()); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static ai.visma.ssn.predictservice.v1.InferParameter parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.predictservice.v1.InferParameter parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.predictservice.v1.InferParameter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.predictservice.v1.InferParameter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.predictservice.v1.InferParameter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.predictservice.v1.InferParameter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.predictservice.v1.InferParameter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static ai.visma.ssn.predictservice.v1.InferParameter parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static ai.visma.ssn.predictservice.v1.InferParameter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static ai.visma.ssn.predictservice.v1.InferParameter parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static ai.visma.ssn.predictservice.v1.InferParameter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static ai.visma.ssn.predictservice.v1.InferParameter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ai.visma.ssn.predictservice.v1.InferParameter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * https://github.com/triton-inference-server/common/blob/main/protobuf/grpc_service.proto
+   * 
+ * + * Protobuf type {@code ssn.predictservice.v1.InferParameter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:ssn.predictservice.v1.InferParameter) + ai.visma.ssn.predictservice.v1.InferParameterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_InferParameter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_InferParameter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + ai.visma.ssn.predictservice.v1.InferParameter.class, ai.visma.ssn.predictservice.v1.InferParameter.Builder.class); + } + + // Construct using ai.visma.ssn.predictservice.v1.InferParameter.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parameterChoiceCase_ = 0; + parameterChoice_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_InferParameter_descriptor; + } + + @java.lang.Override + public ai.visma.ssn.predictservice.v1.InferParameter getDefaultInstanceForType() { + return ai.visma.ssn.predictservice.v1.InferParameter.getDefaultInstance(); + } + + @java.lang.Override + public ai.visma.ssn.predictservice.v1.InferParameter build() { + ai.visma.ssn.predictservice.v1.InferParameter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public ai.visma.ssn.predictservice.v1.InferParameter buildPartial() { + ai.visma.ssn.predictservice.v1.InferParameter result = new ai.visma.ssn.predictservice.v1.InferParameter(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(ai.visma.ssn.predictservice.v1.InferParameter result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(ai.visma.ssn.predictservice.v1.InferParameter result) { + result.parameterChoiceCase_ = parameterChoiceCase_; + result.parameterChoice_ = this.parameterChoice_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof ai.visma.ssn.predictservice.v1.InferParameter) { + return mergeFrom((ai.visma.ssn.predictservice.v1.InferParameter)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(ai.visma.ssn.predictservice.v1.InferParameter other) { + if (other == ai.visma.ssn.predictservice.v1.InferParameter.getDefaultInstance()) return this; + switch (other.getParameterChoiceCase()) { + case BOOL_PARAM: { + setBoolParam(other.getBoolParam()); + break; + } + case INT64_PARAM: { + setInt64Param(other.getInt64Param()); + break; + } + case STRING_PARAM: { + parameterChoiceCase_ = 3; + parameterChoice_ = other.parameterChoice_; + onChanged(); + break; + } + case DOUBLE_PARAM: { + setDoubleParam(other.getDoubleParam()); + break; + } + case UINT64_PARAM: { + setUint64Param(other.getUint64Param()); + break; + } + case PARAMETERCHOICE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + parameterChoice_ = input.readBool(); + parameterChoiceCase_ = 1; + break; + } // case 8 + case 16: { + parameterChoice_ = input.readInt64(); + parameterChoiceCase_ = 2; + break; + } // case 16 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + parameterChoiceCase_ = 3; + parameterChoice_ = s; + break; + } // case 26 + case 33: { + parameterChoice_ = input.readDouble(); + parameterChoiceCase_ = 4; + break; + } // case 33 + case 40: { + parameterChoice_ = input.readUInt64(); + parameterChoiceCase_ = 5; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int parameterChoiceCase_ = 0; + private java.lang.Object parameterChoice_; + public ParameterChoiceCase + getParameterChoiceCase() { + return ParameterChoiceCase.forNumber( + parameterChoiceCase_); + } + + public Builder clearParameterChoice() { + parameterChoiceCase_ = 0; + parameterChoice_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * bool bool_param = 1 [json_name = "boolParam"]; + * @return Whether the boolParam field is set. + */ + public boolean hasBoolParam() { + return parameterChoiceCase_ == 1; + } + /** + * bool bool_param = 1 [json_name = "boolParam"]; + * @return The boolParam. + */ + public boolean getBoolParam() { + if (parameterChoiceCase_ == 1) { + return (java.lang.Boolean) parameterChoice_; + } + return false; + } + /** + * bool bool_param = 1 [json_name = "boolParam"]; + * @param value The boolParam to set. + * @return This builder for chaining. + */ + public Builder setBoolParam(boolean value) { + + parameterChoiceCase_ = 1; + parameterChoice_ = value; + onChanged(); + return this; + } + /** + * bool bool_param = 1 [json_name = "boolParam"]; + * @return This builder for chaining. + */ + public Builder clearBoolParam() { + if (parameterChoiceCase_ == 1) { + parameterChoiceCase_ = 0; + parameterChoice_ = null; + onChanged(); + } + return this; + } + + /** + * int64 int64_param = 2 [json_name = "int64Param"]; + * @return Whether the int64Param field is set. + */ + public boolean hasInt64Param() { + return parameterChoiceCase_ == 2; + } + /** + * int64 int64_param = 2 [json_name = "int64Param"]; + * @return The int64Param. + */ + public long getInt64Param() { + if (parameterChoiceCase_ == 2) { + return (java.lang.Long) parameterChoice_; + } + return 0L; + } + /** + * int64 int64_param = 2 [json_name = "int64Param"]; + * @param value The int64Param to set. + * @return This builder for chaining. + */ + public Builder setInt64Param(long value) { + + parameterChoiceCase_ = 2; + parameterChoice_ = value; + onChanged(); + return this; + } + /** + * int64 int64_param = 2 [json_name = "int64Param"]; + * @return This builder for chaining. + */ + public Builder clearInt64Param() { + if (parameterChoiceCase_ == 2) { + parameterChoiceCase_ = 0; + parameterChoice_ = null; + onChanged(); + } + return this; + } + + /** + * string string_param = 3 [json_name = "stringParam"]; + * @return Whether the stringParam field is set. + */ + @java.lang.Override + public boolean hasStringParam() { + return parameterChoiceCase_ == 3; + } + /** + * string string_param = 3 [json_name = "stringParam"]; + * @return The stringParam. + */ + @java.lang.Override + public java.lang.String getStringParam() { + java.lang.Object ref = ""; + if (parameterChoiceCase_ == 3) { + ref = parameterChoice_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (parameterChoiceCase_ == 3) { + parameterChoice_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string string_param = 3 [json_name = "stringParam"]; + * @return The bytes for stringParam. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getStringParamBytes() { + java.lang.Object ref = ""; + if (parameterChoiceCase_ == 3) { + ref = parameterChoice_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (parameterChoiceCase_ == 3) { + parameterChoice_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string string_param = 3 [json_name = "stringParam"]; + * @param value The stringParam to set. + * @return This builder for chaining. + */ + public Builder setStringParam( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + parameterChoiceCase_ = 3; + parameterChoice_ = value; + onChanged(); + return this; + } + /** + * string string_param = 3 [json_name = "stringParam"]; + * @return This builder for chaining. + */ + public Builder clearStringParam() { + if (parameterChoiceCase_ == 3) { + parameterChoiceCase_ = 0; + parameterChoice_ = null; + onChanged(); + } + return this; + } + /** + * string string_param = 3 [json_name = "stringParam"]; + * @param value The bytes for stringParam to set. + * @return This builder for chaining. + */ + public Builder setStringParamBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + parameterChoiceCase_ = 3; + parameterChoice_ = value; + onChanged(); + return this; + } + + /** + * double double_param = 4 [json_name = "doubleParam"]; + * @return Whether the doubleParam field is set. + */ + public boolean hasDoubleParam() { + return parameterChoiceCase_ == 4; + } + /** + * double double_param = 4 [json_name = "doubleParam"]; + * @return The doubleParam. + */ + public double getDoubleParam() { + if (parameterChoiceCase_ == 4) { + return (java.lang.Double) parameterChoice_; + } + return 0D; + } + /** + * double double_param = 4 [json_name = "doubleParam"]; + * @param value The doubleParam to set. + * @return This builder for chaining. + */ + public Builder setDoubleParam(double value) { + + parameterChoiceCase_ = 4; + parameterChoice_ = value; + onChanged(); + return this; + } + /** + * double double_param = 4 [json_name = "doubleParam"]; + * @return This builder for chaining. + */ + public Builder clearDoubleParam() { + if (parameterChoiceCase_ == 4) { + parameterChoiceCase_ = 0; + parameterChoice_ = null; + onChanged(); + } + return this; + } + + /** + * uint64 uint64_param = 5 [json_name = "uint64Param"]; + * @return Whether the uint64Param field is set. + */ + public boolean hasUint64Param() { + return parameterChoiceCase_ == 5; + } + /** + * uint64 uint64_param = 5 [json_name = "uint64Param"]; + * @return The uint64Param. + */ + public long getUint64Param() { + if (parameterChoiceCase_ == 5) { + return (java.lang.Long) parameterChoice_; + } + return 0L; + } + /** + * uint64 uint64_param = 5 [json_name = "uint64Param"]; + * @param value The uint64Param to set. + * @return This builder for chaining. + */ + public Builder setUint64Param(long value) { + + parameterChoiceCase_ = 5; + parameterChoice_ = value; + onChanged(); + return this; + } + /** + * uint64 uint64_param = 5 [json_name = "uint64Param"]; + * @return This builder for chaining. + */ + public Builder clearUint64Param() { + if (parameterChoiceCase_ == 5) { + parameterChoiceCase_ = 0; + parameterChoice_ = null; + onChanged(); + } + return this; + } + + // @@protoc_insertion_point(builder_scope:ssn.predictservice.v1.InferParameter) + } + + // @@protoc_insertion_point(class_scope:ssn.predictservice.v1.InferParameter) + private static final ai.visma.ssn.predictservice.v1.InferParameter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new ai.visma.ssn.predictservice.v1.InferParameter(); + } + + public static ai.visma.ssn.predictservice.v1.InferParameter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InferParameter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public ai.visma.ssn.predictservice.v1.InferParameter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/gen/java/ai/visma/ssn/predictservice/v1/InferParameterOrBuilder.java b/gen/java/ai/visma/ssn/predictservice/v1/InferParameterOrBuilder.java new file mode 100644 index 00000000..3985ccd6 --- /dev/null +++ b/gen/java/ai/visma/ssn/predictservice/v1/InferParameterOrBuilder.java @@ -0,0 +1,74 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: ssn/predictservice/v1/predictservice.proto +// Protobuf Java Version: 4.29.3 + +package ai.visma.ssn.predictservice.v1; + +public interface InferParameterOrBuilder extends + // @@protoc_insertion_point(interface_extends:ssn.predictservice.v1.InferParameter) + com.google.protobuf.MessageOrBuilder { + + /** + * bool bool_param = 1 [json_name = "boolParam"]; + * @return Whether the boolParam field is set. + */ + boolean hasBoolParam(); + /** + * bool bool_param = 1 [json_name = "boolParam"]; + * @return The boolParam. + */ + boolean getBoolParam(); + + /** + * int64 int64_param = 2 [json_name = "int64Param"]; + * @return Whether the int64Param field is set. + */ + boolean hasInt64Param(); + /** + * int64 int64_param = 2 [json_name = "int64Param"]; + * @return The int64Param. + */ + long getInt64Param(); + + /** + * string string_param = 3 [json_name = "stringParam"]; + * @return Whether the stringParam field is set. + */ + boolean hasStringParam(); + /** + * string string_param = 3 [json_name = "stringParam"]; + * @return The stringParam. + */ + java.lang.String getStringParam(); + /** + * string string_param = 3 [json_name = "stringParam"]; + * @return The bytes for stringParam. + */ + com.google.protobuf.ByteString + getStringParamBytes(); + + /** + * double double_param = 4 [json_name = "doubleParam"]; + * @return Whether the doubleParam field is set. + */ + boolean hasDoubleParam(); + /** + * double double_param = 4 [json_name = "doubleParam"]; + * @return The doubleParam. + */ + double getDoubleParam(); + + /** + * uint64 uint64_param = 5 [json_name = "uint64Param"]; + * @return Whether the uint64Param field is set. + */ + boolean hasUint64Param(); + /** + * uint64 uint64_param = 5 [json_name = "uint64Param"]; + * @return The uint64Param. + */ + long getUint64Param(); + + ai.visma.ssn.predictservice.v1.InferParameter.ParameterChoiceCase getParameterChoiceCase(); +} diff --git a/gen/java/ai/visma/ssn/predictservice/v1/InferTensorContents.java b/gen/java/ai/visma/ssn/predictservice/v1/InferTensorContents.java new file mode 100644 index 00000000..d41cb8c3 --- /dev/null +++ b/gen/java/ai/visma/ssn/predictservice/v1/InferTensorContents.java @@ -0,0 +1,1750 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: ssn/predictservice/v1/predictservice.proto +// Protobuf Java Version: 4.29.3 + +package ai.visma.ssn.predictservice.v1; + +/** + * Protobuf type {@code ssn.predictservice.v1.InferTensorContents} + */ +public final class InferTensorContents extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:ssn.predictservice.v1.InferTensorContents) + InferTensorContentsOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + InferTensorContents.class.getName()); + } + // Use InferTensorContents.newBuilder() to construct. + private InferTensorContents(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private InferTensorContents() { + boolContents_ = emptyBooleanList(); + intContents_ = emptyIntList(); + int64Contents_ = emptyLongList(); + uintContents_ = emptyIntList(); + uint64Contents_ = emptyLongList(); + fp32Contents_ = emptyFloatList(); + fp64Contents_ = emptyDoubleList(); + bytesContents_ = emptyList(com.google.protobuf.ByteString.class); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_InferTensorContents_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_InferTensorContents_fieldAccessorTable + .ensureFieldAccessorsInitialized( + ai.visma.ssn.predictservice.v1.InferTensorContents.class, ai.visma.ssn.predictservice.v1.InferTensorContents.Builder.class); + } + + public static final int BOOL_CONTENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.BooleanList boolContents_ = + emptyBooleanList(); + /** + * repeated bool bool_contents = 1 [json_name = "boolContents"]; + * @return A list containing the boolContents. + */ + @java.lang.Override + public java.util.List + getBoolContentsList() { + return boolContents_; + } + /** + * repeated bool bool_contents = 1 [json_name = "boolContents"]; + * @return The count of boolContents. + */ + public int getBoolContentsCount() { + return boolContents_.size(); + } + /** + * repeated bool bool_contents = 1 [json_name = "boolContents"]; + * @param index The index of the element to return. + * @return The boolContents at the given index. + */ + public boolean getBoolContents(int index) { + return boolContents_.getBoolean(index); + } + private int boolContentsMemoizedSerializedSize = -1; + + public static final int INT_CONTENTS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList intContents_ = + emptyIntList(); + /** + * repeated int32 int_contents = 2 [json_name = "intContents"]; + * @return A list containing the intContents. + */ + @java.lang.Override + public java.util.List + getIntContentsList() { + return intContents_; + } + /** + * repeated int32 int_contents = 2 [json_name = "intContents"]; + * @return The count of intContents. + */ + public int getIntContentsCount() { + return intContents_.size(); + } + /** + * repeated int32 int_contents = 2 [json_name = "intContents"]; + * @param index The index of the element to return. + * @return The intContents at the given index. + */ + public int getIntContents(int index) { + return intContents_.getInt(index); + } + private int intContentsMemoizedSerializedSize = -1; + + public static final int INT64_CONTENTS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.LongList int64Contents_ = + emptyLongList(); + /** + * repeated int64 int64_contents = 3 [json_name = "int64Contents"]; + * @return A list containing the int64Contents. + */ + @java.lang.Override + public java.util.List + getInt64ContentsList() { + return int64Contents_; + } + /** + * repeated int64 int64_contents = 3 [json_name = "int64Contents"]; + * @return The count of int64Contents. + */ + public int getInt64ContentsCount() { + return int64Contents_.size(); + } + /** + * repeated int64 int64_contents = 3 [json_name = "int64Contents"]; + * @param index The index of the element to return. + * @return The int64Contents at the given index. + */ + public long getInt64Contents(int index) { + return int64Contents_.getLong(index); + } + private int int64ContentsMemoizedSerializedSize = -1; + + public static final int UINT_CONTENTS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList uintContents_ = + emptyIntList(); + /** + * repeated uint32 uint_contents = 4 [json_name = "uintContents"]; + * @return A list containing the uintContents. + */ + @java.lang.Override + public java.util.List + getUintContentsList() { + return uintContents_; + } + /** + * repeated uint32 uint_contents = 4 [json_name = "uintContents"]; + * @return The count of uintContents. + */ + public int getUintContentsCount() { + return uintContents_.size(); + } + /** + * repeated uint32 uint_contents = 4 [json_name = "uintContents"]; + * @param index The index of the element to return. + * @return The uintContents at the given index. + */ + public int getUintContents(int index) { + return uintContents_.getInt(index); + } + private int uintContentsMemoizedSerializedSize = -1; + + public static final int UINT64_CONTENTS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.LongList uint64Contents_ = + emptyLongList(); + /** + * repeated uint64 uint64_contents = 5 [json_name = "uint64Contents"]; + * @return A list containing the uint64Contents. + */ + @java.lang.Override + public java.util.List + getUint64ContentsList() { + return uint64Contents_; + } + /** + * repeated uint64 uint64_contents = 5 [json_name = "uint64Contents"]; + * @return The count of uint64Contents. + */ + public int getUint64ContentsCount() { + return uint64Contents_.size(); + } + /** + * repeated uint64 uint64_contents = 5 [json_name = "uint64Contents"]; + * @param index The index of the element to return. + * @return The uint64Contents at the given index. + */ + public long getUint64Contents(int index) { + return uint64Contents_.getLong(index); + } + private int uint64ContentsMemoizedSerializedSize = -1; + + public static final int FP32_CONTENTS_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.FloatList fp32Contents_ = + emptyFloatList(); + /** + * repeated float fp32_contents = 6 [json_name = "fp32Contents"]; + * @return A list containing the fp32Contents. + */ + @java.lang.Override + public java.util.List + getFp32ContentsList() { + return fp32Contents_; + } + /** + * repeated float fp32_contents = 6 [json_name = "fp32Contents"]; + * @return The count of fp32Contents. + */ + public int getFp32ContentsCount() { + return fp32Contents_.size(); + } + /** + * repeated float fp32_contents = 6 [json_name = "fp32Contents"]; + * @param index The index of the element to return. + * @return The fp32Contents at the given index. + */ + public float getFp32Contents(int index) { + return fp32Contents_.getFloat(index); + } + private int fp32ContentsMemoizedSerializedSize = -1; + + public static final int FP64_CONTENTS_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.DoubleList fp64Contents_ = + emptyDoubleList(); + /** + * repeated double fp64_contents = 7 [json_name = "fp64Contents"]; + * @return A list containing the fp64Contents. + */ + @java.lang.Override + public java.util.List + getFp64ContentsList() { + return fp64Contents_; + } + /** + * repeated double fp64_contents = 7 [json_name = "fp64Contents"]; + * @return The count of fp64Contents. + */ + public int getFp64ContentsCount() { + return fp64Contents_.size(); + } + /** + * repeated double fp64_contents = 7 [json_name = "fp64Contents"]; + * @param index The index of the element to return. + * @return The fp64Contents at the given index. + */ + public double getFp64Contents(int index) { + return fp64Contents_.getDouble(index); + } + private int fp64ContentsMemoizedSerializedSize = -1; + + public static final int BYTES_CONTENTS_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.ProtobufList bytesContents_ = + emptyList(com.google.protobuf.ByteString.class); + /** + * repeated bytes bytes_contents = 8 [json_name = "bytesContents"]; + * @return A list containing the bytesContents. + */ + @java.lang.Override + public java.util.List + getBytesContentsList() { + return bytesContents_; + } + /** + * repeated bytes bytes_contents = 8 [json_name = "bytesContents"]; + * @return The count of bytesContents. + */ + public int getBytesContentsCount() { + return bytesContents_.size(); + } + /** + * repeated bytes bytes_contents = 8 [json_name = "bytesContents"]; + * @param index The index of the element to return. + * @return The bytesContents at the given index. + */ + public com.google.protobuf.ByteString getBytesContents(int index) { + return bytesContents_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (getBoolContentsList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(boolContentsMemoizedSerializedSize); + } + for (int i = 0; i < boolContents_.size(); i++) { + output.writeBoolNoTag(boolContents_.getBoolean(i)); + } + if (getIntContentsList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(intContentsMemoizedSerializedSize); + } + for (int i = 0; i < intContents_.size(); i++) { + output.writeInt32NoTag(intContents_.getInt(i)); + } + if (getInt64ContentsList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(int64ContentsMemoizedSerializedSize); + } + for (int i = 0; i < int64Contents_.size(); i++) { + output.writeInt64NoTag(int64Contents_.getLong(i)); + } + if (getUintContentsList().size() > 0) { + output.writeUInt32NoTag(34); + output.writeUInt32NoTag(uintContentsMemoizedSerializedSize); + } + for (int i = 0; i < uintContents_.size(); i++) { + output.writeUInt32NoTag(uintContents_.getInt(i)); + } + if (getUint64ContentsList().size() > 0) { + output.writeUInt32NoTag(42); + output.writeUInt32NoTag(uint64ContentsMemoizedSerializedSize); + } + for (int i = 0; i < uint64Contents_.size(); i++) { + output.writeUInt64NoTag(uint64Contents_.getLong(i)); + } + if (getFp32ContentsList().size() > 0) { + output.writeUInt32NoTag(50); + output.writeUInt32NoTag(fp32ContentsMemoizedSerializedSize); + } + for (int i = 0; i < fp32Contents_.size(); i++) { + output.writeFloatNoTag(fp32Contents_.getFloat(i)); + } + if (getFp64ContentsList().size() > 0) { + output.writeUInt32NoTag(58); + output.writeUInt32NoTag(fp64ContentsMemoizedSerializedSize); + } + for (int i = 0; i < fp64Contents_.size(); i++) { + output.writeDoubleNoTag(fp64Contents_.getDouble(i)); + } + for (int i = 0; i < bytesContents_.size(); i++) { + output.writeBytes(8, bytesContents_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + dataSize = 1 * getBoolContentsList().size(); + size += dataSize; + if (!getBoolContentsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + boolContentsMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < intContents_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(intContents_.getInt(i)); + } + size += dataSize; + if (!getIntContentsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + intContentsMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < int64Contents_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt64SizeNoTag(int64Contents_.getLong(i)); + } + size += dataSize; + if (!getInt64ContentsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + int64ContentsMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < uintContents_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(uintContents_.getInt(i)); + } + size += dataSize; + if (!getUintContentsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + uintContentsMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < uint64Contents_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt64SizeNoTag(uint64Contents_.getLong(i)); + } + size += dataSize; + if (!getUint64ContentsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + uint64ContentsMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 4 * getFp32ContentsList().size(); + size += dataSize; + if (!getFp32ContentsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + fp32ContentsMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getFp64ContentsList().size(); + size += dataSize; + if (!getFp64ContentsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + fp64ContentsMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < bytesContents_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(bytesContents_.get(i)); + } + size += dataSize; + size += 1 * getBytesContentsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof ai.visma.ssn.predictservice.v1.InferTensorContents)) { + return super.equals(obj); + } + ai.visma.ssn.predictservice.v1.InferTensorContents other = (ai.visma.ssn.predictservice.v1.InferTensorContents) obj; + + if (!getBoolContentsList() + .equals(other.getBoolContentsList())) return false; + if (!getIntContentsList() + .equals(other.getIntContentsList())) return false; + if (!getInt64ContentsList() + .equals(other.getInt64ContentsList())) return false; + if (!getUintContentsList() + .equals(other.getUintContentsList())) return false; + if (!getUint64ContentsList() + .equals(other.getUint64ContentsList())) return false; + if (!getFp32ContentsList() + .equals(other.getFp32ContentsList())) return false; + if (!getFp64ContentsList() + .equals(other.getFp64ContentsList())) return false; + if (!getBytesContentsList() + .equals(other.getBytesContentsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getBoolContentsCount() > 0) { + hash = (37 * hash) + BOOL_CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getBoolContentsList().hashCode(); + } + if (getIntContentsCount() > 0) { + hash = (37 * hash) + INT_CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getIntContentsList().hashCode(); + } + if (getInt64ContentsCount() > 0) { + hash = (37 * hash) + INT64_CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getInt64ContentsList().hashCode(); + } + if (getUintContentsCount() > 0) { + hash = (37 * hash) + UINT_CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getUintContentsList().hashCode(); + } + if (getUint64ContentsCount() > 0) { + hash = (37 * hash) + UINT64_CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getUint64ContentsList().hashCode(); + } + if (getFp32ContentsCount() > 0) { + hash = (37 * hash) + FP32_CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getFp32ContentsList().hashCode(); + } + if (getFp64ContentsCount() > 0) { + hash = (37 * hash) + FP64_CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getFp64ContentsList().hashCode(); + } + if (getBytesContentsCount() > 0) { + hash = (37 * hash) + BYTES_CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getBytesContentsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static ai.visma.ssn.predictservice.v1.InferTensorContents parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.predictservice.v1.InferTensorContents parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.predictservice.v1.InferTensorContents parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.predictservice.v1.InferTensorContents parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.predictservice.v1.InferTensorContents parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.predictservice.v1.InferTensorContents parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.predictservice.v1.InferTensorContents parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static ai.visma.ssn.predictservice.v1.InferTensorContents parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static ai.visma.ssn.predictservice.v1.InferTensorContents parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static ai.visma.ssn.predictservice.v1.InferTensorContents parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static ai.visma.ssn.predictservice.v1.InferTensorContents parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static ai.visma.ssn.predictservice.v1.InferTensorContents parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ai.visma.ssn.predictservice.v1.InferTensorContents prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code ssn.predictservice.v1.InferTensorContents} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:ssn.predictservice.v1.InferTensorContents) + ai.visma.ssn.predictservice.v1.InferTensorContentsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_InferTensorContents_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_InferTensorContents_fieldAccessorTable + .ensureFieldAccessorsInitialized( + ai.visma.ssn.predictservice.v1.InferTensorContents.class, ai.visma.ssn.predictservice.v1.InferTensorContents.Builder.class); + } + + // Construct using ai.visma.ssn.predictservice.v1.InferTensorContents.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + boolContents_ = emptyBooleanList(); + intContents_ = emptyIntList(); + int64Contents_ = emptyLongList(); + uintContents_ = emptyIntList(); + uint64Contents_ = emptyLongList(); + fp32Contents_ = emptyFloatList(); + fp64Contents_ = emptyDoubleList(); + bytesContents_ = emptyList(com.google.protobuf.ByteString.class); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_InferTensorContents_descriptor; + } + + @java.lang.Override + public ai.visma.ssn.predictservice.v1.InferTensorContents getDefaultInstanceForType() { + return ai.visma.ssn.predictservice.v1.InferTensorContents.getDefaultInstance(); + } + + @java.lang.Override + public ai.visma.ssn.predictservice.v1.InferTensorContents build() { + ai.visma.ssn.predictservice.v1.InferTensorContents result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public ai.visma.ssn.predictservice.v1.InferTensorContents buildPartial() { + ai.visma.ssn.predictservice.v1.InferTensorContents result = new ai.visma.ssn.predictservice.v1.InferTensorContents(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(ai.visma.ssn.predictservice.v1.InferTensorContents result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + boolContents_.makeImmutable(); + result.boolContents_ = boolContents_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + intContents_.makeImmutable(); + result.intContents_ = intContents_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + int64Contents_.makeImmutable(); + result.int64Contents_ = int64Contents_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + uintContents_.makeImmutable(); + result.uintContents_ = uintContents_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + uint64Contents_.makeImmutable(); + result.uint64Contents_ = uint64Contents_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + fp32Contents_.makeImmutable(); + result.fp32Contents_ = fp32Contents_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + fp64Contents_.makeImmutable(); + result.fp64Contents_ = fp64Contents_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + bytesContents_.makeImmutable(); + result.bytesContents_ = bytesContents_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof ai.visma.ssn.predictservice.v1.InferTensorContents) { + return mergeFrom((ai.visma.ssn.predictservice.v1.InferTensorContents)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(ai.visma.ssn.predictservice.v1.InferTensorContents other) { + if (other == ai.visma.ssn.predictservice.v1.InferTensorContents.getDefaultInstance()) return this; + if (!other.boolContents_.isEmpty()) { + if (boolContents_.isEmpty()) { + boolContents_ = other.boolContents_; + boolContents_.makeImmutable(); + bitField0_ |= 0x00000001; + } else { + ensureBoolContentsIsMutable(); + boolContents_.addAll(other.boolContents_); + } + onChanged(); + } + if (!other.intContents_.isEmpty()) { + if (intContents_.isEmpty()) { + intContents_ = other.intContents_; + intContents_.makeImmutable(); + bitField0_ |= 0x00000002; + } else { + ensureIntContentsIsMutable(); + intContents_.addAll(other.intContents_); + } + onChanged(); + } + if (!other.int64Contents_.isEmpty()) { + if (int64Contents_.isEmpty()) { + int64Contents_ = other.int64Contents_; + int64Contents_.makeImmutable(); + bitField0_ |= 0x00000004; + } else { + ensureInt64ContentsIsMutable(); + int64Contents_.addAll(other.int64Contents_); + } + onChanged(); + } + if (!other.uintContents_.isEmpty()) { + if (uintContents_.isEmpty()) { + uintContents_ = other.uintContents_; + uintContents_.makeImmutable(); + bitField0_ |= 0x00000008; + } else { + ensureUintContentsIsMutable(); + uintContents_.addAll(other.uintContents_); + } + onChanged(); + } + if (!other.uint64Contents_.isEmpty()) { + if (uint64Contents_.isEmpty()) { + uint64Contents_ = other.uint64Contents_; + uint64Contents_.makeImmutable(); + bitField0_ |= 0x00000010; + } else { + ensureUint64ContentsIsMutable(); + uint64Contents_.addAll(other.uint64Contents_); + } + onChanged(); + } + if (!other.fp32Contents_.isEmpty()) { + if (fp32Contents_.isEmpty()) { + fp32Contents_ = other.fp32Contents_; + fp32Contents_.makeImmutable(); + bitField0_ |= 0x00000020; + } else { + ensureFp32ContentsIsMutable(); + fp32Contents_.addAll(other.fp32Contents_); + } + onChanged(); + } + if (!other.fp64Contents_.isEmpty()) { + if (fp64Contents_.isEmpty()) { + fp64Contents_ = other.fp64Contents_; + fp64Contents_.makeImmutable(); + bitField0_ |= 0x00000040; + } else { + ensureFp64ContentsIsMutable(); + fp64Contents_.addAll(other.fp64Contents_); + } + onChanged(); + } + if (!other.bytesContents_.isEmpty()) { + if (bytesContents_.isEmpty()) { + bytesContents_ = other.bytesContents_; + bytesContents_.makeImmutable(); + bitField0_ |= 0x00000080; + } else { + ensureBytesContentsIsMutable(); + bytesContents_.addAll(other.bytesContents_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + boolean v = input.readBool(); + ensureBoolContentsIsMutable(); + boolContents_.addBoolean(v); + break; + } // case 8 + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + int alloc = length > 4096 ? 4096 : length; + ensureBoolContentsIsMutable(alloc / 1); + while (input.getBytesUntilLimit() > 0) { + boolContents_.addBoolean(input.readBool()); + } + input.popLimit(limit); + break; + } // case 10 + case 16: { + int v = input.readInt32(); + ensureIntContentsIsMutable(); + intContents_.addInt(v); + break; + } // case 16 + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureIntContentsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + intContents_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } // case 18 + case 24: { + long v = input.readInt64(); + ensureInt64ContentsIsMutable(); + int64Contents_.addLong(v); + break; + } // case 24 + case 26: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureInt64ContentsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + int64Contents_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } // case 26 + case 32: { + int v = input.readUInt32(); + ensureUintContentsIsMutable(); + uintContents_.addInt(v); + break; + } // case 32 + case 34: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureUintContentsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + uintContents_.addInt(input.readUInt32()); + } + input.popLimit(limit); + break; + } // case 34 + case 40: { + long v = input.readUInt64(); + ensureUint64ContentsIsMutable(); + uint64Contents_.addLong(v); + break; + } // case 40 + case 42: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureUint64ContentsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + uint64Contents_.addLong(input.readUInt64()); + } + input.popLimit(limit); + break; + } // case 42 + case 53: { + float v = input.readFloat(); + ensureFp32ContentsIsMutable(); + fp32Contents_.addFloat(v); + break; + } // case 53 + case 50: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + int alloc = length > 4096 ? 4096 : length; + ensureFp32ContentsIsMutable(alloc / 4); + while (input.getBytesUntilLimit() > 0) { + fp32Contents_.addFloat(input.readFloat()); + } + input.popLimit(limit); + break; + } // case 50 + case 57: { + double v = input.readDouble(); + ensureFp64ContentsIsMutable(); + fp64Contents_.addDouble(v); + break; + } // case 57 + case 58: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + int alloc = length > 4096 ? 4096 : length; + ensureFp64ContentsIsMutable(alloc / 8); + while (input.getBytesUntilLimit() > 0) { + fp64Contents_.addDouble(input.readDouble()); + } + input.popLimit(limit); + break; + } // case 58 + case 66: { + com.google.protobuf.ByteString v = input.readBytes(); + ensureBytesContentsIsMutable(); + bytesContents_.add(v); + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.Internal.BooleanList boolContents_ = emptyBooleanList(); + private void ensureBoolContentsIsMutable() { + if (!boolContents_.isModifiable()) { + boolContents_ = makeMutableCopy(boolContents_); + } + bitField0_ |= 0x00000001; + } + private void ensureBoolContentsIsMutable(int capacity) { + if (!boolContents_.isModifiable()) { + boolContents_ = makeMutableCopy(boolContents_, capacity); + } + bitField0_ |= 0x00000001; + } + /** + * repeated bool bool_contents = 1 [json_name = "boolContents"]; + * @return A list containing the boolContents. + */ + public java.util.List + getBoolContentsList() { + boolContents_.makeImmutable(); + return boolContents_; + } + /** + * repeated bool bool_contents = 1 [json_name = "boolContents"]; + * @return The count of boolContents. + */ + public int getBoolContentsCount() { + return boolContents_.size(); + } + /** + * repeated bool bool_contents = 1 [json_name = "boolContents"]; + * @param index The index of the element to return. + * @return The boolContents at the given index. + */ + public boolean getBoolContents(int index) { + return boolContents_.getBoolean(index); + } + /** + * repeated bool bool_contents = 1 [json_name = "boolContents"]; + * @param index The index to set the value at. + * @param value The boolContents to set. + * @return This builder for chaining. + */ + public Builder setBoolContents( + int index, boolean value) { + + ensureBoolContentsIsMutable(); + boolContents_.setBoolean(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated bool bool_contents = 1 [json_name = "boolContents"]; + * @param value The boolContents to add. + * @return This builder for chaining. + */ + public Builder addBoolContents(boolean value) { + + ensureBoolContentsIsMutable(); + boolContents_.addBoolean(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated bool bool_contents = 1 [json_name = "boolContents"]; + * @param values The boolContents to add. + * @return This builder for chaining. + */ + public Builder addAllBoolContents( + java.lang.Iterable values) { + ensureBoolContentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, boolContents_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated bool bool_contents = 1 [json_name = "boolContents"]; + * @return This builder for chaining. + */ + public Builder clearBoolContents() { + boolContents_ = emptyBooleanList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList intContents_ = emptyIntList(); + private void ensureIntContentsIsMutable() { + if (!intContents_.isModifiable()) { + intContents_ = makeMutableCopy(intContents_); + } + bitField0_ |= 0x00000002; + } + /** + * repeated int32 int_contents = 2 [json_name = "intContents"]; + * @return A list containing the intContents. + */ + public java.util.List + getIntContentsList() { + intContents_.makeImmutable(); + return intContents_; + } + /** + * repeated int32 int_contents = 2 [json_name = "intContents"]; + * @return The count of intContents. + */ + public int getIntContentsCount() { + return intContents_.size(); + } + /** + * repeated int32 int_contents = 2 [json_name = "intContents"]; + * @param index The index of the element to return. + * @return The intContents at the given index. + */ + public int getIntContents(int index) { + return intContents_.getInt(index); + } + /** + * repeated int32 int_contents = 2 [json_name = "intContents"]; + * @param index The index to set the value at. + * @param value The intContents to set. + * @return This builder for chaining. + */ + public Builder setIntContents( + int index, int value) { + + ensureIntContentsIsMutable(); + intContents_.setInt(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated int32 int_contents = 2 [json_name = "intContents"]; + * @param value The intContents to add. + * @return This builder for chaining. + */ + public Builder addIntContents(int value) { + + ensureIntContentsIsMutable(); + intContents_.addInt(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated int32 int_contents = 2 [json_name = "intContents"]; + * @param values The intContents to add. + * @return This builder for chaining. + */ + public Builder addAllIntContents( + java.lang.Iterable values) { + ensureIntContentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, intContents_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated int32 int_contents = 2 [json_name = "intContents"]; + * @return This builder for chaining. + */ + public Builder clearIntContents() { + intContents_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + private com.google.protobuf.Internal.LongList int64Contents_ = emptyLongList(); + private void ensureInt64ContentsIsMutable() { + if (!int64Contents_.isModifiable()) { + int64Contents_ = makeMutableCopy(int64Contents_); + } + bitField0_ |= 0x00000004; + } + /** + * repeated int64 int64_contents = 3 [json_name = "int64Contents"]; + * @return A list containing the int64Contents. + */ + public java.util.List + getInt64ContentsList() { + int64Contents_.makeImmutable(); + return int64Contents_; + } + /** + * repeated int64 int64_contents = 3 [json_name = "int64Contents"]; + * @return The count of int64Contents. + */ + public int getInt64ContentsCount() { + return int64Contents_.size(); + } + /** + * repeated int64 int64_contents = 3 [json_name = "int64Contents"]; + * @param index The index of the element to return. + * @return The int64Contents at the given index. + */ + public long getInt64Contents(int index) { + return int64Contents_.getLong(index); + } + /** + * repeated int64 int64_contents = 3 [json_name = "int64Contents"]; + * @param index The index to set the value at. + * @param value The int64Contents to set. + * @return This builder for chaining. + */ + public Builder setInt64Contents( + int index, long value) { + + ensureInt64ContentsIsMutable(); + int64Contents_.setLong(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated int64 int64_contents = 3 [json_name = "int64Contents"]; + * @param value The int64Contents to add. + * @return This builder for chaining. + */ + public Builder addInt64Contents(long value) { + + ensureInt64ContentsIsMutable(); + int64Contents_.addLong(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated int64 int64_contents = 3 [json_name = "int64Contents"]; + * @param values The int64Contents to add. + * @return This builder for chaining. + */ + public Builder addAllInt64Contents( + java.lang.Iterable values) { + ensureInt64ContentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, int64Contents_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated int64 int64_contents = 3 [json_name = "int64Contents"]; + * @return This builder for chaining. + */ + public Builder clearInt64Contents() { + int64Contents_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList uintContents_ = emptyIntList(); + private void ensureUintContentsIsMutable() { + if (!uintContents_.isModifiable()) { + uintContents_ = makeMutableCopy(uintContents_); + } + bitField0_ |= 0x00000008; + } + /** + * repeated uint32 uint_contents = 4 [json_name = "uintContents"]; + * @return A list containing the uintContents. + */ + public java.util.List + getUintContentsList() { + uintContents_.makeImmutable(); + return uintContents_; + } + /** + * repeated uint32 uint_contents = 4 [json_name = "uintContents"]; + * @return The count of uintContents. + */ + public int getUintContentsCount() { + return uintContents_.size(); + } + /** + * repeated uint32 uint_contents = 4 [json_name = "uintContents"]; + * @param index The index of the element to return. + * @return The uintContents at the given index. + */ + public int getUintContents(int index) { + return uintContents_.getInt(index); + } + /** + * repeated uint32 uint_contents = 4 [json_name = "uintContents"]; + * @param index The index to set the value at. + * @param value The uintContents to set. + * @return This builder for chaining. + */ + public Builder setUintContents( + int index, int value) { + + ensureUintContentsIsMutable(); + uintContents_.setInt(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * repeated uint32 uint_contents = 4 [json_name = "uintContents"]; + * @param value The uintContents to add. + * @return This builder for chaining. + */ + public Builder addUintContents(int value) { + + ensureUintContentsIsMutable(); + uintContents_.addInt(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * repeated uint32 uint_contents = 4 [json_name = "uintContents"]; + * @param values The uintContents to add. + * @return This builder for chaining. + */ + public Builder addAllUintContents( + java.lang.Iterable values) { + ensureUintContentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, uintContents_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * repeated uint32 uint_contents = 4 [json_name = "uintContents"]; + * @return This builder for chaining. + */ + public Builder clearUintContents() { + uintContents_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + private com.google.protobuf.Internal.LongList uint64Contents_ = emptyLongList(); + private void ensureUint64ContentsIsMutable() { + if (!uint64Contents_.isModifiable()) { + uint64Contents_ = makeMutableCopy(uint64Contents_); + } + bitField0_ |= 0x00000010; + } + /** + * repeated uint64 uint64_contents = 5 [json_name = "uint64Contents"]; + * @return A list containing the uint64Contents. + */ + public java.util.List + getUint64ContentsList() { + uint64Contents_.makeImmutable(); + return uint64Contents_; + } + /** + * repeated uint64 uint64_contents = 5 [json_name = "uint64Contents"]; + * @return The count of uint64Contents. + */ + public int getUint64ContentsCount() { + return uint64Contents_.size(); + } + /** + * repeated uint64 uint64_contents = 5 [json_name = "uint64Contents"]; + * @param index The index of the element to return. + * @return The uint64Contents at the given index. + */ + public long getUint64Contents(int index) { + return uint64Contents_.getLong(index); + } + /** + * repeated uint64 uint64_contents = 5 [json_name = "uint64Contents"]; + * @param index The index to set the value at. + * @param value The uint64Contents to set. + * @return This builder for chaining. + */ + public Builder setUint64Contents( + int index, long value) { + + ensureUint64ContentsIsMutable(); + uint64Contents_.setLong(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * repeated uint64 uint64_contents = 5 [json_name = "uint64Contents"]; + * @param value The uint64Contents to add. + * @return This builder for chaining. + */ + public Builder addUint64Contents(long value) { + + ensureUint64ContentsIsMutable(); + uint64Contents_.addLong(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * repeated uint64 uint64_contents = 5 [json_name = "uint64Contents"]; + * @param values The uint64Contents to add. + * @return This builder for chaining. + */ + public Builder addAllUint64Contents( + java.lang.Iterable values) { + ensureUint64ContentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, uint64Contents_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * repeated uint64 uint64_contents = 5 [json_name = "uint64Contents"]; + * @return This builder for chaining. + */ + public Builder clearUint64Contents() { + uint64Contents_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + private com.google.protobuf.Internal.FloatList fp32Contents_ = emptyFloatList(); + private void ensureFp32ContentsIsMutable() { + if (!fp32Contents_.isModifiable()) { + fp32Contents_ = makeMutableCopy(fp32Contents_); + } + bitField0_ |= 0x00000020; + } + private void ensureFp32ContentsIsMutable(int capacity) { + if (!fp32Contents_.isModifiable()) { + fp32Contents_ = makeMutableCopy(fp32Contents_, capacity); + } + bitField0_ |= 0x00000020; + } + /** + * repeated float fp32_contents = 6 [json_name = "fp32Contents"]; + * @return A list containing the fp32Contents. + */ + public java.util.List + getFp32ContentsList() { + fp32Contents_.makeImmutable(); + return fp32Contents_; + } + /** + * repeated float fp32_contents = 6 [json_name = "fp32Contents"]; + * @return The count of fp32Contents. + */ + public int getFp32ContentsCount() { + return fp32Contents_.size(); + } + /** + * repeated float fp32_contents = 6 [json_name = "fp32Contents"]; + * @param index The index of the element to return. + * @return The fp32Contents at the given index. + */ + public float getFp32Contents(int index) { + return fp32Contents_.getFloat(index); + } + /** + * repeated float fp32_contents = 6 [json_name = "fp32Contents"]; + * @param index The index to set the value at. + * @param value The fp32Contents to set. + * @return This builder for chaining. + */ + public Builder setFp32Contents( + int index, float value) { + + ensureFp32ContentsIsMutable(); + fp32Contents_.setFloat(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * repeated float fp32_contents = 6 [json_name = "fp32Contents"]; + * @param value The fp32Contents to add. + * @return This builder for chaining. + */ + public Builder addFp32Contents(float value) { + + ensureFp32ContentsIsMutable(); + fp32Contents_.addFloat(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * repeated float fp32_contents = 6 [json_name = "fp32Contents"]; + * @param values The fp32Contents to add. + * @return This builder for chaining. + */ + public Builder addAllFp32Contents( + java.lang.Iterable values) { + ensureFp32ContentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fp32Contents_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * repeated float fp32_contents = 6 [json_name = "fp32Contents"]; + * @return This builder for chaining. + */ + public Builder clearFp32Contents() { + fp32Contents_ = emptyFloatList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + private com.google.protobuf.Internal.DoubleList fp64Contents_ = emptyDoubleList(); + private void ensureFp64ContentsIsMutable() { + if (!fp64Contents_.isModifiable()) { + fp64Contents_ = makeMutableCopy(fp64Contents_); + } + bitField0_ |= 0x00000040; + } + private void ensureFp64ContentsIsMutable(int capacity) { + if (!fp64Contents_.isModifiable()) { + fp64Contents_ = makeMutableCopy(fp64Contents_, capacity); + } + bitField0_ |= 0x00000040; + } + /** + * repeated double fp64_contents = 7 [json_name = "fp64Contents"]; + * @return A list containing the fp64Contents. + */ + public java.util.List + getFp64ContentsList() { + fp64Contents_.makeImmutable(); + return fp64Contents_; + } + /** + * repeated double fp64_contents = 7 [json_name = "fp64Contents"]; + * @return The count of fp64Contents. + */ + public int getFp64ContentsCount() { + return fp64Contents_.size(); + } + /** + * repeated double fp64_contents = 7 [json_name = "fp64Contents"]; + * @param index The index of the element to return. + * @return The fp64Contents at the given index. + */ + public double getFp64Contents(int index) { + return fp64Contents_.getDouble(index); + } + /** + * repeated double fp64_contents = 7 [json_name = "fp64Contents"]; + * @param index The index to set the value at. + * @param value The fp64Contents to set. + * @return This builder for chaining. + */ + public Builder setFp64Contents( + int index, double value) { + + ensureFp64ContentsIsMutable(); + fp64Contents_.setDouble(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * repeated double fp64_contents = 7 [json_name = "fp64Contents"]; + * @param value The fp64Contents to add. + * @return This builder for chaining. + */ + public Builder addFp64Contents(double value) { + + ensureFp64ContentsIsMutable(); + fp64Contents_.addDouble(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * repeated double fp64_contents = 7 [json_name = "fp64Contents"]; + * @param values The fp64Contents to add. + * @return This builder for chaining. + */ + public Builder addAllFp64Contents( + java.lang.Iterable values) { + ensureFp64ContentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fp64Contents_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * repeated double fp64_contents = 7 [json_name = "fp64Contents"]; + * @return This builder for chaining. + */ + public Builder clearFp64Contents() { + fp64Contents_ = emptyDoubleList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + private com.google.protobuf.Internal.ProtobufList bytesContents_ = emptyList(com.google.protobuf.ByteString.class); + private void ensureBytesContentsIsMutable() { + if (!bytesContents_.isModifiable()) { + bytesContents_ = makeMutableCopy(bytesContents_); + } + bitField0_ |= 0x00000080; + } + /** + * repeated bytes bytes_contents = 8 [json_name = "bytesContents"]; + * @return A list containing the bytesContents. + */ + public java.util.List + getBytesContentsList() { + bytesContents_.makeImmutable(); + return bytesContents_; + } + /** + * repeated bytes bytes_contents = 8 [json_name = "bytesContents"]; + * @return The count of bytesContents. + */ + public int getBytesContentsCount() { + return bytesContents_.size(); + } + /** + * repeated bytes bytes_contents = 8 [json_name = "bytesContents"]; + * @param index The index of the element to return. + * @return The bytesContents at the given index. + */ + public com.google.protobuf.ByteString getBytesContents(int index) { + return bytesContents_.get(index); + } + /** + * repeated bytes bytes_contents = 8 [json_name = "bytesContents"]; + * @param index The index to set the value at. + * @param value The bytesContents to set. + * @return This builder for chaining. + */ + public Builder setBytesContents( + int index, com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + ensureBytesContentsIsMutable(); + bytesContents_.set(index, value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * repeated bytes bytes_contents = 8 [json_name = "bytesContents"]; + * @param value The bytesContents to add. + * @return This builder for chaining. + */ + public Builder addBytesContents(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + ensureBytesContentsIsMutable(); + bytesContents_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * repeated bytes bytes_contents = 8 [json_name = "bytesContents"]; + * @param values The bytesContents to add. + * @return This builder for chaining. + */ + public Builder addAllBytesContents( + java.lang.Iterable values) { + ensureBytesContentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bytesContents_); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * repeated bytes bytes_contents = 8 [json_name = "bytesContents"]; + * @return This builder for chaining. + */ + public Builder clearBytesContents() { + bytesContents_ = emptyList(com.google.protobuf.ByteString.class); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:ssn.predictservice.v1.InferTensorContents) + } + + // @@protoc_insertion_point(class_scope:ssn.predictservice.v1.InferTensorContents) + private static final ai.visma.ssn.predictservice.v1.InferTensorContents DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new ai.visma.ssn.predictservice.v1.InferTensorContents(); + } + + public static ai.visma.ssn.predictservice.v1.InferTensorContents getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InferTensorContents parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public ai.visma.ssn.predictservice.v1.InferTensorContents getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/gen/java/ai/visma/ssn/predictservice/v1/InferTensorContentsOrBuilder.java b/gen/java/ai/visma/ssn/predictservice/v1/InferTensorContentsOrBuilder.java new file mode 100644 index 00000000..c18189e7 --- /dev/null +++ b/gen/java/ai/visma/ssn/predictservice/v1/InferTensorContentsOrBuilder.java @@ -0,0 +1,147 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: ssn/predictservice/v1/predictservice.proto +// Protobuf Java Version: 4.29.3 + +package ai.visma.ssn.predictservice.v1; + +public interface InferTensorContentsOrBuilder extends + // @@protoc_insertion_point(interface_extends:ssn.predictservice.v1.InferTensorContents) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated bool bool_contents = 1 [json_name = "boolContents"]; + * @return A list containing the boolContents. + */ + java.util.List getBoolContentsList(); + /** + * repeated bool bool_contents = 1 [json_name = "boolContents"]; + * @return The count of boolContents. + */ + int getBoolContentsCount(); + /** + * repeated bool bool_contents = 1 [json_name = "boolContents"]; + * @param index The index of the element to return. + * @return The boolContents at the given index. + */ + boolean getBoolContents(int index); + + /** + * repeated int32 int_contents = 2 [json_name = "intContents"]; + * @return A list containing the intContents. + */ + java.util.List getIntContentsList(); + /** + * repeated int32 int_contents = 2 [json_name = "intContents"]; + * @return The count of intContents. + */ + int getIntContentsCount(); + /** + * repeated int32 int_contents = 2 [json_name = "intContents"]; + * @param index The index of the element to return. + * @return The intContents at the given index. + */ + int getIntContents(int index); + + /** + * repeated int64 int64_contents = 3 [json_name = "int64Contents"]; + * @return A list containing the int64Contents. + */ + java.util.List getInt64ContentsList(); + /** + * repeated int64 int64_contents = 3 [json_name = "int64Contents"]; + * @return The count of int64Contents. + */ + int getInt64ContentsCount(); + /** + * repeated int64 int64_contents = 3 [json_name = "int64Contents"]; + * @param index The index of the element to return. + * @return The int64Contents at the given index. + */ + long getInt64Contents(int index); + + /** + * repeated uint32 uint_contents = 4 [json_name = "uintContents"]; + * @return A list containing the uintContents. + */ + java.util.List getUintContentsList(); + /** + * repeated uint32 uint_contents = 4 [json_name = "uintContents"]; + * @return The count of uintContents. + */ + int getUintContentsCount(); + /** + * repeated uint32 uint_contents = 4 [json_name = "uintContents"]; + * @param index The index of the element to return. + * @return The uintContents at the given index. + */ + int getUintContents(int index); + + /** + * repeated uint64 uint64_contents = 5 [json_name = "uint64Contents"]; + * @return A list containing the uint64Contents. + */ + java.util.List getUint64ContentsList(); + /** + * repeated uint64 uint64_contents = 5 [json_name = "uint64Contents"]; + * @return The count of uint64Contents. + */ + int getUint64ContentsCount(); + /** + * repeated uint64 uint64_contents = 5 [json_name = "uint64Contents"]; + * @param index The index of the element to return. + * @return The uint64Contents at the given index. + */ + long getUint64Contents(int index); + + /** + * repeated float fp32_contents = 6 [json_name = "fp32Contents"]; + * @return A list containing the fp32Contents. + */ + java.util.List getFp32ContentsList(); + /** + * repeated float fp32_contents = 6 [json_name = "fp32Contents"]; + * @return The count of fp32Contents. + */ + int getFp32ContentsCount(); + /** + * repeated float fp32_contents = 6 [json_name = "fp32Contents"]; + * @param index The index of the element to return. + * @return The fp32Contents at the given index. + */ + float getFp32Contents(int index); + + /** + * repeated double fp64_contents = 7 [json_name = "fp64Contents"]; + * @return A list containing the fp64Contents. + */ + java.util.List getFp64ContentsList(); + /** + * repeated double fp64_contents = 7 [json_name = "fp64Contents"]; + * @return The count of fp64Contents. + */ + int getFp64ContentsCount(); + /** + * repeated double fp64_contents = 7 [json_name = "fp64Contents"]; + * @param index The index of the element to return. + * @return The fp64Contents at the given index. + */ + double getFp64Contents(int index); + + /** + * repeated bytes bytes_contents = 8 [json_name = "bytesContents"]; + * @return A list containing the bytesContents. + */ + java.util.List getBytesContentsList(); + /** + * repeated bytes bytes_contents = 8 [json_name = "bytesContents"]; + * @return The count of bytesContents. + */ + int getBytesContentsCount(); + /** + * repeated bytes bytes_contents = 8 [json_name = "bytesContents"]; + * @param index The index of the element to return. + * @return The bytesContents at the given index. + */ + com.google.protobuf.ByteString getBytesContents(int index); +} diff --git a/gen/java/ai/visma/ssn/predictservice/v1/ModelInferRequest.java b/gen/java/ai/visma/ssn/predictservice/v1/ModelInferRequest.java new file mode 100644 index 00000000..5f2b7f2b --- /dev/null +++ b/gen/java/ai/visma/ssn/predictservice/v1/ModelInferRequest.java @@ -0,0 +1,4185 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: ssn/predictservice/v1/predictservice.proto +// Protobuf Java Version: 4.29.3 + +package ai.visma.ssn.predictservice.v1; + +/** + * Protobuf type {@code ssn.predictservice.v1.ModelInferRequest} + */ +public final class ModelInferRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:ssn.predictservice.v1.ModelInferRequest) + ModelInferRequestOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + ModelInferRequest.class.getName()); + } + // Use ModelInferRequest.newBuilder() to construct. + private ModelInferRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ModelInferRequest() { + modelName_ = ""; + modelVersion_ = ""; + id_ = ""; + inputs_ = java.util.Collections.emptyList(); + outputs_ = java.util.Collections.emptyList(); + rawInputContents_ = emptyList(com.google.protobuf.ByteString.class); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetParameters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + ai.visma.ssn.predictservice.v1.ModelInferRequest.class, ai.visma.ssn.predictservice.v1.ModelInferRequest.Builder.class); + } + + public interface InferInputTensorOrBuilder extends + // @@protoc_insertion_point(interface_extends:ssn.predictservice.v1.ModelInferRequest.InferInputTensor) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string datatype = 2 [json_name = "datatype"]; + * @return The datatype. + */ + java.lang.String getDatatype(); + /** + * string datatype = 2 [json_name = "datatype"]; + * @return The bytes for datatype. + */ + com.google.protobuf.ByteString + getDatatypeBytes(); + + /** + * repeated int64 shape = 3 [json_name = "shape"]; + * @return A list containing the shape. + */ + java.util.List getShapeList(); + /** + * repeated int64 shape = 3 [json_name = "shape"]; + * @return The count of shape. + */ + int getShapeCount(); + /** + * repeated int64 shape = 3 [json_name = "shape"]; + * @param index The index of the element to return. + * @return The shape at the given index. + */ + long getShape(int index); + + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + int getParametersCount(); + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + boolean containsParameters( + java.lang.String key); + /** + * Use {@link #getParametersMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getParameters(); + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + java.util.Map + getParametersMap(); + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter getParametersOrDefault( + java.lang.String key, + /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter defaultValue); + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + ai.visma.ssn.predictservice.v1.InferParameter getParametersOrThrow( + java.lang.String key); + + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + * @return Whether the contents field is set. + */ + boolean hasContents(); + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + * @return The contents. + */ + ai.visma.ssn.predictservice.v1.InferTensorContents getContents(); + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + */ + ai.visma.ssn.predictservice.v1.InferTensorContentsOrBuilder getContentsOrBuilder(); + } + /** + * Protobuf type {@code ssn.predictservice.v1.ModelInferRequest.InferInputTensor} + */ + public static final class InferInputTensor extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:ssn.predictservice.v1.ModelInferRequest.InferInputTensor) + InferInputTensorOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + InferInputTensor.class.getName()); + } + // Use InferInputTensor.newBuilder() to construct. + private InferInputTensor(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private InferInputTensor() { + name_ = ""; + datatype_ = ""; + shape_ = emptyLongList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferRequest_InferInputTensor_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetParameters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferRequest_InferInputTensor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.class, ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATATYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object datatype_ = ""; + /** + * string datatype = 2 [json_name = "datatype"]; + * @return The datatype. + */ + @java.lang.Override + public java.lang.String getDatatype() { + java.lang.Object ref = datatype_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datatype_ = s; + return s; + } + } + /** + * string datatype = 2 [json_name = "datatype"]; + * @return The bytes for datatype. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDatatypeBytes() { + java.lang.Object ref = datatype_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + datatype_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHAPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.LongList shape_ = + emptyLongList(); + /** + * repeated int64 shape = 3 [json_name = "shape"]; + * @return A list containing the shape. + */ + @java.lang.Override + public java.util.List + getShapeList() { + return shape_; + } + /** + * repeated int64 shape = 3 [json_name = "shape"]; + * @return The count of shape. + */ + public int getShapeCount() { + return shape_.size(); + } + /** + * repeated int64 shape = 3 [json_name = "shape"]; + * @param index The index of the element to return. + * @return The shape at the given index. + */ + public long getShape(int index) { + return shape_.getLong(index); + } + private int shapeMemoizedSerializedSize = -1; + + public static final int PARAMETERS_FIELD_NUMBER = 4; + private static final class ParametersDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, ai.visma.ssn.predictservice.v1.InferParameter> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferRequest_InferInputTensor_ParametersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + ai.visma.ssn.predictservice.v1.InferParameter.getDefaultInstance()); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, ai.visma.ssn.predictservice.v1.InferParameter> parameters_; + private com.google.protobuf.MapField + internalGetParameters() { + if (parameters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParametersDefaultEntryHolder.defaultEntry); + } + return parameters_; + } + public int getParametersCount() { + return internalGetParameters().getMap().size(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public boolean containsParameters( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetParameters().getMap().containsKey(key); + } + /** + * Use {@link #getParametersMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getParameters() { + return getParametersMap(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public java.util.Map getParametersMap() { + return internalGetParameters().getMap(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter getParametersOrDefault( + java.lang.String key, + /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParameters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public ai.visma.ssn.predictservice.v1.InferParameter getParametersOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParameters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CONTENTS_FIELD_NUMBER = 5; + private ai.visma.ssn.predictservice.v1.InferTensorContents contents_; + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + * @return Whether the contents field is set. + */ + @java.lang.Override + public boolean hasContents() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + * @return The contents. + */ + @java.lang.Override + public ai.visma.ssn.predictservice.v1.InferTensorContents getContents() { + return contents_ == null ? ai.visma.ssn.predictservice.v1.InferTensorContents.getDefaultInstance() : contents_; + } + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + */ + @java.lang.Override + public ai.visma.ssn.predictservice.v1.InferTensorContentsOrBuilder getContentsOrBuilder() { + return contents_ == null ? ai.visma.ssn.predictservice.v1.InferTensorContents.getDefaultInstance() : contents_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(datatype_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, datatype_); + } + if (getShapeList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(shapeMemoizedSerializedSize); + } + for (int i = 0; i < shape_.size(); i++) { + output.writeInt64NoTag(shape_.getLong(i)); + } + com.google.protobuf.GeneratedMessage + .serializeStringMapTo( + output, + internalGetParameters(), + ParametersDefaultEntryHolder.defaultEntry, + 4); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getContents()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(datatype_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, datatype_); + } + { + int dataSize = 0; + for (int i = 0; i < shape_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt64SizeNoTag(shape_.getLong(i)); + } + size += dataSize; + if (!getShapeList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + shapeMemoizedSerializedSize = dataSize; + } + for (java.util.Map.Entry entry + : internalGetParameters().getMap().entrySet()) { + com.google.protobuf.MapEntry + parameters__ = ParametersDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, parameters__); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getContents()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor)) { + return super.equals(obj); + } + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor other = (ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDatatype() + .equals(other.getDatatype())) return false; + if (!getShapeList() + .equals(other.getShapeList())) return false; + if (!internalGetParameters().equals( + other.internalGetParameters())) return false; + if (hasContents() != other.hasContents()) return false; + if (hasContents()) { + if (!getContents() + .equals(other.getContents())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DATATYPE_FIELD_NUMBER; + hash = (53 * hash) + getDatatype().hashCode(); + if (getShapeCount() > 0) { + hash = (37 * hash) + SHAPE_FIELD_NUMBER; + hash = (53 * hash) + getShapeList().hashCode(); + } + if (!internalGetParameters().getMap().isEmpty()) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetParameters().hashCode(); + } + if (hasContents()) { + hash = (37 * hash) + CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getContents().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code ssn.predictservice.v1.ModelInferRequest.InferInputTensor} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:ssn.predictservice.v1.ModelInferRequest.InferInputTensor) + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferRequest_InferInputTensor_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetParameters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableParameters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferRequest_InferInputTensor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.class, ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.Builder.class); + } + + // Construct using ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getContentsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + datatype_ = ""; + shape_ = emptyLongList(); + internalGetMutableParameters().clear(); + contents_ = null; + if (contentsBuilder_ != null) { + contentsBuilder_.dispose(); + contentsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferRequest_InferInputTensor_descriptor; + } + + @java.lang.Override + public ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor getDefaultInstanceForType() { + return ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.getDefaultInstance(); + } + + @java.lang.Override + public ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor build() { + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor buildPartial() { + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor result = new ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.datatype_ = datatype_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + shape_.makeImmutable(); + result.shape_ = shape_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.parameters_ = internalGetParameters().build(ParametersDefaultEntryHolder.defaultEntry); + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.contents_ = contentsBuilder_ == null + ? contents_ + : contentsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor) { + return mergeFrom((ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor other) { + if (other == ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDatatype().isEmpty()) { + datatype_ = other.datatype_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.shape_.isEmpty()) { + if (shape_.isEmpty()) { + shape_ = other.shape_; + shape_.makeImmutable(); + bitField0_ |= 0x00000004; + } else { + ensureShapeIsMutable(); + shape_.addAll(other.shape_); + } + onChanged(); + } + internalGetMutableParameters().mergeFrom( + other.internalGetParameters()); + bitField0_ |= 0x00000008; + if (other.hasContents()) { + mergeContents(other.getContents()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + datatype_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + long v = input.readInt64(); + ensureShapeIsMutable(); + shape_.addLong(v); + break; + } // case 24 + case 26: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureShapeIsMutable(); + while (input.getBytesUntilLimit() > 0) { + shape_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + parameters__ = input.readMessage( + ParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableParameters().ensureBuilderMap().put( + parameters__.getKey(), parameters__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getContentsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string name = 1 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string name = 1 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object datatype_ = ""; + /** + * string datatype = 2 [json_name = "datatype"]; + * @return The datatype. + */ + public java.lang.String getDatatype() { + java.lang.Object ref = datatype_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datatype_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string datatype = 2 [json_name = "datatype"]; + * @return The bytes for datatype. + */ + public com.google.protobuf.ByteString + getDatatypeBytes() { + java.lang.Object ref = datatype_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + datatype_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string datatype = 2 [json_name = "datatype"]; + * @param value The datatype to set. + * @return This builder for chaining. + */ + public Builder setDatatype( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + datatype_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string datatype = 2 [json_name = "datatype"]; + * @return This builder for chaining. + */ + public Builder clearDatatype() { + datatype_ = getDefaultInstance().getDatatype(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string datatype = 2 [json_name = "datatype"]; + * @param value The bytes for datatype to set. + * @return This builder for chaining. + */ + public Builder setDatatypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + datatype_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.LongList shape_ = emptyLongList(); + private void ensureShapeIsMutable() { + if (!shape_.isModifiable()) { + shape_ = makeMutableCopy(shape_); + } + bitField0_ |= 0x00000004; + } + /** + * repeated int64 shape = 3 [json_name = "shape"]; + * @return A list containing the shape. + */ + public java.util.List + getShapeList() { + shape_.makeImmutable(); + return shape_; + } + /** + * repeated int64 shape = 3 [json_name = "shape"]; + * @return The count of shape. + */ + public int getShapeCount() { + return shape_.size(); + } + /** + * repeated int64 shape = 3 [json_name = "shape"]; + * @param index The index of the element to return. + * @return The shape at the given index. + */ + public long getShape(int index) { + return shape_.getLong(index); + } + /** + * repeated int64 shape = 3 [json_name = "shape"]; + * @param index The index to set the value at. + * @param value The shape to set. + * @return This builder for chaining. + */ + public Builder setShape( + int index, long value) { + + ensureShapeIsMutable(); + shape_.setLong(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated int64 shape = 3 [json_name = "shape"]; + * @param value The shape to add. + * @return This builder for chaining. + */ + public Builder addShape(long value) { + + ensureShapeIsMutable(); + shape_.addLong(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated int64 shape = 3 [json_name = "shape"]; + * @param values The shape to add. + * @return This builder for chaining. + */ + public Builder addAllShape( + java.lang.Iterable values) { + ensureShapeIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, shape_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated int64 shape = 3 [json_name = "shape"]; + * @return This builder for chaining. + */ + public Builder clearShape() { + shape_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + private static final class ParametersConverter implements com.google.protobuf.MapFieldBuilder.Converter { + @java.lang.Override + public ai.visma.ssn.predictservice.v1.InferParameter build(ai.visma.ssn.predictservice.v1.InferParameterOrBuilder val) { + if (val instanceof ai.visma.ssn.predictservice.v1.InferParameter) { return (ai.visma.ssn.predictservice.v1.InferParameter) val; } + return ((ai.visma.ssn.predictservice.v1.InferParameter.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry defaultEntry() { + return ParametersDefaultEntryHolder.defaultEntry; + } + }; + private static final ParametersConverter parametersConverter = new ParametersConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, ai.visma.ssn.predictservice.v1.InferParameterOrBuilder, ai.visma.ssn.predictservice.v1.InferParameter, ai.visma.ssn.predictservice.v1.InferParameter.Builder> parameters_; + private com.google.protobuf.MapFieldBuilder + internalGetParameters() { + if (parameters_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(parametersConverter); + } + return parameters_; + } + private com.google.protobuf.MapFieldBuilder + internalGetMutableParameters() { + if (parameters_ == null) { + parameters_ = new com.google.protobuf.MapFieldBuilder<>(parametersConverter); + } + bitField0_ |= 0x00000008; + onChanged(); + return parameters_; + } + public int getParametersCount() { + return internalGetParameters().ensureBuilderMap().size(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public boolean containsParameters( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetParameters().ensureBuilderMap().containsKey(key); + } + /** + * Use {@link #getParametersMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getParameters() { + return getParametersMap(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public java.util.Map getParametersMap() { + return internalGetParameters().getImmutableMap(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter getParametersOrDefault( + java.lang.String key, + /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetMutableParameters().ensureBuilderMap(); + return map.containsKey(key) ? parametersConverter.build(map.get(key)) : defaultValue; + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public ai.visma.ssn.predictservice.v1.InferParameter getParametersOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetMutableParameters().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return parametersConverter.build(map.get(key)); + } + public Builder clearParameters() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableParameters().clear(); + return this; + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + public Builder removeParameters( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableParameters().ensureBuilderMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableParameters() { + bitField0_ |= 0x00000008; + return internalGetMutableParameters().ensureMessageMap(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + public Builder putParameters( + java.lang.String key, + ai.visma.ssn.predictservice.v1.InferParameter value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableParameters().ensureBuilderMap() + .put(key, value); + bitField0_ |= 0x00000008; + return this; + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + public Builder putAllParameters( + java.util.Map values) { + for (java.util.Map.Entry e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableParameters().ensureBuilderMap() + .putAll(values); + bitField0_ |= 0x00000008; + return this; + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + public ai.visma.ssn.predictservice.v1.InferParameter.Builder putParametersBuilderIfAbsent( + java.lang.String key) { + java.util.Map builderMap = internalGetMutableParameters().ensureBuilderMap(); + ai.visma.ssn.predictservice.v1.InferParameterOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = ai.visma.ssn.predictservice.v1.InferParameter.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof ai.visma.ssn.predictservice.v1.InferParameter) { + entry = ((ai.visma.ssn.predictservice.v1.InferParameter) entry).toBuilder(); + builderMap.put(key, entry); + } + return (ai.visma.ssn.predictservice.v1.InferParameter.Builder) entry; + } + + private ai.visma.ssn.predictservice.v1.InferTensorContents contents_; + private com.google.protobuf.SingleFieldBuilder< + ai.visma.ssn.predictservice.v1.InferTensorContents, ai.visma.ssn.predictservice.v1.InferTensorContents.Builder, ai.visma.ssn.predictservice.v1.InferTensorContentsOrBuilder> contentsBuilder_; + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + * @return Whether the contents field is set. + */ + public boolean hasContents() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + * @return The contents. + */ + public ai.visma.ssn.predictservice.v1.InferTensorContents getContents() { + if (contentsBuilder_ == null) { + return contents_ == null ? ai.visma.ssn.predictservice.v1.InferTensorContents.getDefaultInstance() : contents_; + } else { + return contentsBuilder_.getMessage(); + } + } + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + */ + public Builder setContents(ai.visma.ssn.predictservice.v1.InferTensorContents value) { + if (contentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + contents_ = value; + } else { + contentsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + */ + public Builder setContents( + ai.visma.ssn.predictservice.v1.InferTensorContents.Builder builderForValue) { + if (contentsBuilder_ == null) { + contents_ = builderForValue.build(); + } else { + contentsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + */ + public Builder mergeContents(ai.visma.ssn.predictservice.v1.InferTensorContents value) { + if (contentsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + contents_ != null && + contents_ != ai.visma.ssn.predictservice.v1.InferTensorContents.getDefaultInstance()) { + getContentsBuilder().mergeFrom(value); + } else { + contents_ = value; + } + } else { + contentsBuilder_.mergeFrom(value); + } + if (contents_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + */ + public Builder clearContents() { + bitField0_ = (bitField0_ & ~0x00000010); + contents_ = null; + if (contentsBuilder_ != null) { + contentsBuilder_.dispose(); + contentsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + */ + public ai.visma.ssn.predictservice.v1.InferTensorContents.Builder getContentsBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getContentsFieldBuilder().getBuilder(); + } + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + */ + public ai.visma.ssn.predictservice.v1.InferTensorContentsOrBuilder getContentsOrBuilder() { + if (contentsBuilder_ != null) { + return contentsBuilder_.getMessageOrBuilder(); + } else { + return contents_ == null ? + ai.visma.ssn.predictservice.v1.InferTensorContents.getDefaultInstance() : contents_; + } + } + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + */ + private com.google.protobuf.SingleFieldBuilder< + ai.visma.ssn.predictservice.v1.InferTensorContents, ai.visma.ssn.predictservice.v1.InferTensorContents.Builder, ai.visma.ssn.predictservice.v1.InferTensorContentsOrBuilder> + getContentsFieldBuilder() { + if (contentsBuilder_ == null) { + contentsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + ai.visma.ssn.predictservice.v1.InferTensorContents, ai.visma.ssn.predictservice.v1.InferTensorContents.Builder, ai.visma.ssn.predictservice.v1.InferTensorContentsOrBuilder>( + getContents(), + getParentForChildren(), + isClean()); + contents_ = null; + } + return contentsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:ssn.predictservice.v1.ModelInferRequest.InferInputTensor) + } + + // @@protoc_insertion_point(class_scope:ssn.predictservice.v1.ModelInferRequest.InferInputTensor) + private static final ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor(); + } + + public static ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InferInputTensor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface InferRequestedOutputTensorOrBuilder extends + // @@protoc_insertion_point(interface_extends:ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 2 [json_name = "parameters"]; + */ + int getParametersCount(); + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 2 [json_name = "parameters"]; + */ + boolean containsParameters( + java.lang.String key); + /** + * Use {@link #getParametersMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getParameters(); + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 2 [json_name = "parameters"]; + */ + java.util.Map + getParametersMap(); + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 2 [json_name = "parameters"]; + */ + /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter getParametersOrDefault( + java.lang.String key, + /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter defaultValue); + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 2 [json_name = "parameters"]; + */ + ai.visma.ssn.predictservice.v1.InferParameter getParametersOrThrow( + java.lang.String key); + } + /** + * Protobuf type {@code ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor} + */ + public static final class InferRequestedOutputTensor extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor) + InferRequestedOutputTensorOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + InferRequestedOutputTensor.class.getName()); + } + // Use InferRequestedOutputTensor.newBuilder() to construct. + private InferRequestedOutputTensor(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private InferRequestedOutputTensor() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferRequest_InferRequestedOutputTensor_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetParameters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferRequest_InferRequestedOutputTensor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.class, ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMETERS_FIELD_NUMBER = 2; + private static final class ParametersDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, ai.visma.ssn.predictservice.v1.InferParameter> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferRequest_InferRequestedOutputTensor_ParametersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + ai.visma.ssn.predictservice.v1.InferParameter.getDefaultInstance()); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, ai.visma.ssn.predictservice.v1.InferParameter> parameters_; + private com.google.protobuf.MapField + internalGetParameters() { + if (parameters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParametersDefaultEntryHolder.defaultEntry); + } + return parameters_; + } + public int getParametersCount() { + return internalGetParameters().getMap().size(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 2 [json_name = "parameters"]; + */ + @java.lang.Override + public boolean containsParameters( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetParameters().getMap().containsKey(key); + } + /** + * Use {@link #getParametersMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getParameters() { + return getParametersMap(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 2 [json_name = "parameters"]; + */ + @java.lang.Override + public java.util.Map getParametersMap() { + return internalGetParameters().getMap(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 2 [json_name = "parameters"]; + */ + @java.lang.Override + public /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter getParametersOrDefault( + java.lang.String key, + /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParameters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 2 [json_name = "parameters"]; + */ + @java.lang.Override + public ai.visma.ssn.predictservice.v1.InferParameter getParametersOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParameters().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() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + com.google.protobuf.GeneratedMessage + .serializeStringMapTo( + output, + internalGetParameters(), + ParametersDefaultEntryHolder.defaultEntry, + 2); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + for (java.util.Map.Entry entry + : internalGetParameters().getMap().entrySet()) { + com.google.protobuf.MapEntry + parameters__ = ParametersDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, parameters__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor)) { + return super.equals(obj); + } + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor other = (ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!internalGetParameters().equals( + other.internalGetParameters())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (!internalGetParameters().getMap().isEmpty()) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetParameters().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor) + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferRequest_InferRequestedOutputTensor_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetParameters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetMutableParameters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferRequest_InferRequestedOutputTensor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.class, ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.Builder.class); + } + + // Construct using ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + internalGetMutableParameters().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferRequest_InferRequestedOutputTensor_descriptor; + } + + @java.lang.Override + public ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor getDefaultInstanceForType() { + return ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.getDefaultInstance(); + } + + @java.lang.Override + public ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor build() { + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor buildPartial() { + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor result = new ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parameters_ = internalGetParameters().build(ParametersDefaultEntryHolder.defaultEntry); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor) { + return mergeFrom((ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor other) { + if (other == ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + internalGetMutableParameters().mergeFrom( + other.internalGetParameters()); + bitField0_ |= 0x00000002; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.protobuf.MapEntry + parameters__ = input.readMessage( + ParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableParameters().ensureBuilderMap().put( + parameters__.getKey(), parameters__.getValue()); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string name = 1 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string name = 1 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private static final class ParametersConverter implements com.google.protobuf.MapFieldBuilder.Converter { + @java.lang.Override + public ai.visma.ssn.predictservice.v1.InferParameter build(ai.visma.ssn.predictservice.v1.InferParameterOrBuilder val) { + if (val instanceof ai.visma.ssn.predictservice.v1.InferParameter) { return (ai.visma.ssn.predictservice.v1.InferParameter) val; } + return ((ai.visma.ssn.predictservice.v1.InferParameter.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry defaultEntry() { + return ParametersDefaultEntryHolder.defaultEntry; + } + }; + private static final ParametersConverter parametersConverter = new ParametersConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, ai.visma.ssn.predictservice.v1.InferParameterOrBuilder, ai.visma.ssn.predictservice.v1.InferParameter, ai.visma.ssn.predictservice.v1.InferParameter.Builder> parameters_; + private com.google.protobuf.MapFieldBuilder + internalGetParameters() { + if (parameters_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(parametersConverter); + } + return parameters_; + } + private com.google.protobuf.MapFieldBuilder + internalGetMutableParameters() { + if (parameters_ == null) { + parameters_ = new com.google.protobuf.MapFieldBuilder<>(parametersConverter); + } + bitField0_ |= 0x00000002; + onChanged(); + return parameters_; + } + public int getParametersCount() { + return internalGetParameters().ensureBuilderMap().size(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 2 [json_name = "parameters"]; + */ + @java.lang.Override + public boolean containsParameters( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetParameters().ensureBuilderMap().containsKey(key); + } + /** + * Use {@link #getParametersMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getParameters() { + return getParametersMap(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 2 [json_name = "parameters"]; + */ + @java.lang.Override + public java.util.Map getParametersMap() { + return internalGetParameters().getImmutableMap(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 2 [json_name = "parameters"]; + */ + @java.lang.Override + public /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter getParametersOrDefault( + java.lang.String key, + /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetMutableParameters().ensureBuilderMap(); + return map.containsKey(key) ? parametersConverter.build(map.get(key)) : defaultValue; + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 2 [json_name = "parameters"]; + */ + @java.lang.Override + public ai.visma.ssn.predictservice.v1.InferParameter getParametersOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetMutableParameters().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return parametersConverter.build(map.get(key)); + } + public Builder clearParameters() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableParameters().clear(); + return this; + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 2 [json_name = "parameters"]; + */ + public Builder removeParameters( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableParameters().ensureBuilderMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableParameters() { + bitField0_ |= 0x00000002; + return internalGetMutableParameters().ensureMessageMap(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 2 [json_name = "parameters"]; + */ + public Builder putParameters( + java.lang.String key, + ai.visma.ssn.predictservice.v1.InferParameter value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableParameters().ensureBuilderMap() + .put(key, value); + bitField0_ |= 0x00000002; + return this; + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 2 [json_name = "parameters"]; + */ + public Builder putAllParameters( + java.util.Map values) { + for (java.util.Map.Entry e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableParameters().ensureBuilderMap() + .putAll(values); + bitField0_ |= 0x00000002; + return this; + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 2 [json_name = "parameters"]; + */ + public ai.visma.ssn.predictservice.v1.InferParameter.Builder putParametersBuilderIfAbsent( + java.lang.String key) { + java.util.Map builderMap = internalGetMutableParameters().ensureBuilderMap(); + ai.visma.ssn.predictservice.v1.InferParameterOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = ai.visma.ssn.predictservice.v1.InferParameter.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof ai.visma.ssn.predictservice.v1.InferParameter) { + entry = ((ai.visma.ssn.predictservice.v1.InferParameter) entry).toBuilder(); + builderMap.put(key, entry); + } + return (ai.visma.ssn.predictservice.v1.InferParameter.Builder) entry; + } + + // @@protoc_insertion_point(builder_scope:ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor) + } + + // @@protoc_insertion_point(class_scope:ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor) + private static final ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor(); + } + + public static ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InferRequestedOutputTensor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int MODEL_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object modelName_ = ""; + /** + * string model_name = 1 [json_name = "modelName"]; + * @return The modelName. + */ + @java.lang.Override + public java.lang.String getModelName() { + java.lang.Object ref = modelName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelName_ = s; + return s; + } + } + /** + * string model_name = 1 [json_name = "modelName"]; + * @return The bytes for modelName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getModelNameBytes() { + java.lang.Object ref = modelName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + modelName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODEL_VERSION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object modelVersion_ = ""; + /** + * string model_version = 2 [json_name = "modelVersion"]; + * @return The modelVersion. + */ + @java.lang.Override + public java.lang.String getModelVersion() { + java.lang.Object ref = modelVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelVersion_ = s; + return s; + } + } + /** + * string model_version = 2 [json_name = "modelVersion"]; + * @return The bytes for modelVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getModelVersionBytes() { + java.lang.Object ref = modelVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + modelVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 3 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * string id = 3 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMETERS_FIELD_NUMBER = 4; + private static final class ParametersDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, ai.visma.ssn.predictservice.v1.InferParameter> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferRequest_ParametersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + ai.visma.ssn.predictservice.v1.InferParameter.getDefaultInstance()); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, ai.visma.ssn.predictservice.v1.InferParameter> parameters_; + private com.google.protobuf.MapField + internalGetParameters() { + if (parameters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParametersDefaultEntryHolder.defaultEntry); + } + return parameters_; + } + public int getParametersCount() { + return internalGetParameters().getMap().size(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public boolean containsParameters( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetParameters().getMap().containsKey(key); + } + /** + * Use {@link #getParametersMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getParameters() { + return getParametersMap(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public java.util.Map getParametersMap() { + return internalGetParameters().getMap(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter getParametersOrDefault( + java.lang.String key, + /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParameters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public ai.visma.ssn.predictservice.v1.InferParameter getParametersOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParameters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int INPUTS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private java.util.List inputs_; + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferInputTensor inputs = 5 [json_name = "inputs"]; + */ + @java.lang.Override + public java.util.List getInputsList() { + return inputs_; + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferInputTensor inputs = 5 [json_name = "inputs"]; + */ + @java.lang.Override + public java.util.List + getInputsOrBuilderList() { + return inputs_; + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferInputTensor inputs = 5 [json_name = "inputs"]; + */ + @java.lang.Override + public int getInputsCount() { + return inputs_.size(); + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferInputTensor inputs = 5 [json_name = "inputs"]; + */ + @java.lang.Override + public ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor getInputs(int index) { + return inputs_.get(index); + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferInputTensor inputs = 5 [json_name = "inputs"]; + */ + @java.lang.Override + public ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensorOrBuilder getInputsOrBuilder( + int index) { + return inputs_.get(index); + } + + public static final int OUTPUTS_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private java.util.List outputs_; + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor outputs = 6 [json_name = "outputs"]; + */ + @java.lang.Override + public java.util.List getOutputsList() { + return outputs_; + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor outputs = 6 [json_name = "outputs"]; + */ + @java.lang.Override + public java.util.List + getOutputsOrBuilderList() { + return outputs_; + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor outputs = 6 [json_name = "outputs"]; + */ + @java.lang.Override + public int getOutputsCount() { + return outputs_.size(); + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor outputs = 6 [json_name = "outputs"]; + */ + @java.lang.Override + public ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor getOutputs(int index) { + return outputs_.get(index); + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor outputs = 6 [json_name = "outputs"]; + */ + @java.lang.Override + public ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensorOrBuilder getOutputsOrBuilder( + int index) { + return outputs_.get(index); + } + + public static final int RAW_INPUT_CONTENTS_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.ProtobufList rawInputContents_ = + emptyList(com.google.protobuf.ByteString.class); + /** + * repeated bytes raw_input_contents = 7 [json_name = "rawInputContents"]; + * @return A list containing the rawInputContents. + */ + @java.lang.Override + public java.util.List + getRawInputContentsList() { + return rawInputContents_; + } + /** + * repeated bytes raw_input_contents = 7 [json_name = "rawInputContents"]; + * @return The count of rawInputContents. + */ + public int getRawInputContentsCount() { + return rawInputContents_.size(); + } + /** + * repeated bytes raw_input_contents = 7 [json_name = "rawInputContents"]; + * @param index The index of the element to return. + * @return The rawInputContents at the given index. + */ + public com.google.protobuf.ByteString getRawInputContents(int index) { + return rawInputContents_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, modelName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, modelVersion_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, id_); + } + com.google.protobuf.GeneratedMessage + .serializeStringMapTo( + output, + internalGetParameters(), + ParametersDefaultEntryHolder.defaultEntry, + 4); + for (int i = 0; i < inputs_.size(); i++) { + output.writeMessage(5, inputs_.get(i)); + } + for (int i = 0; i < outputs_.size(); i++) { + output.writeMessage(6, outputs_.get(i)); + } + for (int i = 0; i < rawInputContents_.size(); i++) { + output.writeBytes(7, rawInputContents_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, modelName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, modelVersion_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, id_); + } + for (java.util.Map.Entry entry + : internalGetParameters().getMap().entrySet()) { + com.google.protobuf.MapEntry + parameters__ = ParametersDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, parameters__); + } + for (int i = 0; i < inputs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, inputs_.get(i)); + } + for (int i = 0; i < outputs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, outputs_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < rawInputContents_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(rawInputContents_.get(i)); + } + size += dataSize; + size += 1 * getRawInputContentsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof ai.visma.ssn.predictservice.v1.ModelInferRequest)) { + return super.equals(obj); + } + ai.visma.ssn.predictservice.v1.ModelInferRequest other = (ai.visma.ssn.predictservice.v1.ModelInferRequest) obj; + + if (!getModelName() + .equals(other.getModelName())) return false; + if (!getModelVersion() + .equals(other.getModelVersion())) return false; + if (!getId() + .equals(other.getId())) return false; + if (!internalGetParameters().equals( + other.internalGetParameters())) return false; + if (!getInputsList() + .equals(other.getInputsList())) return false; + if (!getOutputsList() + .equals(other.getOutputsList())) return false; + if (!getRawInputContentsList() + .equals(other.getRawInputContentsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODEL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getModelName().hashCode(); + hash = (37 * hash) + MODEL_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getModelVersion().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (!internalGetParameters().getMap().isEmpty()) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetParameters().hashCode(); + } + if (getInputsCount() > 0) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputsList().hashCode(); + } + if (getOutputsCount() > 0) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputsList().hashCode(); + } + if (getRawInputContentsCount() > 0) { + hash = (37 * hash) + RAW_INPUT_CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getRawInputContentsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static ai.visma.ssn.predictservice.v1.ModelInferRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.predictservice.v1.ModelInferRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.predictservice.v1.ModelInferRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.predictservice.v1.ModelInferRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.predictservice.v1.ModelInferRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.predictservice.v1.ModelInferRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.predictservice.v1.ModelInferRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static ai.visma.ssn.predictservice.v1.ModelInferRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static ai.visma.ssn.predictservice.v1.ModelInferRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static ai.visma.ssn.predictservice.v1.ModelInferRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static ai.visma.ssn.predictservice.v1.ModelInferRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static ai.visma.ssn.predictservice.v1.ModelInferRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ai.visma.ssn.predictservice.v1.ModelInferRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code ssn.predictservice.v1.ModelInferRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:ssn.predictservice.v1.ModelInferRequest) + ai.visma.ssn.predictservice.v1.ModelInferRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetParameters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableParameters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + ai.visma.ssn.predictservice.v1.ModelInferRequest.class, ai.visma.ssn.predictservice.v1.ModelInferRequest.Builder.class); + } + + // Construct using ai.visma.ssn.predictservice.v1.ModelInferRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + modelName_ = ""; + modelVersion_ = ""; + id_ = ""; + internalGetMutableParameters().clear(); + if (inputsBuilder_ == null) { + inputs_ = java.util.Collections.emptyList(); + } else { + inputs_ = null; + inputsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + } else { + outputs_ = null; + outputsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + rawInputContents_ = emptyList(com.google.protobuf.ByteString.class); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferRequest_descriptor; + } + + @java.lang.Override + public ai.visma.ssn.predictservice.v1.ModelInferRequest getDefaultInstanceForType() { + return ai.visma.ssn.predictservice.v1.ModelInferRequest.getDefaultInstance(); + } + + @java.lang.Override + public ai.visma.ssn.predictservice.v1.ModelInferRequest build() { + ai.visma.ssn.predictservice.v1.ModelInferRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public ai.visma.ssn.predictservice.v1.ModelInferRequest buildPartial() { + ai.visma.ssn.predictservice.v1.ModelInferRequest result = new ai.visma.ssn.predictservice.v1.ModelInferRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(ai.visma.ssn.predictservice.v1.ModelInferRequest result) { + if (inputsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + inputs_ = java.util.Collections.unmodifiableList(inputs_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + if (outputsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + outputs_ = java.util.Collections.unmodifiableList(outputs_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.build(); + } + } + + private void buildPartial0(ai.visma.ssn.predictservice.v1.ModelInferRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelName_ = modelName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.modelVersion_ = modelVersion_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.parameters_ = internalGetParameters().build(ParametersDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + rawInputContents_.makeImmutable(); + result.rawInputContents_ = rawInputContents_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof ai.visma.ssn.predictservice.v1.ModelInferRequest) { + return mergeFrom((ai.visma.ssn.predictservice.v1.ModelInferRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(ai.visma.ssn.predictservice.v1.ModelInferRequest other) { + if (other == ai.visma.ssn.predictservice.v1.ModelInferRequest.getDefaultInstance()) return this; + if (!other.getModelName().isEmpty()) { + modelName_ = other.modelName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getModelVersion().isEmpty()) { + modelVersion_ = other.modelVersion_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000004; + onChanged(); + } + internalGetMutableParameters().mergeFrom( + other.internalGetParameters()); + bitField0_ |= 0x00000008; + if (inputsBuilder_ == null) { + if (!other.inputs_.isEmpty()) { + if (inputs_.isEmpty()) { + inputs_ = other.inputs_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureInputsIsMutable(); + inputs_.addAll(other.inputs_); + } + onChanged(); + } + } else { + if (!other.inputs_.isEmpty()) { + if (inputsBuilder_.isEmpty()) { + inputsBuilder_.dispose(); + inputsBuilder_ = null; + inputs_ = other.inputs_; + bitField0_ = (bitField0_ & ~0x00000010); + inputsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getInputsFieldBuilder() : null; + } else { + inputsBuilder_.addAllMessages(other.inputs_); + } + } + } + if (outputsBuilder_ == null) { + if (!other.outputs_.isEmpty()) { + if (outputs_.isEmpty()) { + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureOutputsIsMutable(); + outputs_.addAll(other.outputs_); + } + onChanged(); + } + } else { + if (!other.outputs_.isEmpty()) { + if (outputsBuilder_.isEmpty()) { + outputsBuilder_.dispose(); + outputsBuilder_ = null; + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000020); + outputsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getOutputsFieldBuilder() : null; + } else { + outputsBuilder_.addAllMessages(other.outputs_); + } + } + } + if (!other.rawInputContents_.isEmpty()) { + if (rawInputContents_.isEmpty()) { + rawInputContents_ = other.rawInputContents_; + rawInputContents_.makeImmutable(); + bitField0_ |= 0x00000040; + } else { + ensureRawInputContentsIsMutable(); + rawInputContents_.addAll(other.rawInputContents_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + modelName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + modelVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + parameters__ = input.readMessage( + ParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableParameters().ensureBuilderMap().put( + parameters__.getKey(), parameters__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor m = + input.readMessage( + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.parser(), + extensionRegistry); + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.add(m); + } else { + inputsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: { + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor m = + input.readMessage( + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.parser(), + extensionRegistry); + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(m); + } else { + outputsBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: { + com.google.protobuf.ByteString v = input.readBytes(); + ensureRawInputContentsIsMutable(); + rawInputContents_.add(v); + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object modelName_ = ""; + /** + * string model_name = 1 [json_name = "modelName"]; + * @return The modelName. + */ + public java.lang.String getModelName() { + java.lang.Object ref = modelName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string model_name = 1 [json_name = "modelName"]; + * @return The bytes for modelName. + */ + public com.google.protobuf.ByteString + getModelNameBytes() { + java.lang.Object ref = modelName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + modelName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string model_name = 1 [json_name = "modelName"]; + * @param value The modelName to set. + * @return This builder for chaining. + */ + public Builder setModelName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + modelName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string model_name = 1 [json_name = "modelName"]; + * @return This builder for chaining. + */ + public Builder clearModelName() { + modelName_ = getDefaultInstance().getModelName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string model_name = 1 [json_name = "modelName"]; + * @param value The bytes for modelName to set. + * @return This builder for chaining. + */ + public Builder setModelNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + modelName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object modelVersion_ = ""; + /** + * string model_version = 2 [json_name = "modelVersion"]; + * @return The modelVersion. + */ + public java.lang.String getModelVersion() { + java.lang.Object ref = modelVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string model_version = 2 [json_name = "modelVersion"]; + * @return The bytes for modelVersion. + */ + public com.google.protobuf.ByteString + getModelVersionBytes() { + java.lang.Object ref = modelVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + modelVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string model_version = 2 [json_name = "modelVersion"]; + * @param value The modelVersion to set. + * @return This builder for chaining. + */ + public Builder setModelVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + modelVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string model_version = 2 [json_name = "modelVersion"]; + * @return This builder for chaining. + */ + public Builder clearModelVersion() { + modelVersion_ = getDefaultInstance().getModelVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string model_version = 2 [json_name = "modelVersion"]; + * @param value The bytes for modelVersion to set. + * @return This builder for chaining. + */ + public Builder setModelVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + modelVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object id_ = ""; + /** + * string id = 3 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 3 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 3 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string id = 3 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string id = 3 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private static final class ParametersConverter implements com.google.protobuf.MapFieldBuilder.Converter { + @java.lang.Override + public ai.visma.ssn.predictservice.v1.InferParameter build(ai.visma.ssn.predictservice.v1.InferParameterOrBuilder val) { + if (val instanceof ai.visma.ssn.predictservice.v1.InferParameter) { return (ai.visma.ssn.predictservice.v1.InferParameter) val; } + return ((ai.visma.ssn.predictservice.v1.InferParameter.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry defaultEntry() { + return ParametersDefaultEntryHolder.defaultEntry; + } + }; + private static final ParametersConverter parametersConverter = new ParametersConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, ai.visma.ssn.predictservice.v1.InferParameterOrBuilder, ai.visma.ssn.predictservice.v1.InferParameter, ai.visma.ssn.predictservice.v1.InferParameter.Builder> parameters_; + private com.google.protobuf.MapFieldBuilder + internalGetParameters() { + if (parameters_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(parametersConverter); + } + return parameters_; + } + private com.google.protobuf.MapFieldBuilder + internalGetMutableParameters() { + if (parameters_ == null) { + parameters_ = new com.google.protobuf.MapFieldBuilder<>(parametersConverter); + } + bitField0_ |= 0x00000008; + onChanged(); + return parameters_; + } + public int getParametersCount() { + return internalGetParameters().ensureBuilderMap().size(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public boolean containsParameters( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetParameters().ensureBuilderMap().containsKey(key); + } + /** + * Use {@link #getParametersMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getParameters() { + return getParametersMap(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public java.util.Map getParametersMap() { + return internalGetParameters().getImmutableMap(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter getParametersOrDefault( + java.lang.String key, + /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetMutableParameters().ensureBuilderMap(); + return map.containsKey(key) ? parametersConverter.build(map.get(key)) : defaultValue; + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public ai.visma.ssn.predictservice.v1.InferParameter getParametersOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetMutableParameters().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return parametersConverter.build(map.get(key)); + } + public Builder clearParameters() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableParameters().clear(); + return this; + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + public Builder removeParameters( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableParameters().ensureBuilderMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableParameters() { + bitField0_ |= 0x00000008; + return internalGetMutableParameters().ensureMessageMap(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + public Builder putParameters( + java.lang.String key, + ai.visma.ssn.predictservice.v1.InferParameter value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableParameters().ensureBuilderMap() + .put(key, value); + bitField0_ |= 0x00000008; + return this; + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + public Builder putAllParameters( + java.util.Map values) { + for (java.util.Map.Entry e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableParameters().ensureBuilderMap() + .putAll(values); + bitField0_ |= 0x00000008; + return this; + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + public ai.visma.ssn.predictservice.v1.InferParameter.Builder putParametersBuilderIfAbsent( + java.lang.String key) { + java.util.Map builderMap = internalGetMutableParameters().ensureBuilderMap(); + ai.visma.ssn.predictservice.v1.InferParameterOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = ai.visma.ssn.predictservice.v1.InferParameter.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof ai.visma.ssn.predictservice.v1.InferParameter) { + entry = ((ai.visma.ssn.predictservice.v1.InferParameter) entry).toBuilder(); + builderMap.put(key, entry); + } + return (ai.visma.ssn.predictservice.v1.InferParameter.Builder) entry; + } + + private java.util.List inputs_ = + java.util.Collections.emptyList(); + private void ensureInputsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + inputs_ = new java.util.ArrayList(inputs_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor, ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.Builder, ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensorOrBuilder> inputsBuilder_; + + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferInputTensor inputs = 5 [json_name = "inputs"]; + */ + public java.util.List getInputsList() { + if (inputsBuilder_ == null) { + return java.util.Collections.unmodifiableList(inputs_); + } else { + return inputsBuilder_.getMessageList(); + } + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferInputTensor inputs = 5 [json_name = "inputs"]; + */ + public int getInputsCount() { + if (inputsBuilder_ == null) { + return inputs_.size(); + } else { + return inputsBuilder_.getCount(); + } + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferInputTensor inputs = 5 [json_name = "inputs"]; + */ + public ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor getInputs(int index) { + if (inputsBuilder_ == null) { + return inputs_.get(index); + } else { + return inputsBuilder_.getMessage(index); + } + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferInputTensor inputs = 5 [json_name = "inputs"]; + */ + public Builder setInputs( + int index, ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.set(index, value); + onChanged(); + } else { + inputsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferInputTensor inputs = 5 [json_name = "inputs"]; + */ + public Builder setInputs( + int index, ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.set(index, builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferInputTensor inputs = 5 [json_name = "inputs"]; + */ + public Builder addInputs(ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.add(value); + onChanged(); + } else { + inputsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferInputTensor inputs = 5 [json_name = "inputs"]; + */ + public Builder addInputs( + int index, ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.add(index, value); + onChanged(); + } else { + inputsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferInputTensor inputs = 5 [json_name = "inputs"]; + */ + public Builder addInputs( + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.add(builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferInputTensor inputs = 5 [json_name = "inputs"]; + */ + public Builder addInputs( + int index, ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.add(index, builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferInputTensor inputs = 5 [json_name = "inputs"]; + */ + public Builder addAllInputs( + java.lang.Iterable values) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputs_); + onChanged(); + } else { + inputsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferInputTensor inputs = 5 [json_name = "inputs"]; + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + inputsBuilder_.clear(); + } + return this; + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferInputTensor inputs = 5 [json_name = "inputs"]; + */ + public Builder removeInputs(int index) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.remove(index); + onChanged(); + } else { + inputsBuilder_.remove(index); + } + return this; + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferInputTensor inputs = 5 [json_name = "inputs"]; + */ + public ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.Builder getInputsBuilder( + int index) { + return getInputsFieldBuilder().getBuilder(index); + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferInputTensor inputs = 5 [json_name = "inputs"]; + */ + public ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensorOrBuilder getInputsOrBuilder( + int index) { + if (inputsBuilder_ == null) { + return inputs_.get(index); } else { + return inputsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferInputTensor inputs = 5 [json_name = "inputs"]; + */ + public java.util.List + getInputsOrBuilderList() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inputs_); + } + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferInputTensor inputs = 5 [json_name = "inputs"]; + */ + public ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.Builder addInputsBuilder() { + return getInputsFieldBuilder().addBuilder( + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.getDefaultInstance()); + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferInputTensor inputs = 5 [json_name = "inputs"]; + */ + public ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.Builder addInputsBuilder( + int index) { + return getInputsFieldBuilder().addBuilder( + index, ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.getDefaultInstance()); + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferInputTensor inputs = 5 [json_name = "inputs"]; + */ + public java.util.List + getInputsBuilderList() { + return getInputsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor, ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.Builder, ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensorOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor, ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.Builder, ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensorOrBuilder>( + inputs_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + private java.util.List outputs_ = + java.util.Collections.emptyList(); + private void ensureOutputsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + outputs_ = new java.util.ArrayList(outputs_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor, ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.Builder, ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensorOrBuilder> outputsBuilder_; + + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor outputs = 6 [json_name = "outputs"]; + */ + public java.util.List getOutputsList() { + if (outputsBuilder_ == null) { + return java.util.Collections.unmodifiableList(outputs_); + } else { + return outputsBuilder_.getMessageList(); + } + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor outputs = 6 [json_name = "outputs"]; + */ + public int getOutputsCount() { + if (outputsBuilder_ == null) { + return outputs_.size(); + } else { + return outputsBuilder_.getCount(); + } + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor outputs = 6 [json_name = "outputs"]; + */ + public ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor getOutputs(int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); + } else { + return outputsBuilder_.getMessage(index); + } + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor outputs = 6 [json_name = "outputs"]; + */ + public Builder setOutputs( + int index, ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.set(index, value); + onChanged(); + } else { + outputsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor outputs = 6 [json_name = "outputs"]; + */ + public Builder setOutputs( + int index, ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.set(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor outputs = 6 [json_name = "outputs"]; + */ + public Builder addOutputs(ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(value); + onChanged(); + } else { + outputsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor outputs = 6 [json_name = "outputs"]; + */ + public Builder addOutputs( + int index, ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(index, value); + onChanged(); + } else { + outputsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor outputs = 6 [json_name = "outputs"]; + */ + public Builder addOutputs( + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor outputs = 6 [json_name = "outputs"]; + */ + public Builder addOutputs( + int index, ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor outputs = 6 [json_name = "outputs"]; + */ + public Builder addAllOutputs( + java.lang.Iterable values) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, outputs_); + onChanged(); + } else { + outputsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor outputs = 6 [json_name = "outputs"]; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + outputsBuilder_.clear(); + } + return this; + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor outputs = 6 [json_name = "outputs"]; + */ + public Builder removeOutputs(int index) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.remove(index); + onChanged(); + } else { + outputsBuilder_.remove(index); + } + return this; + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor outputs = 6 [json_name = "outputs"]; + */ + public ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.Builder getOutputsBuilder( + int index) { + return getOutputsFieldBuilder().getBuilder(index); + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor outputs = 6 [json_name = "outputs"]; + */ + public ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensorOrBuilder getOutputsOrBuilder( + int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); } else { + return outputsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor outputs = 6 [json_name = "outputs"]; + */ + public java.util.List + getOutputsOrBuilderList() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(outputs_); + } + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor outputs = 6 [json_name = "outputs"]; + */ + public ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.Builder addOutputsBuilder() { + return getOutputsFieldBuilder().addBuilder( + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.getDefaultInstance()); + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor outputs = 6 [json_name = "outputs"]; + */ + public ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.Builder addOutputsBuilder( + int index) { + return getOutputsFieldBuilder().addBuilder( + index, ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.getDefaultInstance()); + } + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor outputs = 6 [json_name = "outputs"]; + */ + public java.util.List + getOutputsBuilderList() { + return getOutputsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor, ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.Builder, ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensorOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor, ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.Builder, ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensorOrBuilder>( + outputs_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + + private com.google.protobuf.Internal.ProtobufList rawInputContents_ = emptyList(com.google.protobuf.ByteString.class); + private void ensureRawInputContentsIsMutable() { + if (!rawInputContents_.isModifiable()) { + rawInputContents_ = makeMutableCopy(rawInputContents_); + } + bitField0_ |= 0x00000040; + } + /** + * repeated bytes raw_input_contents = 7 [json_name = "rawInputContents"]; + * @return A list containing the rawInputContents. + */ + public java.util.List + getRawInputContentsList() { + rawInputContents_.makeImmutable(); + return rawInputContents_; + } + /** + * repeated bytes raw_input_contents = 7 [json_name = "rawInputContents"]; + * @return The count of rawInputContents. + */ + public int getRawInputContentsCount() { + return rawInputContents_.size(); + } + /** + * repeated bytes raw_input_contents = 7 [json_name = "rawInputContents"]; + * @param index The index of the element to return. + * @return The rawInputContents at the given index. + */ + public com.google.protobuf.ByteString getRawInputContents(int index) { + return rawInputContents_.get(index); + } + /** + * repeated bytes raw_input_contents = 7 [json_name = "rawInputContents"]; + * @param index The index to set the value at. + * @param value The rawInputContents to set. + * @return This builder for chaining. + */ + public Builder setRawInputContents( + int index, com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + ensureRawInputContentsIsMutable(); + rawInputContents_.set(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * repeated bytes raw_input_contents = 7 [json_name = "rawInputContents"]; + * @param value The rawInputContents to add. + * @return This builder for chaining. + */ + public Builder addRawInputContents(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + ensureRawInputContentsIsMutable(); + rawInputContents_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * repeated bytes raw_input_contents = 7 [json_name = "rawInputContents"]; + * @param values The rawInputContents to add. + * @return This builder for chaining. + */ + public Builder addAllRawInputContents( + java.lang.Iterable values) { + ensureRawInputContentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, rawInputContents_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * repeated bytes raw_input_contents = 7 [json_name = "rawInputContents"]; + * @return This builder for chaining. + */ + public Builder clearRawInputContents() { + rawInputContents_ = emptyList(com.google.protobuf.ByteString.class); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:ssn.predictservice.v1.ModelInferRequest) + } + + // @@protoc_insertion_point(class_scope:ssn.predictservice.v1.ModelInferRequest) + private static final ai.visma.ssn.predictservice.v1.ModelInferRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new ai.visma.ssn.predictservice.v1.ModelInferRequest(); + } + + public static ai.visma.ssn.predictservice.v1.ModelInferRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelInferRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public ai.visma.ssn.predictservice.v1.ModelInferRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/gen/java/ai/visma/ssn/predictservice/v1/ModelInferRequestOrBuilder.java b/gen/java/ai/visma/ssn/predictservice/v1/ModelInferRequestOrBuilder.java new file mode 100644 index 00000000..6d40edf1 --- /dev/null +++ b/gen/java/ai/visma/ssn/predictservice/v1/ModelInferRequestOrBuilder.java @@ -0,0 +1,146 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: ssn/predictservice/v1/predictservice.proto +// Protobuf Java Version: 4.29.3 + +package ai.visma.ssn.predictservice.v1; + +public interface ModelInferRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:ssn.predictservice.v1.ModelInferRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string model_name = 1 [json_name = "modelName"]; + * @return The modelName. + */ + java.lang.String getModelName(); + /** + * string model_name = 1 [json_name = "modelName"]; + * @return The bytes for modelName. + */ + com.google.protobuf.ByteString + getModelNameBytes(); + + /** + * string model_version = 2 [json_name = "modelVersion"]; + * @return The modelVersion. + */ + java.lang.String getModelVersion(); + /** + * string model_version = 2 [json_name = "modelVersion"]; + * @return The bytes for modelVersion. + */ + com.google.protobuf.ByteString + getModelVersionBytes(); + + /** + * string id = 3 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 3 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + int getParametersCount(); + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + boolean containsParameters( + java.lang.String key); + /** + * Use {@link #getParametersMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getParameters(); + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + java.util.Map + getParametersMap(); + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter getParametersOrDefault( + java.lang.String key, + /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter defaultValue); + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + ai.visma.ssn.predictservice.v1.InferParameter getParametersOrThrow( + java.lang.String key); + + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferInputTensor inputs = 5 [json_name = "inputs"]; + */ + java.util.List + getInputsList(); + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferInputTensor inputs = 5 [json_name = "inputs"]; + */ + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensor getInputs(int index); + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferInputTensor inputs = 5 [json_name = "inputs"]; + */ + int getInputsCount(); + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferInputTensor inputs = 5 [json_name = "inputs"]; + */ + java.util.List + getInputsOrBuilderList(); + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferInputTensor inputs = 5 [json_name = "inputs"]; + */ + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferInputTensorOrBuilder getInputsOrBuilder( + int index); + + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor outputs = 6 [json_name = "outputs"]; + */ + java.util.List + getOutputsList(); + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor outputs = 6 [json_name = "outputs"]; + */ + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor getOutputs(int index); + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor outputs = 6 [json_name = "outputs"]; + */ + int getOutputsCount(); + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor outputs = 6 [json_name = "outputs"]; + */ + java.util.List + getOutputsOrBuilderList(); + /** + * repeated .ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor outputs = 6 [json_name = "outputs"]; + */ + ai.visma.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensorOrBuilder getOutputsOrBuilder( + int index); + + /** + * repeated bytes raw_input_contents = 7 [json_name = "rawInputContents"]; + * @return A list containing the rawInputContents. + */ + java.util.List getRawInputContentsList(); + /** + * repeated bytes raw_input_contents = 7 [json_name = "rawInputContents"]; + * @return The count of rawInputContents. + */ + int getRawInputContentsCount(); + /** + * repeated bytes raw_input_contents = 7 [json_name = "rawInputContents"]; + * @param index The index of the element to return. + * @return The rawInputContents at the given index. + */ + com.google.protobuf.ByteString getRawInputContents(int index); +} diff --git a/gen/java/ai/visma/ssn/predictservice/v1/ModelInferResponse.java b/gen/java/ai/visma/ssn/predictservice/v1/ModelInferResponse.java new file mode 100644 index 00000000..c5eec1e3 --- /dev/null +++ b/gen/java/ai/visma/ssn/predictservice/v1/ModelInferResponse.java @@ -0,0 +1,2985 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: ssn/predictservice/v1/predictservice.proto +// Protobuf Java Version: 4.29.3 + +package ai.visma.ssn.predictservice.v1; + +/** + * Protobuf type {@code ssn.predictservice.v1.ModelInferResponse} + */ +public final class ModelInferResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:ssn.predictservice.v1.ModelInferResponse) + ModelInferResponseOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + ModelInferResponse.class.getName()); + } + // Use ModelInferResponse.newBuilder() to construct. + private ModelInferResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ModelInferResponse() { + modelName_ = ""; + modelVersion_ = ""; + id_ = ""; + outputs_ = java.util.Collections.emptyList(); + rawOutputContents_ = emptyList(com.google.protobuf.ByteString.class); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferResponse_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetParameters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + ai.visma.ssn.predictservice.v1.ModelInferResponse.class, ai.visma.ssn.predictservice.v1.ModelInferResponse.Builder.class); + } + + public interface InferOutputTensorOrBuilder extends + // @@protoc_insertion_point(interface_extends:ssn.predictservice.v1.ModelInferResponse.InferOutputTensor) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string datatype = 2 [json_name = "datatype"]; + * @return The datatype. + */ + java.lang.String getDatatype(); + /** + * string datatype = 2 [json_name = "datatype"]; + * @return The bytes for datatype. + */ + com.google.protobuf.ByteString + getDatatypeBytes(); + + /** + * repeated int64 shape = 3 [json_name = "shape"]; + * @return A list containing the shape. + */ + java.util.List getShapeList(); + /** + * repeated int64 shape = 3 [json_name = "shape"]; + * @return The count of shape. + */ + int getShapeCount(); + /** + * repeated int64 shape = 3 [json_name = "shape"]; + * @param index The index of the element to return. + * @return The shape at the given index. + */ + long getShape(int index); + + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + int getParametersCount(); + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + boolean containsParameters( + java.lang.String key); + /** + * Use {@link #getParametersMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getParameters(); + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + java.util.Map + getParametersMap(); + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter getParametersOrDefault( + java.lang.String key, + /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter defaultValue); + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + ai.visma.ssn.predictservice.v1.InferParameter getParametersOrThrow( + java.lang.String key); + + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + * @return Whether the contents field is set. + */ + boolean hasContents(); + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + * @return The contents. + */ + ai.visma.ssn.predictservice.v1.InferTensorContents getContents(); + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + */ + ai.visma.ssn.predictservice.v1.InferTensorContentsOrBuilder getContentsOrBuilder(); + } + /** + * Protobuf type {@code ssn.predictservice.v1.ModelInferResponse.InferOutputTensor} + */ + public static final class InferOutputTensor extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:ssn.predictservice.v1.ModelInferResponse.InferOutputTensor) + InferOutputTensorOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + InferOutputTensor.class.getName()); + } + // Use InferOutputTensor.newBuilder() to construct. + private InferOutputTensor(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private InferOutputTensor() { + name_ = ""; + datatype_ = ""; + shape_ = emptyLongList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferResponse_InferOutputTensor_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetParameters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferResponse_InferOutputTensor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.class, ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATATYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object datatype_ = ""; + /** + * string datatype = 2 [json_name = "datatype"]; + * @return The datatype. + */ + @java.lang.Override + public java.lang.String getDatatype() { + java.lang.Object ref = datatype_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datatype_ = s; + return s; + } + } + /** + * string datatype = 2 [json_name = "datatype"]; + * @return The bytes for datatype. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDatatypeBytes() { + java.lang.Object ref = datatype_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + datatype_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHAPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.LongList shape_ = + emptyLongList(); + /** + * repeated int64 shape = 3 [json_name = "shape"]; + * @return A list containing the shape. + */ + @java.lang.Override + public java.util.List + getShapeList() { + return shape_; + } + /** + * repeated int64 shape = 3 [json_name = "shape"]; + * @return The count of shape. + */ + public int getShapeCount() { + return shape_.size(); + } + /** + * repeated int64 shape = 3 [json_name = "shape"]; + * @param index The index of the element to return. + * @return The shape at the given index. + */ + public long getShape(int index) { + return shape_.getLong(index); + } + private int shapeMemoizedSerializedSize = -1; + + public static final int PARAMETERS_FIELD_NUMBER = 4; + private static final class ParametersDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, ai.visma.ssn.predictservice.v1.InferParameter> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferResponse_InferOutputTensor_ParametersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + ai.visma.ssn.predictservice.v1.InferParameter.getDefaultInstance()); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, ai.visma.ssn.predictservice.v1.InferParameter> parameters_; + private com.google.protobuf.MapField + internalGetParameters() { + if (parameters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParametersDefaultEntryHolder.defaultEntry); + } + return parameters_; + } + public int getParametersCount() { + return internalGetParameters().getMap().size(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public boolean containsParameters( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetParameters().getMap().containsKey(key); + } + /** + * Use {@link #getParametersMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getParameters() { + return getParametersMap(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public java.util.Map getParametersMap() { + return internalGetParameters().getMap(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter getParametersOrDefault( + java.lang.String key, + /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParameters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public ai.visma.ssn.predictservice.v1.InferParameter getParametersOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParameters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CONTENTS_FIELD_NUMBER = 5; + private ai.visma.ssn.predictservice.v1.InferTensorContents contents_; + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + * @return Whether the contents field is set. + */ + @java.lang.Override + public boolean hasContents() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + * @return The contents. + */ + @java.lang.Override + public ai.visma.ssn.predictservice.v1.InferTensorContents getContents() { + return contents_ == null ? ai.visma.ssn.predictservice.v1.InferTensorContents.getDefaultInstance() : contents_; + } + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + */ + @java.lang.Override + public ai.visma.ssn.predictservice.v1.InferTensorContentsOrBuilder getContentsOrBuilder() { + return contents_ == null ? ai.visma.ssn.predictservice.v1.InferTensorContents.getDefaultInstance() : contents_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(datatype_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, datatype_); + } + if (getShapeList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(shapeMemoizedSerializedSize); + } + for (int i = 0; i < shape_.size(); i++) { + output.writeInt64NoTag(shape_.getLong(i)); + } + com.google.protobuf.GeneratedMessage + .serializeStringMapTo( + output, + internalGetParameters(), + ParametersDefaultEntryHolder.defaultEntry, + 4); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getContents()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(datatype_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, datatype_); + } + { + int dataSize = 0; + for (int i = 0; i < shape_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt64SizeNoTag(shape_.getLong(i)); + } + size += dataSize; + if (!getShapeList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + shapeMemoizedSerializedSize = dataSize; + } + for (java.util.Map.Entry entry + : internalGetParameters().getMap().entrySet()) { + com.google.protobuf.MapEntry + parameters__ = ParametersDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, parameters__); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getContents()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor)) { + return super.equals(obj); + } + ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor other = (ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDatatype() + .equals(other.getDatatype())) return false; + if (!getShapeList() + .equals(other.getShapeList())) return false; + if (!internalGetParameters().equals( + other.internalGetParameters())) return false; + if (hasContents() != other.hasContents()) return false; + if (hasContents()) { + if (!getContents() + .equals(other.getContents())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DATATYPE_FIELD_NUMBER; + hash = (53 * hash) + getDatatype().hashCode(); + if (getShapeCount() > 0) { + hash = (37 * hash) + SHAPE_FIELD_NUMBER; + hash = (53 * hash) + getShapeList().hashCode(); + } + if (!internalGetParameters().getMap().isEmpty()) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetParameters().hashCode(); + } + if (hasContents()) { + hash = (37 * hash) + CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getContents().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code ssn.predictservice.v1.ModelInferResponse.InferOutputTensor} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:ssn.predictservice.v1.ModelInferResponse.InferOutputTensor) + ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferResponse_InferOutputTensor_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetParameters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableParameters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferResponse_InferOutputTensor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.class, ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.Builder.class); + } + + // Construct using ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getContentsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + datatype_ = ""; + shape_ = emptyLongList(); + internalGetMutableParameters().clear(); + contents_ = null; + if (contentsBuilder_ != null) { + contentsBuilder_.dispose(); + contentsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferResponse_InferOutputTensor_descriptor; + } + + @java.lang.Override + public ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor getDefaultInstanceForType() { + return ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.getDefaultInstance(); + } + + @java.lang.Override + public ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor build() { + ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor buildPartial() { + ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor result = new ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.datatype_ = datatype_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + shape_.makeImmutable(); + result.shape_ = shape_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.parameters_ = internalGetParameters().build(ParametersDefaultEntryHolder.defaultEntry); + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.contents_ = contentsBuilder_ == null + ? contents_ + : contentsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor) { + return mergeFrom((ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor other) { + if (other == ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDatatype().isEmpty()) { + datatype_ = other.datatype_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.shape_.isEmpty()) { + if (shape_.isEmpty()) { + shape_ = other.shape_; + shape_.makeImmutable(); + bitField0_ |= 0x00000004; + } else { + ensureShapeIsMutable(); + shape_.addAll(other.shape_); + } + onChanged(); + } + internalGetMutableParameters().mergeFrom( + other.internalGetParameters()); + bitField0_ |= 0x00000008; + if (other.hasContents()) { + mergeContents(other.getContents()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + datatype_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + long v = input.readInt64(); + ensureShapeIsMutable(); + shape_.addLong(v); + break; + } // case 24 + case 26: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureShapeIsMutable(); + while (input.getBytesUntilLimit() > 0) { + shape_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + parameters__ = input.readMessage( + ParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableParameters().ensureBuilderMap().put( + parameters__.getKey(), parameters__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getContentsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string name = 1 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string name = 1 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object datatype_ = ""; + /** + * string datatype = 2 [json_name = "datatype"]; + * @return The datatype. + */ + public java.lang.String getDatatype() { + java.lang.Object ref = datatype_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datatype_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string datatype = 2 [json_name = "datatype"]; + * @return The bytes for datatype. + */ + public com.google.protobuf.ByteString + getDatatypeBytes() { + java.lang.Object ref = datatype_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + datatype_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string datatype = 2 [json_name = "datatype"]; + * @param value The datatype to set. + * @return This builder for chaining. + */ + public Builder setDatatype( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + datatype_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string datatype = 2 [json_name = "datatype"]; + * @return This builder for chaining. + */ + public Builder clearDatatype() { + datatype_ = getDefaultInstance().getDatatype(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string datatype = 2 [json_name = "datatype"]; + * @param value The bytes for datatype to set. + * @return This builder for chaining. + */ + public Builder setDatatypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + datatype_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.LongList shape_ = emptyLongList(); + private void ensureShapeIsMutable() { + if (!shape_.isModifiable()) { + shape_ = makeMutableCopy(shape_); + } + bitField0_ |= 0x00000004; + } + /** + * repeated int64 shape = 3 [json_name = "shape"]; + * @return A list containing the shape. + */ + public java.util.List + getShapeList() { + shape_.makeImmutable(); + return shape_; + } + /** + * repeated int64 shape = 3 [json_name = "shape"]; + * @return The count of shape. + */ + public int getShapeCount() { + return shape_.size(); + } + /** + * repeated int64 shape = 3 [json_name = "shape"]; + * @param index The index of the element to return. + * @return The shape at the given index. + */ + public long getShape(int index) { + return shape_.getLong(index); + } + /** + * repeated int64 shape = 3 [json_name = "shape"]; + * @param index The index to set the value at. + * @param value The shape to set. + * @return This builder for chaining. + */ + public Builder setShape( + int index, long value) { + + ensureShapeIsMutable(); + shape_.setLong(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated int64 shape = 3 [json_name = "shape"]; + * @param value The shape to add. + * @return This builder for chaining. + */ + public Builder addShape(long value) { + + ensureShapeIsMutable(); + shape_.addLong(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated int64 shape = 3 [json_name = "shape"]; + * @param values The shape to add. + * @return This builder for chaining. + */ + public Builder addAllShape( + java.lang.Iterable values) { + ensureShapeIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, shape_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated int64 shape = 3 [json_name = "shape"]; + * @return This builder for chaining. + */ + public Builder clearShape() { + shape_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + private static final class ParametersConverter implements com.google.protobuf.MapFieldBuilder.Converter { + @java.lang.Override + public ai.visma.ssn.predictservice.v1.InferParameter build(ai.visma.ssn.predictservice.v1.InferParameterOrBuilder val) { + if (val instanceof ai.visma.ssn.predictservice.v1.InferParameter) { return (ai.visma.ssn.predictservice.v1.InferParameter) val; } + return ((ai.visma.ssn.predictservice.v1.InferParameter.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry defaultEntry() { + return ParametersDefaultEntryHolder.defaultEntry; + } + }; + private static final ParametersConverter parametersConverter = new ParametersConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, ai.visma.ssn.predictservice.v1.InferParameterOrBuilder, ai.visma.ssn.predictservice.v1.InferParameter, ai.visma.ssn.predictservice.v1.InferParameter.Builder> parameters_; + private com.google.protobuf.MapFieldBuilder + internalGetParameters() { + if (parameters_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(parametersConverter); + } + return parameters_; + } + private com.google.protobuf.MapFieldBuilder + internalGetMutableParameters() { + if (parameters_ == null) { + parameters_ = new com.google.protobuf.MapFieldBuilder<>(parametersConverter); + } + bitField0_ |= 0x00000008; + onChanged(); + return parameters_; + } + public int getParametersCount() { + return internalGetParameters().ensureBuilderMap().size(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public boolean containsParameters( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetParameters().ensureBuilderMap().containsKey(key); + } + /** + * Use {@link #getParametersMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getParameters() { + return getParametersMap(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public java.util.Map getParametersMap() { + return internalGetParameters().getImmutableMap(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter getParametersOrDefault( + java.lang.String key, + /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetMutableParameters().ensureBuilderMap(); + return map.containsKey(key) ? parametersConverter.build(map.get(key)) : defaultValue; + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public ai.visma.ssn.predictservice.v1.InferParameter getParametersOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetMutableParameters().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return parametersConverter.build(map.get(key)); + } + public Builder clearParameters() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableParameters().clear(); + return this; + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + public Builder removeParameters( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableParameters().ensureBuilderMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableParameters() { + bitField0_ |= 0x00000008; + return internalGetMutableParameters().ensureMessageMap(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + public Builder putParameters( + java.lang.String key, + ai.visma.ssn.predictservice.v1.InferParameter value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableParameters().ensureBuilderMap() + .put(key, value); + bitField0_ |= 0x00000008; + return this; + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + public Builder putAllParameters( + java.util.Map values) { + for (java.util.Map.Entry e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableParameters().ensureBuilderMap() + .putAll(values); + bitField0_ |= 0x00000008; + return this; + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + public ai.visma.ssn.predictservice.v1.InferParameter.Builder putParametersBuilderIfAbsent( + java.lang.String key) { + java.util.Map builderMap = internalGetMutableParameters().ensureBuilderMap(); + ai.visma.ssn.predictservice.v1.InferParameterOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = ai.visma.ssn.predictservice.v1.InferParameter.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof ai.visma.ssn.predictservice.v1.InferParameter) { + entry = ((ai.visma.ssn.predictservice.v1.InferParameter) entry).toBuilder(); + builderMap.put(key, entry); + } + return (ai.visma.ssn.predictservice.v1.InferParameter.Builder) entry; + } + + private ai.visma.ssn.predictservice.v1.InferTensorContents contents_; + private com.google.protobuf.SingleFieldBuilder< + ai.visma.ssn.predictservice.v1.InferTensorContents, ai.visma.ssn.predictservice.v1.InferTensorContents.Builder, ai.visma.ssn.predictservice.v1.InferTensorContentsOrBuilder> contentsBuilder_; + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + * @return Whether the contents field is set. + */ + public boolean hasContents() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + * @return The contents. + */ + public ai.visma.ssn.predictservice.v1.InferTensorContents getContents() { + if (contentsBuilder_ == null) { + return contents_ == null ? ai.visma.ssn.predictservice.v1.InferTensorContents.getDefaultInstance() : contents_; + } else { + return contentsBuilder_.getMessage(); + } + } + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + */ + public Builder setContents(ai.visma.ssn.predictservice.v1.InferTensorContents value) { + if (contentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + contents_ = value; + } else { + contentsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + */ + public Builder setContents( + ai.visma.ssn.predictservice.v1.InferTensorContents.Builder builderForValue) { + if (contentsBuilder_ == null) { + contents_ = builderForValue.build(); + } else { + contentsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + */ + public Builder mergeContents(ai.visma.ssn.predictservice.v1.InferTensorContents value) { + if (contentsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + contents_ != null && + contents_ != ai.visma.ssn.predictservice.v1.InferTensorContents.getDefaultInstance()) { + getContentsBuilder().mergeFrom(value); + } else { + contents_ = value; + } + } else { + contentsBuilder_.mergeFrom(value); + } + if (contents_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + */ + public Builder clearContents() { + bitField0_ = (bitField0_ & ~0x00000010); + contents_ = null; + if (contentsBuilder_ != null) { + contentsBuilder_.dispose(); + contentsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + */ + public ai.visma.ssn.predictservice.v1.InferTensorContents.Builder getContentsBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getContentsFieldBuilder().getBuilder(); + } + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + */ + public ai.visma.ssn.predictservice.v1.InferTensorContentsOrBuilder getContentsOrBuilder() { + if (contentsBuilder_ != null) { + return contentsBuilder_.getMessageOrBuilder(); + } else { + return contents_ == null ? + ai.visma.ssn.predictservice.v1.InferTensorContents.getDefaultInstance() : contents_; + } + } + /** + * .ssn.predictservice.v1.InferTensorContents contents = 5 [json_name = "contents"]; + */ + private com.google.protobuf.SingleFieldBuilder< + ai.visma.ssn.predictservice.v1.InferTensorContents, ai.visma.ssn.predictservice.v1.InferTensorContents.Builder, ai.visma.ssn.predictservice.v1.InferTensorContentsOrBuilder> + getContentsFieldBuilder() { + if (contentsBuilder_ == null) { + contentsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + ai.visma.ssn.predictservice.v1.InferTensorContents, ai.visma.ssn.predictservice.v1.InferTensorContents.Builder, ai.visma.ssn.predictservice.v1.InferTensorContentsOrBuilder>( + getContents(), + getParentForChildren(), + isClean()); + contents_ = null; + } + return contentsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:ssn.predictservice.v1.ModelInferResponse.InferOutputTensor) + } + + // @@protoc_insertion_point(class_scope:ssn.predictservice.v1.ModelInferResponse.InferOutputTensor) + private static final ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor(); + } + + public static ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InferOutputTensor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int MODEL_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object modelName_ = ""; + /** + * string model_name = 1 [json_name = "modelName"]; + * @return The modelName. + */ + @java.lang.Override + public java.lang.String getModelName() { + java.lang.Object ref = modelName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelName_ = s; + return s; + } + } + /** + * string model_name = 1 [json_name = "modelName"]; + * @return The bytes for modelName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getModelNameBytes() { + java.lang.Object ref = modelName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + modelName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODEL_VERSION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object modelVersion_ = ""; + /** + * string model_version = 2 [json_name = "modelVersion"]; + * @return The modelVersion. + */ + @java.lang.Override + public java.lang.String getModelVersion() { + java.lang.Object ref = modelVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelVersion_ = s; + return s; + } + } + /** + * string model_version = 2 [json_name = "modelVersion"]; + * @return The bytes for modelVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getModelVersionBytes() { + java.lang.Object ref = modelVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + modelVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 3 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * string id = 3 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMETERS_FIELD_NUMBER = 4; + private static final class ParametersDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, ai.visma.ssn.predictservice.v1.InferParameter> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferResponse_ParametersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + ai.visma.ssn.predictservice.v1.InferParameter.getDefaultInstance()); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, ai.visma.ssn.predictservice.v1.InferParameter> parameters_; + private com.google.protobuf.MapField + internalGetParameters() { + if (parameters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParametersDefaultEntryHolder.defaultEntry); + } + return parameters_; + } + public int getParametersCount() { + return internalGetParameters().getMap().size(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public boolean containsParameters( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetParameters().getMap().containsKey(key); + } + /** + * Use {@link #getParametersMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getParameters() { + return getParametersMap(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public java.util.Map getParametersMap() { + return internalGetParameters().getMap(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter getParametersOrDefault( + java.lang.String key, + /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParameters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public ai.visma.ssn.predictservice.v1.InferParameter getParametersOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParameters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int OUTPUTS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private java.util.List outputs_; + /** + * repeated .ssn.predictservice.v1.ModelInferResponse.InferOutputTensor outputs = 5 [json_name = "outputs"]; + */ + @java.lang.Override + public java.util.List getOutputsList() { + return outputs_; + } + /** + * repeated .ssn.predictservice.v1.ModelInferResponse.InferOutputTensor outputs = 5 [json_name = "outputs"]; + */ + @java.lang.Override + public java.util.List + getOutputsOrBuilderList() { + return outputs_; + } + /** + * repeated .ssn.predictservice.v1.ModelInferResponse.InferOutputTensor outputs = 5 [json_name = "outputs"]; + */ + @java.lang.Override + public int getOutputsCount() { + return outputs_.size(); + } + /** + * repeated .ssn.predictservice.v1.ModelInferResponse.InferOutputTensor outputs = 5 [json_name = "outputs"]; + */ + @java.lang.Override + public ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor getOutputs(int index) { + return outputs_.get(index); + } + /** + * repeated .ssn.predictservice.v1.ModelInferResponse.InferOutputTensor outputs = 5 [json_name = "outputs"]; + */ + @java.lang.Override + public ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensorOrBuilder getOutputsOrBuilder( + int index) { + return outputs_.get(index); + } + + public static final int RAW_OUTPUT_CONTENTS_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.ProtobufList rawOutputContents_ = + emptyList(com.google.protobuf.ByteString.class); + /** + * repeated bytes raw_output_contents = 6 [json_name = "rawOutputContents"]; + * @return A list containing the rawOutputContents. + */ + @java.lang.Override + public java.util.List + getRawOutputContentsList() { + return rawOutputContents_; + } + /** + * repeated bytes raw_output_contents = 6 [json_name = "rawOutputContents"]; + * @return The count of rawOutputContents. + */ + public int getRawOutputContentsCount() { + return rawOutputContents_.size(); + } + /** + * repeated bytes raw_output_contents = 6 [json_name = "rawOutputContents"]; + * @param index The index of the element to return. + * @return The rawOutputContents at the given index. + */ + public com.google.protobuf.ByteString getRawOutputContents(int index) { + return rawOutputContents_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, modelName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, modelVersion_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, id_); + } + com.google.protobuf.GeneratedMessage + .serializeStringMapTo( + output, + internalGetParameters(), + ParametersDefaultEntryHolder.defaultEntry, + 4); + for (int i = 0; i < outputs_.size(); i++) { + output.writeMessage(5, outputs_.get(i)); + } + for (int i = 0; i < rawOutputContents_.size(); i++) { + output.writeBytes(6, rawOutputContents_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, modelName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, modelVersion_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, id_); + } + for (java.util.Map.Entry entry + : internalGetParameters().getMap().entrySet()) { + com.google.protobuf.MapEntry + parameters__ = ParametersDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, parameters__); + } + for (int i = 0; i < outputs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, outputs_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < rawOutputContents_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(rawOutputContents_.get(i)); + } + size += dataSize; + size += 1 * getRawOutputContentsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof ai.visma.ssn.predictservice.v1.ModelInferResponse)) { + return super.equals(obj); + } + ai.visma.ssn.predictservice.v1.ModelInferResponse other = (ai.visma.ssn.predictservice.v1.ModelInferResponse) obj; + + if (!getModelName() + .equals(other.getModelName())) return false; + if (!getModelVersion() + .equals(other.getModelVersion())) return false; + if (!getId() + .equals(other.getId())) return false; + if (!internalGetParameters().equals( + other.internalGetParameters())) return false; + if (!getOutputsList() + .equals(other.getOutputsList())) return false; + if (!getRawOutputContentsList() + .equals(other.getRawOutputContentsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODEL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getModelName().hashCode(); + hash = (37 * hash) + MODEL_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getModelVersion().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (!internalGetParameters().getMap().isEmpty()) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetParameters().hashCode(); + } + if (getOutputsCount() > 0) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputsList().hashCode(); + } + if (getRawOutputContentsCount() > 0) { + hash = (37 * hash) + RAW_OUTPUT_CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getRawOutputContentsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static ai.visma.ssn.predictservice.v1.ModelInferResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.predictservice.v1.ModelInferResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.predictservice.v1.ModelInferResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.predictservice.v1.ModelInferResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.predictservice.v1.ModelInferResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.predictservice.v1.ModelInferResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.predictservice.v1.ModelInferResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static ai.visma.ssn.predictservice.v1.ModelInferResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static ai.visma.ssn.predictservice.v1.ModelInferResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static ai.visma.ssn.predictservice.v1.ModelInferResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static ai.visma.ssn.predictservice.v1.ModelInferResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static ai.visma.ssn.predictservice.v1.ModelInferResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ai.visma.ssn.predictservice.v1.ModelInferResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code ssn.predictservice.v1.ModelInferResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:ssn.predictservice.v1.ModelInferResponse) + ai.visma.ssn.predictservice.v1.ModelInferResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferResponse_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetParameters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableParameters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + ai.visma.ssn.predictservice.v1.ModelInferResponse.class, ai.visma.ssn.predictservice.v1.ModelInferResponse.Builder.class); + } + + // Construct using ai.visma.ssn.predictservice.v1.ModelInferResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + modelName_ = ""; + modelVersion_ = ""; + id_ = ""; + internalGetMutableParameters().clear(); + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + } else { + outputs_ = null; + outputsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + rawOutputContents_ = emptyList(com.google.protobuf.ByteString.class); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.internal_static_ssn_predictservice_v1_ModelInferResponse_descriptor; + } + + @java.lang.Override + public ai.visma.ssn.predictservice.v1.ModelInferResponse getDefaultInstanceForType() { + return ai.visma.ssn.predictservice.v1.ModelInferResponse.getDefaultInstance(); + } + + @java.lang.Override + public ai.visma.ssn.predictservice.v1.ModelInferResponse build() { + ai.visma.ssn.predictservice.v1.ModelInferResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public ai.visma.ssn.predictservice.v1.ModelInferResponse buildPartial() { + ai.visma.ssn.predictservice.v1.ModelInferResponse result = new ai.visma.ssn.predictservice.v1.ModelInferResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(ai.visma.ssn.predictservice.v1.ModelInferResponse result) { + if (outputsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + outputs_ = java.util.Collections.unmodifiableList(outputs_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.build(); + } + } + + private void buildPartial0(ai.visma.ssn.predictservice.v1.ModelInferResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelName_ = modelName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.modelVersion_ = modelVersion_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.parameters_ = internalGetParameters().build(ParametersDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + rawOutputContents_.makeImmutable(); + result.rawOutputContents_ = rawOutputContents_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof ai.visma.ssn.predictservice.v1.ModelInferResponse) { + return mergeFrom((ai.visma.ssn.predictservice.v1.ModelInferResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(ai.visma.ssn.predictservice.v1.ModelInferResponse other) { + if (other == ai.visma.ssn.predictservice.v1.ModelInferResponse.getDefaultInstance()) return this; + if (!other.getModelName().isEmpty()) { + modelName_ = other.modelName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getModelVersion().isEmpty()) { + modelVersion_ = other.modelVersion_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000004; + onChanged(); + } + internalGetMutableParameters().mergeFrom( + other.internalGetParameters()); + bitField0_ |= 0x00000008; + if (outputsBuilder_ == null) { + if (!other.outputs_.isEmpty()) { + if (outputs_.isEmpty()) { + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureOutputsIsMutable(); + outputs_.addAll(other.outputs_); + } + onChanged(); + } + } else { + if (!other.outputs_.isEmpty()) { + if (outputsBuilder_.isEmpty()) { + outputsBuilder_.dispose(); + outputsBuilder_ = null; + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000010); + outputsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getOutputsFieldBuilder() : null; + } else { + outputsBuilder_.addAllMessages(other.outputs_); + } + } + } + if (!other.rawOutputContents_.isEmpty()) { + if (rawOutputContents_.isEmpty()) { + rawOutputContents_ = other.rawOutputContents_; + rawOutputContents_.makeImmutable(); + bitField0_ |= 0x00000020; + } else { + ensureRawOutputContentsIsMutable(); + rawOutputContents_.addAll(other.rawOutputContents_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + modelName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + modelVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + parameters__ = input.readMessage( + ParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableParameters().ensureBuilderMap().put( + parameters__.getKey(), parameters__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor m = + input.readMessage( + ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.parser(), + extensionRegistry); + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(m); + } else { + outputsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: { + com.google.protobuf.ByteString v = input.readBytes(); + ensureRawOutputContentsIsMutable(); + rawOutputContents_.add(v); + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object modelName_ = ""; + /** + * string model_name = 1 [json_name = "modelName"]; + * @return The modelName. + */ + public java.lang.String getModelName() { + java.lang.Object ref = modelName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string model_name = 1 [json_name = "modelName"]; + * @return The bytes for modelName. + */ + public com.google.protobuf.ByteString + getModelNameBytes() { + java.lang.Object ref = modelName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + modelName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string model_name = 1 [json_name = "modelName"]; + * @param value The modelName to set. + * @return This builder for chaining. + */ + public Builder setModelName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + modelName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string model_name = 1 [json_name = "modelName"]; + * @return This builder for chaining. + */ + public Builder clearModelName() { + modelName_ = getDefaultInstance().getModelName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string model_name = 1 [json_name = "modelName"]; + * @param value The bytes for modelName to set. + * @return This builder for chaining. + */ + public Builder setModelNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + modelName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object modelVersion_ = ""; + /** + * string model_version = 2 [json_name = "modelVersion"]; + * @return The modelVersion. + */ + public java.lang.String getModelVersion() { + java.lang.Object ref = modelVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string model_version = 2 [json_name = "modelVersion"]; + * @return The bytes for modelVersion. + */ + public com.google.protobuf.ByteString + getModelVersionBytes() { + java.lang.Object ref = modelVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + modelVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string model_version = 2 [json_name = "modelVersion"]; + * @param value The modelVersion to set. + * @return This builder for chaining. + */ + public Builder setModelVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + modelVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string model_version = 2 [json_name = "modelVersion"]; + * @return This builder for chaining. + */ + public Builder clearModelVersion() { + modelVersion_ = getDefaultInstance().getModelVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string model_version = 2 [json_name = "modelVersion"]; + * @param value The bytes for modelVersion to set. + * @return This builder for chaining. + */ + public Builder setModelVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + modelVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object id_ = ""; + /** + * string id = 3 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 3 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 3 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string id = 3 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string id = 3 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private static final class ParametersConverter implements com.google.protobuf.MapFieldBuilder.Converter { + @java.lang.Override + public ai.visma.ssn.predictservice.v1.InferParameter build(ai.visma.ssn.predictservice.v1.InferParameterOrBuilder val) { + if (val instanceof ai.visma.ssn.predictservice.v1.InferParameter) { return (ai.visma.ssn.predictservice.v1.InferParameter) val; } + return ((ai.visma.ssn.predictservice.v1.InferParameter.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry defaultEntry() { + return ParametersDefaultEntryHolder.defaultEntry; + } + }; + private static final ParametersConverter parametersConverter = new ParametersConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, ai.visma.ssn.predictservice.v1.InferParameterOrBuilder, ai.visma.ssn.predictservice.v1.InferParameter, ai.visma.ssn.predictservice.v1.InferParameter.Builder> parameters_; + private com.google.protobuf.MapFieldBuilder + internalGetParameters() { + if (parameters_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(parametersConverter); + } + return parameters_; + } + private com.google.protobuf.MapFieldBuilder + internalGetMutableParameters() { + if (parameters_ == null) { + parameters_ = new com.google.protobuf.MapFieldBuilder<>(parametersConverter); + } + bitField0_ |= 0x00000008; + onChanged(); + return parameters_; + } + public int getParametersCount() { + return internalGetParameters().ensureBuilderMap().size(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public boolean containsParameters( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetParameters().ensureBuilderMap().containsKey(key); + } + /** + * Use {@link #getParametersMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getParameters() { + return getParametersMap(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public java.util.Map getParametersMap() { + return internalGetParameters().getImmutableMap(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter getParametersOrDefault( + java.lang.String key, + /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetMutableParameters().ensureBuilderMap(); + return map.containsKey(key) ? parametersConverter.build(map.get(key)) : defaultValue; + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + @java.lang.Override + public ai.visma.ssn.predictservice.v1.InferParameter getParametersOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetMutableParameters().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return parametersConverter.build(map.get(key)); + } + public Builder clearParameters() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableParameters().clear(); + return this; + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + public Builder removeParameters( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableParameters().ensureBuilderMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableParameters() { + bitField0_ |= 0x00000008; + return internalGetMutableParameters().ensureMessageMap(); + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + public Builder putParameters( + java.lang.String key, + ai.visma.ssn.predictservice.v1.InferParameter value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableParameters().ensureBuilderMap() + .put(key, value); + bitField0_ |= 0x00000008; + return this; + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + public Builder putAllParameters( + java.util.Map values) { + for (java.util.Map.Entry e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableParameters().ensureBuilderMap() + .putAll(values); + bitField0_ |= 0x00000008; + return this; + } + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + public ai.visma.ssn.predictservice.v1.InferParameter.Builder putParametersBuilderIfAbsent( + java.lang.String key) { + java.util.Map builderMap = internalGetMutableParameters().ensureBuilderMap(); + ai.visma.ssn.predictservice.v1.InferParameterOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = ai.visma.ssn.predictservice.v1.InferParameter.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof ai.visma.ssn.predictservice.v1.InferParameter) { + entry = ((ai.visma.ssn.predictservice.v1.InferParameter) entry).toBuilder(); + builderMap.put(key, entry); + } + return (ai.visma.ssn.predictservice.v1.InferParameter.Builder) entry; + } + + private java.util.List outputs_ = + java.util.Collections.emptyList(); + private void ensureOutputsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + outputs_ = new java.util.ArrayList(outputs_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor, ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.Builder, ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensorOrBuilder> outputsBuilder_; + + /** + * repeated .ssn.predictservice.v1.ModelInferResponse.InferOutputTensor outputs = 5 [json_name = "outputs"]; + */ + public java.util.List getOutputsList() { + if (outputsBuilder_ == null) { + return java.util.Collections.unmodifiableList(outputs_); + } else { + return outputsBuilder_.getMessageList(); + } + } + /** + * repeated .ssn.predictservice.v1.ModelInferResponse.InferOutputTensor outputs = 5 [json_name = "outputs"]; + */ + public int getOutputsCount() { + if (outputsBuilder_ == null) { + return outputs_.size(); + } else { + return outputsBuilder_.getCount(); + } + } + /** + * repeated .ssn.predictservice.v1.ModelInferResponse.InferOutputTensor outputs = 5 [json_name = "outputs"]; + */ + public ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor getOutputs(int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); + } else { + return outputsBuilder_.getMessage(index); + } + } + /** + * repeated .ssn.predictservice.v1.ModelInferResponse.InferOutputTensor outputs = 5 [json_name = "outputs"]; + */ + public Builder setOutputs( + int index, ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.set(index, value); + onChanged(); + } else { + outputsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .ssn.predictservice.v1.ModelInferResponse.InferOutputTensor outputs = 5 [json_name = "outputs"]; + */ + public Builder setOutputs( + int index, ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.set(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .ssn.predictservice.v1.ModelInferResponse.InferOutputTensor outputs = 5 [json_name = "outputs"]; + */ + public Builder addOutputs(ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(value); + onChanged(); + } else { + outputsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .ssn.predictservice.v1.ModelInferResponse.InferOutputTensor outputs = 5 [json_name = "outputs"]; + */ + public Builder addOutputs( + int index, ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(index, value); + onChanged(); + } else { + outputsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .ssn.predictservice.v1.ModelInferResponse.InferOutputTensor outputs = 5 [json_name = "outputs"]; + */ + public Builder addOutputs( + ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .ssn.predictservice.v1.ModelInferResponse.InferOutputTensor outputs = 5 [json_name = "outputs"]; + */ + public Builder addOutputs( + int index, ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .ssn.predictservice.v1.ModelInferResponse.InferOutputTensor outputs = 5 [json_name = "outputs"]; + */ + public Builder addAllOutputs( + java.lang.Iterable values) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, outputs_); + onChanged(); + } else { + outputsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .ssn.predictservice.v1.ModelInferResponse.InferOutputTensor outputs = 5 [json_name = "outputs"]; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + outputsBuilder_.clear(); + } + return this; + } + /** + * repeated .ssn.predictservice.v1.ModelInferResponse.InferOutputTensor outputs = 5 [json_name = "outputs"]; + */ + public Builder removeOutputs(int index) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.remove(index); + onChanged(); + } else { + outputsBuilder_.remove(index); + } + return this; + } + /** + * repeated .ssn.predictservice.v1.ModelInferResponse.InferOutputTensor outputs = 5 [json_name = "outputs"]; + */ + public ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.Builder getOutputsBuilder( + int index) { + return getOutputsFieldBuilder().getBuilder(index); + } + /** + * repeated .ssn.predictservice.v1.ModelInferResponse.InferOutputTensor outputs = 5 [json_name = "outputs"]; + */ + public ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensorOrBuilder getOutputsOrBuilder( + int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); } else { + return outputsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .ssn.predictservice.v1.ModelInferResponse.InferOutputTensor outputs = 5 [json_name = "outputs"]; + */ + public java.util.List + getOutputsOrBuilderList() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(outputs_); + } + } + /** + * repeated .ssn.predictservice.v1.ModelInferResponse.InferOutputTensor outputs = 5 [json_name = "outputs"]; + */ + public ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.Builder addOutputsBuilder() { + return getOutputsFieldBuilder().addBuilder( + ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.getDefaultInstance()); + } + /** + * repeated .ssn.predictservice.v1.ModelInferResponse.InferOutputTensor outputs = 5 [json_name = "outputs"]; + */ + public ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.Builder addOutputsBuilder( + int index) { + return getOutputsFieldBuilder().addBuilder( + index, ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.getDefaultInstance()); + } + /** + * repeated .ssn.predictservice.v1.ModelInferResponse.InferOutputTensor outputs = 5 [json_name = "outputs"]; + */ + public java.util.List + getOutputsBuilderList() { + return getOutputsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor, ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.Builder, ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensorOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor, ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.Builder, ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensorOrBuilder>( + outputs_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + + private com.google.protobuf.Internal.ProtobufList rawOutputContents_ = emptyList(com.google.protobuf.ByteString.class); + private void ensureRawOutputContentsIsMutable() { + if (!rawOutputContents_.isModifiable()) { + rawOutputContents_ = makeMutableCopy(rawOutputContents_); + } + bitField0_ |= 0x00000020; + } + /** + * repeated bytes raw_output_contents = 6 [json_name = "rawOutputContents"]; + * @return A list containing the rawOutputContents. + */ + public java.util.List + getRawOutputContentsList() { + rawOutputContents_.makeImmutable(); + return rawOutputContents_; + } + /** + * repeated bytes raw_output_contents = 6 [json_name = "rawOutputContents"]; + * @return The count of rawOutputContents. + */ + public int getRawOutputContentsCount() { + return rawOutputContents_.size(); + } + /** + * repeated bytes raw_output_contents = 6 [json_name = "rawOutputContents"]; + * @param index The index of the element to return. + * @return The rawOutputContents at the given index. + */ + public com.google.protobuf.ByteString getRawOutputContents(int index) { + return rawOutputContents_.get(index); + } + /** + * repeated bytes raw_output_contents = 6 [json_name = "rawOutputContents"]; + * @param index The index to set the value at. + * @param value The rawOutputContents to set. + * @return This builder for chaining. + */ + public Builder setRawOutputContents( + int index, com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + ensureRawOutputContentsIsMutable(); + rawOutputContents_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * repeated bytes raw_output_contents = 6 [json_name = "rawOutputContents"]; + * @param value The rawOutputContents to add. + * @return This builder for chaining. + */ + public Builder addRawOutputContents(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + ensureRawOutputContentsIsMutable(); + rawOutputContents_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * repeated bytes raw_output_contents = 6 [json_name = "rawOutputContents"]; + * @param values The rawOutputContents to add. + * @return This builder for chaining. + */ + public Builder addAllRawOutputContents( + java.lang.Iterable values) { + ensureRawOutputContentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, rawOutputContents_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * repeated bytes raw_output_contents = 6 [json_name = "rawOutputContents"]; + * @return This builder for chaining. + */ + public Builder clearRawOutputContents() { + rawOutputContents_ = emptyList(com.google.protobuf.ByteString.class); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:ssn.predictservice.v1.ModelInferResponse) + } + + // @@protoc_insertion_point(class_scope:ssn.predictservice.v1.ModelInferResponse) + private static final ai.visma.ssn.predictservice.v1.ModelInferResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new ai.visma.ssn.predictservice.v1.ModelInferResponse(); + } + + public static ai.visma.ssn.predictservice.v1.ModelInferResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelInferResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public ai.visma.ssn.predictservice.v1.ModelInferResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/gen/java/ai/visma/ssn/predictservice/v1/ModelInferResponseOrBuilder.java b/gen/java/ai/visma/ssn/predictservice/v1/ModelInferResponseOrBuilder.java new file mode 100644 index 00000000..a4c56206 --- /dev/null +++ b/gen/java/ai/visma/ssn/predictservice/v1/ModelInferResponseOrBuilder.java @@ -0,0 +1,122 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: ssn/predictservice/v1/predictservice.proto +// Protobuf Java Version: 4.29.3 + +package ai.visma.ssn.predictservice.v1; + +public interface ModelInferResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:ssn.predictservice.v1.ModelInferResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * string model_name = 1 [json_name = "modelName"]; + * @return The modelName. + */ + java.lang.String getModelName(); + /** + * string model_name = 1 [json_name = "modelName"]; + * @return The bytes for modelName. + */ + com.google.protobuf.ByteString + getModelNameBytes(); + + /** + * string model_version = 2 [json_name = "modelVersion"]; + * @return The modelVersion. + */ + java.lang.String getModelVersion(); + /** + * string model_version = 2 [json_name = "modelVersion"]; + * @return The bytes for modelVersion. + */ + com.google.protobuf.ByteString + getModelVersionBytes(); + + /** + * string id = 3 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 3 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + int getParametersCount(); + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + boolean containsParameters( + java.lang.String key); + /** + * Use {@link #getParametersMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getParameters(); + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + java.util.Map + getParametersMap(); + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter getParametersOrDefault( + java.lang.String key, + /* nullable */ +ai.visma.ssn.predictservice.v1.InferParameter defaultValue); + /** + * map<string, .ssn.predictservice.v1.InferParameter> parameters = 4 [json_name = "parameters"]; + */ + ai.visma.ssn.predictservice.v1.InferParameter getParametersOrThrow( + java.lang.String key); + + /** + * repeated .ssn.predictservice.v1.ModelInferResponse.InferOutputTensor outputs = 5 [json_name = "outputs"]; + */ + java.util.List + getOutputsList(); + /** + * repeated .ssn.predictservice.v1.ModelInferResponse.InferOutputTensor outputs = 5 [json_name = "outputs"]; + */ + ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor getOutputs(int index); + /** + * repeated .ssn.predictservice.v1.ModelInferResponse.InferOutputTensor outputs = 5 [json_name = "outputs"]; + */ + int getOutputsCount(); + /** + * repeated .ssn.predictservice.v1.ModelInferResponse.InferOutputTensor outputs = 5 [json_name = "outputs"]; + */ + java.util.List + getOutputsOrBuilderList(); + /** + * repeated .ssn.predictservice.v1.ModelInferResponse.InferOutputTensor outputs = 5 [json_name = "outputs"]; + */ + ai.visma.ssn.predictservice.v1.ModelInferResponse.InferOutputTensorOrBuilder getOutputsOrBuilder( + int index); + + /** + * repeated bytes raw_output_contents = 6 [json_name = "rawOutputContents"]; + * @return A list containing the rawOutputContents. + */ + java.util.List getRawOutputContentsList(); + /** + * repeated bytes raw_output_contents = 6 [json_name = "rawOutputContents"]; + * @return The count of rawOutputContents. + */ + int getRawOutputContentsCount(); + /** + * repeated bytes raw_output_contents = 6 [json_name = "rawOutputContents"]; + * @param index The index of the element to return. + * @return The rawOutputContents at the given index. + */ + com.google.protobuf.ByteString getRawOutputContents(int index); +} diff --git a/gen/java/ai/visma/ssn/predictservice/v1/PredictServiceGrpc.java b/gen/java/ai/visma/ssn/predictservice/v1/PredictServiceGrpc.java new file mode 100644 index 00000000..05386739 --- /dev/null +++ b/gen/java/ai/visma/ssn/predictservice/v1/PredictServiceGrpc.java @@ -0,0 +1,332 @@ +package ai.visma.ssn.predictservice.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.70.0)", + comments = "Source: ssn/predictservice/v1/predictservice.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class PredictServiceGrpc { + + private PredictServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "ssn.predictservice.v1.PredictService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getPredictMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Predict", + requestType = ai.visma.ssn.predictservice.v1.ModelInferRequest.class, + responseType = ai.visma.ssn.predictservice.v1.ModelInferResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getPredictMethod() { + io.grpc.MethodDescriptor getPredictMethod; + if ((getPredictMethod = PredictServiceGrpc.getPredictMethod) == null) { + synchronized (PredictServiceGrpc.class) { + if ((getPredictMethod = PredictServiceGrpc.getPredictMethod) == null) { + PredictServiceGrpc.getPredictMethod = getPredictMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Predict")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + ai.visma.ssn.predictservice.v1.ModelInferRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + ai.visma.ssn.predictservice.v1.ModelInferResponse.getDefaultInstance())) + .setSchemaDescriptor(new PredictServiceMethodDescriptorSupplier("Predict")) + .build(); + } + } + } + return getPredictMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static PredictServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PredictServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PredictServiceStub(channel, callOptions); + } + }; + return PredictServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports all types of calls on the service + */ + public static PredictServiceBlockingV2Stub newBlockingV2Stub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PredictServiceBlockingV2Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PredictServiceBlockingV2Stub(channel, callOptions); + } + }; + return PredictServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static PredictServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PredictServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PredictServiceBlockingStub(channel, callOptions); + } + }; + return PredictServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static PredictServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PredictServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PredictServiceFutureStub(channel, callOptions); + } + }; + return PredictServiceFutureStub.newStub(factory, channel); + } + + /** + */ + public interface AsyncService { + + /** + */ + default void predict(ai.visma.ssn.predictservice.v1.ModelInferRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPredictMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service PredictService. + */ + public static abstract class PredictServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return PredictServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service PredictService. + */ + public static final class PredictServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private PredictServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PredictServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PredictServiceStub(channel, callOptions); + } + + /** + */ + public void predict(ai.visma.ssn.predictservice.v1.ModelInferRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPredictMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service PredictService. + */ + public static final class PredictServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private PredictServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PredictServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PredictServiceBlockingV2Stub(channel, callOptions); + } + + /** + */ + public ai.visma.ssn.predictservice.v1.ModelInferResponse predict(ai.visma.ssn.predictservice.v1.ModelInferRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPredictMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service PredictService. + */ + public static final class PredictServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private PredictServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PredictServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PredictServiceBlockingStub(channel, callOptions); + } + + /** + */ + public ai.visma.ssn.predictservice.v1.ModelInferResponse predict(ai.visma.ssn.predictservice.v1.ModelInferRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPredictMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service PredictService. + */ + public static final class PredictServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private PredictServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PredictServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PredictServiceFutureStub(channel, callOptions); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture predict( + ai.visma.ssn.predictservice.v1.ModelInferRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPredictMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_PREDICT = 0; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_PREDICT: + serviceImpl.predict((ai.visma.ssn.predictservice.v1.ModelInferRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getPredictMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + ai.visma.ssn.predictservice.v1.ModelInferRequest, + ai.visma.ssn.predictservice.v1.ModelInferResponse>( + service, METHODID_PREDICT))) + .build(); + } + + private static abstract class PredictServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + PredictServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return ai.visma.ssn.predictservice.v1.PredictserviceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("PredictService"); + } + } + + private static final class PredictServiceFileDescriptorSupplier + extends PredictServiceBaseDescriptorSupplier { + PredictServiceFileDescriptorSupplier() {} + } + + private static final class PredictServiceMethodDescriptorSupplier + extends PredictServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + PredictServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (PredictServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new PredictServiceFileDescriptorSupplier()) + .addMethod(getPredictMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/gen/java/ai/visma/ssn/predictservice/v1/PredictserviceProto.java b/gen/java/ai/visma/ssn/predictservice/v1/PredictserviceProto.java new file mode 100644 index 00000000..f30a3ab6 --- /dev/null +++ b/gen/java/ai/visma/ssn/predictservice/v1/PredictserviceProto.java @@ -0,0 +1,252 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: ssn/predictservice/v1/predictservice.proto +// Protobuf Java Version: 4.29.3 + +package ai.visma.ssn.predictservice.v1; + +public final class PredictserviceProto { + private PredictserviceProto() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PredictserviceProto.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_ssn_predictservice_v1_InferParameter_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ssn_predictservice_v1_InferParameter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_ssn_predictservice_v1_InferTensorContents_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ssn_predictservice_v1_InferTensorContents_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_ssn_predictservice_v1_ModelInferRequest_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ssn_predictservice_v1_ModelInferRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_ssn_predictservice_v1_ModelInferRequest_InferInputTensor_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ssn_predictservice_v1_ModelInferRequest_InferInputTensor_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_ssn_predictservice_v1_ModelInferRequest_InferInputTensor_ParametersEntry_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ssn_predictservice_v1_ModelInferRequest_InferInputTensor_ParametersEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_ssn_predictservice_v1_ModelInferRequest_InferRequestedOutputTensor_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ssn_predictservice_v1_ModelInferRequest_InferRequestedOutputTensor_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_ssn_predictservice_v1_ModelInferRequest_InferRequestedOutputTensor_ParametersEntry_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ssn_predictservice_v1_ModelInferRequest_InferRequestedOutputTensor_ParametersEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_ssn_predictservice_v1_ModelInferRequest_ParametersEntry_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ssn_predictservice_v1_ModelInferRequest_ParametersEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_ssn_predictservice_v1_ModelInferResponse_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ssn_predictservice_v1_ModelInferResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_ssn_predictservice_v1_ModelInferResponse_InferOutputTensor_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ssn_predictservice_v1_ModelInferResponse_InferOutputTensor_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_ssn_predictservice_v1_ModelInferResponse_InferOutputTensor_ParametersEntry_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ssn_predictservice_v1_ModelInferResponse_InferOutputTensor_ParametersEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_ssn_predictservice_v1_ModelInferResponse_ParametersEntry_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ssn_predictservice_v1_ModelInferResponse_ParametersEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n*ssn/predictservice/v1/predictservice.p" + + "roto\022\025ssn.predictservice.v1\"\327\001\n\016InferPar" + + "ameter\022\037\n\nbool_param\030\001 \001(\010H\000R\tboolParam\022" + + "!\n\013int64_param\030\002 \001(\003H\000R\nint64Param\022#\n\014st" + + "ring_param\030\003 \001(\tH\000R\013stringParam\022#\n\014doubl" + + "e_param\030\004 \001(\001H\000R\013doubleParam\022#\n\014uint64_p" + + "aram\030\005 \001(\004H\000R\013uint64ParamB\022\n\020parameter_c" + + "hoice\"\303\002\n\023InferTensorContents\022#\n\rbool_co" + + "ntents\030\001 \003(\010R\014boolContents\022!\n\014int_conten" + + "ts\030\002 \003(\005R\013intContents\022%\n\016int64_contents\030" + + "\003 \003(\003R\rint64Contents\022#\n\ruint_contents\030\004 " + + "\003(\rR\014uintContents\022\'\n\017uint64_contents\030\005 \003" + + "(\004R\016uint64Contents\022#\n\rfp32_contents\030\006 \003(" + + "\002R\014fp32Contents\022#\n\rfp64_contents\030\007 \003(\001R\014" + + "fp64Contents\022%\n\016bytes_contents\030\010 \003(\014R\rby" + + "tesContents\"\211\t\n\021ModelInferRequest\022\035\n\nmod" + + "el_name\030\001 \001(\tR\tmodelName\022#\n\rmodel_versio" + + "n\030\002 \001(\tR\014modelVersion\022\016\n\002id\030\003 \001(\tR\002id\022X\n" + + "\nparameters\030\004 \003(\01328.ssn.predictservice.v" + + "1.ModelInferRequest.ParametersEntryR\npar" + + "ameters\022Q\n\006inputs\030\005 \003(\01329.ssn.predictser" + + "vice.v1.ModelInferRequest.InferInputTens" + + "orR\006inputs\022]\n\007outputs\030\006 \003(\0132C.ssn.predic" + + "tservice.v1.ModelInferRequest.InferReque" + + "stedOutputTensorR\007outputs\022,\n\022raw_input_c" + + "ontents\030\007 \003(\014R\020rawInputContents\032\361\002\n\020Infe" + + "rInputTensor\022\022\n\004name\030\001 \001(\tR\004name\022\032\n\010data" + + "type\030\002 \001(\tR\010datatype\022\024\n\005shape\030\003 \003(\003R\005sha" + + "pe\022i\n\nparameters\030\004 \003(\0132I.ssn.predictserv" + + "ice.v1.ModelInferRequest.InferInputTenso" + + "r.ParametersEntryR\nparameters\022F\n\010content" + + "s\030\005 \001(\0132*.ssn.predictservice.v1.InferTen" + + "sorContentsR\010contents\032d\n\017ParametersEntry" + + "\022\020\n\003key\030\001 \001(\tR\003key\022;\n\005value\030\002 \001(\0132%.ssn." + + "predictservice.v1.InferParameterR\005value:" + + "\0028\001\032\213\002\n\032InferRequestedOutputTensor\022\022\n\004na" + + "me\030\001 \001(\tR\004name\022s\n\nparameters\030\002 \003(\0132S.ssn" + + ".predictservice.v1.ModelInferRequest.Inf" + + "erRequestedOutputTensor.ParametersEntryR" + + "\nparameters\032d\n\017ParametersEntry\022\020\n\003key\030\001 " + + "\001(\tR\003key\022;\n\005value\030\002 \001(\0132%.ssn.predictser" + + "vice.v1.InferParameterR\005value:\0028\001\032d\n\017Par" + + "ametersEntry\022\020\n\003key\030\001 \001(\tR\003key\022;\n\005value\030" + + "\002 \001(\0132%.ssn.predictservice.v1.InferParam" + + "eterR\005value:\0028\001\"\247\006\n\022ModelInferResponse\022\035" + + "\n\nmodel_name\030\001 \001(\tR\tmodelName\022#\n\rmodel_v" + + "ersion\030\002 \001(\tR\014modelVersion\022\016\n\002id\030\003 \001(\tR\002" + + "id\022Y\n\nparameters\030\004 \003(\01329.ssn.predictserv" + + "ice.v1.ModelInferResponse.ParametersEntr" + + "yR\nparameters\022U\n\007outputs\030\005 \003(\0132;.ssn.pre" + + "dictservice.v1.ModelInferResponse.InferO" + + "utputTensorR\007outputs\022.\n\023raw_output_conte" + + "nts\030\006 \003(\014R\021rawOutputContents\032\364\002\n\021InferOu" + + "tputTensor\022\022\n\004name\030\001 \001(\tR\004name\022\032\n\010dataty" + + "pe\030\002 \001(\tR\010datatype\022\024\n\005shape\030\003 \003(\003R\005shape" + + "\022k\n\nparameters\030\004 \003(\0132K.ssn.predictservic" + + "e.v1.ModelInferResponse.InferOutputTenso" + + "r.ParametersEntryR\nparameters\022F\n\010content" + + "s\030\005 \001(\0132*.ssn.predictservice.v1.InferTen" + + "sorContentsR\010contents\032d\n\017ParametersEntry" + + "\022\020\n\003key\030\001 \001(\tR\003key\022;\n\005value\030\002 \001(\0132%.ssn." + + "predictservice.v1.InferParameterR\005value:" + + "\0028\001\032d\n\017ParametersEntry\022\020\n\003key\030\001 \001(\tR\003key" + + "\022;\n\005value\030\002 \001(\0132%.ssn.predictservice.v1." + + "InferParameterR\005value:\0028\0012p\n\016PredictServ" + + "ice\022^\n\007Predict\022(.ssn.predictservice.v1.M" + + "odelInferRequest\032).ssn.predictservice.v1" + + ".ModelInferResponseB\365\001\n\036ai.visma.ssn.pre" + + "dictservice.v1B\023PredictserviceProtoP\001ZHg" + + "ithub.com/e-conomic/vmlapis/gen/go/ssn/p" + + "redictservice/v1;predictservice\242\002\003SPX\252\002\025" + + "Ssn.Predictservice.V1\312\002\025Ssn\\Predictservi" + + "ce\\V1\342\002!Ssn\\Predictservice\\V1\\GPBMetadat" + + "a\352\002\027Ssn::Predictservice::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_ssn_predictservice_v1_InferParameter_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_ssn_predictservice_v1_InferParameter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_ssn_predictservice_v1_InferParameter_descriptor, + new java.lang.String[] { "BoolParam", "Int64Param", "StringParam", "DoubleParam", "Uint64Param", "ParameterChoice", }); + internal_static_ssn_predictservice_v1_InferTensorContents_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_ssn_predictservice_v1_InferTensorContents_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_ssn_predictservice_v1_InferTensorContents_descriptor, + new java.lang.String[] { "BoolContents", "IntContents", "Int64Contents", "UintContents", "Uint64Contents", "Fp32Contents", "Fp64Contents", "BytesContents", }); + internal_static_ssn_predictservice_v1_ModelInferRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_ssn_predictservice_v1_ModelInferRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_ssn_predictservice_v1_ModelInferRequest_descriptor, + new java.lang.String[] { "ModelName", "ModelVersion", "Id", "Parameters", "Inputs", "Outputs", "RawInputContents", }); + internal_static_ssn_predictservice_v1_ModelInferRequest_InferInputTensor_descriptor = + internal_static_ssn_predictservice_v1_ModelInferRequest_descriptor.getNestedTypes().get(0); + internal_static_ssn_predictservice_v1_ModelInferRequest_InferInputTensor_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_ssn_predictservice_v1_ModelInferRequest_InferInputTensor_descriptor, + new java.lang.String[] { "Name", "Datatype", "Shape", "Parameters", "Contents", }); + internal_static_ssn_predictservice_v1_ModelInferRequest_InferInputTensor_ParametersEntry_descriptor = + internal_static_ssn_predictservice_v1_ModelInferRequest_InferInputTensor_descriptor.getNestedTypes().get(0); + internal_static_ssn_predictservice_v1_ModelInferRequest_InferInputTensor_ParametersEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_ssn_predictservice_v1_ModelInferRequest_InferInputTensor_ParametersEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_ssn_predictservice_v1_ModelInferRequest_InferRequestedOutputTensor_descriptor = + internal_static_ssn_predictservice_v1_ModelInferRequest_descriptor.getNestedTypes().get(1); + internal_static_ssn_predictservice_v1_ModelInferRequest_InferRequestedOutputTensor_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_ssn_predictservice_v1_ModelInferRequest_InferRequestedOutputTensor_descriptor, + new java.lang.String[] { "Name", "Parameters", }); + internal_static_ssn_predictservice_v1_ModelInferRequest_InferRequestedOutputTensor_ParametersEntry_descriptor = + internal_static_ssn_predictservice_v1_ModelInferRequest_InferRequestedOutputTensor_descriptor.getNestedTypes().get(0); + internal_static_ssn_predictservice_v1_ModelInferRequest_InferRequestedOutputTensor_ParametersEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_ssn_predictservice_v1_ModelInferRequest_InferRequestedOutputTensor_ParametersEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_ssn_predictservice_v1_ModelInferRequest_ParametersEntry_descriptor = + internal_static_ssn_predictservice_v1_ModelInferRequest_descriptor.getNestedTypes().get(2); + internal_static_ssn_predictservice_v1_ModelInferRequest_ParametersEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_ssn_predictservice_v1_ModelInferRequest_ParametersEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_ssn_predictservice_v1_ModelInferResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_ssn_predictservice_v1_ModelInferResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_ssn_predictservice_v1_ModelInferResponse_descriptor, + new java.lang.String[] { "ModelName", "ModelVersion", "Id", "Parameters", "Outputs", "RawOutputContents", }); + internal_static_ssn_predictservice_v1_ModelInferResponse_InferOutputTensor_descriptor = + internal_static_ssn_predictservice_v1_ModelInferResponse_descriptor.getNestedTypes().get(0); + internal_static_ssn_predictservice_v1_ModelInferResponse_InferOutputTensor_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_ssn_predictservice_v1_ModelInferResponse_InferOutputTensor_descriptor, + new java.lang.String[] { "Name", "Datatype", "Shape", "Parameters", "Contents", }); + internal_static_ssn_predictservice_v1_ModelInferResponse_InferOutputTensor_ParametersEntry_descriptor = + internal_static_ssn_predictservice_v1_ModelInferResponse_InferOutputTensor_descriptor.getNestedTypes().get(0); + internal_static_ssn_predictservice_v1_ModelInferResponse_InferOutputTensor_ParametersEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_ssn_predictservice_v1_ModelInferResponse_InferOutputTensor_ParametersEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_ssn_predictservice_v1_ModelInferResponse_ParametersEntry_descriptor = + internal_static_ssn_predictservice_v1_ModelInferResponse_descriptor.getNestedTypes().get(1); + internal_static_ssn_predictservice_v1_ModelInferResponse_ParametersEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_ssn_predictservice_v1_ModelInferResponse_ParametersEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/js/ssn/predictservice/v1/predictservice_grpc_web_pb.d.ts b/gen/js/ssn/predictservice/v1/predictservice_grpc_web_pb.d.ts new file mode 100644 index 00000000..2ed4eb60 --- /dev/null +++ b/gen/js/ssn/predictservice/v1/predictservice_grpc_web_pb.d.ts @@ -0,0 +1,31 @@ +import * as grpcWeb from 'grpc-web'; + +import * as ssn_predictservice_v1_predictservice_pb from '../../../ssn/predictservice/v1/predictservice_pb'; // proto import: "ssn/predictservice/v1/predictservice.proto" + + +export class PredictServiceClient { + constructor (hostname: string, + credentials?: null | { [index: string]: string; }, + options?: null | { [index: string]: any; }); + + predict( + request: ssn_predictservice_v1_predictservice_pb.ModelInferRequest, + metadata: grpcWeb.Metadata | undefined, + callback: (err: grpcWeb.RpcError, + response: ssn_predictservice_v1_predictservice_pb.ModelInferResponse) => void + ): grpcWeb.ClientReadableStream; + +} + +export class PredictServicePromiseClient { + constructor (hostname: string, + credentials?: null | { [index: string]: string; }, + options?: null | { [index: string]: any; }); + + predict( + request: ssn_predictservice_v1_predictservice_pb.ModelInferRequest, + metadata?: grpcWeb.Metadata + ): Promise; + +} + diff --git a/gen/js/ssn/predictservice/v1/predictservice_grpc_web_pb.js b/gen/js/ssn/predictservice/v1/predictservice_grpc_web_pb.js new file mode 100644 index 00000000..f6224590 --- /dev/null +++ b/gen/js/ssn/predictservice/v1/predictservice_grpc_web_pb.js @@ -0,0 +1,141 @@ +/** + * @fileoverview gRPC-Web generated client stub for ssn.predictservice.v1 + * @enhanceable + * @public + */ + +// Code generated by protoc-gen-grpc-web. DO NOT EDIT. +// versions: +// protoc-gen-grpc-web v1.5.0 +// protoc v0.0.0 +// source: ssn/predictservice/v1/predictservice.proto + + +/* eslint-disable */ +// @ts-nocheck + + + +const grpc = {}; +grpc.web = require('grpc-web'); + +const proto = {}; +proto.ssn = {}; +proto.ssn.predictservice = {}; +proto.ssn.predictservice.v1 = require('./predictservice_pb.js'); + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?grpc.web.ClientOptions} options + * @constructor + * @struct + * @final + */ +proto.ssn.predictservice.v1.PredictServiceClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options.format = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname.replace(/\/+$/, ''); + +}; + + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?grpc.web.ClientOptions} options + * @constructor + * @struct + * @final + */ +proto.ssn.predictservice.v1.PredictServicePromiseClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options.format = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname.replace(/\/+$/, ''); + +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.ssn.predictservice.v1.ModelInferRequest, + * !proto.ssn.predictservice.v1.ModelInferResponse>} + */ +const methodDescriptor_PredictService_Predict = new grpc.web.MethodDescriptor( + '/ssn.predictservice.v1.PredictService/Predict', + grpc.web.MethodType.UNARY, + proto.ssn.predictservice.v1.ModelInferRequest, + proto.ssn.predictservice.v1.ModelInferResponse, + /** + * @param {!proto.ssn.predictservice.v1.ModelInferRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ssn.predictservice.v1.ModelInferResponse.deserializeBinary +); + + +/** + * @param {!proto.ssn.predictservice.v1.ModelInferRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.RpcError, ?proto.ssn.predictservice.v1.ModelInferResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.ssn.predictservice.v1.PredictServiceClient.prototype.predict = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/ssn.predictservice.v1.PredictService/Predict', + request, + metadata || {}, + methodDescriptor_PredictService_Predict, + callback); +}; + + +/** + * @param {!proto.ssn.predictservice.v1.ModelInferRequest} request The + * request proto + * @param {?Object=} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.ssn.predictservice.v1.PredictServicePromiseClient.prototype.predict = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/ssn.predictservice.v1.PredictService/Predict', + request, + metadata || {}, + methodDescriptor_PredictService_Predict); +}; + + +module.exports = proto.ssn.predictservice.v1; + diff --git a/gen/js/ssn/predictservice/v1/predictservice_pb.d.ts b/gen/js/ssn/predictservice/v1/predictservice_pb.d.ts new file mode 100644 index 00000000..558943b1 --- /dev/null +++ b/gen/js/ssn/predictservice/v1/predictservice_pb.d.ts @@ -0,0 +1,302 @@ +import * as jspb from 'google-protobuf' + + + +export class InferParameter extends jspb.Message { + getBoolParam(): boolean; + setBoolParam(value: boolean): InferParameter; + + getInt64Param(): number; + setInt64Param(value: number): InferParameter; + + getStringParam(): string; + setStringParam(value: string): InferParameter; + + getDoubleParam(): number; + setDoubleParam(value: number): InferParameter; + + getUint64Param(): number; + setUint64Param(value: number): InferParameter; + + getParameterChoiceCase(): InferParameter.ParameterChoiceCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): InferParameter.AsObject; + static toObject(includeInstance: boolean, msg: InferParameter): InferParameter.AsObject; + static serializeBinaryToWriter(message: InferParameter, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): InferParameter; + static deserializeBinaryFromReader(message: InferParameter, reader: jspb.BinaryReader): InferParameter; +} + +export namespace InferParameter { + export type AsObject = { + boolParam: boolean, + int64Param: number, + stringParam: string, + doubleParam: number, + uint64Param: number, + } + + export enum ParameterChoiceCase { + PARAMETER_CHOICE_NOT_SET = 0, + BOOL_PARAM = 1, + INT64_PARAM = 2, + STRING_PARAM = 3, + DOUBLE_PARAM = 4, + UINT64_PARAM = 5, + } +} + +export class InferTensorContents extends jspb.Message { + getBoolContentsList(): Array; + setBoolContentsList(value: Array): InferTensorContents; + clearBoolContentsList(): InferTensorContents; + addBoolContents(value: boolean, index?: number): InferTensorContents; + + getIntContentsList(): Array; + setIntContentsList(value: Array): InferTensorContents; + clearIntContentsList(): InferTensorContents; + addIntContents(value: number, index?: number): InferTensorContents; + + getInt64ContentsList(): Array; + setInt64ContentsList(value: Array): InferTensorContents; + clearInt64ContentsList(): InferTensorContents; + addInt64Contents(value: number, index?: number): InferTensorContents; + + getUintContentsList(): Array; + setUintContentsList(value: Array): InferTensorContents; + clearUintContentsList(): InferTensorContents; + addUintContents(value: number, index?: number): InferTensorContents; + + getUint64ContentsList(): Array; + setUint64ContentsList(value: Array): InferTensorContents; + clearUint64ContentsList(): InferTensorContents; + addUint64Contents(value: number, index?: number): InferTensorContents; + + getFp32ContentsList(): Array; + setFp32ContentsList(value: Array): InferTensorContents; + clearFp32ContentsList(): InferTensorContents; + addFp32Contents(value: number, index?: number): InferTensorContents; + + getFp64ContentsList(): Array; + setFp64ContentsList(value: Array): InferTensorContents; + clearFp64ContentsList(): InferTensorContents; + addFp64Contents(value: number, index?: number): InferTensorContents; + + getBytesContentsList(): Array; + setBytesContentsList(value: Array): InferTensorContents; + clearBytesContentsList(): InferTensorContents; + addBytesContents(value: Uint8Array | string, index?: number): InferTensorContents; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): InferTensorContents.AsObject; + static toObject(includeInstance: boolean, msg: InferTensorContents): InferTensorContents.AsObject; + static serializeBinaryToWriter(message: InferTensorContents, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): InferTensorContents; + static deserializeBinaryFromReader(message: InferTensorContents, reader: jspb.BinaryReader): InferTensorContents; +} + +export namespace InferTensorContents { + export type AsObject = { + boolContentsList: Array, + intContentsList: Array, + int64ContentsList: Array, + uintContentsList: Array, + uint64ContentsList: Array, + fp32ContentsList: Array, + fp64ContentsList: Array, + bytesContentsList: Array, + } +} + +export class ModelInferRequest extends jspb.Message { + getModelName(): string; + setModelName(value: string): ModelInferRequest; + + getModelVersion(): string; + setModelVersion(value: string): ModelInferRequest; + + getId(): string; + setId(value: string): ModelInferRequest; + + getParametersMap(): jspb.Map; + clearParametersMap(): ModelInferRequest; + + getInputsList(): Array; + setInputsList(value: Array): ModelInferRequest; + clearInputsList(): ModelInferRequest; + addInputs(value?: ModelInferRequest.InferInputTensor, index?: number): ModelInferRequest.InferInputTensor; + + getOutputsList(): Array; + setOutputsList(value: Array): ModelInferRequest; + clearOutputsList(): ModelInferRequest; + addOutputs(value?: ModelInferRequest.InferRequestedOutputTensor, index?: number): ModelInferRequest.InferRequestedOutputTensor; + + getRawInputContentsList(): Array; + setRawInputContentsList(value: Array): ModelInferRequest; + clearRawInputContentsList(): ModelInferRequest; + addRawInputContents(value: Uint8Array | string, index?: number): ModelInferRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ModelInferRequest.AsObject; + static toObject(includeInstance: boolean, msg: ModelInferRequest): ModelInferRequest.AsObject; + static serializeBinaryToWriter(message: ModelInferRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ModelInferRequest; + static deserializeBinaryFromReader(message: ModelInferRequest, reader: jspb.BinaryReader): ModelInferRequest; +} + +export namespace ModelInferRequest { + export type AsObject = { + modelName: string, + modelVersion: string, + id: string, + parametersMap: Array<[string, InferParameter.AsObject]>, + inputsList: Array, + outputsList: Array, + rawInputContentsList: Array, + } + + export class InferInputTensor extends jspb.Message { + getName(): string; + setName(value: string): InferInputTensor; + + getDatatype(): string; + setDatatype(value: string): InferInputTensor; + + getShapeList(): Array; + setShapeList(value: Array): InferInputTensor; + clearShapeList(): InferInputTensor; + addShape(value: number, index?: number): InferInputTensor; + + getParametersMap(): jspb.Map; + clearParametersMap(): InferInputTensor; + + getContents(): InferTensorContents | undefined; + setContents(value?: InferTensorContents): InferInputTensor; + hasContents(): boolean; + clearContents(): InferInputTensor; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): InferInputTensor.AsObject; + static toObject(includeInstance: boolean, msg: InferInputTensor): InferInputTensor.AsObject; + static serializeBinaryToWriter(message: InferInputTensor, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): InferInputTensor; + static deserializeBinaryFromReader(message: InferInputTensor, reader: jspb.BinaryReader): InferInputTensor; + } + + export namespace InferInputTensor { + export type AsObject = { + name: string, + datatype: string, + shapeList: Array, + parametersMap: Array<[string, InferParameter.AsObject]>, + contents?: InferTensorContents.AsObject, + } + } + + + export class InferRequestedOutputTensor extends jspb.Message { + getName(): string; + setName(value: string): InferRequestedOutputTensor; + + getParametersMap(): jspb.Map; + clearParametersMap(): InferRequestedOutputTensor; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): InferRequestedOutputTensor.AsObject; + static toObject(includeInstance: boolean, msg: InferRequestedOutputTensor): InferRequestedOutputTensor.AsObject; + static serializeBinaryToWriter(message: InferRequestedOutputTensor, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): InferRequestedOutputTensor; + static deserializeBinaryFromReader(message: InferRequestedOutputTensor, reader: jspb.BinaryReader): InferRequestedOutputTensor; + } + + export namespace InferRequestedOutputTensor { + export type AsObject = { + name: string, + parametersMap: Array<[string, InferParameter.AsObject]>, + } + } + +} + +export class ModelInferResponse extends jspb.Message { + getModelName(): string; + setModelName(value: string): ModelInferResponse; + + getModelVersion(): string; + setModelVersion(value: string): ModelInferResponse; + + getId(): string; + setId(value: string): ModelInferResponse; + + getParametersMap(): jspb.Map; + clearParametersMap(): ModelInferResponse; + + getOutputsList(): Array; + setOutputsList(value: Array): ModelInferResponse; + clearOutputsList(): ModelInferResponse; + addOutputs(value?: ModelInferResponse.InferOutputTensor, index?: number): ModelInferResponse.InferOutputTensor; + + getRawOutputContentsList(): Array; + setRawOutputContentsList(value: Array): ModelInferResponse; + clearRawOutputContentsList(): ModelInferResponse; + addRawOutputContents(value: Uint8Array | string, index?: number): ModelInferResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ModelInferResponse.AsObject; + static toObject(includeInstance: boolean, msg: ModelInferResponse): ModelInferResponse.AsObject; + static serializeBinaryToWriter(message: ModelInferResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ModelInferResponse; + static deserializeBinaryFromReader(message: ModelInferResponse, reader: jspb.BinaryReader): ModelInferResponse; +} + +export namespace ModelInferResponse { + export type AsObject = { + modelName: string, + modelVersion: string, + id: string, + parametersMap: Array<[string, InferParameter.AsObject]>, + outputsList: Array, + rawOutputContentsList: Array, + } + + export class InferOutputTensor extends jspb.Message { + getName(): string; + setName(value: string): InferOutputTensor; + + getDatatype(): string; + setDatatype(value: string): InferOutputTensor; + + getShapeList(): Array; + setShapeList(value: Array): InferOutputTensor; + clearShapeList(): InferOutputTensor; + addShape(value: number, index?: number): InferOutputTensor; + + getParametersMap(): jspb.Map; + clearParametersMap(): InferOutputTensor; + + getContents(): InferTensorContents | undefined; + setContents(value?: InferTensorContents): InferOutputTensor; + hasContents(): boolean; + clearContents(): InferOutputTensor; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): InferOutputTensor.AsObject; + static toObject(includeInstance: boolean, msg: InferOutputTensor): InferOutputTensor.AsObject; + static serializeBinaryToWriter(message: InferOutputTensor, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): InferOutputTensor; + static deserializeBinaryFromReader(message: InferOutputTensor, reader: jspb.BinaryReader): InferOutputTensor; + } + + export namespace InferOutputTensor { + export type AsObject = { + name: string, + datatype: string, + shapeList: Array, + parametersMap: Array<[string, InferParameter.AsObject]>, + contents?: InferTensorContents.AsObject, + } + } + +} + diff --git a/gen/js/ssn/predictservice/v1/predictservice_pb.js b/gen/js/ssn/predictservice/v1/predictservice_pb.js new file mode 100644 index 00000000..03ab7795 --- /dev/null +++ b/gen/js/ssn/predictservice/v1/predictservice_pb.js @@ -0,0 +1,2622 @@ +// source: ssn/predictservice/v1/predictservice.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +goog.exportSymbol('proto.ssn.predictservice.v1.InferParameter', null, global); +goog.exportSymbol('proto.ssn.predictservice.v1.InferParameter.ParameterChoiceCase', null, global); +goog.exportSymbol('proto.ssn.predictservice.v1.InferTensorContents', null, global); +goog.exportSymbol('proto.ssn.predictservice.v1.ModelInferRequest', null, global); +goog.exportSymbol('proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor', null, global); +goog.exportSymbol('proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor', null, global); +goog.exportSymbol('proto.ssn.predictservice.v1.ModelInferResponse', null, global); +goog.exportSymbol('proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.ssn.predictservice.v1.InferParameter = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ssn.predictservice.v1.InferParameter.oneofGroups_); +}; +goog.inherits(proto.ssn.predictservice.v1.InferParameter, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ssn.predictservice.v1.InferParameter.displayName = 'proto.ssn.predictservice.v1.InferParameter'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.ssn.predictservice.v1.InferTensorContents = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ssn.predictservice.v1.InferTensorContents.repeatedFields_, null); +}; +goog.inherits(proto.ssn.predictservice.v1.InferTensorContents, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ssn.predictservice.v1.InferTensorContents.displayName = 'proto.ssn.predictservice.v1.InferTensorContents'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.ssn.predictservice.v1.ModelInferRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ssn.predictservice.v1.ModelInferRequest.repeatedFields_, null); +}; +goog.inherits(proto.ssn.predictservice.v1.ModelInferRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ssn.predictservice.v1.ModelInferRequest.displayName = 'proto.ssn.predictservice.v1.ModelInferRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.repeatedFields_, null); +}; +goog.inherits(proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.displayName = 'proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.displayName = 'proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.ssn.predictservice.v1.ModelInferResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ssn.predictservice.v1.ModelInferResponse.repeatedFields_, null); +}; +goog.inherits(proto.ssn.predictservice.v1.ModelInferResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ssn.predictservice.v1.ModelInferResponse.displayName = 'proto.ssn.predictservice.v1.ModelInferResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.repeatedFields_, null); +}; +goog.inherits(proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.displayName = 'proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor'; +} + +/** + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} + * @const + */ +proto.ssn.predictservice.v1.InferParameter.oneofGroups_ = [[1,2,3,4,5]]; + +/** + * @enum {number} + */ +proto.ssn.predictservice.v1.InferParameter.ParameterChoiceCase = { + PARAMETER_CHOICE_NOT_SET: 0, + BOOL_PARAM: 1, + INT64_PARAM: 2, + STRING_PARAM: 3, + DOUBLE_PARAM: 4, + UINT64_PARAM: 5 +}; + +/** + * @return {proto.ssn.predictservice.v1.InferParameter.ParameterChoiceCase} + */ +proto.ssn.predictservice.v1.InferParameter.prototype.getParameterChoiceCase = function() { + return /** @type {proto.ssn.predictservice.v1.InferParameter.ParameterChoiceCase} */(jspb.Message.computeOneofCase(this, proto.ssn.predictservice.v1.InferParameter.oneofGroups_[0])); +}; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.ssn.predictservice.v1.InferParameter.prototype.toObject = function(opt_includeInstance) { + return proto.ssn.predictservice.v1.InferParameter.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.ssn.predictservice.v1.InferParameter} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ssn.predictservice.v1.InferParameter.toObject = function(includeInstance, msg) { + var f, obj = { + boolParam: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + int64Param: jspb.Message.getFieldWithDefault(msg, 2, 0), + stringParam: jspb.Message.getFieldWithDefault(msg, 3, ""), + doubleParam: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0), + uint64Param: jspb.Message.getFieldWithDefault(msg, 5, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ssn.predictservice.v1.InferParameter} + */ +proto.ssn.predictservice.v1.InferParameter.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ssn.predictservice.v1.InferParameter; + return proto.ssn.predictservice.v1.InferParameter.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ssn.predictservice.v1.InferParameter} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ssn.predictservice.v1.InferParameter} + */ +proto.ssn.predictservice.v1.InferParameter.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setBoolParam(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setInt64Param(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setStringParam(value); + break; + case 4: + var value = /** @type {number} */ (reader.readDouble()); + msg.setDoubleParam(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUint64Param(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ssn.predictservice.v1.InferParameter.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ssn.predictservice.v1.InferParameter.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ssn.predictservice.v1.InferParameter} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ssn.predictservice.v1.InferParameter.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {boolean} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeBool( + 1, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeInt64( + 2, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeString( + 3, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeDouble( + 4, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeUint64( + 5, + f + ); + } +}; + + +/** + * optional bool bool_param = 1; + * @return {boolean} + */ +proto.ssn.predictservice.v1.InferParameter.prototype.getBoolParam = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.ssn.predictservice.v1.InferParameter} returns this + */ +proto.ssn.predictservice.v1.InferParameter.prototype.setBoolParam = function(value) { + return jspb.Message.setOneofField(this, 1, proto.ssn.predictservice.v1.InferParameter.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ssn.predictservice.v1.InferParameter} returns this + */ +proto.ssn.predictservice.v1.InferParameter.prototype.clearBoolParam = function() { + return jspb.Message.setOneofField(this, 1, proto.ssn.predictservice.v1.InferParameter.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ssn.predictservice.v1.InferParameter.prototype.hasBoolParam = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional int64 int64_param = 2; + * @return {number} + */ +proto.ssn.predictservice.v1.InferParameter.prototype.getInt64Param = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ssn.predictservice.v1.InferParameter} returns this + */ +proto.ssn.predictservice.v1.InferParameter.prototype.setInt64Param = function(value) { + return jspb.Message.setOneofField(this, 2, proto.ssn.predictservice.v1.InferParameter.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ssn.predictservice.v1.InferParameter} returns this + */ +proto.ssn.predictservice.v1.InferParameter.prototype.clearInt64Param = function() { + return jspb.Message.setOneofField(this, 2, proto.ssn.predictservice.v1.InferParameter.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ssn.predictservice.v1.InferParameter.prototype.hasInt64Param = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional string string_param = 3; + * @return {string} + */ +proto.ssn.predictservice.v1.InferParameter.prototype.getStringParam = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ssn.predictservice.v1.InferParameter} returns this + */ +proto.ssn.predictservice.v1.InferParameter.prototype.setStringParam = function(value) { + return jspb.Message.setOneofField(this, 3, proto.ssn.predictservice.v1.InferParameter.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ssn.predictservice.v1.InferParameter} returns this + */ +proto.ssn.predictservice.v1.InferParameter.prototype.clearStringParam = function() { + return jspb.Message.setOneofField(this, 3, proto.ssn.predictservice.v1.InferParameter.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ssn.predictservice.v1.InferParameter.prototype.hasStringParam = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional double double_param = 4; + * @return {number} + */ +proto.ssn.predictservice.v1.InferParameter.prototype.getDoubleParam = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.ssn.predictservice.v1.InferParameter} returns this + */ +proto.ssn.predictservice.v1.InferParameter.prototype.setDoubleParam = function(value) { + return jspb.Message.setOneofField(this, 4, proto.ssn.predictservice.v1.InferParameter.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ssn.predictservice.v1.InferParameter} returns this + */ +proto.ssn.predictservice.v1.InferParameter.prototype.clearDoubleParam = function() { + return jspb.Message.setOneofField(this, 4, proto.ssn.predictservice.v1.InferParameter.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ssn.predictservice.v1.InferParameter.prototype.hasDoubleParam = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional uint64 uint64_param = 5; + * @return {number} + */ +proto.ssn.predictservice.v1.InferParameter.prototype.getUint64Param = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ssn.predictservice.v1.InferParameter} returns this + */ +proto.ssn.predictservice.v1.InferParameter.prototype.setUint64Param = function(value) { + return jspb.Message.setOneofField(this, 5, proto.ssn.predictservice.v1.InferParameter.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ssn.predictservice.v1.InferParameter} returns this + */ +proto.ssn.predictservice.v1.InferParameter.prototype.clearUint64Param = function() { + return jspb.Message.setOneofField(this, 5, proto.ssn.predictservice.v1.InferParameter.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ssn.predictservice.v1.InferParameter.prototype.hasUint64Param = function() { + return jspb.Message.getField(this, 5) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ssn.predictservice.v1.InferTensorContents.repeatedFields_ = [1,2,3,4,5,6,7,8]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.toObject = function(opt_includeInstance) { + return proto.ssn.predictservice.v1.InferTensorContents.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.ssn.predictservice.v1.InferTensorContents} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ssn.predictservice.v1.InferTensorContents.toObject = function(includeInstance, msg) { + var f, obj = { + boolContentsList: (f = jspb.Message.getRepeatedBooleanField(msg, 1)) == null ? undefined : f, + intContentsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + int64ContentsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, + uintContentsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, + uint64ContentsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f, + fp32ContentsList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 6)) == null ? undefined : f, + fp64ContentsList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 7)) == null ? undefined : f, + bytesContentsList: msg.getBytesContentsList_asB64() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ssn.predictservice.v1.InferTensorContents} + */ +proto.ssn.predictservice.v1.InferTensorContents.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ssn.predictservice.v1.InferTensorContents; + return proto.ssn.predictservice.v1.InferTensorContents.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ssn.predictservice.v1.InferTensorContents} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ssn.predictservice.v1.InferTensorContents} + */ +proto.ssn.predictservice.v1.InferTensorContents.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedBool() : [reader.readBool()]); + for (var i = 0; i < values.length; i++) { + msg.addBoolContents(values[i]); + } + break; + case 2: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]); + for (var i = 0; i < values.length; i++) { + msg.addIntContents(values[i]); + } + break; + case 3: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedInt64() : [reader.readInt64()]); + for (var i = 0; i < values.length; i++) { + msg.addInt64Contents(values[i]); + } + break; + case 4: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]); + for (var i = 0; i < values.length; i++) { + msg.addUintContents(values[i]); + } + break; + case 5: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedUint64() : [reader.readUint64()]); + for (var i = 0; i < values.length; i++) { + msg.addUint64Contents(values[i]); + } + break; + case 6: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]); + for (var i = 0; i < values.length; i++) { + msg.addFp32Contents(values[i]); + } + break; + case 7: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedDouble() : [reader.readDouble()]); + for (var i = 0; i < values.length; i++) { + msg.addFp64Contents(values[i]); + } + break; + case 8: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.addBytesContents(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ssn.predictservice.v1.InferTensorContents.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ssn.predictservice.v1.InferTensorContents} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ssn.predictservice.v1.InferTensorContents.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getBoolContentsList(); + if (f.length > 0) { + writer.writePackedBool( + 1, + f + ); + } + f = message.getIntContentsList(); + if (f.length > 0) { + writer.writePackedInt32( + 2, + f + ); + } + f = message.getInt64ContentsList(); + if (f.length > 0) { + writer.writePackedInt64( + 3, + f + ); + } + f = message.getUintContentsList(); + if (f.length > 0) { + writer.writePackedUint32( + 4, + f + ); + } + f = message.getUint64ContentsList(); + if (f.length > 0) { + writer.writePackedUint64( + 5, + f + ); + } + f = message.getFp32ContentsList(); + if (f.length > 0) { + writer.writePackedFloat( + 6, + f + ); + } + f = message.getFp64ContentsList(); + if (f.length > 0) { + writer.writePackedDouble( + 7, + f + ); + } + f = message.getBytesContentsList_asU8(); + if (f.length > 0) { + writer.writeRepeatedBytes( + 8, + f + ); + } +}; + + +/** + * repeated bool bool_contents = 1; + * @return {!Array} + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.getBoolContentsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedBooleanField(this, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ssn.predictservice.v1.InferTensorContents} returns this + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.setBoolContentsList = function(value) { + return jspb.Message.setField(this, 1, value || []); +}; + + +/** + * @param {boolean} value + * @param {number=} opt_index + * @return {!proto.ssn.predictservice.v1.InferTensorContents} returns this + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.addBoolContents = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ssn.predictservice.v1.InferTensorContents} returns this + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.clearBoolContentsList = function() { + return this.setBoolContentsList([]); +}; + + +/** + * repeated int32 int_contents = 2; + * @return {!Array} + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.getIntContentsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ssn.predictservice.v1.InferTensorContents} returns this + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.setIntContentsList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.ssn.predictservice.v1.InferTensorContents} returns this + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.addIntContents = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ssn.predictservice.v1.InferTensorContents} returns this + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.clearIntContentsList = function() { + return this.setIntContentsList([]); +}; + + +/** + * repeated int64 int64_contents = 3; + * @return {!Array} + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.getInt64ContentsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ssn.predictservice.v1.InferTensorContents} returns this + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.setInt64ContentsList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.ssn.predictservice.v1.InferTensorContents} returns this + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.addInt64Contents = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ssn.predictservice.v1.InferTensorContents} returns this + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.clearInt64ContentsList = function() { + return this.setInt64ContentsList([]); +}; + + +/** + * repeated uint32 uint_contents = 4; + * @return {!Array} + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.getUintContentsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ssn.predictservice.v1.InferTensorContents} returns this + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.setUintContentsList = function(value) { + return jspb.Message.setField(this, 4, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.ssn.predictservice.v1.InferTensorContents} returns this + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.addUintContents = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 4, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ssn.predictservice.v1.InferTensorContents} returns this + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.clearUintContentsList = function() { + return this.setUintContentsList([]); +}; + + +/** + * repeated uint64 uint64_contents = 5; + * @return {!Array} + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.getUint64ContentsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ssn.predictservice.v1.InferTensorContents} returns this + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.setUint64ContentsList = function(value) { + return jspb.Message.setField(this, 5, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.ssn.predictservice.v1.InferTensorContents} returns this + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.addUint64Contents = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 5, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ssn.predictservice.v1.InferTensorContents} returns this + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.clearUint64ContentsList = function() { + return this.setUint64ContentsList([]); +}; + + +/** + * repeated float fp32_contents = 6; + * @return {!Array} + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.getFp32ContentsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 6)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ssn.predictservice.v1.InferTensorContents} returns this + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.setFp32ContentsList = function(value) { + return jspb.Message.setField(this, 6, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.ssn.predictservice.v1.InferTensorContents} returns this + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.addFp32Contents = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 6, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ssn.predictservice.v1.InferTensorContents} returns this + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.clearFp32ContentsList = function() { + return this.setFp32ContentsList([]); +}; + + +/** + * repeated double fp64_contents = 7; + * @return {!Array} + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.getFp64ContentsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 7)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ssn.predictservice.v1.InferTensorContents} returns this + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.setFp64ContentsList = function(value) { + return jspb.Message.setField(this, 7, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.ssn.predictservice.v1.InferTensorContents} returns this + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.addFp64Contents = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 7, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ssn.predictservice.v1.InferTensorContents} returns this + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.clearFp64ContentsList = function() { + return this.setFp64ContentsList([]); +}; + + +/** + * repeated bytes bytes_contents = 8; + * @return {!(Array|Array)} + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.getBytesContentsList = function() { + return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 8)); +}; + + +/** + * repeated bytes bytes_contents = 8; + * This is a type-conversion wrapper around `getBytesContentsList()` + * @return {!Array} + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.getBytesContentsList_asB64 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsB64( + this.getBytesContentsList())); +}; + + +/** + * repeated bytes bytes_contents = 8; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getBytesContentsList()` + * @return {!Array} + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.getBytesContentsList_asU8 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsU8( + this.getBytesContentsList())); +}; + + +/** + * @param {!(Array|Array)} value + * @return {!proto.ssn.predictservice.v1.InferTensorContents} returns this + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.setBytesContentsList = function(value) { + return jspb.Message.setField(this, 8, value || []); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @param {number=} opt_index + * @return {!proto.ssn.predictservice.v1.InferTensorContents} returns this + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.addBytesContents = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 8, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ssn.predictservice.v1.InferTensorContents} returns this + */ +proto.ssn.predictservice.v1.InferTensorContents.prototype.clearBytesContentsList = function() { + return this.setBytesContentsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ssn.predictservice.v1.ModelInferRequest.repeatedFields_ = [5,6,7]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.ssn.predictservice.v1.ModelInferRequest.prototype.toObject = function(opt_includeInstance) { + return proto.ssn.predictservice.v1.ModelInferRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.ssn.predictservice.v1.ModelInferRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ssn.predictservice.v1.ModelInferRequest.toObject = function(includeInstance, msg) { + var f, obj = { + modelName: jspb.Message.getFieldWithDefault(msg, 1, ""), + modelVersion: jspb.Message.getFieldWithDefault(msg, 2, ""), + id: jspb.Message.getFieldWithDefault(msg, 3, ""), + parametersMap: (f = msg.getParametersMap()) ? f.toObject(includeInstance, proto.ssn.predictservice.v1.InferParameter.toObject) : [], + inputsList: jspb.Message.toObjectList(msg.getInputsList(), + proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.toObject, includeInstance), + outputsList: jspb.Message.toObjectList(msg.getOutputsList(), + proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.toObject, includeInstance), + rawInputContentsList: msg.getRawInputContentsList_asB64() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ssn.predictservice.v1.ModelInferRequest} + */ +proto.ssn.predictservice.v1.ModelInferRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ssn.predictservice.v1.ModelInferRequest; + return proto.ssn.predictservice.v1.ModelInferRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ssn.predictservice.v1.ModelInferRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ssn.predictservice.v1.ModelInferRequest} + */ +proto.ssn.predictservice.v1.ModelInferRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setModelName(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setModelVersion(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 4: + var value = msg.getParametersMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.ssn.predictservice.v1.InferParameter.deserializeBinaryFromReader, "", new proto.ssn.predictservice.v1.InferParameter()); + }); + break; + case 5: + var value = new proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor; + reader.readMessage(value,proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.deserializeBinaryFromReader); + msg.addInputs(value); + break; + case 6: + var value = new proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor; + reader.readMessage(value,proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.deserializeBinaryFromReader); + msg.addOutputs(value); + break; + case 7: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.addRawInputContents(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ssn.predictservice.v1.ModelInferRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ssn.predictservice.v1.ModelInferRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ssn.predictservice.v1.ModelInferRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ssn.predictservice.v1.ModelInferRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getModelName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getModelVersion(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getParametersMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.ssn.predictservice.v1.InferParameter.serializeBinaryToWriter); + } + f = message.getInputsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 5, + f, + proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.serializeBinaryToWriter + ); + } + f = message.getOutputsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 6, + f, + proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.serializeBinaryToWriter + ); + } + f = message.getRawInputContentsList_asU8(); + if (f.length > 0) { + writer.writeRepeatedBytes( + 7, + f + ); + } +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.prototype.toObject = function(opt_includeInstance) { + return proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + datatype: jspb.Message.getFieldWithDefault(msg, 2, ""), + shapeList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, + parametersMap: (f = msg.getParametersMap()) ? f.toObject(includeInstance, proto.ssn.predictservice.v1.InferParameter.toObject) : [], + contents: (f = msg.getContents()) && proto.ssn.predictservice.v1.InferTensorContents.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor} + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor; + return proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor} + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setDatatype(value); + break; + case 3: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedInt64() : [reader.readInt64()]); + for (var i = 0; i < values.length; i++) { + msg.addShape(values[i]); + } + break; + case 4: + var value = msg.getParametersMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.ssn.predictservice.v1.InferParameter.deserializeBinaryFromReader, "", new proto.ssn.predictservice.v1.InferParameter()); + }); + break; + case 5: + var value = new proto.ssn.predictservice.v1.InferTensorContents; + reader.readMessage(value,proto.ssn.predictservice.v1.InferTensorContents.deserializeBinaryFromReader); + msg.setContents(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getDatatype(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getShapeList(); + if (f.length > 0) { + writer.writePackedInt64( + 3, + f + ); + } + f = message.getParametersMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.ssn.predictservice.v1.InferParameter.serializeBinaryToWriter); + } + f = message.getContents(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.ssn.predictservice.v1.InferTensorContents.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor} returns this + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string datatype = 2; + * @return {string} + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.prototype.getDatatype = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor} returns this + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.prototype.setDatatype = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated int64 shape = 3; + * @return {!Array} + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.prototype.getShapeList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor} returns this + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.prototype.setShapeList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor} returns this + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.prototype.addShape = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor} returns this + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.prototype.clearShapeList = function() { + return this.setShapeList([]); +}; + + +/** + * map parameters = 4; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.prototype.getParametersMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 4, opt_noLazyCreate, + proto.ssn.predictservice.v1.InferParameter)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor} returns this + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.prototype.clearParametersMap = function() { + this.getParametersMap().clear(); + return this; +}; + + +/** + * optional InferTensorContents contents = 5; + * @return {?proto.ssn.predictservice.v1.InferTensorContents} + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.prototype.getContents = function() { + return /** @type{?proto.ssn.predictservice.v1.InferTensorContents} */ ( + jspb.Message.getWrapperField(this, proto.ssn.predictservice.v1.InferTensorContents, 5)); +}; + + +/** + * @param {?proto.ssn.predictservice.v1.InferTensorContents|undefined} value + * @return {!proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor} returns this +*/ +proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.prototype.setContents = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor} returns this + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.prototype.clearContents = function() { + return this.setContents(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.prototype.hasContents = function() { + return jspb.Message.getField(this, 5) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.prototype.toObject = function(opt_includeInstance) { + return proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + parametersMap: (f = msg.getParametersMap()) ? f.toObject(includeInstance, proto.ssn.predictservice.v1.InferParameter.toObject) : [] + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor} + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor; + return proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor} + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 2: + var value = msg.getParametersMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.ssn.predictservice.v1.InferParameter.deserializeBinaryFromReader, "", new proto.ssn.predictservice.v1.InferParameter()); + }); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getParametersMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.ssn.predictservice.v1.InferParameter.serializeBinaryToWriter); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor} returns this + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * map parameters = 2; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.prototype.getParametersMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 2, opt_noLazyCreate, + proto.ssn.predictservice.v1.InferParameter)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor} returns this + */ +proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.prototype.clearParametersMap = function() { + this.getParametersMap().clear(); + return this; +}; + + +/** + * optional string model_name = 1; + * @return {string} + */ +proto.ssn.predictservice.v1.ModelInferRequest.prototype.getModelName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ssn.predictservice.v1.ModelInferRequest} returns this + */ +proto.ssn.predictservice.v1.ModelInferRequest.prototype.setModelName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string model_version = 2; + * @return {string} + */ +proto.ssn.predictservice.v1.ModelInferRequest.prototype.getModelVersion = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ssn.predictservice.v1.ModelInferRequest} returns this + */ +proto.ssn.predictservice.v1.ModelInferRequest.prototype.setModelVersion = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string id = 3; + * @return {string} + */ +proto.ssn.predictservice.v1.ModelInferRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ssn.predictservice.v1.ModelInferRequest} returns this + */ +proto.ssn.predictservice.v1.ModelInferRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * map parameters = 4; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.ssn.predictservice.v1.ModelInferRequest.prototype.getParametersMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 4, opt_noLazyCreate, + proto.ssn.predictservice.v1.InferParameter)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.ssn.predictservice.v1.ModelInferRequest} returns this + */ +proto.ssn.predictservice.v1.ModelInferRequest.prototype.clearParametersMap = function() { + this.getParametersMap().clear(); + return this; +}; + + +/** + * repeated InferInputTensor inputs = 5; + * @return {!Array} + */ +proto.ssn.predictservice.v1.ModelInferRequest.prototype.getInputsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ssn.predictservice.v1.ModelInferRequest} returns this +*/ +proto.ssn.predictservice.v1.ModelInferRequest.prototype.setInputsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 5, value); +}; + + +/** + * @param {!proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor=} opt_value + * @param {number=} opt_index + * @return {!proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor} + */ +proto.ssn.predictservice.v1.ModelInferRequest.prototype.addInputs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.ssn.predictservice.v1.ModelInferRequest.InferInputTensor, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ssn.predictservice.v1.ModelInferRequest} returns this + */ +proto.ssn.predictservice.v1.ModelInferRequest.prototype.clearInputsList = function() { + return this.setInputsList([]); +}; + + +/** + * repeated InferRequestedOutputTensor outputs = 6; + * @return {!Array} + */ +proto.ssn.predictservice.v1.ModelInferRequest.prototype.getOutputsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor, 6)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ssn.predictservice.v1.ModelInferRequest} returns this +*/ +proto.ssn.predictservice.v1.ModelInferRequest.prototype.setOutputsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 6, value); +}; + + +/** + * @param {!proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor=} opt_value + * @param {number=} opt_index + * @return {!proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor} + */ +proto.ssn.predictservice.v1.ModelInferRequest.prototype.addOutputs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ssn.predictservice.v1.ModelInferRequest} returns this + */ +proto.ssn.predictservice.v1.ModelInferRequest.prototype.clearOutputsList = function() { + return this.setOutputsList([]); +}; + + +/** + * repeated bytes raw_input_contents = 7; + * @return {!(Array|Array)} + */ +proto.ssn.predictservice.v1.ModelInferRequest.prototype.getRawInputContentsList = function() { + return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 7)); +}; + + +/** + * repeated bytes raw_input_contents = 7; + * This is a type-conversion wrapper around `getRawInputContentsList()` + * @return {!Array} + */ +proto.ssn.predictservice.v1.ModelInferRequest.prototype.getRawInputContentsList_asB64 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsB64( + this.getRawInputContentsList())); +}; + + +/** + * repeated bytes raw_input_contents = 7; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getRawInputContentsList()` + * @return {!Array} + */ +proto.ssn.predictservice.v1.ModelInferRequest.prototype.getRawInputContentsList_asU8 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsU8( + this.getRawInputContentsList())); +}; + + +/** + * @param {!(Array|Array)} value + * @return {!proto.ssn.predictservice.v1.ModelInferRequest} returns this + */ +proto.ssn.predictservice.v1.ModelInferRequest.prototype.setRawInputContentsList = function(value) { + return jspb.Message.setField(this, 7, value || []); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @param {number=} opt_index + * @return {!proto.ssn.predictservice.v1.ModelInferRequest} returns this + */ +proto.ssn.predictservice.v1.ModelInferRequest.prototype.addRawInputContents = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 7, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ssn.predictservice.v1.ModelInferRequest} returns this + */ +proto.ssn.predictservice.v1.ModelInferRequest.prototype.clearRawInputContentsList = function() { + return this.setRawInputContentsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ssn.predictservice.v1.ModelInferResponse.repeatedFields_ = [5,6]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.ssn.predictservice.v1.ModelInferResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ssn.predictservice.v1.ModelInferResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.ssn.predictservice.v1.ModelInferResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ssn.predictservice.v1.ModelInferResponse.toObject = function(includeInstance, msg) { + var f, obj = { + modelName: jspb.Message.getFieldWithDefault(msg, 1, ""), + modelVersion: jspb.Message.getFieldWithDefault(msg, 2, ""), + id: jspb.Message.getFieldWithDefault(msg, 3, ""), + parametersMap: (f = msg.getParametersMap()) ? f.toObject(includeInstance, proto.ssn.predictservice.v1.InferParameter.toObject) : [], + outputsList: jspb.Message.toObjectList(msg.getOutputsList(), + proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.toObject, includeInstance), + rawOutputContentsList: msg.getRawOutputContentsList_asB64() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ssn.predictservice.v1.ModelInferResponse} + */ +proto.ssn.predictservice.v1.ModelInferResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ssn.predictservice.v1.ModelInferResponse; + return proto.ssn.predictservice.v1.ModelInferResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ssn.predictservice.v1.ModelInferResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ssn.predictservice.v1.ModelInferResponse} + */ +proto.ssn.predictservice.v1.ModelInferResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setModelName(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setModelVersion(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 4: + var value = msg.getParametersMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.ssn.predictservice.v1.InferParameter.deserializeBinaryFromReader, "", new proto.ssn.predictservice.v1.InferParameter()); + }); + break; + case 5: + var value = new proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor; + reader.readMessage(value,proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.deserializeBinaryFromReader); + msg.addOutputs(value); + break; + case 6: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.addRawOutputContents(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ssn.predictservice.v1.ModelInferResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ssn.predictservice.v1.ModelInferResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ssn.predictservice.v1.ModelInferResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ssn.predictservice.v1.ModelInferResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getModelName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getModelVersion(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getParametersMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.ssn.predictservice.v1.InferParameter.serializeBinaryToWriter); + } + f = message.getOutputsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 5, + f, + proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.serializeBinaryToWriter + ); + } + f = message.getRawOutputContentsList_asU8(); + if (f.length > 0) { + writer.writeRepeatedBytes( + 6, + f + ); + } +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.prototype.toObject = function(opt_includeInstance) { + return proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + datatype: jspb.Message.getFieldWithDefault(msg, 2, ""), + shapeList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, + parametersMap: (f = msg.getParametersMap()) ? f.toObject(includeInstance, proto.ssn.predictservice.v1.InferParameter.toObject) : [], + contents: (f = msg.getContents()) && proto.ssn.predictservice.v1.InferTensorContents.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor} + */ +proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor; + return proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor} + */ +proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setDatatype(value); + break; + case 3: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedInt64() : [reader.readInt64()]); + for (var i = 0; i < values.length; i++) { + msg.addShape(values[i]); + } + break; + case 4: + var value = msg.getParametersMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.ssn.predictservice.v1.InferParameter.deserializeBinaryFromReader, "", new proto.ssn.predictservice.v1.InferParameter()); + }); + break; + case 5: + var value = new proto.ssn.predictservice.v1.InferTensorContents; + reader.readMessage(value,proto.ssn.predictservice.v1.InferTensorContents.deserializeBinaryFromReader); + msg.setContents(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getDatatype(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getShapeList(); + if (f.length > 0) { + writer.writePackedInt64( + 3, + f + ); + } + f = message.getParametersMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.ssn.predictservice.v1.InferParameter.serializeBinaryToWriter); + } + f = message.getContents(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.ssn.predictservice.v1.InferTensorContents.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor} returns this + */ +proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string datatype = 2; + * @return {string} + */ +proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.prototype.getDatatype = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor} returns this + */ +proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.prototype.setDatatype = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated int64 shape = 3; + * @return {!Array} + */ +proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.prototype.getShapeList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor} returns this + */ +proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.prototype.setShapeList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor} returns this + */ +proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.prototype.addShape = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor} returns this + */ +proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.prototype.clearShapeList = function() { + return this.setShapeList([]); +}; + + +/** + * map parameters = 4; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.prototype.getParametersMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 4, opt_noLazyCreate, + proto.ssn.predictservice.v1.InferParameter)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor} returns this + */ +proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.prototype.clearParametersMap = function() { + this.getParametersMap().clear(); + return this; +}; + + +/** + * optional InferTensorContents contents = 5; + * @return {?proto.ssn.predictservice.v1.InferTensorContents} + */ +proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.prototype.getContents = function() { + return /** @type{?proto.ssn.predictservice.v1.InferTensorContents} */ ( + jspb.Message.getWrapperField(this, proto.ssn.predictservice.v1.InferTensorContents, 5)); +}; + + +/** + * @param {?proto.ssn.predictservice.v1.InferTensorContents|undefined} value + * @return {!proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor} returns this +*/ +proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.prototype.setContents = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor} returns this + */ +proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.prototype.clearContents = function() { + return this.setContents(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.prototype.hasContents = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional string model_name = 1; + * @return {string} + */ +proto.ssn.predictservice.v1.ModelInferResponse.prototype.getModelName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ssn.predictservice.v1.ModelInferResponse} returns this + */ +proto.ssn.predictservice.v1.ModelInferResponse.prototype.setModelName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string model_version = 2; + * @return {string} + */ +proto.ssn.predictservice.v1.ModelInferResponse.prototype.getModelVersion = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ssn.predictservice.v1.ModelInferResponse} returns this + */ +proto.ssn.predictservice.v1.ModelInferResponse.prototype.setModelVersion = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string id = 3; + * @return {string} + */ +proto.ssn.predictservice.v1.ModelInferResponse.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ssn.predictservice.v1.ModelInferResponse} returns this + */ +proto.ssn.predictservice.v1.ModelInferResponse.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * map parameters = 4; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.ssn.predictservice.v1.ModelInferResponse.prototype.getParametersMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 4, opt_noLazyCreate, + proto.ssn.predictservice.v1.InferParameter)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.ssn.predictservice.v1.ModelInferResponse} returns this + */ +proto.ssn.predictservice.v1.ModelInferResponse.prototype.clearParametersMap = function() { + this.getParametersMap().clear(); + return this; +}; + + +/** + * repeated InferOutputTensor outputs = 5; + * @return {!Array} + */ +proto.ssn.predictservice.v1.ModelInferResponse.prototype.getOutputsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ssn.predictservice.v1.ModelInferResponse} returns this +*/ +proto.ssn.predictservice.v1.ModelInferResponse.prototype.setOutputsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 5, value); +}; + + +/** + * @param {!proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor=} opt_value + * @param {number=} opt_index + * @return {!proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor} + */ +proto.ssn.predictservice.v1.ModelInferResponse.prototype.addOutputs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ssn.predictservice.v1.ModelInferResponse} returns this + */ +proto.ssn.predictservice.v1.ModelInferResponse.prototype.clearOutputsList = function() { + return this.setOutputsList([]); +}; + + +/** + * repeated bytes raw_output_contents = 6; + * @return {!(Array|Array)} + */ +proto.ssn.predictservice.v1.ModelInferResponse.prototype.getRawOutputContentsList = function() { + return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 6)); +}; + + +/** + * repeated bytes raw_output_contents = 6; + * This is a type-conversion wrapper around `getRawOutputContentsList()` + * @return {!Array} + */ +proto.ssn.predictservice.v1.ModelInferResponse.prototype.getRawOutputContentsList_asB64 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsB64( + this.getRawOutputContentsList())); +}; + + +/** + * repeated bytes raw_output_contents = 6; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getRawOutputContentsList()` + * @return {!Array} + */ +proto.ssn.predictservice.v1.ModelInferResponse.prototype.getRawOutputContentsList_asU8 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsU8( + this.getRawOutputContentsList())); +}; + + +/** + * @param {!(Array|Array)} value + * @return {!proto.ssn.predictservice.v1.ModelInferResponse} returns this + */ +proto.ssn.predictservice.v1.ModelInferResponse.prototype.setRawOutputContentsList = function(value) { + return jspb.Message.setField(this, 6, value || []); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @param {number=} opt_index + * @return {!proto.ssn.predictservice.v1.ModelInferResponse} returns this + */ +proto.ssn.predictservice.v1.ModelInferResponse.prototype.addRawOutputContents = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 6, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ssn.predictservice.v1.ModelInferResponse} returns this + */ +proto.ssn.predictservice.v1.ModelInferResponse.prototype.clearRawOutputContentsList = function() { + return this.setRawOutputContentsList([]); +}; + + +goog.object.extend(exports, proto.ssn.predictservice.v1); diff --git a/gen/python/ssn/predictservice/v1/predictservice_pb2.py b/gen/python/ssn/predictservice/v1/predictservice_pb2.py new file mode 100644 index 00000000..2413f540 --- /dev/null +++ b/gen/python/ssn/predictservice/v1/predictservice_pb2.py @@ -0,0 +1,71 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: ssn/predictservice/v1/predictservice.proto +# Protobuf Python Version: 5.29.3 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 29, + 3, + '', + 'ssn/predictservice/v1/predictservice.proto' +) +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*ssn/predictservice/v1/predictservice.proto\x12\x15ssn.predictservice.v1\"\xd7\x01\n\x0eInferParameter\x12\x1f\n\nbool_param\x18\x01 \x01(\x08H\x00R\tboolParam\x12!\n\x0bint64_param\x18\x02 \x01(\x03H\x00R\nint64Param\x12#\n\x0cstring_param\x18\x03 \x01(\tH\x00R\x0bstringParam\x12#\n\x0c\x64ouble_param\x18\x04 \x01(\x01H\x00R\x0b\x64oubleParam\x12#\n\x0cuint64_param\x18\x05 \x01(\x04H\x00R\x0buint64ParamB\x12\n\x10parameter_choice\"\xc3\x02\n\x13InferTensorContents\x12#\n\rbool_contents\x18\x01 \x03(\x08R\x0c\x62oolContents\x12!\n\x0cint_contents\x18\x02 \x03(\x05R\x0bintContents\x12%\n\x0eint64_contents\x18\x03 \x03(\x03R\rint64Contents\x12#\n\ruint_contents\x18\x04 \x03(\rR\x0cuintContents\x12\'\n\x0fuint64_contents\x18\x05 \x03(\x04R\x0euint64Contents\x12#\n\rfp32_contents\x18\x06 \x03(\x02R\x0c\x66p32Contents\x12#\n\rfp64_contents\x18\x07 \x03(\x01R\x0c\x66p64Contents\x12%\n\x0e\x62ytes_contents\x18\x08 \x03(\x0cR\rbytesContents\"\x89\t\n\x11ModelInferRequest\x12\x1d\n\nmodel_name\x18\x01 \x01(\tR\tmodelName\x12#\n\rmodel_version\x18\x02 \x01(\tR\x0cmodelVersion\x12\x0e\n\x02id\x18\x03 \x01(\tR\x02id\x12X\n\nparameters\x18\x04 \x03(\x0b\x32\x38.ssn.predictservice.v1.ModelInferRequest.ParametersEntryR\nparameters\x12Q\n\x06inputs\x18\x05 \x03(\x0b\x32\x39.ssn.predictservice.v1.ModelInferRequest.InferInputTensorR\x06inputs\x12]\n\x07outputs\x18\x06 \x03(\x0b\x32\x43.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensorR\x07outputs\x12,\n\x12raw_input_contents\x18\x07 \x03(\x0cR\x10rawInputContents\x1a\xf1\x02\n\x10InferInputTensor\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1a\n\x08\x64\x61tatype\x18\x02 \x01(\tR\x08\x64\x61tatype\x12\x14\n\x05shape\x18\x03 \x03(\x03R\x05shape\x12i\n\nparameters\x18\x04 \x03(\x0b\x32I.ssn.predictservice.v1.ModelInferRequest.InferInputTensor.ParametersEntryR\nparameters\x12\x46\n\x08\x63ontents\x18\x05 \x01(\x0b\x32*.ssn.predictservice.v1.InferTensorContentsR\x08\x63ontents\x1a\x64\n\x0fParametersEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12;\n\x05value\x18\x02 \x01(\x0b\x32%.ssn.predictservice.v1.InferParameterR\x05value:\x02\x38\x01\x1a\x8b\x02\n\x1aInferRequestedOutputTensor\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12s\n\nparameters\x18\x02 \x03(\x0b\x32S.ssn.predictservice.v1.ModelInferRequest.InferRequestedOutputTensor.ParametersEntryR\nparameters\x1a\x64\n\x0fParametersEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12;\n\x05value\x18\x02 \x01(\x0b\x32%.ssn.predictservice.v1.InferParameterR\x05value:\x02\x38\x01\x1a\x64\n\x0fParametersEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12;\n\x05value\x18\x02 \x01(\x0b\x32%.ssn.predictservice.v1.InferParameterR\x05value:\x02\x38\x01\"\xa7\x06\n\x12ModelInferResponse\x12\x1d\n\nmodel_name\x18\x01 \x01(\tR\tmodelName\x12#\n\rmodel_version\x18\x02 \x01(\tR\x0cmodelVersion\x12\x0e\n\x02id\x18\x03 \x01(\tR\x02id\x12Y\n\nparameters\x18\x04 \x03(\x0b\x32\x39.ssn.predictservice.v1.ModelInferResponse.ParametersEntryR\nparameters\x12U\n\x07outputs\x18\x05 \x03(\x0b\x32;.ssn.predictservice.v1.ModelInferResponse.InferOutputTensorR\x07outputs\x12.\n\x13raw_output_contents\x18\x06 \x03(\x0cR\x11rawOutputContents\x1a\xf4\x02\n\x11InferOutputTensor\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1a\n\x08\x64\x61tatype\x18\x02 \x01(\tR\x08\x64\x61tatype\x12\x14\n\x05shape\x18\x03 \x03(\x03R\x05shape\x12k\n\nparameters\x18\x04 \x03(\x0b\x32K.ssn.predictservice.v1.ModelInferResponse.InferOutputTensor.ParametersEntryR\nparameters\x12\x46\n\x08\x63ontents\x18\x05 \x01(\x0b\x32*.ssn.predictservice.v1.InferTensorContentsR\x08\x63ontents\x1a\x64\n\x0fParametersEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12;\n\x05value\x18\x02 \x01(\x0b\x32%.ssn.predictservice.v1.InferParameterR\x05value:\x02\x38\x01\x1a\x64\n\x0fParametersEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12;\n\x05value\x18\x02 \x01(\x0b\x32%.ssn.predictservice.v1.InferParameterR\x05value:\x02\x38\x01\x32p\n\x0ePredictService\x12^\n\x07Predict\x12(.ssn.predictservice.v1.ModelInferRequest\x1a).ssn.predictservice.v1.ModelInferResponseB`B\x14PredictServiceProtosZHgithub.com/e-conomic/vmlapis/gen/go/ssn/predictservice/v1;predictserviceb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ssn.predictservice.v1.predictservice_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'B\024PredictServiceProtosZHgithub.com/e-conomic/vmlapis/gen/go/ssn/predictservice/v1;predictservice' + _globals['_MODELINFERREQUEST_INFERINPUTTENSOR_PARAMETERSENTRY']._loaded_options = None + _globals['_MODELINFERREQUEST_INFERINPUTTENSOR_PARAMETERSENTRY']._serialized_options = b'8\001' + _globals['_MODELINFERREQUEST_INFERREQUESTEDOUTPUTTENSOR_PARAMETERSENTRY']._loaded_options = None + _globals['_MODELINFERREQUEST_INFERREQUESTEDOUTPUTTENSOR_PARAMETERSENTRY']._serialized_options = b'8\001' + _globals['_MODELINFERREQUEST_PARAMETERSENTRY']._loaded_options = None + _globals['_MODELINFERREQUEST_PARAMETERSENTRY']._serialized_options = b'8\001' + _globals['_MODELINFERRESPONSE_INFEROUTPUTTENSOR_PARAMETERSENTRY']._loaded_options = None + _globals['_MODELINFERRESPONSE_INFEROUTPUTTENSOR_PARAMETERSENTRY']._serialized_options = b'8\001' + _globals['_MODELINFERRESPONSE_PARAMETERSENTRY']._loaded_options = None + _globals['_MODELINFERRESPONSE_PARAMETERSENTRY']._serialized_options = b'8\001' + _globals['_INFERPARAMETER']._serialized_start=70 + _globals['_INFERPARAMETER']._serialized_end=285 + _globals['_INFERTENSORCONTENTS']._serialized_start=288 + _globals['_INFERTENSORCONTENTS']._serialized_end=611 + _globals['_MODELINFERREQUEST']._serialized_start=614 + _globals['_MODELINFERREQUEST']._serialized_end=1775 + _globals['_MODELINFERREQUEST_INFERINPUTTENSOR']._serialized_start=1034 + _globals['_MODELINFERREQUEST_INFERINPUTTENSOR']._serialized_end=1403 + _globals['_MODELINFERREQUEST_INFERINPUTTENSOR_PARAMETERSENTRY']._serialized_start=1303 + _globals['_MODELINFERREQUEST_INFERINPUTTENSOR_PARAMETERSENTRY']._serialized_end=1403 + _globals['_MODELINFERREQUEST_INFERREQUESTEDOUTPUTTENSOR']._serialized_start=1406 + _globals['_MODELINFERREQUEST_INFERREQUESTEDOUTPUTTENSOR']._serialized_end=1673 + _globals['_MODELINFERREQUEST_INFERREQUESTEDOUTPUTTENSOR_PARAMETERSENTRY']._serialized_start=1303 + _globals['_MODELINFERREQUEST_INFERREQUESTEDOUTPUTTENSOR_PARAMETERSENTRY']._serialized_end=1403 + _globals['_MODELINFERREQUEST_PARAMETERSENTRY']._serialized_start=1303 + _globals['_MODELINFERREQUEST_PARAMETERSENTRY']._serialized_end=1403 + _globals['_MODELINFERRESPONSE']._serialized_start=1778 + _globals['_MODELINFERRESPONSE']._serialized_end=2585 + _globals['_MODELINFERRESPONSE_INFEROUTPUTTENSOR']._serialized_start=2111 + _globals['_MODELINFERRESPONSE_INFEROUTPUTTENSOR']._serialized_end=2483 + _globals['_MODELINFERRESPONSE_INFEROUTPUTTENSOR_PARAMETERSENTRY']._serialized_start=1303 + _globals['_MODELINFERRESPONSE_INFEROUTPUTTENSOR_PARAMETERSENTRY']._serialized_end=1403 + _globals['_MODELINFERRESPONSE_PARAMETERSENTRY']._serialized_start=1303 + _globals['_MODELINFERRESPONSE_PARAMETERSENTRY']._serialized_end=1403 + _globals['_PREDICTSERVICE']._serialized_start=2587 + _globals['_PREDICTSERVICE']._serialized_end=2699 +# @@protoc_insertion_point(module_scope) diff --git a/gen/python/ssn/predictservice/v1/predictservice_pb2.pyi b/gen/python/ssn/predictservice/v1/predictservice_pb2.pyi new file mode 100644 index 00000000..39515119 --- /dev/null +++ b/gen/python/ssn/predictservice/v1/predictservice_pb2.pyi @@ -0,0 +1,142 @@ +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class InferParameter(_message.Message): + __slots__ = ("bool_param", "int64_param", "string_param", "double_param", "uint64_param") + BOOL_PARAM_FIELD_NUMBER: _ClassVar[int] + INT64_PARAM_FIELD_NUMBER: _ClassVar[int] + STRING_PARAM_FIELD_NUMBER: _ClassVar[int] + DOUBLE_PARAM_FIELD_NUMBER: _ClassVar[int] + UINT64_PARAM_FIELD_NUMBER: _ClassVar[int] + bool_param: bool + int64_param: int + string_param: str + double_param: float + uint64_param: int + def __init__(self, bool_param: bool = ..., int64_param: _Optional[int] = ..., string_param: _Optional[str] = ..., double_param: _Optional[float] = ..., uint64_param: _Optional[int] = ...) -> None: ... + +class InferTensorContents(_message.Message): + __slots__ = ("bool_contents", "int_contents", "int64_contents", "uint_contents", "uint64_contents", "fp32_contents", "fp64_contents", "bytes_contents") + BOOL_CONTENTS_FIELD_NUMBER: _ClassVar[int] + INT_CONTENTS_FIELD_NUMBER: _ClassVar[int] + INT64_CONTENTS_FIELD_NUMBER: _ClassVar[int] + UINT_CONTENTS_FIELD_NUMBER: _ClassVar[int] + UINT64_CONTENTS_FIELD_NUMBER: _ClassVar[int] + FP32_CONTENTS_FIELD_NUMBER: _ClassVar[int] + FP64_CONTENTS_FIELD_NUMBER: _ClassVar[int] + BYTES_CONTENTS_FIELD_NUMBER: _ClassVar[int] + bool_contents: _containers.RepeatedScalarFieldContainer[bool] + int_contents: _containers.RepeatedScalarFieldContainer[int] + int64_contents: _containers.RepeatedScalarFieldContainer[int] + uint_contents: _containers.RepeatedScalarFieldContainer[int] + uint64_contents: _containers.RepeatedScalarFieldContainer[int] + fp32_contents: _containers.RepeatedScalarFieldContainer[float] + fp64_contents: _containers.RepeatedScalarFieldContainer[float] + bytes_contents: _containers.RepeatedScalarFieldContainer[bytes] + def __init__(self, bool_contents: _Optional[_Iterable[bool]] = ..., int_contents: _Optional[_Iterable[int]] = ..., int64_contents: _Optional[_Iterable[int]] = ..., uint_contents: _Optional[_Iterable[int]] = ..., uint64_contents: _Optional[_Iterable[int]] = ..., fp32_contents: _Optional[_Iterable[float]] = ..., fp64_contents: _Optional[_Iterable[float]] = ..., bytes_contents: _Optional[_Iterable[bytes]] = ...) -> None: ... + +class ModelInferRequest(_message.Message): + __slots__ = ("model_name", "model_version", "id", "parameters", "inputs", "outputs", "raw_input_contents") + class InferInputTensor(_message.Message): + __slots__ = ("name", "datatype", "shape", "parameters", "contents") + class ParametersEntry(_message.Message): + __slots__ = ("key", "value") + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: InferParameter + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[InferParameter, _Mapping]] = ...) -> None: ... + NAME_FIELD_NUMBER: _ClassVar[int] + DATATYPE_FIELD_NUMBER: _ClassVar[int] + SHAPE_FIELD_NUMBER: _ClassVar[int] + PARAMETERS_FIELD_NUMBER: _ClassVar[int] + CONTENTS_FIELD_NUMBER: _ClassVar[int] + name: str + datatype: str + shape: _containers.RepeatedScalarFieldContainer[int] + parameters: _containers.MessageMap[str, InferParameter] + contents: InferTensorContents + def __init__(self, name: _Optional[str] = ..., datatype: _Optional[str] = ..., shape: _Optional[_Iterable[int]] = ..., parameters: _Optional[_Mapping[str, InferParameter]] = ..., contents: _Optional[_Union[InferTensorContents, _Mapping]] = ...) -> None: ... + class InferRequestedOutputTensor(_message.Message): + __slots__ = ("name", "parameters") + class ParametersEntry(_message.Message): + __slots__ = ("key", "value") + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: InferParameter + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[InferParameter, _Mapping]] = ...) -> None: ... + NAME_FIELD_NUMBER: _ClassVar[int] + PARAMETERS_FIELD_NUMBER: _ClassVar[int] + name: str + parameters: _containers.MessageMap[str, InferParameter] + def __init__(self, name: _Optional[str] = ..., parameters: _Optional[_Mapping[str, InferParameter]] = ...) -> None: ... + class ParametersEntry(_message.Message): + __slots__ = ("key", "value") + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: InferParameter + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[InferParameter, _Mapping]] = ...) -> None: ... + MODEL_NAME_FIELD_NUMBER: _ClassVar[int] + MODEL_VERSION_FIELD_NUMBER: _ClassVar[int] + ID_FIELD_NUMBER: _ClassVar[int] + PARAMETERS_FIELD_NUMBER: _ClassVar[int] + INPUTS_FIELD_NUMBER: _ClassVar[int] + OUTPUTS_FIELD_NUMBER: _ClassVar[int] + RAW_INPUT_CONTENTS_FIELD_NUMBER: _ClassVar[int] + model_name: str + model_version: str + id: str + parameters: _containers.MessageMap[str, InferParameter] + inputs: _containers.RepeatedCompositeFieldContainer[ModelInferRequest.InferInputTensor] + outputs: _containers.RepeatedCompositeFieldContainer[ModelInferRequest.InferRequestedOutputTensor] + raw_input_contents: _containers.RepeatedScalarFieldContainer[bytes] + def __init__(self, model_name: _Optional[str] = ..., model_version: _Optional[str] = ..., id: _Optional[str] = ..., parameters: _Optional[_Mapping[str, InferParameter]] = ..., inputs: _Optional[_Iterable[_Union[ModelInferRequest.InferInputTensor, _Mapping]]] = ..., outputs: _Optional[_Iterable[_Union[ModelInferRequest.InferRequestedOutputTensor, _Mapping]]] = ..., raw_input_contents: _Optional[_Iterable[bytes]] = ...) -> None: ... + +class ModelInferResponse(_message.Message): + __slots__ = ("model_name", "model_version", "id", "parameters", "outputs", "raw_output_contents") + class InferOutputTensor(_message.Message): + __slots__ = ("name", "datatype", "shape", "parameters", "contents") + class ParametersEntry(_message.Message): + __slots__ = ("key", "value") + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: InferParameter + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[InferParameter, _Mapping]] = ...) -> None: ... + NAME_FIELD_NUMBER: _ClassVar[int] + DATATYPE_FIELD_NUMBER: _ClassVar[int] + SHAPE_FIELD_NUMBER: _ClassVar[int] + PARAMETERS_FIELD_NUMBER: _ClassVar[int] + CONTENTS_FIELD_NUMBER: _ClassVar[int] + name: str + datatype: str + shape: _containers.RepeatedScalarFieldContainer[int] + parameters: _containers.MessageMap[str, InferParameter] + contents: InferTensorContents + def __init__(self, name: _Optional[str] = ..., datatype: _Optional[str] = ..., shape: _Optional[_Iterable[int]] = ..., parameters: _Optional[_Mapping[str, InferParameter]] = ..., contents: _Optional[_Union[InferTensorContents, _Mapping]] = ...) -> None: ... + class ParametersEntry(_message.Message): + __slots__ = ("key", "value") + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: InferParameter + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[InferParameter, _Mapping]] = ...) -> None: ... + MODEL_NAME_FIELD_NUMBER: _ClassVar[int] + MODEL_VERSION_FIELD_NUMBER: _ClassVar[int] + ID_FIELD_NUMBER: _ClassVar[int] + PARAMETERS_FIELD_NUMBER: _ClassVar[int] + OUTPUTS_FIELD_NUMBER: _ClassVar[int] + RAW_OUTPUT_CONTENTS_FIELD_NUMBER: _ClassVar[int] + model_name: str + model_version: str + id: str + parameters: _containers.MessageMap[str, InferParameter] + outputs: _containers.RepeatedCompositeFieldContainer[ModelInferResponse.InferOutputTensor] + raw_output_contents: _containers.RepeatedScalarFieldContainer[bytes] + def __init__(self, model_name: _Optional[str] = ..., model_version: _Optional[str] = ..., id: _Optional[str] = ..., parameters: _Optional[_Mapping[str, InferParameter]] = ..., outputs: _Optional[_Iterable[_Union[ModelInferResponse.InferOutputTensor, _Mapping]]] = ..., raw_output_contents: _Optional[_Iterable[bytes]] = ...) -> None: ... diff --git a/gen/python/ssn/predictservice/v1/predictservice_pb2_grpc.py b/gen/python/ssn/predictservice/v1/predictservice_pb2_grpc.py new file mode 100644 index 00000000..c2497ee4 --- /dev/null +++ b/gen/python/ssn/predictservice/v1/predictservice_pb2_grpc.py @@ -0,0 +1,77 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from vml_proto.ssn.predictservice.v1 import predictservice_pb2 as ssn_dot_predictservice_dot_v1_dot_predictservice__pb2 + + +class PredictServiceStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Predict = channel.unary_unary( + '/ssn.predictservice.v1.PredictService/Predict', + request_serializer=ssn_dot_predictservice_dot_v1_dot_predictservice__pb2.ModelInferRequest.SerializeToString, + response_deserializer=ssn_dot_predictservice_dot_v1_dot_predictservice__pb2.ModelInferResponse.FromString, + _registered_method=True) + + +class PredictServiceServicer(object): + """Missing associated documentation comment in .proto file.""" + + def Predict(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_PredictServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Predict': grpc.unary_unary_rpc_method_handler( + servicer.Predict, + request_deserializer=ssn_dot_predictservice_dot_v1_dot_predictservice__pb2.ModelInferRequest.FromString, + response_serializer=ssn_dot_predictservice_dot_v1_dot_predictservice__pb2.ModelInferResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'ssn.predictservice.v1.PredictService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('ssn.predictservice.v1.PredictService', rpc_method_handlers) + + + # This class is part of an EXPERIMENTAL API. +class PredictService(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def Predict(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/ssn.predictservice.v1.PredictService/Predict', + ssn_dot_predictservice_dot_v1_dot_predictservice__pb2.ModelInferRequest.SerializeToString, + ssn_dot_predictservice_dot_v1_dot_predictservice__pb2.ModelInferResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/proto/ssn/predictservice/v1/predictservice.proto b/proto/ssn/predictservice/v1/predictservice.proto index b6fd0e91..28fc463f 100644 --- a/proto/ssn/predictservice/v1/predictservice.proto +++ b/proto/ssn/predictservice/v1/predictservice.proto @@ -2,7 +2,6 @@ syntax = "proto3"; package ssn.predictservice.v1; - option go_package = "github.com/e-conomic/vmlapis/gen/go/ssn/predictservice/v1;predictservice"; option java_outer_classname = "PredictServiceProtos"; @@ -32,7 +31,6 @@ message InferTensorContents { repeated bytes bytes_contents = 8; } - message ModelInferRequest { message InferInputTensor { string name = 1; @@ -72,4 +70,3 @@ message ModelInferResponse { repeated InferOutputTensor outputs = 5; repeated bytes raw_output_contents = 6; } -