UNPKG

@google-cloud/firestore

Version:
1 lines 272 kB
(e=>{"function"==typeof define&&define.amd?define(["protobufjs/minimal"],e):"function"==typeof require&&"object"==typeof module&&module&&module.exports&&(module.exports=e(require("protobufjs/minimal")))})(function(r){var e,t,o,n,i,L,a=r.util,s=r.roots.firestore_admin_v1||(r.roots.firestore_admin_v1={});function l(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function F(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function p(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function U(e){if(this.activeKeyVersion=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function B(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function M(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function u(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function V(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function G(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function J(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Y(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function q(e){if(this.indexes=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function W(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function c(e){if(this.fields=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function g(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function z(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function H(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function f(e,t,o){r.rpc.Service.call(this,e,t,o)}function K(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function X(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Z(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Q(e){if(this.databases=[],this.unreachable=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function $(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ee(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function te(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function oe(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function re(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ne(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ie(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ae(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function se(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function le(e){if(this.backupSchedules=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function pe(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ue(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ce(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ge(e){if(this.indexes=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function fe(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function de(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ye(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function me(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function be(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Oe(e){if(this.fields=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function he(e){if(this.collectionIds=[],this.namespaceIds=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Se(e){if(this.collectionIds=[],this.namespaceIds=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ve(e){if(this.collectionIds=[],this.namespaceIds=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Ee(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Te(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Ie(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function je(e){if(this.backups=[],this.unreachable=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Ne(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Pe(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function d(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function y(e){if(this.indexConfigDeltas=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function De(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function we(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function m(e){if(this.collectionIds=[],this.namespaceIds=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function b(e){if(this.collectionIds=[],this.namespaceIds=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function O(e){if(this.collectionIds=[],this.namespaceIds=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ke(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function h(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Re(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function S(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Ce(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function xe(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Ae(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function v(e){if(this.pattern=[],this.style=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function _e(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Le(e){if(this.rules=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function E(e){if(this.additionalBindings=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Fe(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Ue(e){if(this.destinations=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function T(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function I(e){if(this.methodSettings=[],this.codeownerGithubTeams=[],this.librarySettings=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Be(e){if(this.serviceClassNames={},e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Me(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Ve(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Ge(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Je(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Ye(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function j(e){if(this.renamedServices={},this.renamedResources={},this.ignoredResources=[],this.forcedNamespaceAliases=[],this.handwrittenSignatures=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function qe(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function We(e){if(this.renamedServices={},e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ze(e){if(this.autoPopulatedFields=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function He(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Ke(e){if(this.methods=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Xe(e){if(this.file=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function N(e){if(this.dependency=[],this.publicDependency=[],this.weakDependency=[],this.messageType=[],this.enumType=[],this.service=[],this.extension=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function P(e){if(this.field=[],this.extension=[],this.nestedType=[],this.enumType=[],this.extensionRange=[],this.oneofDecl=[],this.reservedRange=[],this.reservedName=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Ze(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Qe(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function $e(e){if(this.uninterpretedOption=[],this.declaration=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function et(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function D(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function tt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ot(e){if(this.value=[],this.reservedRange=[],this.reservedName=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function rt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function nt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function it(e){if(this.method=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function at(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function w(e){if(this.uninterpretedOption=[],this[".google.api.resourceDefinition"]=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function k(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function R(e){if(this.targets=[],this.editionDefaults=[],this.uninterpretedOption=[],this[".google.api.fieldBehavior"]=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function st(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function lt(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function pt(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ut(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ct(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function C(e){if(this.uninterpretedOption=[],this[".google.api.methodSignature"]=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function x(e){if(this.name=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function gt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function A(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ft(e){if(this.defaults=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function dt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function yt(e){if(this.location=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function mt(e){if(this.path=[],this.span=[],this.leadingDetachedComments=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function bt(e){if(this.annotation=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Ot(e){if(this.path=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ht(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function St(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function vt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Et(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Tt(e){if(this.paths=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function It(e){if(this.fields={},e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function _(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function jt(e){if(this.values=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Nt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Pt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Dt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function wt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function kt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Rt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Ct(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function xt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function At(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function _t(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Lt(e,t,o){r.rpc.Service.call(this,e,t,o)}function Ft(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Ut(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Bt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Mt(e){if(this.operations=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Vt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Gt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Jt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Yt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function qt(e){if(this.details=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}return s.google=((L={}).firestore=((n={}).admin=((o={}).v1=((e={}).Backup=(l.prototype.name="",l.prototype.database="",l.prototype.databaseUid="",l.prototype.snapshotTime=null,l.prototype.expireTime=null,l.prototype.stats=null,l.prototype.state=0,l.fromObject=function(e){if(e instanceof s.google.firestore.admin.v1.Backup)return e;var t=new s.google.firestore.admin.v1.Backup;if(null!=e.name&&(t.name=String(e.name)),null!=e.database&&(t.database=String(e.database)),null!=e.databaseUid&&(t.databaseUid=String(e.databaseUid)),null!=e.snapshotTime){if("object"!=typeof e.snapshotTime)throw TypeError(".google.firestore.admin.v1.Backup.snapshotTime: object expected");t.snapshotTime=s.google.protobuf.Timestamp.fromObject(e.snapshotTime)}if(null!=e.expireTime){if("object"!=typeof e.expireTime)throw TypeError(".google.firestore.admin.v1.Backup.expireTime: object expected");t.expireTime=s.google.protobuf.Timestamp.fromObject(e.expireTime)}if(null!=e.stats){if("object"!=typeof e.stats)throw TypeError(".google.firestore.admin.v1.Backup.stats: object expected");t.stats=s.google.firestore.admin.v1.Backup.Stats.fromObject(e.stats)}switch(e.state){default:"number"==typeof e.state&&(t.state=e.state);break;case"STATE_UNSPECIFIED":case 0:t.state=0;break;case"CREATING":case 1:t.state=1;break;case"READY":case 2:t.state=2;break;case"NOT_AVAILABLE":case 3:t.state=3}return t},l.toObject=function(e,t){var o={};return(t=t||{}).defaults&&(o.name="",o.database="",o.snapshotTime=null,o.expireTime=null,o.stats=null,o.databaseUid="",o.state=t.enums===String?"STATE_UNSPECIFIED":0),null!=e.name&&e.hasOwnProperty("name")&&(o.name=e.name),null!=e.database&&e.hasOwnProperty("database")&&(o.database=e.database),null!=e.snapshotTime&&e.hasOwnProperty("snapshotTime")&&(o.snapshotTime=s.google.protobuf.Timestamp.toObject(e.snapshotTime,t)),null!=e.expireTime&&e.hasOwnProperty("expireTime")&&(o.expireTime=s.google.protobuf.Timestamp.toObject(e.expireTime,t)),null!=e.stats&&e.hasOwnProperty("stats")&&(o.stats=s.google.firestore.admin.v1.Backup.Stats.toObject(e.stats,t)),null!=e.databaseUid&&e.hasOwnProperty("databaseUid")&&(o.databaseUid=e.databaseUid),null!=e.state&&e.hasOwnProperty("state")&&(o.state=t.enums!==String||void 0===s.google.firestore.admin.v1.Backup.State[e.state]?e.state:s.google.firestore.admin.v1.Backup.State[e.state]),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},l.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.firestore.admin.v1.Backup"},l.Stats=(F.prototype.sizeBytes=a.Long?a.Long.fromBits(0,0,!1):0,F.prototype.documentCount=a.Long?a.Long.fromBits(0,0,!1):0,F.prototype.indexCount=a.Long?a.Long.fromBits(0,0,!1):0,F.fromObject=function(e){var t;return e instanceof s.google.firestore.admin.v1.Backup.Stats?e:(t=new s.google.firestore.admin.v1.Backup.Stats,null!=e.sizeBytes&&(a.Long?(t.sizeBytes=a.Long.fromValue(e.sizeBytes)).unsigned=!1:"string"==typeof e.sizeBytes?t.sizeBytes=parseInt(e.sizeBytes,10):"number"==typeof e.sizeBytes?t.sizeBytes=e.sizeBytes:"object"==typeof e.sizeBytes&&(t.sizeBytes=new a.LongBits(e.sizeBytes.low>>>0,e.sizeBytes.high>>>0).toNumber())),null!=e.documentCount&&(a.Long?(t.documentCount=a.Long.fromValue(e.documentCount)).unsigned=!1:"string"==typeof e.documentCount?t.documentCount=parseInt(e.documentCount,10):"number"==typeof e.documentCount?t.documentCount=e.documentCount:"object"==typeof e.documentCount&&(t.documentCount=new a.LongBits(e.documentCount.low>>>0,e.documentCount.high>>>0).toNumber())),null!=e.indexCount&&(a.Long?(t.indexCount=a.Long.fromValue(e.indexCount)).unsigned=!1:"string"==typeof e.indexCount?t.indexCount=parseInt(e.indexCount,10):"number"==typeof e.indexCount?t.indexCount=e.indexCount:"object"==typeof e.indexCount&&(t.indexCount=new a.LongBits(e.indexCount.low>>>0,e.indexCount.high>>>0).toNumber())),t)},F.toObject=function(e,t){var o,r={};return(t=t||{}).defaults&&(a.Long?(o=new a.Long(0,0,!1),r.sizeBytes=t.longs===String?o.toString():t.longs===Number?o.toNumber():o):r.sizeBytes=t.longs===String?"0":0,a.Long?(o=new a.Long(0,0,!1),r.documentCount=t.longs===String?o.toString():t.longs===Number?o.toNumber():o):r.documentCount=t.longs===String?"0":0,a.Long?(o=new a.Long(0,0,!1),r.indexCount=t.longs===String?o.toString():t.longs===Number?o.toNumber():o):r.indexCount=t.longs===String?"0":0),null!=e.sizeBytes&&e.hasOwnProperty("sizeBytes")&&("number"==typeof e.sizeBytes?r.sizeBytes=t.longs===String?String(e.sizeBytes):e.sizeBytes:r.sizeBytes=t.longs===String?a.Long.prototype.toString.call(e.sizeBytes):t.longs===Number?new a.LongBits(e.sizeBytes.low>>>0,e.sizeBytes.high>>>0).toNumber():e.sizeBytes),null!=e.documentCount&&e.hasOwnProperty("documentCount")&&("number"==typeof e.documentCount?r.documentCount=t.longs===String?String(e.documentCount):e.documentCount:r.documentCount=t.longs===String?a.Long.prototype.toString.call(e.documentCount):t.longs===Number?new a.LongBits(e.documentCount.low>>>0,e.documentCount.high>>>0).toNumber():e.documentCount),null!=e.indexCount&&e.hasOwnProperty("indexCount")&&("number"==typeof e.indexCount?r.indexCount=t.longs===String?String(e.indexCount):e.indexCount:r.indexCount=t.longs===String?a.Long.prototype.toString.call(e.indexCount):t.longs===Number?new a.LongBits(e.indexCount.low>>>0,e.indexCount.high>>>0).toNumber():e.indexCount),r},F.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},F.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.firestore.admin.v1.Backup.Stats"},F),l.State=(i={},(t=Object.create(i))[i[0]="STATE_UNSPECIFIED"]="STATE_UNSPECIFIED",t[i[1]="CREATING"]="CREATING",t[i[2]="READY"]="READY",t[i[3]="NOT_AVAILABLE"]="NOT_AVAILABLE",t),l),e.Database=(p.prototype.name="",p.prototype.uid="",p.prototype.createTime=null,p.prototype.updateTime=null,p.prototype.deleteTime=null,p.prototype.locationId="",p.prototype.type=0,p.prototype.concurrencyMode=0,p.prototype.versionRetentionPeriod=null,p.prototype.earliestVersionTime=null,p.prototype.pointInTimeRecoveryEnablement=0,p.prototype.appEngineIntegrationMode=0,p.prototype.keyPrefix="",p.prototype.deleteProtectionState=0,p.prototype.cmekConfig=null,p.prototype.previousId="",p.prototype.sourceInfo=null,p.prototype.etag="",p.fromObject=function(e){if(e instanceof s.google.firestore.admin.v1.Database)return e;var t=new s.google.firestore.admin.v1.Database;if(null!=e.name&&(t.name=String(e.name)),null!=e.uid&&(t.uid=String(e.uid)),null!=e.createTime){if("object"!=typeof e.createTime)throw TypeError(".google.firestore.admin.v1.Database.createTime: object expected");t.createTime=s.google.protobuf.Timestamp.fromObject(e.createTime)}if(null!=e.updateTime){if("object"!=typeof e.updateTime)throw TypeError(".google.firestore.admin.v1.Database.updateTime: object expected");t.updateTime=s.google.protobuf.Timestamp.fromObject(e.updateTime)}if(null!=e.deleteTime){if("object"!=typeof e.deleteTime)throw TypeError(".google.firestore.admin.v1.Database.deleteTime: object expected");t.deleteTime=s.google.protobuf.Timestamp.fromObject(e.deleteTime)}switch(null!=e.locationId&&(t.locationId=String(e.locationId)),e.type){default:"number"==typeof e.type&&(t.type=e.type);break;case"DATABASE_TYPE_UNSPECIFIED":case 0:t.type=0;break;case"FIRESTORE_NATIVE":case 1:t.type=1;break;case"DATASTORE_MODE":case 2:t.type=2}switch(e.concurrencyMode){default:"number"==typeof e.concurrencyMode&&(t.concurrencyMode=e.concurrencyMode);break;case"CONCURRENCY_MODE_UNSPECIFIED":case 0:t.concurrencyMode=0;break;case"OPTIMISTIC":case 1:t.concurrencyMode=1;break;case"PESSIMISTIC":case 2:t.concurrencyMode=2;break;case"OPTIMISTIC_WITH_ENTITY_GROUPS":case 3:t.concurrencyMode=3}if(null!=e.versionRetentionPeriod){if("object"!=typeof e.versionRetentionPeriod)throw TypeError(".google.firestore.admin.v1.Database.versionRetentionPeriod: object expected");t.versionRetentionPeriod=s.google.protobuf.Duration.fromObject(e.versionRetentionPeriod)}if(null!=e.earliestVersionTime){if("object"!=typeof e.earliestVersionTime)throw TypeError(".google.firestore.admin.v1.Database.earliestVersionTime: object expected");t.earliestVersionTime=s.google.protobuf.Timestamp.fromObject(e.earliestVersionTime)}switch(e.pointInTimeRecoveryEnablement){default:"number"==typeof e.pointInTimeRecoveryEnablement&&(t.pointInTimeRecoveryEnablement=e.pointInTimeRecoveryEnablement);break;case"POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED":case 0:t.pointInTimeRecoveryEnablement=0;break;case"POINT_IN_TIME_RECOVERY_ENABLED":case 1:t.pointInTimeRecoveryEnablement=1;break;case"POINT_IN_TIME_RECOVERY_DISABLED":case 2:t.pointInTimeRecoveryEnablement=2}switch(e.appEngineIntegrationMode){default:"number"==typeof e.appEngineIntegrationMode&&(t.appEngineIntegrationMode=e.appEngineIntegrationMode);break;case"APP_ENGINE_INTEGRATION_MODE_UNSPECIFIED":case 0:t.appEngineIntegrationMode=0;break;case"ENABLED":case 1:t.appEngineIntegrationMode=1;break;case"DISABLED":case 2:t.appEngineIntegrationMode=2}switch(null!=e.keyPrefix&&(t.keyPrefix=String(e.keyPrefix)),e.deleteProtectionState){default:"number"==typeof e.deleteProtectionState&&(t.deleteProtectionState=e.deleteProtectionState);break;case"DELETE_PROTECTION_STATE_UNSPECIFIED":case 0:t.deleteProtectionState=0;break;case"DELETE_PROTECTION_DISABLED":case 1:t.deleteProtectionState=1;break;case"DELETE_PROTECTION_ENABLED":case 2:t.deleteProtectionState=2}if(null!=e.cmekConfig){if("object"!=typeof e.cmekConfig)throw TypeError(".google.firestore.admin.v1.Database.cmekConfig: object expected");t.cmekConfig=s.google.firestore.admin.v1.Database.CmekConfig.fromObject(e.cmekConfig)}if(null!=e.previousId&&(t.previousId=String(e.previousId)),null!=e.sourceInfo){if("object"!=typeof e.sourceInfo)throw TypeError(".google.firestore.admin.v1.Database.sourceInfo: object expected");t.sourceInfo=s.google.firestore.admin.v1.Database.SourceInfo.fromObject(e.sourceInfo)}return null!=e.etag&&(t.etag=String(e.etag)),t},p.toObject=function(e,t){var o={};return(t=t||{}).defaults&&(o.name="",o.uid="",o.createTime=null,o.updateTime=null,o.deleteTime=null,o.locationId="",o.type=t.enums===String?"DATABASE_TYPE_UNSPECIFIED":0,o.concurrencyMode=t.enums===String?"CONCURRENCY_MODE_UNSPECIFIED":0,o.versionRetentionPeriod=null,o.earliestVersionTime=null,o.appEngineIntegrationMode=t.enums===String?"APP_ENGINE_INTEGRATION_MODE_UNSPECIFIED":0,o.keyPrefix="",o.pointInTimeRecoveryEnablement=t.enums===String?"POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED":0,o.deleteProtectionState=t.enums===String?"DELETE_PROTECTION_STATE_UNSPECIFIED":0,o.cmekConfig=null,o.previousId="",o.sourceInfo=null,o.etag=""),null!=e.name&&e.hasOwnProperty("name")&&(o.name=e.name),null!=e.uid&&e.hasOwnProperty("uid")&&(o.uid=e.uid),null!=e.createTime&&e.hasOwnProperty("createTime")&&(o.createTime=s.google.protobuf.Timestamp.toObject(e.createTime,t)),null!=e.updateTime&&e.hasOwnProperty("updateTime")&&(o.updateTime=s.google.protobuf.Timestamp.toObject(e.updateTime,t)),null!=e.deleteTime&&e.hasOwnProperty("deleteTime")&&(o.deleteTime=s.google.protobuf.Timestamp.toObject(e.deleteTime,t)),null!=e.locationId&&e.hasOwnProperty("locationId")&&(o.locationId=e.locationId),null!=e.type&&e.hasOwnProperty("type")&&(o.type=t.enums!==String||void 0===s.google.firestore.admin.v1.Database.DatabaseType[e.type]?e.type:s.google.firestore.admin.v1.Database.DatabaseType[e.type]),null!=e.concurrencyMode&&e.hasOwnProperty("concurrencyMode")&&(o.concurrencyMode=t.enums!==String||void 0===s.google.firestore.admin.v1.Database.ConcurrencyMode[e.concurrencyMode]?e.concurrencyMode:s.google.firestore.admin.v1.Database.ConcurrencyMode[e.concurrencyMode]),null!=e.versionRetentionPeriod&&e.hasOwnProperty("versionRetentionPeriod")&&(o.versionRetentionPeriod=s.google.protobuf.Duration.toObject(e.versionRetentionPeriod,t)),null!=e.earliestVersionTime&&e.hasOwnProperty("earliestVersionTime")&&(o.earliestVersionTime=s.google.protobuf.Timestamp.toObject(e.earliestVersionTime,t)),null!=e.appEngineIntegrationMode&&e.hasOwnProperty("appEngineIntegrationMode")&&(o.appEngineIntegrationMode=t.enums!==String||void 0===s.google.firestore.admin.v1.Database.AppEngineIntegrationMode[e.appEngineIntegrationMode]?e.appEngineIntegrationMode:s.google.firestore.admin.v1.Database.AppEngineIntegrationMode[e.appEngineIntegrationMode]),null!=e.keyPrefix&&e.hasOwnProperty("keyPrefix")&&(o.keyPrefix=e.keyPrefix),null!=e.pointInTimeRecoveryEnablement&&e.hasOwnProperty("pointInTimeRecoveryEnablement")&&(o.pointInTimeRecoveryEnablement=t.enums!==String||void 0===s.google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement[e.pointInTimeRecoveryEnablement]?e.pointInTimeRecoveryEnablement:s.google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement[e.pointInTimeRecoveryEnablement]),null!=e.deleteProtectionState&&e.hasOwnProperty("deleteProtectionState")&&(o.deleteProtectionState=t.enums!==String||void 0===s.google.firestore.admin.v1.Database.DeleteProtectionState[e.deleteProtectionState]?e.deleteProtectionState:s.google.firestore.admin.v1.Database.DeleteProtectionState[e.deleteProtectionState]),null!=e.cmekConfig&&e.hasOwnProperty("cmekConfig")&&(o.cmekConfig=s.google.firestore.admin.v1.Database.CmekConfig.toObject(e.cmekConfig,t)),null!=e.previousId&&e.hasOwnProperty("previousId")&&(o.previousId=e.previousId),null!=e.sourceInfo&&e.hasOwnProperty("sourceInfo")&&(o.sourceInfo=s.google.firestore.admin.v1.Database.SourceInfo.toObject(e.sourceInfo,t)),null!=e.etag&&e.hasOwnProperty("etag")&&(o.etag=e.etag),o},p.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},p.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.firestore.admin.v1.Database"},p.DatabaseType=(i={},(t=Object.create(i))[i[0]="DATABASE_TYPE_UNSPECIFIED"]="DATABASE_TYPE_UNSPECIFIED",t[i[1]="FIRESTORE_NATIVE"]="FIRESTORE_NATIVE",t[i[2]="DATASTORE_MODE"]="DATASTORE_MODE",t),p.ConcurrencyMode=(i={},(t=Object.create(i))[i[0]="CONCURRENCY_MODE_UNSPECIFIED"]="CONCURRENCY_MODE_UNSPECIFIED",t[i[1]="OPTIMISTIC"]="OPTIMISTIC",t[i[2]="PESSIMISTIC"]="PESSIMISTIC",t[i[3]="OPTIMISTIC_WITH_ENTITY_GROUPS"]="OPTIMISTIC_WITH_ENTITY_GROUPS",t),p.PointInTimeRecoveryEnablement=(i={},(t=Object.create(i))[i[0]="POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED"]="POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED",t[i[1]="POINT_IN_TIME_RECOVERY_ENABLED"]="POINT_IN_TIME_RECOVERY_ENABLED",t[i[2]="POINT_IN_TIME_RECOVERY_DISABLED"]="POINT_IN_TIME_RECOVERY_DISABLED",t),p.AppEngineIntegrationMode=(i={},(t=Object.create(i))[i[0]="APP_ENGINE_INTEGRATION_MODE_UNSPECIFIED"]="APP_ENGINE_INTEGRATION_MODE_UNSPECIFIED",t[i[1]="ENABLED"]="ENABLED",t[i[2]="DISABLED"]="DISABLED",t),p.DeleteProtectionState=(i={},(t=Object.create(i))[i[0]="DELETE_PROTECTION_STATE_UNSPECIFIED"]="DELETE_PROTECTION_STATE_UNSPECIFIED",t[i[1]="DELETE_PROTECTION_DISABLED"]="DELETE_PROTECTION_DISABLED",t[i[2]="DELETE_PROTECTION_ENABLED"]="DELETE_PROTECTION_ENABLED",t),p.CmekConfig=(U.prototype.kmsKeyName="",U.prototype.activeKeyVersion=a.emptyArray,U.fromObject=function(e){if(e instanceof s.google.firestore.admin.v1.Database.CmekConfig)return e;var t=new s.google.firestore.admin.v1.Database.CmekConfig;if(null!=e.kmsKeyName&&(t.kmsKeyName=String(e.kmsKeyName)),e.activeKeyVersion){if(!Array.isArray(e.activeKeyVersion))throw TypeError(".google.firestore.admin.v1.Database.CmekConfig.activeKeyVersion: array expected");t.activeKeyVersion=[];for(var o=0;o<e.activeKeyVersion.length;++o)t.activeKeyVersion[o]=String(e.activeKeyVersion[o])}return t},U.toObject=function(e,t){var o={};if(((t=t||{}).arrays||t.defaults)&&(o.activeKeyVersion=[]),t.defaults&&(o.kmsKeyName=""),null!=e.kmsKeyName&&e.hasOwnProperty("kmsKeyName")&&(o.kmsKeyName=e.kmsKeyName),e.activeKeyVersion&&e.activeKeyVersion.length){o.activeKeyVersion=[];for(var r=0;r<e.activeKeyVersion.length;++r)o.activeKeyVersion[r]=e.activeKeyVersion[r]}return o},U.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},U.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.firestore.admin.v1.Database.CmekConfig"},U),p.SourceInfo=(B.prototype.backup=null,B.prototype.operation="",Object.defineProperty(B.prototype,"source",{get:a.oneOfGetter(i=["backup"]),set:a.oneOfSetter(i)}),B.fromObject=function(e){if(e instanceof s.google.firestore.admin.v1.Database.SourceInfo)return e;var t=new s.google.firestore.admin.v1.Database.SourceInfo;if(null!=e.backup){if("object"!=typeof e.backup)throw TypeError(".google.firestore.admin.v1.Database.SourceInfo.backup: object expected");t.backup=s.google.firestore.admin.v1.Database.SourceInfo.BackupSource.fromObject(e.backup)}return null!=e.operation&&(t.operation=String(e.operation)),t},B.toObject=function(e,t){var o={};return(t=t||{}).defaults&&(o.operation=""),null!=e.backup&&e.hasOwnProperty("backup")&&(o.backup=s.google.firestore.admin.v1.Database.SourceInfo.BackupSource.toObject(e.backup,t),t.oneofs)&&(o.source="backup"),null!=e.operation&&e.hasOwnProperty("operation")&&(o.operation=e.operation),o},B.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},B.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.firestore.admin.v1.Database.SourceInfo"},B.BackupSource=(M.prototype.backup="",M.fromObject=function(e){var t;return e instanceof s.google.firestore.admin.v1.Database.SourceInfo.BackupSource?e:(t=new s.google.firestore.admin.v1.Database.SourceInfo.BackupSource,null!=e.backup&&(t.backup=String(e.backup)),t)},M.toObject=function(e,t){var o={};return(t=t||{}).defaults&&(o.backup=""),null!=e.backup&&e.hasOwnProperty("backup")&&(o.backup=e.backup),o},M.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},M.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.firestore.admin.v1.Database.SourceInfo.BackupSource"},M),B),p.EncryptionConfig=(u.prototype.googleDefaultEncryption=null,u.prototype.useSourceEncryption=null,u.prototype.customerManagedEncryption=null,Object.defineProperty(u.prototype,"encryptionType",{get:a.oneOfGetter(t=["googleDefaultEncryption","useSourceEncryption","customerManagedEncryption"]),set:a.oneOfSetter(t)}),u.fromObject=function(e){if(e instanceof s.google.firestore.admin.v1.Database.EncryptionConfig)return e;var t=new s.google.firestore.admin.v1.Database.EncryptionConfig;if(null!=e.googleDefaultEncryption){if("object"!=typeof e.googleDefaultEncryption)throw TypeError(".google.firestore.admin.v1.Database.EncryptionConfig.googleDefaultEncryption: object expected");t.googleDefaultEncryption=s.google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions.fromObject(e.googleDefaultEncryption)}if(null!=e.useSourceEncryption){if("object"!=typeof e.useSourceEncryption)throw TypeError(".google.firestore.admin.v1.Database.EncryptionConfig.useSourceEncryption: object expected");t.useSourceEncryption=s.google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions.fromObject(e.useSourceEncryption)}if(null!=e.customerManagedEncryption){if("object"!=typeof e.customerManagedEncryption)throw TypeError(".google.firestore.admin.v1.Database.EncryptionConfig.customerManagedEncryption: object expected");t.customerManagedEncryption=s.google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions.fromObject(e.customerManagedEncryption)}return t},u.toObject=function(e,t){t=t||{};var o={};return null!=e.googleDefaultEncryption&&e.hasOwnProperty("googleDefaultEncryption")&&(o.googleDefaultEncryption=s.google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions.toObject(e.googleDefaultEncryption,t),t.oneofs)&&(o.encryptionType="googleDefaultEncryption"),null!=e.useSourceEncryption&&e.hasOwnProperty("useSourceEncryption")&&(o.useSourceEncryption=s.google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions.toObject(e.useSourceEncryption,t),t.oneofs)&&(o.encryptionType="useSourceEncryption"),null!=e.customerManagedEncryption&&e.hasOwnProperty("customerManagedEncryption")&&(o.customerManagedEncryption=s.google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions.toObject(e.customerManagedEncryption,t),t.oneofs)&&(o.encryptionType="customerManagedEncryption"),o},u.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},u.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.firestore.admin.v1.Database.EncryptionConfig"},u.GoogleDefaultEncryptionOptions=(V.fromObject=function(e){return e instanceof s.google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions?e:new s.google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions},V.toObject=function(){return{}},V.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},V.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions"},V),u.SourceEncryptionOptions=(G.fromObject=function(e){return e instanceof s.google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions?e:new s.google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions},G.toObject=function(){return{}},G.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},G.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions"},G),u.CustomerManagedEncryptionOptions=(J.prototype.kmsKeyName="",J.fromObject=function(e){var t;return e instanceof s.google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions?e:(t=new s.google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions,null!=e.kmsKeyName&&(t.kmsKeyName=String(e.kmsKeyName)),t)},J.toObject=function(e,t){var o={};return(t=t||{}).defaults&&(o.kmsKeyName=""),null!=e.kmsKeyName&&e.hasOwnProperty("kmsKeyName")&&(o.kmsKeyName=e.kmsKeyName),o},J.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},J.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions"},J),u),p),e.Field=(Y.prototype.name="",Y.prototype.indexConfig=null,Y.prototype.ttlConfig=null,Y.fromObject=function(e){if(e instanceof s.google.firestore.admin.v1.Field)return e;var t=new s.google.firestore.admin.v1.Field;if(null!=e.name&&(t.name=String(e.name)),null!=e.indexConfig){if("object"!=typeof e.indexConfig)throw TypeError(".google.firestore.admin.v1.Field.indexConfig: object expected");t.indexConfig=s.google.firestore.admin.v1.Field.IndexConfig.fromObject(e.indexConfig)}if(null!=e.ttlConfig){if("object"!=typeof e.ttlConfig)throw TypeError(".google.firestore.admin.v1.Field.ttlConfig: object expected");t.ttlConfig=s.google.firestore.admin.v1.Field.TtlConfig.fromObject(e.ttlConfig)}return t},Y.toObject=function(e,t){var o={};return(t=t||{}).defaults&&(o.name="",o.indexConfig=null,o.ttlConfig=null),null!=e.name&&e.hasOwnProperty("name")&&(o.name=e.name),null!=e.indexConfig&&e.hasOwnProperty("indexConfig")&&(o.indexConfig=s.google.firestore.admin.v1.Field.IndexConfig.toObject(e.indexConfig,t)),null!=e.ttlConfig&&e.hasOwnProperty("ttlConfig")&&(o.ttlConfig=s.google.firestore.admin.v1.Field.TtlConfig.toObject(e.ttlConfig,t)),o},Y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Y.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.firestore.admin.v1.Field"},Y.IndexConfig=(q.prototype.indexes=a.emptyArray,q.prototype.usesAncestorConfig=!1,q.prototype.ancestorField="",q.prototype.reverting=!1,q.fromObject=function(e){if(e instanceof s.google.firestore.admin.v1.Field.IndexConfig)return e;var t=new s.google.firestore.admin.v1.Field.IndexConfig;if(e.indexes){if(!Array.isArray(e.indexes))throw TypeError(".google.firestore.admin.v1.Field.IndexConfig.indexes: array expected");t.indexes=[];for(var o=0;o<e.indexes.length;++o){if("object"!=typeof e.indexes[o])throw TypeError(".google.firestore.admin.v1.Field.IndexConfig.indexes: object expected");t.indexes[o]=s.google.firestore.admin.v1.Index.fromObject(e.indexes[o])}}return null!=e.usesAncestorConfig&&(t.usesAncestorConfig=Boolean(e.usesAncestorConfig)),null!=e.ancestorField&&(t.ancestorField=String(e.ancestorField)),null!=e.reverting&&(t.reverting=Boolean(e.reverting)),t},q.toObject=function(e,t){var o={};if(((t=t||{}).arrays||t.defaults)&&(o.indexes=[]),t.defaults&&(o.usesAncestorConfig=!1,o.ancestorField="",o.reverting=!1),e.indexes&&e.indexes.length){o.indexes=[];for(var r=0;r<e.indexes.length;++r)o.indexes[r]=s.google.firestore.admin.v1.Index.toObject(e.indexes[r],t)}return null!=e.usesAncestorConfig&&e.hasOwnProperty("usesAncestorConfig")&&(o.usesAncestorConfig=e.usesAncestorConfig),null!=e.ancestorField&&e.hasOwnProperty("ancestorField")&&(o.ancestorField=e.ancestorField),null!=e.reverting&&e.hasOwnProperty("reverting")&&(o.reverting=e.reverting),o},q.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},q.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.firestore.admin.v1.Field.IndexConfig"},q),Y.TtlConfig=(W.prototype.state=0,W.fromObject=function(e){if(e instanceof s.google.firestore.admin.v1.Field.TtlConfig)return e;var t=new s.google.firestore.admin.v1.Field.TtlConfig;switch(e.state){default:"number"==typeof e.state&&(t.state=e.state);break;case"STATE_UNSPECIFIED":case 0:t.state=0;break;case"CREATING":case 1:t.state=1;break;case"ACTIVE":case 2:t.state=2;break;case"NEEDS_REPAIR":case 3:t.state=3}return t},W.toObject=function(e,t){var o={};return(t=t||{}).defaults&&(o.state=t.enums===String?"STATE_UNSPECIFIED":0),null!=e.state&&e.hasOwnProperty("state")&&(o.state=t.enums!==String||void 0===s.google.firestore.admin.v1.Field.TtlConfig.State[e.state]?e.state:s.google.firestore.admin.v1.Field.TtlConfig.State[e.state]),o},W.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},W.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.firestore.admin.v1.Field.TtlConfig"},W.State=(i={},(t=Object.create(i))[i[0]="STATE_UNSPECIFIED"]="STATE_UNSPECIFIED",t[i[1]="CREATING"]="CREATING",t[i[2]="ACTIVE"]="ACTIVE",t[i[3]="NEEDS_REPAIR"]="NEEDS_REPAIR",t),W),Y),e.Index=(c.prototype.name="",c.prototype.queryScope=0,c.prototype.apiScope=0,c.prototype.fields=a.emptyArray,c.prototype.state=0,c.fromObject=function(e){if(e instanceof s.google.firestore.admin.v1.Index)return e;var t=new s.google.firestore.admin.v1.Index;switch(null!=e.name&&(t.name=String(e.name)),e.queryScope){default:"number"==typeof e.queryScope&&(t.queryScope=e.queryScope);break;case"QUERY_SCOPE_UNSPECIFIED":case 0:t.queryScope=0;break;case"COLLECTION":case 1:t.queryScope=1;break;case"COLLECTION_GROUP":case 2:t.queryScope=2;break;case"COLLECTION_RECURSIVE":case 3:t.queryScope=3}switch(e.apiScope){default:"number"==typeof e.apiScope&&(t.apiScope=e.apiScope);break;case"ANY_API":case 0:t.apiScope=0;break;case"DATASTORE_MODE_API":case 1:t.apiScope=1}if(e.fields){if(!Array.isArray(e.fields))throw TypeError(".google.firestore.admin.v1.Index.fields: array expected");t.fields=[];for(var o=0;o<e.fields.length;++o){if("object"!=typeof e.fields[o])throw TypeError(".google.firestore.admin.v1.Index.fields: object expected");t.fields[o]=s.google.firestore.admin.v1.Index.IndexField.fromObject(e.fields[o])}}switch(e.state){default:"number"==typeof e.state&&(t.state=e.state);break;case"STATE_UNSPECIFIED":case 0:t.state=0;break;case"CREATING":case 1:t.state=1;break;case"READY":case 2:t.state=2;break;case"NEEDS_REPAIR":case 3:t.state=3}return t},c.toObject=function(e,t){var o={};if(((t=t||{}).arrays||t.defaults)&&(o.fields=[]),t.defaults&&(o.name="",o.queryScope=t.enums===String?"QUERY_SCOPE_UNSPECIFIED":0,o.state=t.enums===String?"STATE_UNSPECIFIED":0,o.apiScope=t.enums===String?"ANY_API":0),null!=e.name&&e.hasOwnProperty("name")&&(o.name=e.name),null!=e.queryScope&&e.hasOwnProperty("queryScope")&&(o.queryScope=t.enums!==String||void 0===s.google.firestore.admin.v1.Index.QueryScope[e.queryScope]?e.queryScope:s.google.firestore.admin.v1.Index.QueryScope[e.queryScope]),e.fields&&e.fields.length){o.fields=[];for(var r=0;r<e.fields.length;++r)o.fields[r]=s.google.firestore.admin.v1.Index.IndexField.toObject(e.fields[r],t)}return null!=e.state&&e.hasOwnProperty("state")&&(o.state=t.enums!==String||void 0===s.google.firestore.admin.v1.Index.State[e.state]?e.state:s.google.firestore.admin.v1.Index.State[e.state]),null!=e.apiScope&&e.hasOwnProperty("apiScope")&&(o.apiScope=t.enums!==String||void 0===s.google.firestore.admin.v1.Index.ApiScope[e.apiScope]?e.apiScope:s.google.firestore.admin.v1.Index.ApiScope[e.apiScope]),o},c.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},c.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.firestore.admin.v1.Index"},c.QueryScope=(i={},(t=Object.create(i))[i[0]="QUERY_SCOPE_UNSPECIFIED"]="QUERY_SCOPE_UNSPECIFIED",t[i[1]="COLLECTION"]="COLLECTION",t[i[2]="COLLECTION_GROUP"]="COLLECTION_GROUP",t[i[3]="COLLECTION_RECURSIVE"]="COLLECTION_RECURSIVE",t),c.ApiScope=(i={},(t=Object.create(i))[i[0]="ANY_API"]="ANY_API",t[i[1]="DATASTORE_MODE_API"]="DATASTORE_MODE_API",t),c.IndexField=(g.prototype.fieldPath="",g.prototype.order=null,g.prototype.arrayConfig=null,g.prototype.vectorConfig=null,Object.defineProperty(g.prototype,"valueMode",{get:a.oneOfGetter(i=["order","arrayConfig","vectorConfig"]),set:a.oneOfSetter(i)}),g.fromObject=function(e){if(e instanceof s.google.firestore.admin.v1.Index.IndexField)return e;var t=new s.google.firestore.admin.v1.Index.IndexField;switch(null!=e.fieldPath&&(t.fieldPath=String(e.fieldPath)),e.order){default:"number"==typeof e.order&&(t.order=e.order);break;case"ORDER_UNSPECIFIED":case 0:t.order=0;break;case"ASCENDING":case 1:t.order=1;break;case"DESCENDING":case 2:t.order=2}switch(e.arrayConfig){default:"number"==typeof e.arrayConfig&&(t.arrayConfig=e.arrayConfig);break;case"ARRAY_CONFIG_UNSPECIFIED":case 0:t.arrayConfig=0;break;case"CONTAINS":case 1:t.arrayConfig=1}if(null!=e.vectorConfig){if("object"!=typeof e.vectorConfig)throw TypeError(".google.firestore.admin.v1.Index.IndexField.vectorConfig: object expected");t.vectorConfig=s.google.firestore.admin.v1.Index.IndexField.VectorConfig.fromObject(e.vectorConfig)}return t},g.toObject=function(e,t){var o={};return(t=t||{}).defaults&&(o.fieldPath=""),null!=e.fieldPath&&e.hasOwnProperty("fieldPath")&&(o.fieldPath=e.fieldPath),null!=e.order&&e.hasOwnProperty("order")&&(o.order=t.enums!==String||void 0===s.google.firestore.admin.v1.Index.IndexField.Order[e.order]?e.order:s.google.firestore.admin.v1.Index.IndexField.Order[e.order],t.oneofs)&&(o.valueMode="order"),null!=e.arrayConfig&&e.hasOwnProperty("arrayConfig")&&(o.arrayConfig=t.enums!==String||void 0===s.google.firestore.admin.v1.Index.IndexField.ArrayConfig[e.arrayConfig]?e.arrayConfig:s.google.firestore.admin.v1.Index.IndexField.ArrayConfig[e.arrayConfig],t.oneofs)&&(o.valueMode="arrayConfig"),null!=e.vectorConfig&&e.hasOwnProperty("vectorConfig")&&(o.vectorConfig=s.google.firestore.admin.v1.Index.IndexField.VectorConfig.toObject(e.vectorConfig,t),t.oneofs)&&(o.valueMode="vectorConfig"),o},g.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},g.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.firestore.admin.v1.Index.IndexField"},g.Order=(i={},(t=Object.create(i))[i[0]="ORDER_UNSPECIFIED"]="ORDER_UNSPECIFIED",t[i[1]="ASCENDING"]="ASCENDING",t[i[2]="DESCENDING"]="DESCENDING",t),g.ArrayConfig=(i={},(t=Object.create(i))[i[0]="ARRAY_CONFIG_UNSPECIFIED"]="ARRAY_CONFIG_UNSPECIFIED",t[i[1]="CONTAINS"]="CONTAINS",t),g.VectorConfig=(z.prototype.dimension=0,z.prototype.flat=null,Object.defineProperty(z.prototype,"type",{get:a.oneOfGetter(i=["flat"]),set:a.oneOfSetter(i)}),z.fromObject=function(e){if(e instanceof s.google.firestore.admin.v1.Index.IndexField.VectorConfig)return e;var t=new s.google.firestore.admin.v1.Index.IndexField.VectorConfig;if(null!=e.dimension&&(t.dimension=0|e.dimension),null!=e.flat){if("object"!=typeof e.flat)throw TypeError(".google.firestore.admin.v1.Index.IndexField.VectorConfig.flat: object expected");t.flat=s.google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex.fromObject(e.flat)}return t},z.toObject=function(e,t){var o={};return(t=t||{}).defaults&&(o.dimension=0),null!=e.dimension&&e.hasOwnProperty("dimension")&&(o.dimension=e.dimension),null!=e.flat&&e.hasOwnProperty("flat")&&(o.flat=s.google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex.toObject(e.flat,t),t.oneofs)&&(o.type="flat"),o},z.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},z.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.firestore.admin.v1.Index.IndexField.VectorConfig"},z.FlatIndex=(H.fromObject=function(e){return e instanceof s.google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex?e:new s.google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex},H.toObject=function(){return{}},H.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptio