@ondewo/csi-client-nodejs
Version:
ONDEWO Communication System Integration (CSI) Client library for Nodejs
1,407 lines (1,320 loc) • 286 kB
JavaScript
// source: ondewo/nlu/aiservices.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_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
goog.object.extend(proto, google_protobuf_struct_pb);
var ondewo_nlu_ccai_project_pb = require('../../ondewo/nlu/ccai_project_pb.js');
goog.object.extend(proto, ondewo_nlu_ccai_project_pb);
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);
var ondewo_nlu_session_pb = require('../../ondewo/nlu/session_pb.js');
goog.object.extend(proto, ondewo_nlu_session_pb);
goog.exportSymbol('proto.ondewo.nlu.AltSentence', null, global);
goog.exportSymbol('proto.ondewo.nlu.AltTrainingPhrase', null, global);
goog.exportSymbol('proto.ondewo.nlu.BertAugEnrichmentConfig', null, global);
goog.exportSymbol('proto.ondewo.nlu.ClassifyIntentsRequest', null, global);
goog.exportSymbol('proto.ondewo.nlu.ClassifyIntentsResponse', null, global);
goog.exportSymbol('proto.ondewo.nlu.DataEnrichmentConfig', null, global);
goog.exportSymbol('proto.ondewo.nlu.EntityDetected', null, global);
goog.exportSymbol('proto.ondewo.nlu.EntityEnrichmentConfig', null, global);
goog.exportSymbol('proto.ondewo.nlu.EntityTypeFuzzyNerConfig', null, global);
goog.exportSymbol('proto.ondewo.nlu.EntityTypeFuzzyNerConfig.FuzzyNerAlgorithm', null, global);
goog.exportSymbol('proto.ondewo.nlu.ExtractEntitiesFuzzyRequest', null, global);
goog.exportSymbol('proto.ondewo.nlu.ExtractEntitiesRequest', null, global);
goog.exportSymbol('proto.ondewo.nlu.ExtractEntitiesResponse', null, global);
goog.exportSymbol('proto.ondewo.nlu.GPT2EnrichmentConfig', null, global);
goog.exportSymbol('proto.ondewo.nlu.GenerateResponsesRequest', null, global);
goog.exportSymbol('proto.ondewo.nlu.GenerateResponsesResponse', null, global);
goog.exportSymbol('proto.ondewo.nlu.GenerateUserSaysRequest', null, global);
goog.exportSymbol('proto.ondewo.nlu.GenerateUserSaysResponse', null, global);
goog.exportSymbol('proto.ondewo.nlu.GetAlternativeSentencesRequest', null, global);
goog.exportSymbol('proto.ondewo.nlu.GetAlternativeSentencesResponse', null, global);
goog.exportSymbol('proto.ondewo.nlu.GetAlternativeTrainingPhrasesRequest', null, global);
goog.exportSymbol('proto.ondewo.nlu.GetAlternativeTrainingPhrasesResponse', null, global);
goog.exportSymbol('proto.ondewo.nlu.GetSynonymsRequest', null, global);
goog.exportSymbol('proto.ondewo.nlu.GetSynonymsResponse', null, global);
goog.exportSymbol('proto.ondewo.nlu.GloVeEnrichmentConfig', null, global);
goog.exportSymbol('proto.ondewo.nlu.IntentAlgorithms', null, global);
goog.exportSymbol('proto.ondewo.nlu.IntentClassified', null, global);
goog.exportSymbol('proto.ondewo.nlu.ListLlmModelsRequest', null, global);
goog.exportSymbol('proto.ondewo.nlu.ListLlmModelsResponse', null, global);
goog.exportSymbol('proto.ondewo.nlu.LlmEnrichmentConfig', null, global);
goog.exportSymbol('proto.ondewo.nlu.LlmGenerateRequest', null, global);
goog.exportSymbol('proto.ondewo.nlu.LlmGenerateResponse', null, global);
goog.exportSymbol('proto.ondewo.nlu.LlmModel', null, global);
goog.exportSymbol('proto.ondewo.nlu.Mode', null, global);
goog.exportSymbol('proto.ondewo.nlu.StreamingLlmGenerateResponse', null, global);
goog.exportSymbol('proto.ondewo.nlu.Synonym', null, global);
goog.exportSymbol('proto.ondewo.nlu.ThesaurusEnrichmentConfig', null, global);
goog.exportSymbol('proto.ondewo.nlu.Word2VecEnrichmentConfig', null, global);
goog.exportSymbol('proto.ondewo.nlu.WordNetAugEnrichmentConfig', null, global);
goog.exportSymbol('proto.ondewo.nlu.XLNetAugEnrichmentConfig', 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.ListLlmModelsRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.ListLlmModelsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.ListLlmModelsRequest.displayName = 'proto.ondewo.nlu.ListLlmModelsRequest';
}
/**
* 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.ListLlmModelsResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.ListLlmModelsResponse.repeatedFields_, null);
};
goog.inherits(proto.ondewo.nlu.ListLlmModelsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.ListLlmModelsResponse.displayName = 'proto.ondewo.nlu.ListLlmModelsResponse';
}
/**
* 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.LlmModel = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.LlmModel, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.LlmModel.displayName = 'proto.ondewo.nlu.LlmModel';
}
/**
* 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.LlmGenerateRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.LlmGenerateRequest.repeatedFields_, null);
};
goog.inherits(proto.ondewo.nlu.LlmGenerateRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.LlmGenerateRequest.displayName = 'proto.ondewo.nlu.LlmGenerateRequest';
}
/**
* 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.LlmGenerateResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.LlmGenerateResponse.repeatedFields_, null);
};
goog.inherits(proto.ondewo.nlu.LlmGenerateResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.LlmGenerateResponse.displayName = 'proto.ondewo.nlu.LlmGenerateResponse';
}
/**
* 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.StreamingLlmGenerateResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.StreamingLlmGenerateResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.StreamingLlmGenerateResponse.displayName = 'proto.ondewo.nlu.StreamingLlmGenerateResponse';
}
/**
* 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.ExtractEntitiesRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.ExtractEntitiesRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.ExtractEntitiesRequest.displayName = 'proto.ondewo.nlu.ExtractEntitiesRequest';
}
/**
* 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.ExtractEntitiesFuzzyRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.ExtractEntitiesFuzzyRequest.repeatedFields_, null);
};
goog.inherits(proto.ondewo.nlu.ExtractEntitiesFuzzyRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.ExtractEntitiesFuzzyRequest.displayName = 'proto.ondewo.nlu.ExtractEntitiesFuzzyRequest';
}
/**
* 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.EntityTypeFuzzyNerConfig = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.EntityTypeFuzzyNerConfig.repeatedFields_, null);
};
goog.inherits(proto.ondewo.nlu.EntityTypeFuzzyNerConfig, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.EntityTypeFuzzyNerConfig.displayName = 'proto.ondewo.nlu.EntityTypeFuzzyNerConfig';
}
/**
* 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.EntityDetected = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.EntityDetected, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.EntityDetected.displayName = 'proto.ondewo.nlu.EntityDetected';
}
/**
* 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.ExtractEntitiesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.ExtractEntitiesResponse.repeatedFields_, null);
};
goog.inherits(proto.ondewo.nlu.ExtractEntitiesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.ExtractEntitiesResponse.displayName = 'proto.ondewo.nlu.ExtractEntitiesResponse';
}
/**
* 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.GetAlternativeSentencesRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.GetAlternativeSentencesRequest.repeatedFields_, null);
};
goog.inherits(proto.ondewo.nlu.GetAlternativeSentencesRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.GetAlternativeSentencesRequest.displayName = 'proto.ondewo.nlu.GetAlternativeSentencesRequest';
}
/**
* 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.GenerateUserSaysRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.GenerateUserSaysRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.GenerateUserSaysRequest.displayName = 'proto.ondewo.nlu.GenerateUserSaysRequest';
}
/**
* 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.GenerateResponsesRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.GenerateResponsesRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.GenerateResponsesRequest.displayName = 'proto.ondewo.nlu.GenerateResponsesRequest';
}
/**
* 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.GetAlternativeTrainingPhrasesRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.GetAlternativeTrainingPhrasesRequest.repeatedFields_, null);
};
goog.inherits(proto.ondewo.nlu.GetAlternativeTrainingPhrasesRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.GetAlternativeTrainingPhrasesRequest.displayName = 'proto.ondewo.nlu.GetAlternativeTrainingPhrasesRequest';
}
/**
* 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.GetSynonymsRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.GetSynonymsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.GetSynonymsRequest.displayName = 'proto.ondewo.nlu.GetSynonymsRequest';
}
/**
* 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.GetSynonymsResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.GetSynonymsResponse.repeatedFields_, null);
};
goog.inherits(proto.ondewo.nlu.GetSynonymsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.GetSynonymsResponse.displayName = 'proto.ondewo.nlu.GetSynonymsResponse';
}
/**
* 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.Synonym = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.Synonym, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.Synonym.displayName = 'proto.ondewo.nlu.Synonym';
}
/**
* 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.GetAlternativeSentencesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.GetAlternativeSentencesResponse.repeatedFields_, null);
};
goog.inherits(proto.ondewo.nlu.GetAlternativeSentencesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.GetAlternativeSentencesResponse.displayName = 'proto.ondewo.nlu.GetAlternativeSentencesResponse';
}
/**
* 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.GenerateResponsesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.GenerateResponsesResponse.repeatedFields_, null);
};
goog.inherits(proto.ondewo.nlu.GenerateResponsesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.GenerateResponsesResponse.displayName = 'proto.ondewo.nlu.GenerateResponsesResponse';
}
/**
* 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.GenerateUserSaysResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.GenerateUserSaysResponse.repeatedFields_, null);
};
goog.inherits(proto.ondewo.nlu.GenerateUserSaysResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.GenerateUserSaysResponse.displayName = 'proto.ondewo.nlu.GenerateUserSaysResponse';
}
/**
* 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.GetAlternativeTrainingPhrasesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.GetAlternativeTrainingPhrasesResponse.repeatedFields_, null);
};
goog.inherits(proto.ondewo.nlu.GetAlternativeTrainingPhrasesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.GetAlternativeTrainingPhrasesResponse.displayName = 'proto.ondewo.nlu.GetAlternativeTrainingPhrasesResponse';
}
/**
* 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.AltSentence = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.AltSentence, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.AltSentence.displayName = 'proto.ondewo.nlu.AltSentence';
}
/**
* 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.AltTrainingPhrase = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.AltTrainingPhrase, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.AltTrainingPhrase.displayName = 'proto.ondewo.nlu.AltTrainingPhrase';
}
/**
* 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.DataEnrichmentConfig = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.DataEnrichmentConfig, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.DataEnrichmentConfig.displayName = 'proto.ondewo.nlu.DataEnrichmentConfig';
}
/**
* 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.EntityEnrichmentConfig = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.EntityEnrichmentConfig, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.EntityEnrichmentConfig.displayName = 'proto.ondewo.nlu.EntityEnrichmentConfig';
}
/**
* 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.ThesaurusEnrichmentConfig = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.ThesaurusEnrichmentConfig, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.ThesaurusEnrichmentConfig.displayName = 'proto.ondewo.nlu.ThesaurusEnrichmentConfig';
}
/**
* 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.BertAugEnrichmentConfig = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.BertAugEnrichmentConfig, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.BertAugEnrichmentConfig.displayName = 'proto.ondewo.nlu.BertAugEnrichmentConfig';
}
/**
* 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.GloVeEnrichmentConfig = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.GloVeEnrichmentConfig, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.GloVeEnrichmentConfig.displayName = 'proto.ondewo.nlu.GloVeEnrichmentConfig';
}
/**
* 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.GPT2EnrichmentConfig = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.GPT2EnrichmentConfig, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.GPT2EnrichmentConfig.displayName = 'proto.ondewo.nlu.GPT2EnrichmentConfig';
}
/**
* 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.Word2VecEnrichmentConfig = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.Word2VecEnrichmentConfig, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.Word2VecEnrichmentConfig.displayName = 'proto.ondewo.nlu.Word2VecEnrichmentConfig';
}
/**
* 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.WordNetAugEnrichmentConfig = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.WordNetAugEnrichmentConfig, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.WordNetAugEnrichmentConfig.displayName = 'proto.ondewo.nlu.WordNetAugEnrichmentConfig';
}
/**
* 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.XLNetAugEnrichmentConfig = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.XLNetAugEnrichmentConfig, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.XLNetAugEnrichmentConfig.displayName = 'proto.ondewo.nlu.XLNetAugEnrichmentConfig';
}
/**
* 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.LlmEnrichmentConfig = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.LlmEnrichmentConfig, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.LlmEnrichmentConfig.displayName = 'proto.ondewo.nlu.LlmEnrichmentConfig';
}
/**
* 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.ClassifyIntentsRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.ClassifyIntentsRequest.repeatedFields_, null);
};
goog.inherits(proto.ondewo.nlu.ClassifyIntentsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.ClassifyIntentsRequest.displayName = 'proto.ondewo.nlu.ClassifyIntentsRequest';
}
/**
* 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.IntentClassified = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.IntentClassified, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.IntentClassified.displayName = 'proto.ondewo.nlu.IntentClassified';
}
/**
* 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.ClassifyIntentsResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.ClassifyIntentsResponse.repeatedFields_, null);
};
goog.inherits(proto.ondewo.nlu.ClassifyIntentsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.ClassifyIntentsResponse.displayName = 'proto.ondewo.nlu.ClassifyIntentsResponse';
}
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.ListLlmModelsRequest.prototype.toObject = function(opt_includeInstance) {
return proto.ondewo.nlu.ListLlmModelsRequest.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.ListLlmModelsRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ondewo.nlu.ListLlmModelsRequest.toObject = function(includeInstance, msg) {
var f, obj = {
ccaiServiceName: 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.ListLlmModelsRequest}
*/
proto.ondewo.nlu.ListLlmModelsRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ondewo.nlu.ListLlmModelsRequest;
return proto.ondewo.nlu.ListLlmModelsRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ondewo.nlu.ListLlmModelsRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ondewo.nlu.ListLlmModelsRequest}
*/
proto.ondewo.nlu.ListLlmModelsRequest.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.setCcaiServiceName(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ondewo.nlu.ListLlmModelsRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.ondewo.nlu.ListLlmModelsRequest.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.ListLlmModelsRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ondewo.nlu.ListLlmModelsRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getCcaiServiceName();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
};
/**
* optional string ccai_service_name = 1;
* @return {string}
*/
proto.ondewo.nlu.ListLlmModelsRequest.prototype.getCcaiServiceName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.ondewo.nlu.ListLlmModelsRequest} returns this
*/
proto.ondewo.nlu.ListLlmModelsRequest.prototype.setCcaiServiceName = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.ondewo.nlu.ListLlmModelsResponse.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.ListLlmModelsResponse.prototype.toObject = function(opt_includeInstance) {
return proto.ondewo.nlu.ListLlmModelsResponse.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.ListLlmModelsResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ondewo.nlu.ListLlmModelsResponse.toObject = function(includeInstance, msg) {
var f, obj = {
llmModelsList: jspb.Message.toObjectList(msg.getLlmModelsList(),
proto.ondewo.nlu.LlmModel.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.ondewo.nlu.ListLlmModelsResponse}
*/
proto.ondewo.nlu.ListLlmModelsResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ondewo.nlu.ListLlmModelsResponse;
return proto.ondewo.nlu.ListLlmModelsResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ondewo.nlu.ListLlmModelsResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ondewo.nlu.ListLlmModelsResponse}
*/
proto.ondewo.nlu.ListLlmModelsResponse.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.LlmModel;
reader.readMessage(value,proto.ondewo.nlu.LlmModel.deserializeBinaryFromReader);
msg.addLlmModels(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ondewo.nlu.ListLlmModelsResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.ondewo.nlu.ListLlmModelsResponse.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.ListLlmModelsResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ondewo.nlu.ListLlmModelsResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getLlmModelsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.ondewo.nlu.LlmModel.serializeBinaryToWriter
);
}
};
/**
* repeated LlmModel llm_models = 1;
* @return {!Array<!proto.ondewo.nlu.LlmModel>}
*/
proto.ondewo.nlu.ListLlmModelsResponse.prototype.getLlmModelsList = function() {
return /** @type{!Array<!proto.ondewo.nlu.LlmModel>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.ondewo.nlu.LlmModel, 1));
};
/**
* @param {!Array<!proto.ondewo.nlu.LlmModel>} value
* @return {!proto.ondewo.nlu.ListLlmModelsResponse} returns this
*/
proto.ondewo.nlu.ListLlmModelsResponse.prototype.setLlmModelsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.ondewo.nlu.LlmModel=} opt_value
* @param {number=} opt_index
* @return {!proto.ondewo.nlu.LlmModel}
*/
proto.ondewo.nlu.ListLlmModelsResponse.prototype.addLlmModels = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ondewo.nlu.LlmModel, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.ondewo.nlu.ListLlmModelsResponse} returns this
*/
proto.ondewo.nlu.ListLlmModelsResponse.prototype.clearLlmModelsList = function() {
return this.setLlmModelsList([]);
};
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.LlmModel.prototype.toObject = function(opt_includeInstance) {
return proto.ondewo.nlu.LlmModel.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.LlmModel} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ondewo.nlu.LlmModel.toObject = function(includeInstance, msg) {
var f, obj = {
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
displayName: jspb.Message.getFieldWithDefault(msg, 2, ""),
description: jspb.Message.getFieldWithDefault(msg, 3, ""),
ccaiServiceName: jspb.Message.getFieldWithDefault(msg, 4, ""),
ccaiServiceProvider: jspb.Message.getFieldWithDefault(msg, 5, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.ondewo.nlu.LlmModel}
*/
proto.ondewo.nlu.LlmModel.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ondewo.nlu.LlmModel;
return proto.ondewo.nlu.LlmModel.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ondewo.nlu.LlmModel} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ondewo.nlu.LlmModel}
*/
proto.ondewo.nlu.LlmModel.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setName(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setDisplayName(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setDescription(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setCcaiServiceName(value);
break;
case 5:
var value = /** @type {!proto.ondewo.nlu.CcaiServiceProvider} */ (reader.readEnum());
msg.setCcaiServiceProvider(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ondewo.nlu.LlmModel.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.ondewo.nlu.LlmModel.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.LlmModel} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ondewo.nlu.LlmModel.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getName();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getDisplayName();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getDescription();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getCcaiServiceName();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
f = message.getCcaiServiceProvider();
if (f !== 0.0) {
writer.writeEnum(
5,
f
);
}
};
/**
* optional string name = 1;
* @return {string}
*/
proto.ondewo.nlu.LlmModel.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.ondewo.nlu.LlmModel} returns this
*/
proto.ondewo.nlu.LlmModel.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string display_name = 2;
* @return {string}
*/
proto.ondewo.nlu.LlmModel.prototype.getDisplayName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.ondewo.nlu.LlmModel} returns this
*/
proto.ondewo.nlu.LlmModel.prototype.setDisplayName = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string description = 3;
* @return {string}
*/
proto.ondewo.nlu.LlmModel.prototype.getDescription = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.ondewo.nlu.LlmModel} returns this
*/
proto.ondewo.nlu.LlmModel.prototype.setDescription = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional string ccai_service_name = 4;
* @return {string}
*/
proto.ondewo.nlu.LlmModel.prototype.getCcaiServiceName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.ondewo.nlu.LlmModel} returns this
*/
proto.ondewo.nlu.LlmModel.prototype.setCcaiServiceName = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* optional CcaiServiceProvider ccai_service_provider = 5;
* @return {!proto.ondewo.nlu.CcaiServiceProvider}
*/
proto.ondewo.nlu.LlmModel.prototype.getCcaiServiceProvider = function() {
return /** @type {!proto.ondewo.nlu.CcaiServiceProvider} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
};
/**
* @param {!proto.ondewo.nlu.CcaiServiceProvider} value
* @return {!proto.ondewo.nlu.LlmModel} returns this
*/
proto.ondewo.nlu.LlmModel.prototype.setCcaiServiceProvider = function(value) {
return jspb.Message.setProto3EnumField(this, 5, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.ondewo.nlu.LlmGenerateRequest.repeatedFields_ = [3];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to un