UNPKG

@mysql/xdevapi

Version:

MySQL Connector/Node.js - A Node.js driver for MySQL using the X Protocol and X DevAPI.

1,661 lines (1,453 loc) 154 kB
/* * Copyright (c) 2017, 2022, Oracle and/or its affiliates. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, version 2.0, as * published by the Free Software Foundation. * * This program is also distributed with certain software (including * but not limited to OpenSSL) that is licensed under separate terms, * as designated in a particular file or component or in included license * documentation. The authors of MySQL hereby grant you an * additional permission to link the program and your derivative works * with the separately licensed software that they have included with * MySQL. * * Without limiting anything contained in the foregoing, this file, * which is part of MySQL Connector/Node.js, is also subject to the * Universal FOSS Exception, version 1.0, a copy of which can be found at * http://oss.oracle.com/licenses/universal-foss-exception. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU General Public License, version 2.0, for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ // source: mysqlx_crud.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 mysqlx_pb = require('./mysqlx_pb.js'); goog.object.extend(proto, mysqlx_pb); var mysqlx_expr_pb = require('./mysqlx_expr_pb.js'); goog.object.extend(proto, mysqlx_expr_pb); var mysqlx_datatypes_pb = require('./mysqlx_datatypes_pb.js'); goog.object.extend(proto, mysqlx_datatypes_pb); goog.exportSymbol('proto.Mysqlx.Crud.Collection', null, global); goog.exportSymbol('proto.Mysqlx.Crud.Column', null, global); goog.exportSymbol('proto.Mysqlx.Crud.CreateView', null, global); goog.exportSymbol('proto.Mysqlx.Crud.DataModel', null, global); goog.exportSymbol('proto.Mysqlx.Crud.Delete', null, global); goog.exportSymbol('proto.Mysqlx.Crud.DropView', null, global); goog.exportSymbol('proto.Mysqlx.Crud.Find', null, global); goog.exportSymbol('proto.Mysqlx.Crud.Find.RowLock', null, global); goog.exportSymbol('proto.Mysqlx.Crud.Find.RowLockOptions', null, global); goog.exportSymbol('proto.Mysqlx.Crud.Insert', null, global); goog.exportSymbol('proto.Mysqlx.Crud.Insert.TypedRow', null, global); goog.exportSymbol('proto.Mysqlx.Crud.Limit', null, global); goog.exportSymbol('proto.Mysqlx.Crud.LimitExpr', null, global); goog.exportSymbol('proto.Mysqlx.Crud.ModifyView', null, global); goog.exportSymbol('proto.Mysqlx.Crud.Order', null, global); goog.exportSymbol('proto.Mysqlx.Crud.Order.Direction', null, global); goog.exportSymbol('proto.Mysqlx.Crud.Projection', null, global); goog.exportSymbol('proto.Mysqlx.Crud.Update', null, global); goog.exportSymbol('proto.Mysqlx.Crud.UpdateOperation', null, global); goog.exportSymbol('proto.Mysqlx.Crud.UpdateOperation.UpdateType', null, global); goog.exportSymbol('proto.Mysqlx.Crud.ViewAlgorithm', null, global); goog.exportSymbol('proto.Mysqlx.Crud.ViewCheckOption', null, global); goog.exportSymbol('proto.Mysqlx.Crud.ViewSqlSecurity', 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.Mysqlx.Crud.Column = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.Mysqlx.Crud.Column.repeatedFields_, null); }; goog.inherits(proto.Mysqlx.Crud.Column, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.Mysqlx.Crud.Column.displayName = 'proto.Mysqlx.Crud.Column'; } /** * 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.Mysqlx.Crud.Projection = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.Mysqlx.Crud.Projection, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.Mysqlx.Crud.Projection.displayName = 'proto.Mysqlx.Crud.Projection'; } /** * 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.Mysqlx.Crud.Collection = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.Mysqlx.Crud.Collection, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.Mysqlx.Crud.Collection.displayName = 'proto.Mysqlx.Crud.Collection'; } /** * 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.Mysqlx.Crud.Limit = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.Mysqlx.Crud.Limit, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.Mysqlx.Crud.Limit.displayName = 'proto.Mysqlx.Crud.Limit'; } /** * 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.Mysqlx.Crud.LimitExpr = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.Mysqlx.Crud.LimitExpr, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.Mysqlx.Crud.LimitExpr.displayName = 'proto.Mysqlx.Crud.LimitExpr'; } /** * 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.Mysqlx.Crud.Order = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.Mysqlx.Crud.Order, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.Mysqlx.Crud.Order.displayName = 'proto.Mysqlx.Crud.Order'; } /** * 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.Mysqlx.Crud.UpdateOperation = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.Mysqlx.Crud.UpdateOperation, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.Mysqlx.Crud.UpdateOperation.displayName = 'proto.Mysqlx.Crud.UpdateOperation'; } /** * 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.Mysqlx.Crud.Find = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.Mysqlx.Crud.Find.repeatedFields_, null); }; goog.inherits(proto.Mysqlx.Crud.Find, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.Mysqlx.Crud.Find.displayName = 'proto.Mysqlx.Crud.Find'; } /** * 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.Mysqlx.Crud.Insert = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.Mysqlx.Crud.Insert.repeatedFields_, null); }; goog.inherits(proto.Mysqlx.Crud.Insert, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.Mysqlx.Crud.Insert.displayName = 'proto.Mysqlx.Crud.Insert'; } /** * 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.Mysqlx.Crud.Insert.TypedRow = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.Mysqlx.Crud.Insert.TypedRow.repeatedFields_, null); }; goog.inherits(proto.Mysqlx.Crud.Insert.TypedRow, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.Mysqlx.Crud.Insert.TypedRow.displayName = 'proto.Mysqlx.Crud.Insert.TypedRow'; } /** * 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.Mysqlx.Crud.Update = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.Mysqlx.Crud.Update.repeatedFields_, null); }; goog.inherits(proto.Mysqlx.Crud.Update, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.Mysqlx.Crud.Update.displayName = 'proto.Mysqlx.Crud.Update'; } /** * 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.Mysqlx.Crud.Delete = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.Mysqlx.Crud.Delete.repeatedFields_, null); }; goog.inherits(proto.Mysqlx.Crud.Delete, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.Mysqlx.Crud.Delete.displayName = 'proto.Mysqlx.Crud.Delete'; } /** * 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.Mysqlx.Crud.CreateView = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.Mysqlx.Crud.CreateView.repeatedFields_, null); }; goog.inherits(proto.Mysqlx.Crud.CreateView, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.Mysqlx.Crud.CreateView.displayName = 'proto.Mysqlx.Crud.CreateView'; } /** * 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.Mysqlx.Crud.ModifyView = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.Mysqlx.Crud.ModifyView.repeatedFields_, null); }; goog.inherits(proto.Mysqlx.Crud.ModifyView, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.Mysqlx.Crud.ModifyView.displayName = 'proto.Mysqlx.Crud.ModifyView'; } /** * 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.Mysqlx.Crud.DropView = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.Mysqlx.Crud.DropView, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.Mysqlx.Crud.DropView.displayName = 'proto.Mysqlx.Crud.DropView'; } /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.Mysqlx.Crud.Column.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 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.Mysqlx.Crud.Column.prototype.toObject = function(opt_includeInstance) { return proto.Mysqlx.Crud.Column.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.Mysqlx.Crud.Column} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Mysqlx.Crud.Column.toObject = function(includeInstance, msg) { var f, obj = { name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, alias: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f, documentPathList: jspb.Message.toObjectList(msg.getDocumentPathList(), mysqlx_expr_pb.DocumentPathItem.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.Mysqlx.Crud.Column} */ proto.Mysqlx.Crud.Column.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.Mysqlx.Crud.Column; return proto.Mysqlx.Crud.Column.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.Mysqlx.Crud.Column} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.Mysqlx.Crud.Column} */ proto.Mysqlx.Crud.Column.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.setAlias(value); break; case 3: var value = new mysqlx_expr_pb.DocumentPathItem; reader.readMessage(value,mysqlx_expr_pb.DocumentPathItem.deserializeBinaryFromReader); msg.addDocumentPath(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.Mysqlx.Crud.Column.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.Mysqlx.Crud.Column.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.Mysqlx.Crud.Column} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Mysqlx.Crud.Column.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = /** @type {string} */ (jspb.Message.getField(message, 1)); if (f != null) { writer.writeString( 1, f ); } f = /** @type {string} */ (jspb.Message.getField(message, 2)); if (f != null) { writer.writeString( 2, f ); } f = message.getDocumentPathList(); if (f.length > 0) { writer.writeRepeatedMessage( 3, f, mysqlx_expr_pb.DocumentPathItem.serializeBinaryToWriter ); } }; /** * optional string name = 1; * @return {string} */ proto.Mysqlx.Crud.Column.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.Mysqlx.Crud.Column} returns this */ proto.Mysqlx.Crud.Column.prototype.setName = function(value) { return jspb.Message.setField(this, 1, value); }; /** * Clears the field making it undefined. * @return {!proto.Mysqlx.Crud.Column} returns this */ proto.Mysqlx.Crud.Column.prototype.clearName = function() { return jspb.Message.setField(this, 1, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.Mysqlx.Crud.Column.prototype.hasName = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional string alias = 2; * @return {string} */ proto.Mysqlx.Crud.Column.prototype.getAlias = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.Mysqlx.Crud.Column} returns this */ proto.Mysqlx.Crud.Column.prototype.setAlias = function(value) { return jspb.Message.setField(this, 2, value); }; /** * Clears the field making it undefined. * @return {!proto.Mysqlx.Crud.Column} returns this */ proto.Mysqlx.Crud.Column.prototype.clearAlias = function() { return jspb.Message.setField(this, 2, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.Mysqlx.Crud.Column.prototype.hasAlias = function() { return jspb.Message.getField(this, 2) != null; }; /** * repeated Mysqlx.Expr.DocumentPathItem document_path = 3; * @return {!Array<!proto.Mysqlx.Expr.DocumentPathItem>} */ proto.Mysqlx.Crud.Column.prototype.getDocumentPathList = function() { return /** @type{!Array<!proto.Mysqlx.Expr.DocumentPathItem>} */ ( jspb.Message.getRepeatedWrapperField(this, mysqlx_expr_pb.DocumentPathItem, 3)); }; /** * @param {!Array<!proto.Mysqlx.Expr.DocumentPathItem>} value * @return {!proto.Mysqlx.Crud.Column} returns this */ proto.Mysqlx.Crud.Column.prototype.setDocumentPathList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** * @param {!proto.Mysqlx.Expr.DocumentPathItem=} opt_value * @param {number=} opt_index * @return {!proto.Mysqlx.Expr.DocumentPathItem} */ proto.Mysqlx.Crud.Column.prototype.addDocumentPath = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.Mysqlx.Expr.DocumentPathItem, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.Mysqlx.Crud.Column} returns this */ proto.Mysqlx.Crud.Column.prototype.clearDocumentPathList = function() { return this.setDocumentPathList([]); }; 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.Mysqlx.Crud.Projection.prototype.toObject = function(opt_includeInstance) { return proto.Mysqlx.Crud.Projection.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.Mysqlx.Crud.Projection} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Mysqlx.Crud.Projection.toObject = function(includeInstance, msg) { var f, obj = { source: (f = msg.getSource()) && mysqlx_expr_pb.Expr.toObject(includeInstance, f), alias: (f = jspb.Message.getField(msg, 2)) == 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.Mysqlx.Crud.Projection} */ proto.Mysqlx.Crud.Projection.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.Mysqlx.Crud.Projection; return proto.Mysqlx.Crud.Projection.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.Mysqlx.Crud.Projection} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.Mysqlx.Crud.Projection} */ proto.Mysqlx.Crud.Projection.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new mysqlx_expr_pb.Expr; reader.readMessage(value,mysqlx_expr_pb.Expr.deserializeBinaryFromReader); msg.setSource(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setAlias(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.Mysqlx.Crud.Projection.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.Mysqlx.Crud.Projection.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.Mysqlx.Crud.Projection} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Mysqlx.Crud.Projection.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getSource(); if (f != null) { writer.writeMessage( 1, f, mysqlx_expr_pb.Expr.serializeBinaryToWriter ); } f = /** @type {string} */ (jspb.Message.getField(message, 2)); if (f != null) { writer.writeString( 2, f ); } }; /** * required Mysqlx.Expr.Expr source = 1; * @return {!proto.Mysqlx.Expr.Expr} */ proto.Mysqlx.Crud.Projection.prototype.getSource = function() { return /** @type{!proto.Mysqlx.Expr.Expr} */ ( jspb.Message.getWrapperField(this, mysqlx_expr_pb.Expr, 1, 1)); }; /** * @param {!proto.Mysqlx.Expr.Expr} value * @return {!proto.Mysqlx.Crud.Projection} returns this */ proto.Mysqlx.Crud.Projection.prototype.setSource = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the field making it undefined. * @return {!proto.Mysqlx.Crud.Projection} returns this */ proto.Mysqlx.Crud.Projection.prototype.clearSource = function() { return jspb.Message.setField(this, 1, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.Mysqlx.Crud.Projection.prototype.hasSource = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional string alias = 2; * @return {string} */ proto.Mysqlx.Crud.Projection.prototype.getAlias = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.Mysqlx.Crud.Projection} returns this */ proto.Mysqlx.Crud.Projection.prototype.setAlias = function(value) { return jspb.Message.setField(this, 2, value); }; /** * Clears the field making it undefined. * @return {!proto.Mysqlx.Crud.Projection} returns this */ proto.Mysqlx.Crud.Projection.prototype.clearAlias = function() { return jspb.Message.setField(this, 2, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.Mysqlx.Crud.Projection.prototype.hasAlias = function() { return jspb.Message.getField(this, 2) != null; }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.Mysqlx.Crud.Collection.prototype.toObject = function(opt_includeInstance) { return proto.Mysqlx.Crud.Collection.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.Mysqlx.Crud.Collection} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Mysqlx.Crud.Collection.toObject = function(includeInstance, msg) { var f, obj = { name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, schema: (f = jspb.Message.getField(msg, 2)) == 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.Mysqlx.Crud.Collection} */ proto.Mysqlx.Crud.Collection.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.Mysqlx.Crud.Collection; return proto.Mysqlx.Crud.Collection.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.Mysqlx.Crud.Collection} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.Mysqlx.Crud.Collection} */ proto.Mysqlx.Crud.Collection.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.setSchema(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.Mysqlx.Crud.Collection.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.Mysqlx.Crud.Collection.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.Mysqlx.Crud.Collection} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Mysqlx.Crud.Collection.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = /** @type {string} */ (jspb.Message.getField(message, 1)); if (f != null) { writer.writeString( 1, f ); } f = /** @type {string} */ (jspb.Message.getField(message, 2)); if (f != null) { writer.writeString( 2, f ); } }; /** * required string name = 1; * @return {string} */ proto.Mysqlx.Crud.Collection.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.Mysqlx.Crud.Collection} returns this */ proto.Mysqlx.Crud.Collection.prototype.setName = function(value) { return jspb.Message.setField(this, 1, value); }; /** * Clears the field making it undefined. * @return {!proto.Mysqlx.Crud.Collection} returns this */ proto.Mysqlx.Crud.Collection.prototype.clearName = function() { return jspb.Message.setField(this, 1, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.Mysqlx.Crud.Collection.prototype.hasName = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional string schema = 2; * @return {string} */ proto.Mysqlx.Crud.Collection.prototype.getSchema = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.Mysqlx.Crud.Collection} returns this */ proto.Mysqlx.Crud.Collection.prototype.setSchema = function(value) { return jspb.Message.setField(this, 2, value); }; /** * Clears the field making it undefined. * @return {!proto.Mysqlx.Crud.Collection} returns this */ proto.Mysqlx.Crud.Collection.prototype.clearSchema = function() { return jspb.Message.setField(this, 2, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.Mysqlx.Crud.Collection.prototype.hasSchema = function() { return jspb.Message.getField(this, 2) != null; }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.Mysqlx.Crud.Limit.prototype.toObject = function(opt_includeInstance) { return proto.Mysqlx.Crud.Limit.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.Mysqlx.Crud.Limit} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Mysqlx.Crud.Limit.toObject = function(includeInstance, msg) { var f, obj = { rowCount: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, offset: (f = jspb.Message.getField(msg, 2)) == 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.Mysqlx.Crud.Limit} */ proto.Mysqlx.Crud.Limit.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.Mysqlx.Crud.Limit; return proto.Mysqlx.Crud.Limit.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.Mysqlx.Crud.Limit} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.Mysqlx.Crud.Limit} */ proto.Mysqlx.Crud.Limit.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {string} */ (reader.readUint64String()); msg.setRowCount(value); break; case 2: var value = /** @type {string} */ (reader.readUint64String()); msg.setOffset(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.Mysqlx.Crud.Limit.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.Mysqlx.Crud.Limit.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.Mysqlx.Crud.Limit} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Mysqlx.Crud.Limit.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = /** @type {string} */ (jspb.Message.getField(message, 1)); if (f != null) { writer.writeUint64String( 1, f ); } f = /** @type {string} */ (jspb.Message.getField(message, 2)); if (f != null) { writer.writeUint64String( 2, f ); } }; /** * required uint64 row_count = 1; * @return {string} */ proto.Mysqlx.Crud.Limit.prototype.getRowCount = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** * @param {string} value * @return {!proto.Mysqlx.Crud.Limit} returns this */ proto.Mysqlx.Crud.Limit.prototype.setRowCount = function(value) { return jspb.Message.setField(this, 1, value); }; /** * Clears the field making it undefined. * @return {!proto.Mysqlx.Crud.Limit} returns this */ proto.Mysqlx.Crud.Limit.prototype.clearRowCount = function() { return jspb.Message.setField(this, 1, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.Mysqlx.Crud.Limit.prototype.hasRowCount = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional uint64 offset = 2; * @return {string} */ proto.Mysqlx.Crud.Limit.prototype.getOffset = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); }; /** * @param {string} value * @return {!proto.Mysqlx.Crud.Limit} returns this */ proto.Mysqlx.Crud.Limit.prototype.setOffset = function(value) { return jspb.Message.setField(this, 2, value); }; /** * Clears the field making it undefined. * @return {!proto.Mysqlx.Crud.Limit} returns this */ proto.Mysqlx.Crud.Limit.prototype.clearOffset = function() { return jspb.Message.setField(this, 2, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.Mysqlx.Crud.Limit.prototype.hasOffset = function() { return jspb.Message.getField(this, 2) != null; }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.Mysqlx.Crud.LimitExpr.prototype.toObject = function(opt_includeInstance) { return proto.Mysqlx.Crud.LimitExpr.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.Mysqlx.Crud.LimitExpr} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Mysqlx.Crud.LimitExpr.toObject = function(includeInstance, msg) { var f, obj = { rowCount: (f = msg.getRowCount()) && mysqlx_expr_pb.Expr.toObject(includeInstance, f), offset: (f = msg.getOffset()) && mysqlx_expr_pb.Expr.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.Mysqlx.Crud.LimitExpr} */ proto.Mysqlx.Crud.LimitExpr.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.Mysqlx.Crud.LimitExpr; return proto.Mysqlx.Crud.LimitExpr.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.Mysqlx.Crud.LimitExpr} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.Mysqlx.Crud.LimitExpr} */ proto.Mysqlx.Crud.LimitExpr.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new mysqlx_expr_pb.Expr; reader.readMessage(value,mysqlx_expr_pb.Expr.deserializeBinaryFromReader); msg.setRowCount(value); break; case 2: var value = new mysqlx_expr_pb.Expr; reader.readMessage(value,mysqlx_expr_pb.Expr.deserializeBinaryFromReader); msg.setOffset(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.Mysqlx.Crud.LimitExpr.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.Mysqlx.Crud.LimitExpr.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.Mysqlx.Crud.LimitExpr} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Mysqlx.Crud.LimitExpr.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getRowCount(); if (f != null) { writer.writeMessage( 1, f, mysqlx_expr_pb.Expr.serializeBinaryToWriter ); } f = message.getOffset(); if (f != null) { writer.writeMessage( 2, f, mysqlx_expr_pb.Expr.serializeBinaryToWriter ); } }; /** * required Mysqlx.Expr.Expr row_count = 1; * @return {!proto.Mysqlx.Expr.Expr} */ proto.Mysqlx.Crud.LimitExpr.prototype.getRowCount = function() { return /** @type{!proto.Mysqlx.Expr.Expr} */ ( jspb.Message.getWrapperField(this, mysqlx_expr_pb.Expr, 1, 1)); }; /** * @param {!proto.Mysqlx.Expr.Expr} value * @return {!proto.Mysqlx.Crud.LimitExpr} returns this */ proto.Mysqlx.Crud.LimitExpr.prototype.setRowCount = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the field making it undefined. * @return {!proto.Mysqlx.Crud.LimitExpr} returns this */ proto.Mysqlx.Crud.LimitExpr.prototype.clearRowCount = function() { return jspb.Message.setField(this, 1, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.Mysqlx.Crud.LimitExpr.prototype.hasRowCount = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional Mysqlx.Expr.Expr offset = 2; * @return {?proto.Mysqlx.Expr.Expr} */ proto.Mysqlx.Crud.LimitExpr.prototype.getOffset = function() { return /** @type{?proto.Mysqlx.Expr.Expr} */ ( jspb.Message.getWrapperField(this, mysqlx_expr_pb.Expr, 2)); }; /** * @param {?proto.Mysqlx.Expr.Expr|undefined} value * @return {!proto.Mysqlx.Crud.LimitExpr} returns this */ proto.Mysqlx.Crud.LimitExpr.prototype.setOffset = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.Mysqlx.Crud.LimitExpr} returns this */ proto.Mysqlx.Crud.LimitExpr.prototype.clearOffset = function() { return this.setOffset(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.Mysqlx.Crud.LimitExpr.prototype.hasOffset = function() { return jspb.Message.getField(this, 2) != null; }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.Mysqlx.Crud.Order.prototype.toObject = function(opt_includeInstance) { return proto.Mysqlx.Crud.Order.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.Mysqlx.Crud.Order} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Mysqlx.Crud.Order.toObject = function(includeInstance, msg) { var f, obj = { expr: (f = msg.getExpr()) && mysqlx_expr_pb.Expr.toObject(includeInstance, f), direction: jspb.Message.getFieldWithDefault(msg, 2, 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.Mysqlx.Crud.Order} */ proto.Mysqlx.Crud.Order.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.Mysqlx.Crud.Order; return proto.Mysqlx.Crud.Order.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.Mysqlx.Crud.Order} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.Mysqlx.Crud.Order} */ proto.Mysqlx.Crud.Order.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new mysqlx_expr_pb.Expr; reader.readMessage(value,mysqlx_expr_pb.Expr.deserializeBinaryFromReader); msg.setExpr(value); break; case 2: var value = /** @type {!proto.Mysqlx.Crud.Order.Direction} */ (reader.readEnum()); msg.setDirection(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.Mysqlx.Crud.Order.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.Mysqlx.Crud.Order.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.Mysqlx.Crud.Order} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Mysqlx.Crud.Order.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getExpr(); if (f != null) { writer.writeMessage( 1, f, mysqlx_expr_pb.Expr.serializeBinaryToWriter ); } f = /** @type {!proto.Mysqlx.Crud.Order.Direction} */ (jspb.Message.getField(message, 2)); if (f != null) { writer.writeEnum( 2, f ); } }; /** * @enum {number} */ proto.Mysqlx.Crud.Order.Direction = { ASC: 1, DESC: 2 }; /** * required Mysqlx.Expr.Expr expr = 1; * @return {!proto.Mysqlx.Expr.Expr} */ proto.Mysqlx.Crud.Order.prototype.getExpr = function() { return /** @type{!proto.Mysqlx.Expr.Expr} */ ( jspb.Message.getWrapperField(this, mysqlx_expr_pb.Expr, 1, 1)); }; /** * @param {!proto.Mysqlx.Expr.Expr} value * @return {!proto.Mysqlx.Crud.Order} returns this */ proto.Mysqlx.Crud.Order.prototype.setExpr = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the field making it undefined. * @return {!proto.Mysqlx.Crud.Order} returns this */ proto.Mysqlx.Crud.Order.prototype.clearExpr = function() { return jspb.Message.setField(this, 1, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.Mysqlx.Crud.Order.prototype.hasExpr = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional Direction direction = 2; * @return {!proto.Mysqlx.Crud.Order.Direction} */ proto.Mysqlx.Crud.Order.prototype.getDirection = function() { return /** @type {!proto.Mysqlx.Crud.Order.Direction} */ (jspb.Message.getFieldWithDefault(this, 2, 1)); }; /** * @param {!proto.Mysqlx.Crud.Order.Direction} value * @return {!proto.Mysqlx.Crud.Order} returns this */ proto.Mysqlx.Crud.Order.prototype.setDirection = function(value) { return jspb.Message.setField(this, 2, value); }; /** * Clears the field making it undefined. * @return {!proto.Mysqlx.Crud.Order} returns this */ proto.Mysqlx.Crud.Order.prototype.clearDirection = function() { return jspb.Message.setField(this, 2, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.Mysqlx.Crud.Order.prototype.hasDirection = function() { return jspb.Message.getField(this, 2) != null; }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optio