@ondewo/nlu-client-typescript 3.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.
Files changed (80) hide show
  1. package/LICENSE +191 -0
  2. package/README.md +27 -0
  3. package/api/google/api/annotations_pb.d.ts +6 -0
  4. package/api/google/api/annotations_pb.js +48 -0
  5. package/api/google/protobuf/any_pb.d.ts +28 -0
  6. package/api/google/protobuf/any_pb.js +275 -0
  7. package/api/google/protobuf/empty_pb.d.ts +18 -0
  8. package/api/google/protobuf/empty_pb.js +141 -0
  9. package/api/google/protobuf/field_mask_pb.d.ts +24 -0
  10. package/api/google/protobuf/field_mask_pb.js +196 -0
  11. package/api/google/protobuf/struct_pb.d.ts +99 -0
  12. package/api/google/protobuf/struct_pb.js +948 -0
  13. package/api/google/protobuf/timestamp_pb.d.ts +26 -0
  14. package/api/google/protobuf/timestamp_pb.js +236 -0
  15. package/api/google/rpc/status_pb.d.ts +33 -0
  16. package/api/google/rpc/status_pb.js +262 -0
  17. package/api/google/type/latlng_pb.d.ts +26 -0
  18. package/api/google/type/latlng_pb.js +200 -0
  19. package/api/ondewo/nlu/agent_grpc_web_pb.d.ts +489 -0
  20. package/api/ondewo/nlu/agent_grpc_web_pb.js +2476 -0
  21. package/api/ondewo/nlu/agent_pb.d.ts +2079 -0
  22. package/api/ondewo/nlu/agent_pb.js +16648 -0
  23. package/api/ondewo/nlu/aiservices_grpc_web_pb.d.ts +115 -0
  24. package/api/ondewo/nlu/aiservices_grpc_web_pb.js +569 -0
  25. package/api/ondewo/nlu/aiservices_pb.d.ts +933 -0
  26. package/api/ondewo/nlu/aiservices_pb.js +7601 -0
  27. package/api/ondewo/nlu/common_pb.d.ts +26 -0
  28. package/api/ondewo/nlu/common_pb.js +179 -0
  29. package/api/ondewo/nlu/context_grpc_web_pb.d.ts +92 -0
  30. package/api/ondewo/nlu/context_grpc_web_pb.js +447 -0
  31. package/api/ondewo/nlu/context_pb.d.ts +218 -0
  32. package/api/ondewo/nlu/context_pb.js +1788 -0
  33. package/api/ondewo/nlu/entity_type_grpc_web_pb.d.ts +165 -0
  34. package/api/ondewo/nlu/entity_type_grpc_web_pb.js +817 -0
  35. package/api/ondewo/nlu/entity_type_pb.d.ts +756 -0
  36. package/api/ondewo/nlu/entity_type_pb.js +5970 -0
  37. package/api/ondewo/nlu/intent_grpc_web_pb.d.ts +345 -0
  38. package/api/ondewo/nlu/intent_grpc_web_pb.js +1738 -0
  39. package/api/ondewo/nlu/intent_pb.d.ts +2344 -0
  40. package/api/ondewo/nlu/intent_pb.js +18784 -0
  41. package/api/ondewo/nlu/operation_metadata_pb.d.ts +112 -0
  42. package/api/ondewo/nlu/operation_metadata_pb.js +740 -0
  43. package/api/ondewo/nlu/operations_grpc_web_pb.d.ts +68 -0
  44. package/api/ondewo/nlu/operations_grpc_web_pb.js +331 -0
  45. package/api/ondewo/nlu/operations_pb.d.ts +236 -0
  46. package/api/ondewo/nlu/operations_pb.js +1826 -0
  47. package/api/ondewo/nlu/project_role_grpc_web_pb.d.ts +80 -0
  48. package/api/ondewo/nlu/project_role_grpc_web_pb.js +386 -0
  49. package/api/ondewo/nlu/project_role_pb.d.ts +220 -0
  50. package/api/ondewo/nlu/project_role_pb.js +1713 -0
  51. package/api/ondewo/nlu/project_statistics_grpc_web_pb.d.ts +116 -0
  52. package/api/ondewo/nlu/project_statistics_grpc_web_pb.js +571 -0
  53. package/api/ondewo/nlu/project_statistics_pb.d.ts +92 -0
  54. package/api/ondewo/nlu/project_statistics_pb.js +724 -0
  55. package/api/ondewo/nlu/server_statistics_grpc_web_pb.d.ts +57 -0
  56. package/api/ondewo/nlu/server_statistics_grpc_web_pb.js +264 -0
  57. package/api/ondewo/nlu/server_statistics_pb.d.ts +25 -0
  58. package/api/ondewo/nlu/server_statistics_pb.js +176 -0
  59. package/api/ondewo/nlu/session_grpc_web_pb.d.ts +176 -0
  60. package/api/ondewo/nlu/session_grpc_web_pb.js +884 -0
  61. package/api/ondewo/nlu/session_pb.d.ts +1192 -0
  62. package/api/ondewo/nlu/session_pb.js +9762 -0
  63. package/api/ondewo/nlu/user_grpc_web_pb.d.ts +200 -0
  64. package/api/ondewo/nlu/user_grpc_web_pb.js +998 -0
  65. package/api/ondewo/nlu/user_pb.d.ts +489 -0
  66. package/api/ondewo/nlu/user_pb.js +4057 -0
  67. package/api/ondewo/nlu/utility_grpc_web_pb.d.ts +115 -0
  68. package/api/ondewo/nlu/utility_grpc_web_pb.js +567 -0
  69. package/api/ondewo/nlu/utility_pb.d.ts +708 -0
  70. package/api/ondewo/nlu/utility_pb.js +5914 -0
  71. package/api/ondewo/nlu/webhook_grpc_web_pb.d.ts +55 -0
  72. package/api/ondewo/nlu/webhook_grpc_web_pb.js +268 -0
  73. package/api/ondewo/nlu/webhook_pb.d.ts +155 -0
  74. package/api/ondewo/nlu/webhook_pb.js +1267 -0
  75. package/api/ondewo/qa/qa_grpc_web_pb.d.ts +104 -0
  76. package/api/ondewo/qa/qa_grpc_web_pb.js +508 -0
  77. package/api/ondewo/qa/qa_pb.d.ts +304 -0
  78. package/api/ondewo/qa/qa_pb.js +2553 -0
  79. package/package.json +18 -0
  80. package/public-api.d.ts +38 -0
