UNPKG

@ondewo/csi-client-nodejs

Version:

ONDEWO Communication System Integration (CSI) Client library for Nodejs

1,605 lines (1,387 loc) 56.6 kB
// source: ondewo/nlu/operations.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 = (function() { if (this) { return this; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } if (typeof self !== 'undefined') { return self; } return Function('return this')(); }.call(null)); var google_api_annotations_pb = require('../../google/api/annotations_pb.js'); goog.object.extend(proto, google_api_annotations_pb); var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); goog.object.extend(proto, google_protobuf_any_pb); var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); goog.object.extend(proto, google_protobuf_empty_pb); var google_rpc_status_pb = require('../../google/rpc/status_pb.js'); goog.object.extend(proto, google_rpc_status_pb); var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); goog.object.extend(proto, google_protobuf_timestamp_pb); var ondewo_nlu_operation_metadata_pb = require('../../ondewo/nlu/operation_metadata_pb.js'); goog.object.extend(proto, ondewo_nlu_operation_metadata_pb); goog.exportSymbol('proto.ondewo.nlu.CancelOperationRequest', null, global); goog.exportSymbol('proto.ondewo.nlu.DeleteOperationRequest', null, global); goog.exportSymbol('proto.ondewo.nlu.GetOperationRequest', null, global); goog.exportSymbol('proto.ondewo.nlu.ListOperationsRequest', null, global); goog.exportSymbol('proto.ondewo.nlu.ListOperationsResponse', null, global); goog.exportSymbol('proto.ondewo.nlu.Operation', null, global); goog.exportSymbol('proto.ondewo.nlu.Operation.ResultCase', null, global); goog.exportSymbol('proto.ondewo.nlu.OperationFilter', null, global); goog.exportSymbol('proto.ondewo.nlu.OperationFilter.EndTimeOneofCase', null, global); goog.exportSymbol('proto.ondewo.nlu.OperationFilter.StartTimeOneofCase', 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.ondewo.nlu.Operation = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ondewo.nlu.Operation.oneofGroups_); }; goog.inherits(proto.ondewo.nlu.Operation, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.Operation.displayName = 'proto.ondewo.nlu.Operation'; } /** * 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.ondewo.nlu.GetOperationRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ondewo.nlu.GetOperationRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.GetOperationRequest.displayName = 'proto.ondewo.nlu.GetOperationRequest'; } /** * 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.ondewo.nlu.ListOperationsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ondewo.nlu.ListOperationsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.ListOperationsRequest.displayName = 'proto.ondewo.nlu.ListOperationsRequest'; } /** * 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.ondewo.nlu.OperationFilter = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.OperationFilter.repeatedFields_, proto.ondewo.nlu.OperationFilter.oneofGroups_); }; goog.inherits(proto.ondewo.nlu.OperationFilter, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.OperationFilter.displayName = 'proto.ondewo.nlu.OperationFilter'; } /** * 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.ondewo.nlu.ListOperationsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.ListOperationsResponse.repeatedFields_, null); }; goog.inherits(proto.ondewo.nlu.ListOperationsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.ListOperationsResponse.displayName = 'proto.ondewo.nlu.ListOperationsResponse'; } /** * 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.ondewo.nlu.CancelOperationRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ondewo.nlu.CancelOperationRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.CancelOperationRequest.displayName = 'proto.ondewo.nlu.CancelOperationRequest'; } /** * 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.ondewo.nlu.DeleteOperationRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ondewo.nlu.DeleteOperationRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.DeleteOperationRequest.displayName = 'proto.ondewo.nlu.DeleteOperationRequest'; } /** * 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<!Array<number>>} * @const */ proto.ondewo.nlu.Operation.oneofGroups_ = [[4,5]]; /** * @enum {number} */ proto.ondewo.nlu.Operation.ResultCase = { RESULT_NOT_SET: 0, ERROR: 4, RESPONSE: 5 }; /** * @return {proto.ondewo.nlu.Operation.ResultCase} */ proto.ondewo.nlu.Operation.prototype.getResultCase = function() { return /** @type {proto.ondewo.nlu.Operation.ResultCase} */(jspb.Message.computeOneofCase(this, proto.ondewo.nlu.Operation.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_<name>, 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.ondewo.nlu.Operation.prototype.toObject = function(opt_includeInstance) { return proto.ondewo.nlu.Operation.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.ondewo.nlu.Operation} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.Operation.toObject = function(includeInstance, msg) { var f, obj = { name: jspb.Message.getFieldWithDefault(msg, 1, ""), metadata: (f = msg.getMetadata()) && ondewo_nlu_operation_metadata_pb.OperationMetadata.toObject(includeInstance, f), done: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), error: (f = msg.getError()) && google_rpc_status_pb.Status.toObject(includeInstance, f), response: (f = msg.getResponse()) && google_protobuf_any_pb.Any.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.ondewo.nlu.Operation} */ proto.ondewo.nlu.Operation.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.ondewo.nlu.Operation; return proto.ondewo.nlu.Operation.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ondewo.nlu.Operation} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ondewo.nlu.Operation} */ proto.ondewo.nlu.Operation.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 = new ondewo_nlu_operation_metadata_pb.OperationMetadata; reader.readMessage(value,ondewo_nlu_operation_metadata_pb.OperationMetadata.deserializeBinaryFromReader); msg.setMetadata(value); break; case 3: var value = /** @type {boolean} */ (reader.readBool()); msg.setDone(value); break; case 4: var value = new google_rpc_status_pb.Status; reader.readMessage(value,google_rpc_status_pb.Status.deserializeBinaryFromReader); msg.setError(value); break; case 5: var value = new google_protobuf_any_pb.Any; reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); msg.setResponse(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.ondewo.nlu.Operation.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.ondewo.nlu.Operation.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.ondewo.nlu.Operation} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.Operation.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getName(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getMetadata(); if (f != null) { writer.writeMessage( 2, f, ondewo_nlu_operation_metadata_pb.OperationMetadata.serializeBinaryToWriter ); } f = message.getDone(); if (f) { writer.writeBool( 3, f ); } f = message.getError(); if (f != null) { writer.writeMessage( 4, f, google_rpc_status_pb.Status.serializeBinaryToWriter ); } f = message.getResponse(); if (f != null) { writer.writeMessage( 5, f, google_protobuf_any_pb.Any.serializeBinaryToWriter ); } }; /** * optional string name = 1; * @return {string} */ proto.ondewo.nlu.Operation.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.Operation} returns this */ proto.ondewo.nlu.Operation.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional OperationMetadata metadata = 2; * @return {?proto.ondewo.nlu.OperationMetadata} */ proto.ondewo.nlu.Operation.prototype.getMetadata = function() { return /** @type{?proto.ondewo.nlu.OperationMetadata} */ ( jspb.Message.getWrapperField(this, ondewo_nlu_operation_metadata_pb.OperationMetadata, 2)); }; /** * @param {?proto.ondewo.nlu.OperationMetadata|undefined} value * @return {!proto.ondewo.nlu.Operation} returns this */ proto.ondewo.nlu.Operation.prototype.setMetadata = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.ondewo.nlu.Operation} returns this */ proto.ondewo.nlu.Operation.prototype.clearMetadata = function() { return this.setMetadata(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.ondewo.nlu.Operation.prototype.hasMetadata = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional bool done = 3; * @return {boolean} */ proto.ondewo.nlu.Operation.prototype.getDone = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; /** * @param {boolean} value * @return {!proto.ondewo.nlu.Operation} returns this */ proto.ondewo.nlu.Operation.prototype.setDone = function(value) { return jspb.Message.setProto3BooleanField(this, 3, value); }; /** * optional google.rpc.Status error = 4; * @return {?proto.google.rpc.Status} */ proto.ondewo.nlu.Operation.prototype.getError = function() { return /** @type{?proto.google.rpc.Status} */ ( jspb.Message.getWrapperField(this, google_rpc_status_pb.Status, 4)); }; /** * @param {?proto.google.rpc.Status|undefined} value * @return {!proto.ondewo.nlu.Operation} returns this */ proto.ondewo.nlu.Operation.prototype.setError = function(value) { return jspb.Message.setOneofWrapperField(this, 4, proto.ondewo.nlu.Operation.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.ondewo.nlu.Operation} returns this */ proto.ondewo.nlu.Operation.prototype.clearError = function() { return this.setError(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.ondewo.nlu.Operation.prototype.hasError = function() { return jspb.Message.getField(this, 4) != null; }; /** * optional google.protobuf.Any response = 5; * @return {?proto.google.protobuf.Any} */ proto.ondewo.nlu.Operation.prototype.getResponse = function() { return /** @type{?proto.google.protobuf.Any} */ ( jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 5)); }; /** * @param {?proto.google.protobuf.Any|undefined} value * @return {!proto.ondewo.nlu.Operation} returns this */ proto.ondewo.nlu.Operation.prototype.setResponse = function(value) { return jspb.Message.setOneofWrapperField(this, 5, proto.ondewo.nlu.Operation.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.ondewo.nlu.Operation} returns this */ proto.ondewo.nlu.Operation.prototype.clearResponse = function() { return this.setResponse(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.ondewo.nlu.Operation.prototype.hasResponse = 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_<name>, 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.ondewo.nlu.GetOperationRequest.prototype.toObject = function(opt_includeInstance) { return proto.ondewo.nlu.GetOperationRequest.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.ondewo.nlu.GetOperationRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.GetOperationRequest.toObject = function(includeInstance, msg) { var f, obj = { name: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.ondewo.nlu.GetOperationRequest} */ proto.ondewo.nlu.GetOperationRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.ondewo.nlu.GetOperationRequest; return proto.ondewo.nlu.GetOperationRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ondewo.nlu.GetOperationRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ondewo.nlu.GetOperationRequest} */ proto.ondewo.nlu.GetOperationRequest.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; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.ondewo.nlu.GetOperationRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.ondewo.nlu.GetOperationRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.ondewo.nlu.GetOperationRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.GetOperationRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getName(); if (f.length > 0) { writer.writeString( 1, f ); } }; /** * optional string name = 1; * @return {string} */ proto.ondewo.nlu.GetOperationRequest.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.GetOperationRequest} returns this */ proto.ondewo.nlu.GetOperationRequest.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; 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_<name>, 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.ondewo.nlu.ListOperationsRequest.prototype.toObject = function(opt_includeInstance) { return proto.ondewo.nlu.ListOperationsRequest.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.ondewo.nlu.ListOperationsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.ListOperationsRequest.toObject = function(includeInstance, msg) { var f, obj = { name: jspb.Message.getFieldWithDefault(msg, 4, ""), filter: jspb.Message.getFieldWithDefault(msg, 1, ""), pageSize: jspb.Message.getFieldWithDefault(msg, 2, 0), pageToken: jspb.Message.getFieldWithDefault(msg, 3, ""), operationFilter: (f = msg.getOperationFilter()) && proto.ondewo.nlu.OperationFilter.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.ondewo.nlu.ListOperationsRequest} */ proto.ondewo.nlu.ListOperationsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.ondewo.nlu.ListOperationsRequest; return proto.ondewo.nlu.ListOperationsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ondewo.nlu.ListOperationsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ondewo.nlu.ListOperationsRequest} */ proto.ondewo.nlu.ListOperationsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 4: var value = /** @type {string} */ (reader.readString()); msg.setName(value); break; case 1: var value = /** @type {string} */ (reader.readString()); msg.setFilter(value); break; case 2: var value = /** @type {number} */ (reader.readInt32()); msg.setPageSize(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setPageToken(value); break; case 5: var value = new proto.ondewo.nlu.OperationFilter; reader.readMessage(value,proto.ondewo.nlu.OperationFilter.deserializeBinaryFromReader); msg.setOperationFilter(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.ondewo.nlu.ListOperationsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.ondewo.nlu.ListOperationsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.ondewo.nlu.ListOperationsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.ListOperationsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getName(); if (f.length > 0) { writer.writeString( 4, f ); } f = message.getFilter(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getPageSize(); if (f !== 0) { writer.writeInt32( 2, f ); } f = message.getPageToken(); if (f.length > 0) { writer.writeString( 3, f ); } f = message.getOperationFilter(); if (f != null) { writer.writeMessage( 5, f, proto.ondewo.nlu.OperationFilter.serializeBinaryToWriter ); } }; /** * optional string name = 4; * @return {string} */ proto.ondewo.nlu.ListOperationsRequest.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.ListOperationsRequest} returns this */ proto.ondewo.nlu.ListOperationsRequest.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; /** * optional string filter = 1; * @return {string} */ proto.ondewo.nlu.ListOperationsRequest.prototype.getFilter = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.ListOperationsRequest} returns this */ proto.ondewo.nlu.ListOperationsRequest.prototype.setFilter = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional int32 page_size = 2; * @return {number} */ proto.ondewo.nlu.ListOperationsRequest.prototype.getPageSize = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value * @return {!proto.ondewo.nlu.ListOperationsRequest} returns this */ proto.ondewo.nlu.ListOperationsRequest.prototype.setPageSize = function(value) { return jspb.Message.setProto3IntField(this, 2, value); }; /** * optional string page_token = 3; * @return {string} */ proto.ondewo.nlu.ListOperationsRequest.prototype.getPageToken = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.ListOperationsRequest} returns this */ proto.ondewo.nlu.ListOperationsRequest.prototype.setPageToken = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * optional OperationFilter operation_filter = 5; * @return {?proto.ondewo.nlu.OperationFilter} */ proto.ondewo.nlu.ListOperationsRequest.prototype.getOperationFilter = function() { return /** @type{?proto.ondewo.nlu.OperationFilter} */ ( jspb.Message.getWrapperField(this, proto.ondewo.nlu.OperationFilter, 5)); }; /** * @param {?proto.ondewo.nlu.OperationFilter|undefined} value * @return {!proto.ondewo.nlu.ListOperationsRequest} returns this */ proto.ondewo.nlu.ListOperationsRequest.prototype.setOperationFilter = function(value) { return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. * @return {!proto.ondewo.nlu.ListOperationsRequest} returns this */ proto.ondewo.nlu.ListOperationsRequest.prototype.clearOperationFilter = function() { return this.setOperationFilter(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.ondewo.nlu.ListOperationsRequest.prototype.hasOperationFilter = function() { return jspb.Message.getField(this, 5) != null; }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.ondewo.nlu.OperationFilter.repeatedFields_ = [1,2,3,6]; /** * 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<!Array<number>>} * @const */ proto.ondewo.nlu.OperationFilter.oneofGroups_ = [[4],[5]]; /** * @enum {number} */ proto.ondewo.nlu.OperationFilter.StartTimeOneofCase = { START_TIME_ONEOF_NOT_SET: 0, START_TIME: 4 }; /** * @return {proto.ondewo.nlu.OperationFilter.StartTimeOneofCase} */ proto.ondewo.nlu.OperationFilter.prototype.getStartTimeOneofCase = function() { return /** @type {proto.ondewo.nlu.OperationFilter.StartTimeOneofCase} */(jspb.Message.computeOneofCase(this, proto.ondewo.nlu.OperationFilter.oneofGroups_[0])); }; /** * @enum {number} */ proto.ondewo.nlu.OperationFilter.EndTimeOneofCase = { END_TIME_ONEOF_NOT_SET: 0, END_TIME: 5 }; /** * @return {proto.ondewo.nlu.OperationFilter.EndTimeOneofCase} */ proto.ondewo.nlu.OperationFilter.prototype.getEndTimeOneofCase = function() { return /** @type {proto.ondewo.nlu.OperationFilter.EndTimeOneofCase} */(jspb.Message.computeOneofCase(this, proto.ondewo.nlu.OperationFilter.oneofGroups_[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_<name>, 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.ondewo.nlu.OperationFilter.prototype.toObject = function(opt_includeInstance) { return proto.ondewo.nlu.OperationFilter.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.ondewo.nlu.OperationFilter} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.OperationFilter.toObject = function(includeInstance, msg) { var f, obj = { projectParentsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, statusesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, typesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, startTime: (f = msg.getStartTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), endTime: (f = msg.getEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), userIdsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : 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.ondewo.nlu.OperationFilter} */ proto.ondewo.nlu.OperationFilter.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.ondewo.nlu.OperationFilter; return proto.ondewo.nlu.OperationFilter.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ondewo.nlu.OperationFilter} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ondewo.nlu.OperationFilter} */ proto.ondewo.nlu.OperationFilter.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.addProjectParents(value); break; case 2: var values = /** @type {!Array<!proto.ondewo.nlu.OperationMetadata.Status>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]); for (var i = 0; i < values.length; i++) { msg.addStatuses(values[i]); } break; case 3: var values = /** @type {!Array<!proto.ondewo.nlu.OperationMetadata.OperationType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]); for (var i = 0; i < values.length; i++) { msg.addTypes(values[i]); } break; case 4: var value = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setStartTime(value); break; case 5: var value = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setEndTime(value); break; case 6: var value = /** @type {string} */ (reader.readString()); msg.addUserIds(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.ondewo.nlu.OperationFilter.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.ondewo.nlu.OperationFilter.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.ondewo.nlu.OperationFilter} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.OperationFilter.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getProjectParentsList(); if (f.length > 0) { writer.writeRepeatedString( 1, f ); } f = message.getStatusesList(); if (f.length > 0) { writer.writePackedEnum( 2, f ); } f = message.getTypesList(); if (f.length > 0) { writer.writePackedEnum( 3, f ); } f = message.getStartTime(); if (f != null) { writer.writeMessage( 4, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } f = message.getEndTime(); if (f != null) { writer.writeMessage( 5, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } f = message.getUserIdsList(); if (f.length > 0) { writer.writeRepeatedString( 6, f ); } }; /** * repeated string project_parents = 1; * @return {!Array<string>} */ proto.ondewo.nlu.OperationFilter.prototype.getProjectParentsList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1)); }; /** * @param {!Array<string>} value * @return {!proto.ondewo.nlu.OperationFilter} returns this */ proto.ondewo.nlu.OperationFilter.prototype.setProjectParentsList = function(value) { return jspb.Message.setField(this, 1, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.ondewo.nlu.OperationFilter} returns this */ proto.ondewo.nlu.OperationFilter.prototype.addProjectParents = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 1, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.ondewo.nlu.OperationFilter} returns this */ proto.ondewo.nlu.OperationFilter.prototype.clearProjectParentsList = function() { return this.setProjectParentsList([]); }; /** * repeated OperationMetadata.Status statuses = 2; * @return {!Array<!proto.ondewo.nlu.OperationMetadata.Status>} */ proto.ondewo.nlu.OperationFilter.prototype.getStatusesList = function() { return /** @type {!Array<!proto.ondewo.nlu.OperationMetadata.Status>} */ (jspb.Message.getRepeatedField(this, 2)); }; /** * @param {!Array<!proto.ondewo.nlu.OperationMetadata.Status>} value * @return {!proto.ondewo.nlu.OperationFilter} returns this */ proto.ondewo.nlu.OperationFilter.prototype.setStatusesList = function(value) { return jspb.Message.setField(this, 2, value || []); }; /** * @param {!proto.ondewo.nlu.OperationMetadata.Status} value * @param {number=} opt_index * @return {!proto.ondewo.nlu.OperationFilter} returns this */ proto.ondewo.nlu.OperationFilter.prototype.addStatuses = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.ondewo.nlu.OperationFilter} returns this */ proto.ondewo.nlu.OperationFilter.prototype.clearStatusesList = function() { return this.setStatusesList([]); }; /** * repeated OperationMetadata.OperationType types = 3; * @return {!Array<!proto.ondewo.nlu.OperationMetadata.OperationType>} */ proto.ondewo.nlu.OperationFilter.prototype.getTypesList = function() { return /** @type {!Array<!proto.ondewo.nlu.OperationMetadata.OperationType>} */ (jspb.Message.getRepeatedField(this, 3)); }; /** * @param {!Array<!proto.ondewo.nlu.OperationMetadata.OperationType>} value * @return {!proto.ondewo.nlu.OperationFilter} returns this */ proto.ondewo.nlu.OperationFilter.prototype.setTypesList = function(value) { return jspb.Message.setField(this, 3, value || []); }; /** * @param {!proto.ondewo.nlu.OperationMetadata.OperationType} value * @param {number=} opt_index * @return {!proto.ondewo.nlu.OperationFilter} returns this */ proto.ondewo.nlu.OperationFilter.prototype.addTypes = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 3, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.ondewo.nlu.OperationFilter} returns this */ proto.ondewo.nlu.OperationFilter.prototype.clearTypesList = function() { return this.setTypesList([]); }; /** * optional google.protobuf.Timestamp start_time = 4; * @return {?proto.google.protobuf.Timestamp} */ proto.ondewo.nlu.OperationFilter.prototype.getStartTime = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value * @return {!proto.ondewo.nlu.OperationFilter} returns this */ proto.ondewo.nlu.OperationFilter.prototype.setStartTime = function(value) { return jspb.Message.setOneofWrapperField(this, 4, proto.ondewo.nlu.OperationFilter.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.ondewo.nlu.OperationFilter} returns this */ proto.ondewo.nlu.OperationFilter.prototype.clearStartTime = function() { return this.setStartTime(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.ondewo.nlu.OperationFilter.prototype.hasStartTime = function() { return jspb.Message.getField(this, 4) != null; }; /** * optional google.protobuf.Timestamp end_time = 5; * @return {?proto.google.protobuf.Timestamp} */ proto.ondewo.nlu.OperationFilter.prototype.getEndTime = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value * @return {!proto.ondewo.nlu.OperationFilter} returns this */ proto.ondewo.nlu.OperationFilter.prototype.setEndTime = function(value) { return jspb.Message.setOneofWrapperField(this, 5, proto.ondewo.nlu.OperationFilter.oneofGroups_[1], value); }; /** * Clears the message field making it undefined. * @return {!proto.ondewo.nlu.OperationFilter} returns this */ proto.ondewo.nlu.OperationFilter.prototype.clearEndTime = function() { return this.setEndTime(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.ondewo.nlu.OperationFilter.prototype.hasEndTime = function() { return jspb.Message.getField(this, 5) != null; }; /** * repeated string user_ids = 6; * @return {!Array<string>} */ proto.ondewo.nlu.OperationFilter.prototype.getUserIdsList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 6)); }; /** * @param {!Array<string>} value * @return {!proto.ondewo.nlu.OperationFilter} returns this */ proto.ondewo.nlu.OperationFilter.prototype.setUserIdsList = function(value) { return jspb.Message.setField(this, 6, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.ondewo.nlu.OperationFilter} returns this */ proto.ondewo.nlu.OperationFilter.prototype.addUserIds = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 6, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.ondewo.nlu.OperationFilter} returns this */ proto.ondewo.nlu.OperationFilter.prototype.clearUserIdsList = function() { return this.setUserIdsList([]); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.ondewo.nlu.ListOperationsResponse.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_<name>, 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.ondewo.nlu.ListOperationsResponse.prototype.toObject = function(opt_includeInstance) { return proto.ondewo.nlu.ListOperationsResponse.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.ondewo.nlu.ListOperationsResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.ListOperationsResponse.toObject = function(includeInstance, msg) { var f, obj = { operationsList: jspb.Message.toObjectList(msg.getOperationsList(), proto.ondewo.nlu.Operation.toObject, includeInstance), nextPageToken: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.ondewo.nlu.ListOperationsResponse} */ proto.ondewo.nlu.ListOperationsResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.ondewo.nlu.ListOperationsResponse; return proto.ondewo.nlu.ListOperationsResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ondewo.nlu.ListOperationsResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ondewo.nlu.ListOperationsResponse} */ proto.ondewo.nlu.ListOperationsResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto.ondewo.nlu.Operation; reader.readMessage(value,proto.ondewo.nlu.Operation.deserializeBinaryFromReader); msg.addOperations(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setNextPageToken(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.ondewo.nlu.ListOperationsResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.ondewo.nlu.ListOperationsResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.ondewo.nlu.ListOperationsResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.ListOperationsResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getOperationsList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, proto.ondewo.nlu.Operation.serializeBinaryToWriter ); } f = message.getNextPageToken(); if (f.length > 0) { writer.writeString( 2, f ); } }; /** * repeated Operation operations = 1; * @return {!Array<!proto.ondewo.nlu.Operation>} */ proto.ondewo.nlu.ListOperationsResponse.prototype.getOperationsList = function() { return /** @type{!Array<!proto.ondewo.nlu.Operation>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.ondewo.nlu.Operation, 1)); }; /** * @param {!Array<!proto.ondewo.nlu.Operation>} value * @return {!proto.ondewo.nlu.ListOperationsResponse} returns this */ proto.ondewo.nlu.ListOperationsResponse.prototype.setOperationsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.ondewo.nlu.Operation=} opt_value * @param {number=} opt_index * @return {!proto.ondewo.nlu.Operation} */ proto.ondewo.nlu.ListOperationsResponse.prototype.addOperations = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ondewo.nlu.Operation, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.ondewo.nlu.ListOperationsResponse} returns this */ proto.ondewo.nlu.ListOperationsResponse.prototype.clearOperationsList = function() { return this.setOperationsList([]); }; /** * optional string next_page_token = 2; * @return {string} */ proto.ondewo.nlu.ListOperationsResponse.prototype.getNextPageToken = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.ListOperationsResponse} returns this */ proto.ondewo.nlu.ListOperationsResponse.prototype.setNextPageToken = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; 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_<name>, 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.ondewo.nlu.CancelOperationRequest.prototype.toObject = function(opt_includeInstance) { return proto.ondewo.nlu.CancelOperationRequest.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.ondewo.nlu.CancelOperationRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.CancelOperationRequest.toObject = function(includeInstance, msg) { var f, obj = { name: jspb.Message.getFieldWithDefault(msg, 1, "")