@ondewo/s2t-client-typescript 6.1.0 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -121,7 +121,7 @@ proto.google.protobuf.Struct.prototype.toObject = function(opt_includeInstance)
121
121
  */
122
122
  proto.google.protobuf.Struct.toObject = function(includeInstance, msg) {
123
123
  var f, obj = {
124
- fieldsMap: (f = msg.getFieldsMap()) ? f.toObject(includeInstance, proto.google.protobuf.Value.toObject) : []
124
+ fieldsMap: (f = msg.getFieldsMap()) ? f.toObject(includeInstance, proto.google.protobuf.Value.toObject) : []
125
125
  };
126
126
 
127
127
  if (includeInstance) {
@@ -285,12 +285,12 @@ proto.google.protobuf.Value.prototype.toObject = function(opt_includeInstance) {
285
285
  */
286
286
  proto.google.protobuf.Value.toObject = function(includeInstance, msg) {
287
287
  var f, obj = {
288
- nullValue: jspb.Message.getFieldWithDefault(msg, 1, 0),
289
- numberValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
290
- stringValue: jspb.Message.getFieldWithDefault(msg, 3, ""),
291
- boolValue: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
292
- structValue: (f = msg.getStructValue()) && proto.google.protobuf.Struct.toObject(includeInstance, f),
293
- listValue: (f = msg.getListValue()) && proto.google.protobuf.ListValue.toObject(includeInstance, f)
288
+ nullValue: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
289
+ numberValue: (f = jspb.Message.getOptionalFloatingPointField(msg, 2)) == null ? undefined : f,
290
+ stringValue: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
291
+ boolValue: (f = jspb.Message.getBooleanField(msg, 4)) == null ? undefined : f,
292
+ structValue: (f = msg.getStructValue()) && proto.google.protobuf.Struct.toObject(includeInstance, f),
293
+ listValue: (f = msg.getListValue()) && proto.google.protobuf.ListValue.toObject(includeInstance, f)
294
294
  };
295
295
 
296
296
  if (includeInstance) {
@@ -686,7 +686,7 @@ proto.google.protobuf.ListValue.prototype.toObject = function(opt_includeInstanc
686
686
  */
687
687
  proto.google.protobuf.ListValue.toObject = function(includeInstance, msg) {
688
688
  var f, obj = {
689
- valuesList: jspb.Message.toObjectList(msg.getValuesList(),
689
+ valuesList: jspb.Message.toObjectList(msg.getValuesList(),
690
690
  proto.google.protobuf.Value.toObject, includeInstance)
691
691
  };
692
692
 
@@ -69,8 +69,8 @@ export class Speech2TextClient {
69
69
  request: google_protobuf_empty_pb.Empty,
70
70
  metadata: grpcWeb.Metadata | undefined,
71
71
  callback: (err: grpcWeb.RpcError,
72
- response: ondewo_s2t_speech$to$text_pb.S2TGetServiceInfoResponse) => void
73
- ): grpcWeb.ClientReadableStream<ondewo_s2t_speech$to$text_pb.S2TGetServiceInfoResponse>;
72
+ response: ondewo_s2t_speech$to$text_pb.S2tGetServiceInfoResponse) => void
73
+ ): grpcWeb.ClientReadableStream<ondewo_s2t_speech$to$text_pb.S2tGetServiceInfoResponse>;
74
74
 
75
75
  listS2tLanguageModels(
76
76
  request: ondewo_s2t_speech$to$text_pb.ListS2tLanguageModelsRequest,
@@ -107,6 +107,13 @@ export class Speech2TextClient {
107
107
  response: google_protobuf_empty_pb.Empty) => void
108
108
  ): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
109
109
 
110
+ listS2tNormalizationPipelines(
111
+ request: ondewo_s2t_speech$to$text_pb.ListS2tNormalizationPipelinesRequest,
112
+ metadata: grpcWeb.Metadata | undefined,
113
+ callback: (err: grpcWeb.RpcError,
114
+ response: ondewo_s2t_speech$to$text_pb.ListS2tNormalizationPipelinesResponse) => void
115
+ ): grpcWeb.ClientReadableStream<ondewo_s2t_speech$to$text_pb.ListS2tNormalizationPipelinesResponse>;
116
+
110
117
  }
111
118
 
112
119
  export class Speech2TextPromiseClient {
@@ -157,7 +164,7 @@ export class Speech2TextPromiseClient {
157
164
  getServiceInfo(
158
165
  request: google_protobuf_empty_pb.Empty,
159
166
  metadata?: grpcWeb.Metadata
160
- ): Promise<ondewo_s2t_speech$to$text_pb.S2TGetServiceInfoResponse>;
167
+ ): Promise<ondewo_s2t_speech$to$text_pb.S2tGetServiceInfoResponse>;
161
168
 
162
169
  listS2tLanguageModels(
163
170
  request: ondewo_s2t_speech$to$text_pb.ListS2tLanguageModelsRequest,
@@ -184,5 +191,10 @@ export class Speech2TextPromiseClient {
184
191
  metadata?: grpcWeb.Metadata
185
192
  ): Promise<google_protobuf_empty_pb.Empty>;
186
193
 
194
+ listS2tNormalizationPipelines(
195
+ request: ondewo_s2t_speech$to$text_pb.ListS2tNormalizationPipelinesRequest,
196
+ metadata?: grpcWeb.Metadata
197
+ ): Promise<ondewo_s2t_speech$to$text_pb.ListS2tNormalizationPipelinesResponse>;
198
+
187
199
  }
188
200
 
@@ -7,7 +7,7 @@
7
7
  // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
8
8
  // versions:
9
9
  // protoc-gen-grpc-web v1.5.0
10
- // protoc v5.27.3
10
+ // protoc v6.32.0
11
11
  // source: ondewo/s2t/speech-to-text.proto
12
12
 
13
13
 
@@ -571,13 +571,13 @@ proto.ondewo.s2t.Speech2TextPromiseClient.prototype.listS2tDomains =
571
571
  * @const
572
572
  * @type {!grpc.web.MethodDescriptor<
573
573
  * !proto.google.protobuf.Empty,
574
- * !proto.ondewo.s2t.S2TGetServiceInfoResponse>}
574
+ * !proto.ondewo.s2t.S2tGetServiceInfoResponse>}
575
575
  */
576
576
  const methodDescriptor_Speech2Text_GetServiceInfo = new grpc.web.MethodDescriptor(
577
577
  '/ondewo.s2t.Speech2Text/GetServiceInfo',
578
578
  grpc.web.MethodType.UNARY,
579
579
  google_protobuf_empty_pb.Empty,
580
- proto.ondewo.s2t.S2TGetServiceInfoResponse,
580
+ proto.ondewo.s2t.S2tGetServiceInfoResponse,
581
581
  /**
582
582
  * @param {!proto.google.protobuf.Empty} request
583
583
  * @return {!Uint8Array}
@@ -585,7 +585,7 @@ const methodDescriptor_Speech2Text_GetServiceInfo = new grpc.web.MethodDescripto
585
585
  function(request) {
586
586
  return request.serializeBinary();
587
587
  },
588
- proto.ondewo.s2t.S2TGetServiceInfoResponse.deserializeBinary
588
+ proto.ondewo.s2t.S2tGetServiceInfoResponse.deserializeBinary
589
589
  );
590
590
 
591
591
 
@@ -594,9 +594,9 @@ const methodDescriptor_Speech2Text_GetServiceInfo = new grpc.web.MethodDescripto
594
594
  * request proto
595
595
  * @param {?Object<string, string>} metadata User defined
596
596
  * call metadata
597
- * @param {function(?grpc.web.RpcError, ?proto.ondewo.s2t.S2TGetServiceInfoResponse)}
597
+ * @param {function(?grpc.web.RpcError, ?proto.ondewo.s2t.S2tGetServiceInfoResponse)}
598
598
  * callback The callback function(error, response)
599
- * @return {!grpc.web.ClientReadableStream<!proto.ondewo.s2t.S2TGetServiceInfoResponse>|undefined}
599
+ * @return {!grpc.web.ClientReadableStream<!proto.ondewo.s2t.S2tGetServiceInfoResponse>|undefined}
600
600
  * The XHR Node Readable Stream
601
601
  */
602
602
  proto.ondewo.s2t.Speech2TextClient.prototype.getServiceInfo =
@@ -615,7 +615,7 @@ proto.ondewo.s2t.Speech2TextClient.prototype.getServiceInfo =
615
615
  * request proto
616
616
  * @param {?Object<string, string>=} metadata User defined
617
617
  * call metadata
618
- * @return {!Promise<!proto.ondewo.s2t.S2TGetServiceInfoResponse>}
618
+ * @return {!Promise<!proto.ondewo.s2t.S2tGetServiceInfoResponse>}
619
619
  * Promise that resolves to the response
620
620
  */
621
621
  proto.ondewo.s2t.Speech2TextPromiseClient.prototype.getServiceInfo =
@@ -933,5 +933,66 @@ proto.ondewo.s2t.Speech2TextPromiseClient.prototype.trainUserLanguageModel =
933
933
  };
934
934
 
935
935
 
936
+ /**
937
+ * @const
938
+ * @type {!grpc.web.MethodDescriptor<
939
+ * !proto.ondewo.s2t.ListS2tNormalizationPipelinesRequest,
940
+ * !proto.ondewo.s2t.ListS2tNormalizationPipelinesResponse>}
941
+ */
942
+ const methodDescriptor_Speech2Text_ListS2tNormalizationPipelines = new grpc.web.MethodDescriptor(
943
+ '/ondewo.s2t.Speech2Text/ListS2tNormalizationPipelines',
944
+ grpc.web.MethodType.UNARY,
945
+ proto.ondewo.s2t.ListS2tNormalizationPipelinesRequest,
946
+ proto.ondewo.s2t.ListS2tNormalizationPipelinesResponse,
947
+ /**
948
+ * @param {!proto.ondewo.s2t.ListS2tNormalizationPipelinesRequest} request
949
+ * @return {!Uint8Array}
950
+ */
951
+ function(request) {
952
+ return request.serializeBinary();
953
+ },
954
+ proto.ondewo.s2t.ListS2tNormalizationPipelinesResponse.deserializeBinary
955
+ );
956
+
957
+
958
+ /**
959
+ * @param {!proto.ondewo.s2t.ListS2tNormalizationPipelinesRequest} request The
960
+ * request proto
961
+ * @param {?Object<string, string>} metadata User defined
962
+ * call metadata
963
+ * @param {function(?grpc.web.RpcError, ?proto.ondewo.s2t.ListS2tNormalizationPipelinesResponse)}
964
+ * callback The callback function(error, response)
965
+ * @return {!grpc.web.ClientReadableStream<!proto.ondewo.s2t.ListS2tNormalizationPipelinesResponse>|undefined}
966
+ * The XHR Node Readable Stream
967
+ */
968
+ proto.ondewo.s2t.Speech2TextClient.prototype.listS2tNormalizationPipelines =
969
+ function(request, metadata, callback) {
970
+ return this.client_.rpcCall(this.hostname_ +
971
+ '/ondewo.s2t.Speech2Text/ListS2tNormalizationPipelines',
972
+ request,
973
+ metadata || {},
974
+ methodDescriptor_Speech2Text_ListS2tNormalizationPipelines,
975
+ callback);
976
+ };
977
+
978
+
979
+ /**
980
+ * @param {!proto.ondewo.s2t.ListS2tNormalizationPipelinesRequest} request The
981
+ * request proto
982
+ * @param {?Object<string, string>=} metadata User defined
983
+ * call metadata
984
+ * @return {!Promise<!proto.ondewo.s2t.ListS2tNormalizationPipelinesResponse>}
985
+ * Promise that resolves to the response
986
+ */
987
+ proto.ondewo.s2t.Speech2TextPromiseClient.prototype.listS2tNormalizationPipelines =
988
+ function(request, metadata) {
989
+ return this.client_.unaryCall(this.hostname_ +
990
+ '/ondewo.s2t.Speech2Text/ListS2tNormalizationPipelines',
991
+ request,
992
+ metadata || {},
993
+ methodDescriptor_Speech2Text_ListS2tNormalizationPipelines);
994
+ };
995
+
996
+
936
997
  module.exports = proto.ondewo.s2t;
937
998