@@ -0,0 +1,26 @@
1
+ import * as jspb from 'google-protobuf'
2
+
3
+
4
+
5
+ export class Timestamp extends jspb.Message {
6
+ getSeconds(): number;
7
+ setSeconds(value: number): Timestamp;
8
+
9
+ getNanos(): number;
10
+ setNanos(value: number): Timestamp;
11
+
12
+ serializeBinary(): Uint8Array;
13
+ toObject(includeInstance?: boolean): Timestamp.AsObject;
14
+ static toObject(includeInstance: boolean, msg: Timestamp): Timestamp.AsObject;
15
+ static serializeBinaryToWriter(message: Timestamp, writer: jspb.BinaryWriter): void;
16
+ static deserializeBinary(bytes: Uint8Array): Timestamp;
17
+ static deserializeBinaryFromReader(message: Timestamp, reader: jspb.BinaryReader): Timestamp;
18
+ }
19
+
20
+ export namespace Timestamp {
21
+ export type AsObject = {
22
+ seconds: number,
23
+ nanos: number,
24
+ }
25
+ }
26
+
@@ -0,0 +1,236 @@
1
+ // source: google/protobuf/timestamp.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
17
+
18
+ goog.exportSymbol('proto.google.protobuf.Timestamp', null, global);
19
+ /**
20
+ * Generated by JsPbCodeGenerator.
21
+ * @param {Array=} opt_data Optional initial data array, typically from a
22
+ * server response, or constructed directly in Javascript. The array is used
23
+ * in place and becomes part of the constructed object. It is not cloned.
24
+ * If no data is provided, the constructed object will be empty, but still
25
+ * valid.
26
+ * @extends {jspb.Message}
27
+ * @constructor
28
+ */
29
+ proto.google.protobuf.Timestamp = function(opt_data) {
30
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
31
+ };
32
+ goog.inherits(proto.google.protobuf.Timestamp, jspb.Message);
33
+ if (goog.DEBUG && !COMPILED) {
34
+ /**
35
+ * @public
36
+ * @override
37
+ */
38
+ proto.google.protobuf.Timestamp.displayName = 'proto.google.protobuf.Timestamp';
39
+ }
40
+
41
+
42
+
43
+ if (jspb.Message.GENERATE_TO_OBJECT) {
44
+ /**
45
+ * Creates an object representation of this proto.
46
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
47
+ * Optional fields that are not set will be set to undefined.
48
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
49
+ * For the list of reserved names please see:
50
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
51
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
52
+ * JSPB instance for transitional soy proto support:
53
+ * http://goto/soy-param-migration
54
+ * @return {!Object}
55
+ */
56
+ proto.google.protobuf.Timestamp.prototype.toObject = function(opt_includeInstance) {
57
+ return proto.google.protobuf.Timestamp.toObject(opt_includeInstance, this);
58
+ };
59
+
60
+
61
+ /**
62
+ * Static version of the {@see toObject} method.
63
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
64
+ * the JSPB instance for transitional soy proto support:
65
+ * http://goto/soy-param-migration
66
+ * @param {!proto.google.protobuf.Timestamp} msg The msg instance to transform.
67
+ * @return {!Object}
68
+ * @suppress {unusedLocalVariables} f is only used for nested messages
69
+ */
70
+ proto.google.protobuf.Timestamp.toObject = function(includeInstance, msg) {
71
+ var f, obj = {
72
+ seconds: jspb.Message.getFieldWithDefault(msg, 1, 0),
73
+ nanos: jspb.Message.getFieldWithDefault(msg, 2, 0)
74
+ };
75
+
76
+ if (includeInstance) {
77
+ obj.$jspbMessageInstance = msg;
78
+ }
79
+ return obj;
80
+ };
81
+ }
82
+
83
+
84
+ /**
85
+ * Deserializes binary data (in protobuf wire format).
86
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
87
+ * @return {!proto.google.protobuf.Timestamp}
88
+ */
89
+ proto.google.protobuf.Timestamp.deserializeBinary = function(bytes) {
90
+ var reader = new jspb.BinaryReader(bytes);
91
+ var msg = new proto.google.protobuf.Timestamp;
92
+ return proto.google.protobuf.Timestamp.deserializeBinaryFromReader(msg, reader);
93
+ };
94
+
95
+
96
+ /**
97
+ * Deserializes binary data (in protobuf wire format) from the
98
+ * given reader into the given message object.
99
+ * @param {!proto.google.protobuf.Timestamp} msg The message object to deserialize into.
100
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
101
+ * @return {!proto.google.protobuf.Timestamp}
102
+ */
103
+ proto.google.protobuf.Timestamp.deserializeBinaryFromReader = function(msg, reader) {
104
+ while (reader.nextField()) {
105
+ if (reader.isEndGroup()) {
106
+ break;
107
+ }
108
+ var field = reader.getFieldNumber();
109
+ switch (field) {
110
+ case 1:
111
+ var value = /** @type {number} */ (reader.readInt64());
112
+ msg.setSeconds(value);
113
+ break;
114
+ case 2:
115
+ var value = /** @type {number} */ (reader.readInt32());
116
+ msg.setNanos(value);
117
+ break;
118
+ default:
119
+ reader.skipField();
120
+ break;
121
+ }
122
+ }
123
+ return msg;
124
+ };
125
+
126
+
127
+ /**
128
+ * Serializes the message to binary data (in protobuf wire format).
129
+ * @return {!Uint8Array}
130
+ */
131
+ proto.google.protobuf.Timestamp.prototype.serializeBinary = function() {
132
+ var writer = new jspb.BinaryWriter();
133
+ proto.google.protobuf.Timestamp.serializeBinaryToWriter(this, writer);
134
+ return writer.getResultBuffer();
135
+ };
136
+
137
+
138
+ /**
139
+ * Serializes the given message to binary data (in protobuf wire
140
+ * format), writing to the given BinaryWriter.
141
+ * @param {!proto.google.protobuf.Timestamp} message
142
+ * @param {!jspb.BinaryWriter} writer
143
+ * @suppress {unusedLocalVariables} f is only used for nested messages
144
+ */
145
+ proto.google.protobuf.Timestamp.serializeBinaryToWriter = function(message, writer) {
146
+ var f = undefined;
147
+ f = message.getSeconds();
148
+ if (f !== 0) {
149
+ writer.writeInt64(
150
+ 1,
151
+ f
152
+ );
153
+ }
154
+ f = message.getNanos();
155
+ if (f !== 0) {
156
+ writer.writeInt32(
157
+ 2,
158
+ f
159
+ );
160
+ }
161
+ };
162
+
163
+
164
+ /**
165
+ * optional int64 seconds = 1;
166
+ * @return {number}
167
+ */
168
+ proto.google.protobuf.Timestamp.prototype.getSeconds = function() {
169
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
170
+ };
171
+
172
+
173
+ /**
174
+ * @param {number} value
175
+ * @return {!proto.google.protobuf.Timestamp} returns this
176
+ */
177
+ proto.google.protobuf.Timestamp.prototype.setSeconds = function(value) {
178
+ return jspb.Message.setProto3IntField(this, 1, value);
179
+ };
180
+
181
+
182
+ /**
183
+ * optional int32 nanos = 2;
184
+ * @return {number}
185
+ */
186
+ proto.google.protobuf.Timestamp.prototype.getNanos = function() {
187
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
188
+ };
189
+
190
+
191
+ /**
192
+ * @param {number} value
193
+ * @return {!proto.google.protobuf.Timestamp} returns this
194
+ */
195
+ proto.google.protobuf.Timestamp.prototype.setNanos = function(value) {
196
+ return jspb.Message.setProto3IntField(this, 2, value);
197
+ };
198
+
199
+
200
+ goog.object.extend(exports, proto.google.protobuf);
201
+ /* This code will be inserted into generated code for
202
+ * google/protobuf/timestamp.proto. */
203
+
204
+ /**
205
+ * Returns a JavaScript 'Date' object corresponding to this Timestamp.
206
+ * @return {!Date}
207
+ */
208
+ proto.google.protobuf.Timestamp.prototype.toDate = function() {
209
+ var seconds = this.getSeconds();
210
+ var nanos = this.getNanos();
211
+
212
+ return new Date((seconds * 1000) + (nanos / 1000000));
213
+ };
214
+
215
+
216
+ /**
217
+ * Sets the value of this Timestamp object to be the given Date.
218
+ * @param {!Date} value The value to set.
219
+ */
220
+ proto.google.protobuf.Timestamp.prototype.fromDate = function(value) {
221
+ this.setSeconds(Math.floor(value.getTime() / 1000));
222
+ this.setNanos(value.getMilliseconds() * 1000000);
223
+ };
224
+
225
+
226
+ /**
227
+ * Factory method that returns a Timestamp object with value equal to
228
+ * the given Date.
229
+ * @param {!Date} value The value to set.
230
+ * @return {!proto.google.protobuf.Timestamp}
231
+ */
232
+ proto.google.protobuf.Timestamp.fromDate = function(value) {
233
+ var timestamp = new proto.google.protobuf.Timestamp();
234
+ timestamp.fromDate(value);
235
+ return timestamp;
236
+ };
@@ -0,0 +1,33 @@
1
+ import * as jspb from 'google-protobuf'
2
+
3
+ import * as google_protobuf_any_pb from 'google-protobuf/google/protobuf/any_pb';
4
+
5
+
6
+ export class Status extends jspb.Message {
7
+ getCode(): number;
8
+ setCode(value: number): Status;
9
+
10
+ getMessage(): string;
11
+ setMessage(value: string): Status;
12
+
13
+ getDetailsList(): Array<google_protobuf_any_pb.Any>;
14
+ setDetailsList(value: Array<google_protobuf_any_pb.Any>): Status;
15
+ clearDetailsList(): Status;
16
+ addDetails(value?: google_protobuf_any_pb.Any, index?: number): google_protobuf_any_pb.Any;
17
+
18
+ serializeBinary(): Uint8Array;
19
+ toObject(includeInstance?: boolean): Status.AsObject;
20
+ static toObject(includeInstance: boolean, msg: Status): Status.AsObject;
21
+ static serializeBinaryToWriter(message: Status, writer: jspb.BinaryWriter): void;
22
+ static deserializeBinary(bytes: Uint8Array): Status;
23
+ static deserializeBinaryFromReader(message: Status, reader: jspb.BinaryReader): Status;
24
+ }
25
+
26
+ export namespace Status {
27
+ export type AsObject = {
28
+ code: number,
29
+ message: string,
30
+ detailsList: Array<google_protobuf_any_pb.Any.AsObject>,
31
+ }
32
+ }
33
+
@@ -0,0 +1,262 @@
1
+ // source: google/rpc/status.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
17
+
18
+ var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
19
+ goog.object.extend(proto, google_protobuf_any_pb);
20
+ goog.exportSymbol('proto.google.rpc.Status', null, global);
21
+ /**
22
+ * Generated by JsPbCodeGenerator.
23
+ * @param {Array=} opt_data Optional initial data array, typically from a
24
+ * server response, or constructed directly in Javascript. The array is used
25
+ * in place and becomes part of the constructed object. It is not cloned.
26
+ * If no data is provided, the constructed object will be empty, but still
27
+ * valid.
28
+ * @extends {jspb.Message}
29
+ * @constructor
30
+ */
31
+ proto.google.rpc.Status = function(opt_data) {
32
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.rpc.Status.repeatedFields_, null);
33
+ };
34
+ goog.inherits(proto.google.rpc.Status, jspb.Message);
35
+ if (goog.DEBUG && !COMPILED) {
36
+ /**
37
+ * @public
38
+ * @override
39
+ */
40
+ proto.google.rpc.Status.displayName = 'proto.google.rpc.Status';
41
+ }
42
+
43
+ /**
44
+ * List of repeated fields within this message type.
45
+ * @private {!Array<number>}
46
+ * @const
47
+ */
48
+ proto.google.rpc.Status.repeatedFields_ = [3];
49
+
50
+
51
+
52
+ if (jspb.Message.GENERATE_TO_OBJECT) {
53
+ /**
54
+ * Creates an object representation of this proto.
55
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
56
+ * Optional fields that are not set will be set to undefined.
57
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
58
+ * For the list of reserved names please see:
59
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
60
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
61
+ * JSPB instance for transitional soy proto support:
62
+ * http://goto/soy-param-migration
63
+ * @return {!Object}
64
+ */
65
+ proto.google.rpc.Status.prototype.toObject = function(opt_includeInstance) {
66
+ return proto.google.rpc.Status.toObject(opt_includeInstance, this);
67
+ };
68
+
69
+
70
+ /**
71
+ * Static version of the {@see toObject} method.
72
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
73
+ * the JSPB instance for transitional soy proto support:
74
+ * http://goto/soy-param-migration
75
+ * @param {!proto.google.rpc.Status} msg The msg instance to transform.
76
+ * @return {!Object}
77
+ * @suppress {unusedLocalVariables} f is only used for nested messages
78
+ */
79
+ proto.google.rpc.Status.toObject = function(includeInstance, msg) {
80
+ var f, obj = {
81
+ code: jspb.Message.getFieldWithDefault(msg, 1, 0),
82
+ message: jspb.Message.getFieldWithDefault(msg, 2, ""),
83
+ detailsList: jspb.Message.toObjectList(msg.getDetailsList(),
84
+ google_protobuf_any_pb.Any.toObject, includeInstance)
85
+ };
86
+
87
+ if (includeInstance) {
88
+ obj.$jspbMessageInstance = msg;
89
+ }
90
+ return obj;
91
+ };
92
+ }
93
+
94
+
95
+ /**
96
+ * Deserializes binary data (in protobuf wire format).
97
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
98
+ * @return {!proto.google.rpc.Status}
99
+ */
100
+ proto.google.rpc.Status.deserializeBinary = function(bytes) {
101
+ var reader = new jspb.BinaryReader(bytes);
102
+ var msg = new proto.google.rpc.Status;
103
+ return proto.google.rpc.Status.deserializeBinaryFromReader(msg, reader);
104
+ };
105
+
106
+
107
+ /**
108
+ * Deserializes binary data (in protobuf wire format) from the
109
+ * given reader into the given message object.
110
+ * @param {!proto.google.rpc.Status} msg The message object to deserialize into.
111
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
112
+ * @return {!proto.google.rpc.Status}
113
+ */
114
+ proto.google.rpc.Status.deserializeBinaryFromReader = function(msg, reader) {
115
+ while (reader.nextField()) {
116
+ if (reader.isEndGroup()) {
117
+ break;
118
+ }
119
+ var field = reader.getFieldNumber();
120
+ switch (field) {
121
+ case 1:
122
+ var value = /** @type {number} */ (reader.readInt32());
123
+ msg.setCode(value);
124
+ break;
125
+ case 2:
126
+ var value = /** @type {string} */ (reader.readString());
127
+ msg.setMessage(value);
128
+ break;
129
+ case 3:
130
+ var value = new google_protobuf_any_pb.Any;
131
+ reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
132
+ msg.addDetails(value);
133
+ break;
134
+ default:
135
+ reader.skipField();
136
+ break;
137
+ }
138
+ }
139
+ return msg;
140
+ };
141
+
142
+
143
+ /**
144
+ * Serializes the message to binary data (in protobuf wire format).
145
+ * @return {!Uint8Array}
146
+ */
147
+ proto.google.rpc.Status.prototype.serializeBinary = function() {
148
+ var writer = new jspb.BinaryWriter();
149
+ proto.google.rpc.Status.serializeBinaryToWriter(this, writer);
150
+ return writer.getResultBuffer();
151
+ };
152
+
153
+
154
+ /**
155
+ * Serializes the given message to binary data (in protobuf wire
156
+ * format), writing to the given BinaryWriter.
157
+ * @param {!proto.google.rpc.Status} message
158
+ * @param {!jspb.BinaryWriter} writer
159
+ * @suppress {unusedLocalVariables} f is only used for nested messages
160
+ */
161
+ proto.google.rpc.Status.serializeBinaryToWriter = function(message, writer) {
162
+ var f = undefined;
163
+ f = message.getCode();
164
+ if (f !== 0) {
165
+ writer.writeInt32(
166
+ 1,
167
+ f
168
+ );
169
+ }
170
+ f = message.getMessage();
171
+ if (f.length > 0) {
172
+ writer.writeString(
173
+ 2,
174
+ f
175
+ );
176
+ }
177
+ f = message.getDetailsList();
178
+ if (f.length > 0) {
179
+ writer.writeRepeatedMessage(
180
+ 3,
181
+ f,
182
+ google_protobuf_any_pb.Any.serializeBinaryToWriter
183
+ );
184
+ }
185
+ };
186
+
187
+
188
+ /**
189
+ * optional int32 code = 1;
190
+ * @return {number}
191
+ */
192
+ proto.google.rpc.Status.prototype.getCode = function() {
193
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
194
+ };
195
+
196
+
197
+ /**
198
+ * @param {number} value
199
+ * @return {!proto.google.rpc.Status} returns this
200
+ */
201
+ proto.google.rpc.Status.prototype.setCode = function(value) {
202
+ return jspb.Message.setProto3IntField(this, 1, value);
203
+ };
204
+
205
+
206
+ /**
207
+ * optional string message = 2;
208
+ * @return {string}
209
+ */
210
+ proto.google.rpc.Status.prototype.getMessage = function() {
211
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
212
+ };
213
+
214
+
215
+ /**
216
+ * @param {string} value
217
+ * @return {!proto.google.rpc.Status} returns this
218
+ */
219
+ proto.google.rpc.Status.prototype.setMessage = function(value) {
220
+ return jspb.Message.setProto3StringField(this, 2, value);
221
+ };
222
+
223
+
224
+ /**
225
+ * repeated google.protobuf.Any details = 3;
226
+ * @return {!Array<!proto.google.protobuf.Any>}
227
+ */
228
+ proto.google.rpc.Status.prototype.getDetailsList = function() {
229
+ return /** @type{!Array<!proto.google.protobuf.Any>} */ (
230
+ jspb.Message.getRepeatedWrapperField(this, google_protobuf_any_pb.Any, 3));
231
+ };
232
+
233
+
234
+ /**
235
+ * @param {!Array<!proto.google.protobuf.Any>} value
236
+ * @return {!proto.google.rpc.Status} returns this
237
+ */
238
+ proto.google.rpc.Status.prototype.setDetailsList = function(value) {
239
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
240
+ };
241
+
242
+
243
+ /**
244
+ * @param {!proto.google.protobuf.Any=} opt_value
245
+ * @param {number=} opt_index
246
+ * @return {!proto.google.protobuf.Any}
247
+ */
248
+ proto.google.rpc.Status.prototype.addDetails = function(opt_value, opt_index) {
249
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.protobuf.Any, opt_index);
250
+ };
251
+
252
+
253
+ /**
254
+ * Clears the list making it empty but non-null.
255
+ * @return {!proto.google.rpc.Status} returns this
256
+ */
257
+ proto.google.rpc.Status.prototype.clearDetailsList = function() {
258
+ return this.setDetailsList([]);
259
+ };
260
+
261
+
262
+ goog.object.extend(exports, proto.google.rpc);
@@ -0,0 +1,26 @@
1
+ import * as jspb from 'google-protobuf'
2
+
3
+
4
+
5
+ export class LatLng extends jspb.Message {
6
+ getLatitude(): number;
7
+ setLatitude(value: number): LatLng;
8
+
9
+ getLongitude(): number;
10
+ setLongitude(value: number): LatLng;
11
+
12
+ serializeBinary(): Uint8Array;
13
+ toObject(includeInstance?: boolean): LatLng.AsObject;
14
+ static toObject(includeInstance: boolean, msg: LatLng): LatLng.AsObject;
15
+ static serializeBinaryToWriter(message: LatLng, writer: jspb.BinaryWriter): void;
16
+ static deserializeBinary(bytes: Uint8Array): LatLng;
17
+ static deserializeBinaryFromReader(message: LatLng, reader: jspb.BinaryReader): LatLng;
18
+ }
19
+
20
+ export namespace LatLng {
21
+ export type AsObject = {
22
+ latitude: number,
23
+ longitude: number,
24
+ }
25
+ }
26
+