id
int32
0
58k
repo
stringlengths
5
67
path
stringlengths
4
116
func_name
stringlengths
0
58
original_string
stringlengths
52
373k
language
stringclasses
1 value
code
stringlengths
52
373k
code_tokens
list
docstring
stringlengths
4
11.8k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
86
226
8,900
easysoft/zui
assets/plupload/plupload.dev.js
normalizeCaps
function normalizeCaps(settings) { var features = settings.required_features, caps = {}; function resolve(feature, value, strict) { // Feature notation is deprecated, use caps (this thing here is required for backward compatibility) var map = { chunks: 'slice_blob', jpgresize: 'send_binary_string', pngresize: 'send_binary_string', progress: 'report_upload_progress', multi_selection: 'select_multiple', dragdrop: 'drag_and_drop', drop_element: 'drag_and_drop', headers: 'send_custom_headers', urlstream_upload: 'send_binary_string', canSendBinary: 'send_binary', triggerDialog: 'summon_file_dialog' }; if (map[feature]) { caps[map[feature]] = value; } else if (!strict) { caps[feature] = value; } } if (typeof(features) === 'string') { plupload.each(features.split(/\s*,\s*/), function(feature) { resolve(feature, true); }); } else if (typeof(features) === 'object') { plupload.each(features, function(value, feature) { resolve(feature, value); }); } else if (features === true) { // check settings for required features if (settings.chunk_size && settings.chunk_size > 0) { caps.slice_blob = true; } if (!plupload.isEmptyObj(settings.resize) || settings.multipart === false) { caps.send_binary_string = true; } if (settings.http_method) { caps.use_http_method = settings.http_method; } plupload.each(settings, function(value, feature) { resolve(feature, !!value, true); // strict check }); } return caps; }
javascript
function normalizeCaps(settings) { var features = settings.required_features, caps = {}; function resolve(feature, value, strict) { // Feature notation is deprecated, use caps (this thing here is required for backward compatibility) var map = { chunks: 'slice_blob', jpgresize: 'send_binary_string', pngresize: 'send_binary_string', progress: 'report_upload_progress', multi_selection: 'select_multiple', dragdrop: 'drag_and_drop', drop_element: 'drag_and_drop', headers: 'send_custom_headers', urlstream_upload: 'send_binary_string', canSendBinary: 'send_binary', triggerDialog: 'summon_file_dialog' }; if (map[feature]) { caps[map[feature]] = value; } else if (!strict) { caps[feature] = value; } } if (typeof(features) === 'string') { plupload.each(features.split(/\s*,\s*/), function(feature) { resolve(feature, true); }); } else if (typeof(features) === 'object') { plupload.each(features, function(value, feature) { resolve(feature, value); }); } else if (features === true) { // check settings for required features if (settings.chunk_size && settings.chunk_size > 0) { caps.slice_blob = true; } if (!plupload.isEmptyObj(settings.resize) || settings.multipart === false) { caps.send_binary_string = true; } if (settings.http_method) { caps.use_http_method = settings.http_method; } plupload.each(settings, function(value, feature) { resolve(feature, !!value, true); // strict check }); } return caps; }
[ "function", "normalizeCaps", "(", "settings", ")", "{", "var", "features", "=", "settings", ".", "required_features", ",", "caps", "=", "{", "}", ";", "function", "resolve", "(", "feature", ",", "value", ",", "strict", ")", "{", "// Feature notation is deprecated, use caps (this thing here is required for backward compatibility)", "var", "map", "=", "{", "chunks", ":", "'slice_blob'", ",", "jpgresize", ":", "'send_binary_string'", ",", "pngresize", ":", "'send_binary_string'", ",", "progress", ":", "'report_upload_progress'", ",", "multi_selection", ":", "'select_multiple'", ",", "dragdrop", ":", "'drag_and_drop'", ",", "drop_element", ":", "'drag_and_drop'", ",", "headers", ":", "'send_custom_headers'", ",", "urlstream_upload", ":", "'send_binary_string'", ",", "canSendBinary", ":", "'send_binary'", ",", "triggerDialog", ":", "'summon_file_dialog'", "}", ";", "if", "(", "map", "[", "feature", "]", ")", "{", "caps", "[", "map", "[", "feature", "]", "]", "=", "value", ";", "}", "else", "if", "(", "!", "strict", ")", "{", "caps", "[", "feature", "]", "=", "value", ";", "}", "}", "if", "(", "typeof", "(", "features", ")", "===", "'string'", ")", "{", "plupload", ".", "each", "(", "features", ".", "split", "(", "/", "\\s*,\\s*", "/", ")", ",", "function", "(", "feature", ")", "{", "resolve", "(", "feature", ",", "true", ")", ";", "}", ")", ";", "}", "else", "if", "(", "typeof", "(", "features", ")", "===", "'object'", ")", "{", "plupload", ".", "each", "(", "features", ",", "function", "(", "value", ",", "feature", ")", "{", "resolve", "(", "feature", ",", "value", ")", ";", "}", ")", ";", "}", "else", "if", "(", "features", "===", "true", ")", "{", "// check settings for required features", "if", "(", "settings", ".", "chunk_size", "&&", "settings", ".", "chunk_size", ">", "0", ")", "{", "caps", ".", "slice_blob", "=", "true", ";", "}", "if", "(", "!", "plupload", ".", "isEmptyObj", "(", "settings", ".", "resize", ")", "||", "settings", ".", "multipart", "===", "false", ")", "{", "caps", ".", "send_binary_string", "=", "true", ";", "}", "if", "(", "settings", ".", "http_method", ")", "{", "caps", ".", "use_http_method", "=", "settings", ".", "http_method", ";", "}", "plupload", ".", "each", "(", "settings", ",", "function", "(", "value", ",", "feature", ")", "{", "resolve", "(", "feature", ",", "!", "!", "value", ",", "true", ")", ";", "// strict check", "}", ")", ";", "}", "return", "caps", ";", "}" ]
convert plupload features to caps acceptable by mOxie
[ "convert", "plupload", "features", "to", "caps", "acceptable", "by", "mOxie" ]
a5af01d76e9481d618d6abd3e873a8ee7e49c59f
https://github.com/easysoft/zui/blob/a5af01d76e9481d618d6abd3e873a8ee7e49c59f/assets/plupload/plupload.dev.js#L46-L100
8,901
easysoft/zui
assets/plupload/plupload.dev.js
function(str) { var xmlEncodeChars = {'<' : 'lt', '>' : 'gt', '&' : 'amp', '"' : 'quot', '\'' : '#39'}, xmlEncodeRegExp = /[<>&\"\']/g; return str ? ('' + str).replace(xmlEncodeRegExp, function(chr) { return xmlEncodeChars[chr] ? '&' + xmlEncodeChars[chr] + ';' : chr; }) : str; }
javascript
function(str) { var xmlEncodeChars = {'<' : 'lt', '>' : 'gt', '&' : 'amp', '"' : 'quot', '\'' : '#39'}, xmlEncodeRegExp = /[<>&\"\']/g; return str ? ('' + str).replace(xmlEncodeRegExp, function(chr) { return xmlEncodeChars[chr] ? '&' + xmlEncodeChars[chr] + ';' : chr; }) : str; }
[ "function", "(", "str", ")", "{", "var", "xmlEncodeChars", "=", "{", "'<'", ":", "'lt'", ",", "'>'", ":", "'gt'", ",", "'&'", ":", "'amp'", ",", "'\"'", ":", "'quot'", ",", "'\\''", ":", "'#39'", "}", ",", "xmlEncodeRegExp", "=", "/", "[<>&\\\"\\']", "/", "g", ";", "return", "str", "?", "(", "''", "+", "str", ")", ".", "replace", "(", "xmlEncodeRegExp", ",", "function", "(", "chr", ")", "{", "return", "xmlEncodeChars", "[", "chr", "]", "?", "'&'", "+", "xmlEncodeChars", "[", "chr", "]", "+", "';'", ":", "chr", ";", "}", ")", ":", "str", ";", "}" ]
Encodes the specified string. @method xmlEncode @static @param {String} s String to encode. @return {String} Encoded string.
[ "Encodes", "the", "specified", "string", "." ]
a5af01d76e9481d618d6abd3e873a8ee7e49c59f
https://github.com/easysoft/zui/blob/a5af01d76e9481d618d6abd3e873a8ee7e49c59f/assets/plupload/plupload.dev.js#L404-L410
8,902
easysoft/zui
assets/plupload/plupload.dev.js
function(url, items) { var query = ''; plupload.each(items, function(value, name) { query += (query ? '&' : '') + encodeURIComponent(name) + '=' + encodeURIComponent(value); }); if (query) { url += (url.indexOf('?') > 0 ? '&' : '?') + query; } return url; }
javascript
function(url, items) { var query = ''; plupload.each(items, function(value, name) { query += (query ? '&' : '') + encodeURIComponent(name) + '=' + encodeURIComponent(value); }); if (query) { url += (url.indexOf('?') > 0 ? '&' : '?') + query; } return url; }
[ "function", "(", "url", ",", "items", ")", "{", "var", "query", "=", "''", ";", "plupload", ".", "each", "(", "items", ",", "function", "(", "value", ",", "name", ")", "{", "query", "+=", "(", "query", "?", "'&'", ":", "''", ")", "+", "encodeURIComponent", "(", "name", ")", "+", "'='", "+", "encodeURIComponent", "(", "value", ")", ";", "}", ")", ";", "if", "(", "query", ")", "{", "url", "+=", "(", "url", ".", "indexOf", "(", "'?'", ")", ">", "0", "?", "'&'", ":", "'?'", ")", "+", "query", ";", "}", "return", "url", ";", "}" ]
Builds a full url out of a base URL and an object with items to append as query string items. @method buildUrl @static @param {String} url Base URL to append query string items to. @param {Object} items Name/value object to serialize as a querystring. @return {String} String with url + serialized query string items.
[ "Builds", "a", "full", "url", "out", "of", "a", "base", "URL", "and", "an", "object", "with", "items", "to", "append", "as", "query", "string", "items", "." ]
a5af01d76e9481d618d6abd3e873a8ee7e49c59f
https://github.com/easysoft/zui/blob/a5af01d76e9481d618d6abd3e873a8ee7e49c59f/assets/plupload/plupload.dev.js#L604-L616
8,903
easysoft/zui
assets/plupload/plupload.dev.js
function(size) { if (size === undef || /\D/.test(size)) { return plupload.translate('N/A'); } function round(num, precision) { return Math.round(num * Math.pow(10, precision)) / Math.pow(10, precision); } var boundary = Math.pow(1024, 4); // TB if (size > boundary) { return round(size / boundary, 1) + " " + plupload.translate('tb'); } // GB if (size > (boundary/=1024)) { return round(size / boundary, 1) + " " + plupload.translate('gb'); } // MB if (size > (boundary/=1024)) { return round(size / boundary, 1) + " " + plupload.translate('mb'); } // KB if (size > 1024) { return Math.round(size / 1024) + " " + plupload.translate('kb'); } return size + " " + plupload.translate('b'); }
javascript
function(size) { if (size === undef || /\D/.test(size)) { return plupload.translate('N/A'); } function round(num, precision) { return Math.round(num * Math.pow(10, precision)) / Math.pow(10, precision); } var boundary = Math.pow(1024, 4); // TB if (size > boundary) { return round(size / boundary, 1) + " " + plupload.translate('tb'); } // GB if (size > (boundary/=1024)) { return round(size / boundary, 1) + " " + plupload.translate('gb'); } // MB if (size > (boundary/=1024)) { return round(size / boundary, 1) + " " + plupload.translate('mb'); } // KB if (size > 1024) { return Math.round(size / 1024) + " " + plupload.translate('kb'); } return size + " " + plupload.translate('b'); }
[ "function", "(", "size", ")", "{", "if", "(", "size", "===", "undef", "||", "/", "\\D", "/", ".", "test", "(", "size", ")", ")", "{", "return", "plupload", ".", "translate", "(", "'N/A'", ")", ";", "}", "function", "round", "(", "num", ",", "precision", ")", "{", "return", "Math", ".", "round", "(", "num", "*", "Math", ".", "pow", "(", "10", ",", "precision", ")", ")", "/", "Math", ".", "pow", "(", "10", ",", "precision", ")", ";", "}", "var", "boundary", "=", "Math", ".", "pow", "(", "1024", ",", "4", ")", ";", "// TB", "if", "(", "size", ">", "boundary", ")", "{", "return", "round", "(", "size", "/", "boundary", ",", "1", ")", "+", "\" \"", "+", "plupload", ".", "translate", "(", "'tb'", ")", ";", "}", "// GB", "if", "(", "size", ">", "(", "boundary", "/=", "1024", ")", ")", "{", "return", "round", "(", "size", "/", "boundary", ",", "1", ")", "+", "\" \"", "+", "plupload", ".", "translate", "(", "'gb'", ")", ";", "}", "// MB", "if", "(", "size", ">", "(", "boundary", "/=", "1024", ")", ")", "{", "return", "round", "(", "size", "/", "boundary", ",", "1", ")", "+", "\" \"", "+", "plupload", ".", "translate", "(", "'mb'", ")", ";", "}", "// KB", "if", "(", "size", ">", "1024", ")", "{", "return", "Math", ".", "round", "(", "size", "/", "1024", ")", "+", "\" \"", "+", "plupload", ".", "translate", "(", "'kb'", ")", ";", "}", "return", "size", "+", "\" \"", "+", "plupload", ".", "translate", "(", "'b'", ")", ";", "}" ]
Formats the specified number as a size string for example 1024 becomes 1 KB. @method formatSize @static @param {Number} size Size to format as string. @return {String} Formatted size string.
[ "Formats", "the", "specified", "number", "as", "a", "size", "string", "for", "example", "1024", "becomes", "1", "KB", "." ]
a5af01d76e9481d618d6abd3e873a8ee7e49c59f
https://github.com/easysoft/zui/blob/a5af01d76e9481d618d6abd3e873a8ee7e49c59f/assets/plupload/plupload.dev.js#L626-L659
8,904
easysoft/zui
assets/plupload/plupload.dev.js
onBeforeUpload
function onBeforeUpload(up, file) { // Generate unique target filenames if (up.settings.unique_names) { var matches = file.name.match(/\.([^.]+)$/), ext = "part"; if (matches) { ext = matches[1]; } file.target_name = file.id + '.' + ext; } }
javascript
function onBeforeUpload(up, file) { // Generate unique target filenames if (up.settings.unique_names) { var matches = file.name.match(/\.([^.]+)$/), ext = "part"; if (matches) { ext = matches[1]; } file.target_name = file.id + '.' + ext; } }
[ "function", "onBeforeUpload", "(", "up", ",", "file", ")", "{", "// Generate unique target filenames", "if", "(", "up", ".", "settings", ".", "unique_names", ")", "{", "var", "matches", "=", "file", ".", "name", ".", "match", "(", "/", "\\.([^.]+)$", "/", ")", ",", "ext", "=", "\"part\"", ";", "if", "(", "matches", ")", "{", "ext", "=", "matches", "[", "1", "]", ";", "}", "file", ".", "target_name", "=", "file", ".", "id", "+", "'.'", "+", "ext", ";", "}", "}" ]
Internal event handlers
[ "Internal", "event", "handlers" ]
a5af01d76e9481d618d6abd3e873a8ee7e49c59f
https://github.com/easysoft/zui/blob/a5af01d76e9481d618d6abd3e873a8ee7e49c59f/assets/plupload/plupload.dev.js#L1436-L1445
8,905
easysoft/zui
assets/plupload/plupload.dev.js
function(id) { var i; for (i = files.length - 1; i >= 0; i--) { if (files[i].id === id) { return files[i]; } } }
javascript
function(id) { var i; for (i = files.length - 1; i >= 0; i--) { if (files[i].id === id) { return files[i]; } } }
[ "function", "(", "id", ")", "{", "var", "i", ";", "for", "(", "i", "=", "files", ".", "length", "-", "1", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "if", "(", "files", "[", "i", "]", ".", "id", "===", "id", ")", "{", "return", "files", "[", "i", "]", ";", "}", "}", "}" ]
Returns the specified file object by id. @method getFile @param {String} id File id to look for. @return {plupload.File} File object or undefined if it wasn't found;
[ "Returns", "the", "specified", "file", "object", "by", "id", "." ]
a5af01d76e9481d618d6abd3e873a8ee7e49c59f
https://github.com/easysoft/zui/blob/a5af01d76e9481d618d6abd3e873a8ee7e49c59f/assets/plupload/plupload.dev.js#L2005-L2012
8,906
easysoft/zui
assets/plupload/plupload.dev.js
function(file) { var id = typeof(file) === 'string' ? file : file.id; for (var i = files.length - 1; i >= 0; i--) { if (files[i].id === id) { return this.splice(i, 1)[0]; } } }
javascript
function(file) { var id = typeof(file) === 'string' ? file : file.id; for (var i = files.length - 1; i >= 0; i--) { if (files[i].id === id) { return this.splice(i, 1)[0]; } } }
[ "function", "(", "file", ")", "{", "var", "id", "=", "typeof", "(", "file", ")", "===", "'string'", "?", "file", ":", "file", ".", "id", ";", "for", "(", "var", "i", "=", "files", ".", "length", "-", "1", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "if", "(", "files", "[", "i", "]", ".", "id", "===", "id", ")", "{", "return", "this", ".", "splice", "(", "i", ",", "1", ")", "[", "0", "]", ";", "}", "}", "}" ]
Removes a specific file. @method removeFile @param {plupload.File|String} file File to remove from queue.
[ "Removes", "a", "specific", "file", "." ]
a5af01d76e9481d618d6abd3e873a8ee7e49c59f
https://github.com/easysoft/zui/blob/a5af01d76e9481d618d6abd3e873a8ee7e49c59f/assets/plupload/plupload.dev.js#L2126-L2134
8,907
easysoft/zui
assets/plupload/plupload.dev.js
function(start, length) { // Splice and trigger events var removed = files.splice(start === undef ? 0 : start, length === undef ? files.length : length); // if upload is in progress we need to stop it and restart after files are removed var restartRequired = false; if (this.state == plupload.STARTED) { // upload in progress plupload.each(removed, function(file) { if (file.status === plupload.UPLOADING) { restartRequired = true; // do not restart, unless file that is being removed is uploading return false; } }); if (restartRequired) { this.stop(); } } this.trigger("FilesRemoved", removed); // Dispose any resources allocated by those files plupload.each(removed, function(file) { file.destroy(); }); if (restartRequired) { this.start(); } return removed; }
javascript
function(start, length) { // Splice and trigger events var removed = files.splice(start === undef ? 0 : start, length === undef ? files.length : length); // if upload is in progress we need to stop it and restart after files are removed var restartRequired = false; if (this.state == plupload.STARTED) { // upload in progress plupload.each(removed, function(file) { if (file.status === plupload.UPLOADING) { restartRequired = true; // do not restart, unless file that is being removed is uploading return false; } }); if (restartRequired) { this.stop(); } } this.trigger("FilesRemoved", removed); // Dispose any resources allocated by those files plupload.each(removed, function(file) { file.destroy(); }); if (restartRequired) { this.start(); } return removed; }
[ "function", "(", "start", ",", "length", ")", "{", "// Splice and trigger events", "var", "removed", "=", "files", ".", "splice", "(", "start", "===", "undef", "?", "0", ":", "start", ",", "length", "===", "undef", "?", "files", ".", "length", ":", "length", ")", ";", "// if upload is in progress we need to stop it and restart after files are removed", "var", "restartRequired", "=", "false", ";", "if", "(", "this", ".", "state", "==", "plupload", ".", "STARTED", ")", "{", "// upload in progress", "plupload", ".", "each", "(", "removed", ",", "function", "(", "file", ")", "{", "if", "(", "file", ".", "status", "===", "plupload", ".", "UPLOADING", ")", "{", "restartRequired", "=", "true", ";", "// do not restart, unless file that is being removed is uploading", "return", "false", ";", "}", "}", ")", ";", "if", "(", "restartRequired", ")", "{", "this", ".", "stop", "(", ")", ";", "}", "}", "this", ".", "trigger", "(", "\"FilesRemoved\"", ",", "removed", ")", ";", "// Dispose any resources allocated by those files", "plupload", ".", "each", "(", "removed", ",", "function", "(", "file", ")", "{", "file", ".", "destroy", "(", ")", ";", "}", ")", ";", "if", "(", "restartRequired", ")", "{", "this", ".", "start", "(", ")", ";", "}", "return", "removed", ";", "}" ]
Removes part of the queue and returns the files removed. This will also trigger the FilesRemoved and QueueChanged events. @method splice @param {Number} [start=0] Start index to remove from. @param {Number} [length] Number of files to remove (defaults to number of files in the queue). @return {Array} Array of files that was removed.
[ "Removes", "part", "of", "the", "queue", "and", "returns", "the", "files", "removed", ".", "This", "will", "also", "trigger", "the", "FilesRemoved", "and", "QueueChanged", "events", "." ]
a5af01d76e9481d618d6abd3e873a8ee7e49c59f
https://github.com/easysoft/zui/blob/a5af01d76e9481d618d6abd3e873a8ee7e49c59f/assets/plupload/plupload.dev.js#L2145-L2176
8,908
easysoft/zui
assets/plupload/plupload.dev.js
function(type) { var list, args, result; type = type.toLowerCase(); list = this.hasEventListener(type); if (list) { // sort event list by priority list.sort(function(a, b) { return b.priority - a.priority; }); // first argument should be current plupload.Uploader instance args = [].slice.call(arguments); args.shift(); args.unshift(this); for (var i = 0; i < list.length; i++) { // Fire event, break chain if false is returned if (list[i].fn.apply(list[i].scope, args) === false) { return false; } } } return true; }
javascript
function(type) { var list, args, result; type = type.toLowerCase(); list = this.hasEventListener(type); if (list) { // sort event list by priority list.sort(function(a, b) { return b.priority - a.priority; }); // first argument should be current plupload.Uploader instance args = [].slice.call(arguments); args.shift(); args.unshift(this); for (var i = 0; i < list.length; i++) { // Fire event, break chain if false is returned if (list[i].fn.apply(list[i].scope, args) === false) { return false; } } } return true; }
[ "function", "(", "type", ")", "{", "var", "list", ",", "args", ",", "result", ";", "type", "=", "type", ".", "toLowerCase", "(", ")", ";", "list", "=", "this", ".", "hasEventListener", "(", "type", ")", ";", "if", "(", "list", ")", "{", "// sort event list by priority", "list", ".", "sort", "(", "function", "(", "a", ",", "b", ")", "{", "return", "b", ".", "priority", "-", "a", ".", "priority", ";", "}", ")", ";", "// first argument should be current plupload.Uploader instance", "args", "=", "[", "]", ".", "slice", ".", "call", "(", "arguments", ")", ";", "args", ".", "shift", "(", ")", ";", "args", ".", "unshift", "(", "this", ")", ";", "for", "(", "var", "i", "=", "0", ";", "i", "<", "list", ".", "length", ";", "i", "++", ")", "{", "// Fire event, break chain if false is returned", "if", "(", "list", "[", "i", "]", ".", "fn", ".", "apply", "(", "list", "[", "i", "]", ".", "scope", ",", "args", ")", "===", "false", ")", "{", "return", "false", ";", "}", "}", "}", "return", "true", ";", "}" ]
Dispatches the specified event name and its arguments to all listeners. @method trigger @param {String} name Event name to fire. @param {Object..} Multiple arguments to pass along to the listener functions. override the parent method to match Plupload-like event logic
[ "Dispatches", "the", "specified", "event", "name", "and", "its", "arguments", "to", "all", "listeners", "." ]
a5af01d76e9481d618d6abd3e873a8ee7e49c59f
https://github.com/easysoft/zui/blob/a5af01d76e9481d618d6abd3e873a8ee7e49c59f/assets/plupload/plupload.dev.js#L2187-L2211
8,909
easysoft/zui
assets/plupload/plupload.dev.js
function() { var file = this.getSource().getSource(); return plupload.inArray(plupload.typeOf(file), ['blob', 'file']) !== -1 ? file : null; }
javascript
function() { var file = this.getSource().getSource(); return plupload.inArray(plupload.typeOf(file), ['blob', 'file']) !== -1 ? file : null; }
[ "function", "(", ")", "{", "var", "file", "=", "this", ".", "getSource", "(", ")", ".", "getSource", "(", ")", ";", "return", "plupload", ".", "inArray", "(", "plupload", ".", "typeOf", "(", "file", ")", ",", "[", "'blob'", ",", "'file'", "]", ")", "!==", "-", "1", "?", "file", ":", "null", ";", "}" ]
Returns native window.File object, when it's available. @method getNative @return {window.File} or null, if plupload.File is of different origin
[ "Returns", "native", "window", ".", "File", "object", "when", "it", "s", "available", "." ]
a5af01d76e9481d618d6abd3e873a8ee7e49c59f
https://github.com/easysoft/zui/blob/a5af01d76e9481d618d6abd3e873a8ee7e49c59f/assets/plupload/plupload.dev.js#L2379-L2382
8,910
easysoft/zui
dist/lib/selectable/zui.selectable.js
function(element, options) { this.name = name; this.$ = $(element); this.id = $.zui.uuid(); this.selectOrder = 1; this.selections = {}; this.getOptions(options); this._init(); }
javascript
function(element, options) { this.name = name; this.$ = $(element); this.id = $.zui.uuid(); this.selectOrder = 1; this.selections = {}; this.getOptions(options); this._init(); }
[ "function", "(", "element", ",", "options", ")", "{", "this", ".", "name", "=", "name", ";", "this", ".", "$", "=", "$", "(", "element", ")", ";", "this", ".", "id", "=", "$", ".", "zui", ".", "uuid", "(", ")", ";", "this", ".", "selectOrder", "=", "1", ";", "this", ".", "selections", "=", "{", "}", ";", "this", ".", "getOptions", "(", "options", ")", ";", "this", ".", "_init", "(", ")", ";", "}" ]
module name The selectable modal class
[ "module", "name", "The", "selectable", "modal", "class" ]
a5af01d76e9481d618d6abd3e873a8ee7e49c59f
https://github.com/easysoft/zui/blob/a5af01d76e9481d618d6abd3e873a8ee7e49c59f/dist/lib/selectable/zui.selectable.js#L22-L31
8,911
popeindustries/lit-html-server
src/template.js
getTagState
function getTagState(string) { for (let i = string.length - 1; i >= 0; i--) { const char = string[i]; if (char === '>') { return 0; } else if (char === '<') { return 1; } } return -1; }
javascript
function getTagState(string) { for (let i = string.length - 1; i >= 0; i--) { const char = string[i]; if (char === '>') { return 0; } else if (char === '<') { return 1; } } return -1; }
[ "function", "getTagState", "(", "string", ")", "{", "for", "(", "let", "i", "=", "string", ".", "length", "-", "1", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "const", "char", "=", "string", "[", "i", "]", ";", "if", "(", "char", "===", "'>'", ")", "{", "return", "0", ";", "}", "else", "if", "(", "char", "===", "'<'", ")", "{", "return", "1", ";", "}", "}", "return", "-", "1", ";", "}" ]
Determine if 'string' terminates with an opened or closed tag. Iterating through all characters has at worst a time complexity of O(n), and is better than the alternative (using "indexOf/lastIndexOf") which is potentially O(2n). @param { string } string @returns { number } - returns "-1" if no tag, "0" if closed tag, or "1" if open tag
[ "Determine", "if", "string", "terminates", "with", "an", "opened", "or", "closed", "tag", "." ]
ad5cd24db5bd1352b7af6fc0543947a7711056d4
https://github.com/popeindustries/lit-html-server/blob/ad5cd24db5bd1352b7af6fc0543947a7711056d4/src/template.js#L123-L135
8,912
popeindustries/lit-html-server
src/directives/unsafe-html.js
unsafeHTMLDirective
function unsafeHTMLDirective(value) { return function(part) { if (!isNodePart(part)) { throw Error('The `unsafeHTML` directive can only be used in text nodes'); } part.setValue(`${unsafePrefixString}${value}`); }; }
javascript
function unsafeHTMLDirective(value) { return function(part) { if (!isNodePart(part)) { throw Error('The `unsafeHTML` directive can only be used in text nodes'); } part.setValue(`${unsafePrefixString}${value}`); }; }
[ "function", "unsafeHTMLDirective", "(", "value", ")", "{", "return", "function", "(", "part", ")", "{", "if", "(", "!", "isNodePart", "(", "part", ")", ")", "{", "throw", "Error", "(", "'The `unsafeHTML` directive can only be used in text nodes'", ")", ";", "}", "part", ".", "setValue", "(", "`", "${", "unsafePrefixString", "}", "${", "value", "}", "`", ")", ";", "}", ";", "}" ]
Render "value" without HTML escaping @param { string } value @returns { (part: NodePart) => void }
[ "Render", "value", "without", "HTML", "escaping" ]
ad5cd24db5bd1352b7af6fc0543947a7711056d4
https://github.com/popeindustries/lit-html-server/blob/ad5cd24db5bd1352b7af6fc0543947a7711056d4/src/directives/unsafe-html.js#L11-L18
8,913
popeindustries/lit-html-server
src/template-result.js
reduce
function reduce(buffer, chunks, chunk, deep = false) { if (Buffer.isBuffer(chunk)) { return Buffer.concat([buffer, chunk], buffer.length + chunk.length); } else if (isTemplateResult(chunk)) { if (deep) { return reduce(buffer, chunks, chunk.read(deep), deep); } else { chunks.push(buffer, chunk); return emptyStringBuffer; } } else if (Array.isArray(chunk)) { return chunk.reduce((buffer, chunk) => reduce(buffer, chunks, chunk), buffer); } else if (isPromise(chunk) || isAsyncIterator(chunk)) { chunks.push(buffer, chunk); return emptyStringBuffer; } }
javascript
function reduce(buffer, chunks, chunk, deep = false) { if (Buffer.isBuffer(chunk)) { return Buffer.concat([buffer, chunk], buffer.length + chunk.length); } else if (isTemplateResult(chunk)) { if (deep) { return reduce(buffer, chunks, chunk.read(deep), deep); } else { chunks.push(buffer, chunk); return emptyStringBuffer; } } else if (Array.isArray(chunk)) { return chunk.reduce((buffer, chunk) => reduce(buffer, chunks, chunk), buffer); } else if (isPromise(chunk) || isAsyncIterator(chunk)) { chunks.push(buffer, chunk); return emptyStringBuffer; } }
[ "function", "reduce", "(", "buffer", ",", "chunks", ",", "chunk", ",", "deep", "=", "false", ")", "{", "if", "(", "Buffer", ".", "isBuffer", "(", "chunk", ")", ")", "{", "return", "Buffer", ".", "concat", "(", "[", "buffer", ",", "chunk", "]", ",", "buffer", ".", "length", "+", "chunk", ".", "length", ")", ";", "}", "else", "if", "(", "isTemplateResult", "(", "chunk", ")", ")", "{", "if", "(", "deep", ")", "{", "return", "reduce", "(", "buffer", ",", "chunks", ",", "chunk", ".", "read", "(", "deep", ")", ",", "deep", ")", ";", "}", "else", "{", "chunks", ".", "push", "(", "buffer", ",", "chunk", ")", ";", "return", "emptyStringBuffer", ";", "}", "}", "else", "if", "(", "Array", ".", "isArray", "(", "chunk", ")", ")", "{", "return", "chunk", ".", "reduce", "(", "(", "buffer", ",", "chunk", ")", "=>", "reduce", "(", "buffer", ",", "chunks", ",", "chunk", ")", ",", "buffer", ")", ";", "}", "else", "if", "(", "isPromise", "(", "chunk", ")", "||", "isAsyncIterator", "(", "chunk", ")", ")", "{", "chunks", ".", "push", "(", "buffer", ",", "chunk", ")", ";", "return", "emptyStringBuffer", ";", "}", "}" ]
Commit "chunk" to string "buffer". Returns new "buffer" value. @param { Buffer } buffer @param { Array<any> } chunks @param { any } chunk @param { boolean } [deep] @returns { Buffer }
[ "Commit", "chunk", "to", "string", "buffer", ".", "Returns", "new", "buffer", "value", "." ]
ad5cd24db5bd1352b7af6fc0543947a7711056d4
https://github.com/popeindustries/lit-html-server/blob/ad5cd24db5bd1352b7af6fc0543947a7711056d4/src/template-result.js#L167-L183
8,914
popeindustries/lit-html-server
src/directives/repeat.js
repeatDirective
function repeatDirective(items, keyFnOrTemplate, template) { if (template === undefined) { template = keyFnOrTemplate; } return function(part) { part.setValue(items.map((item, index) => template(item, index))); }; }
javascript
function repeatDirective(items, keyFnOrTemplate, template) { if (template === undefined) { template = keyFnOrTemplate; } return function(part) { part.setValue(items.map((item, index) => template(item, index))); }; }
[ "function", "repeatDirective", "(", "items", ",", "keyFnOrTemplate", ",", "template", ")", "{", "if", "(", "template", "===", "undefined", ")", "{", "template", "=", "keyFnOrTemplate", ";", "}", "return", "function", "(", "part", ")", "{", "part", ".", "setValue", "(", "items", ".", "map", "(", "(", "item", ",", "index", ")", "=>", "template", "(", "item", ",", "index", ")", ")", ")", ";", "}", ";", "}" ]
Loop through 'items' and call 'template'. No concept of efficient re-ordering possible in server context, so this is a simple no-op map operation. @param { Array<any> } items @param { function } keyFnOrTemplate @param { (item: any, index: number) => TemplateResult } [template] @returns { (part: Part) => void }
[ "Loop", "through", "items", "and", "call", "template", ".", "No", "concept", "of", "efficient", "re", "-", "ordering", "possible", "in", "server", "context", "so", "this", "is", "a", "simple", "no", "-", "op", "map", "operation", "." ]
ad5cd24db5bd1352b7af6fc0543947a7711056d4
https://github.com/popeindustries/lit-html-server/blob/ad5cd24db5bd1352b7af6fc0543947a7711056d4/src/directives/repeat.js#L15-L23
8,915
popeindustries/lit-html-server
src/default-template-result-processor.js
getTemplateResultChunk
function getTemplateResultChunk(result, stack) { let chunk = result.readChunk(); // Skip empty strings if (Buffer.isBuffer(chunk) && chunk.length === 0) { chunk = result.readChunk(); } // Finished reading, dispose if (chunk === null) { stack.shift(); } else if (isTemplateResult(chunk)) { // Add to top of stack stack.unshift(chunk); chunk = getTemplateResultChunk(chunk, stack); } return chunk; }
javascript
function getTemplateResultChunk(result, stack) { let chunk = result.readChunk(); // Skip empty strings if (Buffer.isBuffer(chunk) && chunk.length === 0) { chunk = result.readChunk(); } // Finished reading, dispose if (chunk === null) { stack.shift(); } else if (isTemplateResult(chunk)) { // Add to top of stack stack.unshift(chunk); chunk = getTemplateResultChunk(chunk, stack); } return chunk; }
[ "function", "getTemplateResultChunk", "(", "result", ",", "stack", ")", "{", "let", "chunk", "=", "result", ".", "readChunk", "(", ")", ";", "// Skip empty strings", "if", "(", "Buffer", ".", "isBuffer", "(", "chunk", ")", "&&", "chunk", ".", "length", "===", "0", ")", "{", "chunk", "=", "result", ".", "readChunk", "(", ")", ";", "}", "// Finished reading, dispose", "if", "(", "chunk", "===", "null", ")", "{", "stack", ".", "shift", "(", ")", ";", "}", "else", "if", "(", "isTemplateResult", "(", "chunk", ")", ")", "{", "// Add to top of stack", "stack", ".", "unshift", "(", "chunk", ")", ";", "chunk", "=", "getTemplateResultChunk", "(", "chunk", ",", "stack", ")", ";", "}", "return", "chunk", ";", "}" ]
Retrieve next chunk from "result". Adds nested TemplateResults to the stack if necessary. @param { TemplateResult } result @param { Array<any> } stack
[ "Retrieve", "next", "chunk", "from", "result", ".", "Adds", "nested", "TemplateResults", "to", "the", "stack", "if", "necessary", "." ]
ad5cd24db5bd1352b7af6fc0543947a7711056d4
https://github.com/popeindustries/lit-html-server/blob/ad5cd24db5bd1352b7af6fc0543947a7711056d4/src/default-template-result-processor.js#L164-L182
8,916
popeindustries/lit-html-server
src/directives/class-map.js
classMapDirective
function classMapDirective(classInfo) { return function(part) { if (!isAttributePart(part) || part.name !== 'class') { throw Error('The `classMap` directive can only be used in the `class` attribute'); } let value = ''; for (const key in classInfo) { if (classInfo[key]) { value += `${value.length ? ' ' : ''}${key}`; } } part.setValue(value); }; }
javascript
function classMapDirective(classInfo) { return function(part) { if (!isAttributePart(part) || part.name !== 'class') { throw Error('The `classMap` directive can only be used in the `class` attribute'); } let value = ''; for (const key in classInfo) { if (classInfo[key]) { value += `${value.length ? ' ' : ''}${key}`; } } part.setValue(value); }; }
[ "function", "classMapDirective", "(", "classInfo", ")", "{", "return", "function", "(", "part", ")", "{", "if", "(", "!", "isAttributePart", "(", "part", ")", "||", "part", ".", "name", "!==", "'class'", ")", "{", "throw", "Error", "(", "'The `classMap` directive can only be used in the `class` attribute'", ")", ";", "}", "let", "value", "=", "''", ";", "for", "(", "const", "key", "in", "classInfo", ")", "{", "if", "(", "classInfo", "[", "key", "]", ")", "{", "value", "+=", "`", "${", "value", ".", "length", "?", "' '", ":", "''", "}", "${", "key", "}", "`", ";", "}", "}", "part", ".", "setValue", "(", "value", ")", ";", "}", ";", "}" ]
Applies CSS classes, where'classInfo' keys are added as class names if values are truthy. Only applies to 'class' attribute. @param { object } classInfo @returns { (part: AttributePart) => void }
[ "Applies", "CSS", "classes", "where", "classInfo", "keys", "are", "added", "as", "class", "names", "if", "values", "are", "truthy", ".", "Only", "applies", "to", "class", "attribute", "." ]
ad5cd24db5bd1352b7af6fc0543947a7711056d4
https://github.com/popeindustries/lit-html-server/blob/ad5cd24db5bd1352b7af6fc0543947a7711056d4/src/directives/class-map.js#L12-L28
8,917
popeindustries/lit-html-server
src/directives/if-defined.js
ifDefinedDirective
function ifDefinedDirective(value) { return function(part) { if (value === undefined && isAttributePart(part)) { return part.setValue(nothingString); } part.setValue(value); }; }
javascript
function ifDefinedDirective(value) { return function(part) { if (value === undefined && isAttributePart(part)) { return part.setValue(nothingString); } part.setValue(value); }; }
[ "function", "ifDefinedDirective", "(", "value", ")", "{", "return", "function", "(", "part", ")", "{", "if", "(", "value", "===", "undefined", "&&", "isAttributePart", "(", "part", ")", ")", "{", "return", "part", ".", "setValue", "(", "nothingString", ")", ";", "}", "part", ".", "setValue", "(", "value", ")", ";", "}", ";", "}" ]
Sets the attribute if 'value' is defined, removes the attribute if undefined. @param { any } value @returns { (part: AttributePart) => void }
[ "Sets", "the", "attribute", "if", "value", "is", "defined", "removes", "the", "attribute", "if", "undefined", "." ]
ad5cd24db5bd1352b7af6fc0543947a7711056d4
https://github.com/popeindustries/lit-html-server/blob/ad5cd24db5bd1352b7af6fc0543947a7711056d4/src/directives/if-defined.js#L12-L19
8,918
popeindustries/lit-html-server
src/parts.js
resolveAttributeValue
function resolveAttributeValue(value, part) { if (isDirective(value)) { value = resolveDirectiveValue(value, part); } if (value === nothingString) { return value; } if (isTemplateResult(value)) { value = value.read(); } if (isPrimitive(value)) { const string = typeof value !== 'string' ? String(value) : value; // Escape if not prefixed with unsafePrefixString, otherwise strip prefix return Buffer.from( string.indexOf(unsafePrefixString) === 0 ? string.slice(33) : escapeHTML(string) ); } else if (Buffer.isBuffer(value)) { return value; } else if (isPromise(value)) { return value.then((value) => resolveAttributeValue(value, part)); } else if (isSyncIterator(value)) { if (!Array.isArray(value)) { value = Array.from(value); } return Buffer.concat( value.reduce((values, value) => { value = resolveAttributeValue(value, part); // Flatten if (Array.isArray(value)) { return values.concat(value); } values.push(value); return values; }, []) ); } else { throw Error('unknown AttributPart value', value); } }
javascript
function resolveAttributeValue(value, part) { if (isDirective(value)) { value = resolveDirectiveValue(value, part); } if (value === nothingString) { return value; } if (isTemplateResult(value)) { value = value.read(); } if (isPrimitive(value)) { const string = typeof value !== 'string' ? String(value) : value; // Escape if not prefixed with unsafePrefixString, otherwise strip prefix return Buffer.from( string.indexOf(unsafePrefixString) === 0 ? string.slice(33) : escapeHTML(string) ); } else if (Buffer.isBuffer(value)) { return value; } else if (isPromise(value)) { return value.then((value) => resolveAttributeValue(value, part)); } else if (isSyncIterator(value)) { if (!Array.isArray(value)) { value = Array.from(value); } return Buffer.concat( value.reduce((values, value) => { value = resolveAttributeValue(value, part); // Flatten if (Array.isArray(value)) { return values.concat(value); } values.push(value); return values; }, []) ); } else { throw Error('unknown AttributPart value', value); } }
[ "function", "resolveAttributeValue", "(", "value", ",", "part", ")", "{", "if", "(", "isDirective", "(", "value", ")", ")", "{", "value", "=", "resolveDirectiveValue", "(", "value", ",", "part", ")", ";", "}", "if", "(", "value", "===", "nothingString", ")", "{", "return", "value", ";", "}", "if", "(", "isTemplateResult", "(", "value", ")", ")", "{", "value", "=", "value", ".", "read", "(", ")", ";", "}", "if", "(", "isPrimitive", "(", "value", ")", ")", "{", "const", "string", "=", "typeof", "value", "!==", "'string'", "?", "String", "(", "value", ")", ":", "value", ";", "// Escape if not prefixed with unsafePrefixString, otherwise strip prefix", "return", "Buffer", ".", "from", "(", "string", ".", "indexOf", "(", "unsafePrefixString", ")", "===", "0", "?", "string", ".", "slice", "(", "33", ")", ":", "escapeHTML", "(", "string", ")", ")", ";", "}", "else", "if", "(", "Buffer", ".", "isBuffer", "(", "value", ")", ")", "{", "return", "value", ";", "}", "else", "if", "(", "isPromise", "(", "value", ")", ")", "{", "return", "value", ".", "then", "(", "(", "value", ")", "=>", "resolveAttributeValue", "(", "value", ",", "part", ")", ")", ";", "}", "else", "if", "(", "isSyncIterator", "(", "value", ")", ")", "{", "if", "(", "!", "Array", ".", "isArray", "(", "value", ")", ")", "{", "value", "=", "Array", ".", "from", "(", "value", ")", ";", "}", "return", "Buffer", ".", "concat", "(", "value", ".", "reduce", "(", "(", "values", ",", "value", ")", "=>", "{", "value", "=", "resolveAttributeValue", "(", "value", ",", "part", ")", ";", "// Flatten", "if", "(", "Array", ".", "isArray", "(", "value", ")", ")", "{", "return", "values", ".", "concat", "(", "value", ")", ";", "}", "values", ".", "push", "(", "value", ")", ";", "return", "values", ";", "}", ",", "[", "]", ")", ")", ";", "}", "else", "{", "throw", "Error", "(", "'unknown AttributPart value'", ",", "value", ")", ";", "}", "}" ]
Resolve "value" to string if possible @param { any } value @param { AttributePart } part @returns { any }
[ "Resolve", "value", "to", "string", "if", "possible" ]
ad5cd24db5bd1352b7af6fc0543947a7711056d4
https://github.com/popeindustries/lit-html-server/blob/ad5cd24db5bd1352b7af6fc0543947a7711056d4/src/parts.js#L249-L290
8,919
popeindustries/lit-html-server
src/parts.js
resolveNodeValue
function resolveNodeValue(value, part) { if (isDirective(value)) { value = resolveDirectiveValue(value, part); } if (value === nothingString || value === undefined) { return emptyStringBuffer; } if (isPrimitive(value)) { const string = typeof value !== 'string' ? String(value) : value; // Escape if not prefixed with unsafePrefixString, otherwise strip prefix return Buffer.from( string.indexOf(unsafePrefixString) === 0 ? string.slice(33) : escapeHTML(string) ); } else if (isTemplateResult(value) || Buffer.isBuffer(value)) { return value; } else if (isPromise(value)) { return value.then((value) => resolveNodeValue(value, part)); } else if (isSyncIterator(value)) { if (!Array.isArray(value)) { value = Array.from(value); } return value.reduce((values, value) => { value = resolveNodeValue(value, part); // Flatten if (Array.isArray(value)) { return values.concat(value); } values.push(value); return values; }, []); } else if (isAsyncIterator(value)) { return resolveAsyncIteratorValue(value, part); } else { throw Error('unknown NodePart value', value); } }
javascript
function resolveNodeValue(value, part) { if (isDirective(value)) { value = resolveDirectiveValue(value, part); } if (value === nothingString || value === undefined) { return emptyStringBuffer; } if (isPrimitive(value)) { const string = typeof value !== 'string' ? String(value) : value; // Escape if not prefixed with unsafePrefixString, otherwise strip prefix return Buffer.from( string.indexOf(unsafePrefixString) === 0 ? string.slice(33) : escapeHTML(string) ); } else if (isTemplateResult(value) || Buffer.isBuffer(value)) { return value; } else if (isPromise(value)) { return value.then((value) => resolveNodeValue(value, part)); } else if (isSyncIterator(value)) { if (!Array.isArray(value)) { value = Array.from(value); } return value.reduce((values, value) => { value = resolveNodeValue(value, part); // Flatten if (Array.isArray(value)) { return values.concat(value); } values.push(value); return values; }, []); } else if (isAsyncIterator(value)) { return resolveAsyncIteratorValue(value, part); } else { throw Error('unknown NodePart value', value); } }
[ "function", "resolveNodeValue", "(", "value", ",", "part", ")", "{", "if", "(", "isDirective", "(", "value", ")", ")", "{", "value", "=", "resolveDirectiveValue", "(", "value", ",", "part", ")", ";", "}", "if", "(", "value", "===", "nothingString", "||", "value", "===", "undefined", ")", "{", "return", "emptyStringBuffer", ";", "}", "if", "(", "isPrimitive", "(", "value", ")", ")", "{", "const", "string", "=", "typeof", "value", "!==", "'string'", "?", "String", "(", "value", ")", ":", "value", ";", "// Escape if not prefixed with unsafePrefixString, otherwise strip prefix", "return", "Buffer", ".", "from", "(", "string", ".", "indexOf", "(", "unsafePrefixString", ")", "===", "0", "?", "string", ".", "slice", "(", "33", ")", ":", "escapeHTML", "(", "string", ")", ")", ";", "}", "else", "if", "(", "isTemplateResult", "(", "value", ")", "||", "Buffer", ".", "isBuffer", "(", "value", ")", ")", "{", "return", "value", ";", "}", "else", "if", "(", "isPromise", "(", "value", ")", ")", "{", "return", "value", ".", "then", "(", "(", "value", ")", "=>", "resolveNodeValue", "(", "value", ",", "part", ")", ")", ";", "}", "else", "if", "(", "isSyncIterator", "(", "value", ")", ")", "{", "if", "(", "!", "Array", ".", "isArray", "(", "value", ")", ")", "{", "value", "=", "Array", ".", "from", "(", "value", ")", ";", "}", "return", "value", ".", "reduce", "(", "(", "values", ",", "value", ")", "=>", "{", "value", "=", "resolveNodeValue", "(", "value", ",", "part", ")", ";", "// Flatten", "if", "(", "Array", ".", "isArray", "(", "value", ")", ")", "{", "return", "values", ".", "concat", "(", "value", ")", ";", "}", "values", ".", "push", "(", "value", ")", ";", "return", "values", ";", "}", ",", "[", "]", ")", ";", "}", "else", "if", "(", "isAsyncIterator", "(", "value", ")", ")", "{", "return", "resolveAsyncIteratorValue", "(", "value", ",", "part", ")", ";", "}", "else", "{", "throw", "Error", "(", "'unknown NodePart value'", ",", "value", ")", ";", "}", "}" ]
Resolve "value" to string Buffer if possible @param { any } value @param { NodePart } part @returns { any }
[ "Resolve", "value", "to", "string", "Buffer", "if", "possible" ]
ad5cd24db5bd1352b7af6fc0543947a7711056d4
https://github.com/popeindustries/lit-html-server/blob/ad5cd24db5bd1352b7af6fc0543947a7711056d4/src/parts.js#L299-L336
8,920
popeindustries/lit-html-server
src/parts.js
resolveAsyncIteratorValue
async function* resolveAsyncIteratorValue(iterator, part) { for await (const value of iterator) { yield resolveNodeValue(value, part); } }
javascript
async function* resolveAsyncIteratorValue(iterator, part) { for await (const value of iterator) { yield resolveNodeValue(value, part); } }
[ "async", "function", "*", "resolveAsyncIteratorValue", "(", "iterator", ",", "part", ")", "{", "for", "await", "(", "const", "value", "of", "iterator", ")", "{", "yield", "resolveNodeValue", "(", "value", ",", "part", ")", ";", "}", "}" ]
Resolve values of async "iterator" @param { AsyncIterator } iterator @param { NodePart } part @returns { AsyncGenerator }
[ "Resolve", "values", "of", "async", "iterator" ]
ad5cd24db5bd1352b7af6fc0543947a7711056d4
https://github.com/popeindustries/lit-html-server/blob/ad5cd24db5bd1352b7af6fc0543947a7711056d4/src/parts.js#L345-L349
8,921
popeindustries/lit-html-server
src/parts.js
resolveDirectiveValue
function resolveDirectiveValue(directive, part) { // Directives are synchronous, so it's safe to read and delete value directive(part); const value = part._value; part._value = undefined; return value; }
javascript
function resolveDirectiveValue(directive, part) { // Directives are synchronous, so it's safe to read and delete value directive(part); const value = part._value; part._value = undefined; return value; }
[ "function", "resolveDirectiveValue", "(", "directive", ",", "part", ")", "{", "// Directives are synchronous, so it's safe to read and delete value", "directive", "(", "part", ")", ";", "const", "value", "=", "part", ".", "_value", ";", "part", ".", "_value", "=", "undefined", ";", "return", "value", ";", "}" ]
Resolve value of "directive" @param { function } directive @param { Part } part @returns { any }
[ "Resolve", "value", "of", "directive" ]
ad5cd24db5bd1352b7af6fc0543947a7711056d4
https://github.com/popeindustries/lit-html-server/blob/ad5cd24db5bd1352b7af6fc0543947a7711056d4/src/parts.js#L358-L364
8,922
popeindustries/lit-html-server
src/directives/until.js
untilDirective
function untilDirective(...args) { return function(part) { for (let i = 0, n = args.length; i < n; i++) { const value = args[i]; // Render sync values immediately, // or last value (async included) if no more values pending if (isPrimitive(value) || i === n - 1) { part.setValue(value); } } }; }
javascript
function untilDirective(...args) { return function(part) { for (let i = 0, n = args.length; i < n; i++) { const value = args[i]; // Render sync values immediately, // or last value (async included) if no more values pending if (isPrimitive(value) || i === n - 1) { part.setValue(value); } } }; }
[ "function", "untilDirective", "(", "...", "args", ")", "{", "return", "function", "(", "part", ")", "{", "for", "(", "let", "i", "=", "0", ",", "n", "=", "args", ".", "length", ";", "i", "<", "n", ";", "i", "++", ")", "{", "const", "value", "=", "args", "[", "i", "]", ";", "// Render sync values immediately,", "// or last value (async included) if no more values pending", "if", "(", "isPrimitive", "(", "value", ")", "||", "i", "===", "n", "-", "1", ")", "{", "part", ".", "setValue", "(", "value", ")", ";", "}", "}", "}", ";", "}" ]
Renders one of a series of values, including Promises, in priority order. Not possible to render more than once in a server context, so primitive sync values are prioritised over async, unless there are no more pending values, in which case the last value is always rendered regardless. @param { ...: Array<any> } args @returns { (AttributePart|NodePart) => void }
[ "Renders", "one", "of", "a", "series", "of", "values", "including", "Promises", "in", "priority", "order", ".", "Not", "possible", "to", "render", "more", "than", "once", "in", "a", "server", "context", "so", "primitive", "sync", "values", "are", "prioritised", "over", "async", "unless", "there", "are", "no", "more", "pending", "values", "in", "which", "case", "the", "last", "value", "is", "always", "rendered", "regardless", "." ]
ad5cd24db5bd1352b7af6fc0543947a7711056d4
https://github.com/popeindustries/lit-html-server/blob/ad5cd24db5bd1352b7af6fc0543947a7711056d4/src/directives/until.js#L15-L27
8,923
popeindustries/lit-html-server
src/browser.js
html
function html(strings, ...values) { let template = templateCache.get(strings); if (template === undefined) { template = new Template(strings, defaultTemplateProcessor); templateCache.set(strings, template); } return templateResult(template, values); }
javascript
function html(strings, ...values) { let template = templateCache.get(strings); if (template === undefined) { template = new Template(strings, defaultTemplateProcessor); templateCache.set(strings, template); } return templateResult(template, values); }
[ "function", "html", "(", "strings", ",", "...", "values", ")", "{", "let", "template", "=", "templateCache", ".", "get", "(", "strings", ")", ";", "if", "(", "template", "===", "undefined", ")", "{", "template", "=", "new", "Template", "(", "strings", ",", "defaultTemplateProcessor", ")", ";", "templateCache", ".", "set", "(", "strings", ",", "template", ")", ";", "}", "return", "templateResult", "(", "template", ",", "values", ")", ";", "}" ]
Interprets a template literal as an HTML template that can be rendered as a Readable stream or String @param { Array<string> } strings @param { ...any } values @returns { TemplateResult }
[ "Interprets", "a", "template", "literal", "as", "an", "HTML", "template", "that", "can", "be", "rendered", "as", "a", "Readable", "stream", "or", "String" ]
ad5cd24db5bd1352b7af6fc0543947a7711056d4
https://github.com/popeindustries/lit-html-server/blob/ad5cd24db5bd1352b7af6fc0543947a7711056d4/src/browser.js#L37-L46
8,924
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
Timestamp
function Timestamp(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function Timestamp(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "Timestamp", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a Timestamp. @memberof google.protobuf @interface ITimestamp @property {number|null} [seconds] Timestamp seconds @property {number|null} [nanos] Timestamp nanos Constructs a new Timestamp. @memberof google.protobuf @classdesc Represents a Timestamp. @implements ITimestamp @constructor @param {google.protobuf.ITimestamp=} [properties] Properties to set
[ "Properties", "of", "a", "Timestamp", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L43-L48
8,925
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
FileDescriptorProto
function FileDescriptorProto(properties) { this.dependency = []; this.publicDependency = []; this.weakDependency = []; this.messageType = []; this.enumType = []; this.service = []; this.extension = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function FileDescriptorProto(properties) { this.dependency = []; this.publicDependency = []; this.weakDependency = []; this.messageType = []; this.enumType = []; this.service = []; this.extension = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "FileDescriptorProto", "(", "properties", ")", "{", "this", ".", "dependency", "=", "[", "]", ";", "this", ".", "publicDependency", "=", "[", "]", ";", "this", ".", "weakDependency", "=", "[", "]", ";", "this", ".", "messageType", "=", "[", "]", ";", "this", ".", "enumType", "=", "[", "]", ";", "this", ".", "service", "=", "[", "]", ";", "this", ".", "extension", "=", "[", "]", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a FileDescriptorProto. @memberof google.protobuf @interface IFileDescriptorProto @property {string|null} [name] FileDescriptorProto name @property {string|null} ["package"] FileDescriptorProto package @property {Array.<string>|null} [dependency] FileDescriptorProto dependency @property {Array.<number>|null} [publicDependency] FileDescriptorProto publicDependency @property {Array.<number>|null} [weakDependency] FileDescriptorProto weakDependency @property {Array.<google.protobuf.IDescriptorProto>|null} [messageType] FileDescriptorProto messageType @property {Array.<google.protobuf.IEnumDescriptorProto>|null} [enumType] FileDescriptorProto enumType @property {Array.<google.protobuf.IServiceDescriptorProto>|null} [service] FileDescriptorProto service @property {Array.<google.protobuf.IFieldDescriptorProto>|null} [extension] FileDescriptorProto extension @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo @property {string|null} [syntax] FileDescriptorProto syntax Constructs a new FileDescriptorProto. @memberof google.protobuf @classdesc Represents a FileDescriptorProto. @implements IFileDescriptorProto @constructor @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set
[ "Properties", "of", "a", "FileDescriptorProto", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L133-L145
8,926
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
DescriptorProto
function DescriptorProto(properties) { this.field = []; this.extension = []; this.nestedType = []; this.enumType = []; this.extensionRange = []; this.oneofDecl = []; this.reservedRange = []; this.reservedName = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function DescriptorProto(properties) { this.field = []; this.extension = []; this.nestedType = []; this.enumType = []; this.extensionRange = []; this.oneofDecl = []; this.reservedRange = []; this.reservedName = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "DescriptorProto", "(", "properties", ")", "{", "this", ".", "field", "=", "[", "]", ";", "this", ".", "extension", "=", "[", "]", ";", "this", ".", "nestedType", "=", "[", "]", ";", "this", ".", "enumType", "=", "[", "]", ";", "this", ".", "extensionRange", "=", "[", "]", ";", "this", ".", "oneofDecl", "=", "[", "]", ";", "this", ".", "reservedRange", "=", "[", "]", ";", "this", ".", "reservedName", "=", "[", "]", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a DescriptorProto. @memberof google.protobuf @interface IDescriptorProto @property {string|null} [name] DescriptorProto name @property {Array.<google.protobuf.IFieldDescriptorProto>|null} [field] DescriptorProto field @property {Array.<google.protobuf.IFieldDescriptorProto>|null} [extension] DescriptorProto extension @property {Array.<google.protobuf.IDescriptorProto>|null} [nestedType] DescriptorProto nestedType @property {Array.<google.protobuf.IEnumDescriptorProto>|null} [enumType] DescriptorProto enumType @property {Array.<google.protobuf.DescriptorProto.IExtensionRange>|null} [extensionRange] DescriptorProto extensionRange @property {Array.<google.protobuf.IOneofDescriptorProto>|null} [oneofDecl] DescriptorProto oneofDecl @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options @property {Array.<google.protobuf.DescriptorProto.IReservedRange>|null} [reservedRange] DescriptorProto reservedRange @property {Array.<string>|null} [reservedName] DescriptorProto reservedName Constructs a new DescriptorProto. @memberof google.protobuf @classdesc Represents a DescriptorProto. @implements IDescriptorProto @constructor @param {google.protobuf.IDescriptorProto=} [properties] Properties to set
[ "Properties", "of", "a", "DescriptorProto", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L272-L285
8,927
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
ExtensionRange
function ExtensionRange(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function ExtensionRange(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "ExtensionRange", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of an ExtensionRange. @memberof google.protobuf.DescriptorProto @interface IExtensionRange @property {number|null} [start] ExtensionRange start @property {number|null} [end] ExtensionRange end Constructs a new ExtensionRange. @memberof google.protobuf.DescriptorProto @classdesc Represents an ExtensionRange. @implements IExtensionRange @constructor @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set
[ "Properties", "of", "an", "ExtensionRange", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L385-L390
8,928
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
ReservedRange
function ReservedRange(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function ReservedRange(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "ReservedRange", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a ReservedRange. @memberof google.protobuf.DescriptorProto @interface IReservedRange @property {number|null} [start] ReservedRange start @property {number|null} [end] ReservedRange end Constructs a new ReservedRange. @memberof google.protobuf.DescriptorProto @classdesc Represents a ReservedRange. @implements IReservedRange @constructor @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set
[ "Properties", "of", "a", "ReservedRange", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L429-L434
8,929
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
FieldDescriptorProto
function FieldDescriptorProto(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function FieldDescriptorProto(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "FieldDescriptorProto", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a FieldDescriptorProto. @memberof google.protobuf @interface IFieldDescriptorProto @property {string|null} [name] FieldDescriptorProto name @property {number|null} [number] FieldDescriptorProto number @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type @property {string|null} [typeName] FieldDescriptorProto typeName @property {string|null} [extendee] FieldDescriptorProto extendee @property {string|null} [defaultValue] FieldDescriptorProto defaultValue @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex @property {string|null} [jsonName] FieldDescriptorProto jsonName @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options Constructs a new FieldDescriptorProto. @memberof google.protobuf @classdesc Represents a FieldDescriptorProto. @implements IFieldDescriptorProto @constructor @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set
[ "Properties", "of", "a", "FieldDescriptorProto", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L484-L489
8,930
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
OneofDescriptorProto
function OneofDescriptorProto(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function OneofDescriptorProto(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "OneofDescriptorProto", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of an OneofDescriptorProto. @memberof google.protobuf @interface IOneofDescriptorProto @property {string|null} [name] OneofDescriptorProto name @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options Constructs a new OneofDescriptorProto. @memberof google.protobuf @classdesc Represents an OneofDescriptorProto. @implements IOneofDescriptorProto @constructor @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set
[ "Properties", "of", "an", "OneofDescriptorProto", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L654-L659
8,931
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
EnumDescriptorProto
function EnumDescriptorProto(properties) { this.value = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function EnumDescriptorProto(properties) { this.value = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "EnumDescriptorProto", "(", "properties", ")", "{", "this", ".", "value", "=", "[", "]", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of an EnumDescriptorProto. @memberof google.protobuf @interface IEnumDescriptorProto @property {string|null} [name] EnumDescriptorProto name @property {Array.<google.protobuf.IEnumValueDescriptorProto>|null} [value] EnumDescriptorProto value @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options Constructs a new EnumDescriptorProto. @memberof google.protobuf @classdesc Represents an EnumDescriptorProto. @implements IEnumDescriptorProto @constructor @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set
[ "Properties", "of", "an", "EnumDescriptorProto", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L699-L705
8,932
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
EnumValueDescriptorProto
function EnumValueDescriptorProto(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function EnumValueDescriptorProto(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "EnumValueDescriptorProto", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of an EnumValueDescriptorProto. @memberof google.protobuf @interface IEnumValueDescriptorProto @property {string|null} [name] EnumValueDescriptorProto name @property {number|null} [number] EnumValueDescriptorProto number @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options Constructs a new EnumValueDescriptorProto. @memberof google.protobuf @classdesc Represents an EnumValueDescriptorProto. @implements IEnumValueDescriptorProto @constructor @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set
[ "Properties", "of", "an", "EnumValueDescriptorProto", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L753-L758
8,933
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
ServiceDescriptorProto
function ServiceDescriptorProto(properties) { this.method = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function ServiceDescriptorProto(properties) { this.method = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "ServiceDescriptorProto", "(", "properties", ")", "{", "this", ".", "method", "=", "[", "]", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a ServiceDescriptorProto. @memberof google.protobuf @interface IServiceDescriptorProto @property {string|null} [name] ServiceDescriptorProto name @property {Array.<google.protobuf.IMethodDescriptorProto>|null} [method] ServiceDescriptorProto method @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options Constructs a new ServiceDescriptorProto. @memberof google.protobuf @classdesc Represents a ServiceDescriptorProto. @implements IServiceDescriptorProto @constructor @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set
[ "Properties", "of", "a", "ServiceDescriptorProto", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L806-L812
8,934
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
MethodDescriptorProto
function MethodDescriptorProto(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function MethodDescriptorProto(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "MethodDescriptorProto", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a MethodDescriptorProto. @memberof google.protobuf @interface IMethodDescriptorProto @property {string|null} [name] MethodDescriptorProto name @property {string|null} [inputType] MethodDescriptorProto inputType @property {string|null} [outputType] MethodDescriptorProto outputType @property {google.protobuf.IMethodOptions|null} [options] MethodDescriptorProto options @property {boolean|null} [clientStreaming] MethodDescriptorProto clientStreaming @property {boolean|null} [serverStreaming] MethodDescriptorProto serverStreaming Constructs a new MethodDescriptorProto. @memberof google.protobuf @classdesc Represents a MethodDescriptorProto. @implements IMethodDescriptorProto @constructor @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set
[ "Properties", "of", "a", "MethodDescriptorProto", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L863-L868
8,935
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
FileOptions
function FileOptions(properties) { this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function FileOptions(properties) { this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "FileOptions", "(", "properties", ")", "{", "this", ".", "uninterpretedOption", "=", "[", "]", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a FileOptions. @memberof google.protobuf @interface IFileOptions @property {string|null} [javaPackage] FileOptions javaPackage @property {string|null} [javaOuterClassname] FileOptions javaOuterClassname @property {boolean|null} [javaMultipleFiles] FileOptions javaMultipleFiles @property {boolean|null} [javaGenerateEqualsAndHash] FileOptions javaGenerateEqualsAndHash @property {boolean|null} [javaStringCheckUtf8] FileOptions javaStringCheckUtf8 @property {google.protobuf.FileOptions.OptimizeMode|null} [optimizeFor] FileOptions optimizeFor @property {string|null} [goPackage] FileOptions goPackage @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices @property {boolean|null} [deprecated] FileOptions deprecated @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix @property {string|null} [csharpNamespace] FileOptions csharpNamespace @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FileOptions uninterpretedOption Constructs a new FileOptions. @memberof google.protobuf @classdesc Represents a FileOptions. @implements IFileOptions @constructor @param {google.protobuf.IFileOptions=} [properties] Properties to set
[ "Properties", "of", "a", "FileOptions", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L952-L958
8,936
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
MessageOptions
function MessageOptions(properties) { this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function MessageOptions(properties) { this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "MessageOptions", "(", "properties", ")", "{", "this", ".", "uninterpretedOption", "=", "[", "]", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a MessageOptions. @memberof google.protobuf @interface IMessageOptions @property {boolean|null} [messageSetWireFormat] MessageOptions messageSetWireFormat @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor @property {boolean|null} [deprecated] MessageOptions deprecated @property {boolean|null} [mapEntry] MessageOptions mapEntry @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] MessageOptions uninterpretedOption Constructs a new MessageOptions. @memberof google.protobuf @classdesc Represents a MessageOptions. @implements IMessageOptions @constructor @param {google.protobuf.IMessageOptions=} [properties] Properties to set
[ "Properties", "of", "a", "MessageOptions", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L1120-L1126
8,937
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
FieldOptions
function FieldOptions(properties) { this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function FieldOptions(properties) { this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "FieldOptions", "(", "properties", ")", "{", "this", ".", "uninterpretedOption", "=", "[", "]", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a FieldOptions. @memberof google.protobuf @interface IFieldOptions @property {google.protobuf.FieldOptions.CType|null} [ctype] FieldOptions ctype @property {boolean|null} [packed] FieldOptions packed @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype @property {boolean|null} [lazy] FieldOptions lazy @property {boolean|null} [deprecated] FieldOptions deprecated @property {boolean|null} [weak] FieldOptions weak @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FieldOptions uninterpretedOption Constructs a new FieldOptions. @memberof google.protobuf @classdesc Represents a FieldOptions. @implements IFieldOptions @constructor @param {google.protobuf.IFieldOptions=} [properties] Properties to set
[ "Properties", "of", "a", "FieldOptions", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L1194-L1200
8,938
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
EnumOptions
function EnumOptions(properties) { this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function EnumOptions(properties) { this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "EnumOptions", "(", "properties", ")", "{", "this", ".", "uninterpretedOption", "=", "[", "]", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of an EnumOptions. @memberof google.protobuf @interface IEnumOptions @property {boolean|null} [allowAlias] EnumOptions allowAlias @property {boolean|null} [deprecated] EnumOptions deprecated @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] EnumOptions uninterpretedOption Constructs a new EnumOptions. @memberof google.protobuf @classdesc Represents an EnumOptions. @implements IEnumOptions @constructor @param {google.protobuf.IEnumOptions=} [properties] Properties to set
[ "Properties", "of", "an", "EnumOptions", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L1348-L1354
8,939
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
EnumValueOptions
function EnumValueOptions(properties) { this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function EnumValueOptions(properties) { this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "EnumValueOptions", "(", "properties", ")", "{", "this", ".", "uninterpretedOption", "=", "[", "]", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of an EnumValueOptions. @memberof google.protobuf @interface IEnumValueOptions @property {boolean|null} [deprecated] EnumValueOptions deprecated @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] EnumValueOptions uninterpretedOption Constructs a new EnumValueOptions. @memberof google.protobuf @classdesc Represents an EnumValueOptions. @implements IEnumValueOptions @constructor @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set
[ "Properties", "of", "an", "EnumValueOptions", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L1401-L1407
8,940
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
ServiceOptions
function ServiceOptions(properties) { this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function ServiceOptions(properties) { this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "ServiceOptions", "(", "properties", ")", "{", "this", ".", "uninterpretedOption", "=", "[", "]", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a ServiceOptions. @memberof google.protobuf @interface IServiceOptions @property {boolean|null} [deprecated] ServiceOptions deprecated @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] ServiceOptions uninterpretedOption Constructs a new ServiceOptions. @memberof google.protobuf @classdesc Represents a ServiceOptions. @implements IServiceOptions @constructor @param {google.protobuf.IServiceOptions=} [properties] Properties to set
[ "Properties", "of", "a", "ServiceOptions", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L1446-L1452
8,941
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
MethodOptions
function MethodOptions(properties) { this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function MethodOptions(properties) { this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "MethodOptions", "(", "properties", ")", "{", "this", ".", "uninterpretedOption", "=", "[", "]", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a MethodOptions. @memberof google.protobuf @interface IMethodOptions @property {boolean|null} [deprecated] MethodOptions deprecated @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] MethodOptions uninterpretedOption @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http @property {google.longrunning.IOperationInfo|null} [".google.longrunning.operationInfo"] MethodOptions .google.longrunning.operationInfo Constructs a new MethodOptions. @memberof google.protobuf @classdesc Represents a MethodOptions. @implements IMethodOptions @constructor @param {google.protobuf.IMethodOptions=} [properties] Properties to set
[ "Properties", "of", "a", "MethodOptions", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L1493-L1499
8,942
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
UninterpretedOption
function UninterpretedOption(properties) { this.name = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function UninterpretedOption(properties) { this.name = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "UninterpretedOption", "(", "properties", ")", "{", "this", ".", "name", "=", "[", "]", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of an UninterpretedOption. @memberof google.protobuf @interface IUninterpretedOption @property {Array.<google.protobuf.UninterpretedOption.INamePart>|null} [name] UninterpretedOption name @property {string|null} [identifierValue] UninterpretedOption identifierValue @property {number|null} [positiveIntValue] UninterpretedOption positiveIntValue @property {number|null} [negativeIntValue] UninterpretedOption negativeIntValue @property {number|null} [doubleValue] UninterpretedOption doubleValue @property {Uint8Array|null} [stringValue] UninterpretedOption stringValue @property {string|null} [aggregateValue] UninterpretedOption aggregateValue Constructs a new UninterpretedOption. @memberof google.protobuf @classdesc Represents an UninterpretedOption. @implements IUninterpretedOption @constructor @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set
[ "Properties", "of", "an", "UninterpretedOption", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L1559-L1565
8,943
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
NamePart
function NamePart(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function NamePart(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "NamePart", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a NamePart. @memberof google.protobuf.UninterpretedOption @interface INamePart @property {string} namePart NamePart namePart @property {boolean} isExtension NamePart isExtension Constructs a new NamePart. @memberof google.protobuf.UninterpretedOption @classdesc Represents a NamePart. @implements INamePart @constructor @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set
[ "Properties", "of", "a", "NamePart", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L1641-L1646
8,944
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
SourceCodeInfo
function SourceCodeInfo(properties) { this.location = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function SourceCodeInfo(properties) { this.location = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "SourceCodeInfo", "(", "properties", ")", "{", "this", ".", "location", "=", "[", "]", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a SourceCodeInfo. @memberof google.protobuf @interface ISourceCodeInfo @property {Array.<google.protobuf.SourceCodeInfo.ILocation>|null} [location] SourceCodeInfo location Constructs a new SourceCodeInfo. @memberof google.protobuf @classdesc Represents a SourceCodeInfo. @implements ISourceCodeInfo @constructor @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set
[ "Properties", "of", "a", "SourceCodeInfo", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L1687-L1693
8,945
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
GeneratedCodeInfo
function GeneratedCodeInfo(properties) { this.annotation = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function GeneratedCodeInfo(properties) { this.annotation = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "GeneratedCodeInfo", "(", "properties", ")", "{", "this", ".", "annotation", "=", "[", "]", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a GeneratedCodeInfo. @memberof google.protobuf @interface IGeneratedCodeInfo @property {Array.<google.protobuf.GeneratedCodeInfo.IAnnotation>|null} [annotation] GeneratedCodeInfo annotation Constructs a new GeneratedCodeInfo. @memberof google.protobuf @classdesc Represents a GeneratedCodeInfo. @implements IGeneratedCodeInfo @constructor @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set
[ "Properties", "of", "a", "GeneratedCodeInfo", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L1797-L1803
8,946
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
Annotation
function Annotation(properties) { this.path = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function Annotation(properties) { this.path = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "Annotation", "(", "properties", ")", "{", "this", ".", "path", "=", "[", "]", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of an Annotation. @memberof google.protobuf.GeneratedCodeInfo @interface IAnnotation @property {Array.<number>|null} [path] Annotation path @property {string|null} [sourceFile] Annotation sourceFile @property {number|null} [begin] Annotation begin @property {number|null} [end] Annotation end Constructs a new Annotation. @memberof google.protobuf.GeneratedCodeInfo @classdesc Represents an Annotation. @implements IAnnotation @constructor @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set
[ "Properties", "of", "an", "Annotation", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L1833-L1839
8,947
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
Struct
function Struct(properties) { this.fields = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function Struct(properties) { this.fields = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "Struct", "(", "properties", ")", "{", "this", ".", "fields", "=", "{", "}", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a Struct. @memberof google.protobuf @interface IStruct @property {Object.<string,google.protobuf.IValue>|null} [fields] Struct fields Constructs a new Struct. @memberof google.protobuf @classdesc Represents a Struct. @implements IStruct @constructor @param {google.protobuf.IStruct=} [properties] Properties to set
[ "Properties", "of", "a", "Struct", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L1896-L1902
8,948
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
Value
function Value(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function Value(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "Value", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a Value. @memberof google.protobuf @interface IValue @property {google.protobuf.NullValue|null} [nullValue] Value nullValue @property {number|null} [numberValue] Value numberValue @property {string|null} [stringValue] Value stringValue @property {boolean|null} [boolValue] Value boolValue @property {google.protobuf.IStruct|null} [structValue] Value structValue @property {google.protobuf.IListValue|null} [listValue] Value listValue Constructs a new Value. @memberof google.protobuf @classdesc Represents a Value. @implements IValue @constructor @param {google.protobuf.IValue=} [properties] Properties to set
[ "Properties", "of", "a", "Value", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L1937-L1942
8,949
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
DoubleValue
function DoubleValue(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function DoubleValue(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "DoubleValue", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a DoubleValue. @memberof google.protobuf @interface IDoubleValue @property {number|null} [value] DoubleValue value Constructs a new DoubleValue. @memberof google.protobuf @classdesc Represents a DoubleValue. @implements IDoubleValue @constructor @param {google.protobuf.IDoubleValue=} [properties] Properties to set
[ "Properties", "of", "a", "DoubleValue", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L2100-L2105
8,950
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
FloatValue
function FloatValue(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function FloatValue(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "FloatValue", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a FloatValue. @memberof google.protobuf @interface IFloatValue @property {number|null} [value] FloatValue value Constructs a new FloatValue. @memberof google.protobuf @classdesc Represents a FloatValue. @implements IFloatValue @constructor @param {google.protobuf.IFloatValue=} [properties] Properties to set
[ "Properties", "of", "a", "FloatValue", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L2135-L2140
8,951
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
Int64Value
function Int64Value(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function Int64Value(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "Int64Value", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of an Int64Value. @memberof google.protobuf @interface IInt64Value @property {number|null} [value] Int64Value value Constructs a new Int64Value. @memberof google.protobuf @classdesc Represents an Int64Value. @implements IInt64Value @constructor @param {google.protobuf.IInt64Value=} [properties] Properties to set
[ "Properties", "of", "an", "Int64Value", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L2170-L2175
8,952
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
UInt64Value
function UInt64Value(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function UInt64Value(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "UInt64Value", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a UInt64Value. @memberof google.protobuf @interface IUInt64Value @property {number|null} [value] UInt64Value value Constructs a new UInt64Value. @memberof google.protobuf @classdesc Represents a UInt64Value. @implements IUInt64Value @constructor @param {google.protobuf.IUInt64Value=} [properties] Properties to set
[ "Properties", "of", "a", "UInt64Value", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L2205-L2210
8,953
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
Int32Value
function Int32Value(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function Int32Value(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "Int32Value", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of an Int32Value. @memberof google.protobuf @interface IInt32Value @property {number|null} [value] Int32Value value Constructs a new Int32Value. @memberof google.protobuf @classdesc Represents an Int32Value. @implements IInt32Value @constructor @param {google.protobuf.IInt32Value=} [properties] Properties to set
[ "Properties", "of", "an", "Int32Value", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L2240-L2245
8,954
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
UInt32Value
function UInt32Value(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function UInt32Value(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "UInt32Value", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a UInt32Value. @memberof google.protobuf @interface IUInt32Value @property {number|null} [value] UInt32Value value Constructs a new UInt32Value. @memberof google.protobuf @classdesc Represents a UInt32Value. @implements IUInt32Value @constructor @param {google.protobuf.IUInt32Value=} [properties] Properties to set
[ "Properties", "of", "a", "UInt32Value", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L2275-L2280
8,955
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
BoolValue
function BoolValue(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function BoolValue(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "BoolValue", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a BoolValue. @memberof google.protobuf @interface IBoolValue @property {boolean|null} [value] BoolValue value Constructs a new BoolValue. @memberof google.protobuf @classdesc Represents a BoolValue. @implements IBoolValue @constructor @param {google.protobuf.IBoolValue=} [properties] Properties to set
[ "Properties", "of", "a", "BoolValue", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L2310-L2315
8,956
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
StringValue
function StringValue(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function StringValue(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "StringValue", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a StringValue. @memberof google.protobuf @interface IStringValue @property {string|null} [value] StringValue value Constructs a new StringValue. @memberof google.protobuf @classdesc Represents a StringValue. @implements IStringValue @constructor @param {google.protobuf.IStringValue=} [properties] Properties to set
[ "Properties", "of", "a", "StringValue", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L2345-L2350
8,957
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
BytesValue
function BytesValue(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function BytesValue(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "BytesValue", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a BytesValue. @memberof google.protobuf @interface IBytesValue @property {Uint8Array|null} [value] BytesValue value Constructs a new BytesValue. @memberof google.protobuf @classdesc Represents a BytesValue. @implements IBytesValue @constructor @param {google.protobuf.IBytesValue=} [properties] Properties to set
[ "Properties", "of", "a", "BytesValue", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L2380-L2385
8,958
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
Any
function Any(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function Any(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "Any", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of an Any. @memberof google.protobuf @interface IAny @property {string|null} [type_url] Any type_url @property {Uint8Array|null} [value] Any value Constructs a new Any. @memberof google.protobuf @classdesc Represents an Any. @implements IAny @constructor @param {google.protobuf.IAny=} [properties] Properties to set
[ "Properties", "of", "an", "Any", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L2416-L2421
8,959
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
Duration
function Duration(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function Duration(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "Duration", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a Duration. @memberof google.protobuf @interface IDuration @property {number|null} [seconds] Duration seconds @property {number|null} [nanos] Duration nanos Constructs a new Duration. @memberof google.protobuf @classdesc Represents a Duration. @implements IDuration @constructor @param {google.protobuf.IDuration=} [properties] Properties to set
[ "Properties", "of", "a", "Duration", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L2496-L2501
8,960
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
Precondition
function Precondition(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function Precondition(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "Precondition", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a Precondition. @memberof google.firestore.v1 @interface IPrecondition @property {boolean|null} [exists] Precondition exists @property {google.protobuf.ITimestamp|null} [updateTime] Precondition updateTime Constructs a new Precondition. @memberof google.firestore.v1 @classdesc Represents a Precondition. @implements IPrecondition @constructor @param {google.firestore.v1.IPrecondition=} [properties] Properties to set
[ "Properties", "of", "a", "Precondition", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L2597-L2602
8,961
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
TransactionOptions
function TransactionOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function TransactionOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "TransactionOptions", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a TransactionOptions. @memberof google.firestore.v1 @interface ITransactionOptions @property {google.firestore.v1.TransactionOptions.IReadOnly|null} [readOnly] TransactionOptions readOnly @property {google.firestore.v1.TransactionOptions.IReadWrite|null} [readWrite] TransactionOptions readWrite Constructs a new TransactionOptions. @memberof google.firestore.v1 @classdesc Represents a TransactionOptions. @implements ITransactionOptions @constructor @param {google.firestore.v1.ITransactionOptions=} [properties] Properties to set
[ "Properties", "of", "a", "TransactionOptions", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L2655-L2660
8,962
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
ReadWrite
function ReadWrite(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function ReadWrite(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "ReadWrite", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a ReadWrite. @memberof google.firestore.v1.TransactionOptions @interface IReadWrite @property {Uint8Array|null} [retryTransaction] ReadWrite retryTransaction Constructs a new ReadWrite. @memberof google.firestore.v1.TransactionOptions @classdesc Represents a ReadWrite. @implements IReadWrite @constructor @param {google.firestore.v1.TransactionOptions.IReadWrite=} [properties] Properties to set
[ "Properties", "of", "a", "ReadWrite", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L2709-L2714
8,963
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
ReadOnly
function ReadOnly(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function ReadOnly(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "ReadOnly", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a ReadOnly. @memberof google.firestore.v1.TransactionOptions @interface IReadOnly @property {google.protobuf.ITimestamp|null} [readTime] ReadOnly readTime Constructs a new ReadOnly. @memberof google.firestore.v1.TransactionOptions @classdesc Represents a ReadOnly. @implements IReadOnly @constructor @param {google.firestore.v1.TransactionOptions.IReadOnly=} [properties] Properties to set
[ "Properties", "of", "a", "ReadOnly", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L2744-L2749
8,964
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
Document
function Document(properties) { this.fields = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function Document(properties) { this.fields = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "Document", "(", "properties", ")", "{", "this", ".", "fields", "=", "{", "}", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a Document. @memberof google.firestore.v1 @interface IDocument @property {string|null} [name] Document name @property {Object.<string,google.firestore.v1.IValue>|null} [fields] Document fields @property {google.protobuf.ITimestamp|null} [createTime] Document createTime @property {google.protobuf.ITimestamp|null} [updateTime] Document updateTime Constructs a new Document. @memberof google.firestore.v1 @classdesc Represents a Document. @implements IDocument @constructor @param {google.firestore.v1.IDocument=} [properties] Properties to set
[ "Properties", "of", "a", "Document", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L2799-L2805
8,965
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
ArrayValue
function ArrayValue(properties) { this.values = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function ArrayValue(properties) { this.values = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "ArrayValue", "(", "properties", ")", "{", "this", ".", "values", "=", "[", "]", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of an ArrayValue. @memberof google.firestore.v1 @interface IArrayValue @property {Array.<google.firestore.v1.IValue>|null} [values] ArrayValue values Constructs a new ArrayValue. @memberof google.firestore.v1 @classdesc Represents an ArrayValue. @implements IArrayValue @constructor @param {google.firestore.v1.IArrayValue=} [properties] Properties to set
[ "Properties", "of", "an", "ArrayValue", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L2998-L3004
8,966
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
GetDocumentRequest
function GetDocumentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function GetDocumentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "GetDocumentRequest", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a GetDocumentRequest. @memberof google.firestore.v1 @interface IGetDocumentRequest @property {string|null} [name] GetDocumentRequest name @property {google.firestore.v1.IDocumentMask|null} [mask] GetDocumentRequest mask @property {Uint8Array|null} [transaction] GetDocumentRequest transaction @property {google.protobuf.ITimestamp|null} [readTime] GetDocumentRequest readTime Constructs a new GetDocumentRequest. @memberof google.firestore.v1 @classdesc Represents a GetDocumentRequest. @implements IGetDocumentRequest @constructor @param {google.firestore.v1.IGetDocumentRequest=} [properties] Properties to set
[ "Properties", "of", "a", "GetDocumentRequest", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L3523-L3528
8,967
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
ListDocumentsRequest
function ListDocumentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function ListDocumentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "ListDocumentsRequest", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a ListDocumentsRequest. @memberof google.firestore.v1 @interface IListDocumentsRequest @property {string|null} [parent] ListDocumentsRequest parent @property {string|null} [collectionId] ListDocumentsRequest collectionId @property {number|null} [pageSize] ListDocumentsRequest pageSize @property {string|null} [pageToken] ListDocumentsRequest pageToken @property {string|null} [orderBy] ListDocumentsRequest orderBy @property {google.firestore.v1.IDocumentMask|null} [mask] ListDocumentsRequest mask @property {Uint8Array|null} [transaction] ListDocumentsRequest transaction @property {google.protobuf.ITimestamp|null} [readTime] ListDocumentsRequest readTime @property {boolean|null} [showMissing] ListDocumentsRequest showMissing Constructs a new ListDocumentsRequest. @memberof google.firestore.v1 @classdesc Represents a ListDocumentsRequest. @implements IListDocumentsRequest @constructor @param {google.firestore.v1.IListDocumentsRequest=} [properties] Properties to set
[ "Properties", "of", "a", "ListDocumentsRequest", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L3604-L3609
8,968
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
ListDocumentsResponse
function ListDocumentsResponse(properties) { this.documents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function ListDocumentsResponse(properties) { this.documents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "ListDocumentsResponse", "(", "properties", ")", "{", "this", ".", "documents", "=", "[", "]", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a ListDocumentsResponse. @memberof google.firestore.v1 @interface IListDocumentsResponse @property {Array.<google.firestore.v1.IDocument>|null} [documents] ListDocumentsResponse documents @property {string|null} [nextPageToken] ListDocumentsResponse nextPageToken Constructs a new ListDocumentsResponse. @memberof google.firestore.v1 @classdesc Represents a ListDocumentsResponse. @implements IListDocumentsResponse @constructor @param {google.firestore.v1.IListDocumentsResponse=} [properties] Properties to set
[ "Properties", "of", "a", "ListDocumentsResponse", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L3718-L3724
8,969
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
CreateDocumentRequest
function CreateDocumentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function CreateDocumentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "CreateDocumentRequest", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a CreateDocumentRequest. @memberof google.firestore.v1 @interface ICreateDocumentRequest @property {string|null} [parent] CreateDocumentRequest parent @property {string|null} [collectionId] CreateDocumentRequest collectionId @property {string|null} [documentId] CreateDocumentRequest documentId @property {google.firestore.v1.IDocument|null} [document] CreateDocumentRequest document @property {google.firestore.v1.IDocumentMask|null} [mask] CreateDocumentRequest mask Constructs a new CreateDocumentRequest. @memberof google.firestore.v1 @classdesc Represents a CreateDocumentRequest. @implements ICreateDocumentRequest @constructor @param {google.firestore.v1.ICreateDocumentRequest=} [properties] Properties to set
[ "Properties", "of", "a", "CreateDocumentRequest", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L3766-L3771
8,970
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
UpdateDocumentRequest
function UpdateDocumentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function UpdateDocumentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "UpdateDocumentRequest", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of an UpdateDocumentRequest. @memberof google.firestore.v1 @interface IUpdateDocumentRequest @property {google.firestore.v1.IDocument|null} [document] UpdateDocumentRequest document @property {google.firestore.v1.IDocumentMask|null} [updateMask] UpdateDocumentRequest updateMask @property {google.firestore.v1.IDocumentMask|null} [mask] UpdateDocumentRequest mask @property {google.firestore.v1.IPrecondition|null} [currentDocument] UpdateDocumentRequest currentDocument Constructs a new UpdateDocumentRequest. @memberof google.firestore.v1 @classdesc Represents an UpdateDocumentRequest. @implements IUpdateDocumentRequest @constructor @param {google.firestore.v1.IUpdateDocumentRequest=} [properties] Properties to set
[ "Properties", "of", "an", "UpdateDocumentRequest", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L3836-L3841
8,971
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
DeleteDocumentRequest
function DeleteDocumentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function DeleteDocumentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "DeleteDocumentRequest", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a DeleteDocumentRequest. @memberof google.firestore.v1 @interface IDeleteDocumentRequest @property {string|null} [name] DeleteDocumentRequest name @property {google.firestore.v1.IPrecondition|null} [currentDocument] DeleteDocumentRequest currentDocument Constructs a new DeleteDocumentRequest. @memberof google.firestore.v1 @classdesc Represents a DeleteDocumentRequest. @implements IDeleteDocumentRequest @constructor @param {google.firestore.v1.IDeleteDocumentRequest=} [properties] Properties to set
[ "Properties", "of", "a", "DeleteDocumentRequest", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L3896-L3901
8,972
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
BatchGetDocumentsRequest
function BatchGetDocumentsRequest(properties) { this.documents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function BatchGetDocumentsRequest(properties) { this.documents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "BatchGetDocumentsRequest", "(", "properties", ")", "{", "this", ".", "documents", "=", "[", "]", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a BatchGetDocumentsRequest. @memberof google.firestore.v1 @interface IBatchGetDocumentsRequest @property {string|null} [database] BatchGetDocumentsRequest database @property {Array.<string>|null} [documents] BatchGetDocumentsRequest documents @property {google.firestore.v1.IDocumentMask|null} [mask] BatchGetDocumentsRequest mask @property {Uint8Array|null} [transaction] BatchGetDocumentsRequest transaction @property {google.firestore.v1.ITransactionOptions|null} [newTransaction] BatchGetDocumentsRequest newTransaction @property {google.protobuf.ITimestamp|null} [readTime] BatchGetDocumentsRequest readTime Constructs a new BatchGetDocumentsRequest. @memberof google.firestore.v1 @classdesc Represents a BatchGetDocumentsRequest. @implements IBatchGetDocumentsRequest @constructor @param {google.firestore.v1.IBatchGetDocumentsRequest=} [properties] Properties to set
[ "Properties", "of", "a", "BatchGetDocumentsRequest", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L3944-L3950
8,973
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
BatchGetDocumentsResponse
function BatchGetDocumentsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function BatchGetDocumentsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "BatchGetDocumentsResponse", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a BatchGetDocumentsResponse. @memberof google.firestore.v1 @interface IBatchGetDocumentsResponse @property {google.firestore.v1.IDocument|null} [found] BatchGetDocumentsResponse found @property {string|null} [missing] BatchGetDocumentsResponse missing @property {Uint8Array|null} [transaction] BatchGetDocumentsResponse transaction @property {google.protobuf.ITimestamp|null} [readTime] BatchGetDocumentsResponse readTime Constructs a new BatchGetDocumentsResponse. @memberof google.firestore.v1 @classdesc Represents a BatchGetDocumentsResponse. @implements IBatchGetDocumentsResponse @constructor @param {google.firestore.v1.IBatchGetDocumentsResponse=} [properties] Properties to set
[ "Properties", "of", "a", "BatchGetDocumentsResponse", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L4037-L4042
8,974
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
BeginTransactionRequest
function BeginTransactionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function BeginTransactionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "BeginTransactionRequest", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a BeginTransactionRequest. @memberof google.firestore.v1 @interface IBeginTransactionRequest @property {string|null} [database] BeginTransactionRequest database @property {google.firestore.v1.ITransactionOptions|null} [options] BeginTransactionRequest options Constructs a new BeginTransactionRequest. @memberof google.firestore.v1 @classdesc Represents a BeginTransactionRequest. @implements IBeginTransactionRequest @constructor @param {google.firestore.v1.IBeginTransactionRequest=} [properties] Properties to set
[ "Properties", "of", "a", "BeginTransactionRequest", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L4111-L4116
8,975
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
BeginTransactionResponse
function BeginTransactionResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function BeginTransactionResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "BeginTransactionResponse", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a BeginTransactionResponse. @memberof google.firestore.v1 @interface IBeginTransactionResponse @property {Uint8Array|null} [transaction] BeginTransactionResponse transaction Constructs a new BeginTransactionResponse. @memberof google.firestore.v1 @classdesc Represents a BeginTransactionResponse. @implements IBeginTransactionResponse @constructor @param {google.firestore.v1.IBeginTransactionResponse=} [properties] Properties to set
[ "Properties", "of", "a", "BeginTransactionResponse", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L4154-L4159
8,976
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
CommitRequest
function CommitRequest(properties) { this.writes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function CommitRequest(properties) { this.writes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "CommitRequest", "(", "properties", ")", "{", "this", ".", "writes", "=", "[", "]", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a CommitRequest. @memberof google.firestore.v1 @interface ICommitRequest @property {string|null} [database] CommitRequest database @property {Array.<google.firestore.v1.IWrite>|null} [writes] CommitRequest writes @property {Uint8Array|null} [transaction] CommitRequest transaction Constructs a new CommitRequest. @memberof google.firestore.v1 @classdesc Represents a CommitRequest. @implements ICommitRequest @constructor @param {google.firestore.v1.ICommitRequest=} [properties] Properties to set
[ "Properties", "of", "a", "CommitRequest", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L4191-L4197
8,977
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
CommitResponse
function CommitResponse(properties) { this.writeResults = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function CommitResponse(properties) { this.writeResults = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "CommitResponse", "(", "properties", ")", "{", "this", ".", "writeResults", "=", "[", "]", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a CommitResponse. @memberof google.firestore.v1 @interface ICommitResponse @property {Array.<google.firestore.v1.IWriteResult>|null} [writeResults] CommitResponse writeResults @property {google.protobuf.ITimestamp|null} [commitTime] CommitResponse commitTime Constructs a new CommitResponse. @memberof google.firestore.v1 @classdesc Represents a CommitResponse. @implements ICommitResponse @constructor @param {google.firestore.v1.ICommitResponse=} [properties] Properties to set
[ "Properties", "of", "a", "CommitResponse", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L4244-L4250
8,978
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
RollbackRequest
function RollbackRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function RollbackRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "RollbackRequest", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a RollbackRequest. @memberof google.firestore.v1 @interface IRollbackRequest @property {string|null} [database] RollbackRequest database @property {Uint8Array|null} [transaction] RollbackRequest transaction Constructs a new RollbackRequest. @memberof google.firestore.v1 @classdesc Represents a RollbackRequest. @implements IRollbackRequest @constructor @param {google.firestore.v1.IRollbackRequest=} [properties] Properties to set
[ "Properties", "of", "a", "RollbackRequest", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L4289-L4294
8,979
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
RunQueryRequest
function RunQueryRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function RunQueryRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "RunQueryRequest", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a RunQueryRequest. @memberof google.firestore.v1 @interface IRunQueryRequest @property {string|null} [parent] RunQueryRequest parent @property {google.firestore.v1.IStructuredQuery|null} [structuredQuery] RunQueryRequest structuredQuery @property {Uint8Array|null} [transaction] RunQueryRequest transaction @property {google.firestore.v1.ITransactionOptions|null} [newTransaction] RunQueryRequest newTransaction @property {google.protobuf.ITimestamp|null} [readTime] RunQueryRequest readTime Constructs a new RunQueryRequest. @memberof google.firestore.v1 @classdesc Represents a RunQueryRequest. @implements IRunQueryRequest @constructor @param {google.firestore.v1.IRunQueryRequest=} [properties] Properties to set
[ "Properties", "of", "a", "RunQueryRequest", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L4336-L4341
8,980
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
RunQueryResponse
function RunQueryResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function RunQueryResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "RunQueryResponse", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a RunQueryResponse. @memberof google.firestore.v1 @interface IRunQueryResponse @property {Uint8Array|null} [transaction] RunQueryResponse transaction @property {google.firestore.v1.IDocument|null} [document] RunQueryResponse document @property {google.protobuf.ITimestamp|null} [readTime] RunQueryResponse readTime @property {number|null} [skippedResults] RunQueryResponse skippedResults Constructs a new RunQueryResponse. @memberof google.firestore.v1 @classdesc Represents a RunQueryResponse. @implements IRunQueryResponse @constructor @param {google.firestore.v1.IRunQueryResponse=} [properties] Properties to set
[ "Properties", "of", "a", "RunQueryResponse", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L4431-L4436
8,981
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
WriteRequest
function WriteRequest(properties) { this.writes = []; this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function WriteRequest(properties) { this.writes = []; this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "WriteRequest", "(", "properties", ")", "{", "this", ".", "writes", "=", "[", "]", ";", "this", ".", "labels", "=", "{", "}", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a WriteRequest. @memberof google.firestore.v1 @interface IWriteRequest @property {string|null} [database] WriteRequest database @property {string|null} [streamId] WriteRequest streamId @property {Array.<google.firestore.v1.IWrite>|null} [writes] WriteRequest writes @property {Uint8Array|null} [streamToken] WriteRequest streamToken @property {Object.<string,string>|null} [labels] WriteRequest labels Constructs a new WriteRequest. @memberof google.firestore.v1 @classdesc Represents a WriteRequest. @implements IWriteRequest @constructor @param {google.firestore.v1.IWriteRequest=} [properties] Properties to set
[ "Properties", "of", "a", "WriteRequest", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L4494-L4501
8,982
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
WriteResponse
function WriteResponse(properties) { this.writeResults = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function WriteResponse(properties) { this.writeResults = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "WriteResponse", "(", "properties", ")", "{", "this", ".", "writeResults", "=", "[", "]", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a WriteResponse. @memberof google.firestore.v1 @interface IWriteResponse @property {string|null} [streamId] WriteResponse streamId @property {Uint8Array|null} [streamToken] WriteResponse streamToken @property {Array.<google.firestore.v1.IWriteResult>|null} [writeResults] WriteResponse writeResults @property {google.protobuf.ITimestamp|null} [commitTime] WriteResponse commitTime Constructs a new WriteResponse. @memberof google.firestore.v1 @classdesc Represents a WriteResponse. @implements IWriteResponse @constructor @param {google.firestore.v1.IWriteResponse=} [properties] Properties to set
[ "Properties", "of", "a", "WriteResponse", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L4566-L4572
8,983
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
ListenRequest
function ListenRequest(properties) { this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function ListenRequest(properties) { this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "ListenRequest", "(", "properties", ")", "{", "this", ".", "labels", "=", "{", "}", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a ListenRequest. @memberof google.firestore.v1 @interface IListenRequest @property {string|null} [database] ListenRequest database @property {google.firestore.v1.ITarget|null} [addTarget] ListenRequest addTarget @property {number|null} [removeTarget] ListenRequest removeTarget @property {Object.<string,string>|null} [labels] ListenRequest labels Constructs a new ListenRequest. @memberof google.firestore.v1 @classdesc Represents a ListenRequest. @implements IListenRequest @constructor @param {google.firestore.v1.IListenRequest=} [properties] Properties to set
[ "Properties", "of", "a", "ListenRequest", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L4629-L4635
8,984
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
ListenResponse
function ListenResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function ListenResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "ListenResponse", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a ListenResponse. @memberof google.firestore.v1 @interface IListenResponse @property {google.firestore.v1.ITargetChange|null} [targetChange] ListenResponse targetChange @property {google.firestore.v1.IDocumentChange|null} [documentChange] ListenResponse documentChange @property {google.firestore.v1.IDocumentDelete|null} [documentDelete] ListenResponse documentDelete @property {google.firestore.v1.IDocumentRemove|null} [documentRemove] ListenResponse documentRemove @property {google.firestore.v1.IExistenceFilter|null} [filter] ListenResponse filter Constructs a new ListenResponse. @memberof google.firestore.v1 @classdesc Represents a ListenResponse. @implements IListenResponse @constructor @param {google.firestore.v1.IListenResponse=} [properties] Properties to set
[ "Properties", "of", "a", "ListenResponse", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L4707-L4712
8,985
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
Target
function Target(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function Target(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "Target", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a Target. @memberof google.firestore.v1 @interface ITarget @property {google.firestore.v1.Target.IQueryTarget|null} [query] Target query @property {google.firestore.v1.Target.IDocumentsTarget|null} [documents] Target documents @property {Uint8Array|null} [resumeToken] Target resumeToken @property {google.protobuf.ITimestamp|null} [readTime] Target readTime @property {number|null} [targetId] Target targetId @property {boolean|null} [once] Target once Constructs a new Target. @memberof google.firestore.v1 @classdesc Represents a Target. @implements ITarget @constructor @param {google.firestore.v1.ITarget=} [properties] Properties to set
[ "Properties", "of", "a", "Target", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L4793-L4798
8,986
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
QueryTarget
function QueryTarget(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function QueryTarget(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "QueryTarget", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a QueryTarget. @memberof google.firestore.v1.Target @interface IQueryTarget @property {string|null} [parent] QueryTarget parent @property {google.firestore.v1.IStructuredQuery|null} [structuredQuery] QueryTarget structuredQuery Constructs a new QueryTarget. @memberof google.firestore.v1.Target @classdesc Represents a QueryTarget. @implements IQueryTarget @constructor @param {google.firestore.v1.Target.IQueryTarget=} [properties] Properties to set
[ "Properties", "of", "a", "QueryTarget", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L4927-L4932
8,987
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
TargetChange
function TargetChange(properties) { this.targetIds = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function TargetChange(properties) { this.targetIds = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "TargetChange", "(", "properties", ")", "{", "this", ".", "targetIds", "=", "[", "]", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a TargetChange. @memberof google.firestore.v1 @interface ITargetChange @property {google.firestore.v1.TargetChange.TargetChangeType|null} [targetChangeType] TargetChange targetChangeType @property {Array.<number>|null} [targetIds] TargetChange targetIds @property {google.rpc.IStatus|null} [cause] TargetChange cause @property {Uint8Array|null} [resumeToken] TargetChange resumeToken @property {google.protobuf.ITimestamp|null} [readTime] TargetChange readTime Constructs a new TargetChange. @memberof google.firestore.v1 @classdesc Represents a TargetChange. @implements ITargetChange @constructor @param {google.firestore.v1.ITargetChange=} [properties] Properties to set
[ "Properties", "of", "a", "TargetChange", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L4991-L4997
8,988
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
ListCollectionIdsRequest
function ListCollectionIdsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function ListCollectionIdsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "ListCollectionIdsRequest", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a ListCollectionIdsRequest. @memberof google.firestore.v1 @interface IListCollectionIdsRequest @property {string|null} [parent] ListCollectionIdsRequest parent @property {number|null} [pageSize] ListCollectionIdsRequest pageSize @property {string|null} [pageToken] ListCollectionIdsRequest pageToken Constructs a new ListCollectionIdsRequest. @memberof google.firestore.v1 @classdesc Represents a ListCollectionIdsRequest. @implements IListCollectionIdsRequest @constructor @param {google.firestore.v1.IListCollectionIdsRequest=} [properties] Properties to set
[ "Properties", "of", "a", "ListCollectionIdsRequest", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L5081-L5086
8,989
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
ListCollectionIdsResponse
function ListCollectionIdsResponse(properties) { this.collectionIds = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function ListCollectionIdsResponse(properties) { this.collectionIds = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "ListCollectionIdsResponse", "(", "properties", ")", "{", "this", ".", "collectionIds", "=", "[", "]", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a ListCollectionIdsResponse. @memberof google.firestore.v1 @interface IListCollectionIdsResponse @property {Array.<string>|null} [collectionIds] ListCollectionIdsResponse collectionIds @property {string|null} [nextPageToken] ListCollectionIdsResponse nextPageToken Constructs a new ListCollectionIdsResponse. @memberof google.firestore.v1 @classdesc Represents a ListCollectionIdsResponse. @implements IListCollectionIdsResponse @constructor @param {google.firestore.v1.IListCollectionIdsResponse=} [properties] Properties to set
[ "Properties", "of", "a", "ListCollectionIdsResponse", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L5133-L5139
8,990
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
StructuredQuery
function StructuredQuery(properties) { this.from = []; this.orderBy = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function StructuredQuery(properties) { this.from = []; this.orderBy = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "StructuredQuery", "(", "properties", ")", "{", "this", ".", "from", "=", "[", "]", ";", "this", ".", "orderBy", "=", "[", "]", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a StructuredQuery. @memberof google.firestore.v1 @interface IStructuredQuery @property {google.firestore.v1.StructuredQuery.IProjection|null} [select] StructuredQuery select @property {Array.<google.firestore.v1.StructuredQuery.ICollectionSelector>|null} [from] StructuredQuery from @property {google.firestore.v1.StructuredQuery.IFilter|null} [where] StructuredQuery where @property {Array.<google.firestore.v1.StructuredQuery.IOrder>|null} [orderBy] StructuredQuery orderBy @property {google.firestore.v1.ICursor|null} [startAt] StructuredQuery startAt @property {google.firestore.v1.ICursor|null} [endAt] StructuredQuery endAt @property {number|null} [offset] StructuredQuery offset @property {google.protobuf.IInt32Value|null} [limit] StructuredQuery limit Constructs a new StructuredQuery. @memberof google.firestore.v1 @classdesc Represents a StructuredQuery. @implements IStructuredQuery @constructor @param {google.firestore.v1.IStructuredQuery=} [properties] Properties to set
[ "Properties", "of", "a", "StructuredQuery", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L5184-L5191
8,991
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
CollectionSelector
function CollectionSelector(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function CollectionSelector(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "CollectionSelector", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a CollectionSelector. @memberof google.firestore.v1.StructuredQuery @interface ICollectionSelector @property {string|null} [collectionId] CollectionSelector collectionId @property {boolean|null} [allDescendants] CollectionSelector allDescendants Constructs a new CollectionSelector. @memberof google.firestore.v1.StructuredQuery @classdesc Represents a CollectionSelector. @implements ICollectionSelector @constructor @param {google.firestore.v1.StructuredQuery.ICollectionSelector=} [properties] Properties to set
[ "Properties", "of", "a", "CollectionSelector", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L5275-L5280
8,992
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
Filter
function Filter(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function Filter(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "Filter", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a Filter. @memberof google.firestore.v1.StructuredQuery @interface IFilter @property {google.firestore.v1.StructuredQuery.ICompositeFilter|null} [compositeFilter] Filter compositeFilter @property {google.firestore.v1.StructuredQuery.IFieldFilter|null} [fieldFilter] Filter fieldFilter @property {google.firestore.v1.StructuredQuery.IUnaryFilter|null} [unaryFilter] Filter unaryFilter Constructs a new Filter. @memberof google.firestore.v1.StructuredQuery @classdesc Represents a Filter. @implements IFilter @constructor @param {google.firestore.v1.StructuredQuery.IFilter=} [properties] Properties to set
[ "Properties", "of", "a", "Filter", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L5320-L5325
8,993
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
CompositeFilter
function CompositeFilter(properties) { this.filters = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function CompositeFilter(properties) { this.filters = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "CompositeFilter", "(", "properties", ")", "{", "this", ".", "filters", "=", "[", "]", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a CompositeFilter. @memberof google.firestore.v1.StructuredQuery @interface ICompositeFilter @property {google.firestore.v1.StructuredQuery.CompositeFilter.Operator|null} [op] CompositeFilter op @property {Array.<google.firestore.v1.StructuredQuery.IFilter>|null} [filters] CompositeFilter filters Constructs a new CompositeFilter. @memberof google.firestore.v1.StructuredQuery @classdesc Represents a CompositeFilter. @implements ICompositeFilter @constructor @param {google.firestore.v1.StructuredQuery.ICompositeFilter=} [properties] Properties to set
[ "Properties", "of", "a", "CompositeFilter", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L5386-L5392
8,994
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
FieldFilter
function FieldFilter(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function FieldFilter(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "FieldFilter", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a FieldFilter. @memberof google.firestore.v1.StructuredQuery @interface IFieldFilter @property {google.firestore.v1.StructuredQuery.IFieldReference|null} [field] FieldFilter field @property {google.firestore.v1.StructuredQuery.FieldFilter.Operator|null} [op] FieldFilter op @property {google.firestore.v1.IValue|null} [value] FieldFilter value Constructs a new FieldFilter. @memberof google.firestore.v1.StructuredQuery @classdesc Represents a FieldFilter. @implements IFieldFilter @constructor @param {google.firestore.v1.StructuredQuery.IFieldFilter=} [properties] Properties to set
[ "Properties", "of", "a", "FieldFilter", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L5446-L5451
8,995
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
UnaryFilter
function UnaryFilter(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function UnaryFilter(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "UnaryFilter", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of an UnaryFilter. @memberof google.firestore.v1.StructuredQuery @interface IUnaryFilter @property {google.firestore.v1.StructuredQuery.UnaryFilter.Operator|null} [op] UnaryFilter op @property {google.firestore.v1.StructuredQuery.IFieldReference|null} [field] UnaryFilter field Constructs a new UnaryFilter. @memberof google.firestore.v1.StructuredQuery @classdesc Represents an UnaryFilter. @implements IUnaryFilter @constructor @param {google.firestore.v1.StructuredQuery.IUnaryFilter=} [properties] Properties to set
[ "Properties", "of", "an", "UnaryFilter", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L5522-L5527
8,996
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
FieldReference
function FieldReference(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function FieldReference(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "FieldReference", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a FieldReference. @memberof google.firestore.v1.StructuredQuery @interface IFieldReference @property {string|null} [fieldPath] FieldReference fieldPath Constructs a new FieldReference. @memberof google.firestore.v1.StructuredQuery @classdesc Represents a FieldReference. @implements IFieldReference @constructor @param {google.firestore.v1.StructuredQuery.IFieldReference=} [properties] Properties to set
[ "Properties", "of", "a", "FieldReference", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L5595-L5600
8,997
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
Order
function Order(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function Order(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "Order", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of an Order. @memberof google.firestore.v1.StructuredQuery @interface IOrder @property {google.firestore.v1.StructuredQuery.IFieldReference|null} [field] Order field @property {google.firestore.v1.StructuredQuery.Direction|null} [direction] Order direction Constructs a new Order. @memberof google.firestore.v1.StructuredQuery @classdesc Represents an Order. @implements IOrder @constructor @param {google.firestore.v1.StructuredQuery.IOrder=} [properties] Properties to set
[ "Properties", "of", "an", "Order", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L5631-L5636
8,998
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
Cursor
function Cursor(properties) { this.values = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function Cursor(properties) { this.values = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "Cursor", "(", "properties", ")", "{", "this", ".", "values", "=", "[", "]", ";", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a Cursor. @memberof google.firestore.v1 @interface ICursor @property {Array.<google.firestore.v1.IValue>|null} [values] Cursor values @property {boolean|null} [before] Cursor before Constructs a new Cursor. @memberof google.firestore.v1 @classdesc Represents a Cursor. @implements ICursor @constructor @param {google.firestore.v1.ICursor=} [properties] Properties to set
[ "Properties", "of", "a", "Cursor", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L5730-L5736
8,999
googleapis/nodejs-firestore
dev/protos/firestore_proto_api.js
Write
function Write(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
javascript
function Write(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; }
[ "function", "Write", "(", "properties", ")", "{", "if", "(", "properties", ")", "for", "(", "var", "keys", "=", "Object", ".", "keys", "(", "properties", ")", ",", "i", "=", "0", ";", "i", "<", "keys", ".", "length", ";", "++", "i", ")", "if", "(", "properties", "[", "keys", "[", "i", "]", "]", "!=", "null", ")", "this", "[", "keys", "[", "i", "]", "]", "=", "properties", "[", "keys", "[", "i", "]", "]", ";", "}" ]
Properties of a Write. @memberof google.firestore.v1 @interface IWrite @property {google.firestore.v1.IDocument|null} [update] Write update @property {string|null} ["delete"] Write delete @property {google.firestore.v1.IDocumentTransform|null} [transform] Write transform @property {google.firestore.v1.IDocumentMask|null} [updateMask] Write updateMask @property {google.firestore.v1.IPrecondition|null} [currentDocument] Write currentDocument Constructs a new Write. @memberof google.firestore.v1 @classdesc Represents a Write. @implements IWrite @constructor @param {google.firestore.v1.IWrite=} [properties] Properties to set
[ "Properties", "of", "a", "Write", "." ]
c1192504e2d2ebe505aaf952227f377017f43bdc
https://github.com/googleapis/nodejs-firestore/blob/c1192504e2d2ebe505aaf952227f377017f43bdc/dev/protos/firestore_proto_api.js#L5778-L5783