UNPKG

@ondewo/csi-client-nodejs

Version:

ONDEWO Communication System Integration (CSI) Client library for Nodejs

1,461 lines (1,316 loc) 190 kB
// source: ondewo/nlu/utility.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 ondewo_nlu_intent_pb = require('../../ondewo/nlu/intent_pb.js'); goog.object.extend(proto, ondewo_nlu_intent_pb); var ondewo_nlu_entity_type_pb = require('../../ondewo/nlu/entity_type_pb.js'); goog.object.extend(proto, ondewo_nlu_entity_type_pb); goog.exportSymbol('proto.ondewo.nlu.AddTrainingPhrasesFromCSVRequest', null, global); goog.exportSymbol('proto.ondewo.nlu.AddTrainingPhrasesRequest', null, global); goog.exportSymbol('proto.ondewo.nlu.AddTrainingPhrasesRequest.TrainingPhraseForIntent', null, global); goog.exportSymbol('proto.ondewo.nlu.AddTrainingPhrasesResponse', null, global); goog.exportSymbol('proto.ondewo.nlu.CleanAllEntityTypesRequest', null, global); goog.exportSymbol('proto.ondewo.nlu.CleanAllEntityTypesResponse', null, global); goog.exportSymbol('proto.ondewo.nlu.CleanAllIntentsRequest', null, global); goog.exportSymbol('proto.ondewo.nlu.CleanAllIntentsResponse', null, global); goog.exportSymbol('proto.ondewo.nlu.CleanEntityTypeRequest', null, global); goog.exportSymbol('proto.ondewo.nlu.CleanEntityTypeResponse', null, global); goog.exportSymbol('proto.ondewo.nlu.CleanIntentRequest', null, global); goog.exportSymbol('proto.ondewo.nlu.CleanIntentResponse', null, global); goog.exportSymbol('proto.ondewo.nlu.EntityTypeUpdate', null, global); goog.exportSymbol('proto.ondewo.nlu.EntityTypeUpdate.EntityUpdate', null, global); goog.exportSymbol('proto.ondewo.nlu.IntentUpdate', null, global); goog.exportSymbol('proto.ondewo.nlu.IntentUpdate.TrainingPhraseUpdate', null, global); goog.exportSymbol('proto.ondewo.nlu.ReannotateEntitiesOptions', null, global); goog.exportSymbol('proto.ondewo.nlu.StringUpdate', null, global); goog.exportSymbol('proto.ondewo.nlu.TrainingPhraseCleanerOptions', null, global); goog.exportSymbol('proto.ondewo.nlu.ValidateEmbeddedRegexRequest', null, global); goog.exportSymbol('proto.ondewo.nlu.ValidateEmbeddedRegexResponse', null, global); goog.exportSymbol('proto.ondewo.nlu.ValidateRegexRequest', null, global); goog.exportSymbol('proto.ondewo.nlu.ValidateRegexResponse', 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.ValidateRegexRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ondewo.nlu.ValidateRegexRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.ValidateRegexRequest.displayName = 'proto.ondewo.nlu.ValidateRegexRequest'; } /** * 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.ValidateRegexResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.ValidateRegexResponse.repeatedFields_, null); }; goog.inherits(proto.ondewo.nlu.ValidateRegexResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.ValidateRegexResponse.displayName = 'proto.ondewo.nlu.ValidateRegexResponse'; } /** * 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.ValidateEmbeddedRegexRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ondewo.nlu.ValidateEmbeddedRegexRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.ValidateEmbeddedRegexRequest.displayName = 'proto.ondewo.nlu.ValidateEmbeddedRegexRequest'; } /** * 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.ValidateEmbeddedRegexResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.ValidateEmbeddedRegexResponse.repeatedFields_, null); }; goog.inherits(proto.ondewo.nlu.ValidateEmbeddedRegexResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.ValidateEmbeddedRegexResponse.displayName = 'proto.ondewo.nlu.ValidateEmbeddedRegexResponse'; } /** * 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.CleanAllIntentsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.CleanAllIntentsRequest.repeatedFields_, null); }; goog.inherits(proto.ondewo.nlu.CleanAllIntentsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.CleanAllIntentsRequest.displayName = 'proto.ondewo.nlu.CleanAllIntentsRequest'; } /** * 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.CleanAllIntentsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.CleanAllIntentsResponse.repeatedFields_, null); }; goog.inherits(proto.ondewo.nlu.CleanAllIntentsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.CleanAllIntentsResponse.displayName = 'proto.ondewo.nlu.CleanAllIntentsResponse'; } /** * 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.CleanIntentRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.CleanIntentRequest.repeatedFields_, null); }; goog.inherits(proto.ondewo.nlu.CleanIntentRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.CleanIntentRequest.displayName = 'proto.ondewo.nlu.CleanIntentRequest'; } /** * 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.CleanIntentResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ondewo.nlu.CleanIntentResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.CleanIntentResponse.displayName = 'proto.ondewo.nlu.CleanIntentResponse'; } /** * 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.TrainingPhraseCleanerOptions = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ondewo.nlu.TrainingPhraseCleanerOptions, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.TrainingPhraseCleanerOptions.displayName = 'proto.ondewo.nlu.TrainingPhraseCleanerOptions'; } /** * 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.StringUpdate = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ondewo.nlu.StringUpdate, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.StringUpdate.displayName = 'proto.ondewo.nlu.StringUpdate'; } /** * 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.IntentUpdate = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.IntentUpdate.repeatedFields_, null); }; goog.inherits(proto.ondewo.nlu.IntentUpdate, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.IntentUpdate.displayName = 'proto.ondewo.nlu.IntentUpdate'; } /** * 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.IntentUpdate.TrainingPhraseUpdate = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.IntentUpdate.TrainingPhraseUpdate.repeatedFields_, null); }; goog.inherits(proto.ondewo.nlu.IntentUpdate.TrainingPhraseUpdate, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.IntentUpdate.TrainingPhraseUpdate.displayName = 'proto.ondewo.nlu.IntentUpdate.TrainingPhraseUpdate'; } /** * 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.EntityTypeUpdate = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.EntityTypeUpdate.repeatedFields_, null); }; goog.inherits(proto.ondewo.nlu.EntityTypeUpdate, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.EntityTypeUpdate.displayName = 'proto.ondewo.nlu.EntityTypeUpdate'; } /** * 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.EntityTypeUpdate.EntityUpdate = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.EntityTypeUpdate.EntityUpdate.repeatedFields_, null); }; goog.inherits(proto.ondewo.nlu.EntityTypeUpdate.EntityUpdate, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.EntityTypeUpdate.EntityUpdate.displayName = 'proto.ondewo.nlu.EntityTypeUpdate.EntityUpdate'; } /** * 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.CleanAllEntityTypesRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.CleanAllEntityTypesRequest.repeatedFields_, null); }; goog.inherits(proto.ondewo.nlu.CleanAllEntityTypesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.CleanAllEntityTypesRequest.displayName = 'proto.ondewo.nlu.CleanAllEntityTypesRequest'; } /** * 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.CleanAllEntityTypesResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.CleanAllEntityTypesResponse.repeatedFields_, null); }; goog.inherits(proto.ondewo.nlu.CleanAllEntityTypesResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.CleanAllEntityTypesResponse.displayName = 'proto.ondewo.nlu.CleanAllEntityTypesResponse'; } /** * 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.CleanEntityTypeRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.CleanEntityTypeRequest.repeatedFields_, null); }; goog.inherits(proto.ondewo.nlu.CleanEntityTypeRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.CleanEntityTypeRequest.displayName = 'proto.ondewo.nlu.CleanEntityTypeRequest'; } /** * 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.CleanEntityTypeResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ondewo.nlu.CleanEntityTypeResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.CleanEntityTypeResponse.displayName = 'proto.ondewo.nlu.CleanEntityTypeResponse'; } /** * 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.AddTrainingPhrasesRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.AddTrainingPhrasesRequest.repeatedFields_, null); }; goog.inherits(proto.ondewo.nlu.AddTrainingPhrasesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.AddTrainingPhrasesRequest.displayName = 'proto.ondewo.nlu.AddTrainingPhrasesRequest'; } /** * 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.AddTrainingPhrasesRequest.TrainingPhraseForIntent = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.AddTrainingPhrasesRequest.TrainingPhraseForIntent.repeatedFields_, null); }; goog.inherits(proto.ondewo.nlu.AddTrainingPhrasesRequest.TrainingPhraseForIntent, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.AddTrainingPhrasesRequest.TrainingPhraseForIntent.displayName = 'proto.ondewo.nlu.AddTrainingPhrasesRequest.TrainingPhraseForIntent'; } /** * 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.AddTrainingPhrasesResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.AddTrainingPhrasesResponse.repeatedFields_, null); }; goog.inherits(proto.ondewo.nlu.AddTrainingPhrasesResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.AddTrainingPhrasesResponse.displayName = 'proto.ondewo.nlu.AddTrainingPhrasesResponse'; } /** * 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.AddTrainingPhrasesFromCSVRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ondewo.nlu.AddTrainingPhrasesFromCSVRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.AddTrainingPhrasesFromCSVRequest.displayName = 'proto.ondewo.nlu.AddTrainingPhrasesFromCSVRequest'; } 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.ValidateRegexRequest.prototype.toObject = function(opt_includeInstance) { return proto.ondewo.nlu.ValidateRegexRequest.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.ValidateRegexRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.ValidateRegexRequest.toObject = function(includeInstance, msg) { var f, obj = { regex: 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.ValidateRegexRequest} */ proto.ondewo.nlu.ValidateRegexRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.ondewo.nlu.ValidateRegexRequest; return proto.ondewo.nlu.ValidateRegexRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ondewo.nlu.ValidateRegexRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ondewo.nlu.ValidateRegexRequest} */ proto.ondewo.nlu.ValidateRegexRequest.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.setRegex(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.ondewo.nlu.ValidateRegexRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.ondewo.nlu.ValidateRegexRequest.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.ValidateRegexRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.ValidateRegexRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getRegex(); if (f.length > 0) { writer.writeString( 1, f ); } }; /** * optional string regex = 1; * @return {string} */ proto.ondewo.nlu.ValidateRegexRequest.prototype.getRegex = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.ValidateRegexRequest} returns this */ proto.ondewo.nlu.ValidateRegexRequest.prototype.setRegex = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.ondewo.nlu.ValidateRegexResponse.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.ValidateRegexResponse.prototype.toObject = function(opt_includeInstance) { return proto.ondewo.nlu.ValidateRegexResponse.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.ValidateRegexResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.ValidateRegexResponse.toObject = function(includeInstance, msg) { var f, obj = { errorMessagesList: (f = jspb.Message.getRepeatedField(msg, 1)) == 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.ValidateRegexResponse} */ proto.ondewo.nlu.ValidateRegexResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.ondewo.nlu.ValidateRegexResponse; return proto.ondewo.nlu.ValidateRegexResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ondewo.nlu.ValidateRegexResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ondewo.nlu.ValidateRegexResponse} */ proto.ondewo.nlu.ValidateRegexResponse.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.addErrorMessages(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.ondewo.nlu.ValidateRegexResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.ondewo.nlu.ValidateRegexResponse.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.ValidateRegexResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.ValidateRegexResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getErrorMessagesList(); if (f.length > 0) { writer.writeRepeatedString( 1, f ); } }; /** * repeated string error_messages = 1; * @return {!Array<string>} */ proto.ondewo.nlu.ValidateRegexResponse.prototype.getErrorMessagesList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1)); }; /** * @param {!Array<string>} value * @return {!proto.ondewo.nlu.ValidateRegexResponse} returns this */ proto.ondewo.nlu.ValidateRegexResponse.prototype.setErrorMessagesList = function(value) { return jspb.Message.setField(this, 1, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.ondewo.nlu.ValidateRegexResponse} returns this */ proto.ondewo.nlu.ValidateRegexResponse.prototype.addErrorMessages = 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.ValidateRegexResponse} returns this */ proto.ondewo.nlu.ValidateRegexResponse.prototype.clearErrorMessagesList = function() { return this.setErrorMessagesList([]); }; 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.ValidateEmbeddedRegexRequest.prototype.toObject = function(opt_includeInstance) { return proto.ondewo.nlu.ValidateEmbeddedRegexRequest.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.ValidateEmbeddedRegexRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.ValidateEmbeddedRegexRequest.toObject = function(includeInstance, msg) { var f, obj = { entityType: (f = msg.getEntityType()) && ondewo_nlu_entity_type_pb.EntityType.Entity.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.ValidateEmbeddedRegexRequest} */ proto.ondewo.nlu.ValidateEmbeddedRegexRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.ondewo.nlu.ValidateEmbeddedRegexRequest; return proto.ondewo.nlu.ValidateEmbeddedRegexRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ondewo.nlu.ValidateEmbeddedRegexRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ondewo.nlu.ValidateEmbeddedRegexRequest} */ proto.ondewo.nlu.ValidateEmbeddedRegexRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new ondewo_nlu_entity_type_pb.EntityType.Entity; reader.readMessage(value,ondewo_nlu_entity_type_pb.EntityType.Entity.deserializeBinaryFromReader); msg.setEntityType(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.ondewo.nlu.ValidateEmbeddedRegexRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.ondewo.nlu.ValidateEmbeddedRegexRequest.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.ValidateEmbeddedRegexRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.ValidateEmbeddedRegexRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getEntityType(); if (f != null) { writer.writeMessage( 1, f, ondewo_nlu_entity_type_pb.EntityType.Entity.serializeBinaryToWriter ); } }; /** * optional EntityType.Entity entity_type = 1; * @return {?proto.ondewo.nlu.EntityType.Entity} */ proto.ondewo.nlu.ValidateEmbeddedRegexRequest.prototype.getEntityType = function() { return /** @type{?proto.ondewo.nlu.EntityType.Entity} */ ( jspb.Message.getWrapperField(this, ondewo_nlu_entity_type_pb.EntityType.Entity, 1)); }; /** * @param {?proto.ondewo.nlu.EntityType.Entity|undefined} value * @return {!proto.ondewo.nlu.ValidateEmbeddedRegexRequest} returns this */ proto.ondewo.nlu.ValidateEmbeddedRegexRequest.prototype.setEntityType = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.ondewo.nlu.ValidateEmbeddedRegexRequest} returns this */ proto.ondewo.nlu.ValidateEmbeddedRegexRequest.prototype.clearEntityType = function() { return this.setEntityType(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.ondewo.nlu.ValidateEmbeddedRegexRequest.prototype.hasEntityType = function() { return jspb.Message.getField(this, 1) != null; }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.ondewo.nlu.ValidateEmbeddedRegexResponse.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.ValidateEmbeddedRegexResponse.prototype.toObject = function(opt_includeInstance) { return proto.ondewo.nlu.ValidateEmbeddedRegexResponse.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.ValidateEmbeddedRegexResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.ValidateEmbeddedRegexResponse.toObject = function(includeInstance, msg) { var f, obj = { errorMessagesList: (f = jspb.Message.getRepeatedField(msg, 1)) == 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.ValidateEmbeddedRegexResponse} */ proto.ondewo.nlu.ValidateEmbeddedRegexResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.ondewo.nlu.ValidateEmbeddedRegexResponse; return proto.ondewo.nlu.ValidateEmbeddedRegexResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ondewo.nlu.ValidateEmbeddedRegexResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ondewo.nlu.ValidateEmbeddedRegexResponse} */ proto.ondewo.nlu.ValidateEmbeddedRegexResponse.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.addErrorMessages(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.ondewo.nlu.ValidateEmbeddedRegexResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.ondewo.nlu.ValidateEmbeddedRegexResponse.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.ValidateEmbeddedRegexResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.ValidateEmbeddedRegexResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getErrorMessagesList(); if (f.length > 0) { writer.writeRepeatedString( 1, f ); } }; /** * repeated string error_messages = 1; * @return {!Array<string>} */ proto.ondewo.nlu.ValidateEmbeddedRegexResponse.prototype.getErrorMessagesList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1)); }; /** * @param {!Array<string>} value * @return {!proto.ondewo.nlu.ValidateEmbeddedRegexResponse} returns this */ proto.ondewo.nlu.ValidateEmbeddedRegexResponse.prototype.setErrorMessagesList = function(value) { return jspb.Message.setField(this, 1, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.ondewo.nlu.ValidateEmbeddedRegexResponse} returns this */ proto.ondewo.nlu.ValidateEmbeddedRegexResponse.prototype.addErrorMessages = 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.ValidateEmbeddedRegexResponse} returns this */ proto.ondewo.nlu.ValidateEmbeddedRegexResponse.prototype.clearErrorMessagesList = function() { return this.setErrorMessagesList([]); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.ondewo.nlu.CleanAllIntentsRequest.repeatedFields_ = [4]; 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.CleanAllIntentsRequest.prototype.toObject = function(opt_includeInstance) { return proto.ondewo.nlu.CleanAllIntentsRequest.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.CleanAllIntentsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.CleanAllIntentsRequest.toObject = function(includeInstance, msg) { var f, obj = { parent: jspb.Message.getFieldWithDefault(msg, 1, ""), languageCode: jspb.Message.getFieldWithDefault(msg, 2, ""), specialCharacters: jspb.Message.getFieldWithDefault(msg, 3, ""), substringWhiteListList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, dryRun: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), trainingPhraseCleanerOptions: (f = msg.getTrainingPhraseCleanerOptions()) && proto.ondewo.nlu.TrainingPhraseCleanerOptions.toObject(includeInstance, f), reannotateEntitiesOptions: jspb.Message.getFieldWithDefault(msg, 7, 0), numberOfWorkers: jspb.Message.getFieldWithDefault(msg, 8, 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.ondewo.nlu.CleanAllIntentsRequest} */ proto.ondewo.nlu.CleanAllIntentsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.ondewo.nlu.CleanAllIntentsRequest; return proto.ondewo.nlu.CleanAllIntentsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ondewo.nlu.CleanAllIntentsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ondewo.nlu.CleanAllIntentsRequest} */ proto.ondewo.nlu.CleanAllIntentsRequest.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.setParent(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setLanguageCode(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setSpecialCharacters(value); break; case 4: var value = /** @type {string} */ (reader.readString()); msg.addSubstringWhiteList(value); break; case 5: var value = /** @type {boolean} */ (reader.readBool()); msg.setDryRun(value); break; case 6: var value = new proto.ondewo.nlu.TrainingPhraseCleanerOptions; reader.readMessage(value,proto.ondewo.nlu.TrainingPhraseCleanerOptions.deserializeBinaryFromReader); msg.setTrainingPhraseCleanerOptions(value); break; case 7: var value = /** @type {!proto.ondewo.nlu.ReannotateEntitiesOptions} */ (reader.readEnum()); msg.setReannotateEntitiesOptions(value); break; case 8: var value = /** @type {number} */ (reader.readInt32()); msg.setNumberOfWorkers(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.ondewo.nlu.CleanAllIntentsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.ondewo.nlu.CleanAllIntentsRequest.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.CleanAllIntentsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.CleanAllIntentsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getParent(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getLanguageCode(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getSpecialCharacters(); if (f.length > 0) { writer.writeString( 3, f ); } f = message.getSubstringWhiteListList(); if (f.length > 0) { writer.writeRepeatedString( 4, f ); } f = message.getDryRun(); if (f) { writer.writeBool( 5, f ); } f = message.getTrainingPhraseCleanerOptions(); if (f != null) { writer.writeMessage( 6, f, proto.ondewo.nlu.TrainingPhraseCleanerOptions.serializeBinaryToWriter ); } f = message.getReannotateEntitiesOptions(); if (f !== 0.0) { writer.writeEnum( 7, f ); } f = message.getNumberOfWorkers(); if (f !== 0) { writer.writeInt32( 8, f ); } }; /** * optional string parent = 1; * @return {string} */ proto.ondewo.nlu.CleanAllIntentsRequest.prototype.getParent = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.CleanAllIntentsRequest} returns this */ proto.ondewo.nlu.CleanAllIntentsRequest.prototype.setParent = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string language_code = 2; * @return {string} */ proto.ondewo.nlu.CleanAllIntentsRequest.prototype.getLanguageCode = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.CleanAllIntentsRequest} returns this */ proto.ondewo.nlu.CleanAllIntentsRequest.prototype.setLanguageCode = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string special_characters = 3; * @return {string} */ proto.ondewo.nlu.CleanAllIntentsRequest.prototype.getSpecialCharacters = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.CleanAllIntentsRequest} returns this */ proto.ondewo.nlu.CleanAllIntentsRequest.prototype.setSpecialCharacters = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * repeated string substring_white_list = 4; * @return {!Array<string>} */ proto.ondewo.nlu.CleanAllIntentsRequest.prototype.getSubstringWhiteListList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4)); }; /** * @param {!Array<string>} value * @return {!proto.ondewo.nlu.CleanAllIntentsRequest} returns this */ proto.ondewo.nlu.CleanAllIntentsRequest.prototype.setSubstringWhiteListList = function(value) { return jspb.Message.setField(this, 4, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.ondewo.nlu.CleanAllIntentsRequest} returns this */ proto.ondewo.nlu.CleanAllIntentsRequest.prototype.addSubstringWhiteList = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 4, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.ondewo.nlu.CleanAllIntentsRequest} returns this */ proto.ondewo.nlu.CleanAllIntentsRequest.prototype.clearSubstringWhiteListList = function() { return this.setSubstringWhiteListList([]); }; /** * optional bool dry_run = 5; * @return {boolean} */ proto.ondewo.nlu.CleanAllIntentsRequest.prototype.getDryRun = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); }; /** * @param {boolean} value * @return {!proto.ondewo.nlu.CleanAllIntentsRequest} returns this */ proto.ondewo.nlu.CleanAllIntentsRequest.prototype.setDryRun = function(value) { return jspb.Message.setProto3BooleanField(this, 5, value); }; /** * optional TrainingPhraseCleanerOptions training_phrase_cleaner_options = 6; * @return {?proto.ondewo.nlu.TrainingPhraseCleanerOptions} */ proto.ondewo.nlu.CleanAllIntentsRequest.prototype.getTrainingPhraseCleanerOptions = function() { return /** @type{?proto.ondewo.nlu.TrainingPhraseCleanerOptions} */ ( jspb.Message.getWrapperField(this, proto.ondewo.nlu.TrainingPhraseCleanerOptions, 6)); }; /** * @param {?proto.ondewo.nlu.TrainingPhraseCleanerOptions|undefined} value * @return {!proto.ondewo.nlu.CleanAllIntentsRequest} returns this */ proto.ondewo.nlu.CleanAllIntentsRequest.prototype.setTrainingPhraseCleanerOptions = function(value) { return jspb.Message.setWrapperField(this, 6, value); }; /** * Clears the message field making it undefined. * @return {!proto.ondewo.nlu.CleanAllIntentsRequest} returns this */ proto.ondewo.nlu.CleanAllIntentsRequest.prototype.clearTrainingPhraseCleanerOptions = function() { return this.setTrainingPhraseCleanerOptions(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.ondewo.nlu.CleanAllIntentsRequest.prototype.hasTrainingPhraseCleanerOptions = function() { return jspb.Message.getField(this, 6) != null; }; /** * optional ReannotateEntitiesOptions reannotate_entities_options = 7; * @return {!proto.ondewo.nlu.ReannotateEntitiesOptions} */ proto.ondewo.nlu.CleanAllIntentsRequest.prototype.getReannotateEntitiesO