UNPKG

@x5e/gink

Version:

an eventually consistent database

819 lines 29.1 kB
// source: proto/value.proto /** * @fileoverview * @enhanceable * @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! var jspb = require('google-protobuf'); var goog = jspb; var global = Function('return this')(); var proto_key_pb = require('../proto/key_pb.js'); goog.object.extend(proto, proto_key_pb); goog.exportSymbol('proto.gink.Value', null, global); goog.exportSymbol('proto.gink.Value.Document', null, global); goog.exportSymbol('proto.gink.Value.Special', null, global); goog.exportSymbol('proto.gink.Value.Tuple', null, global); goog.exportSymbol('proto.gink.Value.ValueCase', 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.gink.Value = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.gink.Value.oneofGroups_); }; goog.inherits(proto.gink.Value, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.gink.Value.displayName = 'proto.gink.Value'; } /** * 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.gink.Value.Tuple = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.gink.Value.Tuple.repeatedFields_, null); }; goog.inherits(proto.gink.Value.Tuple, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.gink.Value.Tuple.displayName = 'proto.gink.Value.Tuple'; } /** * 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.gink.Value.Document = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.gink.Value.Document.repeatedFields_, null); }; goog.inherits(proto.gink.Value.Document, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.gink.Value.Document.displayName = 'proto.gink.Value.Document'; } /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all * other fields in the group are cleared. During deserialization, if multiple * fields are encountered for a group, only the last value seen will be kept. * @private {!Array<!Array<number>>} * @const */ proto.gink.Value.oneofGroups_ = [[1, 2, 3, 4, 5, 6, 7, 8]]; /** * @enum {number} */ proto.gink.Value.ValueCase = { VALUE_NOT_SET: 0, INTEGER: 1, FLOATING: 2, CHARACTERS: 3, SPECIAL: 4, TIMESTAMP: 5, DOCUMENT: 6, TUPLE: 7, OCTETS: 8 }; /** * @return {proto.gink.Value.ValueCase} */ proto.gink.Value.prototype.getValueCase = function () { return /** @type {proto.gink.Value.ValueCase} */ (jspb.Message.computeOneofCase(this, proto.gink.Value.oneofGroups_[0])); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.gink.Value.prototype.toObject = function (opt_includeInstance) { return proto.gink.Value.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.gink.Value} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.gink.Value.toObject = function (includeInstance, msg) { var f, obj = { integer: jspb.Message.getFieldWithDefault(msg, 1, ""), floating: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), characters: jspb.Message.getFieldWithDefault(msg, 3, ""), special: jspb.Message.getFieldWithDefault(msg, 4, 0), timestamp: jspb.Message.getFieldWithDefault(msg, 5, 0), document: (f = msg.getDocument()) && proto.gink.Value.Document.toObject(includeInstance, f), tuple: (f = msg.getTuple()) && proto.gink.Value.Tuple.toObject(includeInstance, f), octets: msg.getOctets_asB64() }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.gink.Value} */ proto.gink.Value.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.gink.Value; return proto.gink.Value.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.gink.Value} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.gink.Value} */ proto.gink.Value.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.setInteger(value); break; case 2: var value = /** @type {number} */ (reader.readDouble()); msg.setFloating(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setCharacters(value); break; case 4: var value = /** @type {!proto.gink.Value.Special} */ (reader.readEnum()); msg.setSpecial(value); break; case 5: var value = /** @type {number} */ (reader.readInt64()); msg.setTimestamp(value); break; case 6: var value = new proto.gink.Value.Document; reader.readMessage(value, proto.gink.Value.Document.deserializeBinaryFromReader); msg.setDocument(value); break; case 7: var value = new proto.gink.Value.Tuple; reader.readMessage(value, proto.gink.Value.Tuple.deserializeBinaryFromReader); msg.setTuple(value); break; case 8: var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setOctets(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.gink.Value.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter(); proto.gink.Value.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.gink.Value} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.gink.Value.serializeBinaryToWriter = function (message, writer) { var f = undefined; f = /** @type {string} */ (jspb.Message.getField(message, 1)); if (f != null) { writer.writeString(1, f); } f = /** @type {number} */ (jspb.Message.getField(message, 2)); if (f != null) { writer.writeDouble(2, f); } f = /** @type {string} */ (jspb.Message.getField(message, 3)); if (f != null) { writer.writeString(3, f); } f = /** @type {!proto.gink.Value.Special} */ (jspb.Message.getField(message, 4)); if (f != null) { writer.writeEnum(4, f); } f = /** @type {number} */ (jspb.Message.getField(message, 5)); if (f != null) { writer.writeInt64(5, f); } f = message.getDocument(); if (f != null) { writer.writeMessage(6, f, proto.gink.Value.Document.serializeBinaryToWriter); } f = message.getTuple(); if (f != null) { writer.writeMessage(7, f, proto.gink.Value.Tuple.serializeBinaryToWriter); } f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 8)); if (f != null) { writer.writeBytes(8, f); } }; /** * @enum {number} */ proto.gink.Value.Special = { MISSING: 0, TRUE: 1, FALSE: 2, NULL: 3 }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.gink.Value.Tuple.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.gink.Value.Tuple.prototype.toObject = function (opt_includeInstance) { return proto.gink.Value.Tuple.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.gink.Value.Tuple} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.gink.Value.Tuple.toObject = function (includeInstance, msg) { var f, obj = { valuesList: jspb.Message.toObjectList(msg.getValuesList(), proto.gink.Value.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.gink.Value.Tuple} */ proto.gink.Value.Tuple.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.gink.Value.Tuple; return proto.gink.Value.Tuple.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.gink.Value.Tuple} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.gink.Value.Tuple} */ proto.gink.Value.Tuple.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto.gink.Value; reader.readMessage(value, proto.gink.Value.deserializeBinaryFromReader); msg.addValues(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.gink.Value.Tuple.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter(); proto.gink.Value.Tuple.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.gink.Value.Tuple} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.gink.Value.Tuple.serializeBinaryToWriter = function (message, writer) { var f = undefined; f = message.getValuesList(); if (f.length > 0) { writer.writeRepeatedMessage(1, f, proto.gink.Value.serializeBinaryToWriter); } }; /** * repeated Value values = 1; * @return {!Array<!proto.gink.Value>} */ proto.gink.Value.Tuple.prototype.getValuesList = function () { return /** @type{!Array<!proto.gink.Value>} */ (jspb.Message.getRepeatedWrapperField(this, proto.gink.Value, 1)); }; /** * @param {!Array<!proto.gink.Value>} value * @return {!proto.gink.Value.Tuple} returns this */ proto.gink.Value.Tuple.prototype.setValuesList = function (value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.gink.Value=} opt_value * @param {number=} opt_index * @return {!proto.gink.Value} */ proto.gink.Value.Tuple.prototype.addValues = function (opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.gink.Value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.gink.Value.Tuple} returns this */ proto.gink.Value.Tuple.prototype.clearValuesList = function () { return this.setValuesList([]); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.gink.Value.Document.repeatedFields_ = [1, 2]; 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.gink.Value.Document.prototype.toObject = function (opt_includeInstance) { return proto.gink.Value.Document.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.gink.Value.Document} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.gink.Value.Document.toObject = function (includeInstance, msg) { var f, obj = { keysList: jspb.Message.toObjectList(msg.getKeysList(), proto_key_pb.Key.toObject, includeInstance), valuesList: jspb.Message.toObjectList(msg.getValuesList(), proto.gink.Value.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.gink.Value.Document} */ proto.gink.Value.Document.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.gink.Value.Document; return proto.gink.Value.Document.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.gink.Value.Document} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.gink.Value.Document} */ proto.gink.Value.Document.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto_key_pb.Key; reader.readMessage(value, proto_key_pb.Key.deserializeBinaryFromReader); msg.addKeys(value); break; case 2: var value = new proto.gink.Value; reader.readMessage(value, proto.gink.Value.deserializeBinaryFromReader); msg.addValues(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.gink.Value.Document.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter(); proto.gink.Value.Document.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.gink.Value.Document} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.gink.Value.Document.serializeBinaryToWriter = function (message, writer) { var f = undefined; f = message.getKeysList(); if (f.length > 0) { writer.writeRepeatedMessage(1, f, proto_key_pb.Key.serializeBinaryToWriter); } f = message.getValuesList(); if (f.length > 0) { writer.writeRepeatedMessage(2, f, proto.gink.Value.serializeBinaryToWriter); } }; /** * repeated Key keys = 1; * @return {!Array<!proto.gink.Key>} */ proto.gink.Value.Document.prototype.getKeysList = function () { return /** @type{!Array<!proto.gink.Key>} */ (jspb.Message.getRepeatedWrapperField(this, proto_key_pb.Key, 1)); }; /** * @param {!Array<!proto.gink.Key>} value * @return {!proto.gink.Value.Document} returns this */ proto.gink.Value.Document.prototype.setKeysList = function (value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.gink.Key=} opt_value * @param {number=} opt_index * @return {!proto.gink.Key} */ proto.gink.Value.Document.prototype.addKeys = function (opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.gink.Key, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.gink.Value.Document} returns this */ proto.gink.Value.Document.prototype.clearKeysList = function () { return this.setKeysList([]); }; /** * repeated Value values = 2; * @return {!Array<!proto.gink.Value>} */ proto.gink.Value.Document.prototype.getValuesList = function () { return /** @type{!Array<!proto.gink.Value>} */ (jspb.Message.getRepeatedWrapperField(this, proto.gink.Value, 2)); }; /** * @param {!Array<!proto.gink.Value>} value * @return {!proto.gink.Value.Document} returns this */ proto.gink.Value.Document.prototype.setValuesList = function (value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** * @param {!proto.gink.Value=} opt_value * @param {number=} opt_index * @return {!proto.gink.Value} */ proto.gink.Value.Document.prototype.addValues = function (opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gink.Value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.gink.Value.Document} returns this */ proto.gink.Value.Document.prototype.clearValuesList = function () { return this.setValuesList([]); }; /** * optional string integer = 1; * @return {string} */ proto.gink.Value.prototype.getInteger = function () { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.gink.Value} returns this */ proto.gink.Value.prototype.setInteger = function (value) { return jspb.Message.setOneofField(this, 1, proto.gink.Value.oneofGroups_[0], value); }; /** * Clears the field making it undefined. * @return {!proto.gink.Value} returns this */ proto.gink.Value.prototype.clearInteger = function () { return jspb.Message.setOneofField(this, 1, proto.gink.Value.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.gink.Value.prototype.hasInteger = function () { return jspb.Message.getField(this, 1) != null; }; /** * optional double floating = 2; * @return {number} */ proto.gink.Value.prototype.getFloating = function () { return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); }; /** * @param {number} value * @return {!proto.gink.Value} returns this */ proto.gink.Value.prototype.setFloating = function (value) { return jspb.Message.setOneofField(this, 2, proto.gink.Value.oneofGroups_[0], value); }; /** * Clears the field making it undefined. * @return {!proto.gink.Value} returns this */ proto.gink.Value.prototype.clearFloating = function () { return jspb.Message.setOneofField(this, 2, proto.gink.Value.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.gink.Value.prototype.hasFloating = function () { return jspb.Message.getField(this, 2) != null; }; /** * optional string characters = 3; * @return {string} */ proto.gink.Value.prototype.getCharacters = function () { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.gink.Value} returns this */ proto.gink.Value.prototype.setCharacters = function (value) { return jspb.Message.setOneofField(this, 3, proto.gink.Value.oneofGroups_[0], value); }; /** * Clears the field making it undefined. * @return {!proto.gink.Value} returns this */ proto.gink.Value.prototype.clearCharacters = function () { return jspb.Message.setOneofField(this, 3, proto.gink.Value.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.gink.Value.prototype.hasCharacters = function () { return jspb.Message.getField(this, 3) != null; }; /** * optional Special special = 4; * @return {!proto.gink.Value.Special} */ proto.gink.Value.prototype.getSpecial = function () { return /** @type {!proto.gink.Value.Special} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {!proto.gink.Value.Special} value * @return {!proto.gink.Value} returns this */ proto.gink.Value.prototype.setSpecial = function (value) { return jspb.Message.setOneofField(this, 4, proto.gink.Value.oneofGroups_[0], value); }; /** * Clears the field making it undefined. * @return {!proto.gink.Value} returns this */ proto.gink.Value.prototype.clearSpecial = function () { return jspb.Message.setOneofField(this, 4, proto.gink.Value.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.gink.Value.prototype.hasSpecial = function () { return jspb.Message.getField(this, 4) != null; }; /** * optional int64 timestamp = 5; * @return {number} */ proto.gink.Value.prototype.getTimestamp = function () { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; /** * @param {number} value * @return {!proto.gink.Value} returns this */ proto.gink.Value.prototype.setTimestamp = function (value) { return jspb.Message.setOneofField(this, 5, proto.gink.Value.oneofGroups_[0], value); }; /** * Clears the field making it undefined. * @return {!proto.gink.Value} returns this */ proto.gink.Value.prototype.clearTimestamp = function () { return jspb.Message.setOneofField(this, 5, proto.gink.Value.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.gink.Value.prototype.hasTimestamp = function () { return jspb.Message.getField(this, 5) != null; }; /** * optional Document document = 6; * @return {?proto.gink.Value.Document} */ proto.gink.Value.prototype.getDocument = function () { return /** @type{?proto.gink.Value.Document} */ (jspb.Message.getWrapperField(this, proto.gink.Value.Document, 6)); }; /** * @param {?proto.gink.Value.Document|undefined} value * @return {!proto.gink.Value} returns this */ proto.gink.Value.prototype.setDocument = function (value) { return jspb.Message.setOneofWrapperField(this, 6, proto.gink.Value.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.gink.Value} returns this */ proto.gink.Value.prototype.clearDocument = function () { return this.setDocument(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.gink.Value.prototype.hasDocument = function () { return jspb.Message.getField(this, 6) != null; }; /** * optional Tuple tuple = 7; * @return {?proto.gink.Value.Tuple} */ proto.gink.Value.prototype.getTuple = function () { return /** @type{?proto.gink.Value.Tuple} */ (jspb.Message.getWrapperField(this, proto.gink.Value.Tuple, 7)); }; /** * @param {?proto.gink.Value.Tuple|undefined} value * @return {!proto.gink.Value} returns this */ proto.gink.Value.prototype.setTuple = function (value) { return jspb.Message.setOneofWrapperField(this, 7, proto.gink.Value.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.gink.Value} returns this */ proto.gink.Value.prototype.clearTuple = function () { return this.setTuple(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.gink.Value.prototype.hasTuple = function () { return jspb.Message.getField(this, 7) != null; }; /** * optional bytes octets = 8; * @return {!(string|Uint8Array)} */ proto.gink.Value.prototype.getOctets = function () { return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 8, "")); }; /** * optional bytes octets = 8; * This is a type-conversion wrapper around `getOctets()` * @return {string} */ proto.gink.Value.prototype.getOctets_asB64 = function () { return /** @type {string} */ (jspb.Message.bytesAsB64(this.getOctets())); }; /** * optional bytes octets = 8; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getOctets()` * @return {!Uint8Array} */ proto.gink.Value.prototype.getOctets_asU8 = function () { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getOctets())); }; /** * @param {!(string|Uint8Array)} value * @return {!proto.gink.Value} returns this */ proto.gink.Value.prototype.setOctets = function (value) { return jspb.Message.setOneofField(this, 8, proto.gink.Value.oneofGroups_[0], value); }; /** * Clears the field making it undefined. * @return {!proto.gink.Value} returns this */ proto.gink.Value.prototype.clearOctets = function () { return jspb.Message.setOneofField(this, 8, proto.gink.Value.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.gink.Value.prototype.hasOctets = function () { return jspb.Message.getField(this, 8) != null; }; goog.object.extend(exports, proto.gink); //# sourceMappingURL=value_pb.js.map