@google-cloud/bigquery-storage-api 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/protos/protos.d.ts +488 -1
- package/build/protos/protos.js +1 -1
- package/build/protos/protos.json +1 -1
- package/build/src/index.js.map +1 -1
- package/package.json +7 -7
package/build/protos/protos.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(e=>{"function"==typeof define&&define.amd?define(["protobufjs/minimal"],e):"function"==typeof require&&"object"==typeof module&&module&&module.exports&&(module.exports=e(require("google-gax/build/src/protobuf").protobufMinimal))})(function(r){var e,t,o,n,i,a,C,p=r.Reader,l=r.Writer,d=r.util,g=r.roots._google_cloud_bigquery_storage_api_protos||(r.roots._google_cloud_bigquery_storage_api_protos={});function F(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function q(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function G(e){if(this.serializedRows=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function J(e,t,o){r.rpc.Service.call(this,e,t,o)}function Y(e,t,o){r.rpc.Service.call(this,e,t,o)}function W(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function K(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function Q(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function c(e){if(this.missingValueInterpretations={},e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function u(e){if(this.rowErrors=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function ie(e){if(this.writeStreams=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function ae(e){if(this.streamErrors=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function le(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function f(e){if(this.streams=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function m(e){if(this.selectedFields=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function me(e){if(this.fields=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function y(e){if(this.fields=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function ye(e){if(this.file=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function h(e){if(this.dependency=[],this.publicDependency=[],this.weakDependency=[],this.optionDependency=[],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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function O(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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function v(e){if(this.uninterpretedOption=[],this.declaration=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function S(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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function xe(e){if(this.method=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function x(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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function E(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function P(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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function Te(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function Re(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function ke(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function T(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function R(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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function k(e){if(this.name=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function I(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function Ne(e){if(this.defaults=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function Le(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function _e(e){if(this.location=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function Ae(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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function Ce(e){if(this.annotation=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function D(e){if(this.path=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function Ke(e){if(this.rules=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function N(e){if(this.additionalBindings=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function Ze(e){if(this.destinations=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function L(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function _(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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function Qe(e){if(this.serviceClassNames={},e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function ot(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function nt(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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function it(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function at(e){if(this.renamedServices={},e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function lt(e){if(this.autoPopulatedFields=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function ct(e){if(this.methods=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function A(e){if(this.pattern=[],this.style=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function pt(e){if(this.details=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}return g.google=((C={}).cloud=((n={}).bigquery=((o={}).storage=((i={}).v1=((e={}).ArrowSchema=(F.prototype.serializedSchema=d.newBuffer([]),F.create=function(e){return new F(e)},F.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.serializedSchema&&Object.hasOwnProperty.call(e,"serializedSchema")&&t.uint32(10).bytes(e.serializedSchema),t},F.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},F.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.ArrowSchema;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.serializedSchema=e.bytes():e.skipType(7&a,r)}return i},F.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},F.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.serializedSchema&&Object.hasOwnProperty.call(e,"serializedSchema")&&!(e.serializedSchema&&"number"==typeof e.serializedSchema.length||d.isString(e.serializedSchema))?"serializedSchema: buffer expected":null},F.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.ArrowSchema)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.ArrowSchema: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.cloud.bigquery.storage.v1.ArrowSchema;return null!=e.serializedSchema&&("string"==typeof e.serializedSchema?d.base64.decode(e.serializedSchema,t.serializedSchema=d.newBuffer(d.base64.length(e.serializedSchema)),0):0<=e.serializedSchema.length&&(t.serializedSchema=e.serializedSchema)),t},F.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(t.bytes===String?o.serializedSchema="":(o.serializedSchema=[],t.bytes!==Array&&(o.serializedSchema=d.newBuffer(o.serializedSchema)))),null!=e.serializedSchema&&Object.hasOwnProperty.call(e,"serializedSchema")&&(o.serializedSchema=t.bytes===String?d.base64.encode(e.serializedSchema,0,e.serializedSchema.length):t.bytes===Array?Array.prototype.slice.call(e.serializedSchema):e.serializedSchema),o},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.cloud.bigquery.storage.v1.ArrowSchema"},F),e.ArrowRecordBatch=(B.prototype.serializedRecordBatch=d.newBuffer([]),B.prototype.rowCount=d.Long?d.Long.fromBits(0,0,!1):0,B.create=function(e){return new B(e)},B.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.serializedRecordBatch&&Object.hasOwnProperty.call(e,"serializedRecordBatch")&&t.uint32(10).bytes(e.serializedRecordBatch),null!=e.rowCount&&Object.hasOwnProperty.call(e,"rowCount")&&t.uint32(16).int64(e.rowCount),t},B.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},B.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.ArrowRecordBatch;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.serializedRecordBatch=e.bytes();break;case 2:i.rowCount=e.int64();break;default:e.skipType(7&a,r)}}return i},B.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},B.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.serializedRecordBatch&&Object.hasOwnProperty.call(e,"serializedRecordBatch")&&!(e.serializedRecordBatch&&"number"==typeof e.serializedRecordBatch.length||d.isString(e.serializedRecordBatch))?"serializedRecordBatch: buffer expected":null!=e.rowCount&&Object.hasOwnProperty.call(e,"rowCount")&&!(d.isInteger(e.rowCount)||e.rowCount&&d.isInteger(e.rowCount.low)&&d.isInteger(e.rowCount.high))?"rowCount: integer|Long expected":null},B.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.ArrowRecordBatch)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.ArrowRecordBatch: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.cloud.bigquery.storage.v1.ArrowRecordBatch;return null!=e.serializedRecordBatch&&("string"==typeof e.serializedRecordBatch?d.base64.decode(e.serializedRecordBatch,t.serializedRecordBatch=d.newBuffer(d.base64.length(e.serializedRecordBatch)),0):0<=e.serializedRecordBatch.length&&(t.serializedRecordBatch=e.serializedRecordBatch)),null!=e.rowCount&&(d.Long?t.rowCount=d.Long.fromValue(e.rowCount,!1):"string"==typeof e.rowCount?t.rowCount=parseInt(e.rowCount,10):"number"==typeof e.rowCount?t.rowCount=e.rowCount:"object"==typeof e.rowCount&&(t.rowCount=new d.LongBits(e.rowCount.low>>>0,e.rowCount.high>>>0).toNumber())),t},B.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,o={};return t.defaults&&(t.bytes===String?o.serializedRecordBatch="":(o.serializedRecordBatch=[],t.bytes!==Array&&(o.serializedRecordBatch=d.newBuffer(o.serializedRecordBatch))),d.Long?(r=new d.Long(0,0,!1),o.rowCount=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):o.rowCount=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0),null!=e.serializedRecordBatch&&Object.hasOwnProperty.call(e,"serializedRecordBatch")&&(o.serializedRecordBatch=t.bytes===String?d.base64.encode(e.serializedRecordBatch,0,e.serializedRecordBatch.length):t.bytes===Array?Array.prototype.slice.call(e.serializedRecordBatch):e.serializedRecordBatch),null!=e.rowCount&&Object.hasOwnProperty.call(e,"rowCount")&&("undefined"!=typeof BigInt&&t.longs===BigInt?o.rowCount="number"==typeof e.rowCount?BigInt(e.rowCount):d.Long.fromBits(e.rowCount.low>>>0,e.rowCount.high>>>0,!1).toBigInt():"number"==typeof e.rowCount?o.rowCount=t.longs===String?String(e.rowCount):e.rowCount:o.rowCount=t.longs===String?d.Long.prototype.toString.call(e.rowCount):t.longs===Number?new d.LongBits(e.rowCount.low>>>0,e.rowCount.high>>>0).toNumber():e.rowCount),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.cloud.bigquery.storage.v1.ArrowRecordBatch"},B),e.ArrowSerializationOptions=(q.prototype.bufferCompression=0,q.prototype.picosTimestampPrecision=0,q.create=function(e){return new q(e)},q.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.bufferCompression&&Object.hasOwnProperty.call(e,"bufferCompression")&&t.uint32(16).int32(e.bufferCompression),null!=e.picosTimestampPrecision&&Object.hasOwnProperty.call(e,"picosTimestampPrecision")&&t.uint32(24).int32(e.picosTimestampPrecision),t},q.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},q.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.ArrowSerializationOptions;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 2:i.bufferCompression=e.int32();break;case 3:i.picosTimestampPrecision=e.int32();break;default:e.skipType(7&a,r)}}return i},q.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},q.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.bufferCompression&&Object.hasOwnProperty.call(e,"bufferCompression"))switch(e.bufferCompression){default:return"bufferCompression: enum value expected";case 0:case 1:case 2:}if(null!=e.picosTimestampPrecision&&Object.hasOwnProperty.call(e,"picosTimestampPrecision"))switch(e.picosTimestampPrecision){default:return"picosTimestampPrecision: enum value expected";case 0:case 1:case 2:case 3:}return null},q.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.ArrowSerializationOptions)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.ArrowSerializationOptions: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.ArrowSerializationOptions;switch(e.bufferCompression){default:"number"==typeof e.bufferCompression&&(o.bufferCompression=e.bufferCompression);break;case"COMPRESSION_UNSPECIFIED":case 0:o.bufferCompression=0;break;case"LZ4_FRAME":case 1:o.bufferCompression=1;break;case"ZSTD":case 2:o.bufferCompression=2}switch(e.picosTimestampPrecision){default:"number"==typeof e.picosTimestampPrecision&&(o.picosTimestampPrecision=e.picosTimestampPrecision);break;case"PICOS_TIMESTAMP_PRECISION_UNSPECIFIED":case 0:o.picosTimestampPrecision=0;break;case"TIMESTAMP_PRECISION_MICROS":case 1:o.picosTimestampPrecision=1;break;case"TIMESTAMP_PRECISION_NANOS":case 2:o.picosTimestampPrecision=2;break;case"TIMESTAMP_PRECISION_PICOS":case 3:o.picosTimestampPrecision=3}return o},q.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.bufferCompression=t.enums===String?"COMPRESSION_UNSPECIFIED":0,o.picosTimestampPrecision=t.enums===String?"PICOS_TIMESTAMP_PRECISION_UNSPECIFIED":0),null!=e.bufferCompression&&Object.hasOwnProperty.call(e,"bufferCompression")&&(o.bufferCompression=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec[e.bufferCompression]?e.bufferCompression:g.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec[e.bufferCompression]),null!=e.picosTimestampPrecision&&Object.hasOwnProperty.call(e,"picosTimestampPrecision")&&(o.picosTimestampPrecision=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.PicosTimestampPrecision[e.picosTimestampPrecision]?e.picosTimestampPrecision:g.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.PicosTimestampPrecision[e.picosTimestampPrecision]),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.cloud.bigquery.storage.v1.ArrowSerializationOptions"},q.CompressionCodec=(t={},(a=Object.create(t))[t[0]="COMPRESSION_UNSPECIFIED"]=0,a[t[1]="LZ4_FRAME"]=1,a[t[2]="ZSTD"]=2,a),q.PicosTimestampPrecision=(t={},(a=Object.create(t))[t[0]="PICOS_TIMESTAMP_PRECISION_UNSPECIFIED"]=0,a[t[1]="TIMESTAMP_PRECISION_MICROS"]=1,a[t[2]="TIMESTAMP_PRECISION_NANOS"]=2,a[t[3]="TIMESTAMP_PRECISION_PICOS"]=3,a),q),e.AvroSchema=(V.prototype.schema="",V.create=function(e){return new V(e)},V.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.schema&&Object.hasOwnProperty.call(e,"schema")&&t.uint32(10).string(e.schema),t},V.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},V.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.AvroSchema;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.schema=e.string():e.skipType(7&a,r)}return i},V.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},V.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.schema&&Object.hasOwnProperty.call(e,"schema")&&!d.isString(e.schema)?"schema: string expected":null},V.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.AvroSchema)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.AvroSchema: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.cloud.bigquery.storage.v1.AvroSchema;return null!=e.schema&&(t.schema=String(e.schema)),t},V.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.schema=""),null!=e.schema&&Object.hasOwnProperty.call(e,"schema")&&(o.schema=e.schema),o},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.cloud.bigquery.storage.v1.AvroSchema"},V),e.AvroRows=(U.prototype.serializedBinaryRows=d.newBuffer([]),U.prototype.rowCount=d.Long?d.Long.fromBits(0,0,!1):0,U.create=function(e){return new U(e)},U.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.serializedBinaryRows&&Object.hasOwnProperty.call(e,"serializedBinaryRows")&&t.uint32(10).bytes(e.serializedBinaryRows),null!=e.rowCount&&Object.hasOwnProperty.call(e,"rowCount")&&t.uint32(16).int64(e.rowCount),t},U.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},U.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.AvroRows;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.serializedBinaryRows=e.bytes();break;case 2:i.rowCount=e.int64();break;default:e.skipType(7&a,r)}}return i},U.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},U.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.serializedBinaryRows&&Object.hasOwnProperty.call(e,"serializedBinaryRows")&&!(e.serializedBinaryRows&&"number"==typeof e.serializedBinaryRows.length||d.isString(e.serializedBinaryRows))?"serializedBinaryRows: buffer expected":null!=e.rowCount&&Object.hasOwnProperty.call(e,"rowCount")&&!(d.isInteger(e.rowCount)||e.rowCount&&d.isInteger(e.rowCount.low)&&d.isInteger(e.rowCount.high))?"rowCount: integer|Long expected":null},U.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.AvroRows)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.AvroRows: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.cloud.bigquery.storage.v1.AvroRows;return null!=e.serializedBinaryRows&&("string"==typeof e.serializedBinaryRows?d.base64.decode(e.serializedBinaryRows,t.serializedBinaryRows=d.newBuffer(d.base64.length(e.serializedBinaryRows)),0):0<=e.serializedBinaryRows.length&&(t.serializedBinaryRows=e.serializedBinaryRows)),null!=e.rowCount&&(d.Long?t.rowCount=d.Long.fromValue(e.rowCount,!1):"string"==typeof e.rowCount?t.rowCount=parseInt(e.rowCount,10):"number"==typeof e.rowCount?t.rowCount=e.rowCount:"object"==typeof e.rowCount&&(t.rowCount=new d.LongBits(e.rowCount.low>>>0,e.rowCount.high>>>0).toNumber())),t},U.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,o={};return t.defaults&&(t.bytes===String?o.serializedBinaryRows="":(o.serializedBinaryRows=[],t.bytes!==Array&&(o.serializedBinaryRows=d.newBuffer(o.serializedBinaryRows))),d.Long?(r=new d.Long(0,0,!1),o.rowCount=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):o.rowCount=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0),null!=e.serializedBinaryRows&&Object.hasOwnProperty.call(e,"serializedBinaryRows")&&(o.serializedBinaryRows=t.bytes===String?d.base64.encode(e.serializedBinaryRows,0,e.serializedBinaryRows.length):t.bytes===Array?Array.prototype.slice.call(e.serializedBinaryRows):e.serializedBinaryRows),null!=e.rowCount&&Object.hasOwnProperty.call(e,"rowCount")&&("undefined"!=typeof BigInt&&t.longs===BigInt?o.rowCount="number"==typeof e.rowCount?BigInt(e.rowCount):d.Long.fromBits(e.rowCount.low>>>0,e.rowCount.high>>>0,!1).toBigInt():"number"==typeof e.rowCount?o.rowCount=t.longs===String?String(e.rowCount):e.rowCount:o.rowCount=t.longs===String?d.Long.prototype.toString.call(e.rowCount):t.longs===Number?new d.LongBits(e.rowCount.low>>>0,e.rowCount.high>>>0).toNumber():e.rowCount),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.cloud.bigquery.storage.v1.AvroRows"},U),e.AvroSerializationOptions=(M.prototype.enableDisplayNameAttribute=!1,M.prototype.picosTimestampPrecision=0,M.create=function(e){return new M(e)},M.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.enableDisplayNameAttribute&&Object.hasOwnProperty.call(e,"enableDisplayNameAttribute")&&t.uint32(8).bool(e.enableDisplayNameAttribute),null!=e.picosTimestampPrecision&&Object.hasOwnProperty.call(e,"picosTimestampPrecision")&&t.uint32(16).int32(e.picosTimestampPrecision),t},M.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},M.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.AvroSerializationOptions;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.enableDisplayNameAttribute=e.bool();break;case 2:i.picosTimestampPrecision=e.int32();break;default:e.skipType(7&a,r)}}return i},M.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},M.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.enableDisplayNameAttribute&&Object.hasOwnProperty.call(e,"enableDisplayNameAttribute")&&"boolean"!=typeof e.enableDisplayNameAttribute)return"enableDisplayNameAttribute: boolean expected";if(null!=e.picosTimestampPrecision&&Object.hasOwnProperty.call(e,"picosTimestampPrecision"))switch(e.picosTimestampPrecision){default:return"picosTimestampPrecision: enum value expected";case 0:case 1:case 2:case 3:}return null},M.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.AvroSerializationOptions)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.AvroSerializationOptions: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.AvroSerializationOptions;switch(null!=e.enableDisplayNameAttribute&&(o.enableDisplayNameAttribute=Boolean(e.enableDisplayNameAttribute)),e.picosTimestampPrecision){default:"number"==typeof e.picosTimestampPrecision&&(o.picosTimestampPrecision=e.picosTimestampPrecision);break;case"PICOS_TIMESTAMP_PRECISION_UNSPECIFIED":case 0:o.picosTimestampPrecision=0;break;case"TIMESTAMP_PRECISION_MICROS":case 1:o.picosTimestampPrecision=1;break;case"TIMESTAMP_PRECISION_NANOS":case 2:o.picosTimestampPrecision=2;break;case"TIMESTAMP_PRECISION_PICOS":case 3:o.picosTimestampPrecision=3}return o},M.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.enableDisplayNameAttribute=!1,o.picosTimestampPrecision=t.enums===String?"PICOS_TIMESTAMP_PRECISION_UNSPECIFIED":0),null!=e.enableDisplayNameAttribute&&Object.hasOwnProperty.call(e,"enableDisplayNameAttribute")&&(o.enableDisplayNameAttribute=e.enableDisplayNameAttribute),null!=e.picosTimestampPrecision&&Object.hasOwnProperty.call(e,"picosTimestampPrecision")&&(o.picosTimestampPrecision=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.AvroSerializationOptions.PicosTimestampPrecision[e.picosTimestampPrecision]?e.picosTimestampPrecision:g.google.cloud.bigquery.storage.v1.AvroSerializationOptions.PicosTimestampPrecision[e.picosTimestampPrecision]),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.cloud.bigquery.storage.v1.AvroSerializationOptions"},M.PicosTimestampPrecision=(t={},(a=Object.create(t))[t[0]="PICOS_TIMESTAMP_PRECISION_UNSPECIFIED"]=0,a[t[1]="TIMESTAMP_PRECISION_MICROS"]=1,a[t[2]="TIMESTAMP_PRECISION_NANOS"]=2,a[t[3]="TIMESTAMP_PRECISION_PICOS"]=3,a),M),e.ProtoSchema=(z.prototype.protoDescriptor=null,z.create=function(e){return new z(e)},z.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.protoDescriptor&&Object.hasOwnProperty.call(e,"protoDescriptor")&&g.google.protobuf.DescriptorProto.encode(e.protoDescriptor,t.uint32(10).fork(),o+1).ldelim(),t},z.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},z.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.ProtoSchema;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.protoDescriptor=g.google.protobuf.DescriptorProto.decode(e,e.uint32(),void 0,r+1):e.skipType(7&a,r)}return i},z.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},z.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.protoDescriptor&&Object.hasOwnProperty.call(e,"protoDescriptor")){e=g.google.protobuf.DescriptorProto.verify(e.protoDescriptor,t+1);if(e)return"protoDescriptor."+e}return null},z.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.ProtoSchema)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.ProtoSchema: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.ProtoSchema;if(null!=e.protoDescriptor){if(!d.isObject(e.protoDescriptor))throw TypeError(".google.cloud.bigquery.storage.v1.ProtoSchema.protoDescriptor: object expected");o.protoDescriptor=g.google.protobuf.DescriptorProto.fromObject(e.protoDescriptor,t+1)}return o},z.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.protoDescriptor=null),null!=e.protoDescriptor&&Object.hasOwnProperty.call(e,"protoDescriptor")&&(r.protoDescriptor=g.google.protobuf.DescriptorProto.toObject(e.protoDescriptor,t,o+1)),r},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.cloud.bigquery.storage.v1.ProtoSchema"},z),e.ProtoRows=(G.prototype.serializedRows=d.emptyArray,G.create=function(e){return new G(e)},G.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.serializedRows&&e.serializedRows.length)for(var r=0;r<e.serializedRows.length;++r)t.uint32(10).bytes(e.serializedRows[r]);return t},G.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},G.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.ProtoRows;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?(i.serializedRows&&i.serializedRows.length||(i.serializedRows=[]),i.serializedRows.push(e.bytes())):e.skipType(7&a,r)}return i},G.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},G.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.serializedRows&&Object.hasOwnProperty.call(e,"serializedRows")){if(!Array.isArray(e.serializedRows))return"serializedRows: array expected";for(var o=0;o<e.serializedRows.length;++o)if(!(e.serializedRows[o]&&"number"==typeof e.serializedRows[o].length||d.isString(e.serializedRows[o])))return"serializedRows: buffer[] expected"}return null},G.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.ProtoRows)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.ProtoRows: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.ProtoRows;if(e.serializedRows){if(!Array.isArray(e.serializedRows))throw TypeError(".google.cloud.bigquery.storage.v1.ProtoRows.serializedRows: array expected");o.serializedRows=[];for(var r=0;r<e.serializedRows.length;++r)"string"==typeof e.serializedRows[r]?d.base64.decode(e.serializedRows[r],o.serializedRows[r]=d.newBuffer(d.base64.length(e.serializedRows[r])),0):0<=e.serializedRows[r].length&&(o.serializedRows[r]=e.serializedRows[r])}return o},G.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.serializedRows=[]),e.serializedRows&&e.serializedRows.length){r.serializedRows=[];for(var n=0;n<e.serializedRows.length;++n)r.serializedRows[n]=t.bytes===String?d.base64.encode(e.serializedRows[n],0,e.serializedRows[n].length):t.bytes===Array?Array.prototype.slice.call(e.serializedRows[n]):e.serializedRows[n]}return r},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.cloud.bigquery.storage.v1.ProtoRows"},G),e.BigQueryRead=(((J.prototype=Object.create(r.rpc.Service.prototype)).constructor=J).create=function(e,t,o){return new this(e,t,o)},Object.defineProperty(J.prototype.createReadSession=function e(t,o){return r.rpc.Service.prototype.rpcCall.call(this,e,g.google.cloud.bigquery.storage.v1.CreateReadSessionRequest,g.google.cloud.bigquery.storage.v1.ReadSession,t,o)},"name",{value:"CreateReadSession"}),Object.defineProperty(J.prototype.readRows=function e(t,o){return r.rpc.Service.prototype.rpcCall.call(this,e,g.google.cloud.bigquery.storage.v1.ReadRowsRequest,g.google.cloud.bigquery.storage.v1.ReadRowsResponse,t,o)},"name",{value:"ReadRows"}),Object.defineProperty(J.prototype.splitReadStream=function e(t,o){return r.rpc.Service.prototype.rpcCall.call(this,e,g.google.cloud.bigquery.storage.v1.SplitReadStreamRequest,g.google.cloud.bigquery.storage.v1.SplitReadStreamResponse,t,o)},"name",{value:"SplitReadStream"}),J),e.BigQueryWrite=(((Y.prototype=Object.create(r.rpc.Service.prototype)).constructor=Y).create=function(e,t,o){return new this(e,t,o)},Object.defineProperty(Y.prototype.createWriteStream=function e(t,o){return r.rpc.Service.prototype.rpcCall.call(this,e,g.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest,g.google.cloud.bigquery.storage.v1.WriteStream,t,o)},"name",{value:"CreateWriteStream"}),Object.defineProperty(Y.prototype.appendRows=function e(t,o){return r.rpc.Service.prototype.rpcCall.call(this,e,g.google.cloud.bigquery.storage.v1.AppendRowsRequest,g.google.cloud.bigquery.storage.v1.AppendRowsResponse,t,o)},"name",{value:"AppendRows"}),Object.defineProperty(Y.prototype.getWriteStream=function e(t,o){return r.rpc.Service.prototype.rpcCall.call(this,e,g.google.cloud.bigquery.storage.v1.GetWriteStreamRequest,g.google.cloud.bigquery.storage.v1.WriteStream,t,o)},"name",{value:"GetWriteStream"}),Object.defineProperty(Y.prototype.finalizeWriteStream=function e(t,o){return r.rpc.Service.prototype.rpcCall.call(this,e,g.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest,g.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse,t,o)},"name",{value:"FinalizeWriteStream"}),Object.defineProperty(Y.prototype.batchCommitWriteStreams=function e(t,o){return r.rpc.Service.prototype.rpcCall.call(this,e,g.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest,g.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse,t,o)},"name",{value:"BatchCommitWriteStreams"}),Object.defineProperty(Y.prototype.flushRows=function e(t,o){return r.rpc.Service.prototype.rpcCall.call(this,e,g.google.cloud.bigquery.storage.v1.FlushRowsRequest,g.google.cloud.bigquery.storage.v1.FlushRowsResponse,t,o)},"name",{value:"FlushRows"}),Y),e.CreateReadSessionRequest=(W.prototype.parent="",W.prototype.readSession=null,W.prototype.maxStreamCount=0,W.prototype.preferredMinStreamCount=0,W.create=function(e){return new W(e)},W.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.parent&&Object.hasOwnProperty.call(e,"parent")&&t.uint32(10).string(e.parent),null!=e.readSession&&Object.hasOwnProperty.call(e,"readSession")&&g.google.cloud.bigquery.storage.v1.ReadSession.encode(e.readSession,t.uint32(18).fork(),o+1).ldelim(),null!=e.maxStreamCount&&Object.hasOwnProperty.call(e,"maxStreamCount")&&t.uint32(24).int32(e.maxStreamCount),null!=e.preferredMinStreamCount&&Object.hasOwnProperty.call(e,"preferredMinStreamCount")&&t.uint32(32).int32(e.preferredMinStreamCount),t},W.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},W.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.CreateReadSessionRequest;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.parent=e.string();break;case 2:i.readSession=g.google.cloud.bigquery.storage.v1.ReadSession.decode(e,e.uint32(),void 0,r+1);break;case 3:i.maxStreamCount=e.int32();break;case 4:i.preferredMinStreamCount=e.int32();break;default:e.skipType(7&a,r)}}return i},W.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},W.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.parent&&Object.hasOwnProperty.call(e,"parent")&&!d.isString(e.parent))return"parent: string expected";if(null!=e.readSession&&Object.hasOwnProperty.call(e,"readSession")){t=g.google.cloud.bigquery.storage.v1.ReadSession.verify(e.readSession,t+1);if(t)return"readSession."+t}return null!=e.maxStreamCount&&Object.hasOwnProperty.call(e,"maxStreamCount")&&!d.isInteger(e.maxStreamCount)?"maxStreamCount: integer expected":null!=e.preferredMinStreamCount&&Object.hasOwnProperty.call(e,"preferredMinStreamCount")&&!d.isInteger(e.preferredMinStreamCount)?"preferredMinStreamCount: integer expected":null},W.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.CreateReadSessionRequest)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.CreateReadSessionRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.CreateReadSessionRequest;if(null!=e.parent&&(o.parent=String(e.parent)),null!=e.readSession){if(!d.isObject(e.readSession))throw TypeError(".google.cloud.bigquery.storage.v1.CreateReadSessionRequest.readSession: object expected");o.readSession=g.google.cloud.bigquery.storage.v1.ReadSession.fromObject(e.readSession,t+1)}return null!=e.maxStreamCount&&(o.maxStreamCount=0|e.maxStreamCount),null!=e.preferredMinStreamCount&&(o.preferredMinStreamCount=0|e.preferredMinStreamCount),o},W.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.parent="",r.readSession=null,r.maxStreamCount=0,r.preferredMinStreamCount=0),null!=e.parent&&Object.hasOwnProperty.call(e,"parent")&&(r.parent=e.parent),null!=e.readSession&&Object.hasOwnProperty.call(e,"readSession")&&(r.readSession=g.google.cloud.bigquery.storage.v1.ReadSession.toObject(e.readSession,t,o+1)),null!=e.maxStreamCount&&Object.hasOwnProperty.call(e,"maxStreamCount")&&(r.maxStreamCount=e.maxStreamCount),null!=e.preferredMinStreamCount&&Object.hasOwnProperty.call(e,"preferredMinStreamCount")&&(r.preferredMinStreamCount=e.preferredMinStreamCount),r},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.cloud.bigquery.storage.v1.CreateReadSessionRequest"},W),e.ReadRowsRequest=(H.prototype.readStream="",H.prototype.offset=d.Long?d.Long.fromBits(0,0,!1):0,H.create=function(e){return new H(e)},H.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.readStream&&Object.hasOwnProperty.call(e,"readStream")&&t.uint32(10).string(e.readStream),null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&t.uint32(16).int64(e.offset),t},H.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},H.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.ReadRowsRequest;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.readStream=e.string();break;case 2:i.offset=e.int64();break;default:e.skipType(7&a,r)}}return i},H.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},H.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.readStream&&Object.hasOwnProperty.call(e,"readStream")&&!d.isString(e.readStream)?"readStream: string expected":null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&!(d.isInteger(e.offset)||e.offset&&d.isInteger(e.offset.low)&&d.isInteger(e.offset.high))?"offset: integer|Long expected":null},H.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.ReadRowsRequest)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.ReadRowsRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.cloud.bigquery.storage.v1.ReadRowsRequest;return null!=e.readStream&&(t.readStream=String(e.readStream)),null!=e.offset&&(d.Long?t.offset=d.Long.fromValue(e.offset,!1):"string"==typeof e.offset?t.offset=parseInt(e.offset,10):"number"==typeof e.offset?t.offset=e.offset:"object"==typeof e.offset&&(t.offset=new d.LongBits(e.offset.low>>>0,e.offset.high>>>0).toNumber())),t},H.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,o={};return t.defaults&&(o.readStream="",d.Long?(r=new d.Long(0,0,!1),o.offset=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):o.offset=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0),null!=e.readStream&&Object.hasOwnProperty.call(e,"readStream")&&(o.readStream=e.readStream),null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&("undefined"!=typeof BigInt&&t.longs===BigInt?o.offset="number"==typeof e.offset?BigInt(e.offset):d.Long.fromBits(e.offset.low>>>0,e.offset.high>>>0,!1).toBigInt():"number"==typeof e.offset?o.offset=t.longs===String?String(e.offset):e.offset:o.offset=t.longs===String?d.Long.prototype.toString.call(e.offset):t.longs===Number?new d.LongBits(e.offset.low>>>0,e.offset.high>>>0).toNumber():e.offset),o},H.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},H.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.ReadRowsRequest"},H),e.ThrottleState=(K.prototype.throttlePercent=0,K.create=function(e){return new K(e)},K.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.throttlePercent&&Object.hasOwnProperty.call(e,"throttlePercent")&&t.uint32(8).int32(e.throttlePercent),t},K.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},K.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.ThrottleState;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.throttlePercent=e.int32():e.skipType(7&a,r)}return i},K.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},K.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.throttlePercent&&Object.hasOwnProperty.call(e,"throttlePercent")&&!d.isInteger(e.throttlePercent)?"throttlePercent: integer expected":null},K.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.ThrottleState)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.ThrottleState: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.cloud.bigquery.storage.v1.ThrottleState;return null!=e.throttlePercent&&(t.throttlePercent=0|e.throttlePercent),t},K.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.throttlePercent=0),null!=e.throttlePercent&&Object.hasOwnProperty.call(e,"throttlePercent")&&(o.throttlePercent=e.throttlePercent),o},K.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},K.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.ThrottleState"},K),e.StreamStats=(X.prototype.progress=null,X.create=function(e){return new X(e)},X.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.progress&&Object.hasOwnProperty.call(e,"progress")&&g.google.cloud.bigquery.storage.v1.StreamStats.Progress.encode(e.progress,t.uint32(18).fork(),o+1).ldelim(),t},X.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},X.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.StreamStats;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==2?i.progress=g.google.cloud.bigquery.storage.v1.StreamStats.Progress.decode(e,e.uint32(),void 0,r+1):e.skipType(7&a,r)}return i},X.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},X.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.progress&&Object.hasOwnProperty.call(e,"progress")){e=g.google.cloud.bigquery.storage.v1.StreamStats.Progress.verify(e.progress,t+1);if(e)return"progress."+e}return null},X.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.StreamStats)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.StreamStats: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.StreamStats;if(null!=e.progress){if(!d.isObject(e.progress))throw TypeError(".google.cloud.bigquery.storage.v1.StreamStats.progress: object expected");o.progress=g.google.cloud.bigquery.storage.v1.StreamStats.Progress.fromObject(e.progress,t+1)}return o},X.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.progress=null),null!=e.progress&&Object.hasOwnProperty.call(e,"progress")&&(r.progress=g.google.cloud.bigquery.storage.v1.StreamStats.Progress.toObject(e.progress,t,o+1)),r},X.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},X.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.StreamStats"},X.Progress=(Z.prototype.atResponseStart=0,Z.prototype.atResponseEnd=0,Z.create=function(e){return new Z(e)},Z.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.atResponseStart&&Object.hasOwnProperty.call(e,"atResponseStart")&&t.uint32(9).double(e.atResponseStart),null!=e.atResponseEnd&&Object.hasOwnProperty.call(e,"atResponseEnd")&&t.uint32(17).double(e.atResponseEnd),t},Z.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Z.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.StreamStats.Progress;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.atResponseStart=e.double();break;case 2:i.atResponseEnd=e.double();break;default:e.skipType(7&a,r)}}return i},Z.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Z.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.atResponseStart&&Object.hasOwnProperty.call(e,"atResponseStart")&&"number"!=typeof e.atResponseStart?"atResponseStart: number expected":null!=e.atResponseEnd&&Object.hasOwnProperty.call(e,"atResponseEnd")&&"number"!=typeof e.atResponseEnd?"atResponseEnd: number expected":null},Z.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.StreamStats.Progress)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.StreamStats.Progress: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.cloud.bigquery.storage.v1.StreamStats.Progress;return null!=e.atResponseStart&&(t.atResponseStart=Number(e.atResponseStart)),null!=e.atResponseEnd&&(t.atResponseEnd=Number(e.atResponseEnd)),t},Z.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.atResponseStart=0,o.atResponseEnd=0),null!=e.atResponseStart&&Object.hasOwnProperty.call(e,"atResponseStart")&&(o.atResponseStart=t.json&&!isFinite(e.atResponseStart)?String(e.atResponseStart):e.atResponseStart),null!=e.atResponseEnd&&Object.hasOwnProperty.call(e,"atResponseEnd")&&(o.atResponseEnd=t.json&&!isFinite(e.atResponseEnd)?String(e.atResponseEnd):e.atResponseEnd),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.cloud.bigquery.storage.v1.StreamStats.Progress"},Z),X),e.ReadRowsResponse=(s.prototype.avroRows=null,s.prototype.arrowRecordBatch=null,s.prototype.rowCount=d.Long?d.Long.fromBits(0,0,!1):0,s.prototype.stats=null,s.prototype.throttleState=null,s.prototype.avroSchema=null,s.prototype.arrowSchema=null,s.prototype.uncompressedByteSize=null,Object.defineProperty(s.prototype,"rows",{get:d.oneOfGetter(t=["avroRows","arrowRecordBatch"]),set:d.oneOfSetter(t)}),Object.defineProperty(s.prototype,"schema",{get:d.oneOfGetter(t=["avroSchema","arrowSchema"]),set:d.oneOfSetter(t)}),Object.defineProperty(s.prototype,"_uncompressedByteSize",{get:d.oneOfGetter(t=["uncompressedByteSize"]),set:d.oneOfSetter(t)}),s.create=function(e){return new s(e)},s.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.stats&&Object.hasOwnProperty.call(e,"stats")&&g.google.cloud.bigquery.storage.v1.StreamStats.encode(e.stats,t.uint32(18).fork(),o+1).ldelim(),null!=e.avroRows&&Object.hasOwnProperty.call(e,"avroRows")&&g.google.cloud.bigquery.storage.v1.AvroRows.encode(e.avroRows,t.uint32(26).fork(),o+1).ldelim(),null!=e.arrowRecordBatch&&Object.hasOwnProperty.call(e,"arrowRecordBatch")&&g.google.cloud.bigquery.storage.v1.ArrowRecordBatch.encode(e.arrowRecordBatch,t.uint32(34).fork(),o+1).ldelim(),null!=e.throttleState&&Object.hasOwnProperty.call(e,"throttleState")&&g.google.cloud.bigquery.storage.v1.ThrottleState.encode(e.throttleState,t.uint32(42).fork(),o+1).ldelim(),null!=e.rowCount&&Object.hasOwnProperty.call(e,"rowCount")&&t.uint32(48).int64(e.rowCount),null!=e.avroSchema&&Object.hasOwnProperty.call(e,"avroSchema")&&g.google.cloud.bigquery.storage.v1.AvroSchema.encode(e.avroSchema,t.uint32(58).fork(),o+1).ldelim(),null!=e.arrowSchema&&Object.hasOwnProperty.call(e,"arrowSchema")&&g.google.cloud.bigquery.storage.v1.ArrowSchema.encode(e.arrowSchema,t.uint32(66).fork(),o+1).ldelim(),null!=e.uncompressedByteSize&&Object.hasOwnProperty.call(e,"uncompressedByteSize")&&t.uint32(72).int64(e.uncompressedByteSize),t},s.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},s.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.ReadRowsResponse;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 3:i.avroRows=g.google.cloud.bigquery.storage.v1.AvroRows.decode(e,e.uint32(),void 0,r+1);break;case 4:i.arrowRecordBatch=g.google.cloud.bigquery.storage.v1.ArrowRecordBatch.decode(e,e.uint32(),void 0,r+1);break;case 6:i.rowCount=e.int64();break;case 2:i.stats=g.google.cloud.bigquery.storage.v1.StreamStats.decode(e,e.uint32(),void 0,r+1);break;case 5:i.throttleState=g.google.cloud.bigquery.storage.v1.ThrottleState.decode(e,e.uint32(),void 0,r+1);break;case 7:i.avroSchema=g.google.cloud.bigquery.storage.v1.AvroSchema.decode(e,e.uint32(),void 0,r+1);break;case 8:i.arrowSchema=g.google.cloud.bigquery.storage.v1.ArrowSchema.decode(e,e.uint32(),void 0,r+1);break;case 9:i.uncompressedByteSize=e.int64();break;default:e.skipType(7&a,r)}}return i},s.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},s.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";var o,r={};if(null!=e.avroRows&&Object.hasOwnProperty.call(e,"avroRows")&&(o=g.google.cloud.bigquery.storage.v1.AvroRows.verify(e.avroRows,t+(r.rows=1))))return"avroRows."+o;if(null!=e.arrowRecordBatch&&Object.hasOwnProperty.call(e,"arrowRecordBatch")){if(1===r.rows)return"rows: multiple values";if(o=g.google.cloud.bigquery.storage.v1.ArrowRecordBatch.verify(e.arrowRecordBatch,t+(r.rows=1)))return"arrowRecordBatch."+o}if(null!=e.rowCount&&Object.hasOwnProperty.call(e,"rowCount")&&!(d.isInteger(e.rowCount)||e.rowCount&&d.isInteger(e.rowCount.low)&&d.isInteger(e.rowCount.high)))return"rowCount: integer|Long expected";if(null!=e.stats&&Object.hasOwnProperty.call(e,"stats")&&(o=g.google.cloud.bigquery.storage.v1.StreamStats.verify(e.stats,t+1)))return"stats."+o;if(null!=e.throttleState&&Object.hasOwnProperty.call(e,"throttleState")&&(o=g.google.cloud.bigquery.storage.v1.ThrottleState.verify(e.throttleState,t+1)))return"throttleState."+o;if(null!=e.avroSchema&&Object.hasOwnProperty.call(e,"avroSchema")&&(o=g.google.cloud.bigquery.storage.v1.AvroSchema.verify(e.avroSchema,t+(r.schema=1))))return"avroSchema."+o;if(null!=e.arrowSchema&&Object.hasOwnProperty.call(e,"arrowSchema")){if(1===r.schema)return"schema: multiple values";if(o=g.google.cloud.bigquery.storage.v1.ArrowSchema.verify(e.arrowSchema,t+(r.schema=1)))return"arrowSchema."+o}return null==e.uncompressedByteSize||!Object.hasOwnProperty.call(e,"uncompressedByteSize")||(r._uncompressedByteSize=1,d.isInteger(e.uncompressedByteSize))||e.uncompressedByteSize&&d.isInteger(e.uncompressedByteSize.low)&&d.isInteger(e.uncompressedByteSize.high)?null:"uncompressedByteSize: integer|Long expected"},s.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.ReadRowsResponse)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.ReadRowsResponse: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.ReadRowsResponse;if(null!=e.avroRows){if(!d.isObject(e.avroRows))throw TypeError(".google.cloud.bigquery.storage.v1.ReadRowsResponse.avroRows: object expected");o.avroRows=g.google.cloud.bigquery.storage.v1.AvroRows.fromObject(e.avroRows,t+1)}if(null!=e.arrowRecordBatch){if(!d.isObject(e.arrowRecordBatch))throw TypeError(".google.cloud.bigquery.storage.v1.ReadRowsResponse.arrowRecordBatch: object expected");o.arrowRecordBatch=g.google.cloud.bigquery.storage.v1.ArrowRecordBatch.fromObject(e.arrowRecordBatch,t+1)}if(null!=e.rowCount&&(d.Long?o.rowCount=d.Long.fromValue(e.rowCount,!1):"string"==typeof e.rowCount?o.rowCount=parseInt(e.rowCount,10):"number"==typeof e.rowCount?o.rowCount=e.rowCount:"object"==typeof e.rowCount&&(o.rowCount=new d.LongBits(e.rowCount.low>>>0,e.rowCount.high>>>0).toNumber())),null!=e.stats){if(!d.isObject(e.stats))throw TypeError(".google.cloud.bigquery.storage.v1.ReadRowsResponse.stats: object expected");o.stats=g.google.cloud.bigquery.storage.v1.StreamStats.fromObject(e.stats,t+1)}if(null!=e.throttleState){if(!d.isObject(e.throttleState))throw TypeError(".google.cloud.bigquery.storage.v1.ReadRowsResponse.throttleState: object expected");o.throttleState=g.google.cloud.bigquery.storage.v1.ThrottleState.fromObject(e.throttleState,t+1)}if(null!=e.avroSchema){if(!d.isObject(e.avroSchema))throw TypeError(".google.cloud.bigquery.storage.v1.ReadRowsResponse.avroSchema: object expected");o.avroSchema=g.google.cloud.bigquery.storage.v1.AvroSchema.fromObject(e.avroSchema,t+1)}if(null!=e.arrowSchema){if(!d.isObject(e.arrowSchema))throw TypeError(".google.cloud.bigquery.storage.v1.ReadRowsResponse.arrowSchema: object expected");o.arrowSchema=g.google.cloud.bigquery.storage.v1.ArrowSchema.fromObject(e.arrowSchema,t+1)}return null!=e.uncompressedByteSize&&(d.Long?o.uncompressedByteSize=d.Long.fromValue(e.uncompressedByteSize,!1):"string"==typeof e.uncompressedByteSize?o.uncompressedByteSize=parseInt(e.uncompressedByteSize,10):"number"==typeof e.uncompressedByteSize?o.uncompressedByteSize=e.uncompressedByteSize:"object"==typeof e.uncompressedByteSize&&(o.uncompressedByteSize=new d.LongBits(e.uncompressedByteSize.low>>>0,e.uncompressedByteSize.high>>>0).toNumber())),o},s.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,n={};return t.defaults&&(n.stats=null,n.throttleState=null,d.Long?(r=new d.Long(0,0,!1),n.rowCount=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):n.rowCount=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0),null!=e.stats&&Object.hasOwnProperty.call(e,"stats")&&(n.stats=g.google.cloud.bigquery.storage.v1.StreamStats.toObject(e.stats,t,o+1)),null!=e.avroRows&&Object.hasOwnProperty.call(e,"avroRows")&&(n.avroRows=g.google.cloud.bigquery.storage.v1.AvroRows.toObject(e.avroRows,t,o+1),t.oneofs)&&(n.rows="avroRows"),null!=e.arrowRecordBatch&&Object.hasOwnProperty.call(e,"arrowRecordBatch")&&(n.arrowRecordBatch=g.google.cloud.bigquery.storage.v1.ArrowRecordBatch.toObject(e.arrowRecordBatch,t,o+1),t.oneofs)&&(n.rows="arrowRecordBatch"),null!=e.throttleState&&Object.hasOwnProperty.call(e,"throttleState")&&(n.throttleState=g.google.cloud.bigquery.storage.v1.ThrottleState.toObject(e.throttleState,t,o+1)),null!=e.rowCount&&Object.hasOwnProperty.call(e,"rowCount")&&("undefined"!=typeof BigInt&&t.longs===BigInt?n.rowCount="number"==typeof e.rowCount?BigInt(e.rowCount):d.Long.fromBits(e.rowCount.low>>>0,e.rowCount.high>>>0,!1).toBigInt():"number"==typeof e.rowCount?n.rowCount=t.longs===String?String(e.rowCount):e.rowCount:n.rowCount=t.longs===String?d.Long.prototype.toString.call(e.rowCount):t.longs===Number?new d.LongBits(e.rowCount.low>>>0,e.rowCount.high>>>0).toNumber():e.rowCount),null!=e.avroSchema&&Object.hasOwnProperty.call(e,"avroSchema")&&(n.avroSchema=g.google.cloud.bigquery.storage.v1.AvroSchema.toObject(e.avroSchema,t,o+1),t.oneofs)&&(n.schema="avroSchema"),null!=e.arrowSchema&&Object.hasOwnProperty.call(e,"arrowSchema")&&(n.arrowSchema=g.google.cloud.bigquery.storage.v1.ArrowSchema.toObject(e.arrowSchema,t,o+1),t.oneofs)&&(n.schema="arrowSchema"),null!=e.uncompressedByteSize&&Object.hasOwnProperty.call(e,"uncompressedByteSize")&&("undefined"!=typeof BigInt&&t.longs===BigInt?n.uncompressedByteSize="number"==typeof e.uncompressedByteSize?BigInt(e.uncompressedByteSize):d.Long.fromBits(e.uncompressedByteSize.low>>>0,e.uncompressedByteSize.high>>>0,!1).toBigInt():"number"==typeof e.uncompressedByteSize?n.uncompressedByteSize=t.longs===String?String(e.uncompressedByteSize):e.uncompressedByteSize:n.uncompressedByteSize=t.longs===String?d.Long.prototype.toString.call(e.uncompressedByteSize):t.longs===Number?new d.LongBits(e.uncompressedByteSize.low>>>0,e.uncompressedByteSize.high>>>0).toNumber():e.uncompressedByteSize,t.oneofs)&&(n._uncompressedByteSize="uncompressedByteSize"),n},s.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},s.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.ReadRowsResponse"},s),e.SplitReadStreamRequest=(Q.prototype.name="",Q.prototype.fraction=0,Q.create=function(e){return new Q(e)},Q.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.fraction&&Object.hasOwnProperty.call(e,"fraction")&&t.uint32(17).double(e.fraction),t},Q.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Q.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.SplitReadStreamRequest;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.fraction=e.double();break;default:e.skipType(7&a,r)}}return i},Q.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Q.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name)?"name: string expected":null!=e.fraction&&Object.hasOwnProperty.call(e,"fraction")&&"number"!=typeof e.fraction?"fraction: number expected":null},Q.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.SplitReadStreamRequest)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.SplitReadStreamRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.cloud.bigquery.storage.v1.SplitReadStreamRequest;return null!=e.name&&(t.name=String(e.name)),null!=e.fraction&&(t.fraction=Number(e.fraction)),t},Q.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.name="",o.fraction=0),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(o.name=e.name),null!=e.fraction&&Object.hasOwnProperty.call(e,"fraction")&&(o.fraction=t.json&&!isFinite(e.fraction)?String(e.fraction):e.fraction),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.cloud.bigquery.storage.v1.SplitReadStreamRequest"},Q),e.SplitReadStreamResponse=($.prototype.primaryStream=null,$.prototype.remainderStream=null,$.create=function(e){return new $(e)},$.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.primaryStream&&Object.hasOwnProperty.call(e,"primaryStream")&&g.google.cloud.bigquery.storage.v1.ReadStream.encode(e.primaryStream,t.uint32(10).fork(),o+1).ldelim(),null!=e.remainderStream&&Object.hasOwnProperty.call(e,"remainderStream")&&g.google.cloud.bigquery.storage.v1.ReadStream.encode(e.remainderStream,t.uint32(18).fork(),o+1).ldelim(),t},$.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},$.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.SplitReadStreamResponse;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.primaryStream=g.google.cloud.bigquery.storage.v1.ReadStream.decode(e,e.uint32(),void 0,r+1);break;case 2:i.remainderStream=g.google.cloud.bigquery.storage.v1.ReadStream.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},$.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},$.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";var o;if(null!=e.primaryStream&&Object.hasOwnProperty.call(e,"primaryStream")&&(o=g.google.cloud.bigquery.storage.v1.ReadStream.verify(e.primaryStream,t+1)))return"primaryStream."+o;if(null!=e.remainderStream&&Object.hasOwnProperty.call(e,"remainderStream")&&(o=g.google.cloud.bigquery.storage.v1.ReadStream.verify(e.remainderStream,t+1)))return"remainderStream."+o;return null},$.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.SplitReadStreamResponse)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.SplitReadStreamResponse: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.SplitReadStreamResponse;if(null!=e.primaryStream){if(!d.isObject(e.primaryStream))throw TypeError(".google.cloud.bigquery.storage.v1.SplitReadStreamResponse.primaryStream: object expected");o.primaryStream=g.google.cloud.bigquery.storage.v1.ReadStream.fromObject(e.primaryStream,t+1)}if(null!=e.remainderStream){if(!d.isObject(e.remainderStream))throw TypeError(".google.cloud.bigquery.storage.v1.SplitReadStreamResponse.remainderStream: object expected");o.remainderStream=g.google.cloud.bigquery.storage.v1.ReadStream.fromObject(e.remainderStream,t+1)}return o},$.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.primaryStream=null,r.remainderStream=null),null!=e.primaryStream&&Object.hasOwnProperty.call(e,"primaryStream")&&(r.primaryStream=g.google.cloud.bigquery.storage.v1.ReadStream.toObject(e.primaryStream,t,o+1)),null!=e.remainderStream&&Object.hasOwnProperty.call(e,"remainderStream")&&(r.remainderStream=g.google.cloud.bigquery.storage.v1.ReadStream.toObject(e.remainderStream,t,o+1)),r},$.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},$.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.SplitReadStreamResponse"},$),e.CreateWriteStreamRequest=(ee.prototype.parent="",ee.prototype.writeStream=null,ee.create=function(e){return new ee(e)},ee.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.parent&&Object.hasOwnProperty.call(e,"parent")&&t.uint32(10).string(e.parent),null!=e.writeStream&&Object.hasOwnProperty.call(e,"writeStream")&&g.google.cloud.bigquery.storage.v1.WriteStream.encode(e.writeStream,t.uint32(18).fork(),o+1).ldelim(),t},ee.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ee.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.parent=e.string();break;case 2:i.writeStream=g.google.cloud.bigquery.storage.v1.WriteStream.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},ee.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ee.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.parent&&Object.hasOwnProperty.call(e,"parent")&&!d.isString(e.parent))return"parent: string expected";if(null!=e.writeStream&&Object.hasOwnProperty.call(e,"writeStream")){e=g.google.cloud.bigquery.storage.v1.WriteStream.verify(e.writeStream,t+1);if(e)return"writeStream."+e}return null},ee.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.CreateWriteStreamRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest;if(null!=e.parent&&(o.parent=String(e.parent)),null!=e.writeStream){if(!d.isObject(e.writeStream))throw TypeError(".google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.writeStream: object expected");o.writeStream=g.google.cloud.bigquery.storage.v1.WriteStream.fromObject(e.writeStream,t+1)}return o},ee.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.parent="",r.writeStream=null),null!=e.parent&&Object.hasOwnProperty.call(e,"parent")&&(r.parent=e.parent),null!=e.writeStream&&Object.hasOwnProperty.call(e,"writeStream")&&(r.writeStream=g.google.cloud.bigquery.storage.v1.WriteStream.toObject(e.writeStream,t,o+1)),r},ee.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ee.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.CreateWriteStreamRequest"},ee),e.AppendRowsRequest=(c.prototype.writeStream="",c.prototype.offset=null,c.prototype.protoRows=null,c.prototype.arrowRows=null,c.prototype.traceId="",c.prototype.missingValueInterpretations=d.emptyObject,c.prototype.defaultMissingValueInterpretation=0,Object.defineProperty(c.prototype,"rows",{get:d.oneOfGetter(a=["protoRows","arrowRows"]),set:d.oneOfSetter(a)}),c.create=function(e){return new c(e)},c.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.writeStream&&Object.hasOwnProperty.call(e,"writeStream")&&t.uint32(10).string(e.writeStream),null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&g.google.protobuf.Int64Value.encode(e.offset,t.uint32(18).fork(),o+1).ldelim(),null!=e.protoRows&&Object.hasOwnProperty.call(e,"protoRows")&&g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.encode(e.protoRows,t.uint32(34).fork(),o+1).ldelim(),null!=e.arrowRows&&Object.hasOwnProperty.call(e,"arrowRows")&&g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ArrowData.encode(e.arrowRows,t.uint32(42).fork(),o+1).ldelim(),null!=e.traceId&&Object.hasOwnProperty.call(e,"traceId")&&t.uint32(50).string(e.traceId),null!=e.missingValueInterpretations&&Object.hasOwnProperty.call(e,"missingValueInterpretations"))for(var r=Object.keys(e.missingValueInterpretations),n=0;n<r.length;++n)t.uint32(58).fork().uint32(10).string(r[n]).uint32(16).int32(e.missingValueInterpretations[r[n]]).ldelim();return null!=e.defaultMissingValueInterpretation&&Object.hasOwnProperty.call(e,"defaultMissingValueInterpretation")&&t.uint32(64).int32(e.defaultMissingValueInterpretation),t},c.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},c.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.AppendRowsRequest;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.writeStream=e.string();break;case 2:i.offset=g.google.protobuf.Int64Value.decode(e,e.uint32(),void 0,r+1);break;case 4:i.protoRows=g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.decode(e,e.uint32(),void 0,r+1);break;case 5:i.arrowRows=g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ArrowData.decode(e,e.uint32(),void 0,r+1);break;case 6:i.traceId=e.string();break;case 7:i.missingValueInterpretations===d.emptyObject&&(i.missingValueInterpretations={});for(var l=e.uint32()+e.pos,s="",c=0;e.pos<l;){var u=e.uint32();switch(u>>>3){case 1:s=e.string();break;case 2:c=e.int32();break;default:e.skipType(7&u,r)}}"__proto__"===s&&d.makeProp(i.missingValueInterpretations,s),i.missingValueInterpretations[s]=c;break;case 8:i.defaultMissingValueInterpretation=e.int32();break;default:e.skipType(7&a,r)}}return i},c.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},c.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";var o,r={};if(null!=e.writeStream&&Object.hasOwnProperty.call(e,"writeStream")&&!d.isString(e.writeStream))return"writeStream: string expected";if(null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&(o=g.google.protobuf.Int64Value.verify(e.offset,t+1)))return"offset."+o;if(null!=e.protoRows&&Object.hasOwnProperty.call(e,"protoRows")&&(o=g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.verify(e.protoRows,t+(r.rows=1))))return"protoRows."+o;if(null!=e.arrowRows&&Object.hasOwnProperty.call(e,"arrowRows")){if(1===r.rows)return"rows: multiple values";if(o=g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ArrowData.verify(e.arrowRows,t+(r.rows=1)))return"arrowRows."+o}if(null!=e.traceId&&Object.hasOwnProperty.call(e,"traceId")&&!d.isString(e.traceId))return"traceId: string expected";if(null!=e.missingValueInterpretations&&Object.hasOwnProperty.call(e,"missingValueInterpretations")){if(!d.isObject(e.missingValueInterpretations))return"missingValueInterpretations: object expected";for(var n=Object.keys(e.missingValueInterpretations),i=0;i<n.length;++i)switch(e.missingValueInterpretations[n[i]]){default:return"missingValueInterpretations: enum value{k:string} expected";case 0:case 1:case 2:}}if(null!=e.defaultMissingValueInterpretation&&Object.hasOwnProperty.call(e,"defaultMissingValueInterpretation"))switch(e.defaultMissingValueInterpretation){default:return"defaultMissingValueInterpretation: enum value expected";case 0:case 1:case 2:}return null},c.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.AppendRowsRequest)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.AppendRowsRequest;if(null!=e.writeStream&&(o.writeStream=String(e.writeStream)),null!=e.offset){if(!d.isObject(e.offset))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsRequest.offset: object expected");o.offset=g.google.protobuf.Int64Value.fromObject(e.offset,t+1)}if(null!=e.protoRows){if(!d.isObject(e.protoRows))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsRequest.protoRows: object expected");o.protoRows=g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.fromObject(e.protoRows,t+1)}if(null!=e.arrowRows){if(!d.isObject(e.arrowRows))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsRequest.arrowRows: object expected");o.arrowRows=g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ArrowData.fromObject(e.arrowRows,t+1)}if(null!=e.traceId&&(o.traceId=String(e.traceId)),e.missingValueInterpretations){if(!d.isObject(e.missingValueInterpretations))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsRequest.missingValueInterpretations: object expected");o.missingValueInterpretations={};for(var r=Object.keys(e.missingValueInterpretations),n=0;n<r.length;++n)switch("__proto__"===r[n]&&d.makeProp(o.missingValueInterpretations,r[n]),e.missingValueInterpretations[r[n]]){default:"number"==typeof e.missingValueInterpretations[r[n]]&&(o.missingValueInterpretations[r[n]]=e.missingValueInterpretations[r[n]]);break;case"MISSING_VALUE_INTERPRETATION_UNSPECIFIED":case 0:o.missingValueInterpretations[r[n]]=0;break;case"NULL_VALUE":case 1:o.missingValueInterpretations[r[n]]=1;break;case"DEFAULT_VALUE":case 2:o.missingValueInterpretations[r[n]]=2}}switch(e.defaultMissingValueInterpretation){default:"number"==typeof e.defaultMissingValueInterpretation&&(o.defaultMissingValueInterpretation=e.defaultMissingValueInterpretation);break;case"MISSING_VALUE_INTERPRETATION_UNSPECIFIED":case 0:o.defaultMissingValueInterpretation=0;break;case"NULL_VALUE":case 1:o.defaultMissingValueInterpretation=1;break;case"DEFAULT_VALUE":case 2:o.defaultMissingValueInterpretation=2}return o},c.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,n={};if((t.objects||t.defaults)&&(n.missingValueInterpretations={}),t.defaults&&(n.writeStream="",n.offset=null,n.traceId="",n.defaultMissingValueInterpretation=t.enums===String?"MISSING_VALUE_INTERPRETATION_UNSPECIFIED":0),null!=e.writeStream&&Object.hasOwnProperty.call(e,"writeStream")&&(n.writeStream=e.writeStream),null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&(n.offset=g.google.protobuf.Int64Value.toObject(e.offset,t,o+1)),null!=e.protoRows&&Object.hasOwnProperty.call(e,"protoRows")&&(n.protoRows=g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.toObject(e.protoRows,t,o+1),t.oneofs)&&(n.rows="protoRows"),null!=e.arrowRows&&Object.hasOwnProperty.call(e,"arrowRows")&&(n.arrowRows=g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ArrowData.toObject(e.arrowRows,t,o+1),t.oneofs)&&(n.rows="arrowRows"),null!=e.traceId&&Object.hasOwnProperty.call(e,"traceId")&&(n.traceId=e.traceId),e.missingValueInterpretations&&(r=Object.keys(e.missingValueInterpretations)).length){n.missingValueInterpretations={};for(var i=0;i<r.length;++i)"__proto__"===r[i]&&d.makeProp(n.missingValueInterpretations,r[i]),n.missingValueInterpretations[r[i]]=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation[e.missingValueInterpretations[r[i]]]?e.missingValueInterpretations[r[i]]:g.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation[e.missingValueInterpretations[r[i]]]}return null!=e.defaultMissingValueInterpretation&&Object.hasOwnProperty.call(e,"defaultMissingValueInterpretation")&&(n.defaultMissingValueInterpretation=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation[e.defaultMissingValueInterpretation]?e.defaultMissingValueInterpretation:g.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation[e.defaultMissingValueInterpretation]),n},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.cloud.bigquery.storage.v1.AppendRowsRequest"},c.ArrowData=(te.prototype.writerSchema=null,te.prototype.rows=null,te.create=function(e){return new te(e)},te.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.writerSchema&&Object.hasOwnProperty.call(e,"writerSchema")&&g.google.cloud.bigquery.storage.v1.ArrowSchema.encode(e.writerSchema,t.uint32(10).fork(),o+1).ldelim(),null!=e.rows&&Object.hasOwnProperty.call(e,"rows")&&g.google.cloud.bigquery.storage.v1.ArrowRecordBatch.encode(e.rows,t.uint32(18).fork(),o+1).ldelim(),t},te.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},te.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ArrowData;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.writerSchema=g.google.cloud.bigquery.storage.v1.ArrowSchema.decode(e,e.uint32(),void 0,r+1);break;case 2:i.rows=g.google.cloud.bigquery.storage.v1.ArrowRecordBatch.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},te.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},te.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";var o;if(null!=e.writerSchema&&Object.hasOwnProperty.call(e,"writerSchema")&&(o=g.google.cloud.bigquery.storage.v1.ArrowSchema.verify(e.writerSchema,t+1)))return"writerSchema."+o;if(null!=e.rows&&Object.hasOwnProperty.call(e,"rows")&&(o=g.google.cloud.bigquery.storage.v1.ArrowRecordBatch.verify(e.rows,t+1)))return"rows."+o;return null},te.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ArrowData)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsRequest.ArrowData: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ArrowData;if(null!=e.writerSchema){if(!d.isObject(e.writerSchema))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsRequest.ArrowData.writerSchema: object expected");o.writerSchema=g.google.cloud.bigquery.storage.v1.ArrowSchema.fromObject(e.writerSchema,t+1)}if(null!=e.rows){if(!d.isObject(e.rows))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsRequest.ArrowData.rows: object expected");o.rows=g.google.cloud.bigquery.storage.v1.ArrowRecordBatch.fromObject(e.rows,t+1)}return o},te.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.writerSchema=null,r.rows=null),null!=e.writerSchema&&Object.hasOwnProperty.call(e,"writerSchema")&&(r.writerSchema=g.google.cloud.bigquery.storage.v1.ArrowSchema.toObject(e.writerSchema,t,o+1)),null!=e.rows&&Object.hasOwnProperty.call(e,"rows")&&(r.rows=g.google.cloud.bigquery.storage.v1.ArrowRecordBatch.toObject(e.rows,t,o+1)),r},te.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},te.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.AppendRowsRequest.ArrowData"},te),c.ProtoData=(oe.prototype.writerSchema=null,oe.prototype.rows=null,oe.create=function(e){return new oe(e)},oe.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.writerSchema&&Object.hasOwnProperty.call(e,"writerSchema")&&g.google.cloud.bigquery.storage.v1.ProtoSchema.encode(e.writerSchema,t.uint32(10).fork(),o+1).ldelim(),null!=e.rows&&Object.hasOwnProperty.call(e,"rows")&&g.google.cloud.bigquery.storage.v1.ProtoRows.encode(e.rows,t.uint32(18).fork(),o+1).ldelim(),t},oe.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},oe.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.writerSchema=g.google.cloud.bigquery.storage.v1.ProtoSchema.decode(e,e.uint32(),void 0,r+1);break;case 2:i.rows=g.google.cloud.bigquery.storage.v1.ProtoRows.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},oe.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},oe.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";var o;if(null!=e.writerSchema&&Object.hasOwnProperty.call(e,"writerSchema")&&(o=g.google.cloud.bigquery.storage.v1.ProtoSchema.verify(e.writerSchema,t+1)))return"writerSchema."+o;if(null!=e.rows&&Object.hasOwnProperty.call(e,"rows")&&(o=g.google.cloud.bigquery.storage.v1.ProtoRows.verify(e.rows,t+1)))return"rows."+o;return null},oe.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData;if(null!=e.writerSchema){if(!d.isObject(e.writerSchema))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.writerSchema: object expected");o.writerSchema=g.google.cloud.bigquery.storage.v1.ProtoSchema.fromObject(e.writerSchema,t+1)}if(null!=e.rows){if(!d.isObject(e.rows))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.rows: object expected");o.rows=g.google.cloud.bigquery.storage.v1.ProtoRows.fromObject(e.rows,t+1)}return o},oe.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.writerSchema=null,r.rows=null),null!=e.writerSchema&&Object.hasOwnProperty.call(e,"writerSchema")&&(r.writerSchema=g.google.cloud.bigquery.storage.v1.ProtoSchema.toObject(e.writerSchema,t,o+1)),null!=e.rows&&Object.hasOwnProperty.call(e,"rows")&&(r.rows=g.google.cloud.bigquery.storage.v1.ProtoRows.toObject(e.rows,t,o+1)),r},oe.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},oe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData"},oe),c.MissingValueInterpretation=(a={},(t=Object.create(a))[a[0]="MISSING_VALUE_INTERPRETATION_UNSPECIFIED"]=0,t[a[1]="NULL_VALUE"]=1,t[a[2]="DEFAULT_VALUE"]=2,t),c),e.AppendRowsResponse=(u.prototype.appendResult=null,u.prototype.error=null,u.prototype.updatedSchema=null,u.prototype.rowErrors=d.emptyArray,u.prototype.writeStream="",Object.defineProperty(u.prototype,"response",{get:d.oneOfGetter(a=["appendResult","error"]),set:d.oneOfSetter(a)}),u.create=function(e){return new u(e)},u.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.appendResult&&Object.hasOwnProperty.call(e,"appendResult")&&g.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.encode(e.appendResult,t.uint32(10).fork(),o+1).ldelim(),null!=e.error&&Object.hasOwnProperty.call(e,"error")&&g.google.rpc.Status.encode(e.error,t.uint32(18).fork(),o+1).ldelim(),null!=e.updatedSchema&&Object.hasOwnProperty.call(e,"updatedSchema")&&g.google.cloud.bigquery.storage.v1.TableSchema.encode(e.updatedSchema,t.uint32(26).fork(),o+1).ldelim(),null!=e.rowErrors&&e.rowErrors.length)for(var r=0;r<e.rowErrors.length;++r)g.google.cloud.bigquery.storage.v1.RowError.encode(e.rowErrors[r],t.uint32(34).fork(),o+1).ldelim();return null!=e.writeStream&&Object.hasOwnProperty.call(e,"writeStream")&&t.uint32(42).string(e.writeStream),t},u.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},u.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.AppendRowsResponse;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.appendResult=g.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.decode(e,e.uint32(),void 0,r+1);break;case 2:i.error=g.google.rpc.Status.decode(e,e.uint32(),void 0,r+1);break;case 3:i.updatedSchema=g.google.cloud.bigquery.storage.v1.TableSchema.decode(e,e.uint32(),void 0,r+1);break;case 4:i.rowErrors&&i.rowErrors.length||(i.rowErrors=[]),i.rowErrors.push(g.google.cloud.bigquery.storage.v1.RowError.decode(e,e.uint32(),void 0,r+1));break;case 5:i.writeStream=e.string();break;default:e.skipType(7&a,r)}}return i},u.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},u.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";var o={};if(null!=e.appendResult&&Object.hasOwnProperty.call(e,"appendResult")&&(r=g.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.verify(e.appendResult,t+(o.response=1))))return"appendResult."+r;if(null!=e.error&&Object.hasOwnProperty.call(e,"error")){if(1===o.response)return"response: multiple values";if(r=g.google.rpc.Status.verify(e.error,t+(o.response=1)))return"error."+r}if(null!=e.updatedSchema&&Object.hasOwnProperty.call(e,"updatedSchema")&&(r=g.google.cloud.bigquery.storage.v1.TableSchema.verify(e.updatedSchema,t+1)))return"updatedSchema."+r;if(null!=e.rowErrors&&Object.hasOwnProperty.call(e,"rowErrors")){if(!Array.isArray(e.rowErrors))return"rowErrors: array expected";for(var r,n=0;n<e.rowErrors.length;++n)if(r=g.google.cloud.bigquery.storage.v1.RowError.verify(e.rowErrors[n],t+1))return"rowErrors."+r}return null!=e.writeStream&&Object.hasOwnProperty.call(e,"writeStream")&&!d.isString(e.writeStream)?"writeStream: string expected":null},u.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.AppendRowsResponse)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsResponse: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.AppendRowsResponse;if(null!=e.appendResult){if(!d.isObject(e.appendResult))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsResponse.appendResult: object expected");o.appendResult=g.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.fromObject(e.appendResult,t+1)}if(null!=e.error){if(!d.isObject(e.error))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsResponse.error: object expected");o.error=g.google.rpc.Status.fromObject(e.error,t+1)}if(null!=e.updatedSchema){if(!d.isObject(e.updatedSchema))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsResponse.updatedSchema: object expected");o.updatedSchema=g.google.cloud.bigquery.storage.v1.TableSchema.fromObject(e.updatedSchema,t+1)}if(e.rowErrors){if(!Array.isArray(e.rowErrors))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsResponse.rowErrors: array expected");o.rowErrors=[];for(var r=0;r<e.rowErrors.length;++r){if(!d.isObject(e.rowErrors[r]))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsResponse.rowErrors: object expected");o.rowErrors[r]=g.google.cloud.bigquery.storage.v1.RowError.fromObject(e.rowErrors[r],t+1)}}return null!=e.writeStream&&(o.writeStream=String(e.writeStream)),o},u.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.rowErrors=[]),t.defaults&&(r.updatedSchema=null,r.writeStream=""),null!=e.appendResult&&Object.hasOwnProperty.call(e,"appendResult")&&(r.appendResult=g.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.toObject(e.appendResult,t,o+1),t.oneofs)&&(r.response="appendResult"),null!=e.error&&Object.hasOwnProperty.call(e,"error")&&(r.error=g.google.rpc.Status.toObject(e.error,t,o+1),t.oneofs)&&(r.response="error"),null!=e.updatedSchema&&Object.hasOwnProperty.call(e,"updatedSchema")&&(r.updatedSchema=g.google.cloud.bigquery.storage.v1.TableSchema.toObject(e.updatedSchema,t,o+1)),e.rowErrors&&e.rowErrors.length){r.rowErrors=[];for(var n=0;n<e.rowErrors.length;++n)r.rowErrors[n]=g.google.cloud.bigquery.storage.v1.RowError.toObject(e.rowErrors[n],t,o+1)}return null!=e.writeStream&&Object.hasOwnProperty.call(e,"writeStream")&&(r.writeStream=e.writeStream),r},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.cloud.bigquery.storage.v1.AppendRowsResponse"},u.AppendResult=(re.prototype.offset=null,re.create=function(e){return new re(e)},re.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&g.google.protobuf.Int64Value.encode(e.offset,t.uint32(10).fork(),o+1).ldelim(),t},re.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},re.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.offset=g.google.protobuf.Int64Value.decode(e,e.uint32(),void 0,r+1):e.skipType(7&a,r)}return i},re.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},re.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.offset&&Object.hasOwnProperty.call(e,"offset")){e=g.google.protobuf.Int64Value.verify(e.offset,t+1);if(e)return"offset."+e}return null},re.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult;if(null!=e.offset){if(!d.isObject(e.offset))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.offset: object expected");o.offset=g.google.protobuf.Int64Value.fromObject(e.offset,t+1)}return o},re.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.offset=null),null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&(r.offset=g.google.protobuf.Int64Value.toObject(e.offset,t,o+1)),r},re.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},re.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult"},re),u),e.GetWriteStreamRequest=(ne.prototype.name="",ne.prototype.view=0,ne.create=function(e){return new ne(e)},ne.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.view&&Object.hasOwnProperty.call(e,"view")&&t.uint32(24).int32(e.view),t},ne.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ne.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.GetWriteStreamRequest;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 3:i.view=e.int32();break;default:e.skipType(7&a,r)}}return i},ne.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ne.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name))return"name: string expected";if(null!=e.view&&Object.hasOwnProperty.call(e,"view"))switch(e.view){default:return"view: enum value expected";case 0:case 1:case 2:}return null},ne.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.GetWriteStreamRequest)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.GetWriteStreamRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.GetWriteStreamRequest;switch(null!=e.name&&(o.name=String(e.name)),e.view){default:"number"==typeof e.view&&(o.view=e.view);break;case"WRITE_STREAM_VIEW_UNSPECIFIED":case 0:o.view=0;break;case"BASIC":case 1:o.view=1;break;case"FULL":case 2:o.view=2}return o},ne.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.name="",o.view=t.enums===String?"WRITE_STREAM_VIEW_UNSPECIFIED":0),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(o.name=e.name),null!=e.view&&Object.hasOwnProperty.call(e,"view")&&(o.view=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.WriteStreamView[e.view]?e.view:g.google.cloud.bigquery.storage.v1.WriteStreamView[e.view]),o},ne.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ne.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.GetWriteStreamRequest"},ne),e.BatchCommitWriteStreamsRequest=(ie.prototype.parent="",ie.prototype.writeStreams=d.emptyArray,ie.create=function(e){return new ie(e)},ie.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.parent&&Object.hasOwnProperty.call(e,"parent")&&t.uint32(10).string(e.parent),null!=e.writeStreams&&e.writeStreams.length)for(var r=0;r<e.writeStreams.length;++r)t.uint32(18).string(e.writeStreams[r]);return t},ie.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ie.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.parent=e.string();break;case 2:i.writeStreams&&i.writeStreams.length||(i.writeStreams=[]),i.writeStreams.push(e.string());break;default:e.skipType(7&a,r)}}return i},ie.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ie.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.parent&&Object.hasOwnProperty.call(e,"parent")&&!d.isString(e.parent))return"parent: string expected";if(null!=e.writeStreams&&Object.hasOwnProperty.call(e,"writeStreams")){if(!Array.isArray(e.writeStreams))return"writeStreams: array expected";for(var o=0;o<e.writeStreams.length;++o)if(!d.isString(e.writeStreams[o]))return"writeStreams: string[] expected"}return null},ie.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest;if(null!=e.parent&&(o.parent=String(e.parent)),e.writeStreams){if(!Array.isArray(e.writeStreams))throw TypeError(".google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.writeStreams: array expected");o.writeStreams=[];for(var r=0;r<e.writeStreams.length;++r)o.writeStreams[r]=String(e.writeStreams[r])}return o},ie.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.writeStreams=[]),t.defaults&&(r.parent=""),null!=e.parent&&Object.hasOwnProperty.call(e,"parent")&&(r.parent=e.parent),e.writeStreams&&e.writeStreams.length){r.writeStreams=[];for(var n=0;n<e.writeStreams.length;++n)r.writeStreams[n]=e.writeStreams[n]}return r},ie.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ie.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest"},ie),e.BatchCommitWriteStreamsResponse=(ae.prototype.commitTime=null,ae.prototype.streamErrors=d.emptyArray,ae.create=function(e){return new ae(e)},ae.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.commitTime&&Object.hasOwnProperty.call(e,"commitTime")&&g.google.protobuf.Timestamp.encode(e.commitTime,t.uint32(10).fork(),o+1).ldelim(),null!=e.streamErrors&&e.streamErrors.length)for(var r=0;r<e.streamErrors.length;++r)g.google.cloud.bigquery.storage.v1.StorageError.encode(e.streamErrors[r],t.uint32(18).fork(),o+1).ldelim();return t},ae.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ae.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.commitTime=g.google.protobuf.Timestamp.decode(e,e.uint32(),void 0,r+1);break;case 2:i.streamErrors&&i.streamErrors.length||(i.streamErrors=[]),i.streamErrors.push(g.google.cloud.bigquery.storage.v1.StorageError.decode(e,e.uint32(),void 0,r+1));break;default:e.skipType(7&a,r)}}return i},ae.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ae.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.commitTime&&Object.hasOwnProperty.call(e,"commitTime")&&(o=g.google.protobuf.Timestamp.verify(e.commitTime,t+1)))return"commitTime."+o;if(null!=e.streamErrors&&Object.hasOwnProperty.call(e,"streamErrors")){if(!Array.isArray(e.streamErrors))return"streamErrors: array expected";for(var o,r=0;r<e.streamErrors.length;++r)if(o=g.google.cloud.bigquery.storage.v1.StorageError.verify(e.streamErrors[r],t+1))return"streamErrors."+o}return null},ae.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse;if(null!=e.commitTime){if(!d.isObject(e.commitTime))throw TypeError(".google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.commitTime: object expected");o.commitTime=g.google.protobuf.Timestamp.fromObject(e.commitTime,t+1)}if(e.streamErrors){if(!Array.isArray(e.streamErrors))throw TypeError(".google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.streamErrors: array expected");o.streamErrors=[];for(var r=0;r<e.streamErrors.length;++r){if(!d.isObject(e.streamErrors[r]))throw TypeError(".google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.streamErrors: object expected");o.streamErrors[r]=g.google.cloud.bigquery.storage.v1.StorageError.fromObject(e.streamErrors[r],t+1)}}return o},ae.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.streamErrors=[]),t.defaults&&(r.commitTime=null),null!=e.commitTime&&Object.hasOwnProperty.call(e,"commitTime")&&(r.commitTime=g.google.protobuf.Timestamp.toObject(e.commitTime,t,o+1)),e.streamErrors&&e.streamErrors.length){r.streamErrors=[];for(var n=0;n<e.streamErrors.length;++n)r.streamErrors[n]=g.google.cloud.bigquery.storage.v1.StorageError.toObject(e.streamErrors[n],t,o+1)}return r},ae.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ae.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse"},ae),e.FinalizeWriteStreamRequest=(le.prototype.name="",le.create=function(e){return new le(e)},le.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),t},le.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},le.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.name=e.string():e.skipType(7&a,r)}return i},le.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},le.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name)?"name: string expected":null},le.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest;return null!=e.name&&(t.name=String(e.name)),t},le.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.name=""),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(o.name=e.name),o},le.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},le.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest"},le),e.FinalizeWriteStreamResponse=(se.prototype.rowCount=d.Long?d.Long.fromBits(0,0,!1):0,se.create=function(e){return new se(e)},se.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.rowCount&&Object.hasOwnProperty.call(e,"rowCount")&&t.uint32(8).int64(e.rowCount),t},se.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},se.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.rowCount=e.int64():e.skipType(7&a,r)}return i},se.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},se.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.rowCount&&Object.hasOwnProperty.call(e,"rowCount")&&!(d.isInteger(e.rowCount)||e.rowCount&&d.isInteger(e.rowCount.low)&&d.isInteger(e.rowCount.high))?"rowCount: integer|Long expected":null},se.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse;return null!=e.rowCount&&(d.Long?t.rowCount=d.Long.fromValue(e.rowCount,!1):"string"==typeof e.rowCount?t.rowCount=parseInt(e.rowCount,10):"number"==typeof e.rowCount?t.rowCount=e.rowCount:"object"==typeof e.rowCount&&(t.rowCount=new d.LongBits(e.rowCount.low>>>0,e.rowCount.high>>>0).toNumber())),t},se.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,o={};return t.defaults&&(d.Long?(r=new d.Long(0,0,!1),o.rowCount=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):o.rowCount=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0),null!=e.rowCount&&Object.hasOwnProperty.call(e,"rowCount")&&("undefined"!=typeof BigInt&&t.longs===BigInt?o.rowCount="number"==typeof e.rowCount?BigInt(e.rowCount):d.Long.fromBits(e.rowCount.low>>>0,e.rowCount.high>>>0,!1).toBigInt():"number"==typeof e.rowCount?o.rowCount=t.longs===String?String(e.rowCount):e.rowCount:o.rowCount=t.longs===String?d.Long.prototype.toString.call(e.rowCount):t.longs===Number?new d.LongBits(e.rowCount.low>>>0,e.rowCount.high>>>0).toNumber():e.rowCount),o},se.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},se.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse"},se),e.FlushRowsRequest=(ce.prototype.writeStream="",ce.prototype.offset=null,ce.create=function(e){return new ce(e)},ce.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.writeStream&&Object.hasOwnProperty.call(e,"writeStream")&&t.uint32(10).string(e.writeStream),null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&g.google.protobuf.Int64Value.encode(e.offset,t.uint32(18).fork(),o+1).ldelim(),t},ce.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ce.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.FlushRowsRequest;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.writeStream=e.string();break;case 2:i.offset=g.google.protobuf.Int64Value.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},ce.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ce.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.writeStream&&Object.hasOwnProperty.call(e,"writeStream")&&!d.isString(e.writeStream))return"writeStream: string expected";if(null!=e.offset&&Object.hasOwnProperty.call(e,"offset")){e=g.google.protobuf.Int64Value.verify(e.offset,t+1);if(e)return"offset."+e}return null},ce.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.FlushRowsRequest)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.FlushRowsRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.FlushRowsRequest;if(null!=e.writeStream&&(o.writeStream=String(e.writeStream)),null!=e.offset){if(!d.isObject(e.offset))throw TypeError(".google.cloud.bigquery.storage.v1.FlushRowsRequest.offset: object expected");o.offset=g.google.protobuf.Int64Value.fromObject(e.offset,t+1)}return o},ce.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.writeStream="",r.offset=null),null!=e.writeStream&&Object.hasOwnProperty.call(e,"writeStream")&&(r.writeStream=e.writeStream),null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&(r.offset=g.google.protobuf.Int64Value.toObject(e.offset,t,o+1)),r},ce.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ce.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.FlushRowsRequest"},ce),e.FlushRowsResponse=(ue.prototype.offset=d.Long?d.Long.fromBits(0,0,!1):0,ue.create=function(e){return new ue(e)},ue.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&t.uint32(8).int64(e.offset),t},ue.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ue.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.FlushRowsResponse;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.offset=e.int64():e.skipType(7&a,r)}return i},ue.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ue.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&!(d.isInteger(e.offset)||e.offset&&d.isInteger(e.offset.low)&&d.isInteger(e.offset.high))?"offset: integer|Long expected":null},ue.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.FlushRowsResponse)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.FlushRowsResponse: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.cloud.bigquery.storage.v1.FlushRowsResponse;return null!=e.offset&&(d.Long?t.offset=d.Long.fromValue(e.offset,!1):"string"==typeof e.offset?t.offset=parseInt(e.offset,10):"number"==typeof e.offset?t.offset=e.offset:"object"==typeof e.offset&&(t.offset=new d.LongBits(e.offset.low>>>0,e.offset.high>>>0).toNumber())),t},ue.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,o={};return t.defaults&&(d.Long?(r=new d.Long(0,0,!1),o.offset=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):o.offset=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0),null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&("undefined"!=typeof BigInt&&t.longs===BigInt?o.offset="number"==typeof e.offset?BigInt(e.offset):d.Long.fromBits(e.offset.low>>>0,e.offset.high>>>0,!1).toBigInt():"number"==typeof e.offset?o.offset=t.longs===String?String(e.offset):e.offset:o.offset=t.longs===String?d.Long.prototype.toString.call(e.offset):t.longs===Number?new d.LongBits(e.offset.low>>>0,e.offset.high>>>0).toNumber():e.offset),o},ue.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ue.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.FlushRowsResponse"},ue),e.StorageError=(pe.prototype.code=0,pe.prototype.entity="",pe.prototype.errorMessage="",pe.create=function(e){return new pe(e)},pe.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.code&&Object.hasOwnProperty.call(e,"code")&&t.uint32(8).int32(e.code),null!=e.entity&&Object.hasOwnProperty.call(e,"entity")&&t.uint32(18).string(e.entity),null!=e.errorMessage&&Object.hasOwnProperty.call(e,"errorMessage")&&t.uint32(26).string(e.errorMessage),t},pe.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},pe.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.StorageError;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.code=e.int32();break;case 2:i.entity=e.string();break;case 3:i.errorMessage=e.string();break;default:e.skipType(7&a,r)}}return i},pe.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},pe.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.code&&Object.hasOwnProperty.call(e,"code"))switch(e.code){default:return"code: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:}return null!=e.entity&&Object.hasOwnProperty.call(e,"entity")&&!d.isString(e.entity)?"entity: string expected":null!=e.errorMessage&&Object.hasOwnProperty.call(e,"errorMessage")&&!d.isString(e.errorMessage)?"errorMessage: string expected":null},pe.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.StorageError)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.StorageError: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.StorageError;switch(e.code){default:"number"==typeof e.code&&(o.code=e.code);break;case"STORAGE_ERROR_CODE_UNSPECIFIED":case 0:o.code=0;break;case"TABLE_NOT_FOUND":case 1:o.code=1;break;case"STREAM_ALREADY_COMMITTED":case 2:o.code=2;break;case"STREAM_NOT_FOUND":case 3:o.code=3;break;case"INVALID_STREAM_TYPE":case 4:o.code=4;break;case"INVALID_STREAM_STATE":case 5:o.code=5;break;case"STREAM_FINALIZED":case 6:o.code=6;break;case"SCHEMA_MISMATCH_EXTRA_FIELDS":case 7:o.code=7;break;case"OFFSET_ALREADY_EXISTS":case 8:o.code=8;break;case"OFFSET_OUT_OF_RANGE":case 9:o.code=9;break;case"CMEK_NOT_PROVIDED":case 10:o.code=10;break;case"INVALID_CMEK_PROVIDED":case 11:o.code=11;break;case"CMEK_ENCRYPTION_ERROR":case 12:o.code=12;break;case"KMS_SERVICE_ERROR":case 13:o.code=13;break;case"KMS_PERMISSION_DENIED":case 14:o.code=14}return null!=e.entity&&(o.entity=String(e.entity)),null!=e.errorMessage&&(o.errorMessage=String(e.errorMessage)),o},pe.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.code=t.enums===String?"STORAGE_ERROR_CODE_UNSPECIFIED":0,o.entity="",o.errorMessage=""),null!=e.code&&Object.hasOwnProperty.call(e,"code")&&(o.code=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode[e.code]?e.code:g.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode[e.code]),null!=e.entity&&Object.hasOwnProperty.call(e,"entity")&&(o.entity=e.entity),null!=e.errorMessage&&Object.hasOwnProperty.call(e,"errorMessage")&&(o.errorMessage=e.errorMessage),o},pe.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},pe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.StorageError"},pe.StorageErrorCode=(t={},(a=Object.create(t))[t[0]="STORAGE_ERROR_CODE_UNSPECIFIED"]=0,a[t[1]="TABLE_NOT_FOUND"]=1,a[t[2]="STREAM_ALREADY_COMMITTED"]=2,a[t[3]="STREAM_NOT_FOUND"]=3,a[t[4]="INVALID_STREAM_TYPE"]=4,a[t[5]="INVALID_STREAM_STATE"]=5,a[t[6]="STREAM_FINALIZED"]=6,a[t[7]="SCHEMA_MISMATCH_EXTRA_FIELDS"]=7,a[t[8]="OFFSET_ALREADY_EXISTS"]=8,a[t[9]="OFFSET_OUT_OF_RANGE"]=9,a[t[10]="CMEK_NOT_PROVIDED"]=10,a[t[11]="INVALID_CMEK_PROVIDED"]=11,a[t[12]="CMEK_ENCRYPTION_ERROR"]=12,a[t[13]="KMS_SERVICE_ERROR"]=13,a[t[14]="KMS_PERMISSION_DENIED"]=14,a),pe),e.RowError=(de.prototype.index=d.Long?d.Long.fromBits(0,0,!1):0,de.prototype.code=0,de.prototype.message="",de.create=function(e){return new de(e)},de.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.index&&Object.hasOwnProperty.call(e,"index")&&t.uint32(8).int64(e.index),null!=e.code&&Object.hasOwnProperty.call(e,"code")&&t.uint32(16).int32(e.code),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&t.uint32(26).string(e.message),t},de.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},de.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.RowError;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.index=e.int64();break;case 2:i.code=e.int32();break;case 3:i.message=e.string();break;default:e.skipType(7&a,r)}}return i},de.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},de.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.index&&Object.hasOwnProperty.call(e,"index")&&!(d.isInteger(e.index)||e.index&&d.isInteger(e.index.low)&&d.isInteger(e.index.high)))return"index: integer|Long expected";if(null!=e.code&&Object.hasOwnProperty.call(e,"code"))switch(e.code){default:return"code: enum value expected";case 0:case 1:}return null!=e.message&&Object.hasOwnProperty.call(e,"message")&&!d.isString(e.message)?"message: string expected":null},de.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.RowError)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.RowError: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.RowError;switch(null!=e.index&&(d.Long?o.index=d.Long.fromValue(e.index,!1):"string"==typeof e.index?o.index=parseInt(e.index,10):"number"==typeof e.index?o.index=e.index:"object"==typeof e.index&&(o.index=new d.LongBits(e.index.low>>>0,e.index.high>>>0).toNumber())),e.code){default:"number"==typeof e.code&&(o.code=e.code);break;case"ROW_ERROR_CODE_UNSPECIFIED":case 0:o.code=0;break;case"FIELDS_ERROR":case 1:o.code=1}return null!=e.message&&(o.message=String(e.message)),o},de.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,o={};return t.defaults&&(d.Long?(r=new d.Long(0,0,!1),o.index=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):o.index=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,o.code=t.enums===String?"ROW_ERROR_CODE_UNSPECIFIED":0,o.message=""),null!=e.index&&Object.hasOwnProperty.call(e,"index")&&("undefined"!=typeof BigInt&&t.longs===BigInt?o.index="number"==typeof e.index?BigInt(e.index):d.Long.fromBits(e.index.low>>>0,e.index.high>>>0,!1).toBigInt():"number"==typeof e.index?o.index=t.longs===String?String(e.index):e.index:o.index=t.longs===String?d.Long.prototype.toString.call(e.index):t.longs===Number?new d.LongBits(e.index.low>>>0,e.index.high>>>0).toNumber():e.index),null!=e.code&&Object.hasOwnProperty.call(e,"code")&&(o.code=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.RowError.RowErrorCode[e.code]?e.code:g.google.cloud.bigquery.storage.v1.RowError.RowErrorCode[e.code]),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&(o.message=e.message),o},de.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},de.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.RowError"},de.RowErrorCode=(t={},(a=Object.create(t))[t[0]="ROW_ERROR_CODE_UNSPECIFIED"]=0,a[t[1]="FIELDS_ERROR"]=1,a),de),e.DataFormat=(t={},(a=Object.create(t))[t[0]="DATA_FORMAT_UNSPECIFIED"]=0,a[t[1]="AVRO"]=1,a[t[2]="ARROW"]=2,a),e.ReadSession=(f.prototype.name="",f.prototype.expireTime=null,f.prototype.dataFormat=0,f.prototype.avroSchema=null,f.prototype.arrowSchema=null,f.prototype.table="",f.prototype.tableModifiers=null,f.prototype.readOptions=null,f.prototype.streams=d.emptyArray,f.prototype.estimatedTotalBytesScanned=d.Long?d.Long.fromBits(0,0,!1):0,f.prototype.estimatedTotalPhysicalFileSize=d.Long?d.Long.fromBits(0,0,!1):0,f.prototype.estimatedRowCount=d.Long?d.Long.fromBits(0,0,!1):0,f.prototype.traceId="",Object.defineProperty(f.prototype,"schema",{get:d.oneOfGetter(t=["avroSchema","arrowSchema"]),set:d.oneOfSetter(t)}),f.create=function(e){return new f(e)},f.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.expireTime&&Object.hasOwnProperty.call(e,"expireTime")&&g.google.protobuf.Timestamp.encode(e.expireTime,t.uint32(18).fork(),o+1).ldelim(),null!=e.dataFormat&&Object.hasOwnProperty.call(e,"dataFormat")&&t.uint32(24).int32(e.dataFormat),null!=e.avroSchema&&Object.hasOwnProperty.call(e,"avroSchema")&&g.google.cloud.bigquery.storage.v1.AvroSchema.encode(e.avroSchema,t.uint32(34).fork(),o+1).ldelim(),null!=e.arrowSchema&&Object.hasOwnProperty.call(e,"arrowSchema")&&g.google.cloud.bigquery.storage.v1.ArrowSchema.encode(e.arrowSchema,t.uint32(42).fork(),o+1).ldelim(),null!=e.table&&Object.hasOwnProperty.call(e,"table")&&t.uint32(50).string(e.table),null!=e.tableModifiers&&Object.hasOwnProperty.call(e,"tableModifiers")&&g.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.encode(e.tableModifiers,t.uint32(58).fork(),o+1).ldelim(),null!=e.readOptions&&Object.hasOwnProperty.call(e,"readOptions")&&g.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.encode(e.readOptions,t.uint32(66).fork(),o+1).ldelim(),null!=e.streams&&e.streams.length)for(var r=0;r<e.streams.length;++r)g.google.cloud.bigquery.storage.v1.ReadStream.encode(e.streams[r],t.uint32(82).fork(),o+1).ldelim();return null!=e.estimatedTotalBytesScanned&&Object.hasOwnProperty.call(e,"estimatedTotalBytesScanned")&&t.uint32(96).int64(e.estimatedTotalBytesScanned),null!=e.traceId&&Object.hasOwnProperty.call(e,"traceId")&&t.uint32(106).string(e.traceId),null!=e.estimatedRowCount&&Object.hasOwnProperty.call(e,"estimatedRowCount")&&t.uint32(112).int64(e.estimatedRowCount),null!=e.estimatedTotalPhysicalFileSize&&Object.hasOwnProperty.call(e,"estimatedTotalPhysicalFileSize")&&t.uint32(120).int64(e.estimatedTotalPhysicalFileSize),t},f.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},f.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.ReadSession;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.expireTime=g.google.protobuf.Timestamp.decode(e,e.uint32(),void 0,r+1);break;case 3:i.dataFormat=e.int32();break;case 4:i.avroSchema=g.google.cloud.bigquery.storage.v1.AvroSchema.decode(e,e.uint32(),void 0,r+1);break;case 5:i.arrowSchema=g.google.cloud.bigquery.storage.v1.ArrowSchema.decode(e,e.uint32(),void 0,r+1);break;case 6:i.table=e.string();break;case 7:i.tableModifiers=g.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.decode(e,e.uint32(),void 0,r+1);break;case 8:i.readOptions=g.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.decode(e,e.uint32(),void 0,r+1);break;case 10:i.streams&&i.streams.length||(i.streams=[]),i.streams.push(g.google.cloud.bigquery.storage.v1.ReadStream.decode(e,e.uint32(),void 0,r+1));break;case 12:i.estimatedTotalBytesScanned=e.int64();break;case 15:i.estimatedTotalPhysicalFileSize=e.int64();break;case 14:i.estimatedRowCount=e.int64();break;case 13:i.traceId=e.string();break;default:e.skipType(7&a,r)}}return i},f.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},f.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";var o={};if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name))return"name: string expected";if(null!=e.expireTime&&Object.hasOwnProperty.call(e,"expireTime")&&(r=g.google.protobuf.Timestamp.verify(e.expireTime,t+1)))return"expireTime."+r;if(null!=e.dataFormat&&Object.hasOwnProperty.call(e,"dataFormat"))switch(e.dataFormat){default:return"dataFormat: enum value expected";case 0:case 1:case 2:}if(null!=e.avroSchema&&Object.hasOwnProperty.call(e,"avroSchema")&&(r=g.google.cloud.bigquery.storage.v1.AvroSchema.verify(e.avroSchema,t+(o.schema=1))))return"avroSchema."+r;if(null!=e.arrowSchema&&Object.hasOwnProperty.call(e,"arrowSchema")){if(1===o.schema)return"schema: multiple values";if(r=g.google.cloud.bigquery.storage.v1.ArrowSchema.verify(e.arrowSchema,t+(o.schema=1)))return"arrowSchema."+r}if(null!=e.table&&Object.hasOwnProperty.call(e,"table")&&!d.isString(e.table))return"table: string expected";if(null!=e.tableModifiers&&Object.hasOwnProperty.call(e,"tableModifiers")&&(r=g.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.verify(e.tableModifiers,t+1)))return"tableModifiers."+r;if(null!=e.readOptions&&Object.hasOwnProperty.call(e,"readOptions")&&(r=g.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.verify(e.readOptions,t+1)))return"readOptions."+r;if(null!=e.streams&&Object.hasOwnProperty.call(e,"streams")){if(!Array.isArray(e.streams))return"streams: array expected";for(var r,n=0;n<e.streams.length;++n)if(r=g.google.cloud.bigquery.storage.v1.ReadStream.verify(e.streams[n],t+1))return"streams."+r}return null!=e.estimatedTotalBytesScanned&&Object.hasOwnProperty.call(e,"estimatedTotalBytesScanned")&&!(d.isInteger(e.estimatedTotalBytesScanned)||e.estimatedTotalBytesScanned&&d.isInteger(e.estimatedTotalBytesScanned.low)&&d.isInteger(e.estimatedTotalBytesScanned.high))?"estimatedTotalBytesScanned: integer|Long expected":null!=e.estimatedTotalPhysicalFileSize&&Object.hasOwnProperty.call(e,"estimatedTotalPhysicalFileSize")&&!(d.isInteger(e.estimatedTotalPhysicalFileSize)||e.estimatedTotalPhysicalFileSize&&d.isInteger(e.estimatedTotalPhysicalFileSize.low)&&d.isInteger(e.estimatedTotalPhysicalFileSize.high))?"estimatedTotalPhysicalFileSize: integer|Long expected":null!=e.estimatedRowCount&&Object.hasOwnProperty.call(e,"estimatedRowCount")&&!(d.isInteger(e.estimatedRowCount)||e.estimatedRowCount&&d.isInteger(e.estimatedRowCount.low)&&d.isInteger(e.estimatedRowCount.high))?"estimatedRowCount: integer|Long expected":null!=e.traceId&&Object.hasOwnProperty.call(e,"traceId")&&!d.isString(e.traceId)?"traceId: string expected":null},f.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.ReadSession)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.ReadSession: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.ReadSession;if(null!=e.name&&(o.name=String(e.name)),null!=e.expireTime){if(!d.isObject(e.expireTime))throw TypeError(".google.cloud.bigquery.storage.v1.ReadSession.expireTime: object expected");o.expireTime=g.google.protobuf.Timestamp.fromObject(e.expireTime,t+1)}switch(e.dataFormat){default:"number"==typeof e.dataFormat&&(o.dataFormat=e.dataFormat);break;case"DATA_FORMAT_UNSPECIFIED":case 0:o.dataFormat=0;break;case"AVRO":case 1:o.dataFormat=1;break;case"ARROW":case 2:o.dataFormat=2}if(null!=e.avroSchema){if(!d.isObject(e.avroSchema))throw TypeError(".google.cloud.bigquery.storage.v1.ReadSession.avroSchema: object expected");o.avroSchema=g.google.cloud.bigquery.storage.v1.AvroSchema.fromObject(e.avroSchema,t+1)}if(null!=e.arrowSchema){if(!d.isObject(e.arrowSchema))throw TypeError(".google.cloud.bigquery.storage.v1.ReadSession.arrowSchema: object expected");o.arrowSchema=g.google.cloud.bigquery.storage.v1.ArrowSchema.fromObject(e.arrowSchema,t+1)}if(null!=e.table&&(o.table=String(e.table)),null!=e.tableModifiers){if(!d.isObject(e.tableModifiers))throw TypeError(".google.cloud.bigquery.storage.v1.ReadSession.tableModifiers: object expected");o.tableModifiers=g.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.fromObject(e.tableModifiers,t+1)}if(null!=e.readOptions){if(!d.isObject(e.readOptions))throw TypeError(".google.cloud.bigquery.storage.v1.ReadSession.readOptions: object expected");o.readOptions=g.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.fromObject(e.readOptions,t+1)}if(e.streams){if(!Array.isArray(e.streams))throw TypeError(".google.cloud.bigquery.storage.v1.ReadSession.streams: array expected");o.streams=[];for(var r=0;r<e.streams.length;++r){if(!d.isObject(e.streams[r]))throw TypeError(".google.cloud.bigquery.storage.v1.ReadSession.streams: object expected");o.streams[r]=g.google.cloud.bigquery.storage.v1.ReadStream.fromObject(e.streams[r],t+1)}}return null!=e.estimatedTotalBytesScanned&&(d.Long?o.estimatedTotalBytesScanned=d.Long.fromValue(e.estimatedTotalBytesScanned,!1):"string"==typeof e.estimatedTotalBytesScanned?o.estimatedTotalBytesScanned=parseInt(e.estimatedTotalBytesScanned,10):"number"==typeof e.estimatedTotalBytesScanned?o.estimatedTotalBytesScanned=e.estimatedTotalBytesScanned:"object"==typeof e.estimatedTotalBytesScanned&&(o.estimatedTotalBytesScanned=new d.LongBits(e.estimatedTotalBytesScanned.low>>>0,e.estimatedTotalBytesScanned.high>>>0).toNumber())),null!=e.estimatedTotalPhysicalFileSize&&(d.Long?o.estimatedTotalPhysicalFileSize=d.Long.fromValue(e.estimatedTotalPhysicalFileSize,!1):"string"==typeof e.estimatedTotalPhysicalFileSize?o.estimatedTotalPhysicalFileSize=parseInt(e.estimatedTotalPhysicalFileSize,10):"number"==typeof e.estimatedTotalPhysicalFileSize?o.estimatedTotalPhysicalFileSize=e.estimatedTotalPhysicalFileSize:"object"==typeof e.estimatedTotalPhysicalFileSize&&(o.estimatedTotalPhysicalFileSize=new d.LongBits(e.estimatedTotalPhysicalFileSize.low>>>0,e.estimatedTotalPhysicalFileSize.high>>>0).toNumber())),null!=e.estimatedRowCount&&(d.Long?o.estimatedRowCount=d.Long.fromValue(e.estimatedRowCount,!1):"string"==typeof e.estimatedRowCount?o.estimatedRowCount=parseInt(e.estimatedRowCount,10):"number"==typeof e.estimatedRowCount?o.estimatedRowCount=e.estimatedRowCount:"object"==typeof e.estimatedRowCount&&(o.estimatedRowCount=new d.LongBits(e.estimatedRowCount.low>>>0,e.estimatedRowCount.high>>>0).toNumber())),null!=e.traceId&&(o.traceId=String(e.traceId)),o},f.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,n={};if((t.arrays||t.defaults)&&(n.streams=[]),t.defaults&&(n.name="",n.expireTime=null,n.dataFormat=t.enums===String?"DATA_FORMAT_UNSPECIFIED":0,n.table="",n.tableModifiers=null,n.readOptions=null,d.Long?(r=new d.Long(0,0,!1),n.estimatedTotalBytesScanned=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):n.estimatedTotalBytesScanned=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,n.traceId="",d.Long?(r=new d.Long(0,0,!1),n.estimatedRowCount=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):n.estimatedRowCount=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,d.Long?(r=new d.Long(0,0,!1),n.estimatedTotalPhysicalFileSize=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):n.estimatedTotalPhysicalFileSize=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(n.name=e.name),null!=e.expireTime&&Object.hasOwnProperty.call(e,"expireTime")&&(n.expireTime=g.google.protobuf.Timestamp.toObject(e.expireTime,t,o+1)),null!=e.dataFormat&&Object.hasOwnProperty.call(e,"dataFormat")&&(n.dataFormat=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.DataFormat[e.dataFormat]?e.dataFormat:g.google.cloud.bigquery.storage.v1.DataFormat[e.dataFormat]),null!=e.avroSchema&&Object.hasOwnProperty.call(e,"avroSchema")&&(n.avroSchema=g.google.cloud.bigquery.storage.v1.AvroSchema.toObject(e.avroSchema,t,o+1),t.oneofs)&&(n.schema="avroSchema"),null!=e.arrowSchema&&Object.hasOwnProperty.call(e,"arrowSchema")&&(n.arrowSchema=g.google.cloud.bigquery.storage.v1.ArrowSchema.toObject(e.arrowSchema,t,o+1),t.oneofs)&&(n.schema="arrowSchema"),null!=e.table&&Object.hasOwnProperty.call(e,"table")&&(n.table=e.table),null!=e.tableModifiers&&Object.hasOwnProperty.call(e,"tableModifiers")&&(n.tableModifiers=g.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.toObject(e.tableModifiers,t,o+1)),null!=e.readOptions&&Object.hasOwnProperty.call(e,"readOptions")&&(n.readOptions=g.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.toObject(e.readOptions,t,o+1)),e.streams&&e.streams.length){n.streams=[];for(var i=0;i<e.streams.length;++i)n.streams[i]=g.google.cloud.bigquery.storage.v1.ReadStream.toObject(e.streams[i],t,o+1)}return null!=e.estimatedTotalBytesScanned&&Object.hasOwnProperty.call(e,"estimatedTotalBytesScanned")&&("undefined"!=typeof BigInt&&t.longs===BigInt?n.estimatedTotalBytesScanned="number"==typeof e.estimatedTotalBytesScanned?BigInt(e.estimatedTotalBytesScanned):d.Long.fromBits(e.estimatedTotalBytesScanned.low>>>0,e.estimatedTotalBytesScanned.high>>>0,!1).toBigInt():"number"==typeof e.estimatedTotalBytesScanned?n.estimatedTotalBytesScanned=t.longs===String?String(e.estimatedTotalBytesScanned):e.estimatedTotalBytesScanned:n.estimatedTotalBytesScanned=t.longs===String?d.Long.prototype.toString.call(e.estimatedTotalBytesScanned):t.longs===Number?new d.LongBits(e.estimatedTotalBytesScanned.low>>>0,e.estimatedTotalBytesScanned.high>>>0).toNumber():e.estimatedTotalBytesScanned),null!=e.traceId&&Object.hasOwnProperty.call(e,"traceId")&&(n.traceId=e.traceId),null!=e.estimatedRowCount&&Object.hasOwnProperty.call(e,"estimatedRowCount")&&("undefined"!=typeof BigInt&&t.longs===BigInt?n.estimatedRowCount="number"==typeof e.estimatedRowCount?BigInt(e.estimatedRowCount):d.Long.fromBits(e.estimatedRowCount.low>>>0,e.estimatedRowCount.high>>>0,!1).toBigInt():"number"==typeof e.estimatedRowCount?n.estimatedRowCount=t.longs===String?String(e.estimatedRowCount):e.estimatedRowCount:n.estimatedRowCount=t.longs===String?d.Long.prototype.toString.call(e.estimatedRowCount):t.longs===Number?new d.LongBits(e.estimatedRowCount.low>>>0,e.estimatedRowCount.high>>>0).toNumber():e.estimatedRowCount),null!=e.estimatedTotalPhysicalFileSize&&Object.hasOwnProperty.call(e,"estimatedTotalPhysicalFileSize")&&("undefined"!=typeof BigInt&&t.longs===BigInt?n.estimatedTotalPhysicalFileSize="number"==typeof e.estimatedTotalPhysicalFileSize?BigInt(e.estimatedTotalPhysicalFileSize):d.Long.fromBits(e.estimatedTotalPhysicalFileSize.low>>>0,e.estimatedTotalPhysicalFileSize.high>>>0,!1).toBigInt():"number"==typeof e.estimatedTotalPhysicalFileSize?n.estimatedTotalPhysicalFileSize=t.longs===String?String(e.estimatedTotalPhysicalFileSize):e.estimatedTotalPhysicalFileSize:n.estimatedTotalPhysicalFileSize=t.longs===String?d.Long.prototype.toString.call(e.estimatedTotalPhysicalFileSize):t.longs===Number?new d.LongBits(e.estimatedTotalPhysicalFileSize.low>>>0,e.estimatedTotalPhysicalFileSize.high>>>0).toNumber():e.estimatedTotalPhysicalFileSize),n},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.cloud.bigquery.storage.v1.ReadSession"},f.TableModifiers=(ge.prototype.snapshotTime=null,ge.create=function(e){return new ge(e)},ge.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.snapshotTime&&Object.hasOwnProperty.call(e,"snapshotTime")&&g.google.protobuf.Timestamp.encode(e.snapshotTime,t.uint32(10).fork(),o+1).ldelim(),t},ge.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ge.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.snapshotTime=g.google.protobuf.Timestamp.decode(e,e.uint32(),void 0,r+1):e.skipType(7&a,r)}return i},ge.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ge.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.snapshotTime&&Object.hasOwnProperty.call(e,"snapshotTime")){e=g.google.protobuf.Timestamp.verify(e.snapshotTime,t+1);if(e)return"snapshotTime."+e}return null},ge.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.ReadSession.TableModifiers: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers;if(null!=e.snapshotTime){if(!d.isObject(e.snapshotTime))throw TypeError(".google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.snapshotTime: object expected");o.snapshotTime=g.google.protobuf.Timestamp.fromObject(e.snapshotTime,t+1)}return o},ge.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.snapshotTime=null),null!=e.snapshotTime&&Object.hasOwnProperty.call(e,"snapshotTime")&&(r.snapshotTime=g.google.protobuf.Timestamp.toObject(e.snapshotTime,t,o+1)),r},ge.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ge.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.ReadSession.TableModifiers"},ge),f.TableReadOptions=(m.prototype.selectedFields=d.emptyArray,m.prototype.rowRestriction="",m.prototype.arrowSerializationOptions=null,m.prototype.avroSerializationOptions=null,m.prototype.samplePercentage=null,m.prototype.responseCompressionCodec=null,Object.defineProperty(m.prototype,"outputFormatSerializationOptions",{get:d.oneOfGetter(t=["arrowSerializationOptions","avroSerializationOptions"]),set:d.oneOfSetter(t)}),Object.defineProperty(m.prototype,"_samplePercentage",{get:d.oneOfGetter(t=["samplePercentage"]),set:d.oneOfSetter(t)}),Object.defineProperty(m.prototype,"_responseCompressionCodec",{get:d.oneOfGetter(t=["responseCompressionCodec"]),set:d.oneOfSetter(t)}),m.create=function(e){return new m(e)},m.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.selectedFields&&e.selectedFields.length)for(var r=0;r<e.selectedFields.length;++r)t.uint32(10).string(e.selectedFields[r]);return null!=e.rowRestriction&&Object.hasOwnProperty.call(e,"rowRestriction")&&t.uint32(18).string(e.rowRestriction),null!=e.arrowSerializationOptions&&Object.hasOwnProperty.call(e,"arrowSerializationOptions")&&g.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.encode(e.arrowSerializationOptions,t.uint32(26).fork(),o+1).ldelim(),null!=e.avroSerializationOptions&&Object.hasOwnProperty.call(e,"avroSerializationOptions")&&g.google.cloud.bigquery.storage.v1.AvroSerializationOptions.encode(e.avroSerializationOptions,t.uint32(34).fork(),o+1).ldelim(),null!=e.samplePercentage&&Object.hasOwnProperty.call(e,"samplePercentage")&&t.uint32(41).double(e.samplePercentage),null!=e.responseCompressionCodec&&Object.hasOwnProperty.call(e,"responseCompressionCodec")&&t.uint32(48).int32(e.responseCompressionCodec),t},m.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},m.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.selectedFields&&i.selectedFields.length||(i.selectedFields=[]),i.selectedFields.push(e.string());break;case 2:i.rowRestriction=e.string();break;case 3:i.arrowSerializationOptions=g.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.decode(e,e.uint32(),void 0,r+1);break;case 4:i.avroSerializationOptions=g.google.cloud.bigquery.storage.v1.AvroSerializationOptions.decode(e,e.uint32(),void 0,r+1);break;case 5:i.samplePercentage=e.double();break;case 6:i.responseCompressionCodec=e.int32();break;default:e.skipType(7&a,r)}}return i},m.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},m.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";var o,r={};if(null!=e.selectedFields&&Object.hasOwnProperty.call(e,"selectedFields")){if(!Array.isArray(e.selectedFields))return"selectedFields: array expected";for(var n=0;n<e.selectedFields.length;++n)if(!d.isString(e.selectedFields[n]))return"selectedFields: string[] expected"}if(null!=e.rowRestriction&&Object.hasOwnProperty.call(e,"rowRestriction")&&!d.isString(e.rowRestriction))return"rowRestriction: string expected";if(null!=e.arrowSerializationOptions&&Object.hasOwnProperty.call(e,"arrowSerializationOptions")&&(o=g.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.verify(e.arrowSerializationOptions,t+(r.outputFormatSerializationOptions=1))))return"arrowSerializationOptions."+o;if(null!=e.avroSerializationOptions&&Object.hasOwnProperty.call(e,"avroSerializationOptions")){if(1===r.outputFormatSerializationOptions)return"outputFormatSerializationOptions: multiple values";if(o=g.google.cloud.bigquery.storage.v1.AvroSerializationOptions.verify(e.avroSerializationOptions,t+(r.outputFormatSerializationOptions=1)))return"avroSerializationOptions."+o}if(null!=e.samplePercentage&&Object.hasOwnProperty.call(e,"samplePercentage")&&(r._samplePercentage=1,"number"!=typeof e.samplePercentage))return"samplePercentage: number expected";if(null!=e.responseCompressionCodec&&Object.hasOwnProperty.call(e,"responseCompressionCodec"))switch(r._responseCompressionCodec=1,e.responseCompressionCodec){default:return"responseCompressionCodec: enum value expected";case 0:case 2:}return null},m.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions;if(e.selectedFields){if(!Array.isArray(e.selectedFields))throw TypeError(".google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.selectedFields: array expected");o.selectedFields=[];for(var r=0;r<e.selectedFields.length;++r)o.selectedFields[r]=String(e.selectedFields[r])}if(null!=e.rowRestriction&&(o.rowRestriction=String(e.rowRestriction)),null!=e.arrowSerializationOptions){if(!d.isObject(e.arrowSerializationOptions))throw TypeError(".google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.arrowSerializationOptions: object expected");o.arrowSerializationOptions=g.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.fromObject(e.arrowSerializationOptions,t+1)}if(null!=e.avroSerializationOptions){if(!d.isObject(e.avroSerializationOptions))throw TypeError(".google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.avroSerializationOptions: object expected");o.avroSerializationOptions=g.google.cloud.bigquery.storage.v1.AvroSerializationOptions.fromObject(e.avroSerializationOptions,t+1)}switch(null!=e.samplePercentage&&(o.samplePercentage=Number(e.samplePercentage)),e.responseCompressionCodec){default:"number"==typeof e.responseCompressionCodec&&(o.responseCompressionCodec=e.responseCompressionCodec);break;case"RESPONSE_COMPRESSION_CODEC_UNSPECIFIED":case 0:o.responseCompressionCodec=0;break;case"RESPONSE_COMPRESSION_CODEC_LZ4":case 2:o.responseCompressionCodec=2}return o},m.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.selectedFields=[]),t.defaults&&(r.rowRestriction=""),e.selectedFields&&e.selectedFields.length){r.selectedFields=[];for(var n=0;n<e.selectedFields.length;++n)r.selectedFields[n]=e.selectedFields[n]}return null!=e.rowRestriction&&Object.hasOwnProperty.call(e,"rowRestriction")&&(r.rowRestriction=e.rowRestriction),null!=e.arrowSerializationOptions&&Object.hasOwnProperty.call(e,"arrowSerializationOptions")&&(r.arrowSerializationOptions=g.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.toObject(e.arrowSerializationOptions,t,o+1),t.oneofs)&&(r.outputFormatSerializationOptions="arrowSerializationOptions"),null!=e.avroSerializationOptions&&Object.hasOwnProperty.call(e,"avroSerializationOptions")&&(r.avroSerializationOptions=g.google.cloud.bigquery.storage.v1.AvroSerializationOptions.toObject(e.avroSerializationOptions,t,o+1),t.oneofs)&&(r.outputFormatSerializationOptions="avroSerializationOptions"),null!=e.samplePercentage&&Object.hasOwnProperty.call(e,"samplePercentage")&&(r.samplePercentage=t.json&&!isFinite(e.samplePercentage)?String(e.samplePercentage):e.samplePercentage,t.oneofs)&&(r._samplePercentage="samplePercentage"),null!=e.responseCompressionCodec&&Object.hasOwnProperty.call(e,"responseCompressionCodec")&&(r.responseCompressionCodec=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.ResponseCompressionCodec[e.responseCompressionCodec]?e.responseCompressionCodec:g.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.ResponseCompressionCodec[e.responseCompressionCodec],t.oneofs)&&(r._responseCompressionCodec="responseCompressionCodec"),r},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.cloud.bigquery.storage.v1.ReadSession.TableReadOptions"},m.ResponseCompressionCodec=(t={},(a=Object.create(t))[t[0]="RESPONSE_COMPRESSION_CODEC_UNSPECIFIED"]=0,a[t[2]="RESPONSE_COMPRESSION_CODEC_LZ4"]=2,a),m),f),e.ReadStream=(fe.prototype.name="",fe.create=function(e){return new fe(e)},fe.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),t},fe.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},fe.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.ReadStream;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.name=e.string():e.skipType(7&a,r)}return i},fe.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},fe.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name)?"name: string expected":null},fe.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.ReadStream)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.ReadStream: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.cloud.bigquery.storage.v1.ReadStream;return null!=e.name&&(t.name=String(e.name)),t},fe.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.name=""),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(o.name=e.name),o},fe.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},fe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.ReadStream"},fe),e.WriteStreamView=(t={},(a=Object.create(t))[t[0]="WRITE_STREAM_VIEW_UNSPECIFIED"]=0,a[t[1]="BASIC"]=1,a[t[2]="FULL"]=2,a),e.WriteStream=(b.prototype.name="",b.prototype.type=0,b.prototype.createTime=null,b.prototype.commitTime=null,b.prototype.tableSchema=null,b.prototype.writeMode=0,b.prototype.location="",b.create=function(e){return new b(e)},b.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(16).int32(e.type),null!=e.createTime&&Object.hasOwnProperty.call(e,"createTime")&&g.google.protobuf.Timestamp.encode(e.createTime,t.uint32(26).fork(),o+1).ldelim(),null!=e.commitTime&&Object.hasOwnProperty.call(e,"commitTime")&&g.google.protobuf.Timestamp.encode(e.commitTime,t.uint32(34).fork(),o+1).ldelim(),null!=e.tableSchema&&Object.hasOwnProperty.call(e,"tableSchema")&&g.google.cloud.bigquery.storage.v1.TableSchema.encode(e.tableSchema,t.uint32(42).fork(),o+1).ldelim(),null!=e.writeMode&&Object.hasOwnProperty.call(e,"writeMode")&&t.uint32(56).int32(e.writeMode),null!=e.location&&Object.hasOwnProperty.call(e,"location")&&t.uint32(66).string(e.location),t},b.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},b.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.WriteStream;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.type=e.int32();break;case 3:i.createTime=g.google.protobuf.Timestamp.decode(e,e.uint32(),void 0,r+1);break;case 4:i.commitTime=g.google.protobuf.Timestamp.decode(e,e.uint32(),void 0,r+1);break;case 5:i.tableSchema=g.google.cloud.bigquery.storage.v1.TableSchema.decode(e,e.uint32(),void 0,r+1);break;case 7:i.writeMode=e.int32();break;case 8:i.location=e.string();break;default:e.skipType(7&a,r)}}return i},b.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},b.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name))return"name: string expected";if(null!=e.type&&Object.hasOwnProperty.call(e,"type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:}var o;if(null!=e.createTime&&Object.hasOwnProperty.call(e,"createTime")&&(o=g.google.protobuf.Timestamp.verify(e.createTime,t+1)))return"createTime."+o;if(null!=e.commitTime&&Object.hasOwnProperty.call(e,"commitTime")&&(o=g.google.protobuf.Timestamp.verify(e.commitTime,t+1)))return"commitTime."+o;if(null!=e.tableSchema&&Object.hasOwnProperty.call(e,"tableSchema")&&(o=g.google.cloud.bigquery.storage.v1.TableSchema.verify(e.tableSchema,t+1)))return"tableSchema."+o;if(null!=e.writeMode&&Object.hasOwnProperty.call(e,"writeMode"))switch(e.writeMode){default:return"writeMode: enum value expected";case 0:case 1:}return null!=e.location&&Object.hasOwnProperty.call(e,"location")&&!d.isString(e.location)?"location: string expected":null},b.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.WriteStream)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.WriteStream: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.WriteStream;switch(null!=e.name&&(o.name=String(e.name)),e.type){default:"number"==typeof e.type&&(o.type=e.type);break;case"TYPE_UNSPECIFIED":case 0:o.type=0;break;case"COMMITTED":case 1:o.type=1;break;case"PENDING":case 2:o.type=2;break;case"BUFFERED":case 3:o.type=3}if(null!=e.createTime){if(!d.isObject(e.createTime))throw TypeError(".google.cloud.bigquery.storage.v1.WriteStream.createTime: object expected");o.createTime=g.google.protobuf.Timestamp.fromObject(e.createTime,t+1)}if(null!=e.commitTime){if(!d.isObject(e.commitTime))throw TypeError(".google.cloud.bigquery.storage.v1.WriteStream.commitTime: object expected");o.commitTime=g.google.protobuf.Timestamp.fromObject(e.commitTime,t+1)}if(null!=e.tableSchema){if(!d.isObject(e.tableSchema))throw TypeError(".google.cloud.bigquery.storage.v1.WriteStream.tableSchema: object expected");o.tableSchema=g.google.cloud.bigquery.storage.v1.TableSchema.fromObject(e.tableSchema,t+1)}switch(e.writeMode){default:"number"==typeof e.writeMode&&(o.writeMode=e.writeMode);break;case"WRITE_MODE_UNSPECIFIED":case 0:o.writeMode=0;break;case"INSERT":case 1:o.writeMode=1}return null!=e.location&&(o.location=String(e.location)),o},b.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.name="",r.type=t.enums===String?"TYPE_UNSPECIFIED":0,r.createTime=null,r.commitTime=null,r.tableSchema=null,r.writeMode=t.enums===String?"WRITE_MODE_UNSPECIFIED":0,r.location=""),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(r.name=e.name),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&(r.type=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.WriteStream.Type[e.type]?e.type:g.google.cloud.bigquery.storage.v1.WriteStream.Type[e.type]),null!=e.createTime&&Object.hasOwnProperty.call(e,"createTime")&&(r.createTime=g.google.protobuf.Timestamp.toObject(e.createTime,t,o+1)),null!=e.commitTime&&Object.hasOwnProperty.call(e,"commitTime")&&(r.commitTime=g.google.protobuf.Timestamp.toObject(e.commitTime,t,o+1)),null!=e.tableSchema&&Object.hasOwnProperty.call(e,"tableSchema")&&(r.tableSchema=g.google.cloud.bigquery.storage.v1.TableSchema.toObject(e.tableSchema,t,o+1)),null!=e.writeMode&&Object.hasOwnProperty.call(e,"writeMode")&&(r.writeMode=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.WriteStream.WriteMode[e.writeMode]?e.writeMode:g.google.cloud.bigquery.storage.v1.WriteStream.WriteMode[e.writeMode]),null!=e.location&&Object.hasOwnProperty.call(e,"location")&&(r.location=e.location),r},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.cloud.bigquery.storage.v1.WriteStream"},b.Type=(t={},(a=Object.create(t))[t[0]="TYPE_UNSPECIFIED"]=0,a[t[1]="COMMITTED"]=1,a[t[2]="PENDING"]=2,a[t[3]="BUFFERED"]=3,a),b.WriteMode=(t={},(a=Object.create(t))[t[0]="WRITE_MODE_UNSPECIFIED"]=0,a[t[1]="INSERT"]=1,a),b),e.TableSchema=(me.prototype.fields=d.emptyArray,me.create=function(e){return new me(e)},me.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.fields&&e.fields.length)for(var r=0;r<e.fields.length;++r)g.google.cloud.bigquery.storage.v1.TableFieldSchema.encode(e.fields[r],t.uint32(10).fork(),o+1).ldelim();return t},me.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},me.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.TableSchema;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?(i.fields&&i.fields.length||(i.fields=[]),i.fields.push(g.google.cloud.bigquery.storage.v1.TableFieldSchema.decode(e,e.uint32(),void 0,r+1))):e.skipType(7&a,r)}return i},me.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},me.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.fields&&Object.hasOwnProperty.call(e,"fields")){if(!Array.isArray(e.fields))return"fields: array expected";for(var o=0;o<e.fields.length;++o){var r=g.google.cloud.bigquery.storage.v1.TableFieldSchema.verify(e.fields[o],t+1);if(r)return"fields."+r}}return null},me.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.TableSchema)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.TableSchema: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.TableSchema;if(e.fields){if(!Array.isArray(e.fields))throw TypeError(".google.cloud.bigquery.storage.v1.TableSchema.fields: array expected");o.fields=[];for(var r=0;r<e.fields.length;++r){if(!d.isObject(e.fields[r]))throw TypeError(".google.cloud.bigquery.storage.v1.TableSchema.fields: object expected");o.fields[r]=g.google.cloud.bigquery.storage.v1.TableFieldSchema.fromObject(e.fields[r],t+1)}}return o},me.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.fields=[]),e.fields&&e.fields.length){r.fields=[];for(var n=0;n<e.fields.length;++n)r.fields[n]=g.google.cloud.bigquery.storage.v1.TableFieldSchema.toObject(e.fields[n],t,o+1)}return r},me.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},me.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.TableSchema"},me),e.TableFieldSchema=(y.prototype.name="",y.prototype.type=0,y.prototype.mode=0,y.prototype.fields=d.emptyArray,y.prototype.description="",y.prototype.maxLength=d.Long?d.Long.fromBits(0,0,!1):0,y.prototype.precision=d.Long?d.Long.fromBits(0,0,!1):0,y.prototype.scale=d.Long?d.Long.fromBits(0,0,!1):0,y.prototype.defaultValueExpression="",y.prototype.timestampPrecision=null,y.prototype.rangeElementType=null,y.create=function(e){return new y(e)},y.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(16).int32(e.type),null!=e.mode&&Object.hasOwnProperty.call(e,"mode")&&t.uint32(24).int32(e.mode),null!=e.fields&&e.fields.length)for(var r=0;r<e.fields.length;++r)g.google.cloud.bigquery.storage.v1.TableFieldSchema.encode(e.fields[r],t.uint32(34).fork(),o+1).ldelim();return null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(50).string(e.description),null!=e.maxLength&&Object.hasOwnProperty.call(e,"maxLength")&&t.uint32(56).int64(e.maxLength),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(64).int64(e.precision),null!=e.scale&&Object.hasOwnProperty.call(e,"scale")&&t.uint32(72).int64(e.scale),null!=e.defaultValueExpression&&Object.hasOwnProperty.call(e,"defaultValueExpression")&&t.uint32(82).string(e.defaultValueExpression),null!=e.rangeElementType&&Object.hasOwnProperty.call(e,"rangeElementType")&&g.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType.encode(e.rangeElementType,t.uint32(90).fork(),o+1).ldelim(),null!=e.timestampPrecision&&Object.hasOwnProperty.call(e,"timestampPrecision")&&g.google.protobuf.Int64Value.encode(e.timestampPrecision,t.uint32(218).fork(),o+1).ldelim(),t},y.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},y.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.TableFieldSchema;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.type=e.int32();break;case 3:i.mode=e.int32();break;case 4:i.fields&&i.fields.length||(i.fields=[]),i.fields.push(g.google.cloud.bigquery.storage.v1.TableFieldSchema.decode(e,e.uint32(),void 0,r+1));break;case 6:i.description=e.string();break;case 7:i.maxLength=e.int64();break;case 8:i.precision=e.int64();break;case 9:i.scale=e.int64();break;case 10:i.defaultValueExpression=e.string();break;case 27:i.timestampPrecision=g.google.protobuf.Int64Value.decode(e,e.uint32(),void 0,r+1);break;case 11:i.rangeElementType=g.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},y.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},y.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name))return"name: string expected";if(null!=e.type&&Object.hasOwnProperty.call(e,"type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:}if(null!=e.mode&&Object.hasOwnProperty.call(e,"mode"))switch(e.mode){default:return"mode: enum value expected";case 0:case 1:case 2:case 3:}if(null!=e.fields&&Object.hasOwnProperty.call(e,"fields")){if(!Array.isArray(e.fields))return"fields: array expected";for(var o=0;o<e.fields.length;++o)if(r=g.google.cloud.bigquery.storage.v1.TableFieldSchema.verify(e.fields[o],t+1))return"fields."+r}if(null!=e.description&&Object.hasOwnProperty.call(e,"description")&&!d.isString(e.description))return"description: string expected";if(null!=e.maxLength&&Object.hasOwnProperty.call(e,"maxLength")&&!(d.isInteger(e.maxLength)||e.maxLength&&d.isInteger(e.maxLength.low)&&d.isInteger(e.maxLength.high)))return"maxLength: integer|Long expected";if(null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&!(d.isInteger(e.precision)||e.precision&&d.isInteger(e.precision.low)&&d.isInteger(e.precision.high)))return"precision: integer|Long expected";if(null!=e.scale&&Object.hasOwnProperty.call(e,"scale")&&!(d.isInteger(e.scale)||e.scale&&d.isInteger(e.scale.low)&&d.isInteger(e.scale.high)))return"scale: integer|Long expected";if(null!=e.defaultValueExpression&&Object.hasOwnProperty.call(e,"defaultValueExpression")&&!d.isString(e.defaultValueExpression))return"defaultValueExpression: string expected";var r;if(null!=e.timestampPrecision&&Object.hasOwnProperty.call(e,"timestampPrecision")&&(r=g.google.protobuf.Int64Value.verify(e.timestampPrecision,t+1)))return"timestampPrecision."+r;if(null!=e.rangeElementType&&Object.hasOwnProperty.call(e,"rangeElementType")&&(r=g.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType.verify(e.rangeElementType,t+1)))return"rangeElementType."+r;return null},y.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.TableFieldSchema)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.TableFieldSchema: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.TableFieldSchema;switch(null!=e.name&&(o.name=String(e.name)),e.type){default:"number"==typeof e.type&&(o.type=e.type);break;case"TYPE_UNSPECIFIED":case 0:o.type=0;break;case"STRING":case 1:o.type=1;break;case"INT64":case 2:o.type=2;break;case"DOUBLE":case 3:o.type=3;break;case"STRUCT":case 4:o.type=4;break;case"BYTES":case 5:o.type=5;break;case"BOOL":case 6:o.type=6;break;case"TIMESTAMP":case 7:o.type=7;break;case"DATE":case 8:o.type=8;break;case"TIME":case 9:o.type=9;break;case"DATETIME":case 10:o.type=10;break;case"GEOGRAPHY":case 11:o.type=11;break;case"NUMERIC":case 12:o.type=12;break;case"BIGNUMERIC":case 13:o.type=13;break;case"INTERVAL":case 14:o.type=14;break;case"JSON":case 15:o.type=15;break;case"RANGE":case 16:o.type=16}switch(e.mode){default:"number"==typeof e.mode&&(o.mode=e.mode);break;case"MODE_UNSPECIFIED":case 0:o.mode=0;break;case"NULLABLE":case 1:o.mode=1;break;case"REQUIRED":case 2:o.mode=2;break;case"REPEATED":case 3:o.mode=3}if(e.fields){if(!Array.isArray(e.fields))throw TypeError(".google.cloud.bigquery.storage.v1.TableFieldSchema.fields: array expected");o.fields=[];for(var r=0;r<e.fields.length;++r){if(!d.isObject(e.fields[r]))throw TypeError(".google.cloud.bigquery.storage.v1.TableFieldSchema.fields: object expected");o.fields[r]=g.google.cloud.bigquery.storage.v1.TableFieldSchema.fromObject(e.fields[r],t+1)}}if(null!=e.description&&(o.description=String(e.description)),null!=e.maxLength&&(d.Long?o.maxLength=d.Long.fromValue(e.maxLength,!1):"string"==typeof e.maxLength?o.maxLength=parseInt(e.maxLength,10):"number"==typeof e.maxLength?o.maxLength=e.maxLength:"object"==typeof e.maxLength&&(o.maxLength=new d.LongBits(e.maxLength.low>>>0,e.maxLength.high>>>0).toNumber())),null!=e.precision&&(d.Long?o.precision=d.Long.fromValue(e.precision,!1):"string"==typeof e.precision?o.precision=parseInt(e.precision,10):"number"==typeof e.precision?o.precision=e.precision:"object"==typeof e.precision&&(o.precision=new d.LongBits(e.precision.low>>>0,e.precision.high>>>0).toNumber())),null!=e.scale&&(d.Long?o.scale=d.Long.fromValue(e.scale,!1):"string"==typeof e.scale?o.scale=parseInt(e.scale,10):"number"==typeof e.scale?o.scale=e.scale:"object"==typeof e.scale&&(o.scale=new d.LongBits(e.scale.low>>>0,e.scale.high>>>0).toNumber())),null!=e.defaultValueExpression&&(o.defaultValueExpression=String(e.defaultValueExpression)),null!=e.timestampPrecision){if(!d.isObject(e.timestampPrecision))throw TypeError(".google.cloud.bigquery.storage.v1.TableFieldSchema.timestampPrecision: object expected");o.timestampPrecision=g.google.protobuf.Int64Value.fromObject(e.timestampPrecision,t+1)}if(null!=e.rangeElementType){if(!d.isObject(e.rangeElementType))throw TypeError(".google.cloud.bigquery.storage.v1.TableFieldSchema.rangeElementType: object expected");o.rangeElementType=g.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType.fromObject(e.rangeElementType,t+1)}return o},y.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,n={};if((t.arrays||t.defaults)&&(n.fields=[]),t.defaults&&(n.name="",n.type=t.enums===String?"TYPE_UNSPECIFIED":0,n.mode=t.enums===String?"MODE_UNSPECIFIED":0,n.description="",d.Long?(r=new d.Long(0,0,!1),n.maxLength=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):n.maxLength=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,d.Long?(r=new d.Long(0,0,!1),n.precision=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):n.precision=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,d.Long?(r=new d.Long(0,0,!1),n.scale=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):n.scale=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,n.defaultValueExpression="",n.rangeElementType=null,n.timestampPrecision=null),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(n.name=e.name),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&(n.type=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.TableFieldSchema.Type[e.type]?e.type:g.google.cloud.bigquery.storage.v1.TableFieldSchema.Type[e.type]),null!=e.mode&&Object.hasOwnProperty.call(e,"mode")&&(n.mode=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode[e.mode]?e.mode:g.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode[e.mode]),e.fields&&e.fields.length){n.fields=[];for(var i=0;i<e.fields.length;++i)n.fields[i]=g.google.cloud.bigquery.storage.v1.TableFieldSchema.toObject(e.fields[i],t,o+1)}return null!=e.description&&Object.hasOwnProperty.call(e,"description")&&(n.description=e.description),null!=e.maxLength&&Object.hasOwnProperty.call(e,"maxLength")&&("undefined"!=typeof BigInt&&t.longs===BigInt?n.maxLength="number"==typeof e.maxLength?BigInt(e.maxLength):d.Long.fromBits(e.maxLength.low>>>0,e.maxLength.high>>>0,!1).toBigInt():"number"==typeof e.maxLength?n.maxLength=t.longs===String?String(e.maxLength):e.maxLength:n.maxLength=t.longs===String?d.Long.prototype.toString.call(e.maxLength):t.longs===Number?new d.LongBits(e.maxLength.low>>>0,e.maxLength.high>>>0).toNumber():e.maxLength),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&("undefined"!=typeof BigInt&&t.longs===BigInt?n.precision="number"==typeof e.precision?BigInt(e.precision):d.Long.fromBits(e.precision.low>>>0,e.precision.high>>>0,!1).toBigInt():"number"==typeof e.precision?n.precision=t.longs===String?String(e.precision):e.precision:n.precision=t.longs===String?d.Long.prototype.toString.call(e.precision):t.longs===Number?new d.LongBits(e.precision.low>>>0,e.precision.high>>>0).toNumber():e.precision),null!=e.scale&&Object.hasOwnProperty.call(e,"scale")&&("undefined"!=typeof BigInt&&t.longs===BigInt?n.scale="number"==typeof e.scale?BigInt(e.scale):d.Long.fromBits(e.scale.low>>>0,e.scale.high>>>0,!1).toBigInt():"number"==typeof e.scale?n.scale=t.longs===String?String(e.scale):e.scale:n.scale=t.longs===String?d.Long.prototype.toString.call(e.scale):t.longs===Number?new d.LongBits(e.scale.low>>>0,e.scale.high>>>0).toNumber():e.scale),null!=e.defaultValueExpression&&Object.hasOwnProperty.call(e,"defaultValueExpression")&&(n.defaultValueExpression=e.defaultValueExpression),null!=e.rangeElementType&&Object.hasOwnProperty.call(e,"rangeElementType")&&(n.rangeElementType=g.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType.toObject(e.rangeElementType,t,o+1)),null!=e.timestampPrecision&&Object.hasOwnProperty.call(e,"timestampPrecision")&&(n.timestampPrecision=g.google.protobuf.Int64Value.toObject(e.timestampPrecision,t,o+1)),n},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.cloud.bigquery.storage.v1.TableFieldSchema"},y.Type=(t={},(a=Object.create(t))[t[0]="TYPE_UNSPECIFIED"]=0,a[t[1]="STRING"]=1,a[t[2]="INT64"]=2,a[t[3]="DOUBLE"]=3,a[t[4]="STRUCT"]=4,a[t[5]="BYTES"]=5,a[t[6]="BOOL"]=6,a[t[7]="TIMESTAMP"]=7,a[t[8]="DATE"]=8,a[t[9]="TIME"]=9,a[t[10]="DATETIME"]=10,a[t[11]="GEOGRAPHY"]=11,a[t[12]="NUMERIC"]=12,a[t[13]="BIGNUMERIC"]=13,a[t[14]="INTERVAL"]=14,a[t[15]="JSON"]=15,a[t[16]="RANGE"]=16,a),y.Mode=(t={},(a=Object.create(t))[t[0]="MODE_UNSPECIFIED"]=0,a[t[1]="NULLABLE"]=1,a[t[2]="REQUIRED"]=2,a[t[3]="REPEATED"]=3,a),y.FieldElementType=(be.prototype.type=0,be.create=function(e){return new be(e)},be.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),t},be.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},be.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.type=e.int32():e.skipType(7&a,r)}return i},be.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},be.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.type&&Object.hasOwnProperty.call(e,"type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:}return null},be.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType;switch(e.type){default:"number"==typeof e.type&&(o.type=e.type);break;case"TYPE_UNSPECIFIED":case 0:o.type=0;break;case"STRING":case 1:o.type=1;break;case"INT64":case 2:o.type=2;break;case"DOUBLE":case 3:o.type=3;break;case"STRUCT":case 4:o.type=4;break;case"BYTES":case 5:o.type=5;break;case"BOOL":case 6:o.type=6;break;case"TIMESTAMP":case 7:o.type=7;break;case"DATE":case 8:o.type=8;break;case"TIME":case 9:o.type=9;break;case"DATETIME":case 10:o.type=10;break;case"GEOGRAPHY":case 11:o.type=11;break;case"NUMERIC":case 12:o.type=12;break;case"BIGNUMERIC":case 13:o.type=13;break;case"INTERVAL":case 14:o.type=14;break;case"JSON":case 15:o.type=15;break;case"RANGE":case 16:o.type=16}return o},be.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.type=t.enums===String?"TYPE_UNSPECIFIED":0),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&(o.type=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.TableFieldSchema.Type[e.type]?e.type:g.google.cloud.bigquery.storage.v1.TableFieldSchema.Type[e.type]),o},be.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},be.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType"},be),y),e),i),o),n),C.protobuf=((t={}).FileDescriptorSet=(ye.prototype.file=d.emptyArray,ye.create=function(e){return new ye(e)},ye.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.file&&e.file.length)for(var r=0;r<e.file.length;++r)g.google.protobuf.FileDescriptorProto.encode(e.file[r],t.uint32(10).fork(),o+1).ldelim();return t},ye.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ye.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FileDescriptorSet;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?(i.file&&i.file.length||(i.file=[]),i.file.push(g.google.protobuf.FileDescriptorProto.decode(e,e.uint32(),void 0,r+1))):e.skipType(7&a,r)}return i},ye.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ye.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.file&&Object.hasOwnProperty.call(e,"file")){if(!Array.isArray(e.file))return"file: array expected";for(var o=0;o<e.file.length;++o){var r=g.google.protobuf.FileDescriptorProto.verify(e.file[o],t+1);if(r)return"file."+r}}return null},ye.fromObject=function(e,t){if(e instanceof g.google.protobuf.FileDescriptorSet)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.FileDescriptorSet: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.FileDescriptorSet;if(e.file){if(!Array.isArray(e.file))throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected");o.file=[];for(var r=0;r<e.file.length;++r){if(!d.isObject(e.file[r]))throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected");o.file[r]=g.google.protobuf.FileDescriptorProto.fromObject(e.file[r],t+1)}}return o},ye.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.file=[]),e.file&&e.file.length){r.file=[];for(var n=0;n<e.file.length;++n)r.file[n]=g.google.protobuf.FileDescriptorProto.toObject(e.file[n],t,o+1)}return r},ye.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ye.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FileDescriptorSet"},ye),t.Edition=(a={},(e=Object.create(a))[a[0]="EDITION_UNKNOWN"]=0,e[a[900]="EDITION_LEGACY"]=900,e[a[998]="EDITION_PROTO2"]=998,e[a[999]="EDITION_PROTO3"]=999,e[a[1e3]="EDITION_2023"]=1e3,e[a[1001]="EDITION_2024"]=1001,e[a[1]="EDITION_1_TEST_ONLY"]=1,e[a[2]="EDITION_2_TEST_ONLY"]=2,e[a[99997]="EDITION_99997_TEST_ONLY"]=99997,e[a[99998]="EDITION_99998_TEST_ONLY"]=99998,e[a[99999]="EDITION_99999_TEST_ONLY"]=99999,e[a[2147483647]="EDITION_MAX"]=2147483647,e),t.FileDescriptorProto=(h.prototype.name="",h.prototype.package="",h.prototype.dependency=d.emptyArray,h.prototype.publicDependency=d.emptyArray,h.prototype.weakDependency=d.emptyArray,h.prototype.optionDependency=d.emptyArray,h.prototype.messageType=d.emptyArray,h.prototype.enumType=d.emptyArray,h.prototype.service=d.emptyArray,h.prototype.extension=d.emptyArray,h.prototype.options=null,h.prototype.sourceCodeInfo=null,h.prototype.syntax="",h.prototype.edition=0,h.create=function(e){return new h(e)},h.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.package&&Object.hasOwnProperty.call(e,"package")&&t.uint32(18).string(e.package),null!=e.dependency&&e.dependency.length)for(var r=0;r<e.dependency.length;++r)t.uint32(26).string(e.dependency[r]);if(null!=e.messageType&&e.messageType.length)for(r=0;r<e.messageType.length;++r)g.google.protobuf.DescriptorProto.encode(e.messageType[r],t.uint32(34).fork(),o+1).ldelim();if(null!=e.enumType&&e.enumType.length)for(r=0;r<e.enumType.length;++r)g.google.protobuf.EnumDescriptorProto.encode(e.enumType[r],t.uint32(42).fork(),o+1).ldelim();if(null!=e.service&&e.service.length)for(r=0;r<e.service.length;++r)g.google.protobuf.ServiceDescriptorProto.encode(e.service[r],t.uint32(50).fork(),o+1).ldelim();if(null!=e.extension&&e.extension.length)for(r=0;r<e.extension.length;++r)g.google.protobuf.FieldDescriptorProto.encode(e.extension[r],t.uint32(58).fork(),o+1).ldelim();if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&g.google.protobuf.FileOptions.encode(e.options,t.uint32(66).fork(),o+1).ldelim(),null!=e.sourceCodeInfo&&Object.hasOwnProperty.call(e,"sourceCodeInfo")&&g.google.protobuf.SourceCodeInfo.encode(e.sourceCodeInfo,t.uint32(74).fork(),o+1).ldelim(),null!=e.publicDependency&&e.publicDependency.length)for(r=0;r<e.publicDependency.length;++r)t.uint32(80).int32(e.publicDependency[r]);if(null!=e.weakDependency&&e.weakDependency.length)for(r=0;r<e.weakDependency.length;++r)t.uint32(88).int32(e.weakDependency[r]);if(null!=e.syntax&&Object.hasOwnProperty.call(e,"syntax")&&t.uint32(98).string(e.syntax),null!=e.edition&&Object.hasOwnProperty.call(e,"edition")&&t.uint32(112).int32(e.edition),null!=e.optionDependency&&e.optionDependency.length)for(r=0;r<e.optionDependency.length;++r)t.uint32(122).string(e.optionDependency[r]);return t},h.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},h.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FileDescriptorProto;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.package=e.string();break;case 3:i.dependency&&i.dependency.length||(i.dependency=[]),i.dependency.push(e.string());break;case 10:if(i.publicDependency&&i.publicDependency.length||(i.publicDependency=[]),2==(7&a))for(var l=e.uint32()+e.pos;e.pos<l;)i.publicDependency.push(e.int32());else i.publicDependency.push(e.int32());break;case 11:if(i.weakDependency&&i.weakDependency.length||(i.weakDependency=[]),2==(7&a))for(l=e.uint32()+e.pos;e.pos<l;)i.weakDependency.push(e.int32());else i.weakDependency.push(e.int32());break;case 15:i.optionDependency&&i.optionDependency.length||(i.optionDependency=[]),i.optionDependency.push(e.string());break;case 4:i.messageType&&i.messageType.length||(i.messageType=[]),i.messageType.push(g.google.protobuf.DescriptorProto.decode(e,e.uint32(),void 0,r+1));break;case 5:i.enumType&&i.enumType.length||(i.enumType=[]),i.enumType.push(g.google.protobuf.EnumDescriptorProto.decode(e,e.uint32(),void 0,r+1));break;case 6:i.service&&i.service.length||(i.service=[]),i.service.push(g.google.protobuf.ServiceDescriptorProto.decode(e,e.uint32(),void 0,r+1));break;case 7:i.extension&&i.extension.length||(i.extension=[]),i.extension.push(g.google.protobuf.FieldDescriptorProto.decode(e,e.uint32(),void 0,r+1));break;case 8:i.options=g.google.protobuf.FileOptions.decode(e,e.uint32(),void 0,r+1);break;case 9:i.sourceCodeInfo=g.google.protobuf.SourceCodeInfo.decode(e,e.uint32(),void 0,r+1);break;case 12:i.syntax=e.string();break;case 14:i.edition=e.int32();break;default:e.skipType(7&a,r)}}return i},h.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},h.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name))return"name: string expected";if(null!=e.package&&Object.hasOwnProperty.call(e,"package")&&!d.isString(e.package))return"package: string expected";if(null!=e.dependency&&Object.hasOwnProperty.call(e,"dependency")){if(!Array.isArray(e.dependency))return"dependency: array expected";for(var o=0;o<e.dependency.length;++o)if(!d.isString(e.dependency[o]))return"dependency: string[] expected"}if(null!=e.publicDependency&&Object.hasOwnProperty.call(e,"publicDependency")){if(!Array.isArray(e.publicDependency))return"publicDependency: array expected";for(o=0;o<e.publicDependency.length;++o)if(!d.isInteger(e.publicDependency[o]))return"publicDependency: integer[] expected"}if(null!=e.weakDependency&&Object.hasOwnProperty.call(e,"weakDependency")){if(!Array.isArray(e.weakDependency))return"weakDependency: array expected";for(o=0;o<e.weakDependency.length;++o)if(!d.isInteger(e.weakDependency[o]))return"weakDependency: integer[] expected"}if(null!=e.optionDependency&&Object.hasOwnProperty.call(e,"optionDependency")){if(!Array.isArray(e.optionDependency))return"optionDependency: array expected";for(o=0;o<e.optionDependency.length;++o)if(!d.isString(e.optionDependency[o]))return"optionDependency: string[] expected"}if(null!=e.messageType&&Object.hasOwnProperty.call(e,"messageType")){if(!Array.isArray(e.messageType))return"messageType: array expected";for(o=0;o<e.messageType.length;++o)if(r=g.google.protobuf.DescriptorProto.verify(e.messageType[o],t+1))return"messageType."+r}if(null!=e.enumType&&Object.hasOwnProperty.call(e,"enumType")){if(!Array.isArray(e.enumType))return"enumType: array expected";for(o=0;o<e.enumType.length;++o)if(r=g.google.protobuf.EnumDescriptorProto.verify(e.enumType[o],t+1))return"enumType."+r}if(null!=e.service&&Object.hasOwnProperty.call(e,"service")){if(!Array.isArray(e.service))return"service: array expected";for(o=0;o<e.service.length;++o)if(r=g.google.protobuf.ServiceDescriptorProto.verify(e.service[o],t+1))return"service."+r}if(null!=e.extension&&Object.hasOwnProperty.call(e,"extension")){if(!Array.isArray(e.extension))return"extension: array expected";for(o=0;o<e.extension.length;++o)if(r=g.google.protobuf.FieldDescriptorProto.verify(e.extension[o],t+1))return"extension."+r}var r;if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(r=g.google.protobuf.FileOptions.verify(e.options,t+1)))return"options."+r;if(null!=e.sourceCodeInfo&&Object.hasOwnProperty.call(e,"sourceCodeInfo")&&(r=g.google.protobuf.SourceCodeInfo.verify(e.sourceCodeInfo,t+1)))return"sourceCodeInfo."+r;if(null!=e.syntax&&Object.hasOwnProperty.call(e,"syntax")&&!d.isString(e.syntax))return"syntax: string expected";if(null!=e.edition&&Object.hasOwnProperty.call(e,"edition"))switch(e.edition){default:return"edition: enum value expected";case 0:case 900:case 998:case 999:case 1e3:case 1001:case 1:case 2:case 99997:case 99998:case 99999:case 2147483647:}return null},h.fromObject=function(e,t){if(e instanceof g.google.protobuf.FileDescriptorProto)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.FileDescriptorProto: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.FileDescriptorProto;if(null!=e.name&&(o.name=String(e.name)),null!=e.package&&(o.package=String(e.package)),e.dependency){if(!Array.isArray(e.dependency))throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected");o.dependency=[];for(var r=0;r<e.dependency.length;++r)o.dependency[r]=String(e.dependency[r])}if(e.publicDependency){if(!Array.isArray(e.publicDependency))throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected");o.publicDependency=[];for(r=0;r<e.publicDependency.length;++r)o.publicDependency[r]=0|e.publicDependency[r]}if(e.weakDependency){if(!Array.isArray(e.weakDependency))throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected");o.weakDependency=[];for(r=0;r<e.weakDependency.length;++r)o.weakDependency[r]=0|e.weakDependency[r]}if(e.optionDependency){if(!Array.isArray(e.optionDependency))throw TypeError(".google.protobuf.FileDescriptorProto.optionDependency: array expected");o.optionDependency=[];for(r=0;r<e.optionDependency.length;++r)o.optionDependency[r]=String(e.optionDependency[r])}if(e.messageType){if(!Array.isArray(e.messageType))throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected");o.messageType=[];for(r=0;r<e.messageType.length;++r){if(!d.isObject(e.messageType[r]))throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected");o.messageType[r]=g.google.protobuf.DescriptorProto.fromObject(e.messageType[r],t+1)}}if(e.enumType){if(!Array.isArray(e.enumType))throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected");o.enumType=[];for(r=0;r<e.enumType.length;++r){if(!d.isObject(e.enumType[r]))throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected");o.enumType[r]=g.google.protobuf.EnumDescriptorProto.fromObject(e.enumType[r],t+1)}}if(e.service){if(!Array.isArray(e.service))throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected");o.service=[];for(r=0;r<e.service.length;++r){if(!d.isObject(e.service[r]))throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected");o.service[r]=g.google.protobuf.ServiceDescriptorProto.fromObject(e.service[r],t+1)}}if(e.extension){if(!Array.isArray(e.extension))throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected");o.extension=[];for(r=0;r<e.extension.length;++r){if(!d.isObject(e.extension[r]))throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected");o.extension[r]=g.google.protobuf.FieldDescriptorProto.fromObject(e.extension[r],t+1)}}if(null!=e.options){if(!d.isObject(e.options))throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected");o.options=g.google.protobuf.FileOptions.fromObject(e.options,t+1)}if(null!=e.sourceCodeInfo){if(!d.isObject(e.sourceCodeInfo))throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected");o.sourceCodeInfo=g.google.protobuf.SourceCodeInfo.fromObject(e.sourceCodeInfo,t+1)}switch(null!=e.syntax&&(o.syntax=String(e.syntax)),e.edition){default:"number"==typeof e.edition&&(o.edition=e.edition);break;case"EDITION_UNKNOWN":case 0:o.edition=0;break;case"EDITION_LEGACY":case 900:o.edition=900;break;case"EDITION_PROTO2":case 998:o.edition=998;break;case"EDITION_PROTO3":case 999:o.edition=999;break;case"EDITION_2023":case 1e3:o.edition=1e3;break;case"EDITION_2024":case 1001:o.edition=1001;break;case"EDITION_1_TEST_ONLY":case 1:o.edition=1;break;case"EDITION_2_TEST_ONLY":case 2:o.edition=2;break;case"EDITION_99997_TEST_ONLY":case 99997:o.edition=99997;break;case"EDITION_99998_TEST_ONLY":case 99998:o.edition=99998;break;case"EDITION_99999_TEST_ONLY":case 99999:o.edition=99999;break;case"EDITION_MAX":case 2147483647:o.edition=2147483647}return o},h.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.dependency=[],r.messageType=[],r.enumType=[],r.service=[],r.extension=[],r.publicDependency=[],r.weakDependency=[],r.optionDependency=[]),t.defaults&&(r.name="",r.package="",r.options=null,r.sourceCodeInfo=null,r.syntax="",r.edition=t.enums===String?"EDITION_UNKNOWN":0),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(r.name=e.name),null!=e.package&&Object.hasOwnProperty.call(e,"package")&&(r.package=e.package),e.dependency&&e.dependency.length){r.dependency=[];for(var n=0;n<e.dependency.length;++n)r.dependency[n]=e.dependency[n]}if(e.messageType&&e.messageType.length){r.messageType=[];for(n=0;n<e.messageType.length;++n)r.messageType[n]=g.google.protobuf.DescriptorProto.toObject(e.messageType[n],t,o+1)}if(e.enumType&&e.enumType.length){r.enumType=[];for(n=0;n<e.enumType.length;++n)r.enumType[n]=g.google.protobuf.EnumDescriptorProto.toObject(e.enumType[n],t,o+1)}if(e.service&&e.service.length){r.service=[];for(n=0;n<e.service.length;++n)r.service[n]=g.google.protobuf.ServiceDescriptorProto.toObject(e.service[n],t,o+1)}if(e.extension&&e.extension.length){r.extension=[];for(n=0;n<e.extension.length;++n)r.extension[n]=g.google.protobuf.FieldDescriptorProto.toObject(e.extension[n],t,o+1)}if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(r.options=g.google.protobuf.FileOptions.toObject(e.options,t,o+1)),null!=e.sourceCodeInfo&&Object.hasOwnProperty.call(e,"sourceCodeInfo")&&(r.sourceCodeInfo=g.google.protobuf.SourceCodeInfo.toObject(e.sourceCodeInfo,t,o+1)),e.publicDependency&&e.publicDependency.length){r.publicDependency=[];for(n=0;n<e.publicDependency.length;++n)r.publicDependency[n]=e.publicDependency[n]}if(e.weakDependency&&e.weakDependency.length){r.weakDependency=[];for(n=0;n<e.weakDependency.length;++n)r.weakDependency[n]=e.weakDependency[n]}if(null!=e.syntax&&Object.hasOwnProperty.call(e,"syntax")&&(r.syntax=e.syntax),null!=e.edition&&Object.hasOwnProperty.call(e,"edition")&&(r.edition=t.enums!==String||void 0===g.google.protobuf.Edition[e.edition]?e.edition:g.google.protobuf.Edition[e.edition]),e.optionDependency&&e.optionDependency.length){r.optionDependency=[];for(n=0;n<e.optionDependency.length;++n)r.optionDependency[n]=e.optionDependency[n]}return r},h.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},h.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FileDescriptorProto"},h),t.DescriptorProto=(O.prototype.name="",O.prototype.field=d.emptyArray,O.prototype.extension=d.emptyArray,O.prototype.nestedType=d.emptyArray,O.prototype.enumType=d.emptyArray,O.prototype.extensionRange=d.emptyArray,O.prototype.oneofDecl=d.emptyArray,O.prototype.options=null,O.prototype.reservedRange=d.emptyArray,O.prototype.reservedName=d.emptyArray,O.prototype.visibility=0,O.create=function(e){return new O(e)},O.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.field&&e.field.length)for(var r=0;r<e.field.length;++r)g.google.protobuf.FieldDescriptorProto.encode(e.field[r],t.uint32(18).fork(),o+1).ldelim();if(null!=e.nestedType&&e.nestedType.length)for(r=0;r<e.nestedType.length;++r)g.google.protobuf.DescriptorProto.encode(e.nestedType[r],t.uint32(26).fork(),o+1).ldelim();if(null!=e.enumType&&e.enumType.length)for(r=0;r<e.enumType.length;++r)g.google.protobuf.EnumDescriptorProto.encode(e.enumType[r],t.uint32(34).fork(),o+1).ldelim();if(null!=e.extensionRange&&e.extensionRange.length)for(r=0;r<e.extensionRange.length;++r)g.google.protobuf.DescriptorProto.ExtensionRange.encode(e.extensionRange[r],t.uint32(42).fork(),o+1).ldelim();if(null!=e.extension&&e.extension.length)for(r=0;r<e.extension.length;++r)g.google.protobuf.FieldDescriptorProto.encode(e.extension[r],t.uint32(50).fork(),o+1).ldelim();if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&g.google.protobuf.MessageOptions.encode(e.options,t.uint32(58).fork(),o+1).ldelim(),null!=e.oneofDecl&&e.oneofDecl.length)for(r=0;r<e.oneofDecl.length;++r)g.google.protobuf.OneofDescriptorProto.encode(e.oneofDecl[r],t.uint32(66).fork(),o+1).ldelim();if(null!=e.reservedRange&&e.reservedRange.length)for(r=0;r<e.reservedRange.length;++r)g.google.protobuf.DescriptorProto.ReservedRange.encode(e.reservedRange[r],t.uint32(74).fork(),o+1).ldelim();if(null!=e.reservedName&&e.reservedName.length)for(r=0;r<e.reservedName.length;++r)t.uint32(82).string(e.reservedName[r]);return null!=e.visibility&&Object.hasOwnProperty.call(e,"visibility")&&t.uint32(88).int32(e.visibility),t},O.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},O.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.DescriptorProto;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.field&&i.field.length||(i.field=[]),i.field.push(g.google.protobuf.FieldDescriptorProto.decode(e,e.uint32(),void 0,r+1));break;case 6:i.extension&&i.extension.length||(i.extension=[]),i.extension.push(g.google.protobuf.FieldDescriptorProto.decode(e,e.uint32(),void 0,r+1));break;case 3:i.nestedType&&i.nestedType.length||(i.nestedType=[]),i.nestedType.push(g.google.protobuf.DescriptorProto.decode(e,e.uint32(),void 0,r+1));break;case 4:i.enumType&&i.enumType.length||(i.enumType=[]),i.enumType.push(g.google.protobuf.EnumDescriptorProto.decode(e,e.uint32(),void 0,r+1));break;case 5:i.extensionRange&&i.extensionRange.length||(i.extensionRange=[]),i.extensionRange.push(g.google.protobuf.DescriptorProto.ExtensionRange.decode(e,e.uint32(),void 0,r+1));break;case 8:i.oneofDecl&&i.oneofDecl.length||(i.oneofDecl=[]),i.oneofDecl.push(g.google.protobuf.OneofDescriptorProto.decode(e,e.uint32(),void 0,r+1));break;case 7:i.options=g.google.protobuf.MessageOptions.decode(e,e.uint32(),void 0,r+1);break;case 9:i.reservedRange&&i.reservedRange.length||(i.reservedRange=[]),i.reservedRange.push(g.google.protobuf.DescriptorProto.ReservedRange.decode(e,e.uint32(),void 0,r+1));break;case 10:i.reservedName&&i.reservedName.length||(i.reservedName=[]),i.reservedName.push(e.string());break;case 11:i.visibility=e.int32();break;default:e.skipType(7&a,r)}}return i},O.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},O.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name))return"name: string expected";if(null!=e.field&&Object.hasOwnProperty.call(e,"field")){if(!Array.isArray(e.field))return"field: array expected";for(var o=0;o<e.field.length;++o)if(r=g.google.protobuf.FieldDescriptorProto.verify(e.field[o],t+1))return"field."+r}if(null!=e.extension&&Object.hasOwnProperty.call(e,"extension")){if(!Array.isArray(e.extension))return"extension: array expected";for(o=0;o<e.extension.length;++o)if(r=g.google.protobuf.FieldDescriptorProto.verify(e.extension[o],t+1))return"extension."+r}if(null!=e.nestedType&&Object.hasOwnProperty.call(e,"nestedType")){if(!Array.isArray(e.nestedType))return"nestedType: array expected";for(o=0;o<e.nestedType.length;++o)if(r=g.google.protobuf.DescriptorProto.verify(e.nestedType[o],t+1))return"nestedType."+r}if(null!=e.enumType&&Object.hasOwnProperty.call(e,"enumType")){if(!Array.isArray(e.enumType))return"enumType: array expected";for(o=0;o<e.enumType.length;++o)if(r=g.google.protobuf.EnumDescriptorProto.verify(e.enumType[o],t+1))return"enumType."+r}if(null!=e.extensionRange&&Object.hasOwnProperty.call(e,"extensionRange")){if(!Array.isArray(e.extensionRange))return"extensionRange: array expected";for(o=0;o<e.extensionRange.length;++o)if(r=g.google.protobuf.DescriptorProto.ExtensionRange.verify(e.extensionRange[o],t+1))return"extensionRange."+r}if(null!=e.oneofDecl&&Object.hasOwnProperty.call(e,"oneofDecl")){if(!Array.isArray(e.oneofDecl))return"oneofDecl: array expected";for(o=0;o<e.oneofDecl.length;++o)if(r=g.google.protobuf.OneofDescriptorProto.verify(e.oneofDecl[o],t+1))return"oneofDecl."+r}if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(r=g.google.protobuf.MessageOptions.verify(e.options,t+1)))return"options."+r;if(null!=e.reservedRange&&Object.hasOwnProperty.call(e,"reservedRange")){if(!Array.isArray(e.reservedRange))return"reservedRange: array expected";for(var r,o=0;o<e.reservedRange.length;++o)if(r=g.google.protobuf.DescriptorProto.ReservedRange.verify(e.reservedRange[o],t+1))return"reservedRange."+r}if(null!=e.reservedName&&Object.hasOwnProperty.call(e,"reservedName")){if(!Array.isArray(e.reservedName))return"reservedName: array expected";for(o=0;o<e.reservedName.length;++o)if(!d.isString(e.reservedName[o]))return"reservedName: string[] expected"}if(null!=e.visibility&&Object.hasOwnProperty.call(e,"visibility"))switch(e.visibility){default:return"visibility: enum value expected";case 0:case 1:case 2:}return null},O.fromObject=function(e,t){if(e instanceof g.google.protobuf.DescriptorProto)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.DescriptorProto: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.DescriptorProto;if(null!=e.name&&(o.name=String(e.name)),e.field){if(!Array.isArray(e.field))throw TypeError(".google.protobuf.DescriptorProto.field: array expected");o.field=[];for(var r=0;r<e.field.length;++r){if(!d.isObject(e.field[r]))throw TypeError(".google.protobuf.DescriptorProto.field: object expected");o.field[r]=g.google.protobuf.FieldDescriptorProto.fromObject(e.field[r],t+1)}}if(e.extension){if(!Array.isArray(e.extension))throw TypeError(".google.protobuf.DescriptorProto.extension: array expected");o.extension=[];for(r=0;r<e.extension.length;++r){if(!d.isObject(e.extension[r]))throw TypeError(".google.protobuf.DescriptorProto.extension: object expected");o.extension[r]=g.google.protobuf.FieldDescriptorProto.fromObject(e.extension[r],t+1)}}if(e.nestedType){if(!Array.isArray(e.nestedType))throw TypeError(".google.protobuf.DescriptorProto.nestedType: array expected");o.nestedType=[];for(r=0;r<e.nestedType.length;++r){if(!d.isObject(e.nestedType[r]))throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected");o.nestedType[r]=g.google.protobuf.DescriptorProto.fromObject(e.nestedType[r],t+1)}}if(e.enumType){if(!Array.isArray(e.enumType))throw TypeError(".google.protobuf.DescriptorProto.enumType: array expected");o.enumType=[];for(r=0;r<e.enumType.length;++r){if(!d.isObject(e.enumType[r]))throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected");o.enumType[r]=g.google.protobuf.EnumDescriptorProto.fromObject(e.enumType[r],t+1)}}if(e.extensionRange){if(!Array.isArray(e.extensionRange))throw TypeError(".google.protobuf.DescriptorProto.extensionRange: array expected");o.extensionRange=[];for(r=0;r<e.extensionRange.length;++r){if(!d.isObject(e.extensionRange[r]))throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected");o.extensionRange[r]=g.google.protobuf.DescriptorProto.ExtensionRange.fromObject(e.extensionRange[r],t+1)}}if(e.oneofDecl){if(!Array.isArray(e.oneofDecl))throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: array expected");o.oneofDecl=[];for(r=0;r<e.oneofDecl.length;++r){if(!d.isObject(e.oneofDecl[r]))throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected");o.oneofDecl[r]=g.google.protobuf.OneofDescriptorProto.fromObject(e.oneofDecl[r],t+1)}}if(null!=e.options){if(!d.isObject(e.options))throw TypeError(".google.protobuf.DescriptorProto.options: object expected");o.options=g.google.protobuf.MessageOptions.fromObject(e.options,t+1)}if(e.reservedRange){if(!Array.isArray(e.reservedRange))throw TypeError(".google.protobuf.DescriptorProto.reservedRange: array expected");o.reservedRange=[];for(r=0;r<e.reservedRange.length;++r){if(!d.isObject(e.reservedRange[r]))throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected");o.reservedRange[r]=g.google.protobuf.DescriptorProto.ReservedRange.fromObject(e.reservedRange[r],t+1)}}if(e.reservedName){if(!Array.isArray(e.reservedName))throw TypeError(".google.protobuf.DescriptorProto.reservedName: array expected");o.reservedName=[];for(r=0;r<e.reservedName.length;++r)o.reservedName[r]=String(e.reservedName[r])}switch(e.visibility){default:"number"==typeof e.visibility&&(o.visibility=e.visibility);break;case"VISIBILITY_UNSET":case 0:o.visibility=0;break;case"VISIBILITY_LOCAL":case 1:o.visibility=1;break;case"VISIBILITY_EXPORT":case 2:o.visibility=2}return o},O.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.field=[],r.nestedType=[],r.enumType=[],r.extensionRange=[],r.extension=[],r.oneofDecl=[],r.reservedRange=[],r.reservedName=[]),t.defaults&&(r.name="",r.options=null,r.visibility=t.enums===String?"VISIBILITY_UNSET":0),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(r.name=e.name),e.field&&e.field.length){r.field=[];for(var n=0;n<e.field.length;++n)r.field[n]=g.google.protobuf.FieldDescriptorProto.toObject(e.field[n],t,o+1)}if(e.nestedType&&e.nestedType.length){r.nestedType=[];for(n=0;n<e.nestedType.length;++n)r.nestedType[n]=g.google.protobuf.DescriptorProto.toObject(e.nestedType[n],t,o+1)}if(e.enumType&&e.enumType.length){r.enumType=[];for(n=0;n<e.enumType.length;++n)r.enumType[n]=g.google.protobuf.EnumDescriptorProto.toObject(e.enumType[n],t,o+1)}if(e.extensionRange&&e.extensionRange.length){r.extensionRange=[];for(n=0;n<e.extensionRange.length;++n)r.extensionRange[n]=g.google.protobuf.DescriptorProto.ExtensionRange.toObject(e.extensionRange[n],t,o+1)}if(e.extension&&e.extension.length){r.extension=[];for(n=0;n<e.extension.length;++n)r.extension[n]=g.google.protobuf.FieldDescriptorProto.toObject(e.extension[n],t,o+1)}if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(r.options=g.google.protobuf.MessageOptions.toObject(e.options,t,o+1)),e.oneofDecl&&e.oneofDecl.length){r.oneofDecl=[];for(n=0;n<e.oneofDecl.length;++n)r.oneofDecl[n]=g.google.protobuf.OneofDescriptorProto.toObject(e.oneofDecl[n],t,o+1)}if(e.reservedRange&&e.reservedRange.length){r.reservedRange=[];for(n=0;n<e.reservedRange.length;++n)r.reservedRange[n]=g.google.protobuf.DescriptorProto.ReservedRange.toObject(e.reservedRange[n],t,o+1)}if(e.reservedName&&e.reservedName.length){r.reservedName=[];for(n=0;n<e.reservedName.length;++n)r.reservedName[n]=e.reservedName[n]}return null!=e.visibility&&Object.hasOwnProperty.call(e,"visibility")&&(r.visibility=t.enums!==String||void 0===g.google.protobuf.SymbolVisibility[e.visibility]?e.visibility:g.google.protobuf.SymbolVisibility[e.visibility]),r},O.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},O.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.DescriptorProto"},O.ExtensionRange=(he.prototype.start=0,he.prototype.end=0,he.prototype.options=null,he.create=function(e){return new he(e)},he.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int32(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(16).int32(e.end),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&g.google.protobuf.ExtensionRangeOptions.encode(e.options,t.uint32(26).fork(),o+1).ldelim(),t},he.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},he.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.DescriptorProto.ExtensionRange;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.start=e.int32();break;case 2:i.end=e.int32();break;case 3:i.options=g.google.protobuf.ExtensionRangeOptions.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},he.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},he.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.start&&Object.hasOwnProperty.call(e,"start")&&!d.isInteger(e.start))return"start: integer expected";if(null!=e.end&&Object.hasOwnProperty.call(e,"end")&&!d.isInteger(e.end))return"end: integer expected";if(null!=e.options&&Object.hasOwnProperty.call(e,"options")){e=g.google.protobuf.ExtensionRangeOptions.verify(e.options,t+1);if(e)return"options."+e}return null},he.fromObject=function(e,t){if(e instanceof g.google.protobuf.DescriptorProto.ExtensionRange)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.DescriptorProto.ExtensionRange;if(null!=e.start&&(o.start=0|e.start),null!=e.end&&(o.end=0|e.end),null!=e.options){if(!d.isObject(e.options))throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected");o.options=g.google.protobuf.ExtensionRangeOptions.fromObject(e.options,t+1)}return o},he.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.start=0,r.end=0,r.options=null),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&(r.start=e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&(r.end=e.end),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(r.options=g.google.protobuf.ExtensionRangeOptions.toObject(e.options,t,o+1)),r},he.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},he.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.DescriptorProto.ExtensionRange"},he),O.ReservedRange=(Oe.prototype.start=0,Oe.prototype.end=0,Oe.create=function(e){return new Oe(e)},Oe.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int32(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(16).int32(e.end),t},Oe.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Oe.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.DescriptorProto.ReservedRange;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.start=e.int32();break;case 2:i.end=e.int32();break;default:e.skipType(7&a,r)}}return i},Oe.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Oe.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.start&&Object.hasOwnProperty.call(e,"start")&&!d.isInteger(e.start)?"start: integer expected":null!=e.end&&Object.hasOwnProperty.call(e,"end")&&!d.isInteger(e.end)?"end: integer expected":null},Oe.fromObject=function(e,t){if(e instanceof g.google.protobuf.DescriptorProto.ReservedRange)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.DescriptorProto.ReservedRange: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.DescriptorProto.ReservedRange;return null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t},Oe.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.start=0,o.end=0),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&(o.start=e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&(o.end=e.end),o},Oe.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Oe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.DescriptorProto.ReservedRange"},Oe),O),t.ExtensionRangeOptions=(v.prototype.uninterpretedOption=d.emptyArray,v.prototype.declaration=d.emptyArray,v.prototype.features=null,v.prototype.verification=1,v.create=function(e){return new v(e)},v.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.declaration&&e.declaration.length)for(var r=0;r<e.declaration.length;++r)g.google.protobuf.ExtensionRangeOptions.Declaration.encode(e.declaration[r],t.uint32(18).fork(),o+1).ldelim();if(null!=e.verification&&Object.hasOwnProperty.call(e,"verification")&&t.uint32(24).int32(e.verification),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&g.google.protobuf.FeatureSet.encode(e.features,t.uint32(402).fork(),o+1).ldelim(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(r=0;r<e.uninterpretedOption.length;++r)g.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork(),o+1).ldelim();return t},v.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},v.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.ExtensionRangeOptions;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 999:i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(g.google.protobuf.UninterpretedOption.decode(e,e.uint32(),void 0,r+1));break;case 2:i.declaration&&i.declaration.length||(i.declaration=[]),i.declaration.push(g.google.protobuf.ExtensionRangeOptions.Declaration.decode(e,e.uint32(),void 0,r+1));break;case 50:i.features=g.google.protobuf.FeatureSet.decode(e,e.uint32(),void 0,r+1);break;case 3:i.verification=e.int32();break;default:e.skipType(7&a,r)}}return i},v.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},v.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.uninterpretedOption&&Object.hasOwnProperty.call(e,"uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var o=0;o<e.uninterpretedOption.length;++o)if(r=g.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[o],t+1))return"uninterpretedOption."+r}if(null!=e.declaration&&Object.hasOwnProperty.call(e,"declaration")){if(!Array.isArray(e.declaration))return"declaration: array expected";for(o=0;o<e.declaration.length;++o)if(r=g.google.protobuf.ExtensionRangeOptions.Declaration.verify(e.declaration[o],t+1))return"declaration."+r}var r;if(null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(r=g.google.protobuf.FeatureSet.verify(e.features,t+1)))return"features."+r;if(null!=e.verification&&Object.hasOwnProperty.call(e,"verification"))switch(e.verification){default:return"verification: enum value expected";case 0:case 1:}return null},v.fromObject=function(e,t){if(e instanceof g.google.protobuf.ExtensionRangeOptions)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.ExtensionRangeOptions: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.ExtensionRangeOptions;if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: array expected");o.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if(!d.isObject(e.uninterpretedOption[r]))throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: object expected");o.uninterpretedOption[r]=g.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r],t+1)}}if(e.declaration){if(!Array.isArray(e.declaration))throw TypeError(".google.protobuf.ExtensionRangeOptions.declaration: array expected");o.declaration=[];for(r=0;r<e.declaration.length;++r){if(!d.isObject(e.declaration[r]))throw TypeError(".google.protobuf.ExtensionRangeOptions.declaration: object expected");o.declaration[r]=g.google.protobuf.ExtensionRangeOptions.Declaration.fromObject(e.declaration[r],t+1)}}if(null!=e.features){if(!d.isObject(e.features))throw TypeError(".google.protobuf.ExtensionRangeOptions.features: object expected");o.features=g.google.protobuf.FeatureSet.fromObject(e.features,t+1)}switch(e.verification){case"DECLARATION":case 0:o.verification=0;break;default:"number"==typeof e.verification&&(o.verification=e.verification);break;case"UNVERIFIED":case 1:o.verification=1}return o},v.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.declaration=[],r.uninterpretedOption=[]),t.defaults&&(r.verification=t.enums===String?"UNVERIFIED":1,r.features=null),e.declaration&&e.declaration.length){r.declaration=[];for(var n=0;n<e.declaration.length;++n)r.declaration[n]=g.google.protobuf.ExtensionRangeOptions.Declaration.toObject(e.declaration[n],t,o+1)}if(null!=e.verification&&Object.hasOwnProperty.call(e,"verification")&&(r.verification=t.enums!==String||void 0===g.google.protobuf.ExtensionRangeOptions.VerificationState[e.verification]?e.verification:g.google.protobuf.ExtensionRangeOptions.VerificationState[e.verification]),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(r.features=g.google.protobuf.FeatureSet.toObject(e.features,t,o+1)),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=g.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t,o+1)}return r},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.protobuf.ExtensionRangeOptions"},v.Declaration=(ve.prototype.number=0,ve.prototype.fullName="",ve.prototype.type="",ve.prototype.reserved=!1,ve.prototype.repeated=!1,ve.create=function(e){return new ve(e)},ve.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(8).int32(e.number),null!=e.fullName&&Object.hasOwnProperty.call(e,"fullName")&&t.uint32(18).string(e.fullName),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(26).string(e.type),null!=e.reserved&&Object.hasOwnProperty.call(e,"reserved")&&t.uint32(40).bool(e.reserved),null!=e.repeated&&Object.hasOwnProperty.call(e,"repeated")&&t.uint32(48).bool(e.repeated),t},ve.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ve.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.ExtensionRangeOptions.Declaration;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.number=e.int32();break;case 2:i.fullName=e.string();break;case 3:i.type=e.string();break;case 5:i.reserved=e.bool();break;case 6:i.repeated=e.bool();break;default:e.skipType(7&a,r)}}return i},ve.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ve.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.number&&Object.hasOwnProperty.call(e,"number")&&!d.isInteger(e.number)?"number: integer expected":null!=e.fullName&&Object.hasOwnProperty.call(e,"fullName")&&!d.isString(e.fullName)?"fullName: string expected":null!=e.type&&Object.hasOwnProperty.call(e,"type")&&!d.isString(e.type)?"type: string expected":null!=e.reserved&&Object.hasOwnProperty.call(e,"reserved")&&"boolean"!=typeof e.reserved?"reserved: boolean expected":null!=e.repeated&&Object.hasOwnProperty.call(e,"repeated")&&"boolean"!=typeof e.repeated?"repeated: boolean expected":null},ve.fromObject=function(e,t){if(e instanceof g.google.protobuf.ExtensionRangeOptions.Declaration)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.ExtensionRangeOptions.Declaration: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.ExtensionRangeOptions.Declaration;return null!=e.number&&(t.number=0|e.number),null!=e.fullName&&(t.fullName=String(e.fullName)),null!=e.type&&(t.type=String(e.type)),null!=e.reserved&&(t.reserved=Boolean(e.reserved)),null!=e.repeated&&(t.repeated=Boolean(e.repeated)),t},ve.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.number=0,o.fullName="",o.type="",o.reserved=!1,o.repeated=!1),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&(o.number=e.number),null!=e.fullName&&Object.hasOwnProperty.call(e,"fullName")&&(o.fullName=e.fullName),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&(o.type=e.type),null!=e.reserved&&Object.hasOwnProperty.call(e,"reserved")&&(o.reserved=e.reserved),null!=e.repeated&&Object.hasOwnProperty.call(e,"repeated")&&(o.repeated=e.repeated),o},ve.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ve.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.ExtensionRangeOptions.Declaration"},ve),v.VerificationState=(a={},(e=Object.create(a))[a[0]="DECLARATION"]=0,e[a[1]="UNVERIFIED"]=1,e),v),t.FieldDescriptorProto=(w.prototype.name="",w.prototype.number=0,w.prototype.label=1,w.prototype.type=1,w.prototype.typeName="",w.prototype.extendee="",w.prototype.defaultValue="",w.prototype.oneofIndex=0,w.prototype.jsonName="",w.prototype.options=null,w.prototype.proto3Optional=!1,w.create=function(e){return new w(e)},w.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.extendee&&Object.hasOwnProperty.call(e,"extendee")&&t.uint32(18).string(e.extendee),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(24).int32(e.number),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(32).int32(e.label),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(40).int32(e.type),null!=e.typeName&&Object.hasOwnProperty.call(e,"typeName")&&t.uint32(50).string(e.typeName),null!=e.defaultValue&&Object.hasOwnProperty.call(e,"defaultValue")&&t.uint32(58).string(e.defaultValue),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&g.google.protobuf.FieldOptions.encode(e.options,t.uint32(66).fork(),o+1).ldelim(),null!=e.oneofIndex&&Object.hasOwnProperty.call(e,"oneofIndex")&&t.uint32(72).int32(e.oneofIndex),null!=e.jsonName&&Object.hasOwnProperty.call(e,"jsonName")&&t.uint32(82).string(e.jsonName),null!=e.proto3Optional&&Object.hasOwnProperty.call(e,"proto3Optional")&&t.uint32(136).bool(e.proto3Optional),t},w.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},w.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FieldDescriptorProto;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 3:i.number=e.int32();break;case 4:i.label=e.int32();break;case 5:i.type=e.int32();break;case 6:i.typeName=e.string();break;case 2:i.extendee=e.string();break;case 7:i.defaultValue=e.string();break;case 9:i.oneofIndex=e.int32();break;case 10:i.jsonName=e.string();break;case 8:i.options=g.google.protobuf.FieldOptions.decode(e,e.uint32(),void 0,r+1);break;case 17:i.proto3Optional=e.bool();break;default:e.skipType(7&a,r)}}return i},w.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},w.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name))return"name: string expected";if(null!=e.number&&Object.hasOwnProperty.call(e,"number")&&!d.isInteger(e.number))return"number: integer expected";if(null!=e.label&&Object.hasOwnProperty.call(e,"label"))switch(e.label){default:return"label: enum value expected";case 1:case 3:case 2:}if(null!=e.type&&Object.hasOwnProperty.call(e,"type"))switch(e.type){default:return"type: enum value expected";case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:}if(null!=e.typeName&&Object.hasOwnProperty.call(e,"typeName")&&!d.isString(e.typeName))return"typeName: string expected";if(null!=e.extendee&&Object.hasOwnProperty.call(e,"extendee")&&!d.isString(e.extendee))return"extendee: string expected";if(null!=e.defaultValue&&Object.hasOwnProperty.call(e,"defaultValue")&&!d.isString(e.defaultValue))return"defaultValue: string expected";if(null!=e.oneofIndex&&Object.hasOwnProperty.call(e,"oneofIndex")&&!d.isInteger(e.oneofIndex))return"oneofIndex: integer expected";if(null!=e.jsonName&&Object.hasOwnProperty.call(e,"jsonName")&&!d.isString(e.jsonName))return"jsonName: string expected";if(null!=e.options&&Object.hasOwnProperty.call(e,"options")){t=g.google.protobuf.FieldOptions.verify(e.options,t+1);if(t)return"options."+t}return null!=e.proto3Optional&&Object.hasOwnProperty.call(e,"proto3Optional")&&"boolean"!=typeof e.proto3Optional?"proto3Optional: boolean expected":null},w.fromObject=function(e,t){if(e instanceof g.google.protobuf.FieldDescriptorProto)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.FieldDescriptorProto: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.FieldDescriptorProto;switch(null!=e.name&&(o.name=String(e.name)),null!=e.number&&(o.number=0|e.number),e.label){default:"number"==typeof e.label&&(o.label=e.label);break;case"LABEL_OPTIONAL":case 1:o.label=1;break;case"LABEL_REPEATED":case 3:o.label=3;break;case"LABEL_REQUIRED":case 2:o.label=2}switch(e.type){default:"number"==typeof e.type&&(o.type=e.type);break;case"TYPE_DOUBLE":case 1:o.type=1;break;case"TYPE_FLOAT":case 2:o.type=2;break;case"TYPE_INT64":case 3:o.type=3;break;case"TYPE_UINT64":case 4:o.type=4;break;case"TYPE_INT32":case 5:o.type=5;break;case"TYPE_FIXED64":case 6:o.type=6;break;case"TYPE_FIXED32":case 7:o.type=7;break;case"TYPE_BOOL":case 8:o.type=8;break;case"TYPE_STRING":case 9:o.type=9;break;case"TYPE_GROUP":case 10:o.type=10;break;case"TYPE_MESSAGE":case 11:o.type=11;break;case"TYPE_BYTES":case 12:o.type=12;break;case"TYPE_UINT32":case 13:o.type=13;break;case"TYPE_ENUM":case 14:o.type=14;break;case"TYPE_SFIXED32":case 15:o.type=15;break;case"TYPE_SFIXED64":case 16:o.type=16;break;case"TYPE_SINT32":case 17:o.type=17;break;case"TYPE_SINT64":case 18:o.type=18}if(null!=e.typeName&&(o.typeName=String(e.typeName)),null!=e.extendee&&(o.extendee=String(e.extendee)),null!=e.defaultValue&&(o.defaultValue=String(e.defaultValue)),null!=e.oneofIndex&&(o.oneofIndex=0|e.oneofIndex),null!=e.jsonName&&(o.jsonName=String(e.jsonName)),null!=e.options){if(!d.isObject(e.options))throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected");o.options=g.google.protobuf.FieldOptions.fromObject(e.options,t+1)}return null!=e.proto3Optional&&(o.proto3Optional=Boolean(e.proto3Optional)),o},w.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.name="",r.extendee="",r.number=0,r.label=t.enums===String?"LABEL_OPTIONAL":1,r.type=t.enums===String?"TYPE_DOUBLE":1,r.typeName="",r.defaultValue="",r.options=null,r.oneofIndex=0,r.jsonName="",r.proto3Optional=!1),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(r.name=e.name),null!=e.extendee&&Object.hasOwnProperty.call(e,"extendee")&&(r.extendee=e.extendee),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&(r.number=e.number),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&(r.label=t.enums!==String||void 0===g.google.protobuf.FieldDescriptorProto.Label[e.label]?e.label:g.google.protobuf.FieldDescriptorProto.Label[e.label]),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&(r.type=t.enums!==String||void 0===g.google.protobuf.FieldDescriptorProto.Type[e.type]?e.type:g.google.protobuf.FieldDescriptorProto.Type[e.type]),null!=e.typeName&&Object.hasOwnProperty.call(e,"typeName")&&(r.typeName=e.typeName),null!=e.defaultValue&&Object.hasOwnProperty.call(e,"defaultValue")&&(r.defaultValue=e.defaultValue),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(r.options=g.google.protobuf.FieldOptions.toObject(e.options,t,o+1)),null!=e.oneofIndex&&Object.hasOwnProperty.call(e,"oneofIndex")&&(r.oneofIndex=e.oneofIndex),null!=e.jsonName&&Object.hasOwnProperty.call(e,"jsonName")&&(r.jsonName=e.jsonName),null!=e.proto3Optional&&Object.hasOwnProperty.call(e,"proto3Optional")&&(r.proto3Optional=e.proto3Optional),r},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.protobuf.FieldDescriptorProto"},w.Type=(a={},(e=Object.create(a))[a[1]="TYPE_DOUBLE"]=1,e[a[2]="TYPE_FLOAT"]=2,e[a[3]="TYPE_INT64"]=3,e[a[4]="TYPE_UINT64"]=4,e[a[5]="TYPE_INT32"]=5,e[a[6]="TYPE_FIXED64"]=6,e[a[7]="TYPE_FIXED32"]=7,e[a[8]="TYPE_BOOL"]=8,e[a[9]="TYPE_STRING"]=9,e[a[10]="TYPE_GROUP"]=10,e[a[11]="TYPE_MESSAGE"]=11,e[a[12]="TYPE_BYTES"]=12,e[a[13]="TYPE_UINT32"]=13,e[a[14]="TYPE_ENUM"]=14,e[a[15]="TYPE_SFIXED32"]=15,e[a[16]="TYPE_SFIXED64"]=16,e[a[17]="TYPE_SINT32"]=17,e[a[18]="TYPE_SINT64"]=18,e),w.Label=(a={},(e=Object.create(a))[a[1]="LABEL_OPTIONAL"]=1,e[a[3]="LABEL_REPEATED"]=3,e[a[2]="LABEL_REQUIRED"]=2,e),w),t.OneofDescriptorProto=(we.prototype.name="",we.prototype.options=null,we.create=function(e){return new we(e)},we.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&g.google.protobuf.OneofOptions.encode(e.options,t.uint32(18).fork(),o+1).ldelim(),t},we.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},we.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.OneofDescriptorProto;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.options=g.google.protobuf.OneofOptions.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},we.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},we.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name))return"name: string expected";if(null!=e.options&&Object.hasOwnProperty.call(e,"options")){e=g.google.protobuf.OneofOptions.verify(e.options,t+1);if(e)return"options."+e}return null},we.fromObject=function(e,t){if(e instanceof g.google.protobuf.OneofDescriptorProto)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.OneofDescriptorProto: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.OneofDescriptorProto;if(null!=e.name&&(o.name=String(e.name)),null!=e.options){if(!d.isObject(e.options))throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected");o.options=g.google.protobuf.OneofOptions.fromObject(e.options,t+1)}return o},we.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.name="",r.options=null),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(r.name=e.name),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(r.options=g.google.protobuf.OneofOptions.toObject(e.options,t,o+1)),r},we.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},we.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.OneofDescriptorProto"},we),t.EnumDescriptorProto=(S.prototype.name="",S.prototype.value=d.emptyArray,S.prototype.options=null,S.prototype.reservedRange=d.emptyArray,S.prototype.reservedName=d.emptyArray,S.prototype.visibility=0,S.create=function(e){return new S(e)},S.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.value&&e.value.length)for(var r=0;r<e.value.length;++r)g.google.protobuf.EnumValueDescriptorProto.encode(e.value[r],t.uint32(18).fork(),o+1).ldelim();if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&g.google.protobuf.EnumOptions.encode(e.options,t.uint32(26).fork(),o+1).ldelim(),null!=e.reservedRange&&e.reservedRange.length)for(r=0;r<e.reservedRange.length;++r)g.google.protobuf.EnumDescriptorProto.EnumReservedRange.encode(e.reservedRange[r],t.uint32(34).fork(),o+1).ldelim();if(null!=e.reservedName&&e.reservedName.length)for(r=0;r<e.reservedName.length;++r)t.uint32(42).string(e.reservedName[r]);return null!=e.visibility&&Object.hasOwnProperty.call(e,"visibility")&&t.uint32(48).int32(e.visibility),t},S.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},S.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.EnumDescriptorProto;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.value&&i.value.length||(i.value=[]),i.value.push(g.google.protobuf.EnumValueDescriptorProto.decode(e,e.uint32(),void 0,r+1));break;case 3:i.options=g.google.protobuf.EnumOptions.decode(e,e.uint32(),void 0,r+1);break;case 4:i.reservedRange&&i.reservedRange.length||(i.reservedRange=[]),i.reservedRange.push(g.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(e,e.uint32(),void 0,r+1));break;case 5:i.reservedName&&i.reservedName.length||(i.reservedName=[]),i.reservedName.push(e.string());break;case 6:i.visibility=e.int32();break;default:e.skipType(7&a,r)}}return i},S.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},S.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name))return"name: string expected";if(null!=e.value&&Object.hasOwnProperty.call(e,"value")){if(!Array.isArray(e.value))return"value: array expected";for(var o=0;o<e.value.length;++o)if(r=g.google.protobuf.EnumValueDescriptorProto.verify(e.value[o],t+1))return"value."+r}if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(r=g.google.protobuf.EnumOptions.verify(e.options,t+1)))return"options."+r;if(null!=e.reservedRange&&Object.hasOwnProperty.call(e,"reservedRange")){if(!Array.isArray(e.reservedRange))return"reservedRange: array expected";for(var r,o=0;o<e.reservedRange.length;++o)if(r=g.google.protobuf.EnumDescriptorProto.EnumReservedRange.verify(e.reservedRange[o],t+1))return"reservedRange."+r}if(null!=e.reservedName&&Object.hasOwnProperty.call(e,"reservedName")){if(!Array.isArray(e.reservedName))return"reservedName: array expected";for(o=0;o<e.reservedName.length;++o)if(!d.isString(e.reservedName[o]))return"reservedName: string[] expected"}if(null!=e.visibility&&Object.hasOwnProperty.call(e,"visibility"))switch(e.visibility){default:return"visibility: enum value expected";case 0:case 1:case 2:}return null},S.fromObject=function(e,t){if(e instanceof g.google.protobuf.EnumDescriptorProto)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.EnumDescriptorProto: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.EnumDescriptorProto;if(null!=e.name&&(o.name=String(e.name)),e.value){if(!Array.isArray(e.value))throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected");o.value=[];for(var r=0;r<e.value.length;++r){if(!d.isObject(e.value[r]))throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected");o.value[r]=g.google.protobuf.EnumValueDescriptorProto.fromObject(e.value[r],t+1)}}if(null!=e.options){if(!d.isObject(e.options))throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected");o.options=g.google.protobuf.EnumOptions.fromObject(e.options,t+1)}if(e.reservedRange){if(!Array.isArray(e.reservedRange))throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: array expected");o.reservedRange=[];for(r=0;r<e.reservedRange.length;++r){if(!d.isObject(e.reservedRange[r]))throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: object expected");o.reservedRange[r]=g.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromObject(e.reservedRange[r],t+1)}}if(e.reservedName){if(!Array.isArray(e.reservedName))throw TypeError(".google.protobuf.EnumDescriptorProto.reservedName: array expected");o.reservedName=[];for(r=0;r<e.reservedName.length;++r)o.reservedName[r]=String(e.reservedName[r])}switch(e.visibility){default:"number"==typeof e.visibility&&(o.visibility=e.visibility);break;case"VISIBILITY_UNSET":case 0:o.visibility=0;break;case"VISIBILITY_LOCAL":case 1:o.visibility=1;break;case"VISIBILITY_EXPORT":case 2:o.visibility=2}return o},S.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.value=[],r.reservedRange=[],r.reservedName=[]),t.defaults&&(r.name="",r.options=null,r.visibility=t.enums===String?"VISIBILITY_UNSET":0),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(r.name=e.name),e.value&&e.value.length){r.value=[];for(var n=0;n<e.value.length;++n)r.value[n]=g.google.protobuf.EnumValueDescriptorProto.toObject(e.value[n],t,o+1)}if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(r.options=g.google.protobuf.EnumOptions.toObject(e.options,t,o+1)),e.reservedRange&&e.reservedRange.length){r.reservedRange=[];for(n=0;n<e.reservedRange.length;++n)r.reservedRange[n]=g.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(e.reservedRange[n],t,o+1)}if(e.reservedName&&e.reservedName.length){r.reservedName=[];for(n=0;n<e.reservedName.length;++n)r.reservedName[n]=e.reservedName[n]}return null!=e.visibility&&Object.hasOwnProperty.call(e,"visibility")&&(r.visibility=t.enums!==String||void 0===g.google.protobuf.SymbolVisibility[e.visibility]?e.visibility:g.google.protobuf.SymbolVisibility[e.visibility]),r},S.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},S.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.EnumDescriptorProto"},S.EnumReservedRange=(Se.prototype.start=0,Se.prototype.end=0,Se.create=function(e){return new Se(e)},Se.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int32(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(16).int32(e.end),t},Se.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Se.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.EnumDescriptorProto.EnumReservedRange;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.start=e.int32();break;case 2:i.end=e.int32();break;default:e.skipType(7&a,r)}}return i},Se.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Se.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.start&&Object.hasOwnProperty.call(e,"start")&&!d.isInteger(e.start)?"start: integer expected":null!=e.end&&Object.hasOwnProperty.call(e,"end")&&!d.isInteger(e.end)?"end: integer expected":null},Se.fromObject=function(e,t){if(e instanceof g.google.protobuf.EnumDescriptorProto.EnumReservedRange)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.EnumDescriptorProto.EnumReservedRange: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.EnumDescriptorProto.EnumReservedRange;return null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t},Se.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.start=0,o.end=0),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&(o.start=e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&(o.end=e.end),o},Se.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Se.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.EnumDescriptorProto.EnumReservedRange"},Se),S),t.EnumValueDescriptorProto=(je.prototype.name="",je.prototype.number=0,je.prototype.options=null,je.create=function(e){return new je(e)},je.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(16).int32(e.number),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&g.google.protobuf.EnumValueOptions.encode(e.options,t.uint32(26).fork(),o+1).ldelim(),t},je.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},je.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.EnumValueDescriptorProto;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.number=e.int32();break;case 3:i.options=g.google.protobuf.EnumValueOptions.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},je.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},je.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name))return"name: string expected";if(null!=e.number&&Object.hasOwnProperty.call(e,"number")&&!d.isInteger(e.number))return"number: integer expected";if(null!=e.options&&Object.hasOwnProperty.call(e,"options")){e=g.google.protobuf.EnumValueOptions.verify(e.options,t+1);if(e)return"options."+e}return null},je.fromObject=function(e,t){if(e instanceof g.google.protobuf.EnumValueDescriptorProto)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.EnumValueDescriptorProto: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.EnumValueDescriptorProto;if(null!=e.name&&(o.name=String(e.name)),null!=e.number&&(o.number=0|e.number),null!=e.options){if(!d.isObject(e.options))throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected");o.options=g.google.protobuf.EnumValueOptions.fromObject(e.options,t+1)}return o},je.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.name="",r.number=0,r.options=null),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(r.name=e.name),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&(r.number=e.number),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(r.options=g.google.protobuf.EnumValueOptions.toObject(e.options,t,o+1)),r},je.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},je.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.EnumValueDescriptorProto"},je),t.ServiceDescriptorProto=(xe.prototype.name="",xe.prototype.method=d.emptyArray,xe.prototype.options=null,xe.create=function(e){return new xe(e)},xe.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.method&&e.method.length)for(var r=0;r<e.method.length;++r)g.google.protobuf.MethodDescriptorProto.encode(e.method[r],t.uint32(18).fork(),o+1).ldelim();return null!=e.options&&Object.hasOwnProperty.call(e,"options")&&g.google.protobuf.ServiceOptions.encode(e.options,t.uint32(26).fork(),o+1).ldelim(),t},xe.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},xe.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.ServiceDescriptorProto;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.method&&i.method.length||(i.method=[]),i.method.push(g.google.protobuf.MethodDescriptorProto.decode(e,e.uint32(),void 0,r+1));break;case 3:i.options=g.google.protobuf.ServiceOptions.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},xe.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},xe.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name))return"name: string expected";if(null!=e.method&&Object.hasOwnProperty.call(e,"method")){if(!Array.isArray(e.method))return"method: array expected";for(var o=0;o<e.method.length;++o)if(r=g.google.protobuf.MethodDescriptorProto.verify(e.method[o],t+1))return"method."+r}var r;if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(r=g.google.protobuf.ServiceOptions.verify(e.options,t+1)))return"options."+r;return null},xe.fromObject=function(e,t){if(e instanceof g.google.protobuf.ServiceDescriptorProto)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.ServiceDescriptorProto: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.ServiceDescriptorProto;if(null!=e.name&&(o.name=String(e.name)),e.method){if(!Array.isArray(e.method))throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected");o.method=[];for(var r=0;r<e.method.length;++r){if(!d.isObject(e.method[r]))throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected");o.method[r]=g.google.protobuf.MethodDescriptorProto.fromObject(e.method[r],t+1)}}if(null!=e.options){if(!d.isObject(e.options))throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected");o.options=g.google.protobuf.ServiceOptions.fromObject(e.options,t+1)}return o},xe.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.method=[]),t.defaults&&(r.name="",r.options=null),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(r.name=e.name),e.method&&e.method.length){r.method=[];for(var n=0;n<e.method.length;++n)r.method[n]=g.google.protobuf.MethodDescriptorProto.toObject(e.method[n],t,o+1)}return null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(r.options=g.google.protobuf.ServiceOptions.toObject(e.options,t,o+1)),r},xe.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},xe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.ServiceDescriptorProto"},xe),t.MethodDescriptorProto=(j.prototype.name="",j.prototype.inputType="",j.prototype.outputType="",j.prototype.options=null,j.prototype.clientStreaming=!1,j.prototype.serverStreaming=!1,j.create=function(e){return new j(e)},j.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.inputType&&Object.hasOwnProperty.call(e,"inputType")&&t.uint32(18).string(e.inputType),null!=e.outputType&&Object.hasOwnProperty.call(e,"outputType")&&t.uint32(26).string(e.outputType),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&g.google.protobuf.MethodOptions.encode(e.options,t.uint32(34).fork(),o+1).ldelim(),null!=e.clientStreaming&&Object.hasOwnProperty.call(e,"clientStreaming")&&t.uint32(40).bool(e.clientStreaming),null!=e.serverStreaming&&Object.hasOwnProperty.call(e,"serverStreaming")&&t.uint32(48).bool(e.serverStreaming),t},j.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},j.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.MethodDescriptorProto;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.inputType=e.string();break;case 3:i.outputType=e.string();break;case 4:i.options=g.google.protobuf.MethodOptions.decode(e,e.uint32(),void 0,r+1);break;case 5:i.clientStreaming=e.bool();break;case 6:i.serverStreaming=e.bool();break;default:e.skipType(7&a,r)}}return i},j.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},j.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name))return"name: string expected";if(null!=e.inputType&&Object.hasOwnProperty.call(e,"inputType")&&!d.isString(e.inputType))return"inputType: string expected";if(null!=e.outputType&&Object.hasOwnProperty.call(e,"outputType")&&!d.isString(e.outputType))return"outputType: string expected";if(null!=e.options&&Object.hasOwnProperty.call(e,"options")){t=g.google.protobuf.MethodOptions.verify(e.options,t+1);if(t)return"options."+t}return null!=e.clientStreaming&&Object.hasOwnProperty.call(e,"clientStreaming")&&"boolean"!=typeof e.clientStreaming?"clientStreaming: boolean expected":null!=e.serverStreaming&&Object.hasOwnProperty.call(e,"serverStreaming")&&"boolean"!=typeof e.serverStreaming?"serverStreaming: boolean expected":null},j.fromObject=function(e,t){if(e instanceof g.google.protobuf.MethodDescriptorProto)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.MethodDescriptorProto: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.MethodDescriptorProto;if(null!=e.name&&(o.name=String(e.name)),null!=e.inputType&&(o.inputType=String(e.inputType)),null!=e.outputType&&(o.outputType=String(e.outputType)),null!=e.options){if(!d.isObject(e.options))throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected");o.options=g.google.protobuf.MethodOptions.fromObject(e.options,t+1)}return null!=e.clientStreaming&&(o.clientStreaming=Boolean(e.clientStreaming)),null!=e.serverStreaming&&(o.serverStreaming=Boolean(e.serverStreaming)),o},j.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.name="",r.inputType="",r.outputType="",r.options=null,r.clientStreaming=!1,r.serverStreaming=!1),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(r.name=e.name),null!=e.inputType&&Object.hasOwnProperty.call(e,"inputType")&&(r.inputType=e.inputType),null!=e.outputType&&Object.hasOwnProperty.call(e,"outputType")&&(r.outputType=e.outputType),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(r.options=g.google.protobuf.MethodOptions.toObject(e.options,t,o+1)),null!=e.clientStreaming&&Object.hasOwnProperty.call(e,"clientStreaming")&&(r.clientStreaming=e.clientStreaming),null!=e.serverStreaming&&Object.hasOwnProperty.call(e,"serverStreaming")&&(r.serverStreaming=e.serverStreaming),r},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.protobuf.MethodDescriptorProto"},j),t.FileOptions=(x.prototype.javaPackage="",x.prototype.javaOuterClassname="",x.prototype.javaMultipleFiles=!1,x.prototype.javaGenerateEqualsAndHash=!1,x.prototype.javaStringCheckUtf8=!1,x.prototype.optimizeFor=1,x.prototype.goPackage="",x.prototype.ccGenericServices=!1,x.prototype.javaGenericServices=!1,x.prototype.pyGenericServices=!1,x.prototype.deprecated=!1,x.prototype.ccEnableArenas=!0,x.prototype.objcClassPrefix="",x.prototype.csharpNamespace="",x.prototype.swiftPrefix="",x.prototype.phpClassPrefix="",x.prototype.phpNamespace="",x.prototype.phpMetadataNamespace="",x.prototype.rubyPackage="",x.prototype.features=null,x.prototype.uninterpretedOption=d.emptyArray,x.prototype[".google.api.resourceDefinition"]=d.emptyArray,x.create=function(e){return new x(e)},x.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.javaPackage&&Object.hasOwnProperty.call(e,"javaPackage")&&t.uint32(10).string(e.javaPackage),null!=e.javaOuterClassname&&Object.hasOwnProperty.call(e,"javaOuterClassname")&&t.uint32(66).string(e.javaOuterClassname),null!=e.optimizeFor&&Object.hasOwnProperty.call(e,"optimizeFor")&&t.uint32(72).int32(e.optimizeFor),null!=e.javaMultipleFiles&&Object.hasOwnProperty.call(e,"javaMultipleFiles")&&t.uint32(80).bool(e.javaMultipleFiles),null!=e.goPackage&&Object.hasOwnProperty.call(e,"goPackage")&&t.uint32(90).string(e.goPackage),null!=e.ccGenericServices&&Object.hasOwnProperty.call(e,"ccGenericServices")&&t.uint32(128).bool(e.ccGenericServices),null!=e.javaGenericServices&&Object.hasOwnProperty.call(e,"javaGenericServices")&&t.uint32(136).bool(e.javaGenericServices),null!=e.pyGenericServices&&Object.hasOwnProperty.call(e,"pyGenericServices")&&t.uint32(144).bool(e.pyGenericServices),null!=e.javaGenerateEqualsAndHash&&Object.hasOwnProperty.call(e,"javaGenerateEqualsAndHash")&&t.uint32(160).bool(e.javaGenerateEqualsAndHash),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(184).bool(e.deprecated),null!=e.javaStringCheckUtf8&&Object.hasOwnProperty.call(e,"javaStringCheckUtf8")&&t.uint32(216).bool(e.javaStringCheckUtf8),null!=e.ccEnableArenas&&Object.hasOwnProperty.call(e,"ccEnableArenas")&&t.uint32(248).bool(e.ccEnableArenas),null!=e.objcClassPrefix&&Object.hasOwnProperty.call(e,"objcClassPrefix")&&t.uint32(290).string(e.objcClassPrefix),null!=e.csharpNamespace&&Object.hasOwnProperty.call(e,"csharpNamespace")&&t.uint32(298).string(e.csharpNamespace),null!=e.swiftPrefix&&Object.hasOwnProperty.call(e,"swiftPrefix")&&t.uint32(314).string(e.swiftPrefix),null!=e.phpClassPrefix&&Object.hasOwnProperty.call(e,"phpClassPrefix")&&t.uint32(322).string(e.phpClassPrefix),null!=e.phpNamespace&&Object.hasOwnProperty.call(e,"phpNamespace")&&t.uint32(330).string(e.phpNamespace),null!=e.phpMetadataNamespace&&Object.hasOwnProperty.call(e,"phpMetadataNamespace")&&t.uint32(354).string(e.phpMetadataNamespace),null!=e.rubyPackage&&Object.hasOwnProperty.call(e,"rubyPackage")&&t.uint32(362).string(e.rubyPackage),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&g.google.protobuf.FeatureSet.encode(e.features,t.uint32(402).fork(),o+1).ldelim(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)g.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork(),o+1).ldelim();if(null!=e[".google.api.resourceDefinition"]&&e[".google.api.resourceDefinition"].length)for(r=0;r<e[".google.api.resourceDefinition"].length;++r)g.google.api.ResourceDescriptor.encode(e[".google.api.resourceDefinition"][r],t.uint32(8426).fork(),o+1).ldelim();return t},x.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},x.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FileOptions;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.javaPackage=e.string();break;case 8:i.javaOuterClassname=e.string();break;case 10:i.javaMultipleFiles=e.bool();break;case 20:i.javaGenerateEqualsAndHash=e.bool();break;case 27:i.javaStringCheckUtf8=e.bool();break;case 9:i.optimizeFor=e.int32();break;case 11:i.goPackage=e.string();break;case 16:i.ccGenericServices=e.bool();break;case 17:i.javaGenericServices=e.bool();break;case 18:i.pyGenericServices=e.bool();break;case 23:i.deprecated=e.bool();break;case 31:i.ccEnableArenas=e.bool();break;case 36:i.objcClassPrefix=e.string();break;case 37:i.csharpNamespace=e.string();break;case 39:i.swiftPrefix=e.string();break;case 40:i.phpClassPrefix=e.string();break;case 41:i.phpNamespace=e.string();break;case 44:i.phpMetadataNamespace=e.string();break;case 45:i.rubyPackage=e.string();break;case 50:i.features=g.google.protobuf.FeatureSet.decode(e,e.uint32(),void 0,r+1);break;case 999:i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(g.google.protobuf.UninterpretedOption.decode(e,e.uint32(),void 0,r+1));break;case 1053:i[".google.api.resourceDefinition"]&&i[".google.api.resourceDefinition"].length||(i[".google.api.resourceDefinition"]=[]),i[".google.api.resourceDefinition"].push(g.google.api.ResourceDescriptor.decode(e,e.uint32(),void 0,r+1));break;default:e.skipType(7&a,r)}}return i},x.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},x.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.javaPackage&&Object.hasOwnProperty.call(e,"javaPackage")&&!d.isString(e.javaPackage))return"javaPackage: string expected";if(null!=e.javaOuterClassname&&Object.hasOwnProperty.call(e,"javaOuterClassname")&&!d.isString(e.javaOuterClassname))return"javaOuterClassname: string expected";if(null!=e.javaMultipleFiles&&Object.hasOwnProperty.call(e,"javaMultipleFiles")&&"boolean"!=typeof e.javaMultipleFiles)return"javaMultipleFiles: boolean expected";if(null!=e.javaGenerateEqualsAndHash&&Object.hasOwnProperty.call(e,"javaGenerateEqualsAndHash")&&"boolean"!=typeof e.javaGenerateEqualsAndHash)return"javaGenerateEqualsAndHash: boolean expected";if(null!=e.javaStringCheckUtf8&&Object.hasOwnProperty.call(e,"javaStringCheckUtf8")&&"boolean"!=typeof e.javaStringCheckUtf8)return"javaStringCheckUtf8: boolean expected";if(null!=e.optimizeFor&&Object.hasOwnProperty.call(e,"optimizeFor"))switch(e.optimizeFor){default:return"optimizeFor: enum value expected";case 1:case 2:case 3:}if(null!=e.goPackage&&Object.hasOwnProperty.call(e,"goPackage")&&!d.isString(e.goPackage))return"goPackage: string expected";if(null!=e.ccGenericServices&&Object.hasOwnProperty.call(e,"ccGenericServices")&&"boolean"!=typeof e.ccGenericServices)return"ccGenericServices: boolean expected";if(null!=e.javaGenericServices&&Object.hasOwnProperty.call(e,"javaGenericServices")&&"boolean"!=typeof e.javaGenericServices)return"javaGenericServices: boolean expected";if(null!=e.pyGenericServices&&Object.hasOwnProperty.call(e,"pyGenericServices")&&"boolean"!=typeof e.pyGenericServices)return"pyGenericServices: boolean expected";if(null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.ccEnableArenas&&Object.hasOwnProperty.call(e,"ccEnableArenas")&&"boolean"!=typeof e.ccEnableArenas)return"ccEnableArenas: boolean expected";if(null!=e.objcClassPrefix&&Object.hasOwnProperty.call(e,"objcClassPrefix")&&!d.isString(e.objcClassPrefix))return"objcClassPrefix: string expected";if(null!=e.csharpNamespace&&Object.hasOwnProperty.call(e,"csharpNamespace")&&!d.isString(e.csharpNamespace))return"csharpNamespace: string expected";if(null!=e.swiftPrefix&&Object.hasOwnProperty.call(e,"swiftPrefix")&&!d.isString(e.swiftPrefix))return"swiftPrefix: string expected";if(null!=e.phpClassPrefix&&Object.hasOwnProperty.call(e,"phpClassPrefix")&&!d.isString(e.phpClassPrefix))return"phpClassPrefix: string expected";if(null!=e.phpNamespace&&Object.hasOwnProperty.call(e,"phpNamespace")&&!d.isString(e.phpNamespace))return"phpNamespace: string expected";if(null!=e.phpMetadataNamespace&&Object.hasOwnProperty.call(e,"phpMetadataNamespace")&&!d.isString(e.phpMetadataNamespace))return"phpMetadataNamespace: string expected";if(null!=e.rubyPackage&&Object.hasOwnProperty.call(e,"rubyPackage")&&!d.isString(e.rubyPackage))return"rubyPackage: string expected";if(null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(r=g.google.protobuf.FeatureSet.verify(e.features,t+1)))return"features."+r;if(null!=e.uninterpretedOption&&Object.hasOwnProperty.call(e,"uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var o=0;o<e.uninterpretedOption.length;++o)if(r=g.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[o],t+1))return"uninterpretedOption."+r}if(null!=e[".google.api.resourceDefinition"]&&Object.hasOwnProperty.call(e,".google.api.resourceDefinition")){if(!Array.isArray(e[".google.api.resourceDefinition"]))return".google.api.resourceDefinition: array expected";for(var r,o=0;o<e[".google.api.resourceDefinition"].length;++o)if(r=g.google.api.ResourceDescriptor.verify(e[".google.api.resourceDefinition"][o],t+1))return".google.api.resourceDefinition."+r}return null},x.fromObject=function(e,t){if(e instanceof g.google.protobuf.FileOptions)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.FileOptions: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.FileOptions;switch(null!=e.javaPackage&&(o.javaPackage=String(e.javaPackage)),null!=e.javaOuterClassname&&(o.javaOuterClassname=String(e.javaOuterClassname)),null!=e.javaMultipleFiles&&(o.javaMultipleFiles=Boolean(e.javaMultipleFiles)),null!=e.javaGenerateEqualsAndHash&&(o.javaGenerateEqualsAndHash=Boolean(e.javaGenerateEqualsAndHash)),null!=e.javaStringCheckUtf8&&(o.javaStringCheckUtf8=Boolean(e.javaStringCheckUtf8)),e.optimizeFor){default:"number"==typeof e.optimizeFor&&(o.optimizeFor=e.optimizeFor);break;case"SPEED":case 1:o.optimizeFor=1;break;case"CODE_SIZE":case 2:o.optimizeFor=2;break;case"LITE_RUNTIME":case 3:o.optimizeFor=3}if(null!=e.goPackage&&(o.goPackage=String(e.goPackage)),null!=e.ccGenericServices&&(o.ccGenericServices=Boolean(e.ccGenericServices)),null!=e.javaGenericServices&&(o.javaGenericServices=Boolean(e.javaGenericServices)),null!=e.pyGenericServices&&(o.pyGenericServices=Boolean(e.pyGenericServices)),null!=e.deprecated&&(o.deprecated=Boolean(e.deprecated)),null!=e.ccEnableArenas&&(o.ccEnableArenas=Boolean(e.ccEnableArenas)),null!=e.objcClassPrefix&&(o.objcClassPrefix=String(e.objcClassPrefix)),null!=e.csharpNamespace&&(o.csharpNamespace=String(e.csharpNamespace)),null!=e.swiftPrefix&&(o.swiftPrefix=String(e.swiftPrefix)),null!=e.phpClassPrefix&&(o.phpClassPrefix=String(e.phpClassPrefix)),null!=e.phpNamespace&&(o.phpNamespace=String(e.phpNamespace)),null!=e.phpMetadataNamespace&&(o.phpMetadataNamespace=String(e.phpMetadataNamespace)),null!=e.rubyPackage&&(o.rubyPackage=String(e.rubyPackage)),null!=e.features){if(!d.isObject(e.features))throw TypeError(".google.protobuf.FileOptions.features: object expected");o.features=g.google.protobuf.FeatureSet.fromObject(e.features,t+1)}if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected");o.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if(!d.isObject(e.uninterpretedOption[r]))throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: object expected");o.uninterpretedOption[r]=g.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r],t+1)}}if(e[".google.api.resourceDefinition"]){if(!Array.isArray(e[".google.api.resourceDefinition"]))throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: array expected");o[".google.api.resourceDefinition"]=[];for(r=0;r<e[".google.api.resourceDefinition"].length;++r){if(!d.isObject(e[".google.api.resourceDefinition"][r]))throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: object expected");o[".google.api.resourceDefinition"][r]=g.google.api.ResourceDescriptor.fromObject(e[".google.api.resourceDefinition"][r],t+1)}}return o},x.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.uninterpretedOption=[],r[".google.api.resourceDefinition"]=[]),t.defaults&&(r.javaPackage="",r.javaOuterClassname="",r.optimizeFor=t.enums===String?"SPEED":1,r.javaMultipleFiles=!1,r.goPackage="",r.ccGenericServices=!1,r.javaGenericServices=!1,r.pyGenericServices=!1,r.javaGenerateEqualsAndHash=!1,r.deprecated=!1,r.javaStringCheckUtf8=!1,r.ccEnableArenas=!0,r.objcClassPrefix="",r.csharpNamespace="",r.swiftPrefix="",r.phpClassPrefix="",r.phpNamespace="",r.phpMetadataNamespace="",r.rubyPackage="",r.features=null),null!=e.javaPackage&&Object.hasOwnProperty.call(e,"javaPackage")&&(r.javaPackage=e.javaPackage),null!=e.javaOuterClassname&&Object.hasOwnProperty.call(e,"javaOuterClassname")&&(r.javaOuterClassname=e.javaOuterClassname),null!=e.optimizeFor&&Object.hasOwnProperty.call(e,"optimizeFor")&&(r.optimizeFor=t.enums!==String||void 0===g.google.protobuf.FileOptions.OptimizeMode[e.optimizeFor]?e.optimizeFor:g.google.protobuf.FileOptions.OptimizeMode[e.optimizeFor]),null!=e.javaMultipleFiles&&Object.hasOwnProperty.call(e,"javaMultipleFiles")&&(r.javaMultipleFiles=e.javaMultipleFiles),null!=e.goPackage&&Object.hasOwnProperty.call(e,"goPackage")&&(r.goPackage=e.goPackage),null!=e.ccGenericServices&&Object.hasOwnProperty.call(e,"ccGenericServices")&&(r.ccGenericServices=e.ccGenericServices),null!=e.javaGenericServices&&Object.hasOwnProperty.call(e,"javaGenericServices")&&(r.javaGenericServices=e.javaGenericServices),null!=e.pyGenericServices&&Object.hasOwnProperty.call(e,"pyGenericServices")&&(r.pyGenericServices=e.pyGenericServices),null!=e.javaGenerateEqualsAndHash&&Object.hasOwnProperty.call(e,"javaGenerateEqualsAndHash")&&(r.javaGenerateEqualsAndHash=e.javaGenerateEqualsAndHash),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&(r.deprecated=e.deprecated),null!=e.javaStringCheckUtf8&&Object.hasOwnProperty.call(e,"javaStringCheckUtf8")&&(r.javaStringCheckUtf8=e.javaStringCheckUtf8),null!=e.ccEnableArenas&&Object.hasOwnProperty.call(e,"ccEnableArenas")&&(r.ccEnableArenas=e.ccEnableArenas),null!=e.objcClassPrefix&&Object.hasOwnProperty.call(e,"objcClassPrefix")&&(r.objcClassPrefix=e.objcClassPrefix),null!=e.csharpNamespace&&Object.hasOwnProperty.call(e,"csharpNamespace")&&(r.csharpNamespace=e.csharpNamespace),null!=e.swiftPrefix&&Object.hasOwnProperty.call(e,"swiftPrefix")&&(r.swiftPrefix=e.swiftPrefix),null!=e.phpClassPrefix&&Object.hasOwnProperty.call(e,"phpClassPrefix")&&(r.phpClassPrefix=e.phpClassPrefix),null!=e.phpNamespace&&Object.hasOwnProperty.call(e,"phpNamespace")&&(r.phpNamespace=e.phpNamespace),null!=e.phpMetadataNamespace&&Object.hasOwnProperty.call(e,"phpMetadataNamespace")&&(r.phpMetadataNamespace=e.phpMetadataNamespace),null!=e.rubyPackage&&Object.hasOwnProperty.call(e,"rubyPackage")&&(r.rubyPackage=e.rubyPackage),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(r.features=g.google.protobuf.FeatureSet.toObject(e.features,t,o+1)),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=g.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t,o+1)}if(e[".google.api.resourceDefinition"]&&e[".google.api.resourceDefinition"].length){r[".google.api.resourceDefinition"]=[];for(n=0;n<e[".google.api.resourceDefinition"].length;++n)r[".google.api.resourceDefinition"][n]=g.google.api.ResourceDescriptor.toObject(e[".google.api.resourceDefinition"][n],t,o+1)}return r},x.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},x.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FileOptions"},x.OptimizeMode=(a={},(e=Object.create(a))[a[1]="SPEED"]=1,e[a[2]="CODE_SIZE"]=2,e[a[3]="LITE_RUNTIME"]=3,e),x),t.MessageOptions=(E.prototype.messageSetWireFormat=!1,E.prototype.noStandardDescriptorAccessor=!1,E.prototype.deprecated=!1,E.prototype.mapEntry=!1,E.prototype.deprecatedLegacyJsonFieldConflicts=!1,E.prototype.features=null,E.prototype.uninterpretedOption=d.emptyArray,E.prototype[".google.api.resource"]=null,E.create=function(e){return new E(e)},E.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.messageSetWireFormat&&Object.hasOwnProperty.call(e,"messageSetWireFormat")&&t.uint32(8).bool(e.messageSetWireFormat),null!=e.noStandardDescriptorAccessor&&Object.hasOwnProperty.call(e,"noStandardDescriptorAccessor")&&t.uint32(16).bool(e.noStandardDescriptorAccessor),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(24).bool(e.deprecated),null!=e.mapEntry&&Object.hasOwnProperty.call(e,"mapEntry")&&t.uint32(56).bool(e.mapEntry),null!=e.deprecatedLegacyJsonFieldConflicts&&Object.hasOwnProperty.call(e,"deprecatedLegacyJsonFieldConflicts")&&t.uint32(88).bool(e.deprecatedLegacyJsonFieldConflicts),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&g.google.protobuf.FeatureSet.encode(e.features,t.uint32(98).fork(),o+1).ldelim(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)g.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork(),o+1).ldelim();return null!=e[".google.api.resource"]&&Object.hasOwnProperty.call(e,".google.api.resource")&&g.google.api.ResourceDescriptor.encode(e[".google.api.resource"],t.uint32(8426).fork(),o+1).ldelim(),t},E.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},E.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.MessageOptions;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.messageSetWireFormat=e.bool();break;case 2:i.noStandardDescriptorAccessor=e.bool();break;case 3:i.deprecated=e.bool();break;case 7:i.mapEntry=e.bool();break;case 11:i.deprecatedLegacyJsonFieldConflicts=e.bool();break;case 12:i.features=g.google.protobuf.FeatureSet.decode(e,e.uint32(),void 0,r+1);break;case 999:i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(g.google.protobuf.UninterpretedOption.decode(e,e.uint32(),void 0,r+1));break;case 1053:i[".google.api.resource"]=g.google.api.ResourceDescriptor.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},E.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},E.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.messageSetWireFormat&&Object.hasOwnProperty.call(e,"messageSetWireFormat")&&"boolean"!=typeof e.messageSetWireFormat)return"messageSetWireFormat: boolean expected";if(null!=e.noStandardDescriptorAccessor&&Object.hasOwnProperty.call(e,"noStandardDescriptorAccessor")&&"boolean"!=typeof e.noStandardDescriptorAccessor)return"noStandardDescriptorAccessor: boolean expected";if(null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.mapEntry&&Object.hasOwnProperty.call(e,"mapEntry")&&"boolean"!=typeof e.mapEntry)return"mapEntry: boolean expected";if(null!=e.deprecatedLegacyJsonFieldConflicts&&Object.hasOwnProperty.call(e,"deprecatedLegacyJsonFieldConflicts")&&"boolean"!=typeof e.deprecatedLegacyJsonFieldConflicts)return"deprecatedLegacyJsonFieldConflicts: boolean expected";if(null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(o=g.google.protobuf.FeatureSet.verify(e.features,t+1)))return"features."+o;if(null!=e.uninterpretedOption&&Object.hasOwnProperty.call(e,"uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var o,r=0;r<e.uninterpretedOption.length;++r)if(o=g.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[r],t+1))return"uninterpretedOption."+o}if(null!=e[".google.api.resource"]&&Object.hasOwnProperty.call(e,".google.api.resource")&&(o=g.google.api.ResourceDescriptor.verify(e[".google.api.resource"],t+1)))return".google.api.resource."+o;return null},E.fromObject=function(e,t){if(e instanceof g.google.protobuf.MessageOptions)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.MessageOptions: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.MessageOptions;if(null!=e.messageSetWireFormat&&(o.messageSetWireFormat=Boolean(e.messageSetWireFormat)),null!=e.noStandardDescriptorAccessor&&(o.noStandardDescriptorAccessor=Boolean(e.noStandardDescriptorAccessor)),null!=e.deprecated&&(o.deprecated=Boolean(e.deprecated)),null!=e.mapEntry&&(o.mapEntry=Boolean(e.mapEntry)),null!=e.deprecatedLegacyJsonFieldConflicts&&(o.deprecatedLegacyJsonFieldConflicts=Boolean(e.deprecatedLegacyJsonFieldConflicts)),null!=e.features){if(!d.isObject(e.features))throw TypeError(".google.protobuf.MessageOptions.features: object expected");o.features=g.google.protobuf.FeatureSet.fromObject(e.features,t+1)}if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected");o.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if(!d.isObject(e.uninterpretedOption[r]))throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: object expected");o.uninterpretedOption[r]=g.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r],t+1)}}if(null!=e[".google.api.resource"]){if(!d.isObject(e[".google.api.resource"]))throw TypeError(".google.protobuf.MessageOptions..google.api.resource: object expected");o[".google.api.resource"]=g.google.api.ResourceDescriptor.fromObject(e[".google.api.resource"],t+1)}return o},E.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.messageSetWireFormat=!1,r.noStandardDescriptorAccessor=!1,r.deprecated=!1,r.mapEntry=!1,r.deprecatedLegacyJsonFieldConflicts=!1,r.features=null,r[".google.api.resource"]=null),null!=e.messageSetWireFormat&&Object.hasOwnProperty.call(e,"messageSetWireFormat")&&(r.messageSetWireFormat=e.messageSetWireFormat),null!=e.noStandardDescriptorAccessor&&Object.hasOwnProperty.call(e,"noStandardDescriptorAccessor")&&(r.noStandardDescriptorAccessor=e.noStandardDescriptorAccessor),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&(r.deprecated=e.deprecated),null!=e.mapEntry&&Object.hasOwnProperty.call(e,"mapEntry")&&(r.mapEntry=e.mapEntry),null!=e.deprecatedLegacyJsonFieldConflicts&&Object.hasOwnProperty.call(e,"deprecatedLegacyJsonFieldConflicts")&&(r.deprecatedLegacyJsonFieldConflicts=e.deprecatedLegacyJsonFieldConflicts),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(r.features=g.google.protobuf.FeatureSet.toObject(e.features,t,o+1)),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=g.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t,o+1)}return null!=e[".google.api.resource"]&&Object.hasOwnProperty.call(e,".google.api.resource")&&(r[".google.api.resource"]=g.google.api.ResourceDescriptor.toObject(e[".google.api.resource"],t,o+1)),r},E.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},E.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.MessageOptions"},E),t.FieldOptions=(P.prototype.ctype=0,P.prototype.packed=!1,P.prototype.jstype=0,P.prototype.lazy=!1,P.prototype.unverifiedLazy=!1,P.prototype.deprecated=!1,P.prototype.weak=!1,P.prototype.debugRedact=!1,P.prototype.retention=0,P.prototype.targets=d.emptyArray,P.prototype.editionDefaults=d.emptyArray,P.prototype.features=null,P.prototype.featureSupport=null,P.prototype.uninterpretedOption=d.emptyArray,P.prototype[".google.cloud.bigquery.storage.v1.columnName"]=null,P.prototype[".google.api.fieldBehavior"]=d.emptyArray,P.prototype[".google.api.resourceReference"]=null,P.create=function(e){return new P(e)},P.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.ctype&&Object.hasOwnProperty.call(e,"ctype")&&t.uint32(8).int32(e.ctype),null!=e.packed&&Object.hasOwnProperty.call(e,"packed")&&t.uint32(16).bool(e.packed),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(24).bool(e.deprecated),null!=e.lazy&&Object.hasOwnProperty.call(e,"lazy")&&t.uint32(40).bool(e.lazy),null!=e.jstype&&Object.hasOwnProperty.call(e,"jstype")&&t.uint32(48).int32(e.jstype),null!=e.weak&&Object.hasOwnProperty.call(e,"weak")&&t.uint32(80).bool(e.weak),null!=e.unverifiedLazy&&Object.hasOwnProperty.call(e,"unverifiedLazy")&&t.uint32(120).bool(e.unverifiedLazy),null!=e.debugRedact&&Object.hasOwnProperty.call(e,"debugRedact")&&t.uint32(128).bool(e.debugRedact),null!=e.retention&&Object.hasOwnProperty.call(e,"retention")&&t.uint32(136).int32(e.retention),null!=e.targets&&e.targets.length)for(var r=0;r<e.targets.length;++r)t.uint32(152).int32(e.targets[r]);if(null!=e.editionDefaults&&e.editionDefaults.length)for(r=0;r<e.editionDefaults.length;++r)g.google.protobuf.FieldOptions.EditionDefault.encode(e.editionDefaults[r],t.uint32(162).fork(),o+1).ldelim();if(null!=e.features&&Object.hasOwnProperty.call(e,"features")&&g.google.protobuf.FeatureSet.encode(e.features,t.uint32(170).fork(),o+1).ldelim(),null!=e.featureSupport&&Object.hasOwnProperty.call(e,"featureSupport")&&g.google.protobuf.FieldOptions.FeatureSupport.encode(e.featureSupport,t.uint32(178).fork(),o+1).ldelim(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(r=0;r<e.uninterpretedOption.length;++r)g.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork(),o+1).ldelim();if(null!=e[".google.api.fieldBehavior"]&&e[".google.api.fieldBehavior"].length)for(r=0;r<e[".google.api.fieldBehavior"].length;++r)t.uint32(8416).int32(e[".google.api.fieldBehavior"][r]);return null!=e[".google.api.resourceReference"]&&Object.hasOwnProperty.call(e,".google.api.resourceReference")&&g.google.api.ResourceReference.encode(e[".google.api.resourceReference"],t.uint32(8442).fork(),o+1).ldelim(),null!=e[".google.cloud.bigquery.storage.v1.columnName"]&&Object.hasOwnProperty.call(e,".google.cloud.bigquery.storage.v1.columnName")&&t.uint32(3639545258).string(e[".google.cloud.bigquery.storage.v1.columnName"]),t},P.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},P.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FieldOptions;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.ctype=e.int32();break;case 2:i.packed=e.bool();break;case 6:i.jstype=e.int32();break;case 5:i.lazy=e.bool();break;case 15:i.unverifiedLazy=e.bool();break;case 3:i.deprecated=e.bool();break;case 10:i.weak=e.bool();break;case 16:i.debugRedact=e.bool();break;case 17:i.retention=e.int32();break;case 19:if(i.targets&&i.targets.length||(i.targets=[]),2==(7&a))for(var l=e.uint32()+e.pos;e.pos<l;)i.targets.push(e.int32());else i.targets.push(e.int32());break;case 20:i.editionDefaults&&i.editionDefaults.length||(i.editionDefaults=[]),i.editionDefaults.push(g.google.protobuf.FieldOptions.EditionDefault.decode(e,e.uint32(),void 0,r+1));break;case 21:i.features=g.google.protobuf.FeatureSet.decode(e,e.uint32(),void 0,r+1);break;case 22:i.featureSupport=g.google.protobuf.FieldOptions.FeatureSupport.decode(e,e.uint32(),void 0,r+1);break;case 999:i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(g.google.protobuf.UninterpretedOption.decode(e,e.uint32(),void 0,r+1));break;case 454943157:i[".google.cloud.bigquery.storage.v1.columnName"]=e.string();break;case 1052:if(i[".google.api.fieldBehavior"]&&i[".google.api.fieldBehavior"].length||(i[".google.api.fieldBehavior"]=[]),2==(7&a))for(l=e.uint32()+e.pos;e.pos<l;)i[".google.api.fieldBehavior"].push(e.int32());else i[".google.api.fieldBehavior"].push(e.int32());break;case 1055:i[".google.api.resourceReference"]=g.google.api.ResourceReference.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},P.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},P.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.ctype&&Object.hasOwnProperty.call(e,"ctype"))switch(e.ctype){default:return"ctype: enum value expected";case 0:case 1:case 2:}if(null!=e.packed&&Object.hasOwnProperty.call(e,"packed")&&"boolean"!=typeof e.packed)return"packed: boolean expected";if(null!=e.jstype&&Object.hasOwnProperty.call(e,"jstype"))switch(e.jstype){default:return"jstype: enum value expected";case 0:case 1:case 2:}if(null!=e.lazy&&Object.hasOwnProperty.call(e,"lazy")&&"boolean"!=typeof e.lazy)return"lazy: boolean expected";if(null!=e.unverifiedLazy&&Object.hasOwnProperty.call(e,"unverifiedLazy")&&"boolean"!=typeof e.unverifiedLazy)return"unverifiedLazy: boolean expected";if(null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.weak&&Object.hasOwnProperty.call(e,"weak")&&"boolean"!=typeof e.weak)return"weak: boolean expected";if(null!=e.debugRedact&&Object.hasOwnProperty.call(e,"debugRedact")&&"boolean"!=typeof e.debugRedact)return"debugRedact: boolean expected";if(null!=e.retention&&Object.hasOwnProperty.call(e,"retention"))switch(e.retention){default:return"retention: enum value expected";case 0:case 1:case 2:}if(null!=e.targets&&Object.hasOwnProperty.call(e,"targets")){if(!Array.isArray(e.targets))return"targets: array expected";for(var o=0;o<e.targets.length;++o)switch(e.targets[o]){default:return"targets: enum value[] expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:}}if(null!=e.editionDefaults&&Object.hasOwnProperty.call(e,"editionDefaults")){if(!Array.isArray(e.editionDefaults))return"editionDefaults: array expected";for(o=0;o<e.editionDefaults.length;++o)if(r=g.google.protobuf.FieldOptions.EditionDefault.verify(e.editionDefaults[o],t+1))return"editionDefaults."+r}if(null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(r=g.google.protobuf.FeatureSet.verify(e.features,t+1)))return"features."+r;if(null!=e.featureSupport&&Object.hasOwnProperty.call(e,"featureSupport")&&(r=g.google.protobuf.FieldOptions.FeatureSupport.verify(e.featureSupport,t+1)))return"featureSupport."+r;if(null!=e.uninterpretedOption&&Object.hasOwnProperty.call(e,"uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var r,o=0;o<e.uninterpretedOption.length;++o)if(r=g.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[o],t+1))return"uninterpretedOption."+r}if(null!=e[".google.cloud.bigquery.storage.v1.columnName"]&&Object.hasOwnProperty.call(e,".google.cloud.bigquery.storage.v1.columnName")&&!d.isString(e[".google.cloud.bigquery.storage.v1.columnName"]))return".google.cloud.bigquery.storage.v1.columnName: string expected";if(null!=e[".google.api.fieldBehavior"]&&Object.hasOwnProperty.call(e,".google.api.fieldBehavior")){if(!Array.isArray(e[".google.api.fieldBehavior"]))return".google.api.fieldBehavior: array expected";for(o=0;o<e[".google.api.fieldBehavior"].length;++o)switch(e[".google.api.fieldBehavior"][o]){default:return".google.api.fieldBehavior: enum value[] expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:}}if(null!=e[".google.api.resourceReference"]&&Object.hasOwnProperty.call(e,".google.api.resourceReference")&&(r=g.google.api.ResourceReference.verify(e[".google.api.resourceReference"],t+1)))return".google.api.resourceReference."+r;return null},P.fromObject=function(e,t){if(e instanceof g.google.protobuf.FieldOptions)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.FieldOptions: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.FieldOptions;switch(e.ctype){default:"number"==typeof e.ctype&&(o.ctype=e.ctype);break;case"STRING":case 0:o.ctype=0;break;case"CORD":case 1:o.ctype=1;break;case"STRING_PIECE":case 2:o.ctype=2}switch(null!=e.packed&&(o.packed=Boolean(e.packed)),e.jstype){default:"number"==typeof e.jstype&&(o.jstype=e.jstype);break;case"JS_NORMAL":case 0:o.jstype=0;break;case"JS_STRING":case 1:o.jstype=1;break;case"JS_NUMBER":case 2:o.jstype=2}switch(null!=e.lazy&&(o.lazy=Boolean(e.lazy)),null!=e.unverifiedLazy&&(o.unverifiedLazy=Boolean(e.unverifiedLazy)),null!=e.deprecated&&(o.deprecated=Boolean(e.deprecated)),null!=e.weak&&(o.weak=Boolean(e.weak)),null!=e.debugRedact&&(o.debugRedact=Boolean(e.debugRedact)),e.retention){default:"number"==typeof e.retention&&(o.retention=e.retention);break;case"RETENTION_UNKNOWN":case 0:o.retention=0;break;case"RETENTION_RUNTIME":case 1:o.retention=1;break;case"RETENTION_SOURCE":case 2:o.retention=2}if(e.targets){if(!Array.isArray(e.targets))throw TypeError(".google.protobuf.FieldOptions.targets: array expected");o.targets=[];for(var r=0;r<e.targets.length;++r)switch(e.targets[r]){default:if("number"==typeof e.targets[r]){o.targets[r]=e.targets[r];break}case"TARGET_TYPE_UNKNOWN":case 0:o.targets[r]=0;break;case"TARGET_TYPE_FILE":case 1:o.targets[r]=1;break;case"TARGET_TYPE_EXTENSION_RANGE":case 2:o.targets[r]=2;break;case"TARGET_TYPE_MESSAGE":case 3:o.targets[r]=3;break;case"TARGET_TYPE_FIELD":case 4:o.targets[r]=4;break;case"TARGET_TYPE_ONEOF":case 5:o.targets[r]=5;break;case"TARGET_TYPE_ENUM":case 6:o.targets[r]=6;break;case"TARGET_TYPE_ENUM_ENTRY":case 7:o.targets[r]=7;break;case"TARGET_TYPE_SERVICE":case 8:o.targets[r]=8;break;case"TARGET_TYPE_METHOD":case 9:o.targets[r]=9}}if(e.editionDefaults){if(!Array.isArray(e.editionDefaults))throw TypeError(".google.protobuf.FieldOptions.editionDefaults: array expected");o.editionDefaults=[];for(r=0;r<e.editionDefaults.length;++r){if(!d.isObject(e.editionDefaults[r]))throw TypeError(".google.protobuf.FieldOptions.editionDefaults: object expected");o.editionDefaults[r]=g.google.protobuf.FieldOptions.EditionDefault.fromObject(e.editionDefaults[r],t+1)}}if(null!=e.features){if(!d.isObject(e.features))throw TypeError(".google.protobuf.FieldOptions.features: object expected");o.features=g.google.protobuf.FeatureSet.fromObject(e.features,t+1)}if(null!=e.featureSupport){if(!d.isObject(e.featureSupport))throw TypeError(".google.protobuf.FieldOptions.featureSupport: object expected");o.featureSupport=g.google.protobuf.FieldOptions.FeatureSupport.fromObject(e.featureSupport,t+1)}if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected");o.uninterpretedOption=[];for(r=0;r<e.uninterpretedOption.length;++r){if(!d.isObject(e.uninterpretedOption[r]))throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: object expected");o.uninterpretedOption[r]=g.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r],t+1)}}if(null!=e[".google.cloud.bigquery.storage.v1.columnName"]&&(o[".google.cloud.bigquery.storage.v1.columnName"]=String(e[".google.cloud.bigquery.storage.v1.columnName"])),e[".google.api.fieldBehavior"]){if(!Array.isArray(e[".google.api.fieldBehavior"]))throw TypeError(".google.protobuf.FieldOptions..google.api.fieldBehavior: array expected");o[".google.api.fieldBehavior"]=[];for(r=0;r<e[".google.api.fieldBehavior"].length;++r)switch(e[".google.api.fieldBehavior"][r]){default:if("number"==typeof e[".google.api.fieldBehavior"][r]){o[".google.api.fieldBehavior"][r]=e[".google.api.fieldBehavior"][r];break}case"FIELD_BEHAVIOR_UNSPECIFIED":case 0:o[".google.api.fieldBehavior"][r]=0;break;case"OPTIONAL":case 1:o[".google.api.fieldBehavior"][r]=1;break;case"REQUIRED":case 2:o[".google.api.fieldBehavior"][r]=2;break;case"OUTPUT_ONLY":case 3:o[".google.api.fieldBehavior"][r]=3;break;case"INPUT_ONLY":case 4:o[".google.api.fieldBehavior"][r]=4;break;case"IMMUTABLE":case 5:o[".google.api.fieldBehavior"][r]=5;break;case"UNORDERED_LIST":case 6:o[".google.api.fieldBehavior"][r]=6;break;case"NON_EMPTY_DEFAULT":case 7:o[".google.api.fieldBehavior"][r]=7;break;case"IDENTIFIER":case 8:o[".google.api.fieldBehavior"][r]=8}}if(null!=e[".google.api.resourceReference"]){if(!d.isObject(e[".google.api.resourceReference"]))throw TypeError(".google.protobuf.FieldOptions..google.api.resourceReference: object expected");o[".google.api.resourceReference"]=g.google.api.ResourceReference.fromObject(e[".google.api.resourceReference"],t+1)}return o},P.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.targets=[],r.editionDefaults=[],r.uninterpretedOption=[],r[".google.api.fieldBehavior"]=[]),t.defaults&&(r.ctype=t.enums===String?"STRING":0,r.packed=!1,r.deprecated=!1,r.lazy=!1,r.jstype=t.enums===String?"JS_NORMAL":0,r.weak=!1,r.unverifiedLazy=!1,r.debugRedact=!1,r.retention=t.enums===String?"RETENTION_UNKNOWN":0,r.features=null,r.featureSupport=null,r[".google.api.resourceReference"]=null,r[".google.cloud.bigquery.storage.v1.columnName"]=null),null!=e.ctype&&Object.hasOwnProperty.call(e,"ctype")&&(r.ctype=t.enums!==String||void 0===g.google.protobuf.FieldOptions.CType[e.ctype]?e.ctype:g.google.protobuf.FieldOptions.CType[e.ctype]),null!=e.packed&&Object.hasOwnProperty.call(e,"packed")&&(r.packed=e.packed),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&(r.deprecated=e.deprecated),null!=e.lazy&&Object.hasOwnProperty.call(e,"lazy")&&(r.lazy=e.lazy),null!=e.jstype&&Object.hasOwnProperty.call(e,"jstype")&&(r.jstype=t.enums!==String||void 0===g.google.protobuf.FieldOptions.JSType[e.jstype]?e.jstype:g.google.protobuf.FieldOptions.JSType[e.jstype]),null!=e.weak&&Object.hasOwnProperty.call(e,"weak")&&(r.weak=e.weak),null!=e.unverifiedLazy&&Object.hasOwnProperty.call(e,"unverifiedLazy")&&(r.unverifiedLazy=e.unverifiedLazy),null!=e.debugRedact&&Object.hasOwnProperty.call(e,"debugRedact")&&(r.debugRedact=e.debugRedact),null!=e.retention&&Object.hasOwnProperty.call(e,"retention")&&(r.retention=t.enums!==String||void 0===g.google.protobuf.FieldOptions.OptionRetention[e.retention]?e.retention:g.google.protobuf.FieldOptions.OptionRetention[e.retention]),e.targets&&e.targets.length){r.targets=[];for(var n=0;n<e.targets.length;++n)r.targets[n]=t.enums!==String||void 0===g.google.protobuf.FieldOptions.OptionTargetType[e.targets[n]]?e.targets[n]:g.google.protobuf.FieldOptions.OptionTargetType[e.targets[n]]}if(e.editionDefaults&&e.editionDefaults.length){r.editionDefaults=[];for(n=0;n<e.editionDefaults.length;++n)r.editionDefaults[n]=g.google.protobuf.FieldOptions.EditionDefault.toObject(e.editionDefaults[n],t,o+1)}if(null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(r.features=g.google.protobuf.FeatureSet.toObject(e.features,t,o+1)),null!=e.featureSupport&&Object.hasOwnProperty.call(e,"featureSupport")&&(r.featureSupport=g.google.protobuf.FieldOptions.FeatureSupport.toObject(e.featureSupport,t,o+1)),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=g.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t,o+1)}if(e[".google.api.fieldBehavior"]&&e[".google.api.fieldBehavior"].length){r[".google.api.fieldBehavior"]=[];for(n=0;n<e[".google.api.fieldBehavior"].length;++n)r[".google.api.fieldBehavior"][n]=t.enums!==String||void 0===g.google.api.FieldBehavior[e[".google.api.fieldBehavior"][n]]?e[".google.api.fieldBehavior"][n]:g.google.api.FieldBehavior[e[".google.api.fieldBehavior"][n]]}return null!=e[".google.api.resourceReference"]&&Object.hasOwnProperty.call(e,".google.api.resourceReference")&&(r[".google.api.resourceReference"]=g.google.api.ResourceReference.toObject(e[".google.api.resourceReference"],t,o+1)),null!=e[".google.cloud.bigquery.storage.v1.columnName"]&&Object.hasOwnProperty.call(e,".google.cloud.bigquery.storage.v1.columnName")&&(r[".google.cloud.bigquery.storage.v1.columnName"]=e[".google.cloud.bigquery.storage.v1.columnName"]),r},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.protobuf.FieldOptions"},P.CType=(a={},(e=Object.create(a))[a[0]="STRING"]=0,e[a[1]="CORD"]=1,e[a[2]="STRING_PIECE"]=2,e),P.JSType=(a={},(e=Object.create(a))[a[0]="JS_NORMAL"]=0,e[a[1]="JS_STRING"]=1,e[a[2]="JS_NUMBER"]=2,e),P.OptionRetention=(a={},(e=Object.create(a))[a[0]="RETENTION_UNKNOWN"]=0,e[a[1]="RETENTION_RUNTIME"]=1,e[a[2]="RETENTION_SOURCE"]=2,e),P.OptionTargetType=(a={},(e=Object.create(a))[a[0]="TARGET_TYPE_UNKNOWN"]=0,e[a[1]="TARGET_TYPE_FILE"]=1,e[a[2]="TARGET_TYPE_EXTENSION_RANGE"]=2,e[a[3]="TARGET_TYPE_MESSAGE"]=3,e[a[4]="TARGET_TYPE_FIELD"]=4,e[a[5]="TARGET_TYPE_ONEOF"]=5,e[a[6]="TARGET_TYPE_ENUM"]=6,e[a[7]="TARGET_TYPE_ENUM_ENTRY"]=7,e[a[8]="TARGET_TYPE_SERVICE"]=8,e[a[9]="TARGET_TYPE_METHOD"]=9,e),P.EditionDefault=(Ee.prototype.edition=0,Ee.prototype.value="",Ee.create=function(e){return new Ee(e)},Ee.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(18).string(e.value),null!=e.edition&&Object.hasOwnProperty.call(e,"edition")&&t.uint32(24).int32(e.edition),t},Ee.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ee.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FieldOptions.EditionDefault;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 3:i.edition=e.int32();break;case 2:i.value=e.string();break;default:e.skipType(7&a,r)}}return i},Ee.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Ee.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.edition&&Object.hasOwnProperty.call(e,"edition"))switch(e.edition){default:return"edition: enum value expected";case 0:case 900:case 998:case 999:case 1e3:case 1001:case 1:case 2:case 99997:case 99998:case 99999:case 2147483647:}return null!=e.value&&Object.hasOwnProperty.call(e,"value")&&!d.isString(e.value)?"value: string expected":null},Ee.fromObject=function(e,t){if(e instanceof g.google.protobuf.FieldOptions.EditionDefault)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.FieldOptions.EditionDefault: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.FieldOptions.EditionDefault;switch(e.edition){default:"number"==typeof e.edition&&(o.edition=e.edition);break;case"EDITION_UNKNOWN":case 0:o.edition=0;break;case"EDITION_LEGACY":case 900:o.edition=900;break;case"EDITION_PROTO2":case 998:o.edition=998;break;case"EDITION_PROTO3":case 999:o.edition=999;break;case"EDITION_2023":case 1e3:o.edition=1e3;break;case"EDITION_2024":case 1001:o.edition=1001;break;case"EDITION_1_TEST_ONLY":case 1:o.edition=1;break;case"EDITION_2_TEST_ONLY":case 2:o.edition=2;break;case"EDITION_99997_TEST_ONLY":case 99997:o.edition=99997;break;case"EDITION_99998_TEST_ONLY":case 99998:o.edition=99998;break;case"EDITION_99999_TEST_ONLY":case 99999:o.edition=99999;break;case"EDITION_MAX":case 2147483647:o.edition=2147483647}return null!=e.value&&(o.value=String(e.value)),o},Ee.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.value="",o.edition=t.enums===String?"EDITION_UNKNOWN":0),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&(o.value=e.value),null!=e.edition&&Object.hasOwnProperty.call(e,"edition")&&(o.edition=t.enums!==String||void 0===g.google.protobuf.Edition[e.edition]?e.edition:g.google.protobuf.Edition[e.edition]),o},Ee.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Ee.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FieldOptions.EditionDefault"},Ee),P.FeatureSupport=(Pe.prototype.editionIntroduced=0,Pe.prototype.editionDeprecated=0,Pe.prototype.deprecationWarning="",Pe.prototype.editionRemoved=0,Pe.create=function(e){return new Pe(e)},Pe.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.editionIntroduced&&Object.hasOwnProperty.call(e,"editionIntroduced")&&t.uint32(8).int32(e.editionIntroduced),null!=e.editionDeprecated&&Object.hasOwnProperty.call(e,"editionDeprecated")&&t.uint32(16).int32(e.editionDeprecated),null!=e.deprecationWarning&&Object.hasOwnProperty.call(e,"deprecationWarning")&&t.uint32(26).string(e.deprecationWarning),null!=e.editionRemoved&&Object.hasOwnProperty.call(e,"editionRemoved")&&t.uint32(32).int32(e.editionRemoved),t},Pe.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Pe.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FieldOptions.FeatureSupport;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.editionIntroduced=e.int32();break;case 2:i.editionDeprecated=e.int32();break;case 3:i.deprecationWarning=e.string();break;case 4:i.editionRemoved=e.int32();break;default:e.skipType(7&a,r)}}return i},Pe.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Pe.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.editionIntroduced&&Object.hasOwnProperty.call(e,"editionIntroduced"))switch(e.editionIntroduced){default:return"editionIntroduced: enum value expected";case 0:case 900:case 998:case 999:case 1e3:case 1001:case 1:case 2:case 99997:case 99998:case 99999:case 2147483647:}if(null!=e.editionDeprecated&&Object.hasOwnProperty.call(e,"editionDeprecated"))switch(e.editionDeprecated){default:return"editionDeprecated: enum value expected";case 0:case 900:case 998:case 999:case 1e3:case 1001:case 1:case 2:case 99997:case 99998:case 99999:case 2147483647:}if(null!=e.deprecationWarning&&Object.hasOwnProperty.call(e,"deprecationWarning")&&!d.isString(e.deprecationWarning))return"deprecationWarning: string expected";if(null!=e.editionRemoved&&Object.hasOwnProperty.call(e,"editionRemoved"))switch(e.editionRemoved){default:return"editionRemoved: enum value expected";case 0:case 900:case 998:case 999:case 1e3:case 1001:case 1:case 2:case 99997:case 99998:case 99999:case 2147483647:}return null},Pe.fromObject=function(e,t){if(e instanceof g.google.protobuf.FieldOptions.FeatureSupport)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.FieldOptions.FeatureSupport: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.FieldOptions.FeatureSupport;switch(e.editionIntroduced){default:"number"==typeof e.editionIntroduced&&(o.editionIntroduced=e.editionIntroduced);break;case"EDITION_UNKNOWN":case 0:o.editionIntroduced=0;break;case"EDITION_LEGACY":case 900:o.editionIntroduced=900;break;case"EDITION_PROTO2":case 998:o.editionIntroduced=998;break;case"EDITION_PROTO3":case 999:o.editionIntroduced=999;break;case"EDITION_2023":case 1e3:o.editionIntroduced=1e3;break;case"EDITION_2024":case 1001:o.editionIntroduced=1001;break;case"EDITION_1_TEST_ONLY":case 1:o.editionIntroduced=1;break;case"EDITION_2_TEST_ONLY":case 2:o.editionIntroduced=2;break;case"EDITION_99997_TEST_ONLY":case 99997:o.editionIntroduced=99997;break;case"EDITION_99998_TEST_ONLY":case 99998:o.editionIntroduced=99998;break;case"EDITION_99999_TEST_ONLY":case 99999:o.editionIntroduced=99999;break;case"EDITION_MAX":case 2147483647:o.editionIntroduced=2147483647}switch(e.editionDeprecated){default:"number"==typeof e.editionDeprecated&&(o.editionDeprecated=e.editionDeprecated);break;case"EDITION_UNKNOWN":case 0:o.editionDeprecated=0;break;case"EDITION_LEGACY":case 900:o.editionDeprecated=900;break;case"EDITION_PROTO2":case 998:o.editionDeprecated=998;break;case"EDITION_PROTO3":case 999:o.editionDeprecated=999;break;case"EDITION_2023":case 1e3:o.editionDeprecated=1e3;break;case"EDITION_2024":case 1001:o.editionDeprecated=1001;break;case"EDITION_1_TEST_ONLY":case 1:o.editionDeprecated=1;break;case"EDITION_2_TEST_ONLY":case 2:o.editionDeprecated=2;break;case"EDITION_99997_TEST_ONLY":case 99997:o.editionDeprecated=99997;break;case"EDITION_99998_TEST_ONLY":case 99998:o.editionDeprecated=99998;break;case"EDITION_99999_TEST_ONLY":case 99999:o.editionDeprecated=99999;break;case"EDITION_MAX":case 2147483647:o.editionDeprecated=2147483647}switch(null!=e.deprecationWarning&&(o.deprecationWarning=String(e.deprecationWarning)),e.editionRemoved){default:"number"==typeof e.editionRemoved&&(o.editionRemoved=e.editionRemoved);break;case"EDITION_UNKNOWN":case 0:o.editionRemoved=0;break;case"EDITION_LEGACY":case 900:o.editionRemoved=900;break;case"EDITION_PROTO2":case 998:o.editionRemoved=998;break;case"EDITION_PROTO3":case 999:o.editionRemoved=999;break;case"EDITION_2023":case 1e3:o.editionRemoved=1e3;break;case"EDITION_2024":case 1001:o.editionRemoved=1001;break;case"EDITION_1_TEST_ONLY":case 1:o.editionRemoved=1;break;case"EDITION_2_TEST_ONLY":case 2:o.editionRemoved=2;break;case"EDITION_99997_TEST_ONLY":case 99997:o.editionRemoved=99997;break;case"EDITION_99998_TEST_ONLY":case 99998:o.editionRemoved=99998;break;case"EDITION_99999_TEST_ONLY":case 99999:o.editionRemoved=99999;break;case"EDITION_MAX":case 2147483647:o.editionRemoved=2147483647}return o},Pe.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.editionIntroduced=t.enums===String?"EDITION_UNKNOWN":0,o.editionDeprecated=t.enums===String?"EDITION_UNKNOWN":0,o.deprecationWarning="",o.editionRemoved=t.enums===String?"EDITION_UNKNOWN":0),null!=e.editionIntroduced&&Object.hasOwnProperty.call(e,"editionIntroduced")&&(o.editionIntroduced=t.enums!==String||void 0===g.google.protobuf.Edition[e.editionIntroduced]?e.editionIntroduced:g.google.protobuf.Edition[e.editionIntroduced]),null!=e.editionDeprecated&&Object.hasOwnProperty.call(e,"editionDeprecated")&&(o.editionDeprecated=t.enums!==String||void 0===g.google.protobuf.Edition[e.editionDeprecated]?e.editionDeprecated:g.google.protobuf.Edition[e.editionDeprecated]),null!=e.deprecationWarning&&Object.hasOwnProperty.call(e,"deprecationWarning")&&(o.deprecationWarning=e.deprecationWarning),null!=e.editionRemoved&&Object.hasOwnProperty.call(e,"editionRemoved")&&(o.editionRemoved=t.enums!==String||void 0===g.google.protobuf.Edition[e.editionRemoved]?e.editionRemoved:g.google.protobuf.Edition[e.editionRemoved]),o},Pe.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Pe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FieldOptions.FeatureSupport"},Pe),P),t.OneofOptions=(Te.prototype.features=null,Te.prototype.uninterpretedOption=d.emptyArray,Te.create=function(e){return new Te(e)},Te.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.features&&Object.hasOwnProperty.call(e,"features")&&g.google.protobuf.FeatureSet.encode(e.features,t.uint32(10).fork(),o+1).ldelim(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)g.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork(),o+1).ldelim();return t},Te.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Te.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.OneofOptions;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.features=g.google.protobuf.FeatureSet.decode(e,e.uint32(),void 0,r+1);break;case 999:i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(g.google.protobuf.UninterpretedOption.decode(e,e.uint32(),void 0,r+1));break;default:e.skipType(7&a,r)}}return i},Te.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Te.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(o=g.google.protobuf.FeatureSet.verify(e.features,t+1)))return"features."+o;if(null!=e.uninterpretedOption&&Object.hasOwnProperty.call(e,"uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var o,r=0;r<e.uninterpretedOption.length;++r)if(o=g.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[r],t+1))return"uninterpretedOption."+o}return null},Te.fromObject=function(e,t){if(e instanceof g.google.protobuf.OneofOptions)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.OneofOptions: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.OneofOptions;if(null!=e.features){if(!d.isObject(e.features))throw TypeError(".google.protobuf.OneofOptions.features: object expected");o.features=g.google.protobuf.FeatureSet.fromObject(e.features,t+1)}if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected");o.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if(!d.isObject(e.uninterpretedOption[r]))throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: object expected");o.uninterpretedOption[r]=g.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r],t+1)}}return o},Te.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.features=null),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(r.features=g.google.protobuf.FeatureSet.toObject(e.features,t,o+1)),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=g.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t,o+1)}return r},Te.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Te.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.OneofOptions"},Te),t.EnumOptions=(Re.prototype.allowAlias=!1,Re.prototype.deprecated=!1,Re.prototype.deprecatedLegacyJsonFieldConflicts=!1,Re.prototype.features=null,Re.prototype.uninterpretedOption=d.emptyArray,Re.create=function(e){return new Re(e)},Re.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.allowAlias&&Object.hasOwnProperty.call(e,"allowAlias")&&t.uint32(16).bool(e.allowAlias),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(24).bool(e.deprecated),null!=e.deprecatedLegacyJsonFieldConflicts&&Object.hasOwnProperty.call(e,"deprecatedLegacyJsonFieldConflicts")&&t.uint32(48).bool(e.deprecatedLegacyJsonFieldConflicts),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&g.google.protobuf.FeatureSet.encode(e.features,t.uint32(58).fork(),o+1).ldelim(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)g.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork(),o+1).ldelim();return t},Re.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Re.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.EnumOptions;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 2:i.allowAlias=e.bool();break;case 3:i.deprecated=e.bool();break;case 6:i.deprecatedLegacyJsonFieldConflicts=e.bool();break;case 7:i.features=g.google.protobuf.FeatureSet.decode(e,e.uint32(),void 0,r+1);break;case 999:i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(g.google.protobuf.UninterpretedOption.decode(e,e.uint32(),void 0,r+1));break;default:e.skipType(7&a,r)}}return i},Re.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Re.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.allowAlias&&Object.hasOwnProperty.call(e,"allowAlias")&&"boolean"!=typeof e.allowAlias)return"allowAlias: boolean expected";if(null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.deprecatedLegacyJsonFieldConflicts&&Object.hasOwnProperty.call(e,"deprecatedLegacyJsonFieldConflicts")&&"boolean"!=typeof e.deprecatedLegacyJsonFieldConflicts)return"deprecatedLegacyJsonFieldConflicts: boolean expected";if(null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(o=g.google.protobuf.FeatureSet.verify(e.features,t+1)))return"features."+o;if(null!=e.uninterpretedOption&&Object.hasOwnProperty.call(e,"uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var o,r=0;r<e.uninterpretedOption.length;++r)if(o=g.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[r],t+1))return"uninterpretedOption."+o}return null},Re.fromObject=function(e,t){if(e instanceof g.google.protobuf.EnumOptions)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.EnumOptions: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.EnumOptions;if(null!=e.allowAlias&&(o.allowAlias=Boolean(e.allowAlias)),null!=e.deprecated&&(o.deprecated=Boolean(e.deprecated)),null!=e.deprecatedLegacyJsonFieldConflicts&&(o.deprecatedLegacyJsonFieldConflicts=Boolean(e.deprecatedLegacyJsonFieldConflicts)),null!=e.features){if(!d.isObject(e.features))throw TypeError(".google.protobuf.EnumOptions.features: object expected");o.features=g.google.protobuf.FeatureSet.fromObject(e.features,t+1)}if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected");o.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if(!d.isObject(e.uninterpretedOption[r]))throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: object expected");o.uninterpretedOption[r]=g.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r],t+1)}}return o},Re.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.allowAlias=!1,r.deprecated=!1,r.deprecatedLegacyJsonFieldConflicts=!1,r.features=null),null!=e.allowAlias&&Object.hasOwnProperty.call(e,"allowAlias")&&(r.allowAlias=e.allowAlias),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&(r.deprecated=e.deprecated),null!=e.deprecatedLegacyJsonFieldConflicts&&Object.hasOwnProperty.call(e,"deprecatedLegacyJsonFieldConflicts")&&(r.deprecatedLegacyJsonFieldConflicts=e.deprecatedLegacyJsonFieldConflicts),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(r.features=g.google.protobuf.FeatureSet.toObject(e.features,t,o+1)),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=g.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t,o+1)}return r},Re.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Re.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.EnumOptions"},Re),t.EnumValueOptions=(ke.prototype.deprecated=!1,ke.prototype.features=null,ke.prototype.debugRedact=!1,ke.prototype.featureSupport=null,ke.prototype.uninterpretedOption=d.emptyArray,ke.create=function(e){return new ke(e)},ke.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(8).bool(e.deprecated),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&g.google.protobuf.FeatureSet.encode(e.features,t.uint32(18).fork(),o+1).ldelim(),null!=e.debugRedact&&Object.hasOwnProperty.call(e,"debugRedact")&&t.uint32(24).bool(e.debugRedact),null!=e.featureSupport&&Object.hasOwnProperty.call(e,"featureSupport")&&g.google.protobuf.FieldOptions.FeatureSupport.encode(e.featureSupport,t.uint32(34).fork(),o+1).ldelim(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)g.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork(),o+1).ldelim();return t},ke.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ke.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.EnumValueOptions;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.deprecated=e.bool();break;case 2:i.features=g.google.protobuf.FeatureSet.decode(e,e.uint32(),void 0,r+1);break;case 3:i.debugRedact=e.bool();break;case 4:i.featureSupport=g.google.protobuf.FieldOptions.FeatureSupport.decode(e,e.uint32(),void 0,r+1);break;case 999:i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(g.google.protobuf.UninterpretedOption.decode(e,e.uint32(),void 0,r+1));break;default:e.skipType(7&a,r)}}return i},ke.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ke.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(o=g.google.protobuf.FeatureSet.verify(e.features,t+1)))return"features."+o;if(null!=e.debugRedact&&Object.hasOwnProperty.call(e,"debugRedact")&&"boolean"!=typeof e.debugRedact)return"debugRedact: boolean expected";if(null!=e.featureSupport&&Object.hasOwnProperty.call(e,"featureSupport")&&(o=g.google.protobuf.FieldOptions.FeatureSupport.verify(e.featureSupport,t+1)))return"featureSupport."+o;if(null!=e.uninterpretedOption&&Object.hasOwnProperty.call(e,"uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var o,r=0;r<e.uninterpretedOption.length;++r)if(o=g.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[r],t+1))return"uninterpretedOption."+o}return null},ke.fromObject=function(e,t){if(e instanceof g.google.protobuf.EnumValueOptions)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.EnumValueOptions: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.EnumValueOptions;if(null!=e.deprecated&&(o.deprecated=Boolean(e.deprecated)),null!=e.features){if(!d.isObject(e.features))throw TypeError(".google.protobuf.EnumValueOptions.features: object expected");o.features=g.google.protobuf.FeatureSet.fromObject(e.features,t+1)}if(null!=e.debugRedact&&(o.debugRedact=Boolean(e.debugRedact)),null!=e.featureSupport){if(!d.isObject(e.featureSupport))throw TypeError(".google.protobuf.EnumValueOptions.featureSupport: object expected");o.featureSupport=g.google.protobuf.FieldOptions.FeatureSupport.fromObject(e.featureSupport,t+1)}if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected");o.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if(!d.isObject(e.uninterpretedOption[r]))throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: object expected");o.uninterpretedOption[r]=g.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r],t+1)}}return o},ke.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.deprecated=!1,r.features=null,r.debugRedact=!1,r.featureSupport=null),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&(r.deprecated=e.deprecated),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(r.features=g.google.protobuf.FeatureSet.toObject(e.features,t,o+1)),null!=e.debugRedact&&Object.hasOwnProperty.call(e,"debugRedact")&&(r.debugRedact=e.debugRedact),null!=e.featureSupport&&Object.hasOwnProperty.call(e,"featureSupport")&&(r.featureSupport=g.google.protobuf.FieldOptions.FeatureSupport.toObject(e.featureSupport,t,o+1)),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=g.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t,o+1)}return r},ke.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ke.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.EnumValueOptions"},ke),t.ServiceOptions=(T.prototype.features=null,T.prototype.deprecated=!1,T.prototype.uninterpretedOption=d.emptyArray,T.prototype[".google.api.defaultHost"]="",T.prototype[".google.api.oauthScopes"]="",T.prototype[".google.api.apiVersion"]="",T.create=function(e){return new T(e)},T.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(264).bool(e.deprecated),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&g.google.protobuf.FeatureSet.encode(e.features,t.uint32(274).fork(),o+1).ldelim(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)g.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork(),o+1).ldelim();return null!=e[".google.api.defaultHost"]&&Object.hasOwnProperty.call(e,".google.api.defaultHost")&&t.uint32(8394).string(e[".google.api.defaultHost"]),null!=e[".google.api.oauthScopes"]&&Object.hasOwnProperty.call(e,".google.api.oauthScopes")&&t.uint32(8402).string(e[".google.api.oauthScopes"]),null!=e[".google.api.apiVersion"]&&Object.hasOwnProperty.call(e,".google.api.apiVersion")&&t.uint32(4200000010).string(e[".google.api.apiVersion"]),t},T.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},T.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.ServiceOptions;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 34:i.features=g.google.protobuf.FeatureSet.decode(e,e.uint32(),void 0,r+1);break;case 33:i.deprecated=e.bool();break;case 999:i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(g.google.protobuf.UninterpretedOption.decode(e,e.uint32(),void 0,r+1));break;case 1049:i[".google.api.defaultHost"]=e.string();break;case 1050:i[".google.api.oauthScopes"]=e.string();break;case 525000001:i[".google.api.apiVersion"]=e.string();break;default:e.skipType(7&a,r)}}return i},T.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},T.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(o=g.google.protobuf.FeatureSet.verify(e.features,t+1)))return"features."+o;if(null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&Object.hasOwnProperty.call(e,"uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var o,r=0;r<e.uninterpretedOption.length;++r)if(o=g.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[r],t+1))return"uninterpretedOption."+o}return null!=e[".google.api.defaultHost"]&&Object.hasOwnProperty.call(e,".google.api.defaultHost")&&!d.isString(e[".google.api.defaultHost"])?".google.api.defaultHost: string expected":null!=e[".google.api.oauthScopes"]&&Object.hasOwnProperty.call(e,".google.api.oauthScopes")&&!d.isString(e[".google.api.oauthScopes"])?".google.api.oauthScopes: string expected":null!=e[".google.api.apiVersion"]&&Object.hasOwnProperty.call(e,".google.api.apiVersion")&&!d.isString(e[".google.api.apiVersion"])?".google.api.apiVersion: string expected":null},T.fromObject=function(e,t){if(e instanceof g.google.protobuf.ServiceOptions)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.ServiceOptions: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.ServiceOptions;if(null!=e.features){if(!d.isObject(e.features))throw TypeError(".google.protobuf.ServiceOptions.features: object expected");o.features=g.google.protobuf.FeatureSet.fromObject(e.features,t+1)}if(null!=e.deprecated&&(o.deprecated=Boolean(e.deprecated)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: array expected");o.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if(!d.isObject(e.uninterpretedOption[r]))throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: object expected");o.uninterpretedOption[r]=g.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r],t+1)}}return null!=e[".google.api.defaultHost"]&&(o[".google.api.defaultHost"]=String(e[".google.api.defaultHost"])),null!=e[".google.api.oauthScopes"]&&(o[".google.api.oauthScopes"]=String(e[".google.api.oauthScopes"])),null!=e[".google.api.apiVersion"]&&(o[".google.api.apiVersion"]=String(e[".google.api.apiVersion"])),o},T.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.deprecated=!1,r.features=null,r[".google.api.defaultHost"]="",r[".google.api.oauthScopes"]="",r[".google.api.apiVersion"]=""),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&(r.deprecated=e.deprecated),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(r.features=g.google.protobuf.FeatureSet.toObject(e.features,t,o+1)),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=g.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t,o+1)}return null!=e[".google.api.defaultHost"]&&Object.hasOwnProperty.call(e,".google.api.defaultHost")&&(r[".google.api.defaultHost"]=e[".google.api.defaultHost"]),null!=e[".google.api.oauthScopes"]&&Object.hasOwnProperty.call(e,".google.api.oauthScopes")&&(r[".google.api.oauthScopes"]=e[".google.api.oauthScopes"]),null!=e[".google.api.apiVersion"]&&Object.hasOwnProperty.call(e,".google.api.apiVersion")&&(r[".google.api.apiVersion"]=e[".google.api.apiVersion"]),r},T.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},T.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.ServiceOptions"},T),t.MethodOptions=(R.prototype.deprecated=!1,R.prototype.idempotencyLevel=0,R.prototype.features=null,R.prototype.uninterpretedOption=d.emptyArray,R.prototype[".google.api.http"]=null,R.prototype[".google.api.methodSignature"]=d.emptyArray,R.create=function(e){return new R(e)},R.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(264).bool(e.deprecated),null!=e.idempotencyLevel&&Object.hasOwnProperty.call(e,"idempotencyLevel")&&t.uint32(272).int32(e.idempotencyLevel),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&g.google.protobuf.FeatureSet.encode(e.features,t.uint32(282).fork(),o+1).ldelim(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)g.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork(),o+1).ldelim();if(null!=e[".google.api.methodSignature"]&&e[".google.api.methodSignature"].length)for(r=0;r<e[".google.api.methodSignature"].length;++r)t.uint32(8410).string(e[".google.api.methodSignature"][r]);return null!=e[".google.api.http"]&&Object.hasOwnProperty.call(e,".google.api.http")&&g.google.api.HttpRule.encode(e[".google.api.http"],t.uint32(578365826).fork(),o+1).ldelim(),t},R.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},R.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.MethodOptions;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 33:i.deprecated=e.bool();break;case 34:i.idempotencyLevel=e.int32();break;case 35:i.features=g.google.protobuf.FeatureSet.decode(e,e.uint32(),void 0,r+1);break;case 999:i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(g.google.protobuf.UninterpretedOption.decode(e,e.uint32(),void 0,r+1));break;case 72295728:i[".google.api.http"]=g.google.api.HttpRule.decode(e,e.uint32(),void 0,r+1);break;case 1051:i[".google.api.methodSignature"]&&i[".google.api.methodSignature"].length||(i[".google.api.methodSignature"]=[]),i[".google.api.methodSignature"].push(e.string());break;default:e.skipType(7&a,r)}}return i},R.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},R.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.idempotencyLevel&&Object.hasOwnProperty.call(e,"idempotencyLevel"))switch(e.idempotencyLevel){default:return"idempotencyLevel: enum value expected";case 0:case 1:case 2:}if(null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(o=g.google.protobuf.FeatureSet.verify(e.features,t+1)))return"features."+o;if(null!=e.uninterpretedOption&&Object.hasOwnProperty.call(e,"uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var o,r=0;r<e.uninterpretedOption.length;++r)if(o=g.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[r],t+1))return"uninterpretedOption."+o}if(null!=e[".google.api.http"]&&Object.hasOwnProperty.call(e,".google.api.http")&&(o=g.google.api.HttpRule.verify(e[".google.api.http"],t+1)))return".google.api.http."+o;if(null!=e[".google.api.methodSignature"]&&Object.hasOwnProperty.call(e,".google.api.methodSignature")){if(!Array.isArray(e[".google.api.methodSignature"]))return".google.api.methodSignature: array expected";for(r=0;r<e[".google.api.methodSignature"].length;++r)if(!d.isString(e[".google.api.methodSignature"][r]))return".google.api.methodSignature: string[] expected"}return null},R.fromObject=function(e,t){if(e instanceof g.google.protobuf.MethodOptions)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.MethodOptions: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.MethodOptions;switch(null!=e.deprecated&&(o.deprecated=Boolean(e.deprecated)),e.idempotencyLevel){default:"number"==typeof e.idempotencyLevel&&(o.idempotencyLevel=e.idempotencyLevel);break;case"IDEMPOTENCY_UNKNOWN":case 0:o.idempotencyLevel=0;break;case"NO_SIDE_EFFECTS":case 1:o.idempotencyLevel=1;break;case"IDEMPOTENT":case 2:o.idempotencyLevel=2}if(null!=e.features){if(!d.isObject(e.features))throw TypeError(".google.protobuf.MethodOptions.features: object expected");o.features=g.google.protobuf.FeatureSet.fromObject(e.features,t+1)}if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected");o.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if(!d.isObject(e.uninterpretedOption[r]))throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: object expected");o.uninterpretedOption[r]=g.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r],t+1)}}if(null!=e[".google.api.http"]){if(!d.isObject(e[".google.api.http"]))throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected");o[".google.api.http"]=g.google.api.HttpRule.fromObject(e[".google.api.http"],t+1)}if(e[".google.api.methodSignature"]){if(!Array.isArray(e[".google.api.methodSignature"]))throw TypeError(".google.protobuf.MethodOptions..google.api.methodSignature: array expected");o[".google.api.methodSignature"]=[];for(r=0;r<e[".google.api.methodSignature"].length;++r)o[".google.api.methodSignature"][r]=String(e[".google.api.methodSignature"][r])}return o},R.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.uninterpretedOption=[],r[".google.api.methodSignature"]=[]),t.defaults&&(r.deprecated=!1,r.idempotencyLevel=t.enums===String?"IDEMPOTENCY_UNKNOWN":0,r.features=null,r[".google.api.http"]=null),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&(r.deprecated=e.deprecated),null!=e.idempotencyLevel&&Object.hasOwnProperty.call(e,"idempotencyLevel")&&(r.idempotencyLevel=t.enums!==String||void 0===g.google.protobuf.MethodOptions.IdempotencyLevel[e.idempotencyLevel]?e.idempotencyLevel:g.google.protobuf.MethodOptions.IdempotencyLevel[e.idempotencyLevel]),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(r.features=g.google.protobuf.FeatureSet.toObject(e.features,t,o+1)),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=g.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t,o+1)}if(e[".google.api.methodSignature"]&&e[".google.api.methodSignature"].length){r[".google.api.methodSignature"]=[];for(n=0;n<e[".google.api.methodSignature"].length;++n)r[".google.api.methodSignature"][n]=e[".google.api.methodSignature"][n]}return null!=e[".google.api.http"]&&Object.hasOwnProperty.call(e,".google.api.http")&&(r[".google.api.http"]=g.google.api.HttpRule.toObject(e[".google.api.http"],t,o+1)),r},R.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},R.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.MethodOptions"},R.IdempotencyLevel=(a={},(e=Object.create(a))[a[0]="IDEMPOTENCY_UNKNOWN"]=0,e[a[1]="NO_SIDE_EFFECTS"]=1,e[a[2]="IDEMPOTENT"]=2,e),R),t.UninterpretedOption=(k.prototype.name=d.emptyArray,k.prototype.identifierValue="",k.prototype.positiveIntValue=d.Long?d.Long.fromBits(0,0,!0):0,k.prototype.negativeIntValue=d.Long?d.Long.fromBits(0,0,!1):0,k.prototype.doubleValue=0,k.prototype.stringValue=d.newBuffer([]),k.prototype.aggregateValue="",k.create=function(e){return new k(e)},k.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.name&&e.name.length)for(var r=0;r<e.name.length;++r)g.google.protobuf.UninterpretedOption.NamePart.encode(e.name[r],t.uint32(18).fork(),o+1).ldelim();return null!=e.identifierValue&&Object.hasOwnProperty.call(e,"identifierValue")&&t.uint32(26).string(e.identifierValue),null!=e.positiveIntValue&&Object.hasOwnProperty.call(e,"positiveIntValue")&&t.uint32(32).uint64(e.positiveIntValue),null!=e.negativeIntValue&&Object.hasOwnProperty.call(e,"negativeIntValue")&&t.uint32(40).int64(e.negativeIntValue),null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&t.uint32(49).double(e.doubleValue),null!=e.stringValue&&Object.hasOwnProperty.call(e,"stringValue")&&t.uint32(58).bytes(e.stringValue),null!=e.aggregateValue&&Object.hasOwnProperty.call(e,"aggregateValue")&&t.uint32(66).string(e.aggregateValue),t},k.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},k.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.UninterpretedOption;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 2:i.name&&i.name.length||(i.name=[]),i.name.push(g.google.protobuf.UninterpretedOption.NamePart.decode(e,e.uint32(),void 0,r+1));break;case 3:i.identifierValue=e.string();break;case 4:i.positiveIntValue=e.uint64();break;case 5:i.negativeIntValue=e.int64();break;case 6:i.doubleValue=e.double();break;case 7:i.stringValue=e.bytes();break;case 8:i.aggregateValue=e.string();break;default:e.skipType(7&a,r)}}return i},k.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},k.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.name&&Object.hasOwnProperty.call(e,"name")){if(!Array.isArray(e.name))return"name: array expected";for(var o=0;o<e.name.length;++o){var r=g.google.protobuf.UninterpretedOption.NamePart.verify(e.name[o],t+1);if(r)return"name."+r}}return null!=e.identifierValue&&Object.hasOwnProperty.call(e,"identifierValue")&&!d.isString(e.identifierValue)?"identifierValue: string expected":null!=e.positiveIntValue&&Object.hasOwnProperty.call(e,"positiveIntValue")&&!(d.isInteger(e.positiveIntValue)||e.positiveIntValue&&d.isInteger(e.positiveIntValue.low)&&d.isInteger(e.positiveIntValue.high))?"positiveIntValue: integer|Long expected":null!=e.negativeIntValue&&Object.hasOwnProperty.call(e,"negativeIntValue")&&!(d.isInteger(e.negativeIntValue)||e.negativeIntValue&&d.isInteger(e.negativeIntValue.low)&&d.isInteger(e.negativeIntValue.high))?"negativeIntValue: integer|Long expected":null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&"number"!=typeof e.doubleValue?"doubleValue: number expected":null!=e.stringValue&&Object.hasOwnProperty.call(e,"stringValue")&&!(e.stringValue&&"number"==typeof e.stringValue.length||d.isString(e.stringValue))?"stringValue: buffer expected":null!=e.aggregateValue&&Object.hasOwnProperty.call(e,"aggregateValue")&&!d.isString(e.aggregateValue)?"aggregateValue: string expected":null},k.fromObject=function(e,t){if(e instanceof g.google.protobuf.UninterpretedOption)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.UninterpretedOption: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.UninterpretedOption;if(e.name){if(!Array.isArray(e.name))throw TypeError(".google.protobuf.UninterpretedOption.name: array expected");o.name=[];for(var r=0;r<e.name.length;++r){if(!d.isObject(e.name[r]))throw TypeError(".google.protobuf.UninterpretedOption.name: object expected");o.name[r]=g.google.protobuf.UninterpretedOption.NamePart.fromObject(e.name[r],t+1)}}return null!=e.identifierValue&&(o.identifierValue=String(e.identifierValue)),null!=e.positiveIntValue&&(d.Long?o.positiveIntValue=d.Long.fromValue(e.positiveIntValue,!0):"string"==typeof e.positiveIntValue?o.positiveIntValue=parseInt(e.positiveIntValue,10):"number"==typeof e.positiveIntValue?o.positiveIntValue=e.positiveIntValue:"object"==typeof e.positiveIntValue&&(o.positiveIntValue=new d.LongBits(e.positiveIntValue.low>>>0,e.positiveIntValue.high>>>0).toNumber(!0))),null!=e.negativeIntValue&&(d.Long?o.negativeIntValue=d.Long.fromValue(e.negativeIntValue,!1):"string"==typeof e.negativeIntValue?o.negativeIntValue=parseInt(e.negativeIntValue,10):"number"==typeof e.negativeIntValue?o.negativeIntValue=e.negativeIntValue:"object"==typeof e.negativeIntValue&&(o.negativeIntValue=new d.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber())),null!=e.doubleValue&&(o.doubleValue=Number(e.doubleValue)),null!=e.stringValue&&("string"==typeof e.stringValue?d.base64.decode(e.stringValue,o.stringValue=d.newBuffer(d.base64.length(e.stringValue)),0):0<=e.stringValue.length&&(o.stringValue=e.stringValue)),null!=e.aggregateValue&&(o.aggregateValue=String(e.aggregateValue)),o},k.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,n={};if((t.arrays||t.defaults)&&(n.name=[]),t.defaults&&(n.identifierValue="",d.Long?(r=new d.Long(0,0,!0),n.positiveIntValue=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):n.positiveIntValue=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,d.Long?(r=new d.Long(0,0,!1),n.negativeIntValue=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):n.negativeIntValue=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,n.doubleValue=0,t.bytes===String?n.stringValue="":(n.stringValue=[],t.bytes!==Array&&(n.stringValue=d.newBuffer(n.stringValue))),n.aggregateValue=""),e.name&&e.name.length){n.name=[];for(var i=0;i<e.name.length;++i)n.name[i]=g.google.protobuf.UninterpretedOption.NamePart.toObject(e.name[i],t,o+1)}return null!=e.identifierValue&&Object.hasOwnProperty.call(e,"identifierValue")&&(n.identifierValue=e.identifierValue),null!=e.positiveIntValue&&Object.hasOwnProperty.call(e,"positiveIntValue")&&("undefined"!=typeof BigInt&&t.longs===BigInt?n.positiveIntValue="number"==typeof e.positiveIntValue?BigInt(e.positiveIntValue):d.Long.fromBits(e.positiveIntValue.low>>>0,e.positiveIntValue.high>>>0,!0).toBigInt():"number"==typeof e.positiveIntValue?n.positiveIntValue=t.longs===String?String(e.positiveIntValue):e.positiveIntValue:n.positiveIntValue=t.longs===String?d.Long.prototype.toString.call(e.positiveIntValue):t.longs===Number?new d.LongBits(e.positiveIntValue.low>>>0,e.positiveIntValue.high>>>0).toNumber(!0):e.positiveIntValue),null!=e.negativeIntValue&&Object.hasOwnProperty.call(e,"negativeIntValue")&&("undefined"!=typeof BigInt&&t.longs===BigInt?n.negativeIntValue="number"==typeof e.negativeIntValue?BigInt(e.negativeIntValue):d.Long.fromBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0,!1).toBigInt():"number"==typeof e.negativeIntValue?n.negativeIntValue=t.longs===String?String(e.negativeIntValue):e.negativeIntValue:n.negativeIntValue=t.longs===String?d.Long.prototype.toString.call(e.negativeIntValue):t.longs===Number?new d.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber():e.negativeIntValue),null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue),null!=e.stringValue&&Object.hasOwnProperty.call(e,"stringValue")&&(n.stringValue=t.bytes===String?d.base64.encode(e.stringValue,0,e.stringValue.length):t.bytes===Array?Array.prototype.slice.call(e.stringValue):e.stringValue),null!=e.aggregateValue&&Object.hasOwnProperty.call(e,"aggregateValue")&&(n.aggregateValue=e.aggregateValue),n},k.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},k.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.UninterpretedOption"},k.NamePart=(Ie.prototype.namePart="",Ie.prototype.isExtension=!1,Ie.create=function(e){return new Ie(e)},Ie.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return t.uint32(10).string(e.namePart),t.uint32(16).bool(e.isExtension),t},Ie.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ie.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.UninterpretedOption.NamePart;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.namePart=e.string();break;case 2:i.isExtension=e.bool();break;default:e.skipType(7&a,r)}}if(!Object.hasOwnProperty.call(i,"namePart"))throw d.ProtocolError("missing required 'namePart'",{instance:i});if(Object.hasOwnProperty.call(i,"isExtension"))return i;throw d.ProtocolError("missing required 'isExtension'",{instance:i})},Ie.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Ie.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":d.isString(e.namePart)?"boolean"!=typeof e.isExtension?"isExtension: boolean expected":null:"namePart: string expected"},Ie.fromObject=function(e,t){if(e instanceof g.google.protobuf.UninterpretedOption.NamePart)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.UninterpretedOption.NamePart: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.UninterpretedOption.NamePart;return null!=e.namePart&&(t.namePart=String(e.namePart)),null!=e.isExtension&&(t.isExtension=Boolean(e.isExtension)),t},Ie.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.namePart="",o.isExtension=!1),null!=e.namePart&&Object.hasOwnProperty.call(e,"namePart")&&(o.namePart=e.namePart),null!=e.isExtension&&Object.hasOwnProperty.call(e,"isExtension")&&(o.isExtension=e.isExtension),o},Ie.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Ie.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.UninterpretedOption.NamePart"},Ie),k),t.FeatureSet=(I.prototype.fieldPresence=0,I.prototype.enumType=0,I.prototype.repeatedFieldEncoding=0,I.prototype.utf8Validation=0,I.prototype.messageEncoding=0,I.prototype.jsonFormat=0,I.prototype.enforceNamingStyle=0,I.prototype.defaultSymbolVisibility=0,I.create=function(e){return new I(e)},I.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.fieldPresence&&Object.hasOwnProperty.call(e,"fieldPresence")&&t.uint32(8).int32(e.fieldPresence),null!=e.enumType&&Object.hasOwnProperty.call(e,"enumType")&&t.uint32(16).int32(e.enumType),null!=e.repeatedFieldEncoding&&Object.hasOwnProperty.call(e,"repeatedFieldEncoding")&&t.uint32(24).int32(e.repeatedFieldEncoding),null!=e.utf8Validation&&Object.hasOwnProperty.call(e,"utf8Validation")&&t.uint32(32).int32(e.utf8Validation),null!=e.messageEncoding&&Object.hasOwnProperty.call(e,"messageEncoding")&&t.uint32(40).int32(e.messageEncoding),null!=e.jsonFormat&&Object.hasOwnProperty.call(e,"jsonFormat")&&t.uint32(48).int32(e.jsonFormat),null!=e.enforceNamingStyle&&Object.hasOwnProperty.call(e,"enforceNamingStyle")&&t.uint32(56).int32(e.enforceNamingStyle),null!=e.defaultSymbolVisibility&&Object.hasOwnProperty.call(e,"defaultSymbolVisibility")&&t.uint32(64).int32(e.defaultSymbolVisibility),t},I.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},I.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FeatureSet;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.fieldPresence=e.int32();break;case 2:i.enumType=e.int32();break;case 3:i.repeatedFieldEncoding=e.int32();break;case 4:i.utf8Validation=e.int32();break;case 5:i.messageEncoding=e.int32();break;case 6:i.jsonFormat=e.int32();break;case 7:i.enforceNamingStyle=e.int32();break;case 8:i.defaultSymbolVisibility=e.int32();break;default:e.skipType(7&a,r)}}return i},I.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},I.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.fieldPresence&&Object.hasOwnProperty.call(e,"fieldPresence"))switch(e.fieldPresence){default:return"fieldPresence: enum value expected";case 0:case 1:case 2:case 3:}if(null!=e.enumType&&Object.hasOwnProperty.call(e,"enumType"))switch(e.enumType){default:return"enumType: enum value expected";case 0:case 1:case 2:}if(null!=e.repeatedFieldEncoding&&Object.hasOwnProperty.call(e,"repeatedFieldEncoding"))switch(e.repeatedFieldEncoding){default:return"repeatedFieldEncoding: enum value expected";case 0:case 1:case 2:}if(null!=e.utf8Validation&&Object.hasOwnProperty.call(e,"utf8Validation"))switch(e.utf8Validation){default:return"utf8Validation: enum value expected";case 0:case 2:case 3:}if(null!=e.messageEncoding&&Object.hasOwnProperty.call(e,"messageEncoding"))switch(e.messageEncoding){default:return"messageEncoding: enum value expected";case 0:case 1:case 2:}if(null!=e.jsonFormat&&Object.hasOwnProperty.call(e,"jsonFormat"))switch(e.jsonFormat){default:return"jsonFormat: enum value expected";case 0:case 1:case 2:}if(null!=e.enforceNamingStyle&&Object.hasOwnProperty.call(e,"enforceNamingStyle"))switch(e.enforceNamingStyle){default:return"enforceNamingStyle: enum value expected";case 0:case 1:case 2:}if(null!=e.defaultSymbolVisibility&&Object.hasOwnProperty.call(e,"defaultSymbolVisibility"))switch(e.defaultSymbolVisibility){default:return"defaultSymbolVisibility: enum value expected";case 0:case 1:case 2:case 3:case 4:}return null},I.fromObject=function(e,t){if(e instanceof g.google.protobuf.FeatureSet)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.FeatureSet: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.FeatureSet;switch(e.fieldPresence){default:"number"==typeof e.fieldPresence&&(o.fieldPresence=e.fieldPresence);break;case"FIELD_PRESENCE_UNKNOWN":case 0:o.fieldPresence=0;break;case"EXPLICIT":case 1:o.fieldPresence=1;break;case"IMPLICIT":case 2:o.fieldPresence=2;break;case"LEGACY_REQUIRED":case 3:o.fieldPresence=3}switch(e.enumType){default:"number"==typeof e.enumType&&(o.enumType=e.enumType);break;case"ENUM_TYPE_UNKNOWN":case 0:o.enumType=0;break;case"OPEN":case 1:o.enumType=1;break;case"CLOSED":case 2:o.enumType=2}switch(e.repeatedFieldEncoding){default:"number"==typeof e.repeatedFieldEncoding&&(o.repeatedFieldEncoding=e.repeatedFieldEncoding);break;case"REPEATED_FIELD_ENCODING_UNKNOWN":case 0:o.repeatedFieldEncoding=0;break;case"PACKED":case 1:o.repeatedFieldEncoding=1;break;case"EXPANDED":case 2:o.repeatedFieldEncoding=2}switch(e.utf8Validation){default:"number"==typeof e.utf8Validation&&(o.utf8Validation=e.utf8Validation);break;case"UTF8_VALIDATION_UNKNOWN":case 0:o.utf8Validation=0;break;case"VERIFY":case 2:o.utf8Validation=2;break;case"NONE":case 3:o.utf8Validation=3}switch(e.messageEncoding){default:"number"==typeof e.messageEncoding&&(o.messageEncoding=e.messageEncoding);break;case"MESSAGE_ENCODING_UNKNOWN":case 0:o.messageEncoding=0;break;case"LENGTH_PREFIXED":case 1:o.messageEncoding=1;break;case"DELIMITED":case 2:o.messageEncoding=2}switch(e.jsonFormat){default:"number"==typeof e.jsonFormat&&(o.jsonFormat=e.jsonFormat);break;case"JSON_FORMAT_UNKNOWN":case 0:o.jsonFormat=0;break;case"ALLOW":case 1:o.jsonFormat=1;break;case"LEGACY_BEST_EFFORT":case 2:o.jsonFormat=2}switch(e.enforceNamingStyle){default:"number"==typeof e.enforceNamingStyle&&(o.enforceNamingStyle=e.enforceNamingStyle);break;case"ENFORCE_NAMING_STYLE_UNKNOWN":case 0:o.enforceNamingStyle=0;break;case"STYLE2024":case 1:o.enforceNamingStyle=1;break;case"STYLE_LEGACY":case 2:o.enforceNamingStyle=2}switch(e.defaultSymbolVisibility){default:"number"==typeof e.defaultSymbolVisibility&&(o.defaultSymbolVisibility=e.defaultSymbolVisibility);break;case"DEFAULT_SYMBOL_VISIBILITY_UNKNOWN":case 0:o.defaultSymbolVisibility=0;break;case"EXPORT_ALL":case 1:o.defaultSymbolVisibility=1;break;case"EXPORT_TOP_LEVEL":case 2:o.defaultSymbolVisibility=2;break;case"LOCAL_ALL":case 3:o.defaultSymbolVisibility=3;break;case"STRICT":case 4:o.defaultSymbolVisibility=4}return o},I.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.fieldPresence=t.enums===String?"FIELD_PRESENCE_UNKNOWN":0,o.enumType=t.enums===String?"ENUM_TYPE_UNKNOWN":0,o.repeatedFieldEncoding=t.enums===String?"REPEATED_FIELD_ENCODING_UNKNOWN":0,o.utf8Validation=t.enums===String?"UTF8_VALIDATION_UNKNOWN":0,o.messageEncoding=t.enums===String?"MESSAGE_ENCODING_UNKNOWN":0,o.jsonFormat=t.enums===String?"JSON_FORMAT_UNKNOWN":0,o.enforceNamingStyle=t.enums===String?"ENFORCE_NAMING_STYLE_UNKNOWN":0,o.defaultSymbolVisibility=t.enums===String?"DEFAULT_SYMBOL_VISIBILITY_UNKNOWN":0),null!=e.fieldPresence&&Object.hasOwnProperty.call(e,"fieldPresence")&&(o.fieldPresence=t.enums!==String||void 0===g.google.protobuf.FeatureSet.FieldPresence[e.fieldPresence]?e.fieldPresence:g.google.protobuf.FeatureSet.FieldPresence[e.fieldPresence]),null!=e.enumType&&Object.hasOwnProperty.call(e,"enumType")&&(o.enumType=t.enums!==String||void 0===g.google.protobuf.FeatureSet.EnumType[e.enumType]?e.enumType:g.google.protobuf.FeatureSet.EnumType[e.enumType]),null!=e.repeatedFieldEncoding&&Object.hasOwnProperty.call(e,"repeatedFieldEncoding")&&(o.repeatedFieldEncoding=t.enums!==String||void 0===g.google.protobuf.FeatureSet.RepeatedFieldEncoding[e.repeatedFieldEncoding]?e.repeatedFieldEncoding:g.google.protobuf.FeatureSet.RepeatedFieldEncoding[e.repeatedFieldEncoding]),null!=e.utf8Validation&&Object.hasOwnProperty.call(e,"utf8Validation")&&(o.utf8Validation=t.enums!==String||void 0===g.google.protobuf.FeatureSet.Utf8Validation[e.utf8Validation]?e.utf8Validation:g.google.protobuf.FeatureSet.Utf8Validation[e.utf8Validation]),null!=e.messageEncoding&&Object.hasOwnProperty.call(e,"messageEncoding")&&(o.messageEncoding=t.enums!==String||void 0===g.google.protobuf.FeatureSet.MessageEncoding[e.messageEncoding]?e.messageEncoding:g.google.protobuf.FeatureSet.MessageEncoding[e.messageEncoding]),null!=e.jsonFormat&&Object.hasOwnProperty.call(e,"jsonFormat")&&(o.jsonFormat=t.enums!==String||void 0===g.google.protobuf.FeatureSet.JsonFormat[e.jsonFormat]?e.jsonFormat:g.google.protobuf.FeatureSet.JsonFormat[e.jsonFormat]),null!=e.enforceNamingStyle&&Object.hasOwnProperty.call(e,"enforceNamingStyle")&&(o.enforceNamingStyle=t.enums!==String||void 0===g.google.protobuf.FeatureSet.EnforceNamingStyle[e.enforceNamingStyle]?e.enforceNamingStyle:g.google.protobuf.FeatureSet.EnforceNamingStyle[e.enforceNamingStyle]),null!=e.defaultSymbolVisibility&&Object.hasOwnProperty.call(e,"defaultSymbolVisibility")&&(o.defaultSymbolVisibility=t.enums!==String||void 0===g.google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility[e.defaultSymbolVisibility]?e.defaultSymbolVisibility:g.google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility[e.defaultSymbolVisibility]),o},I.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},I.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FeatureSet"},I.FieldPresence=(a={},(e=Object.create(a))[a[0]="FIELD_PRESENCE_UNKNOWN"]=0,e[a[1]="EXPLICIT"]=1,e[a[2]="IMPLICIT"]=2,e[a[3]="LEGACY_REQUIRED"]=3,e),I.EnumType=(a={},(e=Object.create(a))[a[0]="ENUM_TYPE_UNKNOWN"]=0,e[a[1]="OPEN"]=1,e[a[2]="CLOSED"]=2,e),I.RepeatedFieldEncoding=(a={},(e=Object.create(a))[a[0]="REPEATED_FIELD_ENCODING_UNKNOWN"]=0,e[a[1]="PACKED"]=1,e[a[2]="EXPANDED"]=2,e),I.Utf8Validation=(a={},(e=Object.create(a))[a[0]="UTF8_VALIDATION_UNKNOWN"]=0,e[a[2]="VERIFY"]=2,e[a[3]="NONE"]=3,e),I.MessageEncoding=(a={},(e=Object.create(a))[a[0]="MESSAGE_ENCODING_UNKNOWN"]=0,e[a[1]="LENGTH_PREFIXED"]=1,e[a[2]="DELIMITED"]=2,e),I.JsonFormat=(a={},(e=Object.create(a))[a[0]="JSON_FORMAT_UNKNOWN"]=0,e[a[1]="ALLOW"]=1,e[a[2]="LEGACY_BEST_EFFORT"]=2,e),I.EnforceNamingStyle=(a={},(e=Object.create(a))[a[0]="ENFORCE_NAMING_STYLE_UNKNOWN"]=0,e[a[1]="STYLE2024"]=1,e[a[2]="STYLE_LEGACY"]=2,e),I.VisibilityFeature=(De.create=function(e){return new De(e)},De.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return t},De.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},De.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,t=new g.google.protobuf.FeatureSet.VisibilityFeature;e.pos<n;){var i=e.uint32();if(i===o)break;e.skipType(7&i,r)}return t},De.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},De.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null},De.fromObject=function(e,t){return e instanceof g.google.protobuf.FeatureSet.VisibilityFeature?e:new g.google.protobuf.FeatureSet.VisibilityFeature},De.toObject=function(){return{}},De.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},De.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FeatureSet.VisibilityFeature"},De.DefaultSymbolVisibility=(a={},(e=Object.create(a))[a[0]="DEFAULT_SYMBOL_VISIBILITY_UNKNOWN"]=0,e[a[1]="EXPORT_ALL"]=1,e[a[2]="EXPORT_TOP_LEVEL"]=2,e[a[3]="LOCAL_ALL"]=3,e[a[4]="STRICT"]=4,e),De),I),t.FeatureSetDefaults=(Ne.prototype.defaults=d.emptyArray,Ne.prototype.minimumEdition=0,Ne.prototype.maximumEdition=0,Ne.create=function(e){return new Ne(e)},Ne.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.defaults&&e.defaults.length)for(var r=0;r<e.defaults.length;++r)g.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.encode(e.defaults[r],t.uint32(10).fork(),o+1).ldelim();return null!=e.minimumEdition&&Object.hasOwnProperty.call(e,"minimumEdition")&&t.uint32(32).int32(e.minimumEdition),null!=e.maximumEdition&&Object.hasOwnProperty.call(e,"maximumEdition")&&t.uint32(40).int32(e.maximumEdition),t},Ne.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ne.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FeatureSetDefaults;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.defaults&&i.defaults.length||(i.defaults=[]),i.defaults.push(g.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.decode(e,e.uint32(),void 0,r+1));break;case 4:i.minimumEdition=e.int32();break;case 5:i.maximumEdition=e.int32();break;default:e.skipType(7&a,r)}}return i},Ne.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Ne.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.defaults&&Object.hasOwnProperty.call(e,"defaults")){if(!Array.isArray(e.defaults))return"defaults: array expected";for(var o=0;o<e.defaults.length;++o){var r=g.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify(e.defaults[o],t+1);if(r)return"defaults."+r}}if(null!=e.minimumEdition&&Object.hasOwnProperty.call(e,"minimumEdition"))switch(e.minimumEdition){default:return"minimumEdition: enum value expected";case 0:case 900:case 998:case 999:case 1e3:case 1001:case 1:case 2:case 99997:case 99998:case 99999:case 2147483647:}if(null!=e.maximumEdition&&Object.hasOwnProperty.call(e,"maximumEdition"))switch(e.maximumEdition){default:return"maximumEdition: enum value expected";case 0:case 900:case 998:case 999:case 1e3:case 1001:case 1:case 2:case 99997:case 99998:case 99999:case 2147483647:}return null},Ne.fromObject=function(e,t){if(e instanceof g.google.protobuf.FeatureSetDefaults)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.FeatureSetDefaults: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.FeatureSetDefaults;if(e.defaults){if(!Array.isArray(e.defaults))throw TypeError(".google.protobuf.FeatureSetDefaults.defaults: array expected");o.defaults=[];for(var r=0;r<e.defaults.length;++r){if(!d.isObject(e.defaults[r]))throw TypeError(".google.protobuf.FeatureSetDefaults.defaults: object expected");o.defaults[r]=g.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fromObject(e.defaults[r],t+1)}}switch(e.minimumEdition){default:"number"==typeof e.minimumEdition&&(o.minimumEdition=e.minimumEdition);break;case"EDITION_UNKNOWN":case 0:o.minimumEdition=0;break;case"EDITION_LEGACY":case 900:o.minimumEdition=900;break;case"EDITION_PROTO2":case 998:o.minimumEdition=998;break;case"EDITION_PROTO3":case 999:o.minimumEdition=999;break;case"EDITION_2023":case 1e3:o.minimumEdition=1e3;break;case"EDITION_2024":case 1001:o.minimumEdition=1001;break;case"EDITION_1_TEST_ONLY":case 1:o.minimumEdition=1;break;case"EDITION_2_TEST_ONLY":case 2:o.minimumEdition=2;break;case"EDITION_99997_TEST_ONLY":case 99997:o.minimumEdition=99997;break;case"EDITION_99998_TEST_ONLY":case 99998:o.minimumEdition=99998;break;case"EDITION_99999_TEST_ONLY":case 99999:o.minimumEdition=99999;break;case"EDITION_MAX":case 2147483647:o.minimumEdition=2147483647}switch(e.maximumEdition){default:"number"==typeof e.maximumEdition&&(o.maximumEdition=e.maximumEdition);break;case"EDITION_UNKNOWN":case 0:o.maximumEdition=0;break;case"EDITION_LEGACY":case 900:o.maximumEdition=900;break;case"EDITION_PROTO2":case 998:o.maximumEdition=998;break;case"EDITION_PROTO3":case 999:o.maximumEdition=999;break;case"EDITION_2023":case 1e3:o.maximumEdition=1e3;break;case"EDITION_2024":case 1001:o.maximumEdition=1001;break;case"EDITION_1_TEST_ONLY":case 1:o.maximumEdition=1;break;case"EDITION_2_TEST_ONLY":case 2:o.maximumEdition=2;break;case"EDITION_99997_TEST_ONLY":case 99997:o.maximumEdition=99997;break;case"EDITION_99998_TEST_ONLY":case 99998:o.maximumEdition=99998;break;case"EDITION_99999_TEST_ONLY":case 99999:o.maximumEdition=99999;break;case"EDITION_MAX":case 2147483647:o.maximumEdition=2147483647}return o},Ne.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.defaults=[]),t.defaults&&(r.minimumEdition=t.enums===String?"EDITION_UNKNOWN":0,r.maximumEdition=t.enums===String?"EDITION_UNKNOWN":0),e.defaults&&e.defaults.length){r.defaults=[];for(var n=0;n<e.defaults.length;++n)r.defaults[n]=g.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.toObject(e.defaults[n],t,o+1)}return null!=e.minimumEdition&&Object.hasOwnProperty.call(e,"minimumEdition")&&(r.minimumEdition=t.enums!==String||void 0===g.google.protobuf.Edition[e.minimumEdition]?e.minimumEdition:g.google.protobuf.Edition[e.minimumEdition]),null!=e.maximumEdition&&Object.hasOwnProperty.call(e,"maximumEdition")&&(r.maximumEdition=t.enums!==String||void 0===g.google.protobuf.Edition[e.maximumEdition]?e.maximumEdition:g.google.protobuf.Edition[e.maximumEdition]),r},Ne.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Ne.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FeatureSetDefaults"},Ne.FeatureSetEditionDefault=(Le.prototype.edition=0,Le.prototype.overridableFeatures=null,Le.prototype.fixedFeatures=null,Le.create=function(e){return new Le(e)},Le.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.edition&&Object.hasOwnProperty.call(e,"edition")&&t.uint32(24).int32(e.edition),null!=e.overridableFeatures&&Object.hasOwnProperty.call(e,"overridableFeatures")&&g.google.protobuf.FeatureSet.encode(e.overridableFeatures,t.uint32(34).fork(),o+1).ldelim(),null!=e.fixedFeatures&&Object.hasOwnProperty.call(e,"fixedFeatures")&&g.google.protobuf.FeatureSet.encode(e.fixedFeatures,t.uint32(42).fork(),o+1).ldelim(),t},Le.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Le.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 3:i.edition=e.int32();break;case 4:i.overridableFeatures=g.google.protobuf.FeatureSet.decode(e,e.uint32(),void 0,r+1);break;case 5:i.fixedFeatures=g.google.protobuf.FeatureSet.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},Le.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Le.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.edition&&Object.hasOwnProperty.call(e,"edition"))switch(e.edition){default:return"edition: enum value expected";case 0:case 900:case 998:case 999:case 1e3:case 1001:case 1:case 2:case 99997:case 99998:case 99999:case 2147483647:}var o;if(null!=e.overridableFeatures&&Object.hasOwnProperty.call(e,"overridableFeatures")&&(o=g.google.protobuf.FeatureSet.verify(e.overridableFeatures,t+1)))return"overridableFeatures."+o;if(null!=e.fixedFeatures&&Object.hasOwnProperty.call(e,"fixedFeatures")&&(o=g.google.protobuf.FeatureSet.verify(e.fixedFeatures,t+1)))return"fixedFeatures."+o;return null},Le.fromObject=function(e,t){if(e instanceof g.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;switch(e.edition){default:"number"==typeof e.edition&&(o.edition=e.edition);break;case"EDITION_UNKNOWN":case 0:o.edition=0;break;case"EDITION_LEGACY":case 900:o.edition=900;break;case"EDITION_PROTO2":case 998:o.edition=998;break;case"EDITION_PROTO3":case 999:o.edition=999;break;case"EDITION_2023":case 1e3:o.edition=1e3;break;case"EDITION_2024":case 1001:o.edition=1001;break;case"EDITION_1_TEST_ONLY":case 1:o.edition=1;break;case"EDITION_2_TEST_ONLY":case 2:o.edition=2;break;case"EDITION_99997_TEST_ONLY":case 99997:o.edition=99997;break;case"EDITION_99998_TEST_ONLY":case 99998:o.edition=99998;break;case"EDITION_99999_TEST_ONLY":case 99999:o.edition=99999;break;case"EDITION_MAX":case 2147483647:o.edition=2147483647}if(null!=e.overridableFeatures){if(!d.isObject(e.overridableFeatures))throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.overridableFeatures: object expected");o.overridableFeatures=g.google.protobuf.FeatureSet.fromObject(e.overridableFeatures,t+1)}if(null!=e.fixedFeatures){if(!d.isObject(e.fixedFeatures))throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fixedFeatures: object expected");o.fixedFeatures=g.google.protobuf.FeatureSet.fromObject(e.fixedFeatures,t+1)}return o},Le.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.edition=t.enums===String?"EDITION_UNKNOWN":0,r.overridableFeatures=null,r.fixedFeatures=null),null!=e.edition&&Object.hasOwnProperty.call(e,"edition")&&(r.edition=t.enums!==String||void 0===g.google.protobuf.Edition[e.edition]?e.edition:g.google.protobuf.Edition[e.edition]),null!=e.overridableFeatures&&Object.hasOwnProperty.call(e,"overridableFeatures")&&(r.overridableFeatures=g.google.protobuf.FeatureSet.toObject(e.overridableFeatures,t,o+1)),null!=e.fixedFeatures&&Object.hasOwnProperty.call(e,"fixedFeatures")&&(r.fixedFeatures=g.google.protobuf.FeatureSet.toObject(e.fixedFeatures,t,o+1)),r},Le.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Le.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault"},Le),Ne),t.SourceCodeInfo=(_e.prototype.location=d.emptyArray,_e.create=function(e){return new _e(e)},_e.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.location&&e.location.length)for(var r=0;r<e.location.length;++r)g.google.protobuf.SourceCodeInfo.Location.encode(e.location[r],t.uint32(10).fork(),o+1).ldelim();return t},_e.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},_e.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.SourceCodeInfo;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?(i.location&&i.location.length||(i.location=[]),i.location.push(g.google.protobuf.SourceCodeInfo.Location.decode(e,e.uint32(),void 0,r+1))):e.skipType(7&a,r)}return i},_e.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},_e.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.location&&Object.hasOwnProperty.call(e,"location")){if(!Array.isArray(e.location))return"location: array expected";for(var o=0;o<e.location.length;++o){var r=g.google.protobuf.SourceCodeInfo.Location.verify(e.location[o],t+1);if(r)return"location."+r}}return null},_e.fromObject=function(e,t){if(e instanceof g.google.protobuf.SourceCodeInfo)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.SourceCodeInfo: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.SourceCodeInfo;if(e.location){if(!Array.isArray(e.location))throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected");o.location=[];for(var r=0;r<e.location.length;++r){if(!d.isObject(e.location[r]))throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected");o.location[r]=g.google.protobuf.SourceCodeInfo.Location.fromObject(e.location[r],t+1)}}return o},_e.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.location=[]),e.location&&e.location.length){r.location=[];for(var n=0;n<e.location.length;++n)r.location[n]=g.google.protobuf.SourceCodeInfo.Location.toObject(e.location[n],t,o+1)}return r},_e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},_e.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.SourceCodeInfo"},_e.Location=(Ae.prototype.path=d.emptyArray,Ae.prototype.span=d.emptyArray,Ae.prototype.leadingComments="",Ae.prototype.trailingComments="",Ae.prototype.leadingDetachedComments=d.emptyArray,Ae.create=function(e){return new Ae(e)},Ae.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.path&&e.path.length){t.uint32(10).fork();for(var r=0;r<e.path.length;++r)t.int32(e.path[r]);t.ldelim()}if(null!=e.span&&e.span.length){t.uint32(18).fork();for(r=0;r<e.span.length;++r)t.int32(e.span[r]);t.ldelim()}if(null!=e.leadingComments&&Object.hasOwnProperty.call(e,"leadingComments")&&t.uint32(26).string(e.leadingComments),null!=e.trailingComments&&Object.hasOwnProperty.call(e,"trailingComments")&&t.uint32(34).string(e.trailingComments),null!=e.leadingDetachedComments&&e.leadingDetachedComments.length)for(r=0;r<e.leadingDetachedComments.length;++r)t.uint32(50).string(e.leadingDetachedComments[r]);return t},Ae.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ae.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.SourceCodeInfo.Location;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:if(i.path&&i.path.length||(i.path=[]),2==(7&a))for(var l=e.uint32()+e.pos;e.pos<l;)i.path.push(e.int32());else i.path.push(e.int32());break;case 2:if(i.span&&i.span.length||(i.span=[]),2==(7&a))for(l=e.uint32()+e.pos;e.pos<l;)i.span.push(e.int32());else i.span.push(e.int32());break;case 3:i.leadingComments=e.string();break;case 4:i.trailingComments=e.string();break;case 6:i.leadingDetachedComments&&i.leadingDetachedComments.length||(i.leadingDetachedComments=[]),i.leadingDetachedComments.push(e.string());break;default:e.skipType(7&a,r)}}return i},Ae.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Ae.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.path&&Object.hasOwnProperty.call(e,"path")){if(!Array.isArray(e.path))return"path: array expected";for(var o=0;o<e.path.length;++o)if(!d.isInteger(e.path[o]))return"path: integer[] expected"}if(null!=e.span&&Object.hasOwnProperty.call(e,"span")){if(!Array.isArray(e.span))return"span: array expected";for(o=0;o<e.span.length;++o)if(!d.isInteger(e.span[o]))return"span: integer[] expected"}if(null!=e.leadingComments&&Object.hasOwnProperty.call(e,"leadingComments")&&!d.isString(e.leadingComments))return"leadingComments: string expected";if(null!=e.trailingComments&&Object.hasOwnProperty.call(e,"trailingComments")&&!d.isString(e.trailingComments))return"trailingComments: string expected";if(null!=e.leadingDetachedComments&&Object.hasOwnProperty.call(e,"leadingDetachedComments")){if(!Array.isArray(e.leadingDetachedComments))return"leadingDetachedComments: array expected";for(o=0;o<e.leadingDetachedComments.length;++o)if(!d.isString(e.leadingDetachedComments[o]))return"leadingDetachedComments: string[] expected"}return null},Ae.fromObject=function(e,t){if(e instanceof g.google.protobuf.SourceCodeInfo.Location)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.SourceCodeInfo.Location: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.SourceCodeInfo.Location;if(e.path){if(!Array.isArray(e.path))throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected");o.path=[];for(var r=0;r<e.path.length;++r)o.path[r]=0|e.path[r]}if(e.span){if(!Array.isArray(e.span))throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected");o.span=[];for(r=0;r<e.span.length;++r)o.span[r]=0|e.span[r]}if(null!=e.leadingComments&&(o.leadingComments=String(e.leadingComments)),null!=e.trailingComments&&(o.trailingComments=String(e.trailingComments)),e.leadingDetachedComments){if(!Array.isArray(e.leadingDetachedComments))throw TypeError(".google.protobuf.SourceCodeInfo.Location.leadingDetachedComments: array expected");o.leadingDetachedComments=[];for(r=0;r<e.leadingDetachedComments.length;++r)o.leadingDetachedComments[r]=String(e.leadingDetachedComments[r])}return o},Ae.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.path=[],r.span=[],r.leadingDetachedComments=[]),t.defaults&&(r.leadingComments="",r.trailingComments=""),e.path&&e.path.length){r.path=[];for(var n=0;n<e.path.length;++n)r.path[n]=e.path[n]}if(e.span&&e.span.length){r.span=[];for(n=0;n<e.span.length;++n)r.span[n]=e.span[n]}if(null!=e.leadingComments&&Object.hasOwnProperty.call(e,"leadingComments")&&(r.leadingComments=e.leadingComments),null!=e.trailingComments&&Object.hasOwnProperty.call(e,"trailingComments")&&(r.trailingComments=e.trailingComments),e.leadingDetachedComments&&e.leadingDetachedComments.length){r.leadingDetachedComments=[];for(n=0;n<e.leadingDetachedComments.length;++n)r.leadingDetachedComments[n]=e.leadingDetachedComments[n]}return r},Ae.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Ae.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.SourceCodeInfo.Location"},Ae),_e),t.GeneratedCodeInfo=(Ce.prototype.annotation=d.emptyArray,Ce.create=function(e){return new Ce(e)},Ce.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.annotation&&e.annotation.length)for(var r=0;r<e.annotation.length;++r)g.google.protobuf.GeneratedCodeInfo.Annotation.encode(e.annotation[r],t.uint32(10).fork(),o+1).ldelim();return t},Ce.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ce.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.GeneratedCodeInfo;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?(i.annotation&&i.annotation.length||(i.annotation=[]),i.annotation.push(g.google.protobuf.GeneratedCodeInfo.Annotation.decode(e,e.uint32(),void 0,r+1))):e.skipType(7&a,r)}return i},Ce.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Ce.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.annotation&&Object.hasOwnProperty.call(e,"annotation")){if(!Array.isArray(e.annotation))return"annotation: array expected";for(var o=0;o<e.annotation.length;++o){var r=g.google.protobuf.GeneratedCodeInfo.Annotation.verify(e.annotation[o],t+1);if(r)return"annotation."+r}}return null},Ce.fromObject=function(e,t){if(e instanceof g.google.protobuf.GeneratedCodeInfo)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.GeneratedCodeInfo: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.GeneratedCodeInfo;if(e.annotation){if(!Array.isArray(e.annotation))throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected");o.annotation=[];for(var r=0;r<e.annotation.length;++r){if(!d.isObject(e.annotation[r]))throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected");o.annotation[r]=g.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(e.annotation[r],t+1)}}return o},Ce.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.annotation=[]),e.annotation&&e.annotation.length){r.annotation=[];for(var n=0;n<e.annotation.length;++n)r.annotation[n]=g.google.protobuf.GeneratedCodeInfo.Annotation.toObject(e.annotation[n],t,o+1)}return r},Ce.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Ce.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.GeneratedCodeInfo"},Ce.Annotation=(D.prototype.path=d.emptyArray,D.prototype.sourceFile="",D.prototype.begin=0,D.prototype.end=0,D.prototype.semantic=0,D.create=function(e){return new D(e)},D.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.path&&e.path.length){t.uint32(10).fork();for(var r=0;r<e.path.length;++r)t.int32(e.path[r]);t.ldelim()}return null!=e.sourceFile&&Object.hasOwnProperty.call(e,"sourceFile")&&t.uint32(18).string(e.sourceFile),null!=e.begin&&Object.hasOwnProperty.call(e,"begin")&&t.uint32(24).int32(e.begin),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(32).int32(e.end),null!=e.semantic&&Object.hasOwnProperty.call(e,"semantic")&&t.uint32(40).int32(e.semantic),t},D.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},D.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.GeneratedCodeInfo.Annotation;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:if(i.path&&i.path.length||(i.path=[]),2==(7&a))for(var l=e.uint32()+e.pos;e.pos<l;)i.path.push(e.int32());else i.path.push(e.int32());break;case 2:i.sourceFile=e.string();break;case 3:i.begin=e.int32();break;case 4:i.end=e.int32();break;case 5:i.semantic=e.int32();break;default:e.skipType(7&a,r)}}return i},D.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},D.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.path&&Object.hasOwnProperty.call(e,"path")){if(!Array.isArray(e.path))return"path: array expected";for(var o=0;o<e.path.length;++o)if(!d.isInteger(e.path[o]))return"path: integer[] expected"}if(null!=e.sourceFile&&Object.hasOwnProperty.call(e,"sourceFile")&&!d.isString(e.sourceFile))return"sourceFile: string expected";if(null!=e.begin&&Object.hasOwnProperty.call(e,"begin")&&!d.isInteger(e.begin))return"begin: integer expected";if(null!=e.end&&Object.hasOwnProperty.call(e,"end")&&!d.isInteger(e.end))return"end: integer expected";if(null!=e.semantic&&Object.hasOwnProperty.call(e,"semantic"))switch(e.semantic){default:return"semantic: enum value expected";case 0:case 1:case 2:}return null},D.fromObject=function(e,t){if(e instanceof g.google.protobuf.GeneratedCodeInfo.Annotation)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.GeneratedCodeInfo.Annotation;if(e.path){if(!Array.isArray(e.path))throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected");o.path=[];for(var r=0;r<e.path.length;++r)o.path[r]=0|e.path[r]}switch(null!=e.sourceFile&&(o.sourceFile=String(e.sourceFile)),null!=e.begin&&(o.begin=0|e.begin),null!=e.end&&(o.end=0|e.end),e.semantic){default:"number"==typeof e.semantic&&(o.semantic=e.semantic);break;case"NONE":case 0:o.semantic=0;break;case"SET":case 1:o.semantic=1;break;case"ALIAS":case 2:o.semantic=2}return o},D.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.path=[]),t.defaults&&(r.sourceFile="",r.begin=0,r.end=0,r.semantic=t.enums===String?"NONE":0),e.path&&e.path.length){r.path=[];for(var n=0;n<e.path.length;++n)r.path[n]=e.path[n]}return null!=e.sourceFile&&Object.hasOwnProperty.call(e,"sourceFile")&&(r.sourceFile=e.sourceFile),null!=e.begin&&Object.hasOwnProperty.call(e,"begin")&&(r.begin=e.begin),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&(r.end=e.end),null!=e.semantic&&Object.hasOwnProperty.call(e,"semantic")&&(r.semantic=t.enums!==String||void 0===g.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[e.semantic]?e.semantic:g.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[e.semantic]),r},D.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},D.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.GeneratedCodeInfo.Annotation"},D.Semantic=(a={},(e=Object.create(a))[a[0]="NONE"]=0,e[a[1]="SET"]=1,e[a[2]="ALIAS"]=2,e),D),Ce),t.SymbolVisibility=(a={},(e=Object.create(a))[a[0]="VISIBILITY_UNSET"]=0,e[a[1]="VISIBILITY_LOCAL"]=1,e[a[2]="VISIBILITY_EXPORT"]=2,e),t.Duration=(Fe.prototype.seconds=d.Long?d.Long.fromBits(0,0,!1):0,Fe.prototype.nanos=0,Fe.create=function(e){return new Fe(e)},Fe.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&t.uint32(8).int64(e.seconds),null!=e.nanos&&Object.hasOwnProperty.call(e,"nanos")&&t.uint32(16).int32(e.nanos),t},Fe.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Fe.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.Duration;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.seconds=e.int64();break;case 2:i.nanos=e.int32();break;default:e.skipType(7&a,r)}}return i},Fe.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Fe.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&!(d.isInteger(e.seconds)||e.seconds&&d.isInteger(e.seconds.low)&&d.isInteger(e.seconds.high))?"seconds: integer|Long expected":null!=e.nanos&&Object.hasOwnProperty.call(e,"nanos")&&!d.isInteger(e.nanos)?"nanos: integer expected":null},Fe.fromObject=function(e,t){if(e instanceof g.google.protobuf.Duration)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.Duration: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.Duration;return null!=e.seconds&&(d.Long?t.seconds=d.Long.fromValue(e.seconds,!1):"string"==typeof e.seconds?t.seconds=parseInt(e.seconds,10):"number"==typeof e.seconds?t.seconds=e.seconds:"object"==typeof e.seconds&&(t.seconds=new d.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber())),null!=e.nanos&&(t.nanos=0|e.nanos),t},Fe.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,o={};return t.defaults&&(d.Long?(r=new d.Long(0,0,!1),o.seconds=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):o.seconds=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,o.nanos=0),null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&("undefined"!=typeof BigInt&&t.longs===BigInt?o.seconds="number"==typeof e.seconds?BigInt(e.seconds):d.Long.fromBits(e.seconds.low>>>0,e.seconds.high>>>0,!1).toBigInt():"number"==typeof e.seconds?o.seconds=t.longs===String?String(e.seconds):e.seconds:o.seconds=t.longs===String?d.Long.prototype.toString.call(e.seconds):t.longs===Number?new d.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber():e.seconds),null!=e.nanos&&Object.hasOwnProperty.call(e,"nanos")&&(o.nanos=e.nanos),o},Fe.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Fe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.Duration"},Fe),t.DoubleValue=(Be.prototype.value=0,Be.create=function(e){return new Be(e)},Be.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(9).double(e.value),t},Be.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Be.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.DoubleValue;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.value=e.double():e.skipType(7&a,r)}return i},Be.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Be.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.value&&Object.hasOwnProperty.call(e,"value")&&"number"!=typeof e.value?"value: number expected":null},Be.fromObject=function(e,t){if(e instanceof g.google.protobuf.DoubleValue)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.DoubleValue: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.DoubleValue;return null!=e.value&&(t.value=Number(e.value)),t},Be.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.value=0),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&(o.value=t.json&&!isFinite(e.value)?String(e.value):e.value),o},Be.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Be.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.DoubleValue"},Be),t.FloatValue=(qe.prototype.value=0,qe.create=function(e){return new qe(e)},qe.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),t},qe.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},qe.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FloatValue;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.value=e.float():e.skipType(7&a,r)}return i},qe.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},qe.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.value&&Object.hasOwnProperty.call(e,"value")&&"number"!=typeof e.value?"value: number expected":null},qe.fromObject=function(e,t){if(e instanceof g.google.protobuf.FloatValue)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.FloatValue: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.FloatValue;return null!=e.value&&(t.value=Number(e.value)),t},qe.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.value=0),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&(o.value=t.json&&!isFinite(e.value)?String(e.value):e.value),o},qe.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},qe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FloatValue"},qe),t.Int64Value=(Ve.prototype.value=d.Long?d.Long.fromBits(0,0,!1):0,Ve.create=function(e){return new Ve(e)},Ve.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).int64(e.value),t},Ve.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ve.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.Int64Value;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.value=e.int64():e.skipType(7&a,r)}return i},Ve.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Ve.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.value&&Object.hasOwnProperty.call(e,"value")&&!(d.isInteger(e.value)||e.value&&d.isInteger(e.value.low)&&d.isInteger(e.value.high))?"value: integer|Long expected":null},Ve.fromObject=function(e,t){if(e instanceof g.google.protobuf.Int64Value)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.Int64Value: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.Int64Value;return null!=e.value&&(d.Long?t.value=d.Long.fromValue(e.value,!1):"string"==typeof e.value?t.value=parseInt(e.value,10):"number"==typeof e.value?t.value=e.value:"object"==typeof e.value&&(t.value=new d.LongBits(e.value.low>>>0,e.value.high>>>0).toNumber())),t},Ve.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,o={};return t.defaults&&(d.Long?(r=new d.Long(0,0,!1),o.value=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):o.value=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&("undefined"!=typeof BigInt&&t.longs===BigInt?o.value="number"==typeof e.value?BigInt(e.value):d.Long.fromBits(e.value.low>>>0,e.value.high>>>0,!1).toBigInt():"number"==typeof e.value?o.value=t.longs===String?String(e.value):e.value:o.value=t.longs===String?d.Long.prototype.toString.call(e.value):t.longs===Number?new d.LongBits(e.value.low>>>0,e.value.high>>>0).toNumber():e.value),o},Ve.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Ve.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.Int64Value"},Ve),t.UInt64Value=(Ue.prototype.value=d.Long?d.Long.fromBits(0,0,!0):0,Ue.create=function(e){return new Ue(e)},Ue.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).uint64(e.value),t},Ue.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ue.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.UInt64Value;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.value=e.uint64():e.skipType(7&a,r)}return i},Ue.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Ue.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.value&&Object.hasOwnProperty.call(e,"value")&&!(d.isInteger(e.value)||e.value&&d.isInteger(e.value.low)&&d.isInteger(e.value.high))?"value: integer|Long expected":null},Ue.fromObject=function(e,t){if(e instanceof g.google.protobuf.UInt64Value)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.UInt64Value: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.UInt64Value;return null!=e.value&&(d.Long?t.value=d.Long.fromValue(e.value,!0):"string"==typeof e.value?t.value=parseInt(e.value,10):"number"==typeof e.value?t.value=e.value:"object"==typeof e.value&&(t.value=new d.LongBits(e.value.low>>>0,e.value.high>>>0).toNumber(!0))),t},Ue.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,o={};return t.defaults&&(d.Long?(r=new d.Long(0,0,!0),o.value=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):o.value=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&("undefined"!=typeof BigInt&&t.longs===BigInt?o.value="number"==typeof e.value?BigInt(e.value):d.Long.fromBits(e.value.low>>>0,e.value.high>>>0,!0).toBigInt():"number"==typeof e.value?o.value=t.longs===String?String(e.value):e.value:o.value=t.longs===String?d.Long.prototype.toString.call(e.value):t.longs===Number?new d.LongBits(e.value.low>>>0,e.value.high>>>0).toNumber(!0):e.value),o},Ue.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Ue.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.UInt64Value"},Ue),t.Int32Value=(Me.prototype.value=0,Me.create=function(e){return new Me(e)},Me.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).int32(e.value),t},Me.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Me.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.Int32Value;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.value=e.int32():e.skipType(7&a,r)}return i},Me.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Me.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.value&&Object.hasOwnProperty.call(e,"value")&&!d.isInteger(e.value)?"value: integer expected":null},Me.fromObject=function(e,t){if(e instanceof g.google.protobuf.Int32Value)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.Int32Value: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.Int32Value;return null!=e.value&&(t.value=0|e.value),t},Me.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.value=0),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&(o.value=e.value),o},Me.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Me.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.Int32Value"},Me),t.UInt32Value=(ze.prototype.value=0,ze.create=function(e){return new ze(e)},ze.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).uint32(e.value),t},ze.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ze.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.UInt32Value;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.value=e.uint32():e.skipType(7&a,r)}return i},ze.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ze.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.value&&Object.hasOwnProperty.call(e,"value")&&!d.isInteger(e.value)?"value: integer expected":null},ze.fromObject=function(e,t){if(e instanceof g.google.protobuf.UInt32Value)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.UInt32Value: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.UInt32Value;return null!=e.value&&(t.value=e.value>>>0),t},ze.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.value=0),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&(o.value=e.value),o},ze.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ze.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.UInt32Value"},ze),t.BoolValue=(Ge.prototype.value=!1,Ge.create=function(e){return new Ge(e)},Ge.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).bool(e.value),t},Ge.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ge.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.BoolValue;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.value=e.bool():e.skipType(7&a,r)}return i},Ge.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Ge.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.value&&Object.hasOwnProperty.call(e,"value")&&"boolean"!=typeof e.value?"value: boolean expected":null},Ge.fromObject=function(e,t){if(e instanceof g.google.protobuf.BoolValue)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.BoolValue: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.BoolValue;return null!=e.value&&(t.value=Boolean(e.value)),t},Ge.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.value=!1),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&(o.value=e.value),o},Ge.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Ge.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.BoolValue"},Ge),t.StringValue=(Je.prototype.value="",Je.create=function(e){return new Je(e)},Je.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(10).string(e.value),t},Je.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Je.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.StringValue;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.value=e.string():e.skipType(7&a,r)}return i},Je.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Je.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.value&&Object.hasOwnProperty.call(e,"value")&&!d.isString(e.value)?"value: string expected":null},Je.fromObject=function(e,t){if(e instanceof g.google.protobuf.StringValue)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.StringValue: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.StringValue;return null!=e.value&&(t.value=String(e.value)),t},Je.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.value=""),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&(o.value=e.value),o},Je.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Je.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.StringValue"},Je),t.BytesValue=(Ye.prototype.value=d.newBuffer([]),Ye.create=function(e){return new Ye(e)},Ye.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(10).bytes(e.value),t},Ye.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ye.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.BytesValue;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.value=e.bytes():e.skipType(7&a,r)}return i},Ye.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Ye.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.value&&Object.hasOwnProperty.call(e,"value")&&!(e.value&&"number"==typeof e.value.length||d.isString(e.value))?"value: buffer expected":null},Ye.fromObject=function(e,t){if(e instanceof g.google.protobuf.BytesValue)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.BytesValue: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.BytesValue;return null!=e.value&&("string"==typeof e.value?d.base64.decode(e.value,t.value=d.newBuffer(d.base64.length(e.value)),0):0<=e.value.length&&(t.value=e.value)),t},Ye.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(t.bytes===String?o.value="":(o.value=[],t.bytes!==Array&&(o.value=d.newBuffer(o.value)))),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&(o.value=t.bytes===String?d.base64.encode(e.value,0,e.value.length):t.bytes===Array?Array.prototype.slice.call(e.value):e.value),o},Ye.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Ye.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.BytesValue"},Ye),t.Timestamp=(We.prototype.seconds=d.Long?d.Long.fromBits(0,0,!1):0,We.prototype.nanos=0,We.create=function(e){return new We(e)},We.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&t.uint32(8).int64(e.seconds),null!=e.nanos&&Object.hasOwnProperty.call(e,"nanos")&&t.uint32(16).int32(e.nanos),t},We.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},We.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.Timestamp;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.seconds=e.int64();break;case 2:i.nanos=e.int32();break;default:e.skipType(7&a,r)}}return i},We.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},We.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&!(d.isInteger(e.seconds)||e.seconds&&d.isInteger(e.seconds.low)&&d.isInteger(e.seconds.high))?"seconds: integer|Long expected":null!=e.nanos&&Object.hasOwnProperty.call(e,"nanos")&&!d.isInteger(e.nanos)?"nanos: integer expected":null},We.fromObject=function(e,t){if(e instanceof g.google.protobuf.Timestamp)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.Timestamp: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.Timestamp;return null!=e.seconds&&(d.Long?t.seconds=d.Long.fromValue(e.seconds,!1):"string"==typeof e.seconds?t.seconds=parseInt(e.seconds,10):"number"==typeof e.seconds?t.seconds=e.seconds:"object"==typeof e.seconds&&(t.seconds=new d.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber())),null!=e.nanos&&(t.nanos=0|e.nanos),t},We.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,o={};return t.defaults&&(d.Long?(r=new d.Long(0,0,!1),o.seconds=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):o.seconds=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,o.nanos=0),null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&("undefined"!=typeof BigInt&&t.longs===BigInt?o.seconds="number"==typeof e.seconds?BigInt(e.seconds):d.Long.fromBits(e.seconds.low>>>0,e.seconds.high>>>0,!1).toBigInt():"number"==typeof e.seconds?o.seconds=t.longs===String?String(e.seconds):e.seconds:o.seconds=t.longs===String?d.Long.prototype.toString.call(e.seconds):t.longs===Number?new d.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber():e.seconds),null!=e.nanos&&Object.hasOwnProperty.call(e,"nanos")&&(o.nanos=e.nanos),o},We.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},We.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.Timestamp"},We),t.Any=(He.prototype.type_url="",He.prototype.value=d.newBuffer([]),He.create=function(e){return new He(e)},He.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.type_url&&Object.hasOwnProperty.call(e,"type_url")&&t.uint32(10).string(e.type_url),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(18).bytes(e.value),t},He.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},He.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.Any;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.type_url=e.string();break;case 2:i.value=e.bytes();break;default:e.skipType(7&a,r)}}return i},He.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},He.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.type_url&&Object.hasOwnProperty.call(e,"type_url")&&!d.isString(e.type_url)?"type_url: string expected":null!=e.value&&Object.hasOwnProperty.call(e,"value")&&!(e.value&&"number"==typeof e.value.length||d.isString(e.value))?"value: buffer expected":null},He.fromObject=function(e,t){if(e instanceof g.google.protobuf.Any)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.Any: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.Any;return null!=e.type_url&&(t.type_url=String(e.type_url)),null!=e.value&&("string"==typeof e.value?d.base64.decode(e.value,t.value=d.newBuffer(d.base64.length(e.value)),0):0<=e.value.length&&(t.value=e.value)),t},He.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.type_url="",t.bytes===String?o.value="":(o.value=[],t.bytes!==Array&&(o.value=d.newBuffer(o.value)))),null!=e.type_url&&Object.hasOwnProperty.call(e,"type_url")&&(o.type_url=e.type_url),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&(o.value=t.bytes===String?d.base64.encode(e.value,0,e.value.length):t.bytes===Array?Array.prototype.slice.call(e.value):e.value),o},He.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},He.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.Any"},He),t),C.api=((i={}).Http=(Ke.prototype.rules=d.emptyArray,Ke.prototype.fullyDecodeReservedExpansion=!1,Ke.create=function(e){return new Ke(e)},Ke.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.rules&&e.rules.length)for(var r=0;r<e.rules.length;++r)g.google.api.HttpRule.encode(e.rules[r],t.uint32(10).fork(),o+1).ldelim();return null!=e.fullyDecodeReservedExpansion&&Object.hasOwnProperty.call(e,"fullyDecodeReservedExpansion")&&t.uint32(16).bool(e.fullyDecodeReservedExpansion),t},Ke.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ke.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.Http;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.rules&&i.rules.length||(i.rules=[]),i.rules.push(g.google.api.HttpRule.decode(e,e.uint32(),void 0,r+1));break;case 2:i.fullyDecodeReservedExpansion=e.bool();break;default:e.skipType(7&a,r)}}return i},Ke.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Ke.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.rules&&Object.hasOwnProperty.call(e,"rules")){if(!Array.isArray(e.rules))return"rules: array expected";for(var o=0;o<e.rules.length;++o){var r=g.google.api.HttpRule.verify(e.rules[o],t+1);if(r)return"rules."+r}}return null!=e.fullyDecodeReservedExpansion&&Object.hasOwnProperty.call(e,"fullyDecodeReservedExpansion")&&"boolean"!=typeof e.fullyDecodeReservedExpansion?"fullyDecodeReservedExpansion: boolean expected":null},Ke.fromObject=function(e,t){if(e instanceof g.google.api.Http)return e;if(!d.isObject(e))throw TypeError(".google.api.Http: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.Http;if(e.rules){if(!Array.isArray(e.rules))throw TypeError(".google.api.Http.rules: array expected");o.rules=[];for(var r=0;r<e.rules.length;++r){if(!d.isObject(e.rules[r]))throw TypeError(".google.api.Http.rules: object expected");o.rules[r]=g.google.api.HttpRule.fromObject(e.rules[r],t+1)}}return null!=e.fullyDecodeReservedExpansion&&(o.fullyDecodeReservedExpansion=Boolean(e.fullyDecodeReservedExpansion)),o},Ke.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.rules=[]),t.defaults&&(r.fullyDecodeReservedExpansion=!1),e.rules&&e.rules.length){r.rules=[];for(var n=0;n<e.rules.length;++n)r.rules[n]=g.google.api.HttpRule.toObject(e.rules[n],t,o+1)}return null!=e.fullyDecodeReservedExpansion&&Object.hasOwnProperty.call(e,"fullyDecodeReservedExpansion")&&(r.fullyDecodeReservedExpansion=e.fullyDecodeReservedExpansion),r},Ke.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Ke.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.Http"},Ke),i.HttpRule=(N.prototype.selector="",N.prototype.get=null,N.prototype.put=null,N.prototype.post=null,N.prototype.delete=null,N.prototype.patch=null,N.prototype.custom=null,N.prototype.body="",N.prototype.responseBody="",N.prototype.additionalBindings=d.emptyArray,Object.defineProperty(N.prototype,"pattern",{get:d.oneOfGetter(o=["get","put","post","delete","patch","custom"]),set:d.oneOfSetter(o)}),N.create=function(e){return new N(e)},N.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.selector&&Object.hasOwnProperty.call(e,"selector")&&t.uint32(10).string(e.selector),null!=e.get&&Object.hasOwnProperty.call(e,"get")&&t.uint32(18).string(e.get),null!=e.put&&Object.hasOwnProperty.call(e,"put")&&t.uint32(26).string(e.put),null!=e.post&&Object.hasOwnProperty.call(e,"post")&&t.uint32(34).string(e.post),null!=e.delete&&Object.hasOwnProperty.call(e,"delete")&&t.uint32(42).string(e.delete),null!=e.patch&&Object.hasOwnProperty.call(e,"patch")&&t.uint32(50).string(e.patch),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&t.uint32(58).string(e.body),null!=e.custom&&Object.hasOwnProperty.call(e,"custom")&&g.google.api.CustomHttpPattern.encode(e.custom,t.uint32(66).fork(),o+1).ldelim(),null!=e.additionalBindings&&e.additionalBindings.length)for(var r=0;r<e.additionalBindings.length;++r)g.google.api.HttpRule.encode(e.additionalBindings[r],t.uint32(90).fork(),o+1).ldelim();return null!=e.responseBody&&Object.hasOwnProperty.call(e,"responseBody")&&t.uint32(98).string(e.responseBody),t},N.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},N.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.HttpRule;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.selector=e.string();break;case 2:i.get=e.string();break;case 3:i.put=e.string();break;case 4:i.post=e.string();break;case 5:i.delete=e.string();break;case 6:i.patch=e.string();break;case 8:i.custom=g.google.api.CustomHttpPattern.decode(e,e.uint32(),void 0,r+1);break;case 7:i.body=e.string();break;case 12:i.responseBody=e.string();break;case 11:i.additionalBindings&&i.additionalBindings.length||(i.additionalBindings=[]),i.additionalBindings.push(g.google.api.HttpRule.decode(e,e.uint32(),void 0,r+1));break;default:e.skipType(7&a,r)}}return i},N.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},N.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";var o={};if(null!=e.selector&&Object.hasOwnProperty.call(e,"selector")&&!d.isString(e.selector))return"selector: string expected";if(null!=e.get&&Object.hasOwnProperty.call(e,"get")&&(o.pattern=1,!d.isString(e.get)))return"get: string expected";if(null!=e.put&&Object.hasOwnProperty.call(e,"put")){if(1===o.pattern)return"pattern: multiple values";if(o.pattern=1,!d.isString(e.put))return"put: string expected"}if(null!=e.post&&Object.hasOwnProperty.call(e,"post")){if(1===o.pattern)return"pattern: multiple values";if(o.pattern=1,!d.isString(e.post))return"post: string expected"}if(null!=e.delete&&Object.hasOwnProperty.call(e,"delete")){if(1===o.pattern)return"pattern: multiple values";if(o.pattern=1,!d.isString(e.delete))return"delete: string expected"}if(null!=e.patch&&Object.hasOwnProperty.call(e,"patch")){if(1===o.pattern)return"pattern: multiple values";if(o.pattern=1,!d.isString(e.patch))return"patch: string expected"}if(null!=e.custom&&Object.hasOwnProperty.call(e,"custom")){if(1===o.pattern)return"pattern: multiple values";if(r=g.google.api.CustomHttpPattern.verify(e.custom,t+(o.pattern=1)))return"custom."+r}if(null!=e.body&&Object.hasOwnProperty.call(e,"body")&&!d.isString(e.body))return"body: string expected";if(null!=e.responseBody&&Object.hasOwnProperty.call(e,"responseBody")&&!d.isString(e.responseBody))return"responseBody: string expected";if(null!=e.additionalBindings&&Object.hasOwnProperty.call(e,"additionalBindings")){if(!Array.isArray(e.additionalBindings))return"additionalBindings: array expected";for(var r,n=0;n<e.additionalBindings.length;++n)if(r=g.google.api.HttpRule.verify(e.additionalBindings[n],t+1))return"additionalBindings."+r}return null},N.fromObject=function(e,t){if(e instanceof g.google.api.HttpRule)return e;if(!d.isObject(e))throw TypeError(".google.api.HttpRule: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.HttpRule;if(null!=e.selector&&(o.selector=String(e.selector)),null!=e.get&&(o.get=String(e.get)),null!=e.put&&(o.put=String(e.put)),null!=e.post&&(o.post=String(e.post)),null!=e.delete&&(o.delete=String(e.delete)),null!=e.patch&&(o.patch=String(e.patch)),null!=e.custom){if(!d.isObject(e.custom))throw TypeError(".google.api.HttpRule.custom: object expected");o.custom=g.google.api.CustomHttpPattern.fromObject(e.custom,t+1)}if(null!=e.body&&(o.body=String(e.body)),null!=e.responseBody&&(o.responseBody=String(e.responseBody)),e.additionalBindings){if(!Array.isArray(e.additionalBindings))throw TypeError(".google.api.HttpRule.additionalBindings: array expected");o.additionalBindings=[];for(var r=0;r<e.additionalBindings.length;++r){if(!d.isObject(e.additionalBindings[r]))throw TypeError(".google.api.HttpRule.additionalBindings: object expected");o.additionalBindings[r]=g.google.api.HttpRule.fromObject(e.additionalBindings[r],t+1)}}return o},N.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.additionalBindings=[]),t.defaults&&(r.selector="",r.body="",r.responseBody=""),null!=e.selector&&Object.hasOwnProperty.call(e,"selector")&&(r.selector=e.selector),null!=e.get&&Object.hasOwnProperty.call(e,"get")&&(r.get=e.get,t.oneofs)&&(r.pattern="get"),null!=e.put&&Object.hasOwnProperty.call(e,"put")&&(r.put=e.put,t.oneofs)&&(r.pattern="put"),null!=e.post&&Object.hasOwnProperty.call(e,"post")&&(r.post=e.post,t.oneofs)&&(r.pattern="post"),null!=e.delete&&Object.hasOwnProperty.call(e,"delete")&&(r.delete=e.delete,t.oneofs)&&(r.pattern="delete"),null!=e.patch&&Object.hasOwnProperty.call(e,"patch")&&(r.patch=e.patch,t.oneofs)&&(r.pattern="patch"),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&(r.body=e.body),null!=e.custom&&Object.hasOwnProperty.call(e,"custom")&&(r.custom=g.google.api.CustomHttpPattern.toObject(e.custom,t,o+1),t.oneofs)&&(r.pattern="custom"),e.additionalBindings&&e.additionalBindings.length){r.additionalBindings=[];for(var n=0;n<e.additionalBindings.length;++n)r.additionalBindings[n]=g.google.api.HttpRule.toObject(e.additionalBindings[n],t,o+1)}return null!=e.responseBody&&Object.hasOwnProperty.call(e,"responseBody")&&(r.responseBody=e.responseBody),r},N.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},N.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.HttpRule"},N),i.CustomHttpPattern=(Xe.prototype.kind="",Xe.prototype.path="",Xe.create=function(e){return new Xe(e)},Xe.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.kind&&Object.hasOwnProperty.call(e,"kind")&&t.uint32(10).string(e.kind),null!=e.path&&Object.hasOwnProperty.call(e,"path")&&t.uint32(18).string(e.path),t},Xe.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Xe.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.CustomHttpPattern;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.kind=e.string();break;case 2:i.path=e.string();break;default:e.skipType(7&a,r)}}return i},Xe.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Xe.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.kind&&Object.hasOwnProperty.call(e,"kind")&&!d.isString(e.kind)?"kind: string expected":null!=e.path&&Object.hasOwnProperty.call(e,"path")&&!d.isString(e.path)?"path: string expected":null},Xe.fromObject=function(e,t){if(e instanceof g.google.api.CustomHttpPattern)return e;if(!d.isObject(e))throw TypeError(".google.api.CustomHttpPattern: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.api.CustomHttpPattern;return null!=e.kind&&(t.kind=String(e.kind)),null!=e.path&&(t.path=String(e.path)),t},Xe.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.kind="",o.path=""),null!=e.kind&&Object.hasOwnProperty.call(e,"kind")&&(o.kind=e.kind),null!=e.path&&Object.hasOwnProperty.call(e,"path")&&(o.path=e.path),o},Xe.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Xe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.CustomHttpPattern"},Xe),i.CommonLanguageSettings=(Ze.prototype.referenceDocsUri="",Ze.prototype.destinations=d.emptyArray,Ze.prototype.selectiveGapicGeneration=null,Ze.create=function(e){return new Ze(e)},Ze.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.referenceDocsUri&&Object.hasOwnProperty.call(e,"referenceDocsUri")&&t.uint32(10).string(e.referenceDocsUri),null!=e.destinations&&e.destinations.length){t.uint32(18).fork();for(var r=0;r<e.destinations.length;++r)t.int32(e.destinations[r]);t.ldelim()}return null!=e.selectiveGapicGeneration&&Object.hasOwnProperty.call(e,"selectiveGapicGeneration")&&g.google.api.SelectiveGapicGeneration.encode(e.selectiveGapicGeneration,t.uint32(26).fork(),o+1).ldelim(),t},Ze.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ze.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.CommonLanguageSettings;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.referenceDocsUri=e.string();break;case 2:if(i.destinations&&i.destinations.length||(i.destinations=[]),2==(7&a))for(var l=e.uint32()+e.pos;e.pos<l;)i.destinations.push(e.int32());else i.destinations.push(e.int32());break;case 3:i.selectiveGapicGeneration=g.google.api.SelectiveGapicGeneration.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},Ze.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Ze.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.referenceDocsUri&&Object.hasOwnProperty.call(e,"referenceDocsUri")&&!d.isString(e.referenceDocsUri))return"referenceDocsUri: string expected";if(null!=e.destinations&&Object.hasOwnProperty.call(e,"destinations")){if(!Array.isArray(e.destinations))return"destinations: array expected";for(var o=0;o<e.destinations.length;++o)switch(e.destinations[o]){default:return"destinations: enum value[] expected";case 0:case 10:case 20:}}if(null!=e.selectiveGapicGeneration&&Object.hasOwnProperty.call(e,"selectiveGapicGeneration")){t=g.google.api.SelectiveGapicGeneration.verify(e.selectiveGapicGeneration,t+1);if(t)return"selectiveGapicGeneration."+t}return null},Ze.fromObject=function(e,t){if(e instanceof g.google.api.CommonLanguageSettings)return e;if(!d.isObject(e))throw TypeError(".google.api.CommonLanguageSettings: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.CommonLanguageSettings;if(null!=e.referenceDocsUri&&(o.referenceDocsUri=String(e.referenceDocsUri)),e.destinations){if(!Array.isArray(e.destinations))throw TypeError(".google.api.CommonLanguageSettings.destinations: array expected");o.destinations=[];for(var r=0;r<e.destinations.length;++r)switch(e.destinations[r]){default:if("number"==typeof e.destinations[r]){o.destinations[r]=e.destinations[r];break}case"CLIENT_LIBRARY_DESTINATION_UNSPECIFIED":case 0:o.destinations[r]=0;break;case"GITHUB":case 10:o.destinations[r]=10;break;case"PACKAGE_MANAGER":case 20:o.destinations[r]=20}}if(null!=e.selectiveGapicGeneration){if(!d.isObject(e.selectiveGapicGeneration))throw TypeError(".google.api.CommonLanguageSettings.selectiveGapicGeneration: object expected");o.selectiveGapicGeneration=g.google.api.SelectiveGapicGeneration.fromObject(e.selectiveGapicGeneration,t+1)}return o},Ze.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.destinations=[]),t.defaults&&(r.referenceDocsUri="",r.selectiveGapicGeneration=null),null!=e.referenceDocsUri&&Object.hasOwnProperty.call(e,"referenceDocsUri")&&(r.referenceDocsUri=e.referenceDocsUri),e.destinations&&e.destinations.length){r.destinations=[];for(var n=0;n<e.destinations.length;++n)r.destinations[n]=t.enums!==String||void 0===g.google.api.ClientLibraryDestination[e.destinations[n]]?e.destinations[n]:g.google.api.ClientLibraryDestination[e.destinations[n]]}return null!=e.selectiveGapicGeneration&&Object.hasOwnProperty.call(e,"selectiveGapicGeneration")&&(r.selectiveGapicGeneration=g.google.api.SelectiveGapicGeneration.toObject(e.selectiveGapicGeneration,t,o+1)),r},Ze.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Ze.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.CommonLanguageSettings"},Ze),i.ClientLibrarySettings=(L.prototype.version="",L.prototype.launchStage=0,L.prototype.restNumericEnums=!1,L.prototype.javaSettings=null,L.prototype.cppSettings=null,L.prototype.phpSettings=null,L.prototype.pythonSettings=null,L.prototype.nodeSettings=null,L.prototype.dotnetSettings=null,L.prototype.rubySettings=null,L.prototype.goSettings=null,L.create=function(e){return new L(e)},L.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.version&&Object.hasOwnProperty.call(e,"version")&&t.uint32(10).string(e.version),null!=e.launchStage&&Object.hasOwnProperty.call(e,"launchStage")&&t.uint32(16).int32(e.launchStage),null!=e.restNumericEnums&&Object.hasOwnProperty.call(e,"restNumericEnums")&&t.uint32(24).bool(e.restNumericEnums),null!=e.javaSettings&&Object.hasOwnProperty.call(e,"javaSettings")&&g.google.api.JavaSettings.encode(e.javaSettings,t.uint32(170).fork(),o+1).ldelim(),null!=e.cppSettings&&Object.hasOwnProperty.call(e,"cppSettings")&&g.google.api.CppSettings.encode(e.cppSettings,t.uint32(178).fork(),o+1).ldelim(),null!=e.phpSettings&&Object.hasOwnProperty.call(e,"phpSettings")&&g.google.api.PhpSettings.encode(e.phpSettings,t.uint32(186).fork(),o+1).ldelim(),null!=e.pythonSettings&&Object.hasOwnProperty.call(e,"pythonSettings")&&g.google.api.PythonSettings.encode(e.pythonSettings,t.uint32(194).fork(),o+1).ldelim(),null!=e.nodeSettings&&Object.hasOwnProperty.call(e,"nodeSettings")&&g.google.api.NodeSettings.encode(e.nodeSettings,t.uint32(202).fork(),o+1).ldelim(),null!=e.dotnetSettings&&Object.hasOwnProperty.call(e,"dotnetSettings")&&g.google.api.DotnetSettings.encode(e.dotnetSettings,t.uint32(210).fork(),o+1).ldelim(),null!=e.rubySettings&&Object.hasOwnProperty.call(e,"rubySettings")&&g.google.api.RubySettings.encode(e.rubySettings,t.uint32(218).fork(),o+1).ldelim(),null!=e.goSettings&&Object.hasOwnProperty.call(e,"goSettings")&&g.google.api.GoSettings.encode(e.goSettings,t.uint32(226).fork(),o+1).ldelim(),t},L.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},L.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.ClientLibrarySettings;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.version=e.string();break;case 2:i.launchStage=e.int32();break;case 3:i.restNumericEnums=e.bool();break;case 21:i.javaSettings=g.google.api.JavaSettings.decode(e,e.uint32(),void 0,r+1);break;case 22:i.cppSettings=g.google.api.CppSettings.decode(e,e.uint32(),void 0,r+1);break;case 23:i.phpSettings=g.google.api.PhpSettings.decode(e,e.uint32(),void 0,r+1);break;case 24:i.pythonSettings=g.google.api.PythonSettings.decode(e,e.uint32(),void 0,r+1);break;case 25:i.nodeSettings=g.google.api.NodeSettings.decode(e,e.uint32(),void 0,r+1);break;case 26:i.dotnetSettings=g.google.api.DotnetSettings.decode(e,e.uint32(),void 0,r+1);break;case 27:i.rubySettings=g.google.api.RubySettings.decode(e,e.uint32(),void 0,r+1);break;case 28:i.goSettings=g.google.api.GoSettings.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},L.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},L.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.version&&Object.hasOwnProperty.call(e,"version")&&!d.isString(e.version))return"version: string expected";if(null!=e.launchStage&&Object.hasOwnProperty.call(e,"launchStage"))switch(e.launchStage){default:return"launchStage: enum value expected";case 0:case 6:case 7:case 1:case 2:case 3:case 4:case 5:}if(null!=e.restNumericEnums&&Object.hasOwnProperty.call(e,"restNumericEnums")&&"boolean"!=typeof e.restNumericEnums)return"restNumericEnums: boolean expected";var o;if(null!=e.javaSettings&&Object.hasOwnProperty.call(e,"javaSettings")&&(o=g.google.api.JavaSettings.verify(e.javaSettings,t+1)))return"javaSettings."+o;if(null!=e.cppSettings&&Object.hasOwnProperty.call(e,"cppSettings")&&(o=g.google.api.CppSettings.verify(e.cppSettings,t+1)))return"cppSettings."+o;if(null!=e.phpSettings&&Object.hasOwnProperty.call(e,"phpSettings")&&(o=g.google.api.PhpSettings.verify(e.phpSettings,t+1)))return"phpSettings."+o;if(null!=e.pythonSettings&&Object.hasOwnProperty.call(e,"pythonSettings")&&(o=g.google.api.PythonSettings.verify(e.pythonSettings,t+1)))return"pythonSettings."+o;if(null!=e.nodeSettings&&Object.hasOwnProperty.call(e,"nodeSettings")&&(o=g.google.api.NodeSettings.verify(e.nodeSettings,t+1)))return"nodeSettings."+o;if(null!=e.dotnetSettings&&Object.hasOwnProperty.call(e,"dotnetSettings")&&(o=g.google.api.DotnetSettings.verify(e.dotnetSettings,t+1)))return"dotnetSettings."+o;if(null!=e.rubySettings&&Object.hasOwnProperty.call(e,"rubySettings")&&(o=g.google.api.RubySettings.verify(e.rubySettings,t+1)))return"rubySettings."+o;if(null!=e.goSettings&&Object.hasOwnProperty.call(e,"goSettings")&&(o=g.google.api.GoSettings.verify(e.goSettings,t+1)))return"goSettings."+o;return null},L.fromObject=function(e,t){if(e instanceof g.google.api.ClientLibrarySettings)return e;if(!d.isObject(e))throw TypeError(".google.api.ClientLibrarySettings: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.ClientLibrarySettings;switch(null!=e.version&&(o.version=String(e.version)),e.launchStage){default:"number"==typeof e.launchStage&&(o.launchStage=e.launchStage);break;case"LAUNCH_STAGE_UNSPECIFIED":case 0:o.launchStage=0;break;case"UNIMPLEMENTED":case 6:o.launchStage=6;break;case"PRELAUNCH":case 7:o.launchStage=7;break;case"EARLY_ACCESS":case 1:o.launchStage=1;break;case"ALPHA":case 2:o.launchStage=2;break;case"BETA":case 3:o.launchStage=3;break;case"GA":case 4:o.launchStage=4;break;case"DEPRECATED":case 5:o.launchStage=5}if(null!=e.restNumericEnums&&(o.restNumericEnums=Boolean(e.restNumericEnums)),null!=e.javaSettings){if(!d.isObject(e.javaSettings))throw TypeError(".google.api.ClientLibrarySettings.javaSettings: object expected");o.javaSettings=g.google.api.JavaSettings.fromObject(e.javaSettings,t+1)}if(null!=e.cppSettings){if(!d.isObject(e.cppSettings))throw TypeError(".google.api.ClientLibrarySettings.cppSettings: object expected");o.cppSettings=g.google.api.CppSettings.fromObject(e.cppSettings,t+1)}if(null!=e.phpSettings){if(!d.isObject(e.phpSettings))throw TypeError(".google.api.ClientLibrarySettings.phpSettings: object expected");o.phpSettings=g.google.api.PhpSettings.fromObject(e.phpSettings,t+1)}if(null!=e.pythonSettings){if(!d.isObject(e.pythonSettings))throw TypeError(".google.api.ClientLibrarySettings.pythonSettings: object expected");o.pythonSettings=g.google.api.PythonSettings.fromObject(e.pythonSettings,t+1)}if(null!=e.nodeSettings){if(!d.isObject(e.nodeSettings))throw TypeError(".google.api.ClientLibrarySettings.nodeSettings: object expected");o.nodeSettings=g.google.api.NodeSettings.fromObject(e.nodeSettings,t+1)}if(null!=e.dotnetSettings){if(!d.isObject(e.dotnetSettings))throw TypeError(".google.api.ClientLibrarySettings.dotnetSettings: object expected");o.dotnetSettings=g.google.api.DotnetSettings.fromObject(e.dotnetSettings,t+1)}if(null!=e.rubySettings){if(!d.isObject(e.rubySettings))throw TypeError(".google.api.ClientLibrarySettings.rubySettings: object expected");o.rubySettings=g.google.api.RubySettings.fromObject(e.rubySettings,t+1)}if(null!=e.goSettings){if(!d.isObject(e.goSettings))throw TypeError(".google.api.ClientLibrarySettings.goSettings: object expected");o.goSettings=g.google.api.GoSettings.fromObject(e.goSettings,t+1)}return o},L.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.version="",r.launchStage=t.enums===String?"LAUNCH_STAGE_UNSPECIFIED":0,r.restNumericEnums=!1,r.javaSettings=null,r.cppSettings=null,r.phpSettings=null,r.pythonSettings=null,r.nodeSettings=null,r.dotnetSettings=null,r.rubySettings=null,r.goSettings=null),null!=e.version&&Object.hasOwnProperty.call(e,"version")&&(r.version=e.version),null!=e.launchStage&&Object.hasOwnProperty.call(e,"launchStage")&&(r.launchStage=t.enums!==String||void 0===g.google.api.LaunchStage[e.launchStage]?e.launchStage:g.google.api.LaunchStage[e.launchStage]),null!=e.restNumericEnums&&Object.hasOwnProperty.call(e,"restNumericEnums")&&(r.restNumericEnums=e.restNumericEnums),null!=e.javaSettings&&Object.hasOwnProperty.call(e,"javaSettings")&&(r.javaSettings=g.google.api.JavaSettings.toObject(e.javaSettings,t,o+1)),null!=e.cppSettings&&Object.hasOwnProperty.call(e,"cppSettings")&&(r.cppSettings=g.google.api.CppSettings.toObject(e.cppSettings,t,o+1)),null!=e.phpSettings&&Object.hasOwnProperty.call(e,"phpSettings")&&(r.phpSettings=g.google.api.PhpSettings.toObject(e.phpSettings,t,o+1)),null!=e.pythonSettings&&Object.hasOwnProperty.call(e,"pythonSettings")&&(r.pythonSettings=g.google.api.PythonSettings.toObject(e.pythonSettings,t,o+1)),null!=e.nodeSettings&&Object.hasOwnProperty.call(e,"nodeSettings")&&(r.nodeSettings=g.google.api.NodeSettings.toObject(e.nodeSettings,t,o+1)),null!=e.dotnetSettings&&Object.hasOwnProperty.call(e,"dotnetSettings")&&(r.dotnetSettings=g.google.api.DotnetSettings.toObject(e.dotnetSettings,t,o+1)),null!=e.rubySettings&&Object.hasOwnProperty.call(e,"rubySettings")&&(r.rubySettings=g.google.api.RubySettings.toObject(e.rubySettings,t,o+1)),null!=e.goSettings&&Object.hasOwnProperty.call(e,"goSettings")&&(r.goSettings=g.google.api.GoSettings.toObject(e.goSettings,t,o+1)),r},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.api.ClientLibrarySettings"},L),i.Publishing=(_.prototype.methodSettings=d.emptyArray,_.prototype.newIssueUri="",_.prototype.documentationUri="",_.prototype.apiShortName="",_.prototype.githubLabel="",_.prototype.codeownerGithubTeams=d.emptyArray,_.prototype.docTagPrefix="",_.prototype.organization=0,_.prototype.librarySettings=d.emptyArray,_.prototype.protoReferenceDocumentationUri="",_.prototype.restReferenceDocumentationUri="",_.create=function(e){return new _(e)},_.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.methodSettings&&e.methodSettings.length)for(var r=0;r<e.methodSettings.length;++r)g.google.api.MethodSettings.encode(e.methodSettings[r],t.uint32(18).fork(),o+1).ldelim();if(null!=e.newIssueUri&&Object.hasOwnProperty.call(e,"newIssueUri")&&t.uint32(810).string(e.newIssueUri),null!=e.documentationUri&&Object.hasOwnProperty.call(e,"documentationUri")&&t.uint32(818).string(e.documentationUri),null!=e.apiShortName&&Object.hasOwnProperty.call(e,"apiShortName")&&t.uint32(826).string(e.apiShortName),null!=e.githubLabel&&Object.hasOwnProperty.call(e,"githubLabel")&&t.uint32(834).string(e.githubLabel),null!=e.codeownerGithubTeams&&e.codeownerGithubTeams.length)for(r=0;r<e.codeownerGithubTeams.length;++r)t.uint32(842).string(e.codeownerGithubTeams[r]);if(null!=e.docTagPrefix&&Object.hasOwnProperty.call(e,"docTagPrefix")&&t.uint32(850).string(e.docTagPrefix),null!=e.organization&&Object.hasOwnProperty.call(e,"organization")&&t.uint32(856).int32(e.organization),null!=e.librarySettings&&e.librarySettings.length)for(r=0;r<e.librarySettings.length;++r)g.google.api.ClientLibrarySettings.encode(e.librarySettings[r],t.uint32(874).fork(),o+1).ldelim();return null!=e.protoReferenceDocumentationUri&&Object.hasOwnProperty.call(e,"protoReferenceDocumentationUri")&&t.uint32(882).string(e.protoReferenceDocumentationUri),null!=e.restReferenceDocumentationUri&&Object.hasOwnProperty.call(e,"restReferenceDocumentationUri")&&t.uint32(890).string(e.restReferenceDocumentationUri),t},_.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},_.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.Publishing;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 2:i.methodSettings&&i.methodSettings.length||(i.methodSettings=[]),i.methodSettings.push(g.google.api.MethodSettings.decode(e,e.uint32(),void 0,r+1));break;case 101:i.newIssueUri=e.string();break;case 102:i.documentationUri=e.string();break;case 103:i.apiShortName=e.string();break;case 104:i.githubLabel=e.string();break;case 105:i.codeownerGithubTeams&&i.codeownerGithubTeams.length||(i.codeownerGithubTeams=[]),i.codeownerGithubTeams.push(e.string());break;case 106:i.docTagPrefix=e.string();break;case 107:i.organization=e.int32();break;case 109:i.librarySettings&&i.librarySettings.length||(i.librarySettings=[]),i.librarySettings.push(g.google.api.ClientLibrarySettings.decode(e,e.uint32(),void 0,r+1));break;case 110:i.protoReferenceDocumentationUri=e.string();break;case 111:i.restReferenceDocumentationUri=e.string();break;default:e.skipType(7&a,r)}}return i},_.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},_.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.methodSettings&&Object.hasOwnProperty.call(e,"methodSettings")){if(!Array.isArray(e.methodSettings))return"methodSettings: array expected";for(var o=0;o<e.methodSettings.length;++o)if(r=g.google.api.MethodSettings.verify(e.methodSettings[o],t+1))return"methodSettings."+r}if(null!=e.newIssueUri&&Object.hasOwnProperty.call(e,"newIssueUri")&&!d.isString(e.newIssueUri))return"newIssueUri: string expected";if(null!=e.documentationUri&&Object.hasOwnProperty.call(e,"documentationUri")&&!d.isString(e.documentationUri))return"documentationUri: string expected";if(null!=e.apiShortName&&Object.hasOwnProperty.call(e,"apiShortName")&&!d.isString(e.apiShortName))return"apiShortName: string expected";if(null!=e.githubLabel&&Object.hasOwnProperty.call(e,"githubLabel")&&!d.isString(e.githubLabel))return"githubLabel: string expected";if(null!=e.codeownerGithubTeams&&Object.hasOwnProperty.call(e,"codeownerGithubTeams")){if(!Array.isArray(e.codeownerGithubTeams))return"codeownerGithubTeams: array expected";for(o=0;o<e.codeownerGithubTeams.length;++o)if(!d.isString(e.codeownerGithubTeams[o]))return"codeownerGithubTeams: string[] expected"}if(null!=e.docTagPrefix&&Object.hasOwnProperty.call(e,"docTagPrefix")&&!d.isString(e.docTagPrefix))return"docTagPrefix: string expected";if(null!=e.organization&&Object.hasOwnProperty.call(e,"organization"))switch(e.organization){default:return"organization: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:}if(null!=e.librarySettings&&Object.hasOwnProperty.call(e,"librarySettings")){if(!Array.isArray(e.librarySettings))return"librarySettings: array expected";for(var r,o=0;o<e.librarySettings.length;++o)if(r=g.google.api.ClientLibrarySettings.verify(e.librarySettings[o],t+1))return"librarySettings."+r}return null!=e.protoReferenceDocumentationUri&&Object.hasOwnProperty.call(e,"protoReferenceDocumentationUri")&&!d.isString(e.protoReferenceDocumentationUri)?"protoReferenceDocumentationUri: string expected":null!=e.restReferenceDocumentationUri&&Object.hasOwnProperty.call(e,"restReferenceDocumentationUri")&&!d.isString(e.restReferenceDocumentationUri)?"restReferenceDocumentationUri: string expected":null},_.fromObject=function(e,t){if(e instanceof g.google.api.Publishing)return e;if(!d.isObject(e))throw TypeError(".google.api.Publishing: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.Publishing;if(e.methodSettings){if(!Array.isArray(e.methodSettings))throw TypeError(".google.api.Publishing.methodSettings: array expected");o.methodSettings=[];for(var r=0;r<e.methodSettings.length;++r){if(!d.isObject(e.methodSettings[r]))throw TypeError(".google.api.Publishing.methodSettings: object expected");o.methodSettings[r]=g.google.api.MethodSettings.fromObject(e.methodSettings[r],t+1)}}if(null!=e.newIssueUri&&(o.newIssueUri=String(e.newIssueUri)),null!=e.documentationUri&&(o.documentationUri=String(e.documentationUri)),null!=e.apiShortName&&(o.apiShortName=String(e.apiShortName)),null!=e.githubLabel&&(o.githubLabel=String(e.githubLabel)),e.codeownerGithubTeams){if(!Array.isArray(e.codeownerGithubTeams))throw TypeError(".google.api.Publishing.codeownerGithubTeams: array expected");o.codeownerGithubTeams=[];for(r=0;r<e.codeownerGithubTeams.length;++r)o.codeownerGithubTeams[r]=String(e.codeownerGithubTeams[r])}switch(null!=e.docTagPrefix&&(o.docTagPrefix=String(e.docTagPrefix)),e.organization){default:"number"==typeof e.organization&&(o.organization=e.organization);break;case"CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED":case 0:o.organization=0;break;case"CLOUD":case 1:o.organization=1;break;case"ADS":case 2:o.organization=2;break;case"PHOTOS":case 3:o.organization=3;break;case"STREET_VIEW":case 4:o.organization=4;break;case"SHOPPING":case 5:o.organization=5;break;case"GEO":case 6:o.organization=6;break;case"GENERATIVE_AI":case 7:o.organization=7}if(e.librarySettings){if(!Array.isArray(e.librarySettings))throw TypeError(".google.api.Publishing.librarySettings: array expected");o.librarySettings=[];for(r=0;r<e.librarySettings.length;++r){if(!d.isObject(e.librarySettings[r]))throw TypeError(".google.api.Publishing.librarySettings: object expected");o.librarySettings[r]=g.google.api.ClientLibrarySettings.fromObject(e.librarySettings[r],t+1)}}return null!=e.protoReferenceDocumentationUri&&(o.protoReferenceDocumentationUri=String(e.protoReferenceDocumentationUri)),null!=e.restReferenceDocumentationUri&&(o.restReferenceDocumentationUri=String(e.restReferenceDocumentationUri)),o},_.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.methodSettings=[],r.codeownerGithubTeams=[],r.librarySettings=[]),t.defaults&&(r.newIssueUri="",r.documentationUri="",r.apiShortName="",r.githubLabel="",r.docTagPrefix="",r.organization=t.enums===String?"CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED":0,r.protoReferenceDocumentationUri="",r.restReferenceDocumentationUri=""),e.methodSettings&&e.methodSettings.length){r.methodSettings=[];for(var n=0;n<e.methodSettings.length;++n)r.methodSettings[n]=g.google.api.MethodSettings.toObject(e.methodSettings[n],t,o+1)}if(null!=e.newIssueUri&&Object.hasOwnProperty.call(e,"newIssueUri")&&(r.newIssueUri=e.newIssueUri),null!=e.documentationUri&&Object.hasOwnProperty.call(e,"documentationUri")&&(r.documentationUri=e.documentationUri),null!=e.apiShortName&&Object.hasOwnProperty.call(e,"apiShortName")&&(r.apiShortName=e.apiShortName),null!=e.githubLabel&&Object.hasOwnProperty.call(e,"githubLabel")&&(r.githubLabel=e.githubLabel),e.codeownerGithubTeams&&e.codeownerGithubTeams.length){r.codeownerGithubTeams=[];for(n=0;n<e.codeownerGithubTeams.length;++n)r.codeownerGithubTeams[n]=e.codeownerGithubTeams[n]}if(null!=e.docTagPrefix&&Object.hasOwnProperty.call(e,"docTagPrefix")&&(r.docTagPrefix=e.docTagPrefix),null!=e.organization&&Object.hasOwnProperty.call(e,"organization")&&(r.organization=t.enums!==String||void 0===g.google.api.ClientLibraryOrganization[e.organization]?e.organization:g.google.api.ClientLibraryOrganization[e.organization]),e.librarySettings&&e.librarySettings.length){r.librarySettings=[];for(n=0;n<e.librarySettings.length;++n)r.librarySettings[n]=g.google.api.ClientLibrarySettings.toObject(e.librarySettings[n],t,o+1)}return null!=e.protoReferenceDocumentationUri&&Object.hasOwnProperty.call(e,"protoReferenceDocumentationUri")&&(r.protoReferenceDocumentationUri=e.protoReferenceDocumentationUri),null!=e.restReferenceDocumentationUri&&Object.hasOwnProperty.call(e,"restReferenceDocumentationUri")&&(r.restReferenceDocumentationUri=e.restReferenceDocumentationUri),r},_.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},_.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.Publishing"},_),i.JavaSettings=(Qe.prototype.libraryPackage="",Qe.prototype.serviceClassNames=d.emptyObject,Qe.prototype.common=null,Qe.create=function(e){return new Qe(e)},Qe.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.libraryPackage&&Object.hasOwnProperty.call(e,"libraryPackage")&&t.uint32(10).string(e.libraryPackage),null!=e.serviceClassNames&&Object.hasOwnProperty.call(e,"serviceClassNames"))for(var r=Object.keys(e.serviceClassNames),n=0;n<r.length;++n)t.uint32(18).fork().uint32(10).string(r[n]).uint32(18).string(e.serviceClassNames[r[n]]).ldelim();return null!=e.common&&Object.hasOwnProperty.call(e,"common")&&g.google.api.CommonLanguageSettings.encode(e.common,t.uint32(26).fork(),o+1).ldelim(),t},Qe.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Qe.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.JavaSettings;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.libraryPackage=e.string();break;case 2:i.serviceClassNames===d.emptyObject&&(i.serviceClassNames={});for(var l=e.uint32()+e.pos,s="",c="";e.pos<l;){var u=e.uint32();switch(u>>>3){case 1:s=e.string();break;case 2:c=e.string();break;default:e.skipType(7&u,r)}}"__proto__"===s&&d.makeProp(i.serviceClassNames,s),i.serviceClassNames[s]=c;break;case 3:i.common=g.google.api.CommonLanguageSettings.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},Qe.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Qe.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.libraryPackage&&Object.hasOwnProperty.call(e,"libraryPackage")&&!d.isString(e.libraryPackage))return"libraryPackage: string expected";if(null!=e.serviceClassNames&&Object.hasOwnProperty.call(e,"serviceClassNames")){if(!d.isObject(e.serviceClassNames))return"serviceClassNames: object expected";for(var o=Object.keys(e.serviceClassNames),r=0;r<o.length;++r)if(!d.isString(e.serviceClassNames[o[r]]))return"serviceClassNames: string{k:string} expected"}if(null!=e.common&&Object.hasOwnProperty.call(e,"common")){t=g.google.api.CommonLanguageSettings.verify(e.common,t+1);if(t)return"common."+t}return null},Qe.fromObject=function(e,t){if(e instanceof g.google.api.JavaSettings)return e;if(!d.isObject(e))throw TypeError(".google.api.JavaSettings: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.JavaSettings;if(null!=e.libraryPackage&&(o.libraryPackage=String(e.libraryPackage)),e.serviceClassNames){if(!d.isObject(e.serviceClassNames))throw TypeError(".google.api.JavaSettings.serviceClassNames: object expected");o.serviceClassNames={};for(var r=Object.keys(e.serviceClassNames),n=0;n<r.length;++n)"__proto__"===r[n]&&d.makeProp(o.serviceClassNames,r[n]),o.serviceClassNames[r[n]]=String(e.serviceClassNames[r[n]])}if(null!=e.common){if(!d.isObject(e.common))throw TypeError(".google.api.JavaSettings.common: object expected");o.common=g.google.api.CommonLanguageSettings.fromObject(e.common,t+1)}return o},Qe.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,n={};if((t.objects||t.defaults)&&(n.serviceClassNames={}),t.defaults&&(n.libraryPackage="",n.common=null),null!=e.libraryPackage&&Object.hasOwnProperty.call(e,"libraryPackage")&&(n.libraryPackage=e.libraryPackage),e.serviceClassNames&&(r=Object.keys(e.serviceClassNames)).length){n.serviceClassNames={};for(var i=0;i<r.length;++i)"__proto__"===r[i]&&d.makeProp(n.serviceClassNames,r[i]),n.serviceClassNames[r[i]]=e.serviceClassNames[r[i]]}return null!=e.common&&Object.hasOwnProperty.call(e,"common")&&(n.common=g.google.api.CommonLanguageSettings.toObject(e.common,t,o+1)),n},Qe.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Qe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.JavaSettings"},Qe),i.CppSettings=($e.prototype.common=null,$e.create=function(e){return new $e(e)},$e.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.common&&Object.hasOwnProperty.call(e,"common")&&g.google.api.CommonLanguageSettings.encode(e.common,t.uint32(10).fork(),o+1).ldelim(),t},$e.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},$e.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.CppSettings;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.common=g.google.api.CommonLanguageSettings.decode(e,e.uint32(),void 0,r+1):e.skipType(7&a,r)}return i},$e.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},$e.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.common&&Object.hasOwnProperty.call(e,"common")){e=g.google.api.CommonLanguageSettings.verify(e.common,t+1);if(e)return"common."+e}return null},$e.fromObject=function(e,t){if(e instanceof g.google.api.CppSettings)return e;if(!d.isObject(e))throw TypeError(".google.api.CppSettings: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.CppSettings;if(null!=e.common){if(!d.isObject(e.common))throw TypeError(".google.api.CppSettings.common: object expected");o.common=g.google.api.CommonLanguageSettings.fromObject(e.common,t+1)}return o},$e.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.common=null),null!=e.common&&Object.hasOwnProperty.call(e,"common")&&(r.common=g.google.api.CommonLanguageSettings.toObject(e.common,t,o+1)),r},$e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},$e.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.CppSettings"},$e),i.PhpSettings=(et.prototype.common=null,et.create=function(e){return new et(e)},et.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.common&&Object.hasOwnProperty.call(e,"common")&&g.google.api.CommonLanguageSettings.encode(e.common,t.uint32(10).fork(),o+1).ldelim(),t},et.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},et.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.PhpSettings;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.common=g.google.api.CommonLanguageSettings.decode(e,e.uint32(),void 0,r+1):e.skipType(7&a,r)}return i},et.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},et.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.common&&Object.hasOwnProperty.call(e,"common")){e=g.google.api.CommonLanguageSettings.verify(e.common,t+1);if(e)return"common."+e}return null},et.fromObject=function(e,t){if(e instanceof g.google.api.PhpSettings)return e;if(!d.isObject(e))throw TypeError(".google.api.PhpSettings: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.PhpSettings;if(null!=e.common){if(!d.isObject(e.common))throw TypeError(".google.api.PhpSettings.common: object expected");o.common=g.google.api.CommonLanguageSettings.fromObject(e.common,t+1)}return o},et.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.common=null),null!=e.common&&Object.hasOwnProperty.call(e,"common")&&(r.common=g.google.api.CommonLanguageSettings.toObject(e.common,t,o+1)),r},et.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},et.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.PhpSettings"},et),i.PythonSettings=(tt.prototype.common=null,tt.prototype.experimentalFeatures=null,tt.create=function(e){return new tt(e)},tt.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.common&&Object.hasOwnProperty.call(e,"common")&&g.google.api.CommonLanguageSettings.encode(e.common,t.uint32(10).fork(),o+1).ldelim(),null!=e.experimentalFeatures&&Object.hasOwnProperty.call(e,"experimentalFeatures")&&g.google.api.PythonSettings.ExperimentalFeatures.encode(e.experimentalFeatures,t.uint32(18).fork(),o+1).ldelim(),t},tt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},tt.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.PythonSettings;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.common=g.google.api.CommonLanguageSettings.decode(e,e.uint32(),void 0,r+1);break;case 2:i.experimentalFeatures=g.google.api.PythonSettings.ExperimentalFeatures.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},tt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},tt.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";var o;if(null!=e.common&&Object.hasOwnProperty.call(e,"common")&&(o=g.google.api.CommonLanguageSettings.verify(e.common,t+1)))return"common."+o;if(null!=e.experimentalFeatures&&Object.hasOwnProperty.call(e,"experimentalFeatures")&&(o=g.google.api.PythonSettings.ExperimentalFeatures.verify(e.experimentalFeatures,t+1)))return"experimentalFeatures."+o;return null},tt.fromObject=function(e,t){if(e instanceof g.google.api.PythonSettings)return e;if(!d.isObject(e))throw TypeError(".google.api.PythonSettings: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.PythonSettings;if(null!=e.common){if(!d.isObject(e.common))throw TypeError(".google.api.PythonSettings.common: object expected");o.common=g.google.api.CommonLanguageSettings.fromObject(e.common,t+1)}if(null!=e.experimentalFeatures){if(!d.isObject(e.experimentalFeatures))throw TypeError(".google.api.PythonSettings.experimentalFeatures: object expected");o.experimentalFeatures=g.google.api.PythonSettings.ExperimentalFeatures.fromObject(e.experimentalFeatures,t+1)}return o},tt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.common=null,r.experimentalFeatures=null),null!=e.common&&Object.hasOwnProperty.call(e,"common")&&(r.common=g.google.api.CommonLanguageSettings.toObject(e.common,t,o+1)),null!=e.experimentalFeatures&&Object.hasOwnProperty.call(e,"experimentalFeatures")&&(r.experimentalFeatures=g.google.api.PythonSettings.ExperimentalFeatures.toObject(e.experimentalFeatures,t,o+1)),r},tt.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},tt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.PythonSettings"},tt.ExperimentalFeatures=(ot.prototype.restAsyncIoEnabled=!1,ot.prototype.protobufPythonicTypesEnabled=!1,ot.prototype.unversionedPackageDisabled=!1,ot.create=function(e){return new ot(e)},ot.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.restAsyncIoEnabled&&Object.hasOwnProperty.call(e,"restAsyncIoEnabled")&&t.uint32(8).bool(e.restAsyncIoEnabled),null!=e.protobufPythonicTypesEnabled&&Object.hasOwnProperty.call(e,"protobufPythonicTypesEnabled")&&t.uint32(16).bool(e.protobufPythonicTypesEnabled),null!=e.unversionedPackageDisabled&&Object.hasOwnProperty.call(e,"unversionedPackageDisabled")&&t.uint32(24).bool(e.unversionedPackageDisabled),t},ot.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ot.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.PythonSettings.ExperimentalFeatures;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.restAsyncIoEnabled=e.bool();break;case 2:i.protobufPythonicTypesEnabled=e.bool();break;case 3:i.unversionedPackageDisabled=e.bool();break;default:e.skipType(7&a,r)}}return i},ot.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ot.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.restAsyncIoEnabled&&Object.hasOwnProperty.call(e,"restAsyncIoEnabled")&&"boolean"!=typeof e.restAsyncIoEnabled?"restAsyncIoEnabled: boolean expected":null!=e.protobufPythonicTypesEnabled&&Object.hasOwnProperty.call(e,"protobufPythonicTypesEnabled")&&"boolean"!=typeof e.protobufPythonicTypesEnabled?"protobufPythonicTypesEnabled: boolean expected":null!=e.unversionedPackageDisabled&&Object.hasOwnProperty.call(e,"unversionedPackageDisabled")&&"boolean"!=typeof e.unversionedPackageDisabled?"unversionedPackageDisabled: boolean expected":null},ot.fromObject=function(e,t){if(e instanceof g.google.api.PythonSettings.ExperimentalFeatures)return e;if(!d.isObject(e))throw TypeError(".google.api.PythonSettings.ExperimentalFeatures: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.api.PythonSettings.ExperimentalFeatures;return null!=e.restAsyncIoEnabled&&(t.restAsyncIoEnabled=Boolean(e.restAsyncIoEnabled)),null!=e.protobufPythonicTypesEnabled&&(t.protobufPythonicTypesEnabled=Boolean(e.protobufPythonicTypesEnabled)),null!=e.unversionedPackageDisabled&&(t.unversionedPackageDisabled=Boolean(e.unversionedPackageDisabled)),t},ot.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.restAsyncIoEnabled=!1,o.protobufPythonicTypesEnabled=!1,o.unversionedPackageDisabled=!1),null!=e.restAsyncIoEnabled&&Object.hasOwnProperty.call(e,"restAsyncIoEnabled")&&(o.restAsyncIoEnabled=e.restAsyncIoEnabled),null!=e.protobufPythonicTypesEnabled&&Object.hasOwnProperty.call(e,"protobufPythonicTypesEnabled")&&(o.protobufPythonicTypesEnabled=e.protobufPythonicTypesEnabled),null!=e.unversionedPackageDisabled&&Object.hasOwnProperty.call(e,"unversionedPackageDisabled")&&(o.unversionedPackageDisabled=e.unversionedPackageDisabled),o},ot.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ot.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.PythonSettings.ExperimentalFeatures"},ot),tt),i.NodeSettings=(rt.prototype.common=null,rt.create=function(e){return new rt(e)},rt.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.common&&Object.hasOwnProperty.call(e,"common")&&g.google.api.CommonLanguageSettings.encode(e.common,t.uint32(10).fork(),o+1).ldelim(),t},rt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},rt.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.NodeSettings;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.common=g.google.api.CommonLanguageSettings.decode(e,e.uint32(),void 0,r+1):e.skipType(7&a,r)}return i},rt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},rt.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.common&&Object.hasOwnProperty.call(e,"common")){e=g.google.api.CommonLanguageSettings.verify(e.common,t+1);if(e)return"common."+e}return null},rt.fromObject=function(e,t){if(e instanceof g.google.api.NodeSettings)return e;if(!d.isObject(e))throw TypeError(".google.api.NodeSettings: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.NodeSettings;if(null!=e.common){if(!d.isObject(e.common))throw TypeError(".google.api.NodeSettings.common: object expected");o.common=g.google.api.CommonLanguageSettings.fromObject(e.common,t+1)}return o},rt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.common=null),null!=e.common&&Object.hasOwnProperty.call(e,"common")&&(r.common=g.google.api.CommonLanguageSettings.toObject(e.common,t,o+1)),r},rt.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},rt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.NodeSettings"},rt),i.DotnetSettings=(nt.prototype.common=null,nt.prototype.renamedServices=d.emptyObject,nt.prototype.renamedResources=d.emptyObject,nt.prototype.ignoredResources=d.emptyArray,nt.prototype.forcedNamespaceAliases=d.emptyArray,nt.prototype.handwrittenSignatures=d.emptyArray,nt.create=function(e){return new nt(e)},nt.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.common&&Object.hasOwnProperty.call(e,"common")&&g.google.api.CommonLanguageSettings.encode(e.common,t.uint32(10).fork(),o+1).ldelim(),null!=e.renamedServices&&Object.hasOwnProperty.call(e,"renamedServices"))for(var r=Object.keys(e.renamedServices),n=0;n<r.length;++n)t.uint32(18).fork().uint32(10).string(r[n]).uint32(18).string(e.renamedServices[r[n]]).ldelim();if(null!=e.renamedResources&&Object.hasOwnProperty.call(e,"renamedResources"))for(r=Object.keys(e.renamedResources),n=0;n<r.length;++n)t.uint32(26).fork().uint32(10).string(r[n]).uint32(18).string(e.renamedResources[r[n]]).ldelim();if(null!=e.ignoredResources&&e.ignoredResources.length)for(n=0;n<e.ignoredResources.length;++n)t.uint32(34).string(e.ignoredResources[n]);if(null!=e.forcedNamespaceAliases&&e.forcedNamespaceAliases.length)for(n=0;n<e.forcedNamespaceAliases.length;++n)t.uint32(42).string(e.forcedNamespaceAliases[n]);if(null!=e.handwrittenSignatures&&e.handwrittenSignatures.length)for(n=0;n<e.handwrittenSignatures.length;++n)t.uint32(50).string(e.handwrittenSignatures[n]);return t},nt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},nt.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.DotnetSettings;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.common=g.google.api.CommonLanguageSettings.decode(e,e.uint32(),void 0,r+1);break;case 2:i.renamedServices===d.emptyObject&&(i.renamedServices={});for(var l=e.uint32()+e.pos,s="",c="";e.pos<l;)switch((u=e.uint32())>>>3){case 1:s=e.string();break;case 2:c=e.string();break;default:e.skipType(7&u,r)}"__proto__"===s&&d.makeProp(i.renamedServices,s),i.renamedServices[s]=c;break;case 3:i.renamedResources===d.emptyObject&&(i.renamedResources={});var u,l=e.uint32()+e.pos;for(c=s="";e.pos<l;)switch((u=e.uint32())>>>3){case 1:s=e.string();break;case 2:c=e.string();break;default:e.skipType(7&u,r)}"__proto__"===s&&d.makeProp(i.renamedResources,s),i.renamedResources[s]=c;break;case 4:i.ignoredResources&&i.ignoredResources.length||(i.ignoredResources=[]),i.ignoredResources.push(e.string());break;case 5:i.forcedNamespaceAliases&&i.forcedNamespaceAliases.length||(i.forcedNamespaceAliases=[]),i.forcedNamespaceAliases.push(e.string());break;case 6:i.handwrittenSignatures&&i.handwrittenSignatures.length||(i.handwrittenSignatures=[]),i.handwrittenSignatures.push(e.string());break;default:e.skipType(7&a,r)}}return i},nt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},nt.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.common&&Object.hasOwnProperty.call(e,"common")){t=g.google.api.CommonLanguageSettings.verify(e.common,t+1);if(t)return"common."+t}if(null!=e.renamedServices&&Object.hasOwnProperty.call(e,"renamedServices")){if(!d.isObject(e.renamedServices))return"renamedServices: object expected";for(var o=Object.keys(e.renamedServices),r=0;r<o.length;++r)if(!d.isString(e.renamedServices[o[r]]))return"renamedServices: string{k:string} expected"}if(null!=e.renamedResources&&Object.hasOwnProperty.call(e,"renamedResources")){if(!d.isObject(e.renamedResources))return"renamedResources: object expected";for(o=Object.keys(e.renamedResources),r=0;r<o.length;++r)if(!d.isString(e.renamedResources[o[r]]))return"renamedResources: string{k:string} expected"}if(null!=e.ignoredResources&&Object.hasOwnProperty.call(e,"ignoredResources")){if(!Array.isArray(e.ignoredResources))return"ignoredResources: array expected";for(r=0;r<e.ignoredResources.length;++r)if(!d.isString(e.ignoredResources[r]))return"ignoredResources: string[] expected"}if(null!=e.forcedNamespaceAliases&&Object.hasOwnProperty.call(e,"forcedNamespaceAliases")){if(!Array.isArray(e.forcedNamespaceAliases))return"forcedNamespaceAliases: array expected";for(r=0;r<e.forcedNamespaceAliases.length;++r)if(!d.isString(e.forcedNamespaceAliases[r]))return"forcedNamespaceAliases: string[] expected"}if(null!=e.handwrittenSignatures&&Object.hasOwnProperty.call(e,"handwrittenSignatures")){if(!Array.isArray(e.handwrittenSignatures))return"handwrittenSignatures: array expected";for(r=0;r<e.handwrittenSignatures.length;++r)if(!d.isString(e.handwrittenSignatures[r]))return"handwrittenSignatures: string[] expected"}return null},nt.fromObject=function(e,t){if(e instanceof g.google.api.DotnetSettings)return e;if(!d.isObject(e))throw TypeError(".google.api.DotnetSettings: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.DotnetSettings;if(null!=e.common){if(!d.isObject(e.common))throw TypeError(".google.api.DotnetSettings.common: object expected");o.common=g.google.api.CommonLanguageSettings.fromObject(e.common,t+1)}if(e.renamedServices){if(!d.isObject(e.renamedServices))throw TypeError(".google.api.DotnetSettings.renamedServices: object expected");o.renamedServices={};for(var r=Object.keys(e.renamedServices),n=0;n<r.length;++n)"__proto__"===r[n]&&d.makeProp(o.renamedServices,r[n]),o.renamedServices[r[n]]=String(e.renamedServices[r[n]])}if(e.renamedResources){if(!d.isObject(e.renamedResources))throw TypeError(".google.api.DotnetSettings.renamedResources: object expected");o.renamedResources={};for(r=Object.keys(e.renamedResources),n=0;n<r.length;++n)"__proto__"===r[n]&&d.makeProp(o.renamedResources,r[n]),o.renamedResources[r[n]]=String(e.renamedResources[r[n]])}if(e.ignoredResources){if(!Array.isArray(e.ignoredResources))throw TypeError(".google.api.DotnetSettings.ignoredResources: array expected");o.ignoredResources=[];for(n=0;n<e.ignoredResources.length;++n)o.ignoredResources[n]=String(e.ignoredResources[n])}if(e.forcedNamespaceAliases){if(!Array.isArray(e.forcedNamespaceAliases))throw TypeError(".google.api.DotnetSettings.forcedNamespaceAliases: array expected");o.forcedNamespaceAliases=[];for(n=0;n<e.forcedNamespaceAliases.length;++n)o.forcedNamespaceAliases[n]=String(e.forcedNamespaceAliases[n])}if(e.handwrittenSignatures){if(!Array.isArray(e.handwrittenSignatures))throw TypeError(".google.api.DotnetSettings.handwrittenSignatures: array expected");o.handwrittenSignatures=[];for(n=0;n<e.handwrittenSignatures.length;++n)o.handwrittenSignatures[n]=String(e.handwrittenSignatures[n])}return o},nt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,n={};if((t.arrays||t.defaults)&&(n.ignoredResources=[],n.forcedNamespaceAliases=[],n.handwrittenSignatures=[]),(t.objects||t.defaults)&&(n.renamedServices={},n.renamedResources={}),t.defaults&&(n.common=null),null!=e.common&&Object.hasOwnProperty.call(e,"common")&&(n.common=g.google.api.CommonLanguageSettings.toObject(e.common,t,o+1)),e.renamedServices&&(r=Object.keys(e.renamedServices)).length){n.renamedServices={};for(var i=0;i<r.length;++i)"__proto__"===r[i]&&d.makeProp(n.renamedServices,r[i]),n.renamedServices[r[i]]=e.renamedServices[r[i]]}if(e.renamedResources&&(r=Object.keys(e.renamedResources)).length){n.renamedResources={};for(i=0;i<r.length;++i)"__proto__"===r[i]&&d.makeProp(n.renamedResources,r[i]),n.renamedResources[r[i]]=e.renamedResources[r[i]]}if(e.ignoredResources&&e.ignoredResources.length){n.ignoredResources=[];for(i=0;i<e.ignoredResources.length;++i)n.ignoredResources[i]=e.ignoredResources[i]}if(e.forcedNamespaceAliases&&e.forcedNamespaceAliases.length){n.forcedNamespaceAliases=[];for(i=0;i<e.forcedNamespaceAliases.length;++i)n.forcedNamespaceAliases[i]=e.forcedNamespaceAliases[i]}if(e.handwrittenSignatures&&e.handwrittenSignatures.length){n.handwrittenSignatures=[];for(i=0;i<e.handwrittenSignatures.length;++i)n.handwrittenSignatures[i]=e.handwrittenSignatures[i]}return n},nt.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},nt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.DotnetSettings"},nt),i.RubySettings=(it.prototype.common=null,it.create=function(e){return new it(e)},it.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.common&&Object.hasOwnProperty.call(e,"common")&&g.google.api.CommonLanguageSettings.encode(e.common,t.uint32(10).fork(),o+1).ldelim(),t},it.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},it.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.RubySettings;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.common=g.google.api.CommonLanguageSettings.decode(e,e.uint32(),void 0,r+1):e.skipType(7&a,r)}return i},it.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},it.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.common&&Object.hasOwnProperty.call(e,"common")){e=g.google.api.CommonLanguageSettings.verify(e.common,t+1);if(e)return"common."+e}return null},it.fromObject=function(e,t){if(e instanceof g.google.api.RubySettings)return e;if(!d.isObject(e))throw TypeError(".google.api.RubySettings: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.RubySettings;if(null!=e.common){if(!d.isObject(e.common))throw TypeError(".google.api.RubySettings.common: object expected");o.common=g.google.api.CommonLanguageSettings.fromObject(e.common,t+1)}return o},it.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.common=null),null!=e.common&&Object.hasOwnProperty.call(e,"common")&&(r.common=g.google.api.CommonLanguageSettings.toObject(e.common,t,o+1)),r},it.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},it.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.RubySettings"},it),i.GoSettings=(at.prototype.common=null,at.prototype.renamedServices=d.emptyObject,at.create=function(e){return new at(e)},at.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.common&&Object.hasOwnProperty.call(e,"common")&&g.google.api.CommonLanguageSettings.encode(e.common,t.uint32(10).fork(),o+1).ldelim(),null!=e.renamedServices&&Object.hasOwnProperty.call(e,"renamedServices"))for(var r=Object.keys(e.renamedServices),n=0;n<r.length;++n)t.uint32(18).fork().uint32(10).string(r[n]).uint32(18).string(e.renamedServices[r[n]]).ldelim();return t},at.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},at.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.GoSettings;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.common=g.google.api.CommonLanguageSettings.decode(e,e.uint32(),void 0,r+1);break;case 2:i.renamedServices===d.emptyObject&&(i.renamedServices={});for(var l=e.uint32()+e.pos,s="",c="";e.pos<l;){var u=e.uint32();switch(u>>>3){case 1:s=e.string();break;case 2:c=e.string();break;default:e.skipType(7&u,r)}}"__proto__"===s&&d.makeProp(i.renamedServices,s),i.renamedServices[s]=c;break;default:e.skipType(7&a,r)}}return i},at.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},at.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.common&&Object.hasOwnProperty.call(e,"common")){t=g.google.api.CommonLanguageSettings.verify(e.common,t+1);if(t)return"common."+t}if(null!=e.renamedServices&&Object.hasOwnProperty.call(e,"renamedServices")){if(!d.isObject(e.renamedServices))return"renamedServices: object expected";for(var o=Object.keys(e.renamedServices),r=0;r<o.length;++r)if(!d.isString(e.renamedServices[o[r]]))return"renamedServices: string{k:string} expected"}return null},at.fromObject=function(e,t){if(e instanceof g.google.api.GoSettings)return e;if(!d.isObject(e))throw TypeError(".google.api.GoSettings: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.GoSettings;if(null!=e.common){if(!d.isObject(e.common))throw TypeError(".google.api.GoSettings.common: object expected");o.common=g.google.api.CommonLanguageSettings.fromObject(e.common,t+1)}if(e.renamedServices){if(!d.isObject(e.renamedServices))throw TypeError(".google.api.GoSettings.renamedServices: object expected");o.renamedServices={};for(var r=Object.keys(e.renamedServices),n=0;n<r.length;++n)"__proto__"===r[n]&&d.makeProp(o.renamedServices,r[n]),o.renamedServices[r[n]]=String(e.renamedServices[r[n]])}return o},at.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,n={};if((t.objects||t.defaults)&&(n.renamedServices={}),t.defaults&&(n.common=null),null!=e.common&&Object.hasOwnProperty.call(e,"common")&&(n.common=g.google.api.CommonLanguageSettings.toObject(e.common,t,o+1)),e.renamedServices&&(r=Object.keys(e.renamedServices)).length){n.renamedServices={};for(var i=0;i<r.length;++i)"__proto__"===r[i]&&d.makeProp(n.renamedServices,r[i]),n.renamedServices[r[i]]=e.renamedServices[r[i]]}return n},at.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},at.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.GoSettings"},at),i.MethodSettings=(lt.prototype.selector="",lt.prototype.longRunning=null,lt.prototype.autoPopulatedFields=d.emptyArray,lt.create=function(e){return new lt(e)},lt.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.selector&&Object.hasOwnProperty.call(e,"selector")&&t.uint32(10).string(e.selector),null!=e.longRunning&&Object.hasOwnProperty.call(e,"longRunning")&&g.google.api.MethodSettings.LongRunning.encode(e.longRunning,t.uint32(18).fork(),o+1).ldelim(),null!=e.autoPopulatedFields&&e.autoPopulatedFields.length)for(var r=0;r<e.autoPopulatedFields.length;++r)t.uint32(26).string(e.autoPopulatedFields[r]);return t},lt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},lt.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.MethodSettings;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.selector=e.string();break;case 2:i.longRunning=g.google.api.MethodSettings.LongRunning.decode(e,e.uint32(),void 0,r+1);break;case 3:i.autoPopulatedFields&&i.autoPopulatedFields.length||(i.autoPopulatedFields=[]),i.autoPopulatedFields.push(e.string());break;default:e.skipType(7&a,r)}}return i},lt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},lt.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.selector&&Object.hasOwnProperty.call(e,"selector")&&!d.isString(e.selector))return"selector: string expected";if(null!=e.longRunning&&Object.hasOwnProperty.call(e,"longRunning")){t=g.google.api.MethodSettings.LongRunning.verify(e.longRunning,t+1);if(t)return"longRunning."+t}if(null!=e.autoPopulatedFields&&Object.hasOwnProperty.call(e,"autoPopulatedFields")){if(!Array.isArray(e.autoPopulatedFields))return"autoPopulatedFields: array expected";for(var o=0;o<e.autoPopulatedFields.length;++o)if(!d.isString(e.autoPopulatedFields[o]))return"autoPopulatedFields: string[] expected"}return null},lt.fromObject=function(e,t){if(e instanceof g.google.api.MethodSettings)return e;if(!d.isObject(e))throw TypeError(".google.api.MethodSettings: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.MethodSettings;if(null!=e.selector&&(o.selector=String(e.selector)),null!=e.longRunning){if(!d.isObject(e.longRunning))throw TypeError(".google.api.MethodSettings.longRunning: object expected");o.longRunning=g.google.api.MethodSettings.LongRunning.fromObject(e.longRunning,t+1)}if(e.autoPopulatedFields){if(!Array.isArray(e.autoPopulatedFields))throw TypeError(".google.api.MethodSettings.autoPopulatedFields: array expected");o.autoPopulatedFields=[];for(var r=0;r<e.autoPopulatedFields.length;++r)o.autoPopulatedFields[r]=String(e.autoPopulatedFields[r])}return o},lt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.autoPopulatedFields=[]),t.defaults&&(r.selector="",r.longRunning=null),null!=e.selector&&Object.hasOwnProperty.call(e,"selector")&&(r.selector=e.selector),null!=e.longRunning&&Object.hasOwnProperty.call(e,"longRunning")&&(r.longRunning=g.google.api.MethodSettings.LongRunning.toObject(e.longRunning,t,o+1)),e.autoPopulatedFields&&e.autoPopulatedFields.length){r.autoPopulatedFields=[];for(var n=0;n<e.autoPopulatedFields.length;++n)r.autoPopulatedFields[n]=e.autoPopulatedFields[n]}return r},lt.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},lt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.MethodSettings"},lt.LongRunning=(st.prototype.initialPollDelay=null,st.prototype.pollDelayMultiplier=0,st.prototype.maxPollDelay=null,st.prototype.totalPollTimeout=null,st.create=function(e){return new st(e)},st.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.initialPollDelay&&Object.hasOwnProperty.call(e,"initialPollDelay")&&g.google.protobuf.Duration.encode(e.initialPollDelay,t.uint32(10).fork(),o+1).ldelim(),null!=e.pollDelayMultiplier&&Object.hasOwnProperty.call(e,"pollDelayMultiplier")&&t.uint32(21).float(e.pollDelayMultiplier),null!=e.maxPollDelay&&Object.hasOwnProperty.call(e,"maxPollDelay")&&g.google.protobuf.Duration.encode(e.maxPollDelay,t.uint32(26).fork(),o+1).ldelim(),null!=e.totalPollTimeout&&Object.hasOwnProperty.call(e,"totalPollTimeout")&&g.google.protobuf.Duration.encode(e.totalPollTimeout,t.uint32(34).fork(),o+1).ldelim(),t},st.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},st.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.MethodSettings.LongRunning;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.initialPollDelay=g.google.protobuf.Duration.decode(e,e.uint32(),void 0,r+1);break;case 2:i.pollDelayMultiplier=e.float();break;case 3:i.maxPollDelay=g.google.protobuf.Duration.decode(e,e.uint32(),void 0,r+1);break;case 4:i.totalPollTimeout=g.google.protobuf.Duration.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},st.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},st.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";var o;if(null!=e.initialPollDelay&&Object.hasOwnProperty.call(e,"initialPollDelay")&&(o=g.google.protobuf.Duration.verify(e.initialPollDelay,t+1)))return"initialPollDelay."+o;if(null!=e.pollDelayMultiplier&&Object.hasOwnProperty.call(e,"pollDelayMultiplier")&&"number"!=typeof e.pollDelayMultiplier)return"pollDelayMultiplier: number expected";if(null!=e.maxPollDelay&&Object.hasOwnProperty.call(e,"maxPollDelay")&&(o=g.google.protobuf.Duration.verify(e.maxPollDelay,t+1)))return"maxPollDelay."+o;if(null!=e.totalPollTimeout&&Object.hasOwnProperty.call(e,"totalPollTimeout")&&(o=g.google.protobuf.Duration.verify(e.totalPollTimeout,t+1)))return"totalPollTimeout."+o;return null},st.fromObject=function(e,t){if(e instanceof g.google.api.MethodSettings.LongRunning)return e;if(!d.isObject(e))throw TypeError(".google.api.MethodSettings.LongRunning: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.MethodSettings.LongRunning;if(null!=e.initialPollDelay){if(!d.isObject(e.initialPollDelay))throw TypeError(".google.api.MethodSettings.LongRunning.initialPollDelay: object expected");o.initialPollDelay=g.google.protobuf.Duration.fromObject(e.initialPollDelay,t+1)}if(null!=e.pollDelayMultiplier&&(o.pollDelayMultiplier=Number(e.pollDelayMultiplier)),null!=e.maxPollDelay){if(!d.isObject(e.maxPollDelay))throw TypeError(".google.api.MethodSettings.LongRunning.maxPollDelay: object expected");o.maxPollDelay=g.google.protobuf.Duration.fromObject(e.maxPollDelay,t+1)}if(null!=e.totalPollTimeout){if(!d.isObject(e.totalPollTimeout))throw TypeError(".google.api.MethodSettings.LongRunning.totalPollTimeout: object expected");o.totalPollTimeout=g.google.protobuf.Duration.fromObject(e.totalPollTimeout,t+1)}return o},st.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.initialPollDelay=null,r.pollDelayMultiplier=0,r.maxPollDelay=null,r.totalPollTimeout=null),null!=e.initialPollDelay&&Object.hasOwnProperty.call(e,"initialPollDelay")&&(r.initialPollDelay=g.google.protobuf.Duration.toObject(e.initialPollDelay,t,o+1)),null!=e.pollDelayMultiplier&&Object.hasOwnProperty.call(e,"pollDelayMultiplier")&&(r.pollDelayMultiplier=t.json&&!isFinite(e.pollDelayMultiplier)?String(e.pollDelayMultiplier):e.pollDelayMultiplier),null!=e.maxPollDelay&&Object.hasOwnProperty.call(e,"maxPollDelay")&&(r.maxPollDelay=g.google.protobuf.Duration.toObject(e.maxPollDelay,t,o+1)),null!=e.totalPollTimeout&&Object.hasOwnProperty.call(e,"totalPollTimeout")&&(r.totalPollTimeout=g.google.protobuf.Duration.toObject(e.totalPollTimeout,t,o+1)),r},st.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},st.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.MethodSettings.LongRunning"},st),lt),i.ClientLibraryOrganization=(o={},(n=Object.create(o))[o[0]="CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED"]=0,n[o[1]="CLOUD"]=1,n[o[2]="ADS"]=2,n[o[3]="PHOTOS"]=3,n[o[4]="STREET_VIEW"]=4,n[o[5]="SHOPPING"]=5,n[o[6]="GEO"]=6,n[o[7]="GENERATIVE_AI"]=7,n),i.ClientLibraryDestination=(o={},(n=Object.create(o))[o[0]="CLIENT_LIBRARY_DESTINATION_UNSPECIFIED"]=0,n[o[10]="GITHUB"]=10,n[o[20]="PACKAGE_MANAGER"]=20,n),i.SelectiveGapicGeneration=(ct.prototype.methods=d.emptyArray,ct.prototype.generateOmittedAsInternal=!1,ct.create=function(e){return new ct(e)},ct.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.methods&&e.methods.length)for(var r=0;r<e.methods.length;++r)t.uint32(10).string(e.methods[r]);return null!=e.generateOmittedAsInternal&&Object.hasOwnProperty.call(e,"generateOmittedAsInternal")&&t.uint32(16).bool(e.generateOmittedAsInternal),t},ct.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ct.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.SelectiveGapicGeneration;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.methods&&i.methods.length||(i.methods=[]),i.methods.push(e.string());break;case 2:i.generateOmittedAsInternal=e.bool();break;default:e.skipType(7&a,r)}}return i},ct.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ct.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.methods&&Object.hasOwnProperty.call(e,"methods")){if(!Array.isArray(e.methods))return"methods: array expected";for(var o=0;o<e.methods.length;++o)if(!d.isString(e.methods[o]))return"methods: string[] expected"}return null!=e.generateOmittedAsInternal&&Object.hasOwnProperty.call(e,"generateOmittedAsInternal")&&"boolean"!=typeof e.generateOmittedAsInternal?"generateOmittedAsInternal: boolean expected":null},ct.fromObject=function(e,t){if(e instanceof g.google.api.SelectiveGapicGeneration)return e;if(!d.isObject(e))throw TypeError(".google.api.SelectiveGapicGeneration: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.SelectiveGapicGeneration;if(e.methods){if(!Array.isArray(e.methods))throw TypeError(".google.api.SelectiveGapicGeneration.methods: array expected");o.methods=[];for(var r=0;r<e.methods.length;++r)o.methods[r]=String(e.methods[r])}return null!=e.generateOmittedAsInternal&&(o.generateOmittedAsInternal=Boolean(e.generateOmittedAsInternal)),o},ct.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.methods=[]),t.defaults&&(r.generateOmittedAsInternal=!1),e.methods&&e.methods.length){r.methods=[];for(var n=0;n<e.methods.length;++n)r.methods[n]=e.methods[n]}return null!=e.generateOmittedAsInternal&&Object.hasOwnProperty.call(e,"generateOmittedAsInternal")&&(r.generateOmittedAsInternal=e.generateOmittedAsInternal),r},ct.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ct.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.SelectiveGapicGeneration"},ct),i.LaunchStage=(o={},(n=Object.create(o))[o[0]="LAUNCH_STAGE_UNSPECIFIED"]=0,n[o[6]="UNIMPLEMENTED"]=6,n[o[7]="PRELAUNCH"]=7,n[o[1]="EARLY_ACCESS"]=1,n[o[2]="ALPHA"]=2,n[o[3]="BETA"]=3,n[o[4]="GA"]=4,n[o[5]="DEPRECATED"]=5,n),i.FieldBehavior=(o={},(n=Object.create(o))[o[0]="FIELD_BEHAVIOR_UNSPECIFIED"]=0,n[o[1]="OPTIONAL"]=1,n[o[2]="REQUIRED"]=2,n[o[3]="OUTPUT_ONLY"]=3,n[o[4]="INPUT_ONLY"]=4,n[o[5]="IMMUTABLE"]=5,n[o[6]="UNORDERED_LIST"]=6,n[o[7]="NON_EMPTY_DEFAULT"]=7,n[o[8]="IDENTIFIER"]=8,n),i.ResourceDescriptor=(A.prototype.type="",A.prototype.pattern=d.emptyArray,A.prototype.nameField="",A.prototype.history=0,A.prototype.plural="",A.prototype.singular="",A.prototype.style=d.emptyArray,A.create=function(e){return new A(e)},A.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(10).string(e.type),null!=e.pattern&&e.pattern.length)for(var r=0;r<e.pattern.length;++r)t.uint32(18).string(e.pattern[r]);if(null!=e.nameField&&Object.hasOwnProperty.call(e,"nameField")&&t.uint32(26).string(e.nameField),null!=e.history&&Object.hasOwnProperty.call(e,"history")&&t.uint32(32).int32(e.history),null!=e.plural&&Object.hasOwnProperty.call(e,"plural")&&t.uint32(42).string(e.plural),null!=e.singular&&Object.hasOwnProperty.call(e,"singular")&&t.uint32(50).string(e.singular),null!=e.style&&e.style.length){t.uint32(82).fork();for(r=0;r<e.style.length;++r)t.int32(e.style[r]);t.ldelim()}return t},A.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},A.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.ResourceDescriptor;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.type=e.string();break;case 2:i.pattern&&i.pattern.length||(i.pattern=[]),i.pattern.push(e.string());break;case 3:i.nameField=e.string();break;case 4:i.history=e.int32();break;case 5:i.plural=e.string();break;case 6:i.singular=e.string();break;case 10:if(i.style&&i.style.length||(i.style=[]),2==(7&a))for(var l=e.uint32()+e.pos;e.pos<l;)i.style.push(e.int32());else i.style.push(e.int32());break;default:e.skipType(7&a,r)}}return i},A.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},A.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.type&&Object.hasOwnProperty.call(e,"type")&&!d.isString(e.type))return"type: string expected";if(null!=e.pattern&&Object.hasOwnProperty.call(e,"pattern")){if(!Array.isArray(e.pattern))return"pattern: array expected";for(var o=0;o<e.pattern.length;++o)if(!d.isString(e.pattern[o]))return"pattern: string[] expected"}if(null!=e.nameField&&Object.hasOwnProperty.call(e,"nameField")&&!d.isString(e.nameField))return"nameField: string expected";if(null!=e.history&&Object.hasOwnProperty.call(e,"history"))switch(e.history){default:return"history: enum value expected";case 0:case 1:case 2:}if(null!=e.plural&&Object.hasOwnProperty.call(e,"plural")&&!d.isString(e.plural))return"plural: string expected";if(null!=e.singular&&Object.hasOwnProperty.call(e,"singular")&&!d.isString(e.singular))return"singular: string expected";if(null!=e.style&&Object.hasOwnProperty.call(e,"style")){if(!Array.isArray(e.style))return"style: array expected";for(o=0;o<e.style.length;++o)switch(e.style[o]){default:return"style: enum value[] expected";case 0:case 1:}}return null},A.fromObject=function(e,t){if(e instanceof g.google.api.ResourceDescriptor)return e;if(!d.isObject(e))throw TypeError(".google.api.ResourceDescriptor: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.ResourceDescriptor;if(null!=e.type&&(o.type=String(e.type)),e.pattern){if(!Array.isArray(e.pattern))throw TypeError(".google.api.ResourceDescriptor.pattern: array expected");o.pattern=[];for(var r=0;r<e.pattern.length;++r)o.pattern[r]=String(e.pattern[r])}switch(null!=e.nameField&&(o.nameField=String(e.nameField)),e.history){default:"number"==typeof e.history&&(o.history=e.history);break;case"HISTORY_UNSPECIFIED":case 0:o.history=0;break;case"ORIGINALLY_SINGLE_PATTERN":case 1:o.history=1;break;case"FUTURE_MULTI_PATTERN":case 2:o.history=2}if(null!=e.plural&&(o.plural=String(e.plural)),null!=e.singular&&(o.singular=String(e.singular)),e.style){if(!Array.isArray(e.style))throw TypeError(".google.api.ResourceDescriptor.style: array expected");o.style=[];for(r=0;r<e.style.length;++r)switch(e.style[r]){default:if("number"==typeof e.style[r]){o.style[r]=e.style[r];break}case"STYLE_UNSPECIFIED":case 0:o.style[r]=0;break;case"DECLARATIVE_FRIENDLY":case 1:o.style[r]=1}}return o},A.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.pattern=[],r.style=[]),t.defaults&&(r.type="",r.nameField="",r.history=t.enums===String?"HISTORY_UNSPECIFIED":0,r.plural="",r.singular=""),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&(r.type=e.type),e.pattern&&e.pattern.length){r.pattern=[];for(var n=0;n<e.pattern.length;++n)r.pattern[n]=e.pattern[n]}if(null!=e.nameField&&Object.hasOwnProperty.call(e,"nameField")&&(r.nameField=e.nameField),null!=e.history&&Object.hasOwnProperty.call(e,"history")&&(r.history=t.enums!==String||void 0===g.google.api.ResourceDescriptor.History[e.history]?e.history:g.google.api.ResourceDescriptor.History[e.history]),null!=e.plural&&Object.hasOwnProperty.call(e,"plural")&&(r.plural=e.plural),null!=e.singular&&Object.hasOwnProperty.call(e,"singular")&&(r.singular=e.singular),e.style&&e.style.length){r.style=[];for(n=0;n<e.style.length;++n)r.style[n]=t.enums!==String||void 0===g.google.api.ResourceDescriptor.Style[e.style[n]]?e.style[n]:g.google.api.ResourceDescriptor.Style[e.style[n]]}return r},A.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},A.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.ResourceDescriptor"},A.History=(o={},(n=Object.create(o))[o[0]="HISTORY_UNSPECIFIED"]=0,n[o[1]="ORIGINALLY_SINGLE_PATTERN"]=1,n[o[2]="FUTURE_MULTI_PATTERN"]=2,n),A.Style=(o={},(n=Object.create(o))[o[0]="STYLE_UNSPECIFIED"]=0,n[o[1]="DECLARATIVE_FRIENDLY"]=1,n),A),i.ResourceReference=(ut.prototype.type="",ut.prototype.childType="",ut.create=function(e){return new ut(e)},ut.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(10).string(e.type),null!=e.childType&&Object.hasOwnProperty.call(e,"childType")&&t.uint32(18).string(e.childType),t},ut.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ut.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.ResourceReference;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.type=e.string();break;case 2:i.childType=e.string();break;default:e.skipType(7&a,r)}}return i},ut.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ut.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.type&&Object.hasOwnProperty.call(e,"type")&&!d.isString(e.type)?"type: string expected":null!=e.childType&&Object.hasOwnProperty.call(e,"childType")&&!d.isString(e.childType)?"childType: string expected":null},ut.fromObject=function(e,t){if(e instanceof g.google.api.ResourceReference)return e;if(!d.isObject(e))throw TypeError(".google.api.ResourceReference: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.api.ResourceReference;return null!=e.type&&(t.type=String(e.type)),null!=e.childType&&(t.childType=String(e.childType)),t},ut.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.type="",o.childType=""),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&(o.type=e.type),null!=e.childType&&Object.hasOwnProperty.call(e,"childType")&&(o.childType=e.childType),o},ut.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ut.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.ResourceReference"},ut),i),C.rpc=((a={}).Status=(pt.prototype.code=0,pt.prototype.message="",pt.prototype.details=d.emptyArray,pt.create=function(e){return new pt(e)},pt.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.code&&Object.hasOwnProperty.call(e,"code")&&t.uint32(8).int32(e.code),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&t.uint32(18).string(e.message),null!=e.details&&e.details.length)for(var r=0;r<e.details.length;++r)g.google.protobuf.Any.encode(e.details[r],t.uint32(26).fork(),o+1).ldelim();return t},pt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},pt.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.rpc.Status;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.code=e.int32();break;case 2:i.message=e.string();break;case 3:i.details&&i.details.length||(i.details=[]),i.details.push(g.google.protobuf.Any.decode(e,e.uint32(),void 0,r+1));break;default:e.skipType(7&a,r)}}return i},pt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},pt.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.code&&Object.hasOwnProperty.call(e,"code")&&!d.isInteger(e.code))return"code: integer expected";if(null!=e.message&&Object.hasOwnProperty.call(e,"message")&&!d.isString(e.message))return"message: string expected";if(null!=e.details&&Object.hasOwnProperty.call(e,"details")){if(!Array.isArray(e.details))return"details: array expected";for(var o=0;o<e.details.length;++o){var r=g.google.protobuf.Any.verify(e.details[o],t+1);if(r)return"details."+r}}return null},pt.fromObject=function(e,t){if(e instanceof g.google.rpc.Status)return e;if(!d.isObject(e))throw TypeError(".google.rpc.Status: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.rpc.Status;if(null!=e.code&&(o.code=0|e.code),null!=e.message&&(o.message=String(e.message)),e.details){if(!Array.isArray(e.details))throw TypeError(".google.rpc.Status.details: array expected");o.details=[];for(var r=0;r<e.details.length;++r){if(!d.isObject(e.details[r]))throw TypeError(".google.rpc.Status.details: object expected");o.details[r]=g.google.protobuf.Any.fromObject(e.details[r],t+1)}}return o},pt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.details=[]),t.defaults&&(r.code=0,r.message=""),null!=e.code&&Object.hasOwnProperty.call(e,"code")&&(r.code=e.code),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&(r.message=e.message),e.details&&e.details.length){r.details=[];for(var n=0;n<e.details.length;++n)r.details[n]=g.google.protobuf.Any.toObject(e.details[n],t,o+1)}return r},pt.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},pt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.rpc.Status"},pt),a),C),g});
|
|
1
|
+
(e=>{"function"==typeof define&&define.amd?define(["protobufjs/minimal"],e):"function"==typeof require&&"object"==typeof module&&module&&module.exports&&(module.exports=e(require("google-gax/build/src/protobuf").protobufMinimal))})(function(r){var e,t,o,n,i,a,A,p=r.Reader,l=r.Writer,d=r.util,g=r.roots._google_cloud_bigquery_storage_api_protos||(r.roots._google_cloud_bigquery_storage_api_protos={});function F(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function q(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function G(e){if(this.serializedRows=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function J(e,t,o){r.rpc.Service.call(this,e,t,o)}function Y(e,t,o){r.rpc.Service.call(this,e,t,o)}function W(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function K(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function Q(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function c(e){if(this.missingValueInterpretations={},e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function u(e){if(this.rowErrors=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function ie(e){if(this.writeStreams=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function ae(e){if(this.streamErrors=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function le(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function f(e){if(this.streams=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function m(e){if(this.selectedFields=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function me(e){if(this.fields=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function y(e){if(this.fields=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function ye(e){if(this.file=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function h(e){if(this.dependency=[],this.publicDependency=[],this.weakDependency=[],this.optionDependency=[],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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function O(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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function v(e){if(this.uninterpretedOption=[],this.declaration=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function S(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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function xe(e){if(this.method=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function x(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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function E(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function P(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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function Te(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function Re(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function ke(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function T(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function R(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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function k(e){if(this.name=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function I(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function Le(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function Ne(e){if(this.defaults=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function Ce(e){if(this.location=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function Ae(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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function Fe(e){if(this.annotation=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function Be(e){if(this.path=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function Ze(e){if(this.rules=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function L(e){if(this.additionalBindings=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function $e(e){if(this.destinations=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function N(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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function et(e){if(this.serviceClassNames={},e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function ot(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function it(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function at(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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function lt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function st(e){if(this.renamedServices={},e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function ct(e){if(this.autoPopulatedFields=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function pt(e){if(this.methods=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==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]]&&"__proto__"!==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]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function gt(e){if(this.discriminatorFields=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function C(e){if(this.pattern=[],this.style=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function ft(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}function mt(e){if(this.details=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&"__proto__"!==t[o]&&(this[t[o]]=e[t[o]])}return g.google=((A={}).cloud=((n={}).bigquery=((o={}).storage=((i={}).v1=((e={}).ArrowSchema=(F.prototype.serializedSchema=d.newBuffer([]),F.create=function(e){return new F(e)},F.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.serializedSchema&&Object.hasOwnProperty.call(e,"serializedSchema")&&t.uint32(10).bytes(e.serializedSchema),t},F.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},F.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.ArrowSchema;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.serializedSchema=e.bytes():e.skipType(7&a,r)}return i},F.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},F.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.serializedSchema&&Object.hasOwnProperty.call(e,"serializedSchema")&&!(e.serializedSchema&&"number"==typeof e.serializedSchema.length||d.isString(e.serializedSchema))?"serializedSchema: buffer expected":null},F.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.ArrowSchema)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.ArrowSchema: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.cloud.bigquery.storage.v1.ArrowSchema;return null!=e.serializedSchema&&("string"==typeof e.serializedSchema?d.base64.decode(e.serializedSchema,t.serializedSchema=d.newBuffer(d.base64.length(e.serializedSchema)),0):0<=e.serializedSchema.length&&(t.serializedSchema=e.serializedSchema)),t},F.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(t.bytes===String?o.serializedSchema="":(o.serializedSchema=[],t.bytes!==Array&&(o.serializedSchema=d.newBuffer(o.serializedSchema)))),null!=e.serializedSchema&&Object.hasOwnProperty.call(e,"serializedSchema")&&(o.serializedSchema=t.bytes===String?d.base64.encode(e.serializedSchema,0,e.serializedSchema.length):t.bytes===Array?Array.prototype.slice.call(e.serializedSchema):e.serializedSchema),o},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.cloud.bigquery.storage.v1.ArrowSchema"},F),e.ArrowRecordBatch=(B.prototype.serializedRecordBatch=d.newBuffer([]),B.prototype.rowCount=d.Long?d.Long.fromBits(0,0,!1):0,B.create=function(e){return new B(e)},B.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.serializedRecordBatch&&Object.hasOwnProperty.call(e,"serializedRecordBatch")&&t.uint32(10).bytes(e.serializedRecordBatch),null!=e.rowCount&&Object.hasOwnProperty.call(e,"rowCount")&&t.uint32(16).int64(e.rowCount),t},B.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},B.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.ArrowRecordBatch;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.serializedRecordBatch=e.bytes();break;case 2:i.rowCount=e.int64();break;default:e.skipType(7&a,r)}}return i},B.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},B.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.serializedRecordBatch&&Object.hasOwnProperty.call(e,"serializedRecordBatch")&&!(e.serializedRecordBatch&&"number"==typeof e.serializedRecordBatch.length||d.isString(e.serializedRecordBatch))?"serializedRecordBatch: buffer expected":null!=e.rowCount&&Object.hasOwnProperty.call(e,"rowCount")&&!(d.isInteger(e.rowCount)||e.rowCount&&d.isInteger(e.rowCount.low)&&d.isInteger(e.rowCount.high))?"rowCount: integer|Long expected":null},B.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.ArrowRecordBatch)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.ArrowRecordBatch: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.cloud.bigquery.storage.v1.ArrowRecordBatch;return null!=e.serializedRecordBatch&&("string"==typeof e.serializedRecordBatch?d.base64.decode(e.serializedRecordBatch,t.serializedRecordBatch=d.newBuffer(d.base64.length(e.serializedRecordBatch)),0):0<=e.serializedRecordBatch.length&&(t.serializedRecordBatch=e.serializedRecordBatch)),null!=e.rowCount&&(d.Long?t.rowCount=d.Long.fromValue(e.rowCount,!1):"string"==typeof e.rowCount?t.rowCount=parseInt(e.rowCount,10):"number"==typeof e.rowCount?t.rowCount=e.rowCount:"object"==typeof e.rowCount&&(t.rowCount=new d.LongBits(e.rowCount.low>>>0,e.rowCount.high>>>0).toNumber())),t},B.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,o={};return t.defaults&&(t.bytes===String?o.serializedRecordBatch="":(o.serializedRecordBatch=[],t.bytes!==Array&&(o.serializedRecordBatch=d.newBuffer(o.serializedRecordBatch))),d.Long?(r=new d.Long(0,0,!1),o.rowCount=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):o.rowCount=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0),null!=e.serializedRecordBatch&&Object.hasOwnProperty.call(e,"serializedRecordBatch")&&(o.serializedRecordBatch=t.bytes===String?d.base64.encode(e.serializedRecordBatch,0,e.serializedRecordBatch.length):t.bytes===Array?Array.prototype.slice.call(e.serializedRecordBatch):e.serializedRecordBatch),null!=e.rowCount&&Object.hasOwnProperty.call(e,"rowCount")&&("undefined"!=typeof BigInt&&t.longs===BigInt?o.rowCount="number"==typeof e.rowCount?BigInt(e.rowCount):d.Long.fromBits(e.rowCount.low>>>0,e.rowCount.high>>>0,!1).toBigInt():"number"==typeof e.rowCount?o.rowCount=t.longs===String?String(e.rowCount):e.rowCount:o.rowCount=t.longs===String?d.Long.prototype.toString.call(e.rowCount):t.longs===Number?new d.LongBits(e.rowCount.low>>>0,e.rowCount.high>>>0).toNumber():e.rowCount),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.cloud.bigquery.storage.v1.ArrowRecordBatch"},B),e.ArrowSerializationOptions=(q.prototype.bufferCompression=0,q.prototype.picosTimestampPrecision=0,q.create=function(e){return new q(e)},q.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.bufferCompression&&Object.hasOwnProperty.call(e,"bufferCompression")&&t.uint32(16).int32(e.bufferCompression),null!=e.picosTimestampPrecision&&Object.hasOwnProperty.call(e,"picosTimestampPrecision")&&t.uint32(24).int32(e.picosTimestampPrecision),t},q.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},q.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.ArrowSerializationOptions;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 2:i.bufferCompression=e.int32();break;case 3:i.picosTimestampPrecision=e.int32();break;default:e.skipType(7&a,r)}}return i},q.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},q.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.bufferCompression&&Object.hasOwnProperty.call(e,"bufferCompression"))switch(e.bufferCompression){default:return"bufferCompression: enum value expected";case 0:case 1:case 2:}if(null!=e.picosTimestampPrecision&&Object.hasOwnProperty.call(e,"picosTimestampPrecision"))switch(e.picosTimestampPrecision){default:return"picosTimestampPrecision: enum value expected";case 0:case 1:case 2:case 3:}return null},q.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.ArrowSerializationOptions)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.ArrowSerializationOptions: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.ArrowSerializationOptions;switch(e.bufferCompression){default:"number"==typeof e.bufferCompression&&(o.bufferCompression=e.bufferCompression);break;case"COMPRESSION_UNSPECIFIED":case 0:o.bufferCompression=0;break;case"LZ4_FRAME":case 1:o.bufferCompression=1;break;case"ZSTD":case 2:o.bufferCompression=2}switch(e.picosTimestampPrecision){default:"number"==typeof e.picosTimestampPrecision&&(o.picosTimestampPrecision=e.picosTimestampPrecision);break;case"PICOS_TIMESTAMP_PRECISION_UNSPECIFIED":case 0:o.picosTimestampPrecision=0;break;case"TIMESTAMP_PRECISION_MICROS":case 1:o.picosTimestampPrecision=1;break;case"TIMESTAMP_PRECISION_NANOS":case 2:o.picosTimestampPrecision=2;break;case"TIMESTAMP_PRECISION_PICOS":case 3:o.picosTimestampPrecision=3}return o},q.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.bufferCompression=t.enums===String?"COMPRESSION_UNSPECIFIED":0,o.picosTimestampPrecision=t.enums===String?"PICOS_TIMESTAMP_PRECISION_UNSPECIFIED":0),null!=e.bufferCompression&&Object.hasOwnProperty.call(e,"bufferCompression")&&(o.bufferCompression=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec[e.bufferCompression]?e.bufferCompression:g.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec[e.bufferCompression]),null!=e.picosTimestampPrecision&&Object.hasOwnProperty.call(e,"picosTimestampPrecision")&&(o.picosTimestampPrecision=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.PicosTimestampPrecision[e.picosTimestampPrecision]?e.picosTimestampPrecision:g.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.PicosTimestampPrecision[e.picosTimestampPrecision]),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.cloud.bigquery.storage.v1.ArrowSerializationOptions"},q.CompressionCodec=(t={},(a=Object.create(t))[t[0]="COMPRESSION_UNSPECIFIED"]=0,a[t[1]="LZ4_FRAME"]=1,a[t[2]="ZSTD"]=2,a),q.PicosTimestampPrecision=(t={},(a=Object.create(t))[t[0]="PICOS_TIMESTAMP_PRECISION_UNSPECIFIED"]=0,a[t[1]="TIMESTAMP_PRECISION_MICROS"]=1,a[t[2]="TIMESTAMP_PRECISION_NANOS"]=2,a[t[3]="TIMESTAMP_PRECISION_PICOS"]=3,a),q),e.AvroSchema=(V.prototype.schema="",V.create=function(e){return new V(e)},V.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.schema&&Object.hasOwnProperty.call(e,"schema")&&t.uint32(10).string(e.schema),t},V.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},V.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.AvroSchema;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.schema=e.string():e.skipType(7&a,r)}return i},V.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},V.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.schema&&Object.hasOwnProperty.call(e,"schema")&&!d.isString(e.schema)?"schema: string expected":null},V.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.AvroSchema)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.AvroSchema: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.cloud.bigquery.storage.v1.AvroSchema;return null!=e.schema&&(t.schema=String(e.schema)),t},V.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.schema=""),null!=e.schema&&Object.hasOwnProperty.call(e,"schema")&&(o.schema=e.schema),o},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.cloud.bigquery.storage.v1.AvroSchema"},V),e.AvroRows=(U.prototype.serializedBinaryRows=d.newBuffer([]),U.prototype.rowCount=d.Long?d.Long.fromBits(0,0,!1):0,U.create=function(e){return new U(e)},U.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.serializedBinaryRows&&Object.hasOwnProperty.call(e,"serializedBinaryRows")&&t.uint32(10).bytes(e.serializedBinaryRows),null!=e.rowCount&&Object.hasOwnProperty.call(e,"rowCount")&&t.uint32(16).int64(e.rowCount),t},U.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},U.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.AvroRows;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.serializedBinaryRows=e.bytes();break;case 2:i.rowCount=e.int64();break;default:e.skipType(7&a,r)}}return i},U.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},U.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.serializedBinaryRows&&Object.hasOwnProperty.call(e,"serializedBinaryRows")&&!(e.serializedBinaryRows&&"number"==typeof e.serializedBinaryRows.length||d.isString(e.serializedBinaryRows))?"serializedBinaryRows: buffer expected":null!=e.rowCount&&Object.hasOwnProperty.call(e,"rowCount")&&!(d.isInteger(e.rowCount)||e.rowCount&&d.isInteger(e.rowCount.low)&&d.isInteger(e.rowCount.high))?"rowCount: integer|Long expected":null},U.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.AvroRows)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.AvroRows: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.cloud.bigquery.storage.v1.AvroRows;return null!=e.serializedBinaryRows&&("string"==typeof e.serializedBinaryRows?d.base64.decode(e.serializedBinaryRows,t.serializedBinaryRows=d.newBuffer(d.base64.length(e.serializedBinaryRows)),0):0<=e.serializedBinaryRows.length&&(t.serializedBinaryRows=e.serializedBinaryRows)),null!=e.rowCount&&(d.Long?t.rowCount=d.Long.fromValue(e.rowCount,!1):"string"==typeof e.rowCount?t.rowCount=parseInt(e.rowCount,10):"number"==typeof e.rowCount?t.rowCount=e.rowCount:"object"==typeof e.rowCount&&(t.rowCount=new d.LongBits(e.rowCount.low>>>0,e.rowCount.high>>>0).toNumber())),t},U.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,o={};return t.defaults&&(t.bytes===String?o.serializedBinaryRows="":(o.serializedBinaryRows=[],t.bytes!==Array&&(o.serializedBinaryRows=d.newBuffer(o.serializedBinaryRows))),d.Long?(r=new d.Long(0,0,!1),o.rowCount=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):o.rowCount=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0),null!=e.serializedBinaryRows&&Object.hasOwnProperty.call(e,"serializedBinaryRows")&&(o.serializedBinaryRows=t.bytes===String?d.base64.encode(e.serializedBinaryRows,0,e.serializedBinaryRows.length):t.bytes===Array?Array.prototype.slice.call(e.serializedBinaryRows):e.serializedBinaryRows),null!=e.rowCount&&Object.hasOwnProperty.call(e,"rowCount")&&("undefined"!=typeof BigInt&&t.longs===BigInt?o.rowCount="number"==typeof e.rowCount?BigInt(e.rowCount):d.Long.fromBits(e.rowCount.low>>>0,e.rowCount.high>>>0,!1).toBigInt():"number"==typeof e.rowCount?o.rowCount=t.longs===String?String(e.rowCount):e.rowCount:o.rowCount=t.longs===String?d.Long.prototype.toString.call(e.rowCount):t.longs===Number?new d.LongBits(e.rowCount.low>>>0,e.rowCount.high>>>0).toNumber():e.rowCount),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.cloud.bigquery.storage.v1.AvroRows"},U),e.AvroSerializationOptions=(M.prototype.enableDisplayNameAttribute=!1,M.prototype.picosTimestampPrecision=0,M.create=function(e){return new M(e)},M.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.enableDisplayNameAttribute&&Object.hasOwnProperty.call(e,"enableDisplayNameAttribute")&&t.uint32(8).bool(e.enableDisplayNameAttribute),null!=e.picosTimestampPrecision&&Object.hasOwnProperty.call(e,"picosTimestampPrecision")&&t.uint32(16).int32(e.picosTimestampPrecision),t},M.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},M.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.AvroSerializationOptions;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.enableDisplayNameAttribute=e.bool();break;case 2:i.picosTimestampPrecision=e.int32();break;default:e.skipType(7&a,r)}}return i},M.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},M.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.enableDisplayNameAttribute&&Object.hasOwnProperty.call(e,"enableDisplayNameAttribute")&&"boolean"!=typeof e.enableDisplayNameAttribute)return"enableDisplayNameAttribute: boolean expected";if(null!=e.picosTimestampPrecision&&Object.hasOwnProperty.call(e,"picosTimestampPrecision"))switch(e.picosTimestampPrecision){default:return"picosTimestampPrecision: enum value expected";case 0:case 1:case 2:case 3:}return null},M.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.AvroSerializationOptions)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.AvroSerializationOptions: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.AvroSerializationOptions;switch(null!=e.enableDisplayNameAttribute&&(o.enableDisplayNameAttribute=Boolean(e.enableDisplayNameAttribute)),e.picosTimestampPrecision){default:"number"==typeof e.picosTimestampPrecision&&(o.picosTimestampPrecision=e.picosTimestampPrecision);break;case"PICOS_TIMESTAMP_PRECISION_UNSPECIFIED":case 0:o.picosTimestampPrecision=0;break;case"TIMESTAMP_PRECISION_MICROS":case 1:o.picosTimestampPrecision=1;break;case"TIMESTAMP_PRECISION_NANOS":case 2:o.picosTimestampPrecision=2;break;case"TIMESTAMP_PRECISION_PICOS":case 3:o.picosTimestampPrecision=3}return o},M.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.enableDisplayNameAttribute=!1,o.picosTimestampPrecision=t.enums===String?"PICOS_TIMESTAMP_PRECISION_UNSPECIFIED":0),null!=e.enableDisplayNameAttribute&&Object.hasOwnProperty.call(e,"enableDisplayNameAttribute")&&(o.enableDisplayNameAttribute=e.enableDisplayNameAttribute),null!=e.picosTimestampPrecision&&Object.hasOwnProperty.call(e,"picosTimestampPrecision")&&(o.picosTimestampPrecision=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.AvroSerializationOptions.PicosTimestampPrecision[e.picosTimestampPrecision]?e.picosTimestampPrecision:g.google.cloud.bigquery.storage.v1.AvroSerializationOptions.PicosTimestampPrecision[e.picosTimestampPrecision]),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.cloud.bigquery.storage.v1.AvroSerializationOptions"},M.PicosTimestampPrecision=(t={},(a=Object.create(t))[t[0]="PICOS_TIMESTAMP_PRECISION_UNSPECIFIED"]=0,a[t[1]="TIMESTAMP_PRECISION_MICROS"]=1,a[t[2]="TIMESTAMP_PRECISION_NANOS"]=2,a[t[3]="TIMESTAMP_PRECISION_PICOS"]=3,a),M),e.ProtoSchema=(z.prototype.protoDescriptor=null,z.create=function(e){return new z(e)},z.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.protoDescriptor&&Object.hasOwnProperty.call(e,"protoDescriptor")&&g.google.protobuf.DescriptorProto.encode(e.protoDescriptor,t.uint32(10).fork(),o+1).ldelim(),t},z.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},z.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.ProtoSchema;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.protoDescriptor=g.google.protobuf.DescriptorProto.decode(e,e.uint32(),void 0,r+1):e.skipType(7&a,r)}return i},z.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},z.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.protoDescriptor&&Object.hasOwnProperty.call(e,"protoDescriptor")){e=g.google.protobuf.DescriptorProto.verify(e.protoDescriptor,t+1);if(e)return"protoDescriptor."+e}return null},z.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.ProtoSchema)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.ProtoSchema: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.ProtoSchema;if(null!=e.protoDescriptor){if(!d.isObject(e.protoDescriptor))throw TypeError(".google.cloud.bigquery.storage.v1.ProtoSchema.protoDescriptor: object expected");o.protoDescriptor=g.google.protobuf.DescriptorProto.fromObject(e.protoDescriptor,t+1)}return o},z.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.protoDescriptor=null),null!=e.protoDescriptor&&Object.hasOwnProperty.call(e,"protoDescriptor")&&(r.protoDescriptor=g.google.protobuf.DescriptorProto.toObject(e.protoDescriptor,t,o+1)),r},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.cloud.bigquery.storage.v1.ProtoSchema"},z),e.ProtoRows=(G.prototype.serializedRows=d.emptyArray,G.create=function(e){return new G(e)},G.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.serializedRows&&e.serializedRows.length)for(var r=0;r<e.serializedRows.length;++r)t.uint32(10).bytes(e.serializedRows[r]);return t},G.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},G.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.ProtoRows;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?(i.serializedRows&&i.serializedRows.length||(i.serializedRows=[]),i.serializedRows.push(e.bytes())):e.skipType(7&a,r)}return i},G.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},G.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.serializedRows&&Object.hasOwnProperty.call(e,"serializedRows")){if(!Array.isArray(e.serializedRows))return"serializedRows: array expected";for(var o=0;o<e.serializedRows.length;++o)if(!(e.serializedRows[o]&&"number"==typeof e.serializedRows[o].length||d.isString(e.serializedRows[o])))return"serializedRows: buffer[] expected"}return null},G.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.ProtoRows)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.ProtoRows: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.ProtoRows;if(e.serializedRows){if(!Array.isArray(e.serializedRows))throw TypeError(".google.cloud.bigquery.storage.v1.ProtoRows.serializedRows: array expected");o.serializedRows=[];for(var r=0;r<e.serializedRows.length;++r)"string"==typeof e.serializedRows[r]?d.base64.decode(e.serializedRows[r],o.serializedRows[r]=d.newBuffer(d.base64.length(e.serializedRows[r])),0):0<=e.serializedRows[r].length&&(o.serializedRows[r]=e.serializedRows[r])}return o},G.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.serializedRows=[]),e.serializedRows&&e.serializedRows.length){r.serializedRows=[];for(var n=0;n<e.serializedRows.length;++n)r.serializedRows[n]=t.bytes===String?d.base64.encode(e.serializedRows[n],0,e.serializedRows[n].length):t.bytes===Array?Array.prototype.slice.call(e.serializedRows[n]):e.serializedRows[n]}return r},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.cloud.bigquery.storage.v1.ProtoRows"},G),e.BigQueryRead=(((J.prototype=Object.create(r.rpc.Service.prototype)).constructor=J).create=function(e,t,o){return new this(e,t,o)},Object.defineProperty(J.prototype.createReadSession=function e(t,o){return r.rpc.Service.prototype.rpcCall.call(this,e,g.google.cloud.bigquery.storage.v1.CreateReadSessionRequest,g.google.cloud.bigquery.storage.v1.ReadSession,t,o)},"name",{value:"CreateReadSession"}),Object.defineProperty(J.prototype.readRows=function e(t,o){return r.rpc.Service.prototype.rpcCall.call(this,e,g.google.cloud.bigquery.storage.v1.ReadRowsRequest,g.google.cloud.bigquery.storage.v1.ReadRowsResponse,t,o)},"name",{value:"ReadRows"}),Object.defineProperty(J.prototype.splitReadStream=function e(t,o){return r.rpc.Service.prototype.rpcCall.call(this,e,g.google.cloud.bigquery.storage.v1.SplitReadStreamRequest,g.google.cloud.bigquery.storage.v1.SplitReadStreamResponse,t,o)},"name",{value:"SplitReadStream"}),J),e.BigQueryWrite=(((Y.prototype=Object.create(r.rpc.Service.prototype)).constructor=Y).create=function(e,t,o){return new this(e,t,o)},Object.defineProperty(Y.prototype.createWriteStream=function e(t,o){return r.rpc.Service.prototype.rpcCall.call(this,e,g.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest,g.google.cloud.bigquery.storage.v1.WriteStream,t,o)},"name",{value:"CreateWriteStream"}),Object.defineProperty(Y.prototype.appendRows=function e(t,o){return r.rpc.Service.prototype.rpcCall.call(this,e,g.google.cloud.bigquery.storage.v1.AppendRowsRequest,g.google.cloud.bigquery.storage.v1.AppendRowsResponse,t,o)},"name",{value:"AppendRows"}),Object.defineProperty(Y.prototype.getWriteStream=function e(t,o){return r.rpc.Service.prototype.rpcCall.call(this,e,g.google.cloud.bigquery.storage.v1.GetWriteStreamRequest,g.google.cloud.bigquery.storage.v1.WriteStream,t,o)},"name",{value:"GetWriteStream"}),Object.defineProperty(Y.prototype.finalizeWriteStream=function e(t,o){return r.rpc.Service.prototype.rpcCall.call(this,e,g.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest,g.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse,t,o)},"name",{value:"FinalizeWriteStream"}),Object.defineProperty(Y.prototype.batchCommitWriteStreams=function e(t,o){return r.rpc.Service.prototype.rpcCall.call(this,e,g.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest,g.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse,t,o)},"name",{value:"BatchCommitWriteStreams"}),Object.defineProperty(Y.prototype.flushRows=function e(t,o){return r.rpc.Service.prototype.rpcCall.call(this,e,g.google.cloud.bigquery.storage.v1.FlushRowsRequest,g.google.cloud.bigquery.storage.v1.FlushRowsResponse,t,o)},"name",{value:"FlushRows"}),Y),e.CreateReadSessionRequest=(W.prototype.parent="",W.prototype.readSession=null,W.prototype.maxStreamCount=0,W.prototype.preferredMinStreamCount=0,W.create=function(e){return new W(e)},W.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.parent&&Object.hasOwnProperty.call(e,"parent")&&t.uint32(10).string(e.parent),null!=e.readSession&&Object.hasOwnProperty.call(e,"readSession")&&g.google.cloud.bigquery.storage.v1.ReadSession.encode(e.readSession,t.uint32(18).fork(),o+1).ldelim(),null!=e.maxStreamCount&&Object.hasOwnProperty.call(e,"maxStreamCount")&&t.uint32(24).int32(e.maxStreamCount),null!=e.preferredMinStreamCount&&Object.hasOwnProperty.call(e,"preferredMinStreamCount")&&t.uint32(32).int32(e.preferredMinStreamCount),t},W.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},W.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.CreateReadSessionRequest;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.parent=e.string();break;case 2:i.readSession=g.google.cloud.bigquery.storage.v1.ReadSession.decode(e,e.uint32(),void 0,r+1);break;case 3:i.maxStreamCount=e.int32();break;case 4:i.preferredMinStreamCount=e.int32();break;default:e.skipType(7&a,r)}}return i},W.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},W.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.parent&&Object.hasOwnProperty.call(e,"parent")&&!d.isString(e.parent))return"parent: string expected";if(null!=e.readSession&&Object.hasOwnProperty.call(e,"readSession")){t=g.google.cloud.bigquery.storage.v1.ReadSession.verify(e.readSession,t+1);if(t)return"readSession."+t}return null!=e.maxStreamCount&&Object.hasOwnProperty.call(e,"maxStreamCount")&&!d.isInteger(e.maxStreamCount)?"maxStreamCount: integer expected":null!=e.preferredMinStreamCount&&Object.hasOwnProperty.call(e,"preferredMinStreamCount")&&!d.isInteger(e.preferredMinStreamCount)?"preferredMinStreamCount: integer expected":null},W.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.CreateReadSessionRequest)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.CreateReadSessionRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.CreateReadSessionRequest;if(null!=e.parent&&(o.parent=String(e.parent)),null!=e.readSession){if(!d.isObject(e.readSession))throw TypeError(".google.cloud.bigquery.storage.v1.CreateReadSessionRequest.readSession: object expected");o.readSession=g.google.cloud.bigquery.storage.v1.ReadSession.fromObject(e.readSession,t+1)}return null!=e.maxStreamCount&&(o.maxStreamCount=0|e.maxStreamCount),null!=e.preferredMinStreamCount&&(o.preferredMinStreamCount=0|e.preferredMinStreamCount),o},W.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.parent="",r.readSession=null,r.maxStreamCount=0,r.preferredMinStreamCount=0),null!=e.parent&&Object.hasOwnProperty.call(e,"parent")&&(r.parent=e.parent),null!=e.readSession&&Object.hasOwnProperty.call(e,"readSession")&&(r.readSession=g.google.cloud.bigquery.storage.v1.ReadSession.toObject(e.readSession,t,o+1)),null!=e.maxStreamCount&&Object.hasOwnProperty.call(e,"maxStreamCount")&&(r.maxStreamCount=e.maxStreamCount),null!=e.preferredMinStreamCount&&Object.hasOwnProperty.call(e,"preferredMinStreamCount")&&(r.preferredMinStreamCount=e.preferredMinStreamCount),r},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.cloud.bigquery.storage.v1.CreateReadSessionRequest"},W),e.ReadRowsRequest=(H.prototype.readStream="",H.prototype.offset=d.Long?d.Long.fromBits(0,0,!1):0,H.create=function(e){return new H(e)},H.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.readStream&&Object.hasOwnProperty.call(e,"readStream")&&t.uint32(10).string(e.readStream),null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&t.uint32(16).int64(e.offset),t},H.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},H.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.ReadRowsRequest;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.readStream=e.string();break;case 2:i.offset=e.int64();break;default:e.skipType(7&a,r)}}return i},H.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},H.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.readStream&&Object.hasOwnProperty.call(e,"readStream")&&!d.isString(e.readStream)?"readStream: string expected":null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&!(d.isInteger(e.offset)||e.offset&&d.isInteger(e.offset.low)&&d.isInteger(e.offset.high))?"offset: integer|Long expected":null},H.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.ReadRowsRequest)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.ReadRowsRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.cloud.bigquery.storage.v1.ReadRowsRequest;return null!=e.readStream&&(t.readStream=String(e.readStream)),null!=e.offset&&(d.Long?t.offset=d.Long.fromValue(e.offset,!1):"string"==typeof e.offset?t.offset=parseInt(e.offset,10):"number"==typeof e.offset?t.offset=e.offset:"object"==typeof e.offset&&(t.offset=new d.LongBits(e.offset.low>>>0,e.offset.high>>>0).toNumber())),t},H.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,o={};return t.defaults&&(o.readStream="",d.Long?(r=new d.Long(0,0,!1),o.offset=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):o.offset=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0),null!=e.readStream&&Object.hasOwnProperty.call(e,"readStream")&&(o.readStream=e.readStream),null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&("undefined"!=typeof BigInt&&t.longs===BigInt?o.offset="number"==typeof e.offset?BigInt(e.offset):d.Long.fromBits(e.offset.low>>>0,e.offset.high>>>0,!1).toBigInt():"number"==typeof e.offset?o.offset=t.longs===String?String(e.offset):e.offset:o.offset=t.longs===String?d.Long.prototype.toString.call(e.offset):t.longs===Number?new d.LongBits(e.offset.low>>>0,e.offset.high>>>0).toNumber():e.offset),o},H.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},H.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.ReadRowsRequest"},H),e.ThrottleState=(K.prototype.throttlePercent=0,K.create=function(e){return new K(e)},K.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.throttlePercent&&Object.hasOwnProperty.call(e,"throttlePercent")&&t.uint32(8).int32(e.throttlePercent),t},K.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},K.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.ThrottleState;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.throttlePercent=e.int32():e.skipType(7&a,r)}return i},K.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},K.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.throttlePercent&&Object.hasOwnProperty.call(e,"throttlePercent")&&!d.isInteger(e.throttlePercent)?"throttlePercent: integer expected":null},K.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.ThrottleState)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.ThrottleState: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.cloud.bigquery.storage.v1.ThrottleState;return null!=e.throttlePercent&&(t.throttlePercent=0|e.throttlePercent),t},K.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.throttlePercent=0),null!=e.throttlePercent&&Object.hasOwnProperty.call(e,"throttlePercent")&&(o.throttlePercent=e.throttlePercent),o},K.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},K.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.ThrottleState"},K),e.StreamStats=(X.prototype.progress=null,X.create=function(e){return new X(e)},X.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.progress&&Object.hasOwnProperty.call(e,"progress")&&g.google.cloud.bigquery.storage.v1.StreamStats.Progress.encode(e.progress,t.uint32(18).fork(),o+1).ldelim(),t},X.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},X.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.StreamStats;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==2?i.progress=g.google.cloud.bigquery.storage.v1.StreamStats.Progress.decode(e,e.uint32(),void 0,r+1):e.skipType(7&a,r)}return i},X.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},X.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.progress&&Object.hasOwnProperty.call(e,"progress")){e=g.google.cloud.bigquery.storage.v1.StreamStats.Progress.verify(e.progress,t+1);if(e)return"progress."+e}return null},X.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.StreamStats)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.StreamStats: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.StreamStats;if(null!=e.progress){if(!d.isObject(e.progress))throw TypeError(".google.cloud.bigquery.storage.v1.StreamStats.progress: object expected");o.progress=g.google.cloud.bigquery.storage.v1.StreamStats.Progress.fromObject(e.progress,t+1)}return o},X.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.progress=null),null!=e.progress&&Object.hasOwnProperty.call(e,"progress")&&(r.progress=g.google.cloud.bigquery.storage.v1.StreamStats.Progress.toObject(e.progress,t,o+1)),r},X.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},X.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.StreamStats"},X.Progress=(Z.prototype.atResponseStart=0,Z.prototype.atResponseEnd=0,Z.create=function(e){return new Z(e)},Z.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.atResponseStart&&Object.hasOwnProperty.call(e,"atResponseStart")&&t.uint32(9).double(e.atResponseStart),null!=e.atResponseEnd&&Object.hasOwnProperty.call(e,"atResponseEnd")&&t.uint32(17).double(e.atResponseEnd),t},Z.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Z.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.StreamStats.Progress;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.atResponseStart=e.double();break;case 2:i.atResponseEnd=e.double();break;default:e.skipType(7&a,r)}}return i},Z.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Z.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.atResponseStart&&Object.hasOwnProperty.call(e,"atResponseStart")&&"number"!=typeof e.atResponseStart?"atResponseStart: number expected":null!=e.atResponseEnd&&Object.hasOwnProperty.call(e,"atResponseEnd")&&"number"!=typeof e.atResponseEnd?"atResponseEnd: number expected":null},Z.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.StreamStats.Progress)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.StreamStats.Progress: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.cloud.bigquery.storage.v1.StreamStats.Progress;return null!=e.atResponseStart&&(t.atResponseStart=Number(e.atResponseStart)),null!=e.atResponseEnd&&(t.atResponseEnd=Number(e.atResponseEnd)),t},Z.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.atResponseStart=0,o.atResponseEnd=0),null!=e.atResponseStart&&Object.hasOwnProperty.call(e,"atResponseStart")&&(o.atResponseStart=t.json&&!isFinite(e.atResponseStart)?String(e.atResponseStart):e.atResponseStart),null!=e.atResponseEnd&&Object.hasOwnProperty.call(e,"atResponseEnd")&&(o.atResponseEnd=t.json&&!isFinite(e.atResponseEnd)?String(e.atResponseEnd):e.atResponseEnd),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.cloud.bigquery.storage.v1.StreamStats.Progress"},Z),X),e.ReadRowsResponse=(s.prototype.avroRows=null,s.prototype.arrowRecordBatch=null,s.prototype.rowCount=d.Long?d.Long.fromBits(0,0,!1):0,s.prototype.stats=null,s.prototype.throttleState=null,s.prototype.avroSchema=null,s.prototype.arrowSchema=null,s.prototype.uncompressedByteSize=null,Object.defineProperty(s.prototype,"rows",{get:d.oneOfGetter(t=["avroRows","arrowRecordBatch"]),set:d.oneOfSetter(t)}),Object.defineProperty(s.prototype,"schema",{get:d.oneOfGetter(t=["avroSchema","arrowSchema"]),set:d.oneOfSetter(t)}),Object.defineProperty(s.prototype,"_uncompressedByteSize",{get:d.oneOfGetter(t=["uncompressedByteSize"]),set:d.oneOfSetter(t)}),s.create=function(e){return new s(e)},s.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.stats&&Object.hasOwnProperty.call(e,"stats")&&g.google.cloud.bigquery.storage.v1.StreamStats.encode(e.stats,t.uint32(18).fork(),o+1).ldelim(),null!=e.avroRows&&Object.hasOwnProperty.call(e,"avroRows")&&g.google.cloud.bigquery.storage.v1.AvroRows.encode(e.avroRows,t.uint32(26).fork(),o+1).ldelim(),null!=e.arrowRecordBatch&&Object.hasOwnProperty.call(e,"arrowRecordBatch")&&g.google.cloud.bigquery.storage.v1.ArrowRecordBatch.encode(e.arrowRecordBatch,t.uint32(34).fork(),o+1).ldelim(),null!=e.throttleState&&Object.hasOwnProperty.call(e,"throttleState")&&g.google.cloud.bigquery.storage.v1.ThrottleState.encode(e.throttleState,t.uint32(42).fork(),o+1).ldelim(),null!=e.rowCount&&Object.hasOwnProperty.call(e,"rowCount")&&t.uint32(48).int64(e.rowCount),null!=e.avroSchema&&Object.hasOwnProperty.call(e,"avroSchema")&&g.google.cloud.bigquery.storage.v1.AvroSchema.encode(e.avroSchema,t.uint32(58).fork(),o+1).ldelim(),null!=e.arrowSchema&&Object.hasOwnProperty.call(e,"arrowSchema")&&g.google.cloud.bigquery.storage.v1.ArrowSchema.encode(e.arrowSchema,t.uint32(66).fork(),o+1).ldelim(),null!=e.uncompressedByteSize&&Object.hasOwnProperty.call(e,"uncompressedByteSize")&&t.uint32(72).int64(e.uncompressedByteSize),t},s.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},s.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.ReadRowsResponse;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 3:i.avroRows=g.google.cloud.bigquery.storage.v1.AvroRows.decode(e,e.uint32(),void 0,r+1);break;case 4:i.arrowRecordBatch=g.google.cloud.bigquery.storage.v1.ArrowRecordBatch.decode(e,e.uint32(),void 0,r+1);break;case 6:i.rowCount=e.int64();break;case 2:i.stats=g.google.cloud.bigquery.storage.v1.StreamStats.decode(e,e.uint32(),void 0,r+1);break;case 5:i.throttleState=g.google.cloud.bigquery.storage.v1.ThrottleState.decode(e,e.uint32(),void 0,r+1);break;case 7:i.avroSchema=g.google.cloud.bigquery.storage.v1.AvroSchema.decode(e,e.uint32(),void 0,r+1);break;case 8:i.arrowSchema=g.google.cloud.bigquery.storage.v1.ArrowSchema.decode(e,e.uint32(),void 0,r+1);break;case 9:i.uncompressedByteSize=e.int64();break;default:e.skipType(7&a,r)}}return i},s.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},s.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";var o,r={};if(null!=e.avroRows&&Object.hasOwnProperty.call(e,"avroRows")&&(o=g.google.cloud.bigquery.storage.v1.AvroRows.verify(e.avroRows,t+(r.rows=1))))return"avroRows."+o;if(null!=e.arrowRecordBatch&&Object.hasOwnProperty.call(e,"arrowRecordBatch")){if(1===r.rows)return"rows: multiple values";if(o=g.google.cloud.bigquery.storage.v1.ArrowRecordBatch.verify(e.arrowRecordBatch,t+(r.rows=1)))return"arrowRecordBatch."+o}if(null!=e.rowCount&&Object.hasOwnProperty.call(e,"rowCount")&&!(d.isInteger(e.rowCount)||e.rowCount&&d.isInteger(e.rowCount.low)&&d.isInteger(e.rowCount.high)))return"rowCount: integer|Long expected";if(null!=e.stats&&Object.hasOwnProperty.call(e,"stats")&&(o=g.google.cloud.bigquery.storage.v1.StreamStats.verify(e.stats,t+1)))return"stats."+o;if(null!=e.throttleState&&Object.hasOwnProperty.call(e,"throttleState")&&(o=g.google.cloud.bigquery.storage.v1.ThrottleState.verify(e.throttleState,t+1)))return"throttleState."+o;if(null!=e.avroSchema&&Object.hasOwnProperty.call(e,"avroSchema")&&(o=g.google.cloud.bigquery.storage.v1.AvroSchema.verify(e.avroSchema,t+(r.schema=1))))return"avroSchema."+o;if(null!=e.arrowSchema&&Object.hasOwnProperty.call(e,"arrowSchema")){if(1===r.schema)return"schema: multiple values";if(o=g.google.cloud.bigquery.storage.v1.ArrowSchema.verify(e.arrowSchema,t+(r.schema=1)))return"arrowSchema."+o}return null==e.uncompressedByteSize||!Object.hasOwnProperty.call(e,"uncompressedByteSize")||(r._uncompressedByteSize=1,d.isInteger(e.uncompressedByteSize))||e.uncompressedByteSize&&d.isInteger(e.uncompressedByteSize.low)&&d.isInteger(e.uncompressedByteSize.high)?null:"uncompressedByteSize: integer|Long expected"},s.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.ReadRowsResponse)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.ReadRowsResponse: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.ReadRowsResponse;if(null!=e.avroRows){if(!d.isObject(e.avroRows))throw TypeError(".google.cloud.bigquery.storage.v1.ReadRowsResponse.avroRows: object expected");o.avroRows=g.google.cloud.bigquery.storage.v1.AvroRows.fromObject(e.avroRows,t+1)}if(null!=e.arrowRecordBatch){if(!d.isObject(e.arrowRecordBatch))throw TypeError(".google.cloud.bigquery.storage.v1.ReadRowsResponse.arrowRecordBatch: object expected");o.arrowRecordBatch=g.google.cloud.bigquery.storage.v1.ArrowRecordBatch.fromObject(e.arrowRecordBatch,t+1)}if(null!=e.rowCount&&(d.Long?o.rowCount=d.Long.fromValue(e.rowCount,!1):"string"==typeof e.rowCount?o.rowCount=parseInt(e.rowCount,10):"number"==typeof e.rowCount?o.rowCount=e.rowCount:"object"==typeof e.rowCount&&(o.rowCount=new d.LongBits(e.rowCount.low>>>0,e.rowCount.high>>>0).toNumber())),null!=e.stats){if(!d.isObject(e.stats))throw TypeError(".google.cloud.bigquery.storage.v1.ReadRowsResponse.stats: object expected");o.stats=g.google.cloud.bigquery.storage.v1.StreamStats.fromObject(e.stats,t+1)}if(null!=e.throttleState){if(!d.isObject(e.throttleState))throw TypeError(".google.cloud.bigquery.storage.v1.ReadRowsResponse.throttleState: object expected");o.throttleState=g.google.cloud.bigquery.storage.v1.ThrottleState.fromObject(e.throttleState,t+1)}if(null!=e.avroSchema){if(!d.isObject(e.avroSchema))throw TypeError(".google.cloud.bigquery.storage.v1.ReadRowsResponse.avroSchema: object expected");o.avroSchema=g.google.cloud.bigquery.storage.v1.AvroSchema.fromObject(e.avroSchema,t+1)}if(null!=e.arrowSchema){if(!d.isObject(e.arrowSchema))throw TypeError(".google.cloud.bigquery.storage.v1.ReadRowsResponse.arrowSchema: object expected");o.arrowSchema=g.google.cloud.bigquery.storage.v1.ArrowSchema.fromObject(e.arrowSchema,t+1)}return null!=e.uncompressedByteSize&&(d.Long?o.uncompressedByteSize=d.Long.fromValue(e.uncompressedByteSize,!1):"string"==typeof e.uncompressedByteSize?o.uncompressedByteSize=parseInt(e.uncompressedByteSize,10):"number"==typeof e.uncompressedByteSize?o.uncompressedByteSize=e.uncompressedByteSize:"object"==typeof e.uncompressedByteSize&&(o.uncompressedByteSize=new d.LongBits(e.uncompressedByteSize.low>>>0,e.uncompressedByteSize.high>>>0).toNumber())),o},s.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,n={};return t.defaults&&(n.stats=null,n.throttleState=null,d.Long?(r=new d.Long(0,0,!1),n.rowCount=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):n.rowCount=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0),null!=e.stats&&Object.hasOwnProperty.call(e,"stats")&&(n.stats=g.google.cloud.bigquery.storage.v1.StreamStats.toObject(e.stats,t,o+1)),null!=e.avroRows&&Object.hasOwnProperty.call(e,"avroRows")&&(n.avroRows=g.google.cloud.bigquery.storage.v1.AvroRows.toObject(e.avroRows,t,o+1),t.oneofs)&&(n.rows="avroRows"),null!=e.arrowRecordBatch&&Object.hasOwnProperty.call(e,"arrowRecordBatch")&&(n.arrowRecordBatch=g.google.cloud.bigquery.storage.v1.ArrowRecordBatch.toObject(e.arrowRecordBatch,t,o+1),t.oneofs)&&(n.rows="arrowRecordBatch"),null!=e.throttleState&&Object.hasOwnProperty.call(e,"throttleState")&&(n.throttleState=g.google.cloud.bigquery.storage.v1.ThrottleState.toObject(e.throttleState,t,o+1)),null!=e.rowCount&&Object.hasOwnProperty.call(e,"rowCount")&&("undefined"!=typeof BigInt&&t.longs===BigInt?n.rowCount="number"==typeof e.rowCount?BigInt(e.rowCount):d.Long.fromBits(e.rowCount.low>>>0,e.rowCount.high>>>0,!1).toBigInt():"number"==typeof e.rowCount?n.rowCount=t.longs===String?String(e.rowCount):e.rowCount:n.rowCount=t.longs===String?d.Long.prototype.toString.call(e.rowCount):t.longs===Number?new d.LongBits(e.rowCount.low>>>0,e.rowCount.high>>>0).toNumber():e.rowCount),null!=e.avroSchema&&Object.hasOwnProperty.call(e,"avroSchema")&&(n.avroSchema=g.google.cloud.bigquery.storage.v1.AvroSchema.toObject(e.avroSchema,t,o+1),t.oneofs)&&(n.schema="avroSchema"),null!=e.arrowSchema&&Object.hasOwnProperty.call(e,"arrowSchema")&&(n.arrowSchema=g.google.cloud.bigquery.storage.v1.ArrowSchema.toObject(e.arrowSchema,t,o+1),t.oneofs)&&(n.schema="arrowSchema"),null!=e.uncompressedByteSize&&Object.hasOwnProperty.call(e,"uncompressedByteSize")&&("undefined"!=typeof BigInt&&t.longs===BigInt?n.uncompressedByteSize="number"==typeof e.uncompressedByteSize?BigInt(e.uncompressedByteSize):d.Long.fromBits(e.uncompressedByteSize.low>>>0,e.uncompressedByteSize.high>>>0,!1).toBigInt():"number"==typeof e.uncompressedByteSize?n.uncompressedByteSize=t.longs===String?String(e.uncompressedByteSize):e.uncompressedByteSize:n.uncompressedByteSize=t.longs===String?d.Long.prototype.toString.call(e.uncompressedByteSize):t.longs===Number?new d.LongBits(e.uncompressedByteSize.low>>>0,e.uncompressedByteSize.high>>>0).toNumber():e.uncompressedByteSize,t.oneofs)&&(n._uncompressedByteSize="uncompressedByteSize"),n},s.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},s.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.ReadRowsResponse"},s),e.SplitReadStreamRequest=(Q.prototype.name="",Q.prototype.fraction=0,Q.create=function(e){return new Q(e)},Q.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.fraction&&Object.hasOwnProperty.call(e,"fraction")&&t.uint32(17).double(e.fraction),t},Q.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Q.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.SplitReadStreamRequest;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.fraction=e.double();break;default:e.skipType(7&a,r)}}return i},Q.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Q.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name)?"name: string expected":null!=e.fraction&&Object.hasOwnProperty.call(e,"fraction")&&"number"!=typeof e.fraction?"fraction: number expected":null},Q.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.SplitReadStreamRequest)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.SplitReadStreamRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.cloud.bigquery.storage.v1.SplitReadStreamRequest;return null!=e.name&&(t.name=String(e.name)),null!=e.fraction&&(t.fraction=Number(e.fraction)),t},Q.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.name="",o.fraction=0),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(o.name=e.name),null!=e.fraction&&Object.hasOwnProperty.call(e,"fraction")&&(o.fraction=t.json&&!isFinite(e.fraction)?String(e.fraction):e.fraction),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.cloud.bigquery.storage.v1.SplitReadStreamRequest"},Q),e.SplitReadStreamResponse=($.prototype.primaryStream=null,$.prototype.remainderStream=null,$.create=function(e){return new $(e)},$.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.primaryStream&&Object.hasOwnProperty.call(e,"primaryStream")&&g.google.cloud.bigquery.storage.v1.ReadStream.encode(e.primaryStream,t.uint32(10).fork(),o+1).ldelim(),null!=e.remainderStream&&Object.hasOwnProperty.call(e,"remainderStream")&&g.google.cloud.bigquery.storage.v1.ReadStream.encode(e.remainderStream,t.uint32(18).fork(),o+1).ldelim(),t},$.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},$.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.SplitReadStreamResponse;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.primaryStream=g.google.cloud.bigquery.storage.v1.ReadStream.decode(e,e.uint32(),void 0,r+1);break;case 2:i.remainderStream=g.google.cloud.bigquery.storage.v1.ReadStream.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},$.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},$.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";var o;if(null!=e.primaryStream&&Object.hasOwnProperty.call(e,"primaryStream")&&(o=g.google.cloud.bigquery.storage.v1.ReadStream.verify(e.primaryStream,t+1)))return"primaryStream."+o;if(null!=e.remainderStream&&Object.hasOwnProperty.call(e,"remainderStream")&&(o=g.google.cloud.bigquery.storage.v1.ReadStream.verify(e.remainderStream,t+1)))return"remainderStream."+o;return null},$.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.SplitReadStreamResponse)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.SplitReadStreamResponse: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.SplitReadStreamResponse;if(null!=e.primaryStream){if(!d.isObject(e.primaryStream))throw TypeError(".google.cloud.bigquery.storage.v1.SplitReadStreamResponse.primaryStream: object expected");o.primaryStream=g.google.cloud.bigquery.storage.v1.ReadStream.fromObject(e.primaryStream,t+1)}if(null!=e.remainderStream){if(!d.isObject(e.remainderStream))throw TypeError(".google.cloud.bigquery.storage.v1.SplitReadStreamResponse.remainderStream: object expected");o.remainderStream=g.google.cloud.bigquery.storage.v1.ReadStream.fromObject(e.remainderStream,t+1)}return o},$.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.primaryStream=null,r.remainderStream=null),null!=e.primaryStream&&Object.hasOwnProperty.call(e,"primaryStream")&&(r.primaryStream=g.google.cloud.bigquery.storage.v1.ReadStream.toObject(e.primaryStream,t,o+1)),null!=e.remainderStream&&Object.hasOwnProperty.call(e,"remainderStream")&&(r.remainderStream=g.google.cloud.bigquery.storage.v1.ReadStream.toObject(e.remainderStream,t,o+1)),r},$.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},$.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.SplitReadStreamResponse"},$),e.CreateWriteStreamRequest=(ee.prototype.parent="",ee.prototype.writeStream=null,ee.create=function(e){return new ee(e)},ee.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.parent&&Object.hasOwnProperty.call(e,"parent")&&t.uint32(10).string(e.parent),null!=e.writeStream&&Object.hasOwnProperty.call(e,"writeStream")&&g.google.cloud.bigquery.storage.v1.WriteStream.encode(e.writeStream,t.uint32(18).fork(),o+1).ldelim(),t},ee.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ee.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.parent=e.string();break;case 2:i.writeStream=g.google.cloud.bigquery.storage.v1.WriteStream.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},ee.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ee.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.parent&&Object.hasOwnProperty.call(e,"parent")&&!d.isString(e.parent))return"parent: string expected";if(null!=e.writeStream&&Object.hasOwnProperty.call(e,"writeStream")){e=g.google.cloud.bigquery.storage.v1.WriteStream.verify(e.writeStream,t+1);if(e)return"writeStream."+e}return null},ee.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.CreateWriteStreamRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest;if(null!=e.parent&&(o.parent=String(e.parent)),null!=e.writeStream){if(!d.isObject(e.writeStream))throw TypeError(".google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.writeStream: object expected");o.writeStream=g.google.cloud.bigquery.storage.v1.WriteStream.fromObject(e.writeStream,t+1)}return o},ee.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.parent="",r.writeStream=null),null!=e.parent&&Object.hasOwnProperty.call(e,"parent")&&(r.parent=e.parent),null!=e.writeStream&&Object.hasOwnProperty.call(e,"writeStream")&&(r.writeStream=g.google.cloud.bigquery.storage.v1.WriteStream.toObject(e.writeStream,t,o+1)),r},ee.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ee.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.CreateWriteStreamRequest"},ee),e.AppendRowsRequest=(c.prototype.writeStream="",c.prototype.offset=null,c.prototype.protoRows=null,c.prototype.arrowRows=null,c.prototype.traceId="",c.prototype.missingValueInterpretations=d.emptyObject,c.prototype.defaultMissingValueInterpretation=0,Object.defineProperty(c.prototype,"rows",{get:d.oneOfGetter(a=["protoRows","arrowRows"]),set:d.oneOfSetter(a)}),c.create=function(e){return new c(e)},c.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.writeStream&&Object.hasOwnProperty.call(e,"writeStream")&&t.uint32(10).string(e.writeStream),null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&g.google.protobuf.Int64Value.encode(e.offset,t.uint32(18).fork(),o+1).ldelim(),null!=e.protoRows&&Object.hasOwnProperty.call(e,"protoRows")&&g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.encode(e.protoRows,t.uint32(34).fork(),o+1).ldelim(),null!=e.arrowRows&&Object.hasOwnProperty.call(e,"arrowRows")&&g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ArrowData.encode(e.arrowRows,t.uint32(42).fork(),o+1).ldelim(),null!=e.traceId&&Object.hasOwnProperty.call(e,"traceId")&&t.uint32(50).string(e.traceId),null!=e.missingValueInterpretations&&Object.hasOwnProperty.call(e,"missingValueInterpretations"))for(var r=Object.keys(e.missingValueInterpretations),n=0;n<r.length;++n)t.uint32(58).fork().uint32(10).string(r[n]).uint32(16).int32(e.missingValueInterpretations[r[n]]).ldelim();return null!=e.defaultMissingValueInterpretation&&Object.hasOwnProperty.call(e,"defaultMissingValueInterpretation")&&t.uint32(64).int32(e.defaultMissingValueInterpretation),t},c.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},c.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.AppendRowsRequest;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.writeStream=e.string();break;case 2:i.offset=g.google.protobuf.Int64Value.decode(e,e.uint32(),void 0,r+1);break;case 4:i.protoRows=g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.decode(e,e.uint32(),void 0,r+1);break;case 5:i.arrowRows=g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ArrowData.decode(e,e.uint32(),void 0,r+1);break;case 6:i.traceId=e.string();break;case 7:i.missingValueInterpretations===d.emptyObject&&(i.missingValueInterpretations={});for(var l=e.uint32()+e.pos,s="",c=0;e.pos<l;){var u=e.uint32();switch(u>>>3){case 1:s=e.string();break;case 2:c=e.int32();break;default:e.skipType(7&u,r)}}"__proto__"===s&&d.makeProp(i.missingValueInterpretations,s),i.missingValueInterpretations[s]=c;break;case 8:i.defaultMissingValueInterpretation=e.int32();break;default:e.skipType(7&a,r)}}return i},c.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},c.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";var o,r={};if(null!=e.writeStream&&Object.hasOwnProperty.call(e,"writeStream")&&!d.isString(e.writeStream))return"writeStream: string expected";if(null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&(o=g.google.protobuf.Int64Value.verify(e.offset,t+1)))return"offset."+o;if(null!=e.protoRows&&Object.hasOwnProperty.call(e,"protoRows")&&(o=g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.verify(e.protoRows,t+(r.rows=1))))return"protoRows."+o;if(null!=e.arrowRows&&Object.hasOwnProperty.call(e,"arrowRows")){if(1===r.rows)return"rows: multiple values";if(o=g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ArrowData.verify(e.arrowRows,t+(r.rows=1)))return"arrowRows."+o}if(null!=e.traceId&&Object.hasOwnProperty.call(e,"traceId")&&!d.isString(e.traceId))return"traceId: string expected";if(null!=e.missingValueInterpretations&&Object.hasOwnProperty.call(e,"missingValueInterpretations")){if(!d.isObject(e.missingValueInterpretations))return"missingValueInterpretations: object expected";for(var n=Object.keys(e.missingValueInterpretations),i=0;i<n.length;++i)switch(e.missingValueInterpretations[n[i]]){default:return"missingValueInterpretations: enum value{k:string} expected";case 0:case 1:case 2:}}if(null!=e.defaultMissingValueInterpretation&&Object.hasOwnProperty.call(e,"defaultMissingValueInterpretation"))switch(e.defaultMissingValueInterpretation){default:return"defaultMissingValueInterpretation: enum value expected";case 0:case 1:case 2:}return null},c.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.AppendRowsRequest)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.AppendRowsRequest;if(null!=e.writeStream&&(o.writeStream=String(e.writeStream)),null!=e.offset){if(!d.isObject(e.offset))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsRequest.offset: object expected");o.offset=g.google.protobuf.Int64Value.fromObject(e.offset,t+1)}if(null!=e.protoRows){if(!d.isObject(e.protoRows))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsRequest.protoRows: object expected");o.protoRows=g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.fromObject(e.protoRows,t+1)}if(null!=e.arrowRows){if(!d.isObject(e.arrowRows))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsRequest.arrowRows: object expected");o.arrowRows=g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ArrowData.fromObject(e.arrowRows,t+1)}if(null!=e.traceId&&(o.traceId=String(e.traceId)),e.missingValueInterpretations){if(!d.isObject(e.missingValueInterpretations))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsRequest.missingValueInterpretations: object expected");o.missingValueInterpretations={};for(var r=Object.keys(e.missingValueInterpretations),n=0;n<r.length;++n)switch("__proto__"===r[n]&&d.makeProp(o.missingValueInterpretations,r[n]),e.missingValueInterpretations[r[n]]){default:"number"==typeof e.missingValueInterpretations[r[n]]&&(o.missingValueInterpretations[r[n]]=e.missingValueInterpretations[r[n]]);break;case"MISSING_VALUE_INTERPRETATION_UNSPECIFIED":case 0:o.missingValueInterpretations[r[n]]=0;break;case"NULL_VALUE":case 1:o.missingValueInterpretations[r[n]]=1;break;case"DEFAULT_VALUE":case 2:o.missingValueInterpretations[r[n]]=2}}switch(e.defaultMissingValueInterpretation){default:"number"==typeof e.defaultMissingValueInterpretation&&(o.defaultMissingValueInterpretation=e.defaultMissingValueInterpretation);break;case"MISSING_VALUE_INTERPRETATION_UNSPECIFIED":case 0:o.defaultMissingValueInterpretation=0;break;case"NULL_VALUE":case 1:o.defaultMissingValueInterpretation=1;break;case"DEFAULT_VALUE":case 2:o.defaultMissingValueInterpretation=2}return o},c.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,n={};if((t.objects||t.defaults)&&(n.missingValueInterpretations={}),t.defaults&&(n.writeStream="",n.offset=null,n.traceId="",n.defaultMissingValueInterpretation=t.enums===String?"MISSING_VALUE_INTERPRETATION_UNSPECIFIED":0),null!=e.writeStream&&Object.hasOwnProperty.call(e,"writeStream")&&(n.writeStream=e.writeStream),null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&(n.offset=g.google.protobuf.Int64Value.toObject(e.offset,t,o+1)),null!=e.protoRows&&Object.hasOwnProperty.call(e,"protoRows")&&(n.protoRows=g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.toObject(e.protoRows,t,o+1),t.oneofs)&&(n.rows="protoRows"),null!=e.arrowRows&&Object.hasOwnProperty.call(e,"arrowRows")&&(n.arrowRows=g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ArrowData.toObject(e.arrowRows,t,o+1),t.oneofs)&&(n.rows="arrowRows"),null!=e.traceId&&Object.hasOwnProperty.call(e,"traceId")&&(n.traceId=e.traceId),e.missingValueInterpretations&&(r=Object.keys(e.missingValueInterpretations)).length){n.missingValueInterpretations={};for(var i=0;i<r.length;++i)"__proto__"===r[i]&&d.makeProp(n.missingValueInterpretations,r[i]),n.missingValueInterpretations[r[i]]=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation[e.missingValueInterpretations[r[i]]]?e.missingValueInterpretations[r[i]]:g.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation[e.missingValueInterpretations[r[i]]]}return null!=e.defaultMissingValueInterpretation&&Object.hasOwnProperty.call(e,"defaultMissingValueInterpretation")&&(n.defaultMissingValueInterpretation=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation[e.defaultMissingValueInterpretation]?e.defaultMissingValueInterpretation:g.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation[e.defaultMissingValueInterpretation]),n},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.cloud.bigquery.storage.v1.AppendRowsRequest"},c.ArrowData=(te.prototype.writerSchema=null,te.prototype.rows=null,te.create=function(e){return new te(e)},te.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.writerSchema&&Object.hasOwnProperty.call(e,"writerSchema")&&g.google.cloud.bigquery.storage.v1.ArrowSchema.encode(e.writerSchema,t.uint32(10).fork(),o+1).ldelim(),null!=e.rows&&Object.hasOwnProperty.call(e,"rows")&&g.google.cloud.bigquery.storage.v1.ArrowRecordBatch.encode(e.rows,t.uint32(18).fork(),o+1).ldelim(),t},te.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},te.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ArrowData;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.writerSchema=g.google.cloud.bigquery.storage.v1.ArrowSchema.decode(e,e.uint32(),void 0,r+1);break;case 2:i.rows=g.google.cloud.bigquery.storage.v1.ArrowRecordBatch.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},te.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},te.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";var o;if(null!=e.writerSchema&&Object.hasOwnProperty.call(e,"writerSchema")&&(o=g.google.cloud.bigquery.storage.v1.ArrowSchema.verify(e.writerSchema,t+1)))return"writerSchema."+o;if(null!=e.rows&&Object.hasOwnProperty.call(e,"rows")&&(o=g.google.cloud.bigquery.storage.v1.ArrowRecordBatch.verify(e.rows,t+1)))return"rows."+o;return null},te.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ArrowData)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsRequest.ArrowData: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ArrowData;if(null!=e.writerSchema){if(!d.isObject(e.writerSchema))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsRequest.ArrowData.writerSchema: object expected");o.writerSchema=g.google.cloud.bigquery.storage.v1.ArrowSchema.fromObject(e.writerSchema,t+1)}if(null!=e.rows){if(!d.isObject(e.rows))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsRequest.ArrowData.rows: object expected");o.rows=g.google.cloud.bigquery.storage.v1.ArrowRecordBatch.fromObject(e.rows,t+1)}return o},te.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.writerSchema=null,r.rows=null),null!=e.writerSchema&&Object.hasOwnProperty.call(e,"writerSchema")&&(r.writerSchema=g.google.cloud.bigquery.storage.v1.ArrowSchema.toObject(e.writerSchema,t,o+1)),null!=e.rows&&Object.hasOwnProperty.call(e,"rows")&&(r.rows=g.google.cloud.bigquery.storage.v1.ArrowRecordBatch.toObject(e.rows,t,o+1)),r},te.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},te.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.AppendRowsRequest.ArrowData"},te),c.ProtoData=(oe.prototype.writerSchema=null,oe.prototype.rows=null,oe.create=function(e){return new oe(e)},oe.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.writerSchema&&Object.hasOwnProperty.call(e,"writerSchema")&&g.google.cloud.bigquery.storage.v1.ProtoSchema.encode(e.writerSchema,t.uint32(10).fork(),o+1).ldelim(),null!=e.rows&&Object.hasOwnProperty.call(e,"rows")&&g.google.cloud.bigquery.storage.v1.ProtoRows.encode(e.rows,t.uint32(18).fork(),o+1).ldelim(),t},oe.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},oe.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.writerSchema=g.google.cloud.bigquery.storage.v1.ProtoSchema.decode(e,e.uint32(),void 0,r+1);break;case 2:i.rows=g.google.cloud.bigquery.storage.v1.ProtoRows.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},oe.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},oe.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";var o;if(null!=e.writerSchema&&Object.hasOwnProperty.call(e,"writerSchema")&&(o=g.google.cloud.bigquery.storage.v1.ProtoSchema.verify(e.writerSchema,t+1)))return"writerSchema."+o;if(null!=e.rows&&Object.hasOwnProperty.call(e,"rows")&&(o=g.google.cloud.bigquery.storage.v1.ProtoRows.verify(e.rows,t+1)))return"rows."+o;return null},oe.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData;if(null!=e.writerSchema){if(!d.isObject(e.writerSchema))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.writerSchema: object expected");o.writerSchema=g.google.cloud.bigquery.storage.v1.ProtoSchema.fromObject(e.writerSchema,t+1)}if(null!=e.rows){if(!d.isObject(e.rows))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.rows: object expected");o.rows=g.google.cloud.bigquery.storage.v1.ProtoRows.fromObject(e.rows,t+1)}return o},oe.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.writerSchema=null,r.rows=null),null!=e.writerSchema&&Object.hasOwnProperty.call(e,"writerSchema")&&(r.writerSchema=g.google.cloud.bigquery.storage.v1.ProtoSchema.toObject(e.writerSchema,t,o+1)),null!=e.rows&&Object.hasOwnProperty.call(e,"rows")&&(r.rows=g.google.cloud.bigquery.storage.v1.ProtoRows.toObject(e.rows,t,o+1)),r},oe.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},oe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData"},oe),c.MissingValueInterpretation=(a={},(t=Object.create(a))[a[0]="MISSING_VALUE_INTERPRETATION_UNSPECIFIED"]=0,t[a[1]="NULL_VALUE"]=1,t[a[2]="DEFAULT_VALUE"]=2,t),c),e.AppendRowsResponse=(u.prototype.appendResult=null,u.prototype.error=null,u.prototype.updatedSchema=null,u.prototype.rowErrors=d.emptyArray,u.prototype.writeStream="",Object.defineProperty(u.prototype,"response",{get:d.oneOfGetter(a=["appendResult","error"]),set:d.oneOfSetter(a)}),u.create=function(e){return new u(e)},u.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.appendResult&&Object.hasOwnProperty.call(e,"appendResult")&&g.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.encode(e.appendResult,t.uint32(10).fork(),o+1).ldelim(),null!=e.error&&Object.hasOwnProperty.call(e,"error")&&g.google.rpc.Status.encode(e.error,t.uint32(18).fork(),o+1).ldelim(),null!=e.updatedSchema&&Object.hasOwnProperty.call(e,"updatedSchema")&&g.google.cloud.bigquery.storage.v1.TableSchema.encode(e.updatedSchema,t.uint32(26).fork(),o+1).ldelim(),null!=e.rowErrors&&e.rowErrors.length)for(var r=0;r<e.rowErrors.length;++r)g.google.cloud.bigquery.storage.v1.RowError.encode(e.rowErrors[r],t.uint32(34).fork(),o+1).ldelim();return null!=e.writeStream&&Object.hasOwnProperty.call(e,"writeStream")&&t.uint32(42).string(e.writeStream),t},u.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},u.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.AppendRowsResponse;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.appendResult=g.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.decode(e,e.uint32(),void 0,r+1);break;case 2:i.error=g.google.rpc.Status.decode(e,e.uint32(),void 0,r+1);break;case 3:i.updatedSchema=g.google.cloud.bigquery.storage.v1.TableSchema.decode(e,e.uint32(),void 0,r+1);break;case 4:i.rowErrors&&i.rowErrors.length||(i.rowErrors=[]),i.rowErrors.push(g.google.cloud.bigquery.storage.v1.RowError.decode(e,e.uint32(),void 0,r+1));break;case 5:i.writeStream=e.string();break;default:e.skipType(7&a,r)}}return i},u.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},u.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";var o={};if(null!=e.appendResult&&Object.hasOwnProperty.call(e,"appendResult")&&(r=g.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.verify(e.appendResult,t+(o.response=1))))return"appendResult."+r;if(null!=e.error&&Object.hasOwnProperty.call(e,"error")){if(1===o.response)return"response: multiple values";if(r=g.google.rpc.Status.verify(e.error,t+(o.response=1)))return"error."+r}if(null!=e.updatedSchema&&Object.hasOwnProperty.call(e,"updatedSchema")&&(r=g.google.cloud.bigquery.storage.v1.TableSchema.verify(e.updatedSchema,t+1)))return"updatedSchema."+r;if(null!=e.rowErrors&&Object.hasOwnProperty.call(e,"rowErrors")){if(!Array.isArray(e.rowErrors))return"rowErrors: array expected";for(var r,n=0;n<e.rowErrors.length;++n)if(r=g.google.cloud.bigquery.storage.v1.RowError.verify(e.rowErrors[n],t+1))return"rowErrors."+r}return null!=e.writeStream&&Object.hasOwnProperty.call(e,"writeStream")&&!d.isString(e.writeStream)?"writeStream: string expected":null},u.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.AppendRowsResponse)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsResponse: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.AppendRowsResponse;if(null!=e.appendResult){if(!d.isObject(e.appendResult))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsResponse.appendResult: object expected");o.appendResult=g.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.fromObject(e.appendResult,t+1)}if(null!=e.error){if(!d.isObject(e.error))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsResponse.error: object expected");o.error=g.google.rpc.Status.fromObject(e.error,t+1)}if(null!=e.updatedSchema){if(!d.isObject(e.updatedSchema))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsResponse.updatedSchema: object expected");o.updatedSchema=g.google.cloud.bigquery.storage.v1.TableSchema.fromObject(e.updatedSchema,t+1)}if(e.rowErrors){if(!Array.isArray(e.rowErrors))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsResponse.rowErrors: array expected");o.rowErrors=[];for(var r=0;r<e.rowErrors.length;++r){if(!d.isObject(e.rowErrors[r]))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsResponse.rowErrors: object expected");o.rowErrors[r]=g.google.cloud.bigquery.storage.v1.RowError.fromObject(e.rowErrors[r],t+1)}}return null!=e.writeStream&&(o.writeStream=String(e.writeStream)),o},u.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.rowErrors=[]),t.defaults&&(r.updatedSchema=null,r.writeStream=""),null!=e.appendResult&&Object.hasOwnProperty.call(e,"appendResult")&&(r.appendResult=g.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.toObject(e.appendResult,t,o+1),t.oneofs)&&(r.response="appendResult"),null!=e.error&&Object.hasOwnProperty.call(e,"error")&&(r.error=g.google.rpc.Status.toObject(e.error,t,o+1),t.oneofs)&&(r.response="error"),null!=e.updatedSchema&&Object.hasOwnProperty.call(e,"updatedSchema")&&(r.updatedSchema=g.google.cloud.bigquery.storage.v1.TableSchema.toObject(e.updatedSchema,t,o+1)),e.rowErrors&&e.rowErrors.length){r.rowErrors=[];for(var n=0;n<e.rowErrors.length;++n)r.rowErrors[n]=g.google.cloud.bigquery.storage.v1.RowError.toObject(e.rowErrors[n],t,o+1)}return null!=e.writeStream&&Object.hasOwnProperty.call(e,"writeStream")&&(r.writeStream=e.writeStream),r},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.cloud.bigquery.storage.v1.AppendRowsResponse"},u.AppendResult=(re.prototype.offset=null,re.create=function(e){return new re(e)},re.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&g.google.protobuf.Int64Value.encode(e.offset,t.uint32(10).fork(),o+1).ldelim(),t},re.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},re.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.offset=g.google.protobuf.Int64Value.decode(e,e.uint32(),void 0,r+1):e.skipType(7&a,r)}return i},re.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},re.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.offset&&Object.hasOwnProperty.call(e,"offset")){e=g.google.protobuf.Int64Value.verify(e.offset,t+1);if(e)return"offset."+e}return null},re.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult;if(null!=e.offset){if(!d.isObject(e.offset))throw TypeError(".google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.offset: object expected");o.offset=g.google.protobuf.Int64Value.fromObject(e.offset,t+1)}return o},re.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.offset=null),null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&(r.offset=g.google.protobuf.Int64Value.toObject(e.offset,t,o+1)),r},re.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},re.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult"},re),u),e.GetWriteStreamRequest=(ne.prototype.name="",ne.prototype.view=0,ne.create=function(e){return new ne(e)},ne.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.view&&Object.hasOwnProperty.call(e,"view")&&t.uint32(24).int32(e.view),t},ne.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ne.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.GetWriteStreamRequest;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 3:i.view=e.int32();break;default:e.skipType(7&a,r)}}return i},ne.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ne.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name))return"name: string expected";if(null!=e.view&&Object.hasOwnProperty.call(e,"view"))switch(e.view){default:return"view: enum value expected";case 0:case 1:case 2:}return null},ne.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.GetWriteStreamRequest)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.GetWriteStreamRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.GetWriteStreamRequest;switch(null!=e.name&&(o.name=String(e.name)),e.view){default:"number"==typeof e.view&&(o.view=e.view);break;case"WRITE_STREAM_VIEW_UNSPECIFIED":case 0:o.view=0;break;case"BASIC":case 1:o.view=1;break;case"FULL":case 2:o.view=2}return o},ne.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.name="",o.view=t.enums===String?"WRITE_STREAM_VIEW_UNSPECIFIED":0),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(o.name=e.name),null!=e.view&&Object.hasOwnProperty.call(e,"view")&&(o.view=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.WriteStreamView[e.view]?e.view:g.google.cloud.bigquery.storage.v1.WriteStreamView[e.view]),o},ne.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ne.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.GetWriteStreamRequest"},ne),e.BatchCommitWriteStreamsRequest=(ie.prototype.parent="",ie.prototype.writeStreams=d.emptyArray,ie.create=function(e){return new ie(e)},ie.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.parent&&Object.hasOwnProperty.call(e,"parent")&&t.uint32(10).string(e.parent),null!=e.writeStreams&&e.writeStreams.length)for(var r=0;r<e.writeStreams.length;++r)t.uint32(18).string(e.writeStreams[r]);return t},ie.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ie.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.parent=e.string();break;case 2:i.writeStreams&&i.writeStreams.length||(i.writeStreams=[]),i.writeStreams.push(e.string());break;default:e.skipType(7&a,r)}}return i},ie.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ie.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.parent&&Object.hasOwnProperty.call(e,"parent")&&!d.isString(e.parent))return"parent: string expected";if(null!=e.writeStreams&&Object.hasOwnProperty.call(e,"writeStreams")){if(!Array.isArray(e.writeStreams))return"writeStreams: array expected";for(var o=0;o<e.writeStreams.length;++o)if(!d.isString(e.writeStreams[o]))return"writeStreams: string[] expected"}return null},ie.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest;if(null!=e.parent&&(o.parent=String(e.parent)),e.writeStreams){if(!Array.isArray(e.writeStreams))throw TypeError(".google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.writeStreams: array expected");o.writeStreams=[];for(var r=0;r<e.writeStreams.length;++r)o.writeStreams[r]=String(e.writeStreams[r])}return o},ie.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.writeStreams=[]),t.defaults&&(r.parent=""),null!=e.parent&&Object.hasOwnProperty.call(e,"parent")&&(r.parent=e.parent),e.writeStreams&&e.writeStreams.length){r.writeStreams=[];for(var n=0;n<e.writeStreams.length;++n)r.writeStreams[n]=e.writeStreams[n]}return r},ie.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ie.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest"},ie),e.BatchCommitWriteStreamsResponse=(ae.prototype.commitTime=null,ae.prototype.streamErrors=d.emptyArray,ae.create=function(e){return new ae(e)},ae.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.commitTime&&Object.hasOwnProperty.call(e,"commitTime")&&g.google.protobuf.Timestamp.encode(e.commitTime,t.uint32(10).fork(),o+1).ldelim(),null!=e.streamErrors&&e.streamErrors.length)for(var r=0;r<e.streamErrors.length;++r)g.google.cloud.bigquery.storage.v1.StorageError.encode(e.streamErrors[r],t.uint32(18).fork(),o+1).ldelim();return t},ae.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ae.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.commitTime=g.google.protobuf.Timestamp.decode(e,e.uint32(),void 0,r+1);break;case 2:i.streamErrors&&i.streamErrors.length||(i.streamErrors=[]),i.streamErrors.push(g.google.cloud.bigquery.storage.v1.StorageError.decode(e,e.uint32(),void 0,r+1));break;default:e.skipType(7&a,r)}}return i},ae.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ae.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.commitTime&&Object.hasOwnProperty.call(e,"commitTime")&&(o=g.google.protobuf.Timestamp.verify(e.commitTime,t+1)))return"commitTime."+o;if(null!=e.streamErrors&&Object.hasOwnProperty.call(e,"streamErrors")){if(!Array.isArray(e.streamErrors))return"streamErrors: array expected";for(var o,r=0;r<e.streamErrors.length;++r)if(o=g.google.cloud.bigquery.storage.v1.StorageError.verify(e.streamErrors[r],t+1))return"streamErrors."+o}return null},ae.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse;if(null!=e.commitTime){if(!d.isObject(e.commitTime))throw TypeError(".google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.commitTime: object expected");o.commitTime=g.google.protobuf.Timestamp.fromObject(e.commitTime,t+1)}if(e.streamErrors){if(!Array.isArray(e.streamErrors))throw TypeError(".google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.streamErrors: array expected");o.streamErrors=[];for(var r=0;r<e.streamErrors.length;++r){if(!d.isObject(e.streamErrors[r]))throw TypeError(".google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.streamErrors: object expected");o.streamErrors[r]=g.google.cloud.bigquery.storage.v1.StorageError.fromObject(e.streamErrors[r],t+1)}}return o},ae.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.streamErrors=[]),t.defaults&&(r.commitTime=null),null!=e.commitTime&&Object.hasOwnProperty.call(e,"commitTime")&&(r.commitTime=g.google.protobuf.Timestamp.toObject(e.commitTime,t,o+1)),e.streamErrors&&e.streamErrors.length){r.streamErrors=[];for(var n=0;n<e.streamErrors.length;++n)r.streamErrors[n]=g.google.cloud.bigquery.storage.v1.StorageError.toObject(e.streamErrors[n],t,o+1)}return r},ae.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ae.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse"},ae),e.FinalizeWriteStreamRequest=(le.prototype.name="",le.create=function(e){return new le(e)},le.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),t},le.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},le.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.name=e.string():e.skipType(7&a,r)}return i},le.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},le.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name)?"name: string expected":null},le.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest;return null!=e.name&&(t.name=String(e.name)),t},le.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.name=""),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(o.name=e.name),o},le.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},le.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest"},le),e.FinalizeWriteStreamResponse=(se.prototype.rowCount=d.Long?d.Long.fromBits(0,0,!1):0,se.create=function(e){return new se(e)},se.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.rowCount&&Object.hasOwnProperty.call(e,"rowCount")&&t.uint32(8).int64(e.rowCount),t},se.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},se.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.rowCount=e.int64():e.skipType(7&a,r)}return i},se.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},se.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.rowCount&&Object.hasOwnProperty.call(e,"rowCount")&&!(d.isInteger(e.rowCount)||e.rowCount&&d.isInteger(e.rowCount.low)&&d.isInteger(e.rowCount.high))?"rowCount: integer|Long expected":null},se.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse;return null!=e.rowCount&&(d.Long?t.rowCount=d.Long.fromValue(e.rowCount,!1):"string"==typeof e.rowCount?t.rowCount=parseInt(e.rowCount,10):"number"==typeof e.rowCount?t.rowCount=e.rowCount:"object"==typeof e.rowCount&&(t.rowCount=new d.LongBits(e.rowCount.low>>>0,e.rowCount.high>>>0).toNumber())),t},se.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,o={};return t.defaults&&(d.Long?(r=new d.Long(0,0,!1),o.rowCount=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):o.rowCount=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0),null!=e.rowCount&&Object.hasOwnProperty.call(e,"rowCount")&&("undefined"!=typeof BigInt&&t.longs===BigInt?o.rowCount="number"==typeof e.rowCount?BigInt(e.rowCount):d.Long.fromBits(e.rowCount.low>>>0,e.rowCount.high>>>0,!1).toBigInt():"number"==typeof e.rowCount?o.rowCount=t.longs===String?String(e.rowCount):e.rowCount:o.rowCount=t.longs===String?d.Long.prototype.toString.call(e.rowCount):t.longs===Number?new d.LongBits(e.rowCount.low>>>0,e.rowCount.high>>>0).toNumber():e.rowCount),o},se.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},se.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse"},se),e.FlushRowsRequest=(ce.prototype.writeStream="",ce.prototype.offset=null,ce.create=function(e){return new ce(e)},ce.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.writeStream&&Object.hasOwnProperty.call(e,"writeStream")&&t.uint32(10).string(e.writeStream),null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&g.google.protobuf.Int64Value.encode(e.offset,t.uint32(18).fork(),o+1).ldelim(),t},ce.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ce.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.FlushRowsRequest;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.writeStream=e.string();break;case 2:i.offset=g.google.protobuf.Int64Value.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},ce.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ce.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.writeStream&&Object.hasOwnProperty.call(e,"writeStream")&&!d.isString(e.writeStream))return"writeStream: string expected";if(null!=e.offset&&Object.hasOwnProperty.call(e,"offset")){e=g.google.protobuf.Int64Value.verify(e.offset,t+1);if(e)return"offset."+e}return null},ce.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.FlushRowsRequest)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.FlushRowsRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.FlushRowsRequest;if(null!=e.writeStream&&(o.writeStream=String(e.writeStream)),null!=e.offset){if(!d.isObject(e.offset))throw TypeError(".google.cloud.bigquery.storage.v1.FlushRowsRequest.offset: object expected");o.offset=g.google.protobuf.Int64Value.fromObject(e.offset,t+1)}return o},ce.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.writeStream="",r.offset=null),null!=e.writeStream&&Object.hasOwnProperty.call(e,"writeStream")&&(r.writeStream=e.writeStream),null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&(r.offset=g.google.protobuf.Int64Value.toObject(e.offset,t,o+1)),r},ce.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ce.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.FlushRowsRequest"},ce),e.FlushRowsResponse=(ue.prototype.offset=d.Long?d.Long.fromBits(0,0,!1):0,ue.create=function(e){return new ue(e)},ue.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&t.uint32(8).int64(e.offset),t},ue.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ue.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.FlushRowsResponse;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.offset=e.int64():e.skipType(7&a,r)}return i},ue.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ue.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&!(d.isInteger(e.offset)||e.offset&&d.isInteger(e.offset.low)&&d.isInteger(e.offset.high))?"offset: integer|Long expected":null},ue.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.FlushRowsResponse)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.FlushRowsResponse: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.cloud.bigquery.storage.v1.FlushRowsResponse;return null!=e.offset&&(d.Long?t.offset=d.Long.fromValue(e.offset,!1):"string"==typeof e.offset?t.offset=parseInt(e.offset,10):"number"==typeof e.offset?t.offset=e.offset:"object"==typeof e.offset&&(t.offset=new d.LongBits(e.offset.low>>>0,e.offset.high>>>0).toNumber())),t},ue.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,o={};return t.defaults&&(d.Long?(r=new d.Long(0,0,!1),o.offset=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):o.offset=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0),null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&("undefined"!=typeof BigInt&&t.longs===BigInt?o.offset="number"==typeof e.offset?BigInt(e.offset):d.Long.fromBits(e.offset.low>>>0,e.offset.high>>>0,!1).toBigInt():"number"==typeof e.offset?o.offset=t.longs===String?String(e.offset):e.offset:o.offset=t.longs===String?d.Long.prototype.toString.call(e.offset):t.longs===Number?new d.LongBits(e.offset.low>>>0,e.offset.high>>>0).toNumber():e.offset),o},ue.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ue.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.FlushRowsResponse"},ue),e.StorageError=(pe.prototype.code=0,pe.prototype.entity="",pe.prototype.errorMessage="",pe.create=function(e){return new pe(e)},pe.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.code&&Object.hasOwnProperty.call(e,"code")&&t.uint32(8).int32(e.code),null!=e.entity&&Object.hasOwnProperty.call(e,"entity")&&t.uint32(18).string(e.entity),null!=e.errorMessage&&Object.hasOwnProperty.call(e,"errorMessage")&&t.uint32(26).string(e.errorMessage),t},pe.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},pe.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.StorageError;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.code=e.int32();break;case 2:i.entity=e.string();break;case 3:i.errorMessage=e.string();break;default:e.skipType(7&a,r)}}return i},pe.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},pe.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.code&&Object.hasOwnProperty.call(e,"code"))switch(e.code){default:return"code: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:}return null!=e.entity&&Object.hasOwnProperty.call(e,"entity")&&!d.isString(e.entity)?"entity: string expected":null!=e.errorMessage&&Object.hasOwnProperty.call(e,"errorMessage")&&!d.isString(e.errorMessage)?"errorMessage: string expected":null},pe.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.StorageError)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.StorageError: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.StorageError;switch(e.code){default:"number"==typeof e.code&&(o.code=e.code);break;case"STORAGE_ERROR_CODE_UNSPECIFIED":case 0:o.code=0;break;case"TABLE_NOT_FOUND":case 1:o.code=1;break;case"STREAM_ALREADY_COMMITTED":case 2:o.code=2;break;case"STREAM_NOT_FOUND":case 3:o.code=3;break;case"INVALID_STREAM_TYPE":case 4:o.code=4;break;case"INVALID_STREAM_STATE":case 5:o.code=5;break;case"STREAM_FINALIZED":case 6:o.code=6;break;case"SCHEMA_MISMATCH_EXTRA_FIELDS":case 7:o.code=7;break;case"OFFSET_ALREADY_EXISTS":case 8:o.code=8;break;case"OFFSET_OUT_OF_RANGE":case 9:o.code=9;break;case"CMEK_NOT_PROVIDED":case 10:o.code=10;break;case"INVALID_CMEK_PROVIDED":case 11:o.code=11;break;case"CMEK_ENCRYPTION_ERROR":case 12:o.code=12;break;case"KMS_SERVICE_ERROR":case 13:o.code=13;break;case"KMS_PERMISSION_DENIED":case 14:o.code=14}return null!=e.entity&&(o.entity=String(e.entity)),null!=e.errorMessage&&(o.errorMessage=String(e.errorMessage)),o},pe.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.code=t.enums===String?"STORAGE_ERROR_CODE_UNSPECIFIED":0,o.entity="",o.errorMessage=""),null!=e.code&&Object.hasOwnProperty.call(e,"code")&&(o.code=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode[e.code]?e.code:g.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode[e.code]),null!=e.entity&&Object.hasOwnProperty.call(e,"entity")&&(o.entity=e.entity),null!=e.errorMessage&&Object.hasOwnProperty.call(e,"errorMessage")&&(o.errorMessage=e.errorMessage),o},pe.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},pe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.StorageError"},pe.StorageErrorCode=(t={},(a=Object.create(t))[t[0]="STORAGE_ERROR_CODE_UNSPECIFIED"]=0,a[t[1]="TABLE_NOT_FOUND"]=1,a[t[2]="STREAM_ALREADY_COMMITTED"]=2,a[t[3]="STREAM_NOT_FOUND"]=3,a[t[4]="INVALID_STREAM_TYPE"]=4,a[t[5]="INVALID_STREAM_STATE"]=5,a[t[6]="STREAM_FINALIZED"]=6,a[t[7]="SCHEMA_MISMATCH_EXTRA_FIELDS"]=7,a[t[8]="OFFSET_ALREADY_EXISTS"]=8,a[t[9]="OFFSET_OUT_OF_RANGE"]=9,a[t[10]="CMEK_NOT_PROVIDED"]=10,a[t[11]="INVALID_CMEK_PROVIDED"]=11,a[t[12]="CMEK_ENCRYPTION_ERROR"]=12,a[t[13]="KMS_SERVICE_ERROR"]=13,a[t[14]="KMS_PERMISSION_DENIED"]=14,a),pe),e.RowError=(de.prototype.index=d.Long?d.Long.fromBits(0,0,!1):0,de.prototype.code=0,de.prototype.message="",de.create=function(e){return new de(e)},de.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.index&&Object.hasOwnProperty.call(e,"index")&&t.uint32(8).int64(e.index),null!=e.code&&Object.hasOwnProperty.call(e,"code")&&t.uint32(16).int32(e.code),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&t.uint32(26).string(e.message),t},de.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},de.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.RowError;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.index=e.int64();break;case 2:i.code=e.int32();break;case 3:i.message=e.string();break;default:e.skipType(7&a,r)}}return i},de.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},de.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.index&&Object.hasOwnProperty.call(e,"index")&&!(d.isInteger(e.index)||e.index&&d.isInteger(e.index.low)&&d.isInteger(e.index.high)))return"index: integer|Long expected";if(null!=e.code&&Object.hasOwnProperty.call(e,"code"))switch(e.code){default:return"code: enum value expected";case 0:case 1:}return null!=e.message&&Object.hasOwnProperty.call(e,"message")&&!d.isString(e.message)?"message: string expected":null},de.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.RowError)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.RowError: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.RowError;switch(null!=e.index&&(d.Long?o.index=d.Long.fromValue(e.index,!1):"string"==typeof e.index?o.index=parseInt(e.index,10):"number"==typeof e.index?o.index=e.index:"object"==typeof e.index&&(o.index=new d.LongBits(e.index.low>>>0,e.index.high>>>0).toNumber())),e.code){default:"number"==typeof e.code&&(o.code=e.code);break;case"ROW_ERROR_CODE_UNSPECIFIED":case 0:o.code=0;break;case"FIELDS_ERROR":case 1:o.code=1}return null!=e.message&&(o.message=String(e.message)),o},de.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,o={};return t.defaults&&(d.Long?(r=new d.Long(0,0,!1),o.index=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):o.index=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,o.code=t.enums===String?"ROW_ERROR_CODE_UNSPECIFIED":0,o.message=""),null!=e.index&&Object.hasOwnProperty.call(e,"index")&&("undefined"!=typeof BigInt&&t.longs===BigInt?o.index="number"==typeof e.index?BigInt(e.index):d.Long.fromBits(e.index.low>>>0,e.index.high>>>0,!1).toBigInt():"number"==typeof e.index?o.index=t.longs===String?String(e.index):e.index:o.index=t.longs===String?d.Long.prototype.toString.call(e.index):t.longs===Number?new d.LongBits(e.index.low>>>0,e.index.high>>>0).toNumber():e.index),null!=e.code&&Object.hasOwnProperty.call(e,"code")&&(o.code=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.RowError.RowErrorCode[e.code]?e.code:g.google.cloud.bigquery.storage.v1.RowError.RowErrorCode[e.code]),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&(o.message=e.message),o},de.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},de.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.RowError"},de.RowErrorCode=(t={},(a=Object.create(t))[t[0]="ROW_ERROR_CODE_UNSPECIFIED"]=0,a[t[1]="FIELDS_ERROR"]=1,a),de),e.DataFormat=(t={},(a=Object.create(t))[t[0]="DATA_FORMAT_UNSPECIFIED"]=0,a[t[1]="AVRO"]=1,a[t[2]="ARROW"]=2,a),e.ReadSession=(f.prototype.name="",f.prototype.expireTime=null,f.prototype.dataFormat=0,f.prototype.avroSchema=null,f.prototype.arrowSchema=null,f.prototype.table="",f.prototype.tableModifiers=null,f.prototype.readOptions=null,f.prototype.streams=d.emptyArray,f.prototype.estimatedTotalBytesScanned=d.Long?d.Long.fromBits(0,0,!1):0,f.prototype.estimatedTotalPhysicalFileSize=d.Long?d.Long.fromBits(0,0,!1):0,f.prototype.estimatedRowCount=d.Long?d.Long.fromBits(0,0,!1):0,f.prototype.traceId="",Object.defineProperty(f.prototype,"schema",{get:d.oneOfGetter(t=["avroSchema","arrowSchema"]),set:d.oneOfSetter(t)}),f.create=function(e){return new f(e)},f.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.expireTime&&Object.hasOwnProperty.call(e,"expireTime")&&g.google.protobuf.Timestamp.encode(e.expireTime,t.uint32(18).fork(),o+1).ldelim(),null!=e.dataFormat&&Object.hasOwnProperty.call(e,"dataFormat")&&t.uint32(24).int32(e.dataFormat),null!=e.avroSchema&&Object.hasOwnProperty.call(e,"avroSchema")&&g.google.cloud.bigquery.storage.v1.AvroSchema.encode(e.avroSchema,t.uint32(34).fork(),o+1).ldelim(),null!=e.arrowSchema&&Object.hasOwnProperty.call(e,"arrowSchema")&&g.google.cloud.bigquery.storage.v1.ArrowSchema.encode(e.arrowSchema,t.uint32(42).fork(),o+1).ldelim(),null!=e.table&&Object.hasOwnProperty.call(e,"table")&&t.uint32(50).string(e.table),null!=e.tableModifiers&&Object.hasOwnProperty.call(e,"tableModifiers")&&g.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.encode(e.tableModifiers,t.uint32(58).fork(),o+1).ldelim(),null!=e.readOptions&&Object.hasOwnProperty.call(e,"readOptions")&&g.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.encode(e.readOptions,t.uint32(66).fork(),o+1).ldelim(),null!=e.streams&&e.streams.length)for(var r=0;r<e.streams.length;++r)g.google.cloud.bigquery.storage.v1.ReadStream.encode(e.streams[r],t.uint32(82).fork(),o+1).ldelim();return null!=e.estimatedTotalBytesScanned&&Object.hasOwnProperty.call(e,"estimatedTotalBytesScanned")&&t.uint32(96).int64(e.estimatedTotalBytesScanned),null!=e.traceId&&Object.hasOwnProperty.call(e,"traceId")&&t.uint32(106).string(e.traceId),null!=e.estimatedRowCount&&Object.hasOwnProperty.call(e,"estimatedRowCount")&&t.uint32(112).int64(e.estimatedRowCount),null!=e.estimatedTotalPhysicalFileSize&&Object.hasOwnProperty.call(e,"estimatedTotalPhysicalFileSize")&&t.uint32(120).int64(e.estimatedTotalPhysicalFileSize),t},f.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},f.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.ReadSession;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.expireTime=g.google.protobuf.Timestamp.decode(e,e.uint32(),void 0,r+1);break;case 3:i.dataFormat=e.int32();break;case 4:i.avroSchema=g.google.cloud.bigquery.storage.v1.AvroSchema.decode(e,e.uint32(),void 0,r+1);break;case 5:i.arrowSchema=g.google.cloud.bigquery.storage.v1.ArrowSchema.decode(e,e.uint32(),void 0,r+1);break;case 6:i.table=e.string();break;case 7:i.tableModifiers=g.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.decode(e,e.uint32(),void 0,r+1);break;case 8:i.readOptions=g.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.decode(e,e.uint32(),void 0,r+1);break;case 10:i.streams&&i.streams.length||(i.streams=[]),i.streams.push(g.google.cloud.bigquery.storage.v1.ReadStream.decode(e,e.uint32(),void 0,r+1));break;case 12:i.estimatedTotalBytesScanned=e.int64();break;case 15:i.estimatedTotalPhysicalFileSize=e.int64();break;case 14:i.estimatedRowCount=e.int64();break;case 13:i.traceId=e.string();break;default:e.skipType(7&a,r)}}return i},f.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},f.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";var o={};if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name))return"name: string expected";if(null!=e.expireTime&&Object.hasOwnProperty.call(e,"expireTime")&&(r=g.google.protobuf.Timestamp.verify(e.expireTime,t+1)))return"expireTime."+r;if(null!=e.dataFormat&&Object.hasOwnProperty.call(e,"dataFormat"))switch(e.dataFormat){default:return"dataFormat: enum value expected";case 0:case 1:case 2:}if(null!=e.avroSchema&&Object.hasOwnProperty.call(e,"avroSchema")&&(r=g.google.cloud.bigquery.storage.v1.AvroSchema.verify(e.avroSchema,t+(o.schema=1))))return"avroSchema."+r;if(null!=e.arrowSchema&&Object.hasOwnProperty.call(e,"arrowSchema")){if(1===o.schema)return"schema: multiple values";if(r=g.google.cloud.bigquery.storage.v1.ArrowSchema.verify(e.arrowSchema,t+(o.schema=1)))return"arrowSchema."+r}if(null!=e.table&&Object.hasOwnProperty.call(e,"table")&&!d.isString(e.table))return"table: string expected";if(null!=e.tableModifiers&&Object.hasOwnProperty.call(e,"tableModifiers")&&(r=g.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.verify(e.tableModifiers,t+1)))return"tableModifiers."+r;if(null!=e.readOptions&&Object.hasOwnProperty.call(e,"readOptions")&&(r=g.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.verify(e.readOptions,t+1)))return"readOptions."+r;if(null!=e.streams&&Object.hasOwnProperty.call(e,"streams")){if(!Array.isArray(e.streams))return"streams: array expected";for(var r,n=0;n<e.streams.length;++n)if(r=g.google.cloud.bigquery.storage.v1.ReadStream.verify(e.streams[n],t+1))return"streams."+r}return null!=e.estimatedTotalBytesScanned&&Object.hasOwnProperty.call(e,"estimatedTotalBytesScanned")&&!(d.isInteger(e.estimatedTotalBytesScanned)||e.estimatedTotalBytesScanned&&d.isInteger(e.estimatedTotalBytesScanned.low)&&d.isInteger(e.estimatedTotalBytesScanned.high))?"estimatedTotalBytesScanned: integer|Long expected":null!=e.estimatedTotalPhysicalFileSize&&Object.hasOwnProperty.call(e,"estimatedTotalPhysicalFileSize")&&!(d.isInteger(e.estimatedTotalPhysicalFileSize)||e.estimatedTotalPhysicalFileSize&&d.isInteger(e.estimatedTotalPhysicalFileSize.low)&&d.isInteger(e.estimatedTotalPhysicalFileSize.high))?"estimatedTotalPhysicalFileSize: integer|Long expected":null!=e.estimatedRowCount&&Object.hasOwnProperty.call(e,"estimatedRowCount")&&!(d.isInteger(e.estimatedRowCount)||e.estimatedRowCount&&d.isInteger(e.estimatedRowCount.low)&&d.isInteger(e.estimatedRowCount.high))?"estimatedRowCount: integer|Long expected":null!=e.traceId&&Object.hasOwnProperty.call(e,"traceId")&&!d.isString(e.traceId)?"traceId: string expected":null},f.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.ReadSession)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.ReadSession: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.ReadSession;if(null!=e.name&&(o.name=String(e.name)),null!=e.expireTime){if(!d.isObject(e.expireTime))throw TypeError(".google.cloud.bigquery.storage.v1.ReadSession.expireTime: object expected");o.expireTime=g.google.protobuf.Timestamp.fromObject(e.expireTime,t+1)}switch(e.dataFormat){default:"number"==typeof e.dataFormat&&(o.dataFormat=e.dataFormat);break;case"DATA_FORMAT_UNSPECIFIED":case 0:o.dataFormat=0;break;case"AVRO":case 1:o.dataFormat=1;break;case"ARROW":case 2:o.dataFormat=2}if(null!=e.avroSchema){if(!d.isObject(e.avroSchema))throw TypeError(".google.cloud.bigquery.storage.v1.ReadSession.avroSchema: object expected");o.avroSchema=g.google.cloud.bigquery.storage.v1.AvroSchema.fromObject(e.avroSchema,t+1)}if(null!=e.arrowSchema){if(!d.isObject(e.arrowSchema))throw TypeError(".google.cloud.bigquery.storage.v1.ReadSession.arrowSchema: object expected");o.arrowSchema=g.google.cloud.bigquery.storage.v1.ArrowSchema.fromObject(e.arrowSchema,t+1)}if(null!=e.table&&(o.table=String(e.table)),null!=e.tableModifiers){if(!d.isObject(e.tableModifiers))throw TypeError(".google.cloud.bigquery.storage.v1.ReadSession.tableModifiers: object expected");o.tableModifiers=g.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.fromObject(e.tableModifiers,t+1)}if(null!=e.readOptions){if(!d.isObject(e.readOptions))throw TypeError(".google.cloud.bigquery.storage.v1.ReadSession.readOptions: object expected");o.readOptions=g.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.fromObject(e.readOptions,t+1)}if(e.streams){if(!Array.isArray(e.streams))throw TypeError(".google.cloud.bigquery.storage.v1.ReadSession.streams: array expected");o.streams=[];for(var r=0;r<e.streams.length;++r){if(!d.isObject(e.streams[r]))throw TypeError(".google.cloud.bigquery.storage.v1.ReadSession.streams: object expected");o.streams[r]=g.google.cloud.bigquery.storage.v1.ReadStream.fromObject(e.streams[r],t+1)}}return null!=e.estimatedTotalBytesScanned&&(d.Long?o.estimatedTotalBytesScanned=d.Long.fromValue(e.estimatedTotalBytesScanned,!1):"string"==typeof e.estimatedTotalBytesScanned?o.estimatedTotalBytesScanned=parseInt(e.estimatedTotalBytesScanned,10):"number"==typeof e.estimatedTotalBytesScanned?o.estimatedTotalBytesScanned=e.estimatedTotalBytesScanned:"object"==typeof e.estimatedTotalBytesScanned&&(o.estimatedTotalBytesScanned=new d.LongBits(e.estimatedTotalBytesScanned.low>>>0,e.estimatedTotalBytesScanned.high>>>0).toNumber())),null!=e.estimatedTotalPhysicalFileSize&&(d.Long?o.estimatedTotalPhysicalFileSize=d.Long.fromValue(e.estimatedTotalPhysicalFileSize,!1):"string"==typeof e.estimatedTotalPhysicalFileSize?o.estimatedTotalPhysicalFileSize=parseInt(e.estimatedTotalPhysicalFileSize,10):"number"==typeof e.estimatedTotalPhysicalFileSize?o.estimatedTotalPhysicalFileSize=e.estimatedTotalPhysicalFileSize:"object"==typeof e.estimatedTotalPhysicalFileSize&&(o.estimatedTotalPhysicalFileSize=new d.LongBits(e.estimatedTotalPhysicalFileSize.low>>>0,e.estimatedTotalPhysicalFileSize.high>>>0).toNumber())),null!=e.estimatedRowCount&&(d.Long?o.estimatedRowCount=d.Long.fromValue(e.estimatedRowCount,!1):"string"==typeof e.estimatedRowCount?o.estimatedRowCount=parseInt(e.estimatedRowCount,10):"number"==typeof e.estimatedRowCount?o.estimatedRowCount=e.estimatedRowCount:"object"==typeof e.estimatedRowCount&&(o.estimatedRowCount=new d.LongBits(e.estimatedRowCount.low>>>0,e.estimatedRowCount.high>>>0).toNumber())),null!=e.traceId&&(o.traceId=String(e.traceId)),o},f.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,n={};if((t.arrays||t.defaults)&&(n.streams=[]),t.defaults&&(n.name="",n.expireTime=null,n.dataFormat=t.enums===String?"DATA_FORMAT_UNSPECIFIED":0,n.table="",n.tableModifiers=null,n.readOptions=null,d.Long?(r=new d.Long(0,0,!1),n.estimatedTotalBytesScanned=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):n.estimatedTotalBytesScanned=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,n.traceId="",d.Long?(r=new d.Long(0,0,!1),n.estimatedRowCount=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):n.estimatedRowCount=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,d.Long?(r=new d.Long(0,0,!1),n.estimatedTotalPhysicalFileSize=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):n.estimatedTotalPhysicalFileSize=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(n.name=e.name),null!=e.expireTime&&Object.hasOwnProperty.call(e,"expireTime")&&(n.expireTime=g.google.protobuf.Timestamp.toObject(e.expireTime,t,o+1)),null!=e.dataFormat&&Object.hasOwnProperty.call(e,"dataFormat")&&(n.dataFormat=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.DataFormat[e.dataFormat]?e.dataFormat:g.google.cloud.bigquery.storage.v1.DataFormat[e.dataFormat]),null!=e.avroSchema&&Object.hasOwnProperty.call(e,"avroSchema")&&(n.avroSchema=g.google.cloud.bigquery.storage.v1.AvroSchema.toObject(e.avroSchema,t,o+1),t.oneofs)&&(n.schema="avroSchema"),null!=e.arrowSchema&&Object.hasOwnProperty.call(e,"arrowSchema")&&(n.arrowSchema=g.google.cloud.bigquery.storage.v1.ArrowSchema.toObject(e.arrowSchema,t,o+1),t.oneofs)&&(n.schema="arrowSchema"),null!=e.table&&Object.hasOwnProperty.call(e,"table")&&(n.table=e.table),null!=e.tableModifiers&&Object.hasOwnProperty.call(e,"tableModifiers")&&(n.tableModifiers=g.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.toObject(e.tableModifiers,t,o+1)),null!=e.readOptions&&Object.hasOwnProperty.call(e,"readOptions")&&(n.readOptions=g.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.toObject(e.readOptions,t,o+1)),e.streams&&e.streams.length){n.streams=[];for(var i=0;i<e.streams.length;++i)n.streams[i]=g.google.cloud.bigquery.storage.v1.ReadStream.toObject(e.streams[i],t,o+1)}return null!=e.estimatedTotalBytesScanned&&Object.hasOwnProperty.call(e,"estimatedTotalBytesScanned")&&("undefined"!=typeof BigInt&&t.longs===BigInt?n.estimatedTotalBytesScanned="number"==typeof e.estimatedTotalBytesScanned?BigInt(e.estimatedTotalBytesScanned):d.Long.fromBits(e.estimatedTotalBytesScanned.low>>>0,e.estimatedTotalBytesScanned.high>>>0,!1).toBigInt():"number"==typeof e.estimatedTotalBytesScanned?n.estimatedTotalBytesScanned=t.longs===String?String(e.estimatedTotalBytesScanned):e.estimatedTotalBytesScanned:n.estimatedTotalBytesScanned=t.longs===String?d.Long.prototype.toString.call(e.estimatedTotalBytesScanned):t.longs===Number?new d.LongBits(e.estimatedTotalBytesScanned.low>>>0,e.estimatedTotalBytesScanned.high>>>0).toNumber():e.estimatedTotalBytesScanned),null!=e.traceId&&Object.hasOwnProperty.call(e,"traceId")&&(n.traceId=e.traceId),null!=e.estimatedRowCount&&Object.hasOwnProperty.call(e,"estimatedRowCount")&&("undefined"!=typeof BigInt&&t.longs===BigInt?n.estimatedRowCount="number"==typeof e.estimatedRowCount?BigInt(e.estimatedRowCount):d.Long.fromBits(e.estimatedRowCount.low>>>0,e.estimatedRowCount.high>>>0,!1).toBigInt():"number"==typeof e.estimatedRowCount?n.estimatedRowCount=t.longs===String?String(e.estimatedRowCount):e.estimatedRowCount:n.estimatedRowCount=t.longs===String?d.Long.prototype.toString.call(e.estimatedRowCount):t.longs===Number?new d.LongBits(e.estimatedRowCount.low>>>0,e.estimatedRowCount.high>>>0).toNumber():e.estimatedRowCount),null!=e.estimatedTotalPhysicalFileSize&&Object.hasOwnProperty.call(e,"estimatedTotalPhysicalFileSize")&&("undefined"!=typeof BigInt&&t.longs===BigInt?n.estimatedTotalPhysicalFileSize="number"==typeof e.estimatedTotalPhysicalFileSize?BigInt(e.estimatedTotalPhysicalFileSize):d.Long.fromBits(e.estimatedTotalPhysicalFileSize.low>>>0,e.estimatedTotalPhysicalFileSize.high>>>0,!1).toBigInt():"number"==typeof e.estimatedTotalPhysicalFileSize?n.estimatedTotalPhysicalFileSize=t.longs===String?String(e.estimatedTotalPhysicalFileSize):e.estimatedTotalPhysicalFileSize:n.estimatedTotalPhysicalFileSize=t.longs===String?d.Long.prototype.toString.call(e.estimatedTotalPhysicalFileSize):t.longs===Number?new d.LongBits(e.estimatedTotalPhysicalFileSize.low>>>0,e.estimatedTotalPhysicalFileSize.high>>>0).toNumber():e.estimatedTotalPhysicalFileSize),n},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.cloud.bigquery.storage.v1.ReadSession"},f.TableModifiers=(ge.prototype.snapshotTime=null,ge.create=function(e){return new ge(e)},ge.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.snapshotTime&&Object.hasOwnProperty.call(e,"snapshotTime")&&g.google.protobuf.Timestamp.encode(e.snapshotTime,t.uint32(10).fork(),o+1).ldelim(),t},ge.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ge.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.snapshotTime=g.google.protobuf.Timestamp.decode(e,e.uint32(),void 0,r+1):e.skipType(7&a,r)}return i},ge.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ge.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.snapshotTime&&Object.hasOwnProperty.call(e,"snapshotTime")){e=g.google.protobuf.Timestamp.verify(e.snapshotTime,t+1);if(e)return"snapshotTime."+e}return null},ge.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.ReadSession.TableModifiers: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers;if(null!=e.snapshotTime){if(!d.isObject(e.snapshotTime))throw TypeError(".google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.snapshotTime: object expected");o.snapshotTime=g.google.protobuf.Timestamp.fromObject(e.snapshotTime,t+1)}return o},ge.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.snapshotTime=null),null!=e.snapshotTime&&Object.hasOwnProperty.call(e,"snapshotTime")&&(r.snapshotTime=g.google.protobuf.Timestamp.toObject(e.snapshotTime,t,o+1)),r},ge.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ge.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.ReadSession.TableModifiers"},ge),f.TableReadOptions=(m.prototype.selectedFields=d.emptyArray,m.prototype.rowRestriction="",m.prototype.arrowSerializationOptions=null,m.prototype.avroSerializationOptions=null,m.prototype.samplePercentage=null,m.prototype.responseCompressionCodec=null,Object.defineProperty(m.prototype,"outputFormatSerializationOptions",{get:d.oneOfGetter(t=["arrowSerializationOptions","avroSerializationOptions"]),set:d.oneOfSetter(t)}),Object.defineProperty(m.prototype,"_samplePercentage",{get:d.oneOfGetter(t=["samplePercentage"]),set:d.oneOfSetter(t)}),Object.defineProperty(m.prototype,"_responseCompressionCodec",{get:d.oneOfGetter(t=["responseCompressionCodec"]),set:d.oneOfSetter(t)}),m.create=function(e){return new m(e)},m.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.selectedFields&&e.selectedFields.length)for(var r=0;r<e.selectedFields.length;++r)t.uint32(10).string(e.selectedFields[r]);return null!=e.rowRestriction&&Object.hasOwnProperty.call(e,"rowRestriction")&&t.uint32(18).string(e.rowRestriction),null!=e.arrowSerializationOptions&&Object.hasOwnProperty.call(e,"arrowSerializationOptions")&&g.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.encode(e.arrowSerializationOptions,t.uint32(26).fork(),o+1).ldelim(),null!=e.avroSerializationOptions&&Object.hasOwnProperty.call(e,"avroSerializationOptions")&&g.google.cloud.bigquery.storage.v1.AvroSerializationOptions.encode(e.avroSerializationOptions,t.uint32(34).fork(),o+1).ldelim(),null!=e.samplePercentage&&Object.hasOwnProperty.call(e,"samplePercentage")&&t.uint32(41).double(e.samplePercentage),null!=e.responseCompressionCodec&&Object.hasOwnProperty.call(e,"responseCompressionCodec")&&t.uint32(48).int32(e.responseCompressionCodec),t},m.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},m.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.selectedFields&&i.selectedFields.length||(i.selectedFields=[]),i.selectedFields.push(e.string());break;case 2:i.rowRestriction=e.string();break;case 3:i.arrowSerializationOptions=g.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.decode(e,e.uint32(),void 0,r+1);break;case 4:i.avroSerializationOptions=g.google.cloud.bigquery.storage.v1.AvroSerializationOptions.decode(e,e.uint32(),void 0,r+1);break;case 5:i.samplePercentage=e.double();break;case 6:i.responseCompressionCodec=e.int32();break;default:e.skipType(7&a,r)}}return i},m.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},m.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";var o,r={};if(null!=e.selectedFields&&Object.hasOwnProperty.call(e,"selectedFields")){if(!Array.isArray(e.selectedFields))return"selectedFields: array expected";for(var n=0;n<e.selectedFields.length;++n)if(!d.isString(e.selectedFields[n]))return"selectedFields: string[] expected"}if(null!=e.rowRestriction&&Object.hasOwnProperty.call(e,"rowRestriction")&&!d.isString(e.rowRestriction))return"rowRestriction: string expected";if(null!=e.arrowSerializationOptions&&Object.hasOwnProperty.call(e,"arrowSerializationOptions")&&(o=g.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.verify(e.arrowSerializationOptions,t+(r.outputFormatSerializationOptions=1))))return"arrowSerializationOptions."+o;if(null!=e.avroSerializationOptions&&Object.hasOwnProperty.call(e,"avroSerializationOptions")){if(1===r.outputFormatSerializationOptions)return"outputFormatSerializationOptions: multiple values";if(o=g.google.cloud.bigquery.storage.v1.AvroSerializationOptions.verify(e.avroSerializationOptions,t+(r.outputFormatSerializationOptions=1)))return"avroSerializationOptions."+o}if(null!=e.samplePercentage&&Object.hasOwnProperty.call(e,"samplePercentage")&&(r._samplePercentage=1,"number"!=typeof e.samplePercentage))return"samplePercentage: number expected";if(null!=e.responseCompressionCodec&&Object.hasOwnProperty.call(e,"responseCompressionCodec"))switch(r._responseCompressionCodec=1,e.responseCompressionCodec){default:return"responseCompressionCodec: enum value expected";case 0:case 2:}return null},m.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions;if(e.selectedFields){if(!Array.isArray(e.selectedFields))throw TypeError(".google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.selectedFields: array expected");o.selectedFields=[];for(var r=0;r<e.selectedFields.length;++r)o.selectedFields[r]=String(e.selectedFields[r])}if(null!=e.rowRestriction&&(o.rowRestriction=String(e.rowRestriction)),null!=e.arrowSerializationOptions){if(!d.isObject(e.arrowSerializationOptions))throw TypeError(".google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.arrowSerializationOptions: object expected");o.arrowSerializationOptions=g.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.fromObject(e.arrowSerializationOptions,t+1)}if(null!=e.avroSerializationOptions){if(!d.isObject(e.avroSerializationOptions))throw TypeError(".google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.avroSerializationOptions: object expected");o.avroSerializationOptions=g.google.cloud.bigquery.storage.v1.AvroSerializationOptions.fromObject(e.avroSerializationOptions,t+1)}switch(null!=e.samplePercentage&&(o.samplePercentage=Number(e.samplePercentage)),e.responseCompressionCodec){default:"number"==typeof e.responseCompressionCodec&&(o.responseCompressionCodec=e.responseCompressionCodec);break;case"RESPONSE_COMPRESSION_CODEC_UNSPECIFIED":case 0:o.responseCompressionCodec=0;break;case"RESPONSE_COMPRESSION_CODEC_LZ4":case 2:o.responseCompressionCodec=2}return o},m.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.selectedFields=[]),t.defaults&&(r.rowRestriction=""),e.selectedFields&&e.selectedFields.length){r.selectedFields=[];for(var n=0;n<e.selectedFields.length;++n)r.selectedFields[n]=e.selectedFields[n]}return null!=e.rowRestriction&&Object.hasOwnProperty.call(e,"rowRestriction")&&(r.rowRestriction=e.rowRestriction),null!=e.arrowSerializationOptions&&Object.hasOwnProperty.call(e,"arrowSerializationOptions")&&(r.arrowSerializationOptions=g.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.toObject(e.arrowSerializationOptions,t,o+1),t.oneofs)&&(r.outputFormatSerializationOptions="arrowSerializationOptions"),null!=e.avroSerializationOptions&&Object.hasOwnProperty.call(e,"avroSerializationOptions")&&(r.avroSerializationOptions=g.google.cloud.bigquery.storage.v1.AvroSerializationOptions.toObject(e.avroSerializationOptions,t,o+1),t.oneofs)&&(r.outputFormatSerializationOptions="avroSerializationOptions"),null!=e.samplePercentage&&Object.hasOwnProperty.call(e,"samplePercentage")&&(r.samplePercentage=t.json&&!isFinite(e.samplePercentage)?String(e.samplePercentage):e.samplePercentage,t.oneofs)&&(r._samplePercentage="samplePercentage"),null!=e.responseCompressionCodec&&Object.hasOwnProperty.call(e,"responseCompressionCodec")&&(r.responseCompressionCodec=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.ResponseCompressionCodec[e.responseCompressionCodec]?e.responseCompressionCodec:g.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.ResponseCompressionCodec[e.responseCompressionCodec],t.oneofs)&&(r._responseCompressionCodec="responseCompressionCodec"),r},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.cloud.bigquery.storage.v1.ReadSession.TableReadOptions"},m.ResponseCompressionCodec=(t={},(a=Object.create(t))[t[0]="RESPONSE_COMPRESSION_CODEC_UNSPECIFIED"]=0,a[t[2]="RESPONSE_COMPRESSION_CODEC_LZ4"]=2,a),m),f),e.ReadStream=(fe.prototype.name="",fe.create=function(e){return new fe(e)},fe.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),t},fe.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},fe.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.ReadStream;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.name=e.string():e.skipType(7&a,r)}return i},fe.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},fe.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name)?"name: string expected":null},fe.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.ReadStream)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.ReadStream: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.cloud.bigquery.storage.v1.ReadStream;return null!=e.name&&(t.name=String(e.name)),t},fe.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.name=""),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(o.name=e.name),o},fe.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},fe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.ReadStream"},fe),e.WriteStreamView=(t={},(a=Object.create(t))[t[0]="WRITE_STREAM_VIEW_UNSPECIFIED"]=0,a[t[1]="BASIC"]=1,a[t[2]="FULL"]=2,a),e.WriteStream=(b.prototype.name="",b.prototype.type=0,b.prototype.createTime=null,b.prototype.commitTime=null,b.prototype.tableSchema=null,b.prototype.writeMode=0,b.prototype.location="",b.create=function(e){return new b(e)},b.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(16).int32(e.type),null!=e.createTime&&Object.hasOwnProperty.call(e,"createTime")&&g.google.protobuf.Timestamp.encode(e.createTime,t.uint32(26).fork(),o+1).ldelim(),null!=e.commitTime&&Object.hasOwnProperty.call(e,"commitTime")&&g.google.protobuf.Timestamp.encode(e.commitTime,t.uint32(34).fork(),o+1).ldelim(),null!=e.tableSchema&&Object.hasOwnProperty.call(e,"tableSchema")&&g.google.cloud.bigquery.storage.v1.TableSchema.encode(e.tableSchema,t.uint32(42).fork(),o+1).ldelim(),null!=e.writeMode&&Object.hasOwnProperty.call(e,"writeMode")&&t.uint32(56).int32(e.writeMode),null!=e.location&&Object.hasOwnProperty.call(e,"location")&&t.uint32(66).string(e.location),t},b.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},b.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.WriteStream;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.type=e.int32();break;case 3:i.createTime=g.google.protobuf.Timestamp.decode(e,e.uint32(),void 0,r+1);break;case 4:i.commitTime=g.google.protobuf.Timestamp.decode(e,e.uint32(),void 0,r+1);break;case 5:i.tableSchema=g.google.cloud.bigquery.storage.v1.TableSchema.decode(e,e.uint32(),void 0,r+1);break;case 7:i.writeMode=e.int32();break;case 8:i.location=e.string();break;default:e.skipType(7&a,r)}}return i},b.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},b.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name))return"name: string expected";if(null!=e.type&&Object.hasOwnProperty.call(e,"type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:}var o;if(null!=e.createTime&&Object.hasOwnProperty.call(e,"createTime")&&(o=g.google.protobuf.Timestamp.verify(e.createTime,t+1)))return"createTime."+o;if(null!=e.commitTime&&Object.hasOwnProperty.call(e,"commitTime")&&(o=g.google.protobuf.Timestamp.verify(e.commitTime,t+1)))return"commitTime."+o;if(null!=e.tableSchema&&Object.hasOwnProperty.call(e,"tableSchema")&&(o=g.google.cloud.bigquery.storage.v1.TableSchema.verify(e.tableSchema,t+1)))return"tableSchema."+o;if(null!=e.writeMode&&Object.hasOwnProperty.call(e,"writeMode"))switch(e.writeMode){default:return"writeMode: enum value expected";case 0:case 1:}return null!=e.location&&Object.hasOwnProperty.call(e,"location")&&!d.isString(e.location)?"location: string expected":null},b.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.WriteStream)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.WriteStream: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.WriteStream;switch(null!=e.name&&(o.name=String(e.name)),e.type){default:"number"==typeof e.type&&(o.type=e.type);break;case"TYPE_UNSPECIFIED":case 0:o.type=0;break;case"COMMITTED":case 1:o.type=1;break;case"PENDING":case 2:o.type=2;break;case"BUFFERED":case 3:o.type=3}if(null!=e.createTime){if(!d.isObject(e.createTime))throw TypeError(".google.cloud.bigquery.storage.v1.WriteStream.createTime: object expected");o.createTime=g.google.protobuf.Timestamp.fromObject(e.createTime,t+1)}if(null!=e.commitTime){if(!d.isObject(e.commitTime))throw TypeError(".google.cloud.bigquery.storage.v1.WriteStream.commitTime: object expected");o.commitTime=g.google.protobuf.Timestamp.fromObject(e.commitTime,t+1)}if(null!=e.tableSchema){if(!d.isObject(e.tableSchema))throw TypeError(".google.cloud.bigquery.storage.v1.WriteStream.tableSchema: object expected");o.tableSchema=g.google.cloud.bigquery.storage.v1.TableSchema.fromObject(e.tableSchema,t+1)}switch(e.writeMode){default:"number"==typeof e.writeMode&&(o.writeMode=e.writeMode);break;case"WRITE_MODE_UNSPECIFIED":case 0:o.writeMode=0;break;case"INSERT":case 1:o.writeMode=1}return null!=e.location&&(o.location=String(e.location)),o},b.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.name="",r.type=t.enums===String?"TYPE_UNSPECIFIED":0,r.createTime=null,r.commitTime=null,r.tableSchema=null,r.writeMode=t.enums===String?"WRITE_MODE_UNSPECIFIED":0,r.location=""),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(r.name=e.name),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&(r.type=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.WriteStream.Type[e.type]?e.type:g.google.cloud.bigquery.storage.v1.WriteStream.Type[e.type]),null!=e.createTime&&Object.hasOwnProperty.call(e,"createTime")&&(r.createTime=g.google.protobuf.Timestamp.toObject(e.createTime,t,o+1)),null!=e.commitTime&&Object.hasOwnProperty.call(e,"commitTime")&&(r.commitTime=g.google.protobuf.Timestamp.toObject(e.commitTime,t,o+1)),null!=e.tableSchema&&Object.hasOwnProperty.call(e,"tableSchema")&&(r.tableSchema=g.google.cloud.bigquery.storage.v1.TableSchema.toObject(e.tableSchema,t,o+1)),null!=e.writeMode&&Object.hasOwnProperty.call(e,"writeMode")&&(r.writeMode=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.WriteStream.WriteMode[e.writeMode]?e.writeMode:g.google.cloud.bigquery.storage.v1.WriteStream.WriteMode[e.writeMode]),null!=e.location&&Object.hasOwnProperty.call(e,"location")&&(r.location=e.location),r},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.cloud.bigquery.storage.v1.WriteStream"},b.Type=(t={},(a=Object.create(t))[t[0]="TYPE_UNSPECIFIED"]=0,a[t[1]="COMMITTED"]=1,a[t[2]="PENDING"]=2,a[t[3]="BUFFERED"]=3,a),b.WriteMode=(t={},(a=Object.create(t))[t[0]="WRITE_MODE_UNSPECIFIED"]=0,a[t[1]="INSERT"]=1,a),b),e.TableSchema=(me.prototype.fields=d.emptyArray,me.create=function(e){return new me(e)},me.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.fields&&e.fields.length)for(var r=0;r<e.fields.length;++r)g.google.cloud.bigquery.storage.v1.TableFieldSchema.encode(e.fields[r],t.uint32(10).fork(),o+1).ldelim();return t},me.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},me.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.TableSchema;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?(i.fields&&i.fields.length||(i.fields=[]),i.fields.push(g.google.cloud.bigquery.storage.v1.TableFieldSchema.decode(e,e.uint32(),void 0,r+1))):e.skipType(7&a,r)}return i},me.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},me.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.fields&&Object.hasOwnProperty.call(e,"fields")){if(!Array.isArray(e.fields))return"fields: array expected";for(var o=0;o<e.fields.length;++o){var r=g.google.cloud.bigquery.storage.v1.TableFieldSchema.verify(e.fields[o],t+1);if(r)return"fields."+r}}return null},me.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.TableSchema)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.TableSchema: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.TableSchema;if(e.fields){if(!Array.isArray(e.fields))throw TypeError(".google.cloud.bigquery.storage.v1.TableSchema.fields: array expected");o.fields=[];for(var r=0;r<e.fields.length;++r){if(!d.isObject(e.fields[r]))throw TypeError(".google.cloud.bigquery.storage.v1.TableSchema.fields: object expected");o.fields[r]=g.google.cloud.bigquery.storage.v1.TableFieldSchema.fromObject(e.fields[r],t+1)}}return o},me.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.fields=[]),e.fields&&e.fields.length){r.fields=[];for(var n=0;n<e.fields.length;++n)r.fields[n]=g.google.cloud.bigquery.storage.v1.TableFieldSchema.toObject(e.fields[n],t,o+1)}return r},me.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},me.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.TableSchema"},me),e.TableFieldSchema=(y.prototype.name="",y.prototype.type=0,y.prototype.mode=0,y.prototype.fields=d.emptyArray,y.prototype.description="",y.prototype.maxLength=d.Long?d.Long.fromBits(0,0,!1):0,y.prototype.precision=d.Long?d.Long.fromBits(0,0,!1):0,y.prototype.scale=d.Long?d.Long.fromBits(0,0,!1):0,y.prototype.defaultValueExpression="",y.prototype.timestampPrecision=null,y.prototype.rangeElementType=null,y.create=function(e){return new y(e)},y.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(16).int32(e.type),null!=e.mode&&Object.hasOwnProperty.call(e,"mode")&&t.uint32(24).int32(e.mode),null!=e.fields&&e.fields.length)for(var r=0;r<e.fields.length;++r)g.google.cloud.bigquery.storage.v1.TableFieldSchema.encode(e.fields[r],t.uint32(34).fork(),o+1).ldelim();return null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(50).string(e.description),null!=e.maxLength&&Object.hasOwnProperty.call(e,"maxLength")&&t.uint32(56).int64(e.maxLength),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(64).int64(e.precision),null!=e.scale&&Object.hasOwnProperty.call(e,"scale")&&t.uint32(72).int64(e.scale),null!=e.defaultValueExpression&&Object.hasOwnProperty.call(e,"defaultValueExpression")&&t.uint32(82).string(e.defaultValueExpression),null!=e.rangeElementType&&Object.hasOwnProperty.call(e,"rangeElementType")&&g.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType.encode(e.rangeElementType,t.uint32(90).fork(),o+1).ldelim(),null!=e.timestampPrecision&&Object.hasOwnProperty.call(e,"timestampPrecision")&&g.google.protobuf.Int64Value.encode(e.timestampPrecision,t.uint32(218).fork(),o+1).ldelim(),t},y.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},y.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.TableFieldSchema;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.type=e.int32();break;case 3:i.mode=e.int32();break;case 4:i.fields&&i.fields.length||(i.fields=[]),i.fields.push(g.google.cloud.bigquery.storage.v1.TableFieldSchema.decode(e,e.uint32(),void 0,r+1));break;case 6:i.description=e.string();break;case 7:i.maxLength=e.int64();break;case 8:i.precision=e.int64();break;case 9:i.scale=e.int64();break;case 10:i.defaultValueExpression=e.string();break;case 27:i.timestampPrecision=g.google.protobuf.Int64Value.decode(e,e.uint32(),void 0,r+1);break;case 11:i.rangeElementType=g.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},y.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},y.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name))return"name: string expected";if(null!=e.type&&Object.hasOwnProperty.call(e,"type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:}if(null!=e.mode&&Object.hasOwnProperty.call(e,"mode"))switch(e.mode){default:return"mode: enum value expected";case 0:case 1:case 2:case 3:}if(null!=e.fields&&Object.hasOwnProperty.call(e,"fields")){if(!Array.isArray(e.fields))return"fields: array expected";for(var o=0;o<e.fields.length;++o)if(r=g.google.cloud.bigquery.storage.v1.TableFieldSchema.verify(e.fields[o],t+1))return"fields."+r}if(null!=e.description&&Object.hasOwnProperty.call(e,"description")&&!d.isString(e.description))return"description: string expected";if(null!=e.maxLength&&Object.hasOwnProperty.call(e,"maxLength")&&!(d.isInteger(e.maxLength)||e.maxLength&&d.isInteger(e.maxLength.low)&&d.isInteger(e.maxLength.high)))return"maxLength: integer|Long expected";if(null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&!(d.isInteger(e.precision)||e.precision&&d.isInteger(e.precision.low)&&d.isInteger(e.precision.high)))return"precision: integer|Long expected";if(null!=e.scale&&Object.hasOwnProperty.call(e,"scale")&&!(d.isInteger(e.scale)||e.scale&&d.isInteger(e.scale.low)&&d.isInteger(e.scale.high)))return"scale: integer|Long expected";if(null!=e.defaultValueExpression&&Object.hasOwnProperty.call(e,"defaultValueExpression")&&!d.isString(e.defaultValueExpression))return"defaultValueExpression: string expected";var r;if(null!=e.timestampPrecision&&Object.hasOwnProperty.call(e,"timestampPrecision")&&(r=g.google.protobuf.Int64Value.verify(e.timestampPrecision,t+1)))return"timestampPrecision."+r;if(null!=e.rangeElementType&&Object.hasOwnProperty.call(e,"rangeElementType")&&(r=g.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType.verify(e.rangeElementType,t+1)))return"rangeElementType."+r;return null},y.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.TableFieldSchema)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.TableFieldSchema: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.TableFieldSchema;switch(null!=e.name&&(o.name=String(e.name)),e.type){default:"number"==typeof e.type&&(o.type=e.type);break;case"TYPE_UNSPECIFIED":case 0:o.type=0;break;case"STRING":case 1:o.type=1;break;case"INT64":case 2:o.type=2;break;case"DOUBLE":case 3:o.type=3;break;case"STRUCT":case 4:o.type=4;break;case"BYTES":case 5:o.type=5;break;case"BOOL":case 6:o.type=6;break;case"TIMESTAMP":case 7:o.type=7;break;case"DATE":case 8:o.type=8;break;case"TIME":case 9:o.type=9;break;case"DATETIME":case 10:o.type=10;break;case"GEOGRAPHY":case 11:o.type=11;break;case"NUMERIC":case 12:o.type=12;break;case"BIGNUMERIC":case 13:o.type=13;break;case"INTERVAL":case 14:o.type=14;break;case"JSON":case 15:o.type=15;break;case"RANGE":case 16:o.type=16}switch(e.mode){default:"number"==typeof e.mode&&(o.mode=e.mode);break;case"MODE_UNSPECIFIED":case 0:o.mode=0;break;case"NULLABLE":case 1:o.mode=1;break;case"REQUIRED":case 2:o.mode=2;break;case"REPEATED":case 3:o.mode=3}if(e.fields){if(!Array.isArray(e.fields))throw TypeError(".google.cloud.bigquery.storage.v1.TableFieldSchema.fields: array expected");o.fields=[];for(var r=0;r<e.fields.length;++r){if(!d.isObject(e.fields[r]))throw TypeError(".google.cloud.bigquery.storage.v1.TableFieldSchema.fields: object expected");o.fields[r]=g.google.cloud.bigquery.storage.v1.TableFieldSchema.fromObject(e.fields[r],t+1)}}if(null!=e.description&&(o.description=String(e.description)),null!=e.maxLength&&(d.Long?o.maxLength=d.Long.fromValue(e.maxLength,!1):"string"==typeof e.maxLength?o.maxLength=parseInt(e.maxLength,10):"number"==typeof e.maxLength?o.maxLength=e.maxLength:"object"==typeof e.maxLength&&(o.maxLength=new d.LongBits(e.maxLength.low>>>0,e.maxLength.high>>>0).toNumber())),null!=e.precision&&(d.Long?o.precision=d.Long.fromValue(e.precision,!1):"string"==typeof e.precision?o.precision=parseInt(e.precision,10):"number"==typeof e.precision?o.precision=e.precision:"object"==typeof e.precision&&(o.precision=new d.LongBits(e.precision.low>>>0,e.precision.high>>>0).toNumber())),null!=e.scale&&(d.Long?o.scale=d.Long.fromValue(e.scale,!1):"string"==typeof e.scale?o.scale=parseInt(e.scale,10):"number"==typeof e.scale?o.scale=e.scale:"object"==typeof e.scale&&(o.scale=new d.LongBits(e.scale.low>>>0,e.scale.high>>>0).toNumber())),null!=e.defaultValueExpression&&(o.defaultValueExpression=String(e.defaultValueExpression)),null!=e.timestampPrecision){if(!d.isObject(e.timestampPrecision))throw TypeError(".google.cloud.bigquery.storage.v1.TableFieldSchema.timestampPrecision: object expected");o.timestampPrecision=g.google.protobuf.Int64Value.fromObject(e.timestampPrecision,t+1)}if(null!=e.rangeElementType){if(!d.isObject(e.rangeElementType))throw TypeError(".google.cloud.bigquery.storage.v1.TableFieldSchema.rangeElementType: object expected");o.rangeElementType=g.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType.fromObject(e.rangeElementType,t+1)}return o},y.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,n={};if((t.arrays||t.defaults)&&(n.fields=[]),t.defaults&&(n.name="",n.type=t.enums===String?"TYPE_UNSPECIFIED":0,n.mode=t.enums===String?"MODE_UNSPECIFIED":0,n.description="",d.Long?(r=new d.Long(0,0,!1),n.maxLength=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):n.maxLength=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,d.Long?(r=new d.Long(0,0,!1),n.precision=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):n.precision=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,d.Long?(r=new d.Long(0,0,!1),n.scale=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):n.scale=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,n.defaultValueExpression="",n.rangeElementType=null,n.timestampPrecision=null),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(n.name=e.name),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&(n.type=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.TableFieldSchema.Type[e.type]?e.type:g.google.cloud.bigquery.storage.v1.TableFieldSchema.Type[e.type]),null!=e.mode&&Object.hasOwnProperty.call(e,"mode")&&(n.mode=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode[e.mode]?e.mode:g.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode[e.mode]),e.fields&&e.fields.length){n.fields=[];for(var i=0;i<e.fields.length;++i)n.fields[i]=g.google.cloud.bigquery.storage.v1.TableFieldSchema.toObject(e.fields[i],t,o+1)}return null!=e.description&&Object.hasOwnProperty.call(e,"description")&&(n.description=e.description),null!=e.maxLength&&Object.hasOwnProperty.call(e,"maxLength")&&("undefined"!=typeof BigInt&&t.longs===BigInt?n.maxLength="number"==typeof e.maxLength?BigInt(e.maxLength):d.Long.fromBits(e.maxLength.low>>>0,e.maxLength.high>>>0,!1).toBigInt():"number"==typeof e.maxLength?n.maxLength=t.longs===String?String(e.maxLength):e.maxLength:n.maxLength=t.longs===String?d.Long.prototype.toString.call(e.maxLength):t.longs===Number?new d.LongBits(e.maxLength.low>>>0,e.maxLength.high>>>0).toNumber():e.maxLength),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&("undefined"!=typeof BigInt&&t.longs===BigInt?n.precision="number"==typeof e.precision?BigInt(e.precision):d.Long.fromBits(e.precision.low>>>0,e.precision.high>>>0,!1).toBigInt():"number"==typeof e.precision?n.precision=t.longs===String?String(e.precision):e.precision:n.precision=t.longs===String?d.Long.prototype.toString.call(e.precision):t.longs===Number?new d.LongBits(e.precision.low>>>0,e.precision.high>>>0).toNumber():e.precision),null!=e.scale&&Object.hasOwnProperty.call(e,"scale")&&("undefined"!=typeof BigInt&&t.longs===BigInt?n.scale="number"==typeof e.scale?BigInt(e.scale):d.Long.fromBits(e.scale.low>>>0,e.scale.high>>>0,!1).toBigInt():"number"==typeof e.scale?n.scale=t.longs===String?String(e.scale):e.scale:n.scale=t.longs===String?d.Long.prototype.toString.call(e.scale):t.longs===Number?new d.LongBits(e.scale.low>>>0,e.scale.high>>>0).toNumber():e.scale),null!=e.defaultValueExpression&&Object.hasOwnProperty.call(e,"defaultValueExpression")&&(n.defaultValueExpression=e.defaultValueExpression),null!=e.rangeElementType&&Object.hasOwnProperty.call(e,"rangeElementType")&&(n.rangeElementType=g.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType.toObject(e.rangeElementType,t,o+1)),null!=e.timestampPrecision&&Object.hasOwnProperty.call(e,"timestampPrecision")&&(n.timestampPrecision=g.google.protobuf.Int64Value.toObject(e.timestampPrecision,t,o+1)),n},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.cloud.bigquery.storage.v1.TableFieldSchema"},y.Type=(t={},(a=Object.create(t))[t[0]="TYPE_UNSPECIFIED"]=0,a[t[1]="STRING"]=1,a[t[2]="INT64"]=2,a[t[3]="DOUBLE"]=3,a[t[4]="STRUCT"]=4,a[t[5]="BYTES"]=5,a[t[6]="BOOL"]=6,a[t[7]="TIMESTAMP"]=7,a[t[8]="DATE"]=8,a[t[9]="TIME"]=9,a[t[10]="DATETIME"]=10,a[t[11]="GEOGRAPHY"]=11,a[t[12]="NUMERIC"]=12,a[t[13]="BIGNUMERIC"]=13,a[t[14]="INTERVAL"]=14,a[t[15]="JSON"]=15,a[t[16]="RANGE"]=16,a),y.Mode=(t={},(a=Object.create(t))[t[0]="MODE_UNSPECIFIED"]=0,a[t[1]="NULLABLE"]=1,a[t[2]="REQUIRED"]=2,a[t[3]="REPEATED"]=3,a),y.FieldElementType=(be.prototype.type=0,be.create=function(e){return new be(e)},be.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),t},be.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},be.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.type=e.int32():e.skipType(7&a,r)}return i},be.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},be.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.type&&Object.hasOwnProperty.call(e,"type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:}return null},be.fromObject=function(e,t){if(e instanceof g.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType)return e;if(!d.isObject(e))throw TypeError(".google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType;switch(e.type){default:"number"==typeof e.type&&(o.type=e.type);break;case"TYPE_UNSPECIFIED":case 0:o.type=0;break;case"STRING":case 1:o.type=1;break;case"INT64":case 2:o.type=2;break;case"DOUBLE":case 3:o.type=3;break;case"STRUCT":case 4:o.type=4;break;case"BYTES":case 5:o.type=5;break;case"BOOL":case 6:o.type=6;break;case"TIMESTAMP":case 7:o.type=7;break;case"DATE":case 8:o.type=8;break;case"TIME":case 9:o.type=9;break;case"DATETIME":case 10:o.type=10;break;case"GEOGRAPHY":case 11:o.type=11;break;case"NUMERIC":case 12:o.type=12;break;case"BIGNUMERIC":case 13:o.type=13;break;case"INTERVAL":case 14:o.type=14;break;case"JSON":case 15:o.type=15;break;case"RANGE":case 16:o.type=16}return o},be.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.type=t.enums===String?"TYPE_UNSPECIFIED":0),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&(o.type=t.enums!==String||void 0===g.google.cloud.bigquery.storage.v1.TableFieldSchema.Type[e.type]?e.type:g.google.cloud.bigquery.storage.v1.TableFieldSchema.Type[e.type]),o},be.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},be.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType"},be),y),e),i),o),n),A.protobuf=((t={}).FileDescriptorSet=(ye.prototype.file=d.emptyArray,ye.create=function(e){return new ye(e)},ye.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.file&&e.file.length)for(var r=0;r<e.file.length;++r)g.google.protobuf.FileDescriptorProto.encode(e.file[r],t.uint32(10).fork(),o+1).ldelim();return t},ye.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ye.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FileDescriptorSet;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?(i.file&&i.file.length||(i.file=[]),i.file.push(g.google.protobuf.FileDescriptorProto.decode(e,e.uint32(),void 0,r+1))):e.skipType(7&a,r)}return i},ye.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ye.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.file&&Object.hasOwnProperty.call(e,"file")){if(!Array.isArray(e.file))return"file: array expected";for(var o=0;o<e.file.length;++o){var r=g.google.protobuf.FileDescriptorProto.verify(e.file[o],t+1);if(r)return"file."+r}}return null},ye.fromObject=function(e,t){if(e instanceof g.google.protobuf.FileDescriptorSet)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.FileDescriptorSet: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.FileDescriptorSet;if(e.file){if(!Array.isArray(e.file))throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected");o.file=[];for(var r=0;r<e.file.length;++r){if(!d.isObject(e.file[r]))throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected");o.file[r]=g.google.protobuf.FileDescriptorProto.fromObject(e.file[r],t+1)}}return o},ye.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.file=[]),e.file&&e.file.length){r.file=[];for(var n=0;n<e.file.length;++n)r.file[n]=g.google.protobuf.FileDescriptorProto.toObject(e.file[n],t,o+1)}return r},ye.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ye.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FileDescriptorSet"},ye),t.Edition=(a={},(e=Object.create(a))[a[0]="EDITION_UNKNOWN"]=0,e[a[900]="EDITION_LEGACY"]=900,e[a[998]="EDITION_PROTO2"]=998,e[a[999]="EDITION_PROTO3"]=999,e[a[1e3]="EDITION_2023"]=1e3,e[a[1001]="EDITION_2024"]=1001,e[a[1002]="EDITION_2026"]=1002,e[a[9999]="EDITION_UNSTABLE"]=9999,e[a[1]="EDITION_1_TEST_ONLY"]=1,e[a[2]="EDITION_2_TEST_ONLY"]=2,e[a[99997]="EDITION_99997_TEST_ONLY"]=99997,e[a[99998]="EDITION_99998_TEST_ONLY"]=99998,e[a[99999]="EDITION_99999_TEST_ONLY"]=99999,e[a[2147483647]="EDITION_MAX"]=2147483647,e),t.FileDescriptorProto=(h.prototype.name="",h.prototype.package="",h.prototype.dependency=d.emptyArray,h.prototype.publicDependency=d.emptyArray,h.prototype.weakDependency=d.emptyArray,h.prototype.optionDependency=d.emptyArray,h.prototype.messageType=d.emptyArray,h.prototype.enumType=d.emptyArray,h.prototype.service=d.emptyArray,h.prototype.extension=d.emptyArray,h.prototype.options=null,h.prototype.sourceCodeInfo=null,h.prototype.syntax="",h.prototype.edition=0,h.create=function(e){return new h(e)},h.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.package&&Object.hasOwnProperty.call(e,"package")&&t.uint32(18).string(e.package),null!=e.dependency&&e.dependency.length)for(var r=0;r<e.dependency.length;++r)t.uint32(26).string(e.dependency[r]);if(null!=e.messageType&&e.messageType.length)for(r=0;r<e.messageType.length;++r)g.google.protobuf.DescriptorProto.encode(e.messageType[r],t.uint32(34).fork(),o+1).ldelim();if(null!=e.enumType&&e.enumType.length)for(r=0;r<e.enumType.length;++r)g.google.protobuf.EnumDescriptorProto.encode(e.enumType[r],t.uint32(42).fork(),o+1).ldelim();if(null!=e.service&&e.service.length)for(r=0;r<e.service.length;++r)g.google.protobuf.ServiceDescriptorProto.encode(e.service[r],t.uint32(50).fork(),o+1).ldelim();if(null!=e.extension&&e.extension.length)for(r=0;r<e.extension.length;++r)g.google.protobuf.FieldDescriptorProto.encode(e.extension[r],t.uint32(58).fork(),o+1).ldelim();if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&g.google.protobuf.FileOptions.encode(e.options,t.uint32(66).fork(),o+1).ldelim(),null!=e.sourceCodeInfo&&Object.hasOwnProperty.call(e,"sourceCodeInfo")&&g.google.protobuf.SourceCodeInfo.encode(e.sourceCodeInfo,t.uint32(74).fork(),o+1).ldelim(),null!=e.publicDependency&&e.publicDependency.length)for(r=0;r<e.publicDependency.length;++r)t.uint32(80).int32(e.publicDependency[r]);if(null!=e.weakDependency&&e.weakDependency.length)for(r=0;r<e.weakDependency.length;++r)t.uint32(88).int32(e.weakDependency[r]);if(null!=e.syntax&&Object.hasOwnProperty.call(e,"syntax")&&t.uint32(98).string(e.syntax),null!=e.edition&&Object.hasOwnProperty.call(e,"edition")&&t.uint32(112).int32(e.edition),null!=e.optionDependency&&e.optionDependency.length)for(r=0;r<e.optionDependency.length;++r)t.uint32(122).string(e.optionDependency[r]);return t},h.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},h.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FileDescriptorProto;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.package=e.string();break;case 3:i.dependency&&i.dependency.length||(i.dependency=[]),i.dependency.push(e.string());break;case 10:if(i.publicDependency&&i.publicDependency.length||(i.publicDependency=[]),2==(7&a))for(var l=e.uint32()+e.pos;e.pos<l;)i.publicDependency.push(e.int32());else i.publicDependency.push(e.int32());break;case 11:if(i.weakDependency&&i.weakDependency.length||(i.weakDependency=[]),2==(7&a))for(l=e.uint32()+e.pos;e.pos<l;)i.weakDependency.push(e.int32());else i.weakDependency.push(e.int32());break;case 15:i.optionDependency&&i.optionDependency.length||(i.optionDependency=[]),i.optionDependency.push(e.string());break;case 4:i.messageType&&i.messageType.length||(i.messageType=[]),i.messageType.push(g.google.protobuf.DescriptorProto.decode(e,e.uint32(),void 0,r+1));break;case 5:i.enumType&&i.enumType.length||(i.enumType=[]),i.enumType.push(g.google.protobuf.EnumDescriptorProto.decode(e,e.uint32(),void 0,r+1));break;case 6:i.service&&i.service.length||(i.service=[]),i.service.push(g.google.protobuf.ServiceDescriptorProto.decode(e,e.uint32(),void 0,r+1));break;case 7:i.extension&&i.extension.length||(i.extension=[]),i.extension.push(g.google.protobuf.FieldDescriptorProto.decode(e,e.uint32(),void 0,r+1));break;case 8:i.options=g.google.protobuf.FileOptions.decode(e,e.uint32(),void 0,r+1);break;case 9:i.sourceCodeInfo=g.google.protobuf.SourceCodeInfo.decode(e,e.uint32(),void 0,r+1);break;case 12:i.syntax=e.string();break;case 14:i.edition=e.int32();break;default:e.skipType(7&a,r)}}return i},h.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},h.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name))return"name: string expected";if(null!=e.package&&Object.hasOwnProperty.call(e,"package")&&!d.isString(e.package))return"package: string expected";if(null!=e.dependency&&Object.hasOwnProperty.call(e,"dependency")){if(!Array.isArray(e.dependency))return"dependency: array expected";for(var o=0;o<e.dependency.length;++o)if(!d.isString(e.dependency[o]))return"dependency: string[] expected"}if(null!=e.publicDependency&&Object.hasOwnProperty.call(e,"publicDependency")){if(!Array.isArray(e.publicDependency))return"publicDependency: array expected";for(o=0;o<e.publicDependency.length;++o)if(!d.isInteger(e.publicDependency[o]))return"publicDependency: integer[] expected"}if(null!=e.weakDependency&&Object.hasOwnProperty.call(e,"weakDependency")){if(!Array.isArray(e.weakDependency))return"weakDependency: array expected";for(o=0;o<e.weakDependency.length;++o)if(!d.isInteger(e.weakDependency[o]))return"weakDependency: integer[] expected"}if(null!=e.optionDependency&&Object.hasOwnProperty.call(e,"optionDependency")){if(!Array.isArray(e.optionDependency))return"optionDependency: array expected";for(o=0;o<e.optionDependency.length;++o)if(!d.isString(e.optionDependency[o]))return"optionDependency: string[] expected"}if(null!=e.messageType&&Object.hasOwnProperty.call(e,"messageType")){if(!Array.isArray(e.messageType))return"messageType: array expected";for(o=0;o<e.messageType.length;++o)if(r=g.google.protobuf.DescriptorProto.verify(e.messageType[o],t+1))return"messageType."+r}if(null!=e.enumType&&Object.hasOwnProperty.call(e,"enumType")){if(!Array.isArray(e.enumType))return"enumType: array expected";for(o=0;o<e.enumType.length;++o)if(r=g.google.protobuf.EnumDescriptorProto.verify(e.enumType[o],t+1))return"enumType."+r}if(null!=e.service&&Object.hasOwnProperty.call(e,"service")){if(!Array.isArray(e.service))return"service: array expected";for(o=0;o<e.service.length;++o)if(r=g.google.protobuf.ServiceDescriptorProto.verify(e.service[o],t+1))return"service."+r}if(null!=e.extension&&Object.hasOwnProperty.call(e,"extension")){if(!Array.isArray(e.extension))return"extension: array expected";for(o=0;o<e.extension.length;++o)if(r=g.google.protobuf.FieldDescriptorProto.verify(e.extension[o],t+1))return"extension."+r}var r;if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(r=g.google.protobuf.FileOptions.verify(e.options,t+1)))return"options."+r;if(null!=e.sourceCodeInfo&&Object.hasOwnProperty.call(e,"sourceCodeInfo")&&(r=g.google.protobuf.SourceCodeInfo.verify(e.sourceCodeInfo,t+1)))return"sourceCodeInfo."+r;if(null!=e.syntax&&Object.hasOwnProperty.call(e,"syntax")&&!d.isString(e.syntax))return"syntax: string expected";if(null!=e.edition&&Object.hasOwnProperty.call(e,"edition"))switch(e.edition){default:return"edition: enum value expected";case 0:case 900:case 998:case 999:case 1e3:case 1001:case 1002:case 9999:case 1:case 2:case 99997:case 99998:case 99999:case 2147483647:}return null},h.fromObject=function(e,t){if(e instanceof g.google.protobuf.FileDescriptorProto)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.FileDescriptorProto: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.FileDescriptorProto;if(null!=e.name&&(o.name=String(e.name)),null!=e.package&&(o.package=String(e.package)),e.dependency){if(!Array.isArray(e.dependency))throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected");o.dependency=[];for(var r=0;r<e.dependency.length;++r)o.dependency[r]=String(e.dependency[r])}if(e.publicDependency){if(!Array.isArray(e.publicDependency))throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected");o.publicDependency=[];for(r=0;r<e.publicDependency.length;++r)o.publicDependency[r]=0|e.publicDependency[r]}if(e.weakDependency){if(!Array.isArray(e.weakDependency))throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected");o.weakDependency=[];for(r=0;r<e.weakDependency.length;++r)o.weakDependency[r]=0|e.weakDependency[r]}if(e.optionDependency){if(!Array.isArray(e.optionDependency))throw TypeError(".google.protobuf.FileDescriptorProto.optionDependency: array expected");o.optionDependency=[];for(r=0;r<e.optionDependency.length;++r)o.optionDependency[r]=String(e.optionDependency[r])}if(e.messageType){if(!Array.isArray(e.messageType))throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected");o.messageType=[];for(r=0;r<e.messageType.length;++r){if(!d.isObject(e.messageType[r]))throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected");o.messageType[r]=g.google.protobuf.DescriptorProto.fromObject(e.messageType[r],t+1)}}if(e.enumType){if(!Array.isArray(e.enumType))throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected");o.enumType=[];for(r=0;r<e.enumType.length;++r){if(!d.isObject(e.enumType[r]))throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected");o.enumType[r]=g.google.protobuf.EnumDescriptorProto.fromObject(e.enumType[r],t+1)}}if(e.service){if(!Array.isArray(e.service))throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected");o.service=[];for(r=0;r<e.service.length;++r){if(!d.isObject(e.service[r]))throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected");o.service[r]=g.google.protobuf.ServiceDescriptorProto.fromObject(e.service[r],t+1)}}if(e.extension){if(!Array.isArray(e.extension))throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected");o.extension=[];for(r=0;r<e.extension.length;++r){if(!d.isObject(e.extension[r]))throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected");o.extension[r]=g.google.protobuf.FieldDescriptorProto.fromObject(e.extension[r],t+1)}}if(null!=e.options){if(!d.isObject(e.options))throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected");o.options=g.google.protobuf.FileOptions.fromObject(e.options,t+1)}if(null!=e.sourceCodeInfo){if(!d.isObject(e.sourceCodeInfo))throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected");o.sourceCodeInfo=g.google.protobuf.SourceCodeInfo.fromObject(e.sourceCodeInfo,t+1)}switch(null!=e.syntax&&(o.syntax=String(e.syntax)),e.edition){default:"number"==typeof e.edition&&(o.edition=e.edition);break;case"EDITION_UNKNOWN":case 0:o.edition=0;break;case"EDITION_LEGACY":case 900:o.edition=900;break;case"EDITION_PROTO2":case 998:o.edition=998;break;case"EDITION_PROTO3":case 999:o.edition=999;break;case"EDITION_2023":case 1e3:o.edition=1e3;break;case"EDITION_2024":case 1001:o.edition=1001;break;case"EDITION_2026":case 1002:o.edition=1002;break;case"EDITION_UNSTABLE":case 9999:o.edition=9999;break;case"EDITION_1_TEST_ONLY":case 1:o.edition=1;break;case"EDITION_2_TEST_ONLY":case 2:o.edition=2;break;case"EDITION_99997_TEST_ONLY":case 99997:o.edition=99997;break;case"EDITION_99998_TEST_ONLY":case 99998:o.edition=99998;break;case"EDITION_99999_TEST_ONLY":case 99999:o.edition=99999;break;case"EDITION_MAX":case 2147483647:o.edition=2147483647}return o},h.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.dependency=[],r.messageType=[],r.enumType=[],r.service=[],r.extension=[],r.publicDependency=[],r.weakDependency=[],r.optionDependency=[]),t.defaults&&(r.name="",r.package="",r.options=null,r.sourceCodeInfo=null,r.syntax="",r.edition=t.enums===String?"EDITION_UNKNOWN":0),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(r.name=e.name),null!=e.package&&Object.hasOwnProperty.call(e,"package")&&(r.package=e.package),e.dependency&&e.dependency.length){r.dependency=[];for(var n=0;n<e.dependency.length;++n)r.dependency[n]=e.dependency[n]}if(e.messageType&&e.messageType.length){r.messageType=[];for(n=0;n<e.messageType.length;++n)r.messageType[n]=g.google.protobuf.DescriptorProto.toObject(e.messageType[n],t,o+1)}if(e.enumType&&e.enumType.length){r.enumType=[];for(n=0;n<e.enumType.length;++n)r.enumType[n]=g.google.protobuf.EnumDescriptorProto.toObject(e.enumType[n],t,o+1)}if(e.service&&e.service.length){r.service=[];for(n=0;n<e.service.length;++n)r.service[n]=g.google.protobuf.ServiceDescriptorProto.toObject(e.service[n],t,o+1)}if(e.extension&&e.extension.length){r.extension=[];for(n=0;n<e.extension.length;++n)r.extension[n]=g.google.protobuf.FieldDescriptorProto.toObject(e.extension[n],t,o+1)}if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(r.options=g.google.protobuf.FileOptions.toObject(e.options,t,o+1)),null!=e.sourceCodeInfo&&Object.hasOwnProperty.call(e,"sourceCodeInfo")&&(r.sourceCodeInfo=g.google.protobuf.SourceCodeInfo.toObject(e.sourceCodeInfo,t,o+1)),e.publicDependency&&e.publicDependency.length){r.publicDependency=[];for(n=0;n<e.publicDependency.length;++n)r.publicDependency[n]=e.publicDependency[n]}if(e.weakDependency&&e.weakDependency.length){r.weakDependency=[];for(n=0;n<e.weakDependency.length;++n)r.weakDependency[n]=e.weakDependency[n]}if(null!=e.syntax&&Object.hasOwnProperty.call(e,"syntax")&&(r.syntax=e.syntax),null!=e.edition&&Object.hasOwnProperty.call(e,"edition")&&(r.edition=t.enums!==String||void 0===g.google.protobuf.Edition[e.edition]?e.edition:g.google.protobuf.Edition[e.edition]),e.optionDependency&&e.optionDependency.length){r.optionDependency=[];for(n=0;n<e.optionDependency.length;++n)r.optionDependency[n]=e.optionDependency[n]}return r},h.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},h.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FileDescriptorProto"},h),t.DescriptorProto=(O.prototype.name="",O.prototype.field=d.emptyArray,O.prototype.extension=d.emptyArray,O.prototype.nestedType=d.emptyArray,O.prototype.enumType=d.emptyArray,O.prototype.extensionRange=d.emptyArray,O.prototype.oneofDecl=d.emptyArray,O.prototype.options=null,O.prototype.reservedRange=d.emptyArray,O.prototype.reservedName=d.emptyArray,O.prototype.visibility=0,O.create=function(e){return new O(e)},O.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.field&&e.field.length)for(var r=0;r<e.field.length;++r)g.google.protobuf.FieldDescriptorProto.encode(e.field[r],t.uint32(18).fork(),o+1).ldelim();if(null!=e.nestedType&&e.nestedType.length)for(r=0;r<e.nestedType.length;++r)g.google.protobuf.DescriptorProto.encode(e.nestedType[r],t.uint32(26).fork(),o+1).ldelim();if(null!=e.enumType&&e.enumType.length)for(r=0;r<e.enumType.length;++r)g.google.protobuf.EnumDescriptorProto.encode(e.enumType[r],t.uint32(34).fork(),o+1).ldelim();if(null!=e.extensionRange&&e.extensionRange.length)for(r=0;r<e.extensionRange.length;++r)g.google.protobuf.DescriptorProto.ExtensionRange.encode(e.extensionRange[r],t.uint32(42).fork(),o+1).ldelim();if(null!=e.extension&&e.extension.length)for(r=0;r<e.extension.length;++r)g.google.protobuf.FieldDescriptorProto.encode(e.extension[r],t.uint32(50).fork(),o+1).ldelim();if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&g.google.protobuf.MessageOptions.encode(e.options,t.uint32(58).fork(),o+1).ldelim(),null!=e.oneofDecl&&e.oneofDecl.length)for(r=0;r<e.oneofDecl.length;++r)g.google.protobuf.OneofDescriptorProto.encode(e.oneofDecl[r],t.uint32(66).fork(),o+1).ldelim();if(null!=e.reservedRange&&e.reservedRange.length)for(r=0;r<e.reservedRange.length;++r)g.google.protobuf.DescriptorProto.ReservedRange.encode(e.reservedRange[r],t.uint32(74).fork(),o+1).ldelim();if(null!=e.reservedName&&e.reservedName.length)for(r=0;r<e.reservedName.length;++r)t.uint32(82).string(e.reservedName[r]);return null!=e.visibility&&Object.hasOwnProperty.call(e,"visibility")&&t.uint32(88).int32(e.visibility),t},O.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},O.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.DescriptorProto;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.field&&i.field.length||(i.field=[]),i.field.push(g.google.protobuf.FieldDescriptorProto.decode(e,e.uint32(),void 0,r+1));break;case 6:i.extension&&i.extension.length||(i.extension=[]),i.extension.push(g.google.protobuf.FieldDescriptorProto.decode(e,e.uint32(),void 0,r+1));break;case 3:i.nestedType&&i.nestedType.length||(i.nestedType=[]),i.nestedType.push(g.google.protobuf.DescriptorProto.decode(e,e.uint32(),void 0,r+1));break;case 4:i.enumType&&i.enumType.length||(i.enumType=[]),i.enumType.push(g.google.protobuf.EnumDescriptorProto.decode(e,e.uint32(),void 0,r+1));break;case 5:i.extensionRange&&i.extensionRange.length||(i.extensionRange=[]),i.extensionRange.push(g.google.protobuf.DescriptorProto.ExtensionRange.decode(e,e.uint32(),void 0,r+1));break;case 8:i.oneofDecl&&i.oneofDecl.length||(i.oneofDecl=[]),i.oneofDecl.push(g.google.protobuf.OneofDescriptorProto.decode(e,e.uint32(),void 0,r+1));break;case 7:i.options=g.google.protobuf.MessageOptions.decode(e,e.uint32(),void 0,r+1);break;case 9:i.reservedRange&&i.reservedRange.length||(i.reservedRange=[]),i.reservedRange.push(g.google.protobuf.DescriptorProto.ReservedRange.decode(e,e.uint32(),void 0,r+1));break;case 10:i.reservedName&&i.reservedName.length||(i.reservedName=[]),i.reservedName.push(e.string());break;case 11:i.visibility=e.int32();break;default:e.skipType(7&a,r)}}return i},O.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},O.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name))return"name: string expected";if(null!=e.field&&Object.hasOwnProperty.call(e,"field")){if(!Array.isArray(e.field))return"field: array expected";for(var o=0;o<e.field.length;++o)if(r=g.google.protobuf.FieldDescriptorProto.verify(e.field[o],t+1))return"field."+r}if(null!=e.extension&&Object.hasOwnProperty.call(e,"extension")){if(!Array.isArray(e.extension))return"extension: array expected";for(o=0;o<e.extension.length;++o)if(r=g.google.protobuf.FieldDescriptorProto.verify(e.extension[o],t+1))return"extension."+r}if(null!=e.nestedType&&Object.hasOwnProperty.call(e,"nestedType")){if(!Array.isArray(e.nestedType))return"nestedType: array expected";for(o=0;o<e.nestedType.length;++o)if(r=g.google.protobuf.DescriptorProto.verify(e.nestedType[o],t+1))return"nestedType."+r}if(null!=e.enumType&&Object.hasOwnProperty.call(e,"enumType")){if(!Array.isArray(e.enumType))return"enumType: array expected";for(o=0;o<e.enumType.length;++o)if(r=g.google.protobuf.EnumDescriptorProto.verify(e.enumType[o],t+1))return"enumType."+r}if(null!=e.extensionRange&&Object.hasOwnProperty.call(e,"extensionRange")){if(!Array.isArray(e.extensionRange))return"extensionRange: array expected";for(o=0;o<e.extensionRange.length;++o)if(r=g.google.protobuf.DescriptorProto.ExtensionRange.verify(e.extensionRange[o],t+1))return"extensionRange."+r}if(null!=e.oneofDecl&&Object.hasOwnProperty.call(e,"oneofDecl")){if(!Array.isArray(e.oneofDecl))return"oneofDecl: array expected";for(o=0;o<e.oneofDecl.length;++o)if(r=g.google.protobuf.OneofDescriptorProto.verify(e.oneofDecl[o],t+1))return"oneofDecl."+r}if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(r=g.google.protobuf.MessageOptions.verify(e.options,t+1)))return"options."+r;if(null!=e.reservedRange&&Object.hasOwnProperty.call(e,"reservedRange")){if(!Array.isArray(e.reservedRange))return"reservedRange: array expected";for(var r,o=0;o<e.reservedRange.length;++o)if(r=g.google.protobuf.DescriptorProto.ReservedRange.verify(e.reservedRange[o],t+1))return"reservedRange."+r}if(null!=e.reservedName&&Object.hasOwnProperty.call(e,"reservedName")){if(!Array.isArray(e.reservedName))return"reservedName: array expected";for(o=0;o<e.reservedName.length;++o)if(!d.isString(e.reservedName[o]))return"reservedName: string[] expected"}if(null!=e.visibility&&Object.hasOwnProperty.call(e,"visibility"))switch(e.visibility){default:return"visibility: enum value expected";case 0:case 1:case 2:}return null},O.fromObject=function(e,t){if(e instanceof g.google.protobuf.DescriptorProto)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.DescriptorProto: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.DescriptorProto;if(null!=e.name&&(o.name=String(e.name)),e.field){if(!Array.isArray(e.field))throw TypeError(".google.protobuf.DescriptorProto.field: array expected");o.field=[];for(var r=0;r<e.field.length;++r){if(!d.isObject(e.field[r]))throw TypeError(".google.protobuf.DescriptorProto.field: object expected");o.field[r]=g.google.protobuf.FieldDescriptorProto.fromObject(e.field[r],t+1)}}if(e.extension){if(!Array.isArray(e.extension))throw TypeError(".google.protobuf.DescriptorProto.extension: array expected");o.extension=[];for(r=0;r<e.extension.length;++r){if(!d.isObject(e.extension[r]))throw TypeError(".google.protobuf.DescriptorProto.extension: object expected");o.extension[r]=g.google.protobuf.FieldDescriptorProto.fromObject(e.extension[r],t+1)}}if(e.nestedType){if(!Array.isArray(e.nestedType))throw TypeError(".google.protobuf.DescriptorProto.nestedType: array expected");o.nestedType=[];for(r=0;r<e.nestedType.length;++r){if(!d.isObject(e.nestedType[r]))throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected");o.nestedType[r]=g.google.protobuf.DescriptorProto.fromObject(e.nestedType[r],t+1)}}if(e.enumType){if(!Array.isArray(e.enumType))throw TypeError(".google.protobuf.DescriptorProto.enumType: array expected");o.enumType=[];for(r=0;r<e.enumType.length;++r){if(!d.isObject(e.enumType[r]))throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected");o.enumType[r]=g.google.protobuf.EnumDescriptorProto.fromObject(e.enumType[r],t+1)}}if(e.extensionRange){if(!Array.isArray(e.extensionRange))throw TypeError(".google.protobuf.DescriptorProto.extensionRange: array expected");o.extensionRange=[];for(r=0;r<e.extensionRange.length;++r){if(!d.isObject(e.extensionRange[r]))throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected");o.extensionRange[r]=g.google.protobuf.DescriptorProto.ExtensionRange.fromObject(e.extensionRange[r],t+1)}}if(e.oneofDecl){if(!Array.isArray(e.oneofDecl))throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: array expected");o.oneofDecl=[];for(r=0;r<e.oneofDecl.length;++r){if(!d.isObject(e.oneofDecl[r]))throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected");o.oneofDecl[r]=g.google.protobuf.OneofDescriptorProto.fromObject(e.oneofDecl[r],t+1)}}if(null!=e.options){if(!d.isObject(e.options))throw TypeError(".google.protobuf.DescriptorProto.options: object expected");o.options=g.google.protobuf.MessageOptions.fromObject(e.options,t+1)}if(e.reservedRange){if(!Array.isArray(e.reservedRange))throw TypeError(".google.protobuf.DescriptorProto.reservedRange: array expected");o.reservedRange=[];for(r=0;r<e.reservedRange.length;++r){if(!d.isObject(e.reservedRange[r]))throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected");o.reservedRange[r]=g.google.protobuf.DescriptorProto.ReservedRange.fromObject(e.reservedRange[r],t+1)}}if(e.reservedName){if(!Array.isArray(e.reservedName))throw TypeError(".google.protobuf.DescriptorProto.reservedName: array expected");o.reservedName=[];for(r=0;r<e.reservedName.length;++r)o.reservedName[r]=String(e.reservedName[r])}switch(e.visibility){default:"number"==typeof e.visibility&&(o.visibility=e.visibility);break;case"VISIBILITY_UNSET":case 0:o.visibility=0;break;case"VISIBILITY_LOCAL":case 1:o.visibility=1;break;case"VISIBILITY_EXPORT":case 2:o.visibility=2}return o},O.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.field=[],r.nestedType=[],r.enumType=[],r.extensionRange=[],r.extension=[],r.oneofDecl=[],r.reservedRange=[],r.reservedName=[]),t.defaults&&(r.name="",r.options=null,r.visibility=t.enums===String?"VISIBILITY_UNSET":0),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(r.name=e.name),e.field&&e.field.length){r.field=[];for(var n=0;n<e.field.length;++n)r.field[n]=g.google.protobuf.FieldDescriptorProto.toObject(e.field[n],t,o+1)}if(e.nestedType&&e.nestedType.length){r.nestedType=[];for(n=0;n<e.nestedType.length;++n)r.nestedType[n]=g.google.protobuf.DescriptorProto.toObject(e.nestedType[n],t,o+1)}if(e.enumType&&e.enumType.length){r.enumType=[];for(n=0;n<e.enumType.length;++n)r.enumType[n]=g.google.protobuf.EnumDescriptorProto.toObject(e.enumType[n],t,o+1)}if(e.extensionRange&&e.extensionRange.length){r.extensionRange=[];for(n=0;n<e.extensionRange.length;++n)r.extensionRange[n]=g.google.protobuf.DescriptorProto.ExtensionRange.toObject(e.extensionRange[n],t,o+1)}if(e.extension&&e.extension.length){r.extension=[];for(n=0;n<e.extension.length;++n)r.extension[n]=g.google.protobuf.FieldDescriptorProto.toObject(e.extension[n],t,o+1)}if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(r.options=g.google.protobuf.MessageOptions.toObject(e.options,t,o+1)),e.oneofDecl&&e.oneofDecl.length){r.oneofDecl=[];for(n=0;n<e.oneofDecl.length;++n)r.oneofDecl[n]=g.google.protobuf.OneofDescriptorProto.toObject(e.oneofDecl[n],t,o+1)}if(e.reservedRange&&e.reservedRange.length){r.reservedRange=[];for(n=0;n<e.reservedRange.length;++n)r.reservedRange[n]=g.google.protobuf.DescriptorProto.ReservedRange.toObject(e.reservedRange[n],t,o+1)}if(e.reservedName&&e.reservedName.length){r.reservedName=[];for(n=0;n<e.reservedName.length;++n)r.reservedName[n]=e.reservedName[n]}return null!=e.visibility&&Object.hasOwnProperty.call(e,"visibility")&&(r.visibility=t.enums!==String||void 0===g.google.protobuf.SymbolVisibility[e.visibility]?e.visibility:g.google.protobuf.SymbolVisibility[e.visibility]),r},O.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},O.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.DescriptorProto"},O.ExtensionRange=(he.prototype.start=0,he.prototype.end=0,he.prototype.options=null,he.create=function(e){return new he(e)},he.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int32(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(16).int32(e.end),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&g.google.protobuf.ExtensionRangeOptions.encode(e.options,t.uint32(26).fork(),o+1).ldelim(),t},he.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},he.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.DescriptorProto.ExtensionRange;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.start=e.int32();break;case 2:i.end=e.int32();break;case 3:i.options=g.google.protobuf.ExtensionRangeOptions.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},he.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},he.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.start&&Object.hasOwnProperty.call(e,"start")&&!d.isInteger(e.start))return"start: integer expected";if(null!=e.end&&Object.hasOwnProperty.call(e,"end")&&!d.isInteger(e.end))return"end: integer expected";if(null!=e.options&&Object.hasOwnProperty.call(e,"options")){e=g.google.protobuf.ExtensionRangeOptions.verify(e.options,t+1);if(e)return"options."+e}return null},he.fromObject=function(e,t){if(e instanceof g.google.protobuf.DescriptorProto.ExtensionRange)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.DescriptorProto.ExtensionRange;if(null!=e.start&&(o.start=0|e.start),null!=e.end&&(o.end=0|e.end),null!=e.options){if(!d.isObject(e.options))throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected");o.options=g.google.protobuf.ExtensionRangeOptions.fromObject(e.options,t+1)}return o},he.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.start=0,r.end=0,r.options=null),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&(r.start=e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&(r.end=e.end),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(r.options=g.google.protobuf.ExtensionRangeOptions.toObject(e.options,t,o+1)),r},he.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},he.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.DescriptorProto.ExtensionRange"},he),O.ReservedRange=(Oe.prototype.start=0,Oe.prototype.end=0,Oe.create=function(e){return new Oe(e)},Oe.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int32(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(16).int32(e.end),t},Oe.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Oe.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.DescriptorProto.ReservedRange;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.start=e.int32();break;case 2:i.end=e.int32();break;default:e.skipType(7&a,r)}}return i},Oe.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Oe.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.start&&Object.hasOwnProperty.call(e,"start")&&!d.isInteger(e.start)?"start: integer expected":null!=e.end&&Object.hasOwnProperty.call(e,"end")&&!d.isInteger(e.end)?"end: integer expected":null},Oe.fromObject=function(e,t){if(e instanceof g.google.protobuf.DescriptorProto.ReservedRange)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.DescriptorProto.ReservedRange: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.DescriptorProto.ReservedRange;return null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t},Oe.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.start=0,o.end=0),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&(o.start=e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&(o.end=e.end),o},Oe.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Oe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.DescriptorProto.ReservedRange"},Oe),O),t.ExtensionRangeOptions=(v.prototype.uninterpretedOption=d.emptyArray,v.prototype.declaration=d.emptyArray,v.prototype.features=null,v.prototype.verification=1,v.create=function(e){return new v(e)},v.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.declaration&&e.declaration.length)for(var r=0;r<e.declaration.length;++r)g.google.protobuf.ExtensionRangeOptions.Declaration.encode(e.declaration[r],t.uint32(18).fork(),o+1).ldelim();if(null!=e.verification&&Object.hasOwnProperty.call(e,"verification")&&t.uint32(24).int32(e.verification),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&g.google.protobuf.FeatureSet.encode(e.features,t.uint32(402).fork(),o+1).ldelim(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(r=0;r<e.uninterpretedOption.length;++r)g.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork(),o+1).ldelim();return t},v.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},v.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.ExtensionRangeOptions;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 999:i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(g.google.protobuf.UninterpretedOption.decode(e,e.uint32(),void 0,r+1));break;case 2:i.declaration&&i.declaration.length||(i.declaration=[]),i.declaration.push(g.google.protobuf.ExtensionRangeOptions.Declaration.decode(e,e.uint32(),void 0,r+1));break;case 50:i.features=g.google.protobuf.FeatureSet.decode(e,e.uint32(),void 0,r+1);break;case 3:i.verification=e.int32();break;default:e.skipType(7&a,r)}}return i},v.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},v.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.uninterpretedOption&&Object.hasOwnProperty.call(e,"uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var o=0;o<e.uninterpretedOption.length;++o)if(r=g.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[o],t+1))return"uninterpretedOption."+r}if(null!=e.declaration&&Object.hasOwnProperty.call(e,"declaration")){if(!Array.isArray(e.declaration))return"declaration: array expected";for(o=0;o<e.declaration.length;++o)if(r=g.google.protobuf.ExtensionRangeOptions.Declaration.verify(e.declaration[o],t+1))return"declaration."+r}var r;if(null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(r=g.google.protobuf.FeatureSet.verify(e.features,t+1)))return"features."+r;if(null!=e.verification&&Object.hasOwnProperty.call(e,"verification"))switch(e.verification){default:return"verification: enum value expected";case 0:case 1:}return null},v.fromObject=function(e,t){if(e instanceof g.google.protobuf.ExtensionRangeOptions)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.ExtensionRangeOptions: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.ExtensionRangeOptions;if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: array expected");o.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if(!d.isObject(e.uninterpretedOption[r]))throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: object expected");o.uninterpretedOption[r]=g.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r],t+1)}}if(e.declaration){if(!Array.isArray(e.declaration))throw TypeError(".google.protobuf.ExtensionRangeOptions.declaration: array expected");o.declaration=[];for(r=0;r<e.declaration.length;++r){if(!d.isObject(e.declaration[r]))throw TypeError(".google.protobuf.ExtensionRangeOptions.declaration: object expected");o.declaration[r]=g.google.protobuf.ExtensionRangeOptions.Declaration.fromObject(e.declaration[r],t+1)}}if(null!=e.features){if(!d.isObject(e.features))throw TypeError(".google.protobuf.ExtensionRangeOptions.features: object expected");o.features=g.google.protobuf.FeatureSet.fromObject(e.features,t+1)}switch(e.verification){case"DECLARATION":case 0:o.verification=0;break;default:"number"==typeof e.verification&&(o.verification=e.verification);break;case"UNVERIFIED":case 1:o.verification=1}return o},v.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.declaration=[],r.uninterpretedOption=[]),t.defaults&&(r.verification=t.enums===String?"UNVERIFIED":1,r.features=null),e.declaration&&e.declaration.length){r.declaration=[];for(var n=0;n<e.declaration.length;++n)r.declaration[n]=g.google.protobuf.ExtensionRangeOptions.Declaration.toObject(e.declaration[n],t,o+1)}if(null!=e.verification&&Object.hasOwnProperty.call(e,"verification")&&(r.verification=t.enums!==String||void 0===g.google.protobuf.ExtensionRangeOptions.VerificationState[e.verification]?e.verification:g.google.protobuf.ExtensionRangeOptions.VerificationState[e.verification]),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(r.features=g.google.protobuf.FeatureSet.toObject(e.features,t,o+1)),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=g.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t,o+1)}return r},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.protobuf.ExtensionRangeOptions"},v.Declaration=(ve.prototype.number=0,ve.prototype.fullName="",ve.prototype.type="",ve.prototype.reserved=!1,ve.prototype.repeated=!1,ve.create=function(e){return new ve(e)},ve.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(8).int32(e.number),null!=e.fullName&&Object.hasOwnProperty.call(e,"fullName")&&t.uint32(18).string(e.fullName),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(26).string(e.type),null!=e.reserved&&Object.hasOwnProperty.call(e,"reserved")&&t.uint32(40).bool(e.reserved),null!=e.repeated&&Object.hasOwnProperty.call(e,"repeated")&&t.uint32(48).bool(e.repeated),t},ve.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ve.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.ExtensionRangeOptions.Declaration;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.number=e.int32();break;case 2:i.fullName=e.string();break;case 3:i.type=e.string();break;case 5:i.reserved=e.bool();break;case 6:i.repeated=e.bool();break;default:e.skipType(7&a,r)}}return i},ve.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ve.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.number&&Object.hasOwnProperty.call(e,"number")&&!d.isInteger(e.number)?"number: integer expected":null!=e.fullName&&Object.hasOwnProperty.call(e,"fullName")&&!d.isString(e.fullName)?"fullName: string expected":null!=e.type&&Object.hasOwnProperty.call(e,"type")&&!d.isString(e.type)?"type: string expected":null!=e.reserved&&Object.hasOwnProperty.call(e,"reserved")&&"boolean"!=typeof e.reserved?"reserved: boolean expected":null!=e.repeated&&Object.hasOwnProperty.call(e,"repeated")&&"boolean"!=typeof e.repeated?"repeated: boolean expected":null},ve.fromObject=function(e,t){if(e instanceof g.google.protobuf.ExtensionRangeOptions.Declaration)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.ExtensionRangeOptions.Declaration: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.ExtensionRangeOptions.Declaration;return null!=e.number&&(t.number=0|e.number),null!=e.fullName&&(t.fullName=String(e.fullName)),null!=e.type&&(t.type=String(e.type)),null!=e.reserved&&(t.reserved=Boolean(e.reserved)),null!=e.repeated&&(t.repeated=Boolean(e.repeated)),t},ve.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.number=0,o.fullName="",o.type="",o.reserved=!1,o.repeated=!1),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&(o.number=e.number),null!=e.fullName&&Object.hasOwnProperty.call(e,"fullName")&&(o.fullName=e.fullName),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&(o.type=e.type),null!=e.reserved&&Object.hasOwnProperty.call(e,"reserved")&&(o.reserved=e.reserved),null!=e.repeated&&Object.hasOwnProperty.call(e,"repeated")&&(o.repeated=e.repeated),o},ve.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ve.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.ExtensionRangeOptions.Declaration"},ve),v.VerificationState=(a={},(e=Object.create(a))[a[0]="DECLARATION"]=0,e[a[1]="UNVERIFIED"]=1,e),v),t.FieldDescriptorProto=(w.prototype.name="",w.prototype.number=0,w.prototype.label=1,w.prototype.type=1,w.prototype.typeName="",w.prototype.extendee="",w.prototype.defaultValue="",w.prototype.oneofIndex=0,w.prototype.jsonName="",w.prototype.options=null,w.prototype.proto3Optional=!1,w.create=function(e){return new w(e)},w.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.extendee&&Object.hasOwnProperty.call(e,"extendee")&&t.uint32(18).string(e.extendee),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(24).int32(e.number),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(32).int32(e.label),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(40).int32(e.type),null!=e.typeName&&Object.hasOwnProperty.call(e,"typeName")&&t.uint32(50).string(e.typeName),null!=e.defaultValue&&Object.hasOwnProperty.call(e,"defaultValue")&&t.uint32(58).string(e.defaultValue),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&g.google.protobuf.FieldOptions.encode(e.options,t.uint32(66).fork(),o+1).ldelim(),null!=e.oneofIndex&&Object.hasOwnProperty.call(e,"oneofIndex")&&t.uint32(72).int32(e.oneofIndex),null!=e.jsonName&&Object.hasOwnProperty.call(e,"jsonName")&&t.uint32(82).string(e.jsonName),null!=e.proto3Optional&&Object.hasOwnProperty.call(e,"proto3Optional")&&t.uint32(136).bool(e.proto3Optional),t},w.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},w.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FieldDescriptorProto;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 3:i.number=e.int32();break;case 4:i.label=e.int32();break;case 5:i.type=e.int32();break;case 6:i.typeName=e.string();break;case 2:i.extendee=e.string();break;case 7:i.defaultValue=e.string();break;case 9:i.oneofIndex=e.int32();break;case 10:i.jsonName=e.string();break;case 8:i.options=g.google.protobuf.FieldOptions.decode(e,e.uint32(),void 0,r+1);break;case 17:i.proto3Optional=e.bool();break;default:e.skipType(7&a,r)}}return i},w.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},w.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name))return"name: string expected";if(null!=e.number&&Object.hasOwnProperty.call(e,"number")&&!d.isInteger(e.number))return"number: integer expected";if(null!=e.label&&Object.hasOwnProperty.call(e,"label"))switch(e.label){default:return"label: enum value expected";case 1:case 3:case 2:}if(null!=e.type&&Object.hasOwnProperty.call(e,"type"))switch(e.type){default:return"type: enum value expected";case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:}if(null!=e.typeName&&Object.hasOwnProperty.call(e,"typeName")&&!d.isString(e.typeName))return"typeName: string expected";if(null!=e.extendee&&Object.hasOwnProperty.call(e,"extendee")&&!d.isString(e.extendee))return"extendee: string expected";if(null!=e.defaultValue&&Object.hasOwnProperty.call(e,"defaultValue")&&!d.isString(e.defaultValue))return"defaultValue: string expected";if(null!=e.oneofIndex&&Object.hasOwnProperty.call(e,"oneofIndex")&&!d.isInteger(e.oneofIndex))return"oneofIndex: integer expected";if(null!=e.jsonName&&Object.hasOwnProperty.call(e,"jsonName")&&!d.isString(e.jsonName))return"jsonName: string expected";if(null!=e.options&&Object.hasOwnProperty.call(e,"options")){t=g.google.protobuf.FieldOptions.verify(e.options,t+1);if(t)return"options."+t}return null!=e.proto3Optional&&Object.hasOwnProperty.call(e,"proto3Optional")&&"boolean"!=typeof e.proto3Optional?"proto3Optional: boolean expected":null},w.fromObject=function(e,t){if(e instanceof g.google.protobuf.FieldDescriptorProto)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.FieldDescriptorProto: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.FieldDescriptorProto;switch(null!=e.name&&(o.name=String(e.name)),null!=e.number&&(o.number=0|e.number),e.label){default:"number"==typeof e.label&&(o.label=e.label);break;case"LABEL_OPTIONAL":case 1:o.label=1;break;case"LABEL_REPEATED":case 3:o.label=3;break;case"LABEL_REQUIRED":case 2:o.label=2}switch(e.type){default:"number"==typeof e.type&&(o.type=e.type);break;case"TYPE_DOUBLE":case 1:o.type=1;break;case"TYPE_FLOAT":case 2:o.type=2;break;case"TYPE_INT64":case 3:o.type=3;break;case"TYPE_UINT64":case 4:o.type=4;break;case"TYPE_INT32":case 5:o.type=5;break;case"TYPE_FIXED64":case 6:o.type=6;break;case"TYPE_FIXED32":case 7:o.type=7;break;case"TYPE_BOOL":case 8:o.type=8;break;case"TYPE_STRING":case 9:o.type=9;break;case"TYPE_GROUP":case 10:o.type=10;break;case"TYPE_MESSAGE":case 11:o.type=11;break;case"TYPE_BYTES":case 12:o.type=12;break;case"TYPE_UINT32":case 13:o.type=13;break;case"TYPE_ENUM":case 14:o.type=14;break;case"TYPE_SFIXED32":case 15:o.type=15;break;case"TYPE_SFIXED64":case 16:o.type=16;break;case"TYPE_SINT32":case 17:o.type=17;break;case"TYPE_SINT64":case 18:o.type=18}if(null!=e.typeName&&(o.typeName=String(e.typeName)),null!=e.extendee&&(o.extendee=String(e.extendee)),null!=e.defaultValue&&(o.defaultValue=String(e.defaultValue)),null!=e.oneofIndex&&(o.oneofIndex=0|e.oneofIndex),null!=e.jsonName&&(o.jsonName=String(e.jsonName)),null!=e.options){if(!d.isObject(e.options))throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected");o.options=g.google.protobuf.FieldOptions.fromObject(e.options,t+1)}return null!=e.proto3Optional&&(o.proto3Optional=Boolean(e.proto3Optional)),o},w.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.name="",r.extendee="",r.number=0,r.label=t.enums===String?"LABEL_OPTIONAL":1,r.type=t.enums===String?"TYPE_DOUBLE":1,r.typeName="",r.defaultValue="",r.options=null,r.oneofIndex=0,r.jsonName="",r.proto3Optional=!1),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(r.name=e.name),null!=e.extendee&&Object.hasOwnProperty.call(e,"extendee")&&(r.extendee=e.extendee),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&(r.number=e.number),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&(r.label=t.enums!==String||void 0===g.google.protobuf.FieldDescriptorProto.Label[e.label]?e.label:g.google.protobuf.FieldDescriptorProto.Label[e.label]),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&(r.type=t.enums!==String||void 0===g.google.protobuf.FieldDescriptorProto.Type[e.type]?e.type:g.google.protobuf.FieldDescriptorProto.Type[e.type]),null!=e.typeName&&Object.hasOwnProperty.call(e,"typeName")&&(r.typeName=e.typeName),null!=e.defaultValue&&Object.hasOwnProperty.call(e,"defaultValue")&&(r.defaultValue=e.defaultValue),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(r.options=g.google.protobuf.FieldOptions.toObject(e.options,t,o+1)),null!=e.oneofIndex&&Object.hasOwnProperty.call(e,"oneofIndex")&&(r.oneofIndex=e.oneofIndex),null!=e.jsonName&&Object.hasOwnProperty.call(e,"jsonName")&&(r.jsonName=e.jsonName),null!=e.proto3Optional&&Object.hasOwnProperty.call(e,"proto3Optional")&&(r.proto3Optional=e.proto3Optional),r},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.protobuf.FieldDescriptorProto"},w.Type=(a={},(e=Object.create(a))[a[1]="TYPE_DOUBLE"]=1,e[a[2]="TYPE_FLOAT"]=2,e[a[3]="TYPE_INT64"]=3,e[a[4]="TYPE_UINT64"]=4,e[a[5]="TYPE_INT32"]=5,e[a[6]="TYPE_FIXED64"]=6,e[a[7]="TYPE_FIXED32"]=7,e[a[8]="TYPE_BOOL"]=8,e[a[9]="TYPE_STRING"]=9,e[a[10]="TYPE_GROUP"]=10,e[a[11]="TYPE_MESSAGE"]=11,e[a[12]="TYPE_BYTES"]=12,e[a[13]="TYPE_UINT32"]=13,e[a[14]="TYPE_ENUM"]=14,e[a[15]="TYPE_SFIXED32"]=15,e[a[16]="TYPE_SFIXED64"]=16,e[a[17]="TYPE_SINT32"]=17,e[a[18]="TYPE_SINT64"]=18,e),w.Label=(a={},(e=Object.create(a))[a[1]="LABEL_OPTIONAL"]=1,e[a[3]="LABEL_REPEATED"]=3,e[a[2]="LABEL_REQUIRED"]=2,e),w),t.OneofDescriptorProto=(we.prototype.name="",we.prototype.options=null,we.create=function(e){return new we(e)},we.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&g.google.protobuf.OneofOptions.encode(e.options,t.uint32(18).fork(),o+1).ldelim(),t},we.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},we.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.OneofDescriptorProto;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.options=g.google.protobuf.OneofOptions.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},we.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},we.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name))return"name: string expected";if(null!=e.options&&Object.hasOwnProperty.call(e,"options")){e=g.google.protobuf.OneofOptions.verify(e.options,t+1);if(e)return"options."+e}return null},we.fromObject=function(e,t){if(e instanceof g.google.protobuf.OneofDescriptorProto)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.OneofDescriptorProto: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.OneofDescriptorProto;if(null!=e.name&&(o.name=String(e.name)),null!=e.options){if(!d.isObject(e.options))throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected");o.options=g.google.protobuf.OneofOptions.fromObject(e.options,t+1)}return o},we.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.name="",r.options=null),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(r.name=e.name),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(r.options=g.google.protobuf.OneofOptions.toObject(e.options,t,o+1)),r},we.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},we.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.OneofDescriptorProto"},we),t.EnumDescriptorProto=(S.prototype.name="",S.prototype.value=d.emptyArray,S.prototype.options=null,S.prototype.reservedRange=d.emptyArray,S.prototype.reservedName=d.emptyArray,S.prototype.visibility=0,S.create=function(e){return new S(e)},S.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.value&&e.value.length)for(var r=0;r<e.value.length;++r)g.google.protobuf.EnumValueDescriptorProto.encode(e.value[r],t.uint32(18).fork(),o+1).ldelim();if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&g.google.protobuf.EnumOptions.encode(e.options,t.uint32(26).fork(),o+1).ldelim(),null!=e.reservedRange&&e.reservedRange.length)for(r=0;r<e.reservedRange.length;++r)g.google.protobuf.EnumDescriptorProto.EnumReservedRange.encode(e.reservedRange[r],t.uint32(34).fork(),o+1).ldelim();if(null!=e.reservedName&&e.reservedName.length)for(r=0;r<e.reservedName.length;++r)t.uint32(42).string(e.reservedName[r]);return null!=e.visibility&&Object.hasOwnProperty.call(e,"visibility")&&t.uint32(48).int32(e.visibility),t},S.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},S.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.EnumDescriptorProto;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.value&&i.value.length||(i.value=[]),i.value.push(g.google.protobuf.EnumValueDescriptorProto.decode(e,e.uint32(),void 0,r+1));break;case 3:i.options=g.google.protobuf.EnumOptions.decode(e,e.uint32(),void 0,r+1);break;case 4:i.reservedRange&&i.reservedRange.length||(i.reservedRange=[]),i.reservedRange.push(g.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(e,e.uint32(),void 0,r+1));break;case 5:i.reservedName&&i.reservedName.length||(i.reservedName=[]),i.reservedName.push(e.string());break;case 6:i.visibility=e.int32();break;default:e.skipType(7&a,r)}}return i},S.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},S.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name))return"name: string expected";if(null!=e.value&&Object.hasOwnProperty.call(e,"value")){if(!Array.isArray(e.value))return"value: array expected";for(var o=0;o<e.value.length;++o)if(r=g.google.protobuf.EnumValueDescriptorProto.verify(e.value[o],t+1))return"value."+r}if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(r=g.google.protobuf.EnumOptions.verify(e.options,t+1)))return"options."+r;if(null!=e.reservedRange&&Object.hasOwnProperty.call(e,"reservedRange")){if(!Array.isArray(e.reservedRange))return"reservedRange: array expected";for(var r,o=0;o<e.reservedRange.length;++o)if(r=g.google.protobuf.EnumDescriptorProto.EnumReservedRange.verify(e.reservedRange[o],t+1))return"reservedRange."+r}if(null!=e.reservedName&&Object.hasOwnProperty.call(e,"reservedName")){if(!Array.isArray(e.reservedName))return"reservedName: array expected";for(o=0;o<e.reservedName.length;++o)if(!d.isString(e.reservedName[o]))return"reservedName: string[] expected"}if(null!=e.visibility&&Object.hasOwnProperty.call(e,"visibility"))switch(e.visibility){default:return"visibility: enum value expected";case 0:case 1:case 2:}return null},S.fromObject=function(e,t){if(e instanceof g.google.protobuf.EnumDescriptorProto)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.EnumDescriptorProto: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.EnumDescriptorProto;if(null!=e.name&&(o.name=String(e.name)),e.value){if(!Array.isArray(e.value))throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected");o.value=[];for(var r=0;r<e.value.length;++r){if(!d.isObject(e.value[r]))throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected");o.value[r]=g.google.protobuf.EnumValueDescriptorProto.fromObject(e.value[r],t+1)}}if(null!=e.options){if(!d.isObject(e.options))throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected");o.options=g.google.protobuf.EnumOptions.fromObject(e.options,t+1)}if(e.reservedRange){if(!Array.isArray(e.reservedRange))throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: array expected");o.reservedRange=[];for(r=0;r<e.reservedRange.length;++r){if(!d.isObject(e.reservedRange[r]))throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: object expected");o.reservedRange[r]=g.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromObject(e.reservedRange[r],t+1)}}if(e.reservedName){if(!Array.isArray(e.reservedName))throw TypeError(".google.protobuf.EnumDescriptorProto.reservedName: array expected");o.reservedName=[];for(r=0;r<e.reservedName.length;++r)o.reservedName[r]=String(e.reservedName[r])}switch(e.visibility){default:"number"==typeof e.visibility&&(o.visibility=e.visibility);break;case"VISIBILITY_UNSET":case 0:o.visibility=0;break;case"VISIBILITY_LOCAL":case 1:o.visibility=1;break;case"VISIBILITY_EXPORT":case 2:o.visibility=2}return o},S.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.value=[],r.reservedRange=[],r.reservedName=[]),t.defaults&&(r.name="",r.options=null,r.visibility=t.enums===String?"VISIBILITY_UNSET":0),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(r.name=e.name),e.value&&e.value.length){r.value=[];for(var n=0;n<e.value.length;++n)r.value[n]=g.google.protobuf.EnumValueDescriptorProto.toObject(e.value[n],t,o+1)}if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(r.options=g.google.protobuf.EnumOptions.toObject(e.options,t,o+1)),e.reservedRange&&e.reservedRange.length){r.reservedRange=[];for(n=0;n<e.reservedRange.length;++n)r.reservedRange[n]=g.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(e.reservedRange[n],t,o+1)}if(e.reservedName&&e.reservedName.length){r.reservedName=[];for(n=0;n<e.reservedName.length;++n)r.reservedName[n]=e.reservedName[n]}return null!=e.visibility&&Object.hasOwnProperty.call(e,"visibility")&&(r.visibility=t.enums!==String||void 0===g.google.protobuf.SymbolVisibility[e.visibility]?e.visibility:g.google.protobuf.SymbolVisibility[e.visibility]),r},S.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},S.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.EnumDescriptorProto"},S.EnumReservedRange=(Se.prototype.start=0,Se.prototype.end=0,Se.create=function(e){return new Se(e)},Se.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int32(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(16).int32(e.end),t},Se.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Se.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.EnumDescriptorProto.EnumReservedRange;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.start=e.int32();break;case 2:i.end=e.int32();break;default:e.skipType(7&a,r)}}return i},Se.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Se.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.start&&Object.hasOwnProperty.call(e,"start")&&!d.isInteger(e.start)?"start: integer expected":null!=e.end&&Object.hasOwnProperty.call(e,"end")&&!d.isInteger(e.end)?"end: integer expected":null},Se.fromObject=function(e,t){if(e instanceof g.google.protobuf.EnumDescriptorProto.EnumReservedRange)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.EnumDescriptorProto.EnumReservedRange: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.EnumDescriptorProto.EnumReservedRange;return null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t},Se.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.start=0,o.end=0),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&(o.start=e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&(o.end=e.end),o},Se.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Se.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.EnumDescriptorProto.EnumReservedRange"},Se),S),t.EnumValueDescriptorProto=(je.prototype.name="",je.prototype.number=0,je.prototype.options=null,je.create=function(e){return new je(e)},je.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(16).int32(e.number),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&g.google.protobuf.EnumValueOptions.encode(e.options,t.uint32(26).fork(),o+1).ldelim(),t},je.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},je.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.EnumValueDescriptorProto;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.number=e.int32();break;case 3:i.options=g.google.protobuf.EnumValueOptions.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},je.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},je.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name))return"name: string expected";if(null!=e.number&&Object.hasOwnProperty.call(e,"number")&&!d.isInteger(e.number))return"number: integer expected";if(null!=e.options&&Object.hasOwnProperty.call(e,"options")){e=g.google.protobuf.EnumValueOptions.verify(e.options,t+1);if(e)return"options."+e}return null},je.fromObject=function(e,t){if(e instanceof g.google.protobuf.EnumValueDescriptorProto)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.EnumValueDescriptorProto: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.EnumValueDescriptorProto;if(null!=e.name&&(o.name=String(e.name)),null!=e.number&&(o.number=0|e.number),null!=e.options){if(!d.isObject(e.options))throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected");o.options=g.google.protobuf.EnumValueOptions.fromObject(e.options,t+1)}return o},je.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.name="",r.number=0,r.options=null),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(r.name=e.name),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&(r.number=e.number),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(r.options=g.google.protobuf.EnumValueOptions.toObject(e.options,t,o+1)),r},je.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},je.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.EnumValueDescriptorProto"},je),t.ServiceDescriptorProto=(xe.prototype.name="",xe.prototype.method=d.emptyArray,xe.prototype.options=null,xe.create=function(e){return new xe(e)},xe.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.method&&e.method.length)for(var r=0;r<e.method.length;++r)g.google.protobuf.MethodDescriptorProto.encode(e.method[r],t.uint32(18).fork(),o+1).ldelim();return null!=e.options&&Object.hasOwnProperty.call(e,"options")&&g.google.protobuf.ServiceOptions.encode(e.options,t.uint32(26).fork(),o+1).ldelim(),t},xe.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},xe.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.ServiceDescriptorProto;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.method&&i.method.length||(i.method=[]),i.method.push(g.google.protobuf.MethodDescriptorProto.decode(e,e.uint32(),void 0,r+1));break;case 3:i.options=g.google.protobuf.ServiceOptions.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},xe.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},xe.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name))return"name: string expected";if(null!=e.method&&Object.hasOwnProperty.call(e,"method")){if(!Array.isArray(e.method))return"method: array expected";for(var o=0;o<e.method.length;++o)if(r=g.google.protobuf.MethodDescriptorProto.verify(e.method[o],t+1))return"method."+r}var r;if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(r=g.google.protobuf.ServiceOptions.verify(e.options,t+1)))return"options."+r;return null},xe.fromObject=function(e,t){if(e instanceof g.google.protobuf.ServiceDescriptorProto)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.ServiceDescriptorProto: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.ServiceDescriptorProto;if(null!=e.name&&(o.name=String(e.name)),e.method){if(!Array.isArray(e.method))throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected");o.method=[];for(var r=0;r<e.method.length;++r){if(!d.isObject(e.method[r]))throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected");o.method[r]=g.google.protobuf.MethodDescriptorProto.fromObject(e.method[r],t+1)}}if(null!=e.options){if(!d.isObject(e.options))throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected");o.options=g.google.protobuf.ServiceOptions.fromObject(e.options,t+1)}return o},xe.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.method=[]),t.defaults&&(r.name="",r.options=null),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(r.name=e.name),e.method&&e.method.length){r.method=[];for(var n=0;n<e.method.length;++n)r.method[n]=g.google.protobuf.MethodDescriptorProto.toObject(e.method[n],t,o+1)}return null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(r.options=g.google.protobuf.ServiceOptions.toObject(e.options,t,o+1)),r},xe.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},xe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.ServiceDescriptorProto"},xe),t.MethodDescriptorProto=(j.prototype.name="",j.prototype.inputType="",j.prototype.outputType="",j.prototype.options=null,j.prototype.clientStreaming=!1,j.prototype.serverStreaming=!1,j.create=function(e){return new j(e)},j.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.inputType&&Object.hasOwnProperty.call(e,"inputType")&&t.uint32(18).string(e.inputType),null!=e.outputType&&Object.hasOwnProperty.call(e,"outputType")&&t.uint32(26).string(e.outputType),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&g.google.protobuf.MethodOptions.encode(e.options,t.uint32(34).fork(),o+1).ldelim(),null!=e.clientStreaming&&Object.hasOwnProperty.call(e,"clientStreaming")&&t.uint32(40).bool(e.clientStreaming),null!=e.serverStreaming&&Object.hasOwnProperty.call(e,"serverStreaming")&&t.uint32(48).bool(e.serverStreaming),t},j.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},j.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.MethodDescriptorProto;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.inputType=e.string();break;case 3:i.outputType=e.string();break;case 4:i.options=g.google.protobuf.MethodOptions.decode(e,e.uint32(),void 0,r+1);break;case 5:i.clientStreaming=e.bool();break;case 6:i.serverStreaming=e.bool();break;default:e.skipType(7&a,r)}}return i},j.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},j.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name))return"name: string expected";if(null!=e.inputType&&Object.hasOwnProperty.call(e,"inputType")&&!d.isString(e.inputType))return"inputType: string expected";if(null!=e.outputType&&Object.hasOwnProperty.call(e,"outputType")&&!d.isString(e.outputType))return"outputType: string expected";if(null!=e.options&&Object.hasOwnProperty.call(e,"options")){t=g.google.protobuf.MethodOptions.verify(e.options,t+1);if(t)return"options."+t}return null!=e.clientStreaming&&Object.hasOwnProperty.call(e,"clientStreaming")&&"boolean"!=typeof e.clientStreaming?"clientStreaming: boolean expected":null!=e.serverStreaming&&Object.hasOwnProperty.call(e,"serverStreaming")&&"boolean"!=typeof e.serverStreaming?"serverStreaming: boolean expected":null},j.fromObject=function(e,t){if(e instanceof g.google.protobuf.MethodDescriptorProto)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.MethodDescriptorProto: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.MethodDescriptorProto;if(null!=e.name&&(o.name=String(e.name)),null!=e.inputType&&(o.inputType=String(e.inputType)),null!=e.outputType&&(o.outputType=String(e.outputType)),null!=e.options){if(!d.isObject(e.options))throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected");o.options=g.google.protobuf.MethodOptions.fromObject(e.options,t+1)}return null!=e.clientStreaming&&(o.clientStreaming=Boolean(e.clientStreaming)),null!=e.serverStreaming&&(o.serverStreaming=Boolean(e.serverStreaming)),o},j.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.name="",r.inputType="",r.outputType="",r.options=null,r.clientStreaming=!1,r.serverStreaming=!1),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(r.name=e.name),null!=e.inputType&&Object.hasOwnProperty.call(e,"inputType")&&(r.inputType=e.inputType),null!=e.outputType&&Object.hasOwnProperty.call(e,"outputType")&&(r.outputType=e.outputType),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(r.options=g.google.protobuf.MethodOptions.toObject(e.options,t,o+1)),null!=e.clientStreaming&&Object.hasOwnProperty.call(e,"clientStreaming")&&(r.clientStreaming=e.clientStreaming),null!=e.serverStreaming&&Object.hasOwnProperty.call(e,"serverStreaming")&&(r.serverStreaming=e.serverStreaming),r},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.protobuf.MethodDescriptorProto"},j),t.FileOptions=(x.prototype.javaPackage="",x.prototype.javaOuterClassname="",x.prototype.javaMultipleFiles=!1,x.prototype.javaGenerateEqualsAndHash=!1,x.prototype.javaStringCheckUtf8=!1,x.prototype.optimizeFor=1,x.prototype.goPackage="",x.prototype.ccGenericServices=!1,x.prototype.javaGenericServices=!1,x.prototype.pyGenericServices=!1,x.prototype.deprecated=!1,x.prototype.ccEnableArenas=!0,x.prototype.objcClassPrefix="",x.prototype.csharpNamespace="",x.prototype.swiftPrefix="",x.prototype.phpClassPrefix="",x.prototype.phpNamespace="",x.prototype.phpMetadataNamespace="",x.prototype.rubyPackage="",x.prototype.features=null,x.prototype.uninterpretedOption=d.emptyArray,x.prototype[".google.api.resourceDefinition"]=d.emptyArray,x.create=function(e){return new x(e)},x.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.javaPackage&&Object.hasOwnProperty.call(e,"javaPackage")&&t.uint32(10).string(e.javaPackage),null!=e.javaOuterClassname&&Object.hasOwnProperty.call(e,"javaOuterClassname")&&t.uint32(66).string(e.javaOuterClassname),null!=e.optimizeFor&&Object.hasOwnProperty.call(e,"optimizeFor")&&t.uint32(72).int32(e.optimizeFor),null!=e.javaMultipleFiles&&Object.hasOwnProperty.call(e,"javaMultipleFiles")&&t.uint32(80).bool(e.javaMultipleFiles),null!=e.goPackage&&Object.hasOwnProperty.call(e,"goPackage")&&t.uint32(90).string(e.goPackage),null!=e.ccGenericServices&&Object.hasOwnProperty.call(e,"ccGenericServices")&&t.uint32(128).bool(e.ccGenericServices),null!=e.javaGenericServices&&Object.hasOwnProperty.call(e,"javaGenericServices")&&t.uint32(136).bool(e.javaGenericServices),null!=e.pyGenericServices&&Object.hasOwnProperty.call(e,"pyGenericServices")&&t.uint32(144).bool(e.pyGenericServices),null!=e.javaGenerateEqualsAndHash&&Object.hasOwnProperty.call(e,"javaGenerateEqualsAndHash")&&t.uint32(160).bool(e.javaGenerateEqualsAndHash),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(184).bool(e.deprecated),null!=e.javaStringCheckUtf8&&Object.hasOwnProperty.call(e,"javaStringCheckUtf8")&&t.uint32(216).bool(e.javaStringCheckUtf8),null!=e.ccEnableArenas&&Object.hasOwnProperty.call(e,"ccEnableArenas")&&t.uint32(248).bool(e.ccEnableArenas),null!=e.objcClassPrefix&&Object.hasOwnProperty.call(e,"objcClassPrefix")&&t.uint32(290).string(e.objcClassPrefix),null!=e.csharpNamespace&&Object.hasOwnProperty.call(e,"csharpNamespace")&&t.uint32(298).string(e.csharpNamespace),null!=e.swiftPrefix&&Object.hasOwnProperty.call(e,"swiftPrefix")&&t.uint32(314).string(e.swiftPrefix),null!=e.phpClassPrefix&&Object.hasOwnProperty.call(e,"phpClassPrefix")&&t.uint32(322).string(e.phpClassPrefix),null!=e.phpNamespace&&Object.hasOwnProperty.call(e,"phpNamespace")&&t.uint32(330).string(e.phpNamespace),null!=e.phpMetadataNamespace&&Object.hasOwnProperty.call(e,"phpMetadataNamespace")&&t.uint32(354).string(e.phpMetadataNamespace),null!=e.rubyPackage&&Object.hasOwnProperty.call(e,"rubyPackage")&&t.uint32(362).string(e.rubyPackage),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&g.google.protobuf.FeatureSet.encode(e.features,t.uint32(402).fork(),o+1).ldelim(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)g.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork(),o+1).ldelim();if(null!=e[".google.api.resourceDefinition"]&&e[".google.api.resourceDefinition"].length)for(r=0;r<e[".google.api.resourceDefinition"].length;++r)g.google.api.ResourceDescriptor.encode(e[".google.api.resourceDefinition"][r],t.uint32(8426).fork(),o+1).ldelim();return t},x.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},x.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FileOptions;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.javaPackage=e.string();break;case 8:i.javaOuterClassname=e.string();break;case 10:i.javaMultipleFiles=e.bool();break;case 20:i.javaGenerateEqualsAndHash=e.bool();break;case 27:i.javaStringCheckUtf8=e.bool();break;case 9:i.optimizeFor=e.int32();break;case 11:i.goPackage=e.string();break;case 16:i.ccGenericServices=e.bool();break;case 17:i.javaGenericServices=e.bool();break;case 18:i.pyGenericServices=e.bool();break;case 23:i.deprecated=e.bool();break;case 31:i.ccEnableArenas=e.bool();break;case 36:i.objcClassPrefix=e.string();break;case 37:i.csharpNamespace=e.string();break;case 39:i.swiftPrefix=e.string();break;case 40:i.phpClassPrefix=e.string();break;case 41:i.phpNamespace=e.string();break;case 44:i.phpMetadataNamespace=e.string();break;case 45:i.rubyPackage=e.string();break;case 50:i.features=g.google.protobuf.FeatureSet.decode(e,e.uint32(),void 0,r+1);break;case 999:i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(g.google.protobuf.UninterpretedOption.decode(e,e.uint32(),void 0,r+1));break;case 1053:i[".google.api.resourceDefinition"]&&i[".google.api.resourceDefinition"].length||(i[".google.api.resourceDefinition"]=[]),i[".google.api.resourceDefinition"].push(g.google.api.ResourceDescriptor.decode(e,e.uint32(),void 0,r+1));break;default:e.skipType(7&a,r)}}return i},x.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},x.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.javaPackage&&Object.hasOwnProperty.call(e,"javaPackage")&&!d.isString(e.javaPackage))return"javaPackage: string expected";if(null!=e.javaOuterClassname&&Object.hasOwnProperty.call(e,"javaOuterClassname")&&!d.isString(e.javaOuterClassname))return"javaOuterClassname: string expected";if(null!=e.javaMultipleFiles&&Object.hasOwnProperty.call(e,"javaMultipleFiles")&&"boolean"!=typeof e.javaMultipleFiles)return"javaMultipleFiles: boolean expected";if(null!=e.javaGenerateEqualsAndHash&&Object.hasOwnProperty.call(e,"javaGenerateEqualsAndHash")&&"boolean"!=typeof e.javaGenerateEqualsAndHash)return"javaGenerateEqualsAndHash: boolean expected";if(null!=e.javaStringCheckUtf8&&Object.hasOwnProperty.call(e,"javaStringCheckUtf8")&&"boolean"!=typeof e.javaStringCheckUtf8)return"javaStringCheckUtf8: boolean expected";if(null!=e.optimizeFor&&Object.hasOwnProperty.call(e,"optimizeFor"))switch(e.optimizeFor){default:return"optimizeFor: enum value expected";case 1:case 2:case 3:}if(null!=e.goPackage&&Object.hasOwnProperty.call(e,"goPackage")&&!d.isString(e.goPackage))return"goPackage: string expected";if(null!=e.ccGenericServices&&Object.hasOwnProperty.call(e,"ccGenericServices")&&"boolean"!=typeof e.ccGenericServices)return"ccGenericServices: boolean expected";if(null!=e.javaGenericServices&&Object.hasOwnProperty.call(e,"javaGenericServices")&&"boolean"!=typeof e.javaGenericServices)return"javaGenericServices: boolean expected";if(null!=e.pyGenericServices&&Object.hasOwnProperty.call(e,"pyGenericServices")&&"boolean"!=typeof e.pyGenericServices)return"pyGenericServices: boolean expected";if(null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.ccEnableArenas&&Object.hasOwnProperty.call(e,"ccEnableArenas")&&"boolean"!=typeof e.ccEnableArenas)return"ccEnableArenas: boolean expected";if(null!=e.objcClassPrefix&&Object.hasOwnProperty.call(e,"objcClassPrefix")&&!d.isString(e.objcClassPrefix))return"objcClassPrefix: string expected";if(null!=e.csharpNamespace&&Object.hasOwnProperty.call(e,"csharpNamespace")&&!d.isString(e.csharpNamespace))return"csharpNamespace: string expected";if(null!=e.swiftPrefix&&Object.hasOwnProperty.call(e,"swiftPrefix")&&!d.isString(e.swiftPrefix))return"swiftPrefix: string expected";if(null!=e.phpClassPrefix&&Object.hasOwnProperty.call(e,"phpClassPrefix")&&!d.isString(e.phpClassPrefix))return"phpClassPrefix: string expected";if(null!=e.phpNamespace&&Object.hasOwnProperty.call(e,"phpNamespace")&&!d.isString(e.phpNamespace))return"phpNamespace: string expected";if(null!=e.phpMetadataNamespace&&Object.hasOwnProperty.call(e,"phpMetadataNamespace")&&!d.isString(e.phpMetadataNamespace))return"phpMetadataNamespace: string expected";if(null!=e.rubyPackage&&Object.hasOwnProperty.call(e,"rubyPackage")&&!d.isString(e.rubyPackage))return"rubyPackage: string expected";if(null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(r=g.google.protobuf.FeatureSet.verify(e.features,t+1)))return"features."+r;if(null!=e.uninterpretedOption&&Object.hasOwnProperty.call(e,"uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var o=0;o<e.uninterpretedOption.length;++o)if(r=g.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[o],t+1))return"uninterpretedOption."+r}if(null!=e[".google.api.resourceDefinition"]&&Object.hasOwnProperty.call(e,".google.api.resourceDefinition")){if(!Array.isArray(e[".google.api.resourceDefinition"]))return".google.api.resourceDefinition: array expected";for(var r,o=0;o<e[".google.api.resourceDefinition"].length;++o)if(r=g.google.api.ResourceDescriptor.verify(e[".google.api.resourceDefinition"][o],t+1))return".google.api.resourceDefinition."+r}return null},x.fromObject=function(e,t){if(e instanceof g.google.protobuf.FileOptions)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.FileOptions: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.FileOptions;switch(null!=e.javaPackage&&(o.javaPackage=String(e.javaPackage)),null!=e.javaOuterClassname&&(o.javaOuterClassname=String(e.javaOuterClassname)),null!=e.javaMultipleFiles&&(o.javaMultipleFiles=Boolean(e.javaMultipleFiles)),null!=e.javaGenerateEqualsAndHash&&(o.javaGenerateEqualsAndHash=Boolean(e.javaGenerateEqualsAndHash)),null!=e.javaStringCheckUtf8&&(o.javaStringCheckUtf8=Boolean(e.javaStringCheckUtf8)),e.optimizeFor){default:"number"==typeof e.optimizeFor&&(o.optimizeFor=e.optimizeFor);break;case"SPEED":case 1:o.optimizeFor=1;break;case"CODE_SIZE":case 2:o.optimizeFor=2;break;case"LITE_RUNTIME":case 3:o.optimizeFor=3}if(null!=e.goPackage&&(o.goPackage=String(e.goPackage)),null!=e.ccGenericServices&&(o.ccGenericServices=Boolean(e.ccGenericServices)),null!=e.javaGenericServices&&(o.javaGenericServices=Boolean(e.javaGenericServices)),null!=e.pyGenericServices&&(o.pyGenericServices=Boolean(e.pyGenericServices)),null!=e.deprecated&&(o.deprecated=Boolean(e.deprecated)),null!=e.ccEnableArenas&&(o.ccEnableArenas=Boolean(e.ccEnableArenas)),null!=e.objcClassPrefix&&(o.objcClassPrefix=String(e.objcClassPrefix)),null!=e.csharpNamespace&&(o.csharpNamespace=String(e.csharpNamespace)),null!=e.swiftPrefix&&(o.swiftPrefix=String(e.swiftPrefix)),null!=e.phpClassPrefix&&(o.phpClassPrefix=String(e.phpClassPrefix)),null!=e.phpNamespace&&(o.phpNamespace=String(e.phpNamespace)),null!=e.phpMetadataNamespace&&(o.phpMetadataNamespace=String(e.phpMetadataNamespace)),null!=e.rubyPackage&&(o.rubyPackage=String(e.rubyPackage)),null!=e.features){if(!d.isObject(e.features))throw TypeError(".google.protobuf.FileOptions.features: object expected");o.features=g.google.protobuf.FeatureSet.fromObject(e.features,t+1)}if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected");o.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if(!d.isObject(e.uninterpretedOption[r]))throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: object expected");o.uninterpretedOption[r]=g.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r],t+1)}}if(e[".google.api.resourceDefinition"]){if(!Array.isArray(e[".google.api.resourceDefinition"]))throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: array expected");o[".google.api.resourceDefinition"]=[];for(r=0;r<e[".google.api.resourceDefinition"].length;++r){if(!d.isObject(e[".google.api.resourceDefinition"][r]))throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: object expected");o[".google.api.resourceDefinition"][r]=g.google.api.ResourceDescriptor.fromObject(e[".google.api.resourceDefinition"][r],t+1)}}return o},x.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.uninterpretedOption=[],r[".google.api.resourceDefinition"]=[]),t.defaults&&(r.javaPackage="",r.javaOuterClassname="",r.optimizeFor=t.enums===String?"SPEED":1,r.javaMultipleFiles=!1,r.goPackage="",r.ccGenericServices=!1,r.javaGenericServices=!1,r.pyGenericServices=!1,r.javaGenerateEqualsAndHash=!1,r.deprecated=!1,r.javaStringCheckUtf8=!1,r.ccEnableArenas=!0,r.objcClassPrefix="",r.csharpNamespace="",r.swiftPrefix="",r.phpClassPrefix="",r.phpNamespace="",r.phpMetadataNamespace="",r.rubyPackage="",r.features=null),null!=e.javaPackage&&Object.hasOwnProperty.call(e,"javaPackage")&&(r.javaPackage=e.javaPackage),null!=e.javaOuterClassname&&Object.hasOwnProperty.call(e,"javaOuterClassname")&&(r.javaOuterClassname=e.javaOuterClassname),null!=e.optimizeFor&&Object.hasOwnProperty.call(e,"optimizeFor")&&(r.optimizeFor=t.enums!==String||void 0===g.google.protobuf.FileOptions.OptimizeMode[e.optimizeFor]?e.optimizeFor:g.google.protobuf.FileOptions.OptimizeMode[e.optimizeFor]),null!=e.javaMultipleFiles&&Object.hasOwnProperty.call(e,"javaMultipleFiles")&&(r.javaMultipleFiles=e.javaMultipleFiles),null!=e.goPackage&&Object.hasOwnProperty.call(e,"goPackage")&&(r.goPackage=e.goPackage),null!=e.ccGenericServices&&Object.hasOwnProperty.call(e,"ccGenericServices")&&(r.ccGenericServices=e.ccGenericServices),null!=e.javaGenericServices&&Object.hasOwnProperty.call(e,"javaGenericServices")&&(r.javaGenericServices=e.javaGenericServices),null!=e.pyGenericServices&&Object.hasOwnProperty.call(e,"pyGenericServices")&&(r.pyGenericServices=e.pyGenericServices),null!=e.javaGenerateEqualsAndHash&&Object.hasOwnProperty.call(e,"javaGenerateEqualsAndHash")&&(r.javaGenerateEqualsAndHash=e.javaGenerateEqualsAndHash),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&(r.deprecated=e.deprecated),null!=e.javaStringCheckUtf8&&Object.hasOwnProperty.call(e,"javaStringCheckUtf8")&&(r.javaStringCheckUtf8=e.javaStringCheckUtf8),null!=e.ccEnableArenas&&Object.hasOwnProperty.call(e,"ccEnableArenas")&&(r.ccEnableArenas=e.ccEnableArenas),null!=e.objcClassPrefix&&Object.hasOwnProperty.call(e,"objcClassPrefix")&&(r.objcClassPrefix=e.objcClassPrefix),null!=e.csharpNamespace&&Object.hasOwnProperty.call(e,"csharpNamespace")&&(r.csharpNamespace=e.csharpNamespace),null!=e.swiftPrefix&&Object.hasOwnProperty.call(e,"swiftPrefix")&&(r.swiftPrefix=e.swiftPrefix),null!=e.phpClassPrefix&&Object.hasOwnProperty.call(e,"phpClassPrefix")&&(r.phpClassPrefix=e.phpClassPrefix),null!=e.phpNamespace&&Object.hasOwnProperty.call(e,"phpNamespace")&&(r.phpNamespace=e.phpNamespace),null!=e.phpMetadataNamespace&&Object.hasOwnProperty.call(e,"phpMetadataNamespace")&&(r.phpMetadataNamespace=e.phpMetadataNamespace),null!=e.rubyPackage&&Object.hasOwnProperty.call(e,"rubyPackage")&&(r.rubyPackage=e.rubyPackage),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(r.features=g.google.protobuf.FeatureSet.toObject(e.features,t,o+1)),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=g.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t,o+1)}if(e[".google.api.resourceDefinition"]&&e[".google.api.resourceDefinition"].length){r[".google.api.resourceDefinition"]=[];for(n=0;n<e[".google.api.resourceDefinition"].length;++n)r[".google.api.resourceDefinition"][n]=g.google.api.ResourceDescriptor.toObject(e[".google.api.resourceDefinition"][n],t,o+1)}return r},x.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},x.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FileOptions"},x.OptimizeMode=(a={},(e=Object.create(a))[a[1]="SPEED"]=1,e[a[2]="CODE_SIZE"]=2,e[a[3]="LITE_RUNTIME"]=3,e),x),t.MessageOptions=(E.prototype.messageSetWireFormat=!1,E.prototype.noStandardDescriptorAccessor=!1,E.prototype.deprecated=!1,E.prototype.mapEntry=!1,E.prototype.deprecatedLegacyJsonFieldConflicts=!1,E.prototype.features=null,E.prototype.uninterpretedOption=d.emptyArray,E.prototype[".google.api.resource"]=null,E.create=function(e){return new E(e)},E.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.messageSetWireFormat&&Object.hasOwnProperty.call(e,"messageSetWireFormat")&&t.uint32(8).bool(e.messageSetWireFormat),null!=e.noStandardDescriptorAccessor&&Object.hasOwnProperty.call(e,"noStandardDescriptorAccessor")&&t.uint32(16).bool(e.noStandardDescriptorAccessor),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(24).bool(e.deprecated),null!=e.mapEntry&&Object.hasOwnProperty.call(e,"mapEntry")&&t.uint32(56).bool(e.mapEntry),null!=e.deprecatedLegacyJsonFieldConflicts&&Object.hasOwnProperty.call(e,"deprecatedLegacyJsonFieldConflicts")&&t.uint32(88).bool(e.deprecatedLegacyJsonFieldConflicts),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&g.google.protobuf.FeatureSet.encode(e.features,t.uint32(98).fork(),o+1).ldelim(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)g.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork(),o+1).ldelim();return null!=e[".google.api.resource"]&&Object.hasOwnProperty.call(e,".google.api.resource")&&g.google.api.ResourceDescriptor.encode(e[".google.api.resource"],t.uint32(8426).fork(),o+1).ldelim(),t},E.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},E.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.MessageOptions;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.messageSetWireFormat=e.bool();break;case 2:i.noStandardDescriptorAccessor=e.bool();break;case 3:i.deprecated=e.bool();break;case 7:i.mapEntry=e.bool();break;case 11:i.deprecatedLegacyJsonFieldConflicts=e.bool();break;case 12:i.features=g.google.protobuf.FeatureSet.decode(e,e.uint32(),void 0,r+1);break;case 999:i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(g.google.protobuf.UninterpretedOption.decode(e,e.uint32(),void 0,r+1));break;case 1053:i[".google.api.resource"]=g.google.api.ResourceDescriptor.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},E.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},E.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.messageSetWireFormat&&Object.hasOwnProperty.call(e,"messageSetWireFormat")&&"boolean"!=typeof e.messageSetWireFormat)return"messageSetWireFormat: boolean expected";if(null!=e.noStandardDescriptorAccessor&&Object.hasOwnProperty.call(e,"noStandardDescriptorAccessor")&&"boolean"!=typeof e.noStandardDescriptorAccessor)return"noStandardDescriptorAccessor: boolean expected";if(null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.mapEntry&&Object.hasOwnProperty.call(e,"mapEntry")&&"boolean"!=typeof e.mapEntry)return"mapEntry: boolean expected";if(null!=e.deprecatedLegacyJsonFieldConflicts&&Object.hasOwnProperty.call(e,"deprecatedLegacyJsonFieldConflicts")&&"boolean"!=typeof e.deprecatedLegacyJsonFieldConflicts)return"deprecatedLegacyJsonFieldConflicts: boolean expected";if(null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(o=g.google.protobuf.FeatureSet.verify(e.features,t+1)))return"features."+o;if(null!=e.uninterpretedOption&&Object.hasOwnProperty.call(e,"uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var o,r=0;r<e.uninterpretedOption.length;++r)if(o=g.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[r],t+1))return"uninterpretedOption."+o}if(null!=e[".google.api.resource"]&&Object.hasOwnProperty.call(e,".google.api.resource")&&(o=g.google.api.ResourceDescriptor.verify(e[".google.api.resource"],t+1)))return".google.api.resource."+o;return null},E.fromObject=function(e,t){if(e instanceof g.google.protobuf.MessageOptions)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.MessageOptions: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.MessageOptions;if(null!=e.messageSetWireFormat&&(o.messageSetWireFormat=Boolean(e.messageSetWireFormat)),null!=e.noStandardDescriptorAccessor&&(o.noStandardDescriptorAccessor=Boolean(e.noStandardDescriptorAccessor)),null!=e.deprecated&&(o.deprecated=Boolean(e.deprecated)),null!=e.mapEntry&&(o.mapEntry=Boolean(e.mapEntry)),null!=e.deprecatedLegacyJsonFieldConflicts&&(o.deprecatedLegacyJsonFieldConflicts=Boolean(e.deprecatedLegacyJsonFieldConflicts)),null!=e.features){if(!d.isObject(e.features))throw TypeError(".google.protobuf.MessageOptions.features: object expected");o.features=g.google.protobuf.FeatureSet.fromObject(e.features,t+1)}if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected");o.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if(!d.isObject(e.uninterpretedOption[r]))throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: object expected");o.uninterpretedOption[r]=g.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r],t+1)}}if(null!=e[".google.api.resource"]){if(!d.isObject(e[".google.api.resource"]))throw TypeError(".google.protobuf.MessageOptions..google.api.resource: object expected");o[".google.api.resource"]=g.google.api.ResourceDescriptor.fromObject(e[".google.api.resource"],t+1)}return o},E.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.messageSetWireFormat=!1,r.noStandardDescriptorAccessor=!1,r.deprecated=!1,r.mapEntry=!1,r.deprecatedLegacyJsonFieldConflicts=!1,r.features=null,r[".google.api.resource"]=null),null!=e.messageSetWireFormat&&Object.hasOwnProperty.call(e,"messageSetWireFormat")&&(r.messageSetWireFormat=e.messageSetWireFormat),null!=e.noStandardDescriptorAccessor&&Object.hasOwnProperty.call(e,"noStandardDescriptorAccessor")&&(r.noStandardDescriptorAccessor=e.noStandardDescriptorAccessor),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&(r.deprecated=e.deprecated),null!=e.mapEntry&&Object.hasOwnProperty.call(e,"mapEntry")&&(r.mapEntry=e.mapEntry),null!=e.deprecatedLegacyJsonFieldConflicts&&Object.hasOwnProperty.call(e,"deprecatedLegacyJsonFieldConflicts")&&(r.deprecatedLegacyJsonFieldConflicts=e.deprecatedLegacyJsonFieldConflicts),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(r.features=g.google.protobuf.FeatureSet.toObject(e.features,t,o+1)),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=g.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t,o+1)}return null!=e[".google.api.resource"]&&Object.hasOwnProperty.call(e,".google.api.resource")&&(r[".google.api.resource"]=g.google.api.ResourceDescriptor.toObject(e[".google.api.resource"],t,o+1)),r},E.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},E.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.MessageOptions"},E),t.FieldOptions=(P.prototype.ctype=0,P.prototype.packed=!1,P.prototype.jstype=0,P.prototype.lazy=!1,P.prototype.unverifiedLazy=!1,P.prototype.deprecated=!1,P.prototype.weak=!1,P.prototype.debugRedact=!1,P.prototype.retention=0,P.prototype.targets=d.emptyArray,P.prototype.editionDefaults=d.emptyArray,P.prototype.features=null,P.prototype.featureSupport=null,P.prototype.uninterpretedOption=d.emptyArray,P.prototype[".google.cloud.bigquery.storage.v1.columnName"]=null,P.prototype[".google.api.fieldBehavior"]=d.emptyArray,P.prototype[".google.api.resourceReference"]=null,P.create=function(e){return new P(e)},P.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.ctype&&Object.hasOwnProperty.call(e,"ctype")&&t.uint32(8).int32(e.ctype),null!=e.packed&&Object.hasOwnProperty.call(e,"packed")&&t.uint32(16).bool(e.packed),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(24).bool(e.deprecated),null!=e.lazy&&Object.hasOwnProperty.call(e,"lazy")&&t.uint32(40).bool(e.lazy),null!=e.jstype&&Object.hasOwnProperty.call(e,"jstype")&&t.uint32(48).int32(e.jstype),null!=e.weak&&Object.hasOwnProperty.call(e,"weak")&&t.uint32(80).bool(e.weak),null!=e.unverifiedLazy&&Object.hasOwnProperty.call(e,"unverifiedLazy")&&t.uint32(120).bool(e.unverifiedLazy),null!=e.debugRedact&&Object.hasOwnProperty.call(e,"debugRedact")&&t.uint32(128).bool(e.debugRedact),null!=e.retention&&Object.hasOwnProperty.call(e,"retention")&&t.uint32(136).int32(e.retention),null!=e.targets&&e.targets.length)for(var r=0;r<e.targets.length;++r)t.uint32(152).int32(e.targets[r]);if(null!=e.editionDefaults&&e.editionDefaults.length)for(r=0;r<e.editionDefaults.length;++r)g.google.protobuf.FieldOptions.EditionDefault.encode(e.editionDefaults[r],t.uint32(162).fork(),o+1).ldelim();if(null!=e.features&&Object.hasOwnProperty.call(e,"features")&&g.google.protobuf.FeatureSet.encode(e.features,t.uint32(170).fork(),o+1).ldelim(),null!=e.featureSupport&&Object.hasOwnProperty.call(e,"featureSupport")&&g.google.protobuf.FieldOptions.FeatureSupport.encode(e.featureSupport,t.uint32(178).fork(),o+1).ldelim(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(r=0;r<e.uninterpretedOption.length;++r)g.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork(),o+1).ldelim();if(null!=e[".google.api.fieldBehavior"]&&e[".google.api.fieldBehavior"].length)for(r=0;r<e[".google.api.fieldBehavior"].length;++r)t.uint32(8416).int32(e[".google.api.fieldBehavior"][r]);return null!=e[".google.api.resourceReference"]&&Object.hasOwnProperty.call(e,".google.api.resourceReference")&&g.google.api.ResourceReference.encode(e[".google.api.resourceReference"],t.uint32(8442).fork(),o+1).ldelim(),null!=e[".google.cloud.bigquery.storage.v1.columnName"]&&Object.hasOwnProperty.call(e,".google.cloud.bigquery.storage.v1.columnName")&&t.uint32(3639545258).string(e[".google.cloud.bigquery.storage.v1.columnName"]),t},P.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},P.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FieldOptions;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.ctype=e.int32();break;case 2:i.packed=e.bool();break;case 6:i.jstype=e.int32();break;case 5:i.lazy=e.bool();break;case 15:i.unverifiedLazy=e.bool();break;case 3:i.deprecated=e.bool();break;case 10:i.weak=e.bool();break;case 16:i.debugRedact=e.bool();break;case 17:i.retention=e.int32();break;case 19:if(i.targets&&i.targets.length||(i.targets=[]),2==(7&a))for(var l=e.uint32()+e.pos;e.pos<l;)i.targets.push(e.int32());else i.targets.push(e.int32());break;case 20:i.editionDefaults&&i.editionDefaults.length||(i.editionDefaults=[]),i.editionDefaults.push(g.google.protobuf.FieldOptions.EditionDefault.decode(e,e.uint32(),void 0,r+1));break;case 21:i.features=g.google.protobuf.FeatureSet.decode(e,e.uint32(),void 0,r+1);break;case 22:i.featureSupport=g.google.protobuf.FieldOptions.FeatureSupport.decode(e,e.uint32(),void 0,r+1);break;case 999:i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(g.google.protobuf.UninterpretedOption.decode(e,e.uint32(),void 0,r+1));break;case 454943157:i[".google.cloud.bigquery.storage.v1.columnName"]=e.string();break;case 1052:if(i[".google.api.fieldBehavior"]&&i[".google.api.fieldBehavior"].length||(i[".google.api.fieldBehavior"]=[]),2==(7&a))for(l=e.uint32()+e.pos;e.pos<l;)i[".google.api.fieldBehavior"].push(e.int32());else i[".google.api.fieldBehavior"].push(e.int32());break;case 1055:i[".google.api.resourceReference"]=g.google.api.ResourceReference.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},P.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},P.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.ctype&&Object.hasOwnProperty.call(e,"ctype"))switch(e.ctype){default:return"ctype: enum value expected";case 0:case 1:case 2:}if(null!=e.packed&&Object.hasOwnProperty.call(e,"packed")&&"boolean"!=typeof e.packed)return"packed: boolean expected";if(null!=e.jstype&&Object.hasOwnProperty.call(e,"jstype"))switch(e.jstype){default:return"jstype: enum value expected";case 0:case 1:case 2:}if(null!=e.lazy&&Object.hasOwnProperty.call(e,"lazy")&&"boolean"!=typeof e.lazy)return"lazy: boolean expected";if(null!=e.unverifiedLazy&&Object.hasOwnProperty.call(e,"unverifiedLazy")&&"boolean"!=typeof e.unverifiedLazy)return"unverifiedLazy: boolean expected";if(null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.weak&&Object.hasOwnProperty.call(e,"weak")&&"boolean"!=typeof e.weak)return"weak: boolean expected";if(null!=e.debugRedact&&Object.hasOwnProperty.call(e,"debugRedact")&&"boolean"!=typeof e.debugRedact)return"debugRedact: boolean expected";if(null!=e.retention&&Object.hasOwnProperty.call(e,"retention"))switch(e.retention){default:return"retention: enum value expected";case 0:case 1:case 2:}if(null!=e.targets&&Object.hasOwnProperty.call(e,"targets")){if(!Array.isArray(e.targets))return"targets: array expected";for(var o=0;o<e.targets.length;++o)switch(e.targets[o]){default:return"targets: enum value[] expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:}}if(null!=e.editionDefaults&&Object.hasOwnProperty.call(e,"editionDefaults")){if(!Array.isArray(e.editionDefaults))return"editionDefaults: array expected";for(o=0;o<e.editionDefaults.length;++o)if(r=g.google.protobuf.FieldOptions.EditionDefault.verify(e.editionDefaults[o],t+1))return"editionDefaults."+r}if(null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(r=g.google.protobuf.FeatureSet.verify(e.features,t+1)))return"features."+r;if(null!=e.featureSupport&&Object.hasOwnProperty.call(e,"featureSupport")&&(r=g.google.protobuf.FieldOptions.FeatureSupport.verify(e.featureSupport,t+1)))return"featureSupport."+r;if(null!=e.uninterpretedOption&&Object.hasOwnProperty.call(e,"uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var r,o=0;o<e.uninterpretedOption.length;++o)if(r=g.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[o],t+1))return"uninterpretedOption."+r}if(null!=e[".google.cloud.bigquery.storage.v1.columnName"]&&Object.hasOwnProperty.call(e,".google.cloud.bigquery.storage.v1.columnName")&&!d.isString(e[".google.cloud.bigquery.storage.v1.columnName"]))return".google.cloud.bigquery.storage.v1.columnName: string expected";if(null!=e[".google.api.fieldBehavior"]&&Object.hasOwnProperty.call(e,".google.api.fieldBehavior")){if(!Array.isArray(e[".google.api.fieldBehavior"]))return".google.api.fieldBehavior: array expected";for(o=0;o<e[".google.api.fieldBehavior"].length;++o)switch(e[".google.api.fieldBehavior"][o]){default:return".google.api.fieldBehavior: enum value[] expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:}}if(null!=e[".google.api.resourceReference"]&&Object.hasOwnProperty.call(e,".google.api.resourceReference")&&(r=g.google.api.ResourceReference.verify(e[".google.api.resourceReference"],t+1)))return".google.api.resourceReference."+r;return null},P.fromObject=function(e,t){if(e instanceof g.google.protobuf.FieldOptions)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.FieldOptions: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.FieldOptions;switch(e.ctype){default:"number"==typeof e.ctype&&(o.ctype=e.ctype);break;case"STRING":case 0:o.ctype=0;break;case"CORD":case 1:o.ctype=1;break;case"STRING_PIECE":case 2:o.ctype=2}switch(null!=e.packed&&(o.packed=Boolean(e.packed)),e.jstype){default:"number"==typeof e.jstype&&(o.jstype=e.jstype);break;case"JS_NORMAL":case 0:o.jstype=0;break;case"JS_STRING":case 1:o.jstype=1;break;case"JS_NUMBER":case 2:o.jstype=2}switch(null!=e.lazy&&(o.lazy=Boolean(e.lazy)),null!=e.unverifiedLazy&&(o.unverifiedLazy=Boolean(e.unverifiedLazy)),null!=e.deprecated&&(o.deprecated=Boolean(e.deprecated)),null!=e.weak&&(o.weak=Boolean(e.weak)),null!=e.debugRedact&&(o.debugRedact=Boolean(e.debugRedact)),e.retention){default:"number"==typeof e.retention&&(o.retention=e.retention);break;case"RETENTION_UNKNOWN":case 0:o.retention=0;break;case"RETENTION_RUNTIME":case 1:o.retention=1;break;case"RETENTION_SOURCE":case 2:o.retention=2}if(e.targets){if(!Array.isArray(e.targets))throw TypeError(".google.protobuf.FieldOptions.targets: array expected");o.targets=[];for(var r=0;r<e.targets.length;++r)switch(e.targets[r]){default:if("number"==typeof e.targets[r]){o.targets[r]=e.targets[r];break}case"TARGET_TYPE_UNKNOWN":case 0:o.targets[r]=0;break;case"TARGET_TYPE_FILE":case 1:o.targets[r]=1;break;case"TARGET_TYPE_EXTENSION_RANGE":case 2:o.targets[r]=2;break;case"TARGET_TYPE_MESSAGE":case 3:o.targets[r]=3;break;case"TARGET_TYPE_FIELD":case 4:o.targets[r]=4;break;case"TARGET_TYPE_ONEOF":case 5:o.targets[r]=5;break;case"TARGET_TYPE_ENUM":case 6:o.targets[r]=6;break;case"TARGET_TYPE_ENUM_ENTRY":case 7:o.targets[r]=7;break;case"TARGET_TYPE_SERVICE":case 8:o.targets[r]=8;break;case"TARGET_TYPE_METHOD":case 9:o.targets[r]=9}}if(e.editionDefaults){if(!Array.isArray(e.editionDefaults))throw TypeError(".google.protobuf.FieldOptions.editionDefaults: array expected");o.editionDefaults=[];for(r=0;r<e.editionDefaults.length;++r){if(!d.isObject(e.editionDefaults[r]))throw TypeError(".google.protobuf.FieldOptions.editionDefaults: object expected");o.editionDefaults[r]=g.google.protobuf.FieldOptions.EditionDefault.fromObject(e.editionDefaults[r],t+1)}}if(null!=e.features){if(!d.isObject(e.features))throw TypeError(".google.protobuf.FieldOptions.features: object expected");o.features=g.google.protobuf.FeatureSet.fromObject(e.features,t+1)}if(null!=e.featureSupport){if(!d.isObject(e.featureSupport))throw TypeError(".google.protobuf.FieldOptions.featureSupport: object expected");o.featureSupport=g.google.protobuf.FieldOptions.FeatureSupport.fromObject(e.featureSupport,t+1)}if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected");o.uninterpretedOption=[];for(r=0;r<e.uninterpretedOption.length;++r){if(!d.isObject(e.uninterpretedOption[r]))throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: object expected");o.uninterpretedOption[r]=g.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r],t+1)}}if(null!=e[".google.cloud.bigquery.storage.v1.columnName"]&&(o[".google.cloud.bigquery.storage.v1.columnName"]=String(e[".google.cloud.bigquery.storage.v1.columnName"])),e[".google.api.fieldBehavior"]){if(!Array.isArray(e[".google.api.fieldBehavior"]))throw TypeError(".google.protobuf.FieldOptions..google.api.fieldBehavior: array expected");o[".google.api.fieldBehavior"]=[];for(r=0;r<e[".google.api.fieldBehavior"].length;++r)switch(e[".google.api.fieldBehavior"][r]){default:if("number"==typeof e[".google.api.fieldBehavior"][r]){o[".google.api.fieldBehavior"][r]=e[".google.api.fieldBehavior"][r];break}case"FIELD_BEHAVIOR_UNSPECIFIED":case 0:o[".google.api.fieldBehavior"][r]=0;break;case"OPTIONAL":case 1:o[".google.api.fieldBehavior"][r]=1;break;case"REQUIRED":case 2:o[".google.api.fieldBehavior"][r]=2;break;case"OUTPUT_ONLY":case 3:o[".google.api.fieldBehavior"][r]=3;break;case"INPUT_ONLY":case 4:o[".google.api.fieldBehavior"][r]=4;break;case"IMMUTABLE":case 5:o[".google.api.fieldBehavior"][r]=5;break;case"UNORDERED_LIST":case 6:o[".google.api.fieldBehavior"][r]=6;break;case"NON_EMPTY_DEFAULT":case 7:o[".google.api.fieldBehavior"][r]=7;break;case"IDENTIFIER":case 8:o[".google.api.fieldBehavior"][r]=8}}if(null!=e[".google.api.resourceReference"]){if(!d.isObject(e[".google.api.resourceReference"]))throw TypeError(".google.protobuf.FieldOptions..google.api.resourceReference: object expected");o[".google.api.resourceReference"]=g.google.api.ResourceReference.fromObject(e[".google.api.resourceReference"],t+1)}return o},P.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.targets=[],r.editionDefaults=[],r.uninterpretedOption=[],r[".google.api.fieldBehavior"]=[]),t.defaults&&(r.ctype=t.enums===String?"STRING":0,r.packed=!1,r.deprecated=!1,r.lazy=!1,r.jstype=t.enums===String?"JS_NORMAL":0,r.weak=!1,r.unverifiedLazy=!1,r.debugRedact=!1,r.retention=t.enums===String?"RETENTION_UNKNOWN":0,r.features=null,r.featureSupport=null,r[".google.api.resourceReference"]=null,r[".google.cloud.bigquery.storage.v1.columnName"]=null),null!=e.ctype&&Object.hasOwnProperty.call(e,"ctype")&&(r.ctype=t.enums!==String||void 0===g.google.protobuf.FieldOptions.CType[e.ctype]?e.ctype:g.google.protobuf.FieldOptions.CType[e.ctype]),null!=e.packed&&Object.hasOwnProperty.call(e,"packed")&&(r.packed=e.packed),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&(r.deprecated=e.deprecated),null!=e.lazy&&Object.hasOwnProperty.call(e,"lazy")&&(r.lazy=e.lazy),null!=e.jstype&&Object.hasOwnProperty.call(e,"jstype")&&(r.jstype=t.enums!==String||void 0===g.google.protobuf.FieldOptions.JSType[e.jstype]?e.jstype:g.google.protobuf.FieldOptions.JSType[e.jstype]),null!=e.weak&&Object.hasOwnProperty.call(e,"weak")&&(r.weak=e.weak),null!=e.unverifiedLazy&&Object.hasOwnProperty.call(e,"unverifiedLazy")&&(r.unverifiedLazy=e.unverifiedLazy),null!=e.debugRedact&&Object.hasOwnProperty.call(e,"debugRedact")&&(r.debugRedact=e.debugRedact),null!=e.retention&&Object.hasOwnProperty.call(e,"retention")&&(r.retention=t.enums!==String||void 0===g.google.protobuf.FieldOptions.OptionRetention[e.retention]?e.retention:g.google.protobuf.FieldOptions.OptionRetention[e.retention]),e.targets&&e.targets.length){r.targets=[];for(var n=0;n<e.targets.length;++n)r.targets[n]=t.enums!==String||void 0===g.google.protobuf.FieldOptions.OptionTargetType[e.targets[n]]?e.targets[n]:g.google.protobuf.FieldOptions.OptionTargetType[e.targets[n]]}if(e.editionDefaults&&e.editionDefaults.length){r.editionDefaults=[];for(n=0;n<e.editionDefaults.length;++n)r.editionDefaults[n]=g.google.protobuf.FieldOptions.EditionDefault.toObject(e.editionDefaults[n],t,o+1)}if(null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(r.features=g.google.protobuf.FeatureSet.toObject(e.features,t,o+1)),null!=e.featureSupport&&Object.hasOwnProperty.call(e,"featureSupport")&&(r.featureSupport=g.google.protobuf.FieldOptions.FeatureSupport.toObject(e.featureSupport,t,o+1)),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=g.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t,o+1)}if(e[".google.api.fieldBehavior"]&&e[".google.api.fieldBehavior"].length){r[".google.api.fieldBehavior"]=[];for(n=0;n<e[".google.api.fieldBehavior"].length;++n)r[".google.api.fieldBehavior"][n]=t.enums!==String||void 0===g.google.api.FieldBehavior[e[".google.api.fieldBehavior"][n]]?e[".google.api.fieldBehavior"][n]:g.google.api.FieldBehavior[e[".google.api.fieldBehavior"][n]]}return null!=e[".google.api.resourceReference"]&&Object.hasOwnProperty.call(e,".google.api.resourceReference")&&(r[".google.api.resourceReference"]=g.google.api.ResourceReference.toObject(e[".google.api.resourceReference"],t,o+1)),null!=e[".google.cloud.bigquery.storage.v1.columnName"]&&Object.hasOwnProperty.call(e,".google.cloud.bigquery.storage.v1.columnName")&&(r[".google.cloud.bigquery.storage.v1.columnName"]=e[".google.cloud.bigquery.storage.v1.columnName"]),r},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.protobuf.FieldOptions"},P.CType=(a={},(e=Object.create(a))[a[0]="STRING"]=0,e[a[1]="CORD"]=1,e[a[2]="STRING_PIECE"]=2,e),P.JSType=(a={},(e=Object.create(a))[a[0]="JS_NORMAL"]=0,e[a[1]="JS_STRING"]=1,e[a[2]="JS_NUMBER"]=2,e),P.OptionRetention=(a={},(e=Object.create(a))[a[0]="RETENTION_UNKNOWN"]=0,e[a[1]="RETENTION_RUNTIME"]=1,e[a[2]="RETENTION_SOURCE"]=2,e),P.OptionTargetType=(a={},(e=Object.create(a))[a[0]="TARGET_TYPE_UNKNOWN"]=0,e[a[1]="TARGET_TYPE_FILE"]=1,e[a[2]="TARGET_TYPE_EXTENSION_RANGE"]=2,e[a[3]="TARGET_TYPE_MESSAGE"]=3,e[a[4]="TARGET_TYPE_FIELD"]=4,e[a[5]="TARGET_TYPE_ONEOF"]=5,e[a[6]="TARGET_TYPE_ENUM"]=6,e[a[7]="TARGET_TYPE_ENUM_ENTRY"]=7,e[a[8]="TARGET_TYPE_SERVICE"]=8,e[a[9]="TARGET_TYPE_METHOD"]=9,e),P.EditionDefault=(Ee.prototype.edition=0,Ee.prototype.value="",Ee.create=function(e){return new Ee(e)},Ee.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(18).string(e.value),null!=e.edition&&Object.hasOwnProperty.call(e,"edition")&&t.uint32(24).int32(e.edition),t},Ee.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ee.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FieldOptions.EditionDefault;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 3:i.edition=e.int32();break;case 2:i.value=e.string();break;default:e.skipType(7&a,r)}}return i},Ee.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Ee.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.edition&&Object.hasOwnProperty.call(e,"edition"))switch(e.edition){default:return"edition: enum value expected";case 0:case 900:case 998:case 999:case 1e3:case 1001:case 1002:case 9999:case 1:case 2:case 99997:case 99998:case 99999:case 2147483647:}return null!=e.value&&Object.hasOwnProperty.call(e,"value")&&!d.isString(e.value)?"value: string expected":null},Ee.fromObject=function(e,t){if(e instanceof g.google.protobuf.FieldOptions.EditionDefault)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.FieldOptions.EditionDefault: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.FieldOptions.EditionDefault;switch(e.edition){default:"number"==typeof e.edition&&(o.edition=e.edition);break;case"EDITION_UNKNOWN":case 0:o.edition=0;break;case"EDITION_LEGACY":case 900:o.edition=900;break;case"EDITION_PROTO2":case 998:o.edition=998;break;case"EDITION_PROTO3":case 999:o.edition=999;break;case"EDITION_2023":case 1e3:o.edition=1e3;break;case"EDITION_2024":case 1001:o.edition=1001;break;case"EDITION_2026":case 1002:o.edition=1002;break;case"EDITION_UNSTABLE":case 9999:o.edition=9999;break;case"EDITION_1_TEST_ONLY":case 1:o.edition=1;break;case"EDITION_2_TEST_ONLY":case 2:o.edition=2;break;case"EDITION_99997_TEST_ONLY":case 99997:o.edition=99997;break;case"EDITION_99998_TEST_ONLY":case 99998:o.edition=99998;break;case"EDITION_99999_TEST_ONLY":case 99999:o.edition=99999;break;case"EDITION_MAX":case 2147483647:o.edition=2147483647}return null!=e.value&&(o.value=String(e.value)),o},Ee.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.value="",o.edition=t.enums===String?"EDITION_UNKNOWN":0),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&(o.value=e.value),null!=e.edition&&Object.hasOwnProperty.call(e,"edition")&&(o.edition=t.enums!==String||void 0===g.google.protobuf.Edition[e.edition]?e.edition:g.google.protobuf.Edition[e.edition]),o},Ee.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Ee.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FieldOptions.EditionDefault"},Ee),P.FeatureSupport=(Pe.prototype.editionIntroduced=0,Pe.prototype.editionDeprecated=0,Pe.prototype.deprecationWarning="",Pe.prototype.editionRemoved=0,Pe.prototype.removalError="",Pe.create=function(e){return new Pe(e)},Pe.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.editionIntroduced&&Object.hasOwnProperty.call(e,"editionIntroduced")&&t.uint32(8).int32(e.editionIntroduced),null!=e.editionDeprecated&&Object.hasOwnProperty.call(e,"editionDeprecated")&&t.uint32(16).int32(e.editionDeprecated),null!=e.deprecationWarning&&Object.hasOwnProperty.call(e,"deprecationWarning")&&t.uint32(26).string(e.deprecationWarning),null!=e.editionRemoved&&Object.hasOwnProperty.call(e,"editionRemoved")&&t.uint32(32).int32(e.editionRemoved),null!=e.removalError&&Object.hasOwnProperty.call(e,"removalError")&&t.uint32(42).string(e.removalError),t},Pe.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Pe.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FieldOptions.FeatureSupport;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.editionIntroduced=e.int32();break;case 2:i.editionDeprecated=e.int32();break;case 3:i.deprecationWarning=e.string();break;case 4:i.editionRemoved=e.int32();break;case 5:i.removalError=e.string();break;default:e.skipType(7&a,r)}}return i},Pe.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Pe.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.editionIntroduced&&Object.hasOwnProperty.call(e,"editionIntroduced"))switch(e.editionIntroduced){default:return"editionIntroduced: enum value expected";case 0:case 900:case 998:case 999:case 1e3:case 1001:case 1002:case 9999:case 1:case 2:case 99997:case 99998:case 99999:case 2147483647:}if(null!=e.editionDeprecated&&Object.hasOwnProperty.call(e,"editionDeprecated"))switch(e.editionDeprecated){default:return"editionDeprecated: enum value expected";case 0:case 900:case 998:case 999:case 1e3:case 1001:case 1002:case 9999:case 1:case 2:case 99997:case 99998:case 99999:case 2147483647:}if(null!=e.deprecationWarning&&Object.hasOwnProperty.call(e,"deprecationWarning")&&!d.isString(e.deprecationWarning))return"deprecationWarning: string expected";if(null!=e.editionRemoved&&Object.hasOwnProperty.call(e,"editionRemoved"))switch(e.editionRemoved){default:return"editionRemoved: enum value expected";case 0:case 900:case 998:case 999:case 1e3:case 1001:case 1002:case 9999:case 1:case 2:case 99997:case 99998:case 99999:case 2147483647:}return null!=e.removalError&&Object.hasOwnProperty.call(e,"removalError")&&!d.isString(e.removalError)?"removalError: string expected":null},Pe.fromObject=function(e,t){if(e instanceof g.google.protobuf.FieldOptions.FeatureSupport)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.FieldOptions.FeatureSupport: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.FieldOptions.FeatureSupport;switch(e.editionIntroduced){default:"number"==typeof e.editionIntroduced&&(o.editionIntroduced=e.editionIntroduced);break;case"EDITION_UNKNOWN":case 0:o.editionIntroduced=0;break;case"EDITION_LEGACY":case 900:o.editionIntroduced=900;break;case"EDITION_PROTO2":case 998:o.editionIntroduced=998;break;case"EDITION_PROTO3":case 999:o.editionIntroduced=999;break;case"EDITION_2023":case 1e3:o.editionIntroduced=1e3;break;case"EDITION_2024":case 1001:o.editionIntroduced=1001;break;case"EDITION_2026":case 1002:o.editionIntroduced=1002;break;case"EDITION_UNSTABLE":case 9999:o.editionIntroduced=9999;break;case"EDITION_1_TEST_ONLY":case 1:o.editionIntroduced=1;break;case"EDITION_2_TEST_ONLY":case 2:o.editionIntroduced=2;break;case"EDITION_99997_TEST_ONLY":case 99997:o.editionIntroduced=99997;break;case"EDITION_99998_TEST_ONLY":case 99998:o.editionIntroduced=99998;break;case"EDITION_99999_TEST_ONLY":case 99999:o.editionIntroduced=99999;break;case"EDITION_MAX":case 2147483647:o.editionIntroduced=2147483647}switch(e.editionDeprecated){default:"number"==typeof e.editionDeprecated&&(o.editionDeprecated=e.editionDeprecated);break;case"EDITION_UNKNOWN":case 0:o.editionDeprecated=0;break;case"EDITION_LEGACY":case 900:o.editionDeprecated=900;break;case"EDITION_PROTO2":case 998:o.editionDeprecated=998;break;case"EDITION_PROTO3":case 999:o.editionDeprecated=999;break;case"EDITION_2023":case 1e3:o.editionDeprecated=1e3;break;case"EDITION_2024":case 1001:o.editionDeprecated=1001;break;case"EDITION_2026":case 1002:o.editionDeprecated=1002;break;case"EDITION_UNSTABLE":case 9999:o.editionDeprecated=9999;break;case"EDITION_1_TEST_ONLY":case 1:o.editionDeprecated=1;break;case"EDITION_2_TEST_ONLY":case 2:o.editionDeprecated=2;break;case"EDITION_99997_TEST_ONLY":case 99997:o.editionDeprecated=99997;break;case"EDITION_99998_TEST_ONLY":case 99998:o.editionDeprecated=99998;break;case"EDITION_99999_TEST_ONLY":case 99999:o.editionDeprecated=99999;break;case"EDITION_MAX":case 2147483647:o.editionDeprecated=2147483647}switch(null!=e.deprecationWarning&&(o.deprecationWarning=String(e.deprecationWarning)),e.editionRemoved){default:"number"==typeof e.editionRemoved&&(o.editionRemoved=e.editionRemoved);break;case"EDITION_UNKNOWN":case 0:o.editionRemoved=0;break;case"EDITION_LEGACY":case 900:o.editionRemoved=900;break;case"EDITION_PROTO2":case 998:o.editionRemoved=998;break;case"EDITION_PROTO3":case 999:o.editionRemoved=999;break;case"EDITION_2023":case 1e3:o.editionRemoved=1e3;break;case"EDITION_2024":case 1001:o.editionRemoved=1001;break;case"EDITION_2026":case 1002:o.editionRemoved=1002;break;case"EDITION_UNSTABLE":case 9999:o.editionRemoved=9999;break;case"EDITION_1_TEST_ONLY":case 1:o.editionRemoved=1;break;case"EDITION_2_TEST_ONLY":case 2:o.editionRemoved=2;break;case"EDITION_99997_TEST_ONLY":case 99997:o.editionRemoved=99997;break;case"EDITION_99998_TEST_ONLY":case 99998:o.editionRemoved=99998;break;case"EDITION_99999_TEST_ONLY":case 99999:o.editionRemoved=99999;break;case"EDITION_MAX":case 2147483647:o.editionRemoved=2147483647}return null!=e.removalError&&(o.removalError=String(e.removalError)),o},Pe.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.editionIntroduced=t.enums===String?"EDITION_UNKNOWN":0,o.editionDeprecated=t.enums===String?"EDITION_UNKNOWN":0,o.deprecationWarning="",o.editionRemoved=t.enums===String?"EDITION_UNKNOWN":0,o.removalError=""),null!=e.editionIntroduced&&Object.hasOwnProperty.call(e,"editionIntroduced")&&(o.editionIntroduced=t.enums!==String||void 0===g.google.protobuf.Edition[e.editionIntroduced]?e.editionIntroduced:g.google.protobuf.Edition[e.editionIntroduced]),null!=e.editionDeprecated&&Object.hasOwnProperty.call(e,"editionDeprecated")&&(o.editionDeprecated=t.enums!==String||void 0===g.google.protobuf.Edition[e.editionDeprecated]?e.editionDeprecated:g.google.protobuf.Edition[e.editionDeprecated]),null!=e.deprecationWarning&&Object.hasOwnProperty.call(e,"deprecationWarning")&&(o.deprecationWarning=e.deprecationWarning),null!=e.editionRemoved&&Object.hasOwnProperty.call(e,"editionRemoved")&&(o.editionRemoved=t.enums!==String||void 0===g.google.protobuf.Edition[e.editionRemoved]?e.editionRemoved:g.google.protobuf.Edition[e.editionRemoved]),null!=e.removalError&&Object.hasOwnProperty.call(e,"removalError")&&(o.removalError=e.removalError),o},Pe.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Pe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FieldOptions.FeatureSupport"},Pe),P),t.OneofOptions=(Te.prototype.features=null,Te.prototype.uninterpretedOption=d.emptyArray,Te.create=function(e){return new Te(e)},Te.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.features&&Object.hasOwnProperty.call(e,"features")&&g.google.protobuf.FeatureSet.encode(e.features,t.uint32(10).fork(),o+1).ldelim(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)g.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork(),o+1).ldelim();return t},Te.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Te.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.OneofOptions;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.features=g.google.protobuf.FeatureSet.decode(e,e.uint32(),void 0,r+1);break;case 999:i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(g.google.protobuf.UninterpretedOption.decode(e,e.uint32(),void 0,r+1));break;default:e.skipType(7&a,r)}}return i},Te.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Te.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(o=g.google.protobuf.FeatureSet.verify(e.features,t+1)))return"features."+o;if(null!=e.uninterpretedOption&&Object.hasOwnProperty.call(e,"uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var o,r=0;r<e.uninterpretedOption.length;++r)if(o=g.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[r],t+1))return"uninterpretedOption."+o}return null},Te.fromObject=function(e,t){if(e instanceof g.google.protobuf.OneofOptions)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.OneofOptions: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.OneofOptions;if(null!=e.features){if(!d.isObject(e.features))throw TypeError(".google.protobuf.OneofOptions.features: object expected");o.features=g.google.protobuf.FeatureSet.fromObject(e.features,t+1)}if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected");o.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if(!d.isObject(e.uninterpretedOption[r]))throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: object expected");o.uninterpretedOption[r]=g.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r],t+1)}}return o},Te.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.features=null),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(r.features=g.google.protobuf.FeatureSet.toObject(e.features,t,o+1)),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=g.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t,o+1)}return r},Te.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Te.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.OneofOptions"},Te),t.EnumOptions=(Re.prototype.allowAlias=!1,Re.prototype.deprecated=!1,Re.prototype.deprecatedLegacyJsonFieldConflicts=!1,Re.prototype.features=null,Re.prototype.uninterpretedOption=d.emptyArray,Re.create=function(e){return new Re(e)},Re.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.allowAlias&&Object.hasOwnProperty.call(e,"allowAlias")&&t.uint32(16).bool(e.allowAlias),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(24).bool(e.deprecated),null!=e.deprecatedLegacyJsonFieldConflicts&&Object.hasOwnProperty.call(e,"deprecatedLegacyJsonFieldConflicts")&&t.uint32(48).bool(e.deprecatedLegacyJsonFieldConflicts),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&g.google.protobuf.FeatureSet.encode(e.features,t.uint32(58).fork(),o+1).ldelim(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)g.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork(),o+1).ldelim();return t},Re.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Re.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.EnumOptions;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 2:i.allowAlias=e.bool();break;case 3:i.deprecated=e.bool();break;case 6:i.deprecatedLegacyJsonFieldConflicts=e.bool();break;case 7:i.features=g.google.protobuf.FeatureSet.decode(e,e.uint32(),void 0,r+1);break;case 999:i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(g.google.protobuf.UninterpretedOption.decode(e,e.uint32(),void 0,r+1));break;default:e.skipType(7&a,r)}}return i},Re.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Re.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.allowAlias&&Object.hasOwnProperty.call(e,"allowAlias")&&"boolean"!=typeof e.allowAlias)return"allowAlias: boolean expected";if(null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.deprecatedLegacyJsonFieldConflicts&&Object.hasOwnProperty.call(e,"deprecatedLegacyJsonFieldConflicts")&&"boolean"!=typeof e.deprecatedLegacyJsonFieldConflicts)return"deprecatedLegacyJsonFieldConflicts: boolean expected";if(null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(o=g.google.protobuf.FeatureSet.verify(e.features,t+1)))return"features."+o;if(null!=e.uninterpretedOption&&Object.hasOwnProperty.call(e,"uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var o,r=0;r<e.uninterpretedOption.length;++r)if(o=g.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[r],t+1))return"uninterpretedOption."+o}return null},Re.fromObject=function(e,t){if(e instanceof g.google.protobuf.EnumOptions)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.EnumOptions: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.EnumOptions;if(null!=e.allowAlias&&(o.allowAlias=Boolean(e.allowAlias)),null!=e.deprecated&&(o.deprecated=Boolean(e.deprecated)),null!=e.deprecatedLegacyJsonFieldConflicts&&(o.deprecatedLegacyJsonFieldConflicts=Boolean(e.deprecatedLegacyJsonFieldConflicts)),null!=e.features){if(!d.isObject(e.features))throw TypeError(".google.protobuf.EnumOptions.features: object expected");o.features=g.google.protobuf.FeatureSet.fromObject(e.features,t+1)}if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected");o.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if(!d.isObject(e.uninterpretedOption[r]))throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: object expected");o.uninterpretedOption[r]=g.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r],t+1)}}return o},Re.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.allowAlias=!1,r.deprecated=!1,r.deprecatedLegacyJsonFieldConflicts=!1,r.features=null),null!=e.allowAlias&&Object.hasOwnProperty.call(e,"allowAlias")&&(r.allowAlias=e.allowAlias),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&(r.deprecated=e.deprecated),null!=e.deprecatedLegacyJsonFieldConflicts&&Object.hasOwnProperty.call(e,"deprecatedLegacyJsonFieldConflicts")&&(r.deprecatedLegacyJsonFieldConflicts=e.deprecatedLegacyJsonFieldConflicts),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(r.features=g.google.protobuf.FeatureSet.toObject(e.features,t,o+1)),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=g.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t,o+1)}return r},Re.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Re.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.EnumOptions"},Re),t.EnumValueOptions=(ke.prototype.deprecated=!1,ke.prototype.features=null,ke.prototype.debugRedact=!1,ke.prototype.featureSupport=null,ke.prototype.uninterpretedOption=d.emptyArray,ke.create=function(e){return new ke(e)},ke.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(8).bool(e.deprecated),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&g.google.protobuf.FeatureSet.encode(e.features,t.uint32(18).fork(),o+1).ldelim(),null!=e.debugRedact&&Object.hasOwnProperty.call(e,"debugRedact")&&t.uint32(24).bool(e.debugRedact),null!=e.featureSupport&&Object.hasOwnProperty.call(e,"featureSupport")&&g.google.protobuf.FieldOptions.FeatureSupport.encode(e.featureSupport,t.uint32(34).fork(),o+1).ldelim(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)g.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork(),o+1).ldelim();return t},ke.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ke.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.EnumValueOptions;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.deprecated=e.bool();break;case 2:i.features=g.google.protobuf.FeatureSet.decode(e,e.uint32(),void 0,r+1);break;case 3:i.debugRedact=e.bool();break;case 4:i.featureSupport=g.google.protobuf.FieldOptions.FeatureSupport.decode(e,e.uint32(),void 0,r+1);break;case 999:i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(g.google.protobuf.UninterpretedOption.decode(e,e.uint32(),void 0,r+1));break;default:e.skipType(7&a,r)}}return i},ke.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ke.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(o=g.google.protobuf.FeatureSet.verify(e.features,t+1)))return"features."+o;if(null!=e.debugRedact&&Object.hasOwnProperty.call(e,"debugRedact")&&"boolean"!=typeof e.debugRedact)return"debugRedact: boolean expected";if(null!=e.featureSupport&&Object.hasOwnProperty.call(e,"featureSupport")&&(o=g.google.protobuf.FieldOptions.FeatureSupport.verify(e.featureSupport,t+1)))return"featureSupport."+o;if(null!=e.uninterpretedOption&&Object.hasOwnProperty.call(e,"uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var o,r=0;r<e.uninterpretedOption.length;++r)if(o=g.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[r],t+1))return"uninterpretedOption."+o}return null},ke.fromObject=function(e,t){if(e instanceof g.google.protobuf.EnumValueOptions)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.EnumValueOptions: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.EnumValueOptions;if(null!=e.deprecated&&(o.deprecated=Boolean(e.deprecated)),null!=e.features){if(!d.isObject(e.features))throw TypeError(".google.protobuf.EnumValueOptions.features: object expected");o.features=g.google.protobuf.FeatureSet.fromObject(e.features,t+1)}if(null!=e.debugRedact&&(o.debugRedact=Boolean(e.debugRedact)),null!=e.featureSupport){if(!d.isObject(e.featureSupport))throw TypeError(".google.protobuf.EnumValueOptions.featureSupport: object expected");o.featureSupport=g.google.protobuf.FieldOptions.FeatureSupport.fromObject(e.featureSupport,t+1)}if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected");o.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if(!d.isObject(e.uninterpretedOption[r]))throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: object expected");o.uninterpretedOption[r]=g.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r],t+1)}}return o},ke.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.deprecated=!1,r.features=null,r.debugRedact=!1,r.featureSupport=null),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&(r.deprecated=e.deprecated),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(r.features=g.google.protobuf.FeatureSet.toObject(e.features,t,o+1)),null!=e.debugRedact&&Object.hasOwnProperty.call(e,"debugRedact")&&(r.debugRedact=e.debugRedact),null!=e.featureSupport&&Object.hasOwnProperty.call(e,"featureSupport")&&(r.featureSupport=g.google.protobuf.FieldOptions.FeatureSupport.toObject(e.featureSupport,t,o+1)),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=g.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t,o+1)}return r},ke.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ke.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.EnumValueOptions"},ke),t.ServiceOptions=(T.prototype.features=null,T.prototype.deprecated=!1,T.prototype.uninterpretedOption=d.emptyArray,T.prototype[".google.api.defaultHost"]="",T.prototype[".google.api.oauthScopes"]="",T.prototype[".google.api.apiVersion"]="",T.create=function(e){return new T(e)},T.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(264).bool(e.deprecated),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&g.google.protobuf.FeatureSet.encode(e.features,t.uint32(274).fork(),o+1).ldelim(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)g.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork(),o+1).ldelim();return null!=e[".google.api.defaultHost"]&&Object.hasOwnProperty.call(e,".google.api.defaultHost")&&t.uint32(8394).string(e[".google.api.defaultHost"]),null!=e[".google.api.oauthScopes"]&&Object.hasOwnProperty.call(e,".google.api.oauthScopes")&&t.uint32(8402).string(e[".google.api.oauthScopes"]),null!=e[".google.api.apiVersion"]&&Object.hasOwnProperty.call(e,".google.api.apiVersion")&&t.uint32(4200000010).string(e[".google.api.apiVersion"]),t},T.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},T.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.ServiceOptions;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 34:i.features=g.google.protobuf.FeatureSet.decode(e,e.uint32(),void 0,r+1);break;case 33:i.deprecated=e.bool();break;case 999:i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(g.google.protobuf.UninterpretedOption.decode(e,e.uint32(),void 0,r+1));break;case 1049:i[".google.api.defaultHost"]=e.string();break;case 1050:i[".google.api.oauthScopes"]=e.string();break;case 525000001:i[".google.api.apiVersion"]=e.string();break;default:e.skipType(7&a,r)}}return i},T.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},T.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(o=g.google.protobuf.FeatureSet.verify(e.features,t+1)))return"features."+o;if(null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&Object.hasOwnProperty.call(e,"uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var o,r=0;r<e.uninterpretedOption.length;++r)if(o=g.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[r],t+1))return"uninterpretedOption."+o}return null!=e[".google.api.defaultHost"]&&Object.hasOwnProperty.call(e,".google.api.defaultHost")&&!d.isString(e[".google.api.defaultHost"])?".google.api.defaultHost: string expected":null!=e[".google.api.oauthScopes"]&&Object.hasOwnProperty.call(e,".google.api.oauthScopes")&&!d.isString(e[".google.api.oauthScopes"])?".google.api.oauthScopes: string expected":null!=e[".google.api.apiVersion"]&&Object.hasOwnProperty.call(e,".google.api.apiVersion")&&!d.isString(e[".google.api.apiVersion"])?".google.api.apiVersion: string expected":null},T.fromObject=function(e,t){if(e instanceof g.google.protobuf.ServiceOptions)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.ServiceOptions: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.ServiceOptions;if(null!=e.features){if(!d.isObject(e.features))throw TypeError(".google.protobuf.ServiceOptions.features: object expected");o.features=g.google.protobuf.FeatureSet.fromObject(e.features,t+1)}if(null!=e.deprecated&&(o.deprecated=Boolean(e.deprecated)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: array expected");o.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if(!d.isObject(e.uninterpretedOption[r]))throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: object expected");o.uninterpretedOption[r]=g.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r],t+1)}}return null!=e[".google.api.defaultHost"]&&(o[".google.api.defaultHost"]=String(e[".google.api.defaultHost"])),null!=e[".google.api.oauthScopes"]&&(o[".google.api.oauthScopes"]=String(e[".google.api.oauthScopes"])),null!=e[".google.api.apiVersion"]&&(o[".google.api.apiVersion"]=String(e[".google.api.apiVersion"])),o},T.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.deprecated=!1,r.features=null,r[".google.api.defaultHost"]="",r[".google.api.oauthScopes"]="",r[".google.api.apiVersion"]=""),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&(r.deprecated=e.deprecated),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(r.features=g.google.protobuf.FeatureSet.toObject(e.features,t,o+1)),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=g.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t,o+1)}return null!=e[".google.api.defaultHost"]&&Object.hasOwnProperty.call(e,".google.api.defaultHost")&&(r[".google.api.defaultHost"]=e[".google.api.defaultHost"]),null!=e[".google.api.oauthScopes"]&&Object.hasOwnProperty.call(e,".google.api.oauthScopes")&&(r[".google.api.oauthScopes"]=e[".google.api.oauthScopes"]),null!=e[".google.api.apiVersion"]&&Object.hasOwnProperty.call(e,".google.api.apiVersion")&&(r[".google.api.apiVersion"]=e[".google.api.apiVersion"]),r},T.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},T.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.ServiceOptions"},T),t.MethodOptions=(R.prototype.deprecated=!1,R.prototype.idempotencyLevel=0,R.prototype.features=null,R.prototype.uninterpretedOption=d.emptyArray,R.prototype[".google.api.http"]=null,R.prototype[".google.api.methodSignature"]=d.emptyArray,R.create=function(e){return new R(e)},R.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(264).bool(e.deprecated),null!=e.idempotencyLevel&&Object.hasOwnProperty.call(e,"idempotencyLevel")&&t.uint32(272).int32(e.idempotencyLevel),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&g.google.protobuf.FeatureSet.encode(e.features,t.uint32(282).fork(),o+1).ldelim(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)g.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork(),o+1).ldelim();if(null!=e[".google.api.methodSignature"]&&e[".google.api.methodSignature"].length)for(r=0;r<e[".google.api.methodSignature"].length;++r)t.uint32(8410).string(e[".google.api.methodSignature"][r]);return null!=e[".google.api.http"]&&Object.hasOwnProperty.call(e,".google.api.http")&&g.google.api.HttpRule.encode(e[".google.api.http"],t.uint32(578365826).fork(),o+1).ldelim(),t},R.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},R.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.MethodOptions;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 33:i.deprecated=e.bool();break;case 34:i.idempotencyLevel=e.int32();break;case 35:i.features=g.google.protobuf.FeatureSet.decode(e,e.uint32(),void 0,r+1);break;case 999:i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(g.google.protobuf.UninterpretedOption.decode(e,e.uint32(),void 0,r+1));break;case 72295728:i[".google.api.http"]=g.google.api.HttpRule.decode(e,e.uint32(),void 0,r+1);break;case 1051:i[".google.api.methodSignature"]&&i[".google.api.methodSignature"].length||(i[".google.api.methodSignature"]=[]),i[".google.api.methodSignature"].push(e.string());break;default:e.skipType(7&a,r)}}return i},R.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},R.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.idempotencyLevel&&Object.hasOwnProperty.call(e,"idempotencyLevel"))switch(e.idempotencyLevel){default:return"idempotencyLevel: enum value expected";case 0:case 1:case 2:}if(null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(o=g.google.protobuf.FeatureSet.verify(e.features,t+1)))return"features."+o;if(null!=e.uninterpretedOption&&Object.hasOwnProperty.call(e,"uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var o,r=0;r<e.uninterpretedOption.length;++r)if(o=g.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[r],t+1))return"uninterpretedOption."+o}if(null!=e[".google.api.http"]&&Object.hasOwnProperty.call(e,".google.api.http")&&(o=g.google.api.HttpRule.verify(e[".google.api.http"],t+1)))return".google.api.http."+o;if(null!=e[".google.api.methodSignature"]&&Object.hasOwnProperty.call(e,".google.api.methodSignature")){if(!Array.isArray(e[".google.api.methodSignature"]))return".google.api.methodSignature: array expected";for(r=0;r<e[".google.api.methodSignature"].length;++r)if(!d.isString(e[".google.api.methodSignature"][r]))return".google.api.methodSignature: string[] expected"}return null},R.fromObject=function(e,t){if(e instanceof g.google.protobuf.MethodOptions)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.MethodOptions: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.MethodOptions;switch(null!=e.deprecated&&(o.deprecated=Boolean(e.deprecated)),e.idempotencyLevel){default:"number"==typeof e.idempotencyLevel&&(o.idempotencyLevel=e.idempotencyLevel);break;case"IDEMPOTENCY_UNKNOWN":case 0:o.idempotencyLevel=0;break;case"NO_SIDE_EFFECTS":case 1:o.idempotencyLevel=1;break;case"IDEMPOTENT":case 2:o.idempotencyLevel=2}if(null!=e.features){if(!d.isObject(e.features))throw TypeError(".google.protobuf.MethodOptions.features: object expected");o.features=g.google.protobuf.FeatureSet.fromObject(e.features,t+1)}if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected");o.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if(!d.isObject(e.uninterpretedOption[r]))throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: object expected");o.uninterpretedOption[r]=g.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r],t+1)}}if(null!=e[".google.api.http"]){if(!d.isObject(e[".google.api.http"]))throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected");o[".google.api.http"]=g.google.api.HttpRule.fromObject(e[".google.api.http"],t+1)}if(e[".google.api.methodSignature"]){if(!Array.isArray(e[".google.api.methodSignature"]))throw TypeError(".google.protobuf.MethodOptions..google.api.methodSignature: array expected");o[".google.api.methodSignature"]=[];for(r=0;r<e[".google.api.methodSignature"].length;++r)o[".google.api.methodSignature"][r]=String(e[".google.api.methodSignature"][r])}return o},R.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.uninterpretedOption=[],r[".google.api.methodSignature"]=[]),t.defaults&&(r.deprecated=!1,r.idempotencyLevel=t.enums===String?"IDEMPOTENCY_UNKNOWN":0,r.features=null,r[".google.api.http"]=null),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&(r.deprecated=e.deprecated),null!=e.idempotencyLevel&&Object.hasOwnProperty.call(e,"idempotencyLevel")&&(r.idempotencyLevel=t.enums!==String||void 0===g.google.protobuf.MethodOptions.IdempotencyLevel[e.idempotencyLevel]?e.idempotencyLevel:g.google.protobuf.MethodOptions.IdempotencyLevel[e.idempotencyLevel]),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(r.features=g.google.protobuf.FeatureSet.toObject(e.features,t,o+1)),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=g.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t,o+1)}if(e[".google.api.methodSignature"]&&e[".google.api.methodSignature"].length){r[".google.api.methodSignature"]=[];for(n=0;n<e[".google.api.methodSignature"].length;++n)r[".google.api.methodSignature"][n]=e[".google.api.methodSignature"][n]}return null!=e[".google.api.http"]&&Object.hasOwnProperty.call(e,".google.api.http")&&(r[".google.api.http"]=g.google.api.HttpRule.toObject(e[".google.api.http"],t,o+1)),r},R.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},R.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.MethodOptions"},R.IdempotencyLevel=(a={},(e=Object.create(a))[a[0]="IDEMPOTENCY_UNKNOWN"]=0,e[a[1]="NO_SIDE_EFFECTS"]=1,e[a[2]="IDEMPOTENT"]=2,e),R),t.UninterpretedOption=(k.prototype.name=d.emptyArray,k.prototype.identifierValue="",k.prototype.positiveIntValue=d.Long?d.Long.fromBits(0,0,!0):0,k.prototype.negativeIntValue=d.Long?d.Long.fromBits(0,0,!1):0,k.prototype.doubleValue=0,k.prototype.stringValue=d.newBuffer([]),k.prototype.aggregateValue="",k.create=function(e){return new k(e)},k.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.name&&e.name.length)for(var r=0;r<e.name.length;++r)g.google.protobuf.UninterpretedOption.NamePart.encode(e.name[r],t.uint32(18).fork(),o+1).ldelim();return null!=e.identifierValue&&Object.hasOwnProperty.call(e,"identifierValue")&&t.uint32(26).string(e.identifierValue),null!=e.positiveIntValue&&Object.hasOwnProperty.call(e,"positiveIntValue")&&t.uint32(32).uint64(e.positiveIntValue),null!=e.negativeIntValue&&Object.hasOwnProperty.call(e,"negativeIntValue")&&t.uint32(40).int64(e.negativeIntValue),null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&t.uint32(49).double(e.doubleValue),null!=e.stringValue&&Object.hasOwnProperty.call(e,"stringValue")&&t.uint32(58).bytes(e.stringValue),null!=e.aggregateValue&&Object.hasOwnProperty.call(e,"aggregateValue")&&t.uint32(66).string(e.aggregateValue),t},k.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},k.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.UninterpretedOption;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 2:i.name&&i.name.length||(i.name=[]),i.name.push(g.google.protobuf.UninterpretedOption.NamePart.decode(e,e.uint32(),void 0,r+1));break;case 3:i.identifierValue=e.string();break;case 4:i.positiveIntValue=e.uint64();break;case 5:i.negativeIntValue=e.int64();break;case 6:i.doubleValue=e.double();break;case 7:i.stringValue=e.bytes();break;case 8:i.aggregateValue=e.string();break;default:e.skipType(7&a,r)}}return i},k.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},k.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.name&&Object.hasOwnProperty.call(e,"name")){if(!Array.isArray(e.name))return"name: array expected";for(var o=0;o<e.name.length;++o){var r=g.google.protobuf.UninterpretedOption.NamePart.verify(e.name[o],t+1);if(r)return"name."+r}}return null!=e.identifierValue&&Object.hasOwnProperty.call(e,"identifierValue")&&!d.isString(e.identifierValue)?"identifierValue: string expected":null!=e.positiveIntValue&&Object.hasOwnProperty.call(e,"positiveIntValue")&&!(d.isInteger(e.positiveIntValue)||e.positiveIntValue&&d.isInteger(e.positiveIntValue.low)&&d.isInteger(e.positiveIntValue.high))?"positiveIntValue: integer|Long expected":null!=e.negativeIntValue&&Object.hasOwnProperty.call(e,"negativeIntValue")&&!(d.isInteger(e.negativeIntValue)||e.negativeIntValue&&d.isInteger(e.negativeIntValue.low)&&d.isInteger(e.negativeIntValue.high))?"negativeIntValue: integer|Long expected":null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&"number"!=typeof e.doubleValue?"doubleValue: number expected":null!=e.stringValue&&Object.hasOwnProperty.call(e,"stringValue")&&!(e.stringValue&&"number"==typeof e.stringValue.length||d.isString(e.stringValue))?"stringValue: buffer expected":null!=e.aggregateValue&&Object.hasOwnProperty.call(e,"aggregateValue")&&!d.isString(e.aggregateValue)?"aggregateValue: string expected":null},k.fromObject=function(e,t){if(e instanceof g.google.protobuf.UninterpretedOption)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.UninterpretedOption: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.UninterpretedOption;if(e.name){if(!Array.isArray(e.name))throw TypeError(".google.protobuf.UninterpretedOption.name: array expected");o.name=[];for(var r=0;r<e.name.length;++r){if(!d.isObject(e.name[r]))throw TypeError(".google.protobuf.UninterpretedOption.name: object expected");o.name[r]=g.google.protobuf.UninterpretedOption.NamePart.fromObject(e.name[r],t+1)}}return null!=e.identifierValue&&(o.identifierValue=String(e.identifierValue)),null!=e.positiveIntValue&&(d.Long?o.positiveIntValue=d.Long.fromValue(e.positiveIntValue,!0):"string"==typeof e.positiveIntValue?o.positiveIntValue=parseInt(e.positiveIntValue,10):"number"==typeof e.positiveIntValue?o.positiveIntValue=e.positiveIntValue:"object"==typeof e.positiveIntValue&&(o.positiveIntValue=new d.LongBits(e.positiveIntValue.low>>>0,e.positiveIntValue.high>>>0).toNumber(!0))),null!=e.negativeIntValue&&(d.Long?o.negativeIntValue=d.Long.fromValue(e.negativeIntValue,!1):"string"==typeof e.negativeIntValue?o.negativeIntValue=parseInt(e.negativeIntValue,10):"number"==typeof e.negativeIntValue?o.negativeIntValue=e.negativeIntValue:"object"==typeof e.negativeIntValue&&(o.negativeIntValue=new d.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber())),null!=e.doubleValue&&(o.doubleValue=Number(e.doubleValue)),null!=e.stringValue&&("string"==typeof e.stringValue?d.base64.decode(e.stringValue,o.stringValue=d.newBuffer(d.base64.length(e.stringValue)),0):0<=e.stringValue.length&&(o.stringValue=e.stringValue)),null!=e.aggregateValue&&(o.aggregateValue=String(e.aggregateValue)),o},k.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,n={};if((t.arrays||t.defaults)&&(n.name=[]),t.defaults&&(n.identifierValue="",d.Long?(r=new d.Long(0,0,!0),n.positiveIntValue=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):n.positiveIntValue=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,d.Long?(r=new d.Long(0,0,!1),n.negativeIntValue=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):n.negativeIntValue=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,n.doubleValue=0,t.bytes===String?n.stringValue="":(n.stringValue=[],t.bytes!==Array&&(n.stringValue=d.newBuffer(n.stringValue))),n.aggregateValue=""),e.name&&e.name.length){n.name=[];for(var i=0;i<e.name.length;++i)n.name[i]=g.google.protobuf.UninterpretedOption.NamePart.toObject(e.name[i],t,o+1)}return null!=e.identifierValue&&Object.hasOwnProperty.call(e,"identifierValue")&&(n.identifierValue=e.identifierValue),null!=e.positiveIntValue&&Object.hasOwnProperty.call(e,"positiveIntValue")&&("undefined"!=typeof BigInt&&t.longs===BigInt?n.positiveIntValue="number"==typeof e.positiveIntValue?BigInt(e.positiveIntValue):d.Long.fromBits(e.positiveIntValue.low>>>0,e.positiveIntValue.high>>>0,!0).toBigInt():"number"==typeof e.positiveIntValue?n.positiveIntValue=t.longs===String?String(e.positiveIntValue):e.positiveIntValue:n.positiveIntValue=t.longs===String?d.Long.prototype.toString.call(e.positiveIntValue):t.longs===Number?new d.LongBits(e.positiveIntValue.low>>>0,e.positiveIntValue.high>>>0).toNumber(!0):e.positiveIntValue),null!=e.negativeIntValue&&Object.hasOwnProperty.call(e,"negativeIntValue")&&("undefined"!=typeof BigInt&&t.longs===BigInt?n.negativeIntValue="number"==typeof e.negativeIntValue?BigInt(e.negativeIntValue):d.Long.fromBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0,!1).toBigInt():"number"==typeof e.negativeIntValue?n.negativeIntValue=t.longs===String?String(e.negativeIntValue):e.negativeIntValue:n.negativeIntValue=t.longs===String?d.Long.prototype.toString.call(e.negativeIntValue):t.longs===Number?new d.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber():e.negativeIntValue),null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue),null!=e.stringValue&&Object.hasOwnProperty.call(e,"stringValue")&&(n.stringValue=t.bytes===String?d.base64.encode(e.stringValue,0,e.stringValue.length):t.bytes===Array?Array.prototype.slice.call(e.stringValue):e.stringValue),null!=e.aggregateValue&&Object.hasOwnProperty.call(e,"aggregateValue")&&(n.aggregateValue=e.aggregateValue),n},k.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},k.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.UninterpretedOption"},k.NamePart=(Ie.prototype.namePart="",Ie.prototype.isExtension=!1,Ie.create=function(e){return new Ie(e)},Ie.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return t.uint32(10).string(e.namePart),t.uint32(16).bool(e.isExtension),t},Ie.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ie.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.UninterpretedOption.NamePart;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.namePart=e.string();break;case 2:i.isExtension=e.bool();break;default:e.skipType(7&a,r)}}if(!Object.hasOwnProperty.call(i,"namePart"))throw d.ProtocolError("missing required 'namePart'",{instance:i});if(Object.hasOwnProperty.call(i,"isExtension"))return i;throw d.ProtocolError("missing required 'isExtension'",{instance:i})},Ie.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Ie.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":d.isString(e.namePart)?"boolean"!=typeof e.isExtension?"isExtension: boolean expected":null:"namePart: string expected"},Ie.fromObject=function(e,t){if(e instanceof g.google.protobuf.UninterpretedOption.NamePart)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.UninterpretedOption.NamePart: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.UninterpretedOption.NamePart;return null!=e.namePart&&(t.namePart=String(e.namePart)),null!=e.isExtension&&(t.isExtension=Boolean(e.isExtension)),t},Ie.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.namePart="",o.isExtension=!1),null!=e.namePart&&Object.hasOwnProperty.call(e,"namePart")&&(o.namePart=e.namePart),null!=e.isExtension&&Object.hasOwnProperty.call(e,"isExtension")&&(o.isExtension=e.isExtension),o},Ie.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Ie.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.UninterpretedOption.NamePart"},Ie),k),t.FeatureSet=(I.prototype.fieldPresence=0,I.prototype.enumType=0,I.prototype.repeatedFieldEncoding=0,I.prototype.utf8Validation=0,I.prototype.messageEncoding=0,I.prototype.jsonFormat=0,I.prototype.enforceNamingStyle=0,I.prototype.defaultSymbolVisibility=0,I.prototype.enforceProtoLimits=0,I.create=function(e){return new I(e)},I.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.fieldPresence&&Object.hasOwnProperty.call(e,"fieldPresence")&&t.uint32(8).int32(e.fieldPresence),null!=e.enumType&&Object.hasOwnProperty.call(e,"enumType")&&t.uint32(16).int32(e.enumType),null!=e.repeatedFieldEncoding&&Object.hasOwnProperty.call(e,"repeatedFieldEncoding")&&t.uint32(24).int32(e.repeatedFieldEncoding),null!=e.utf8Validation&&Object.hasOwnProperty.call(e,"utf8Validation")&&t.uint32(32).int32(e.utf8Validation),null!=e.messageEncoding&&Object.hasOwnProperty.call(e,"messageEncoding")&&t.uint32(40).int32(e.messageEncoding),null!=e.jsonFormat&&Object.hasOwnProperty.call(e,"jsonFormat")&&t.uint32(48).int32(e.jsonFormat),null!=e.enforceNamingStyle&&Object.hasOwnProperty.call(e,"enforceNamingStyle")&&t.uint32(56).int32(e.enforceNamingStyle),null!=e.defaultSymbolVisibility&&Object.hasOwnProperty.call(e,"defaultSymbolVisibility")&&t.uint32(64).int32(e.defaultSymbolVisibility),null!=e.enforceProtoLimits&&Object.hasOwnProperty.call(e,"enforceProtoLimits")&&t.uint32(72).int32(e.enforceProtoLimits),t},I.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},I.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FeatureSet;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.fieldPresence=e.int32();break;case 2:i.enumType=e.int32();break;case 3:i.repeatedFieldEncoding=e.int32();break;case 4:i.utf8Validation=e.int32();break;case 5:i.messageEncoding=e.int32();break;case 6:i.jsonFormat=e.int32();break;case 7:i.enforceNamingStyle=e.int32();break;case 8:i.defaultSymbolVisibility=e.int32();break;case 9:i.enforceProtoLimits=e.int32();break;default:e.skipType(7&a,r)}}return i},I.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},I.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.fieldPresence&&Object.hasOwnProperty.call(e,"fieldPresence"))switch(e.fieldPresence){default:return"fieldPresence: enum value expected";case 0:case 1:case 2:case 3:}if(null!=e.enumType&&Object.hasOwnProperty.call(e,"enumType"))switch(e.enumType){default:return"enumType: enum value expected";case 0:case 1:case 2:}if(null!=e.repeatedFieldEncoding&&Object.hasOwnProperty.call(e,"repeatedFieldEncoding"))switch(e.repeatedFieldEncoding){default:return"repeatedFieldEncoding: enum value expected";case 0:case 1:case 2:}if(null!=e.utf8Validation&&Object.hasOwnProperty.call(e,"utf8Validation"))switch(e.utf8Validation){default:return"utf8Validation: enum value expected";case 0:case 2:case 3:}if(null!=e.messageEncoding&&Object.hasOwnProperty.call(e,"messageEncoding"))switch(e.messageEncoding){default:return"messageEncoding: enum value expected";case 0:case 1:case 2:}if(null!=e.jsonFormat&&Object.hasOwnProperty.call(e,"jsonFormat"))switch(e.jsonFormat){default:return"jsonFormat: enum value expected";case 0:case 1:case 2:}if(null!=e.enforceNamingStyle&&Object.hasOwnProperty.call(e,"enforceNamingStyle"))switch(e.enforceNamingStyle){default:return"enforceNamingStyle: enum value expected";case 0:case 1:case 2:case 3:}if(null!=e.defaultSymbolVisibility&&Object.hasOwnProperty.call(e,"defaultSymbolVisibility"))switch(e.defaultSymbolVisibility){default:return"defaultSymbolVisibility: enum value expected";case 0:case 1:case 2:case 3:case 4:}if(null!=e.enforceProtoLimits&&Object.hasOwnProperty.call(e,"enforceProtoLimits"))switch(e.enforceProtoLimits){default:return"enforceProtoLimits: enum value expected";case 0:case 1:case 2:}return null},I.fromObject=function(e,t){if(e instanceof g.google.protobuf.FeatureSet)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.FeatureSet: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.FeatureSet;switch(e.fieldPresence){default:"number"==typeof e.fieldPresence&&(o.fieldPresence=e.fieldPresence);break;case"FIELD_PRESENCE_UNKNOWN":case 0:o.fieldPresence=0;break;case"EXPLICIT":case 1:o.fieldPresence=1;break;case"IMPLICIT":case 2:o.fieldPresence=2;break;case"LEGACY_REQUIRED":case 3:o.fieldPresence=3}switch(e.enumType){default:"number"==typeof e.enumType&&(o.enumType=e.enumType);break;case"ENUM_TYPE_UNKNOWN":case 0:o.enumType=0;break;case"OPEN":case 1:o.enumType=1;break;case"CLOSED":case 2:o.enumType=2}switch(e.repeatedFieldEncoding){default:"number"==typeof e.repeatedFieldEncoding&&(o.repeatedFieldEncoding=e.repeatedFieldEncoding);break;case"REPEATED_FIELD_ENCODING_UNKNOWN":case 0:o.repeatedFieldEncoding=0;break;case"PACKED":case 1:o.repeatedFieldEncoding=1;break;case"EXPANDED":case 2:o.repeatedFieldEncoding=2}switch(e.utf8Validation){default:"number"==typeof e.utf8Validation&&(o.utf8Validation=e.utf8Validation);break;case"UTF8_VALIDATION_UNKNOWN":case 0:o.utf8Validation=0;break;case"VERIFY":case 2:o.utf8Validation=2;break;case"NONE":case 3:o.utf8Validation=3}switch(e.messageEncoding){default:"number"==typeof e.messageEncoding&&(o.messageEncoding=e.messageEncoding);break;case"MESSAGE_ENCODING_UNKNOWN":case 0:o.messageEncoding=0;break;case"LENGTH_PREFIXED":case 1:o.messageEncoding=1;break;case"DELIMITED":case 2:o.messageEncoding=2}switch(e.jsonFormat){default:"number"==typeof e.jsonFormat&&(o.jsonFormat=e.jsonFormat);break;case"JSON_FORMAT_UNKNOWN":case 0:o.jsonFormat=0;break;case"ALLOW":case 1:o.jsonFormat=1;break;case"LEGACY_BEST_EFFORT":case 2:o.jsonFormat=2}switch(e.enforceNamingStyle){default:"number"==typeof e.enforceNamingStyle&&(o.enforceNamingStyle=e.enforceNamingStyle);break;case"ENFORCE_NAMING_STYLE_UNKNOWN":case 0:o.enforceNamingStyle=0;break;case"STYLE2024":case 1:o.enforceNamingStyle=1;break;case"STYLE_LEGACY":case 2:o.enforceNamingStyle=2;break;case"STYLE2026":case 3:o.enforceNamingStyle=3}switch(e.defaultSymbolVisibility){default:"number"==typeof e.defaultSymbolVisibility&&(o.defaultSymbolVisibility=e.defaultSymbolVisibility);break;case"DEFAULT_SYMBOL_VISIBILITY_UNKNOWN":case 0:o.defaultSymbolVisibility=0;break;case"EXPORT_ALL":case 1:o.defaultSymbolVisibility=1;break;case"EXPORT_TOP_LEVEL":case 2:o.defaultSymbolVisibility=2;break;case"LOCAL_ALL":case 3:o.defaultSymbolVisibility=3;break;case"STRICT":case 4:o.defaultSymbolVisibility=4}switch(e.enforceProtoLimits){default:"number"==typeof e.enforceProtoLimits&&(o.enforceProtoLimits=e.enforceProtoLimits);break;case"PROTO_LIMITS_UNKNOWN":case 0:o.enforceProtoLimits=0;break;case"LEGACY_NO_EXPLICIT_LIMITS":case 1:o.enforceProtoLimits=1;break;case"PROTO_LIMITS2026":case 2:o.enforceProtoLimits=2}return o},I.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.fieldPresence=t.enums===String?"FIELD_PRESENCE_UNKNOWN":0,o.enumType=t.enums===String?"ENUM_TYPE_UNKNOWN":0,o.repeatedFieldEncoding=t.enums===String?"REPEATED_FIELD_ENCODING_UNKNOWN":0,o.utf8Validation=t.enums===String?"UTF8_VALIDATION_UNKNOWN":0,o.messageEncoding=t.enums===String?"MESSAGE_ENCODING_UNKNOWN":0,o.jsonFormat=t.enums===String?"JSON_FORMAT_UNKNOWN":0,o.enforceNamingStyle=t.enums===String?"ENFORCE_NAMING_STYLE_UNKNOWN":0,o.defaultSymbolVisibility=t.enums===String?"DEFAULT_SYMBOL_VISIBILITY_UNKNOWN":0,o.enforceProtoLimits=t.enums===String?"PROTO_LIMITS_UNKNOWN":0),null!=e.fieldPresence&&Object.hasOwnProperty.call(e,"fieldPresence")&&(o.fieldPresence=t.enums!==String||void 0===g.google.protobuf.FeatureSet.FieldPresence[e.fieldPresence]?e.fieldPresence:g.google.protobuf.FeatureSet.FieldPresence[e.fieldPresence]),null!=e.enumType&&Object.hasOwnProperty.call(e,"enumType")&&(o.enumType=t.enums!==String||void 0===g.google.protobuf.FeatureSet.EnumType[e.enumType]?e.enumType:g.google.protobuf.FeatureSet.EnumType[e.enumType]),null!=e.repeatedFieldEncoding&&Object.hasOwnProperty.call(e,"repeatedFieldEncoding")&&(o.repeatedFieldEncoding=t.enums!==String||void 0===g.google.protobuf.FeatureSet.RepeatedFieldEncoding[e.repeatedFieldEncoding]?e.repeatedFieldEncoding:g.google.protobuf.FeatureSet.RepeatedFieldEncoding[e.repeatedFieldEncoding]),null!=e.utf8Validation&&Object.hasOwnProperty.call(e,"utf8Validation")&&(o.utf8Validation=t.enums!==String||void 0===g.google.protobuf.FeatureSet.Utf8Validation[e.utf8Validation]?e.utf8Validation:g.google.protobuf.FeatureSet.Utf8Validation[e.utf8Validation]),null!=e.messageEncoding&&Object.hasOwnProperty.call(e,"messageEncoding")&&(o.messageEncoding=t.enums!==String||void 0===g.google.protobuf.FeatureSet.MessageEncoding[e.messageEncoding]?e.messageEncoding:g.google.protobuf.FeatureSet.MessageEncoding[e.messageEncoding]),null!=e.jsonFormat&&Object.hasOwnProperty.call(e,"jsonFormat")&&(o.jsonFormat=t.enums!==String||void 0===g.google.protobuf.FeatureSet.JsonFormat[e.jsonFormat]?e.jsonFormat:g.google.protobuf.FeatureSet.JsonFormat[e.jsonFormat]),null!=e.enforceNamingStyle&&Object.hasOwnProperty.call(e,"enforceNamingStyle")&&(o.enforceNamingStyle=t.enums!==String||void 0===g.google.protobuf.FeatureSet.EnforceNamingStyle[e.enforceNamingStyle]?e.enforceNamingStyle:g.google.protobuf.FeatureSet.EnforceNamingStyle[e.enforceNamingStyle]),null!=e.defaultSymbolVisibility&&Object.hasOwnProperty.call(e,"defaultSymbolVisibility")&&(o.defaultSymbolVisibility=t.enums!==String||void 0===g.google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility[e.defaultSymbolVisibility]?e.defaultSymbolVisibility:g.google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility[e.defaultSymbolVisibility]),null!=e.enforceProtoLimits&&Object.hasOwnProperty.call(e,"enforceProtoLimits")&&(o.enforceProtoLimits=t.enums!==String||void 0===g.google.protobuf.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits[e.enforceProtoLimits]?e.enforceProtoLimits:g.google.protobuf.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits[e.enforceProtoLimits]),o},I.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},I.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FeatureSet"},I.FieldPresence=(a={},(e=Object.create(a))[a[0]="FIELD_PRESENCE_UNKNOWN"]=0,e[a[1]="EXPLICIT"]=1,e[a[2]="IMPLICIT"]=2,e[a[3]="LEGACY_REQUIRED"]=3,e),I.EnumType=(a={},(e=Object.create(a))[a[0]="ENUM_TYPE_UNKNOWN"]=0,e[a[1]="OPEN"]=1,e[a[2]="CLOSED"]=2,e),I.RepeatedFieldEncoding=(a={},(e=Object.create(a))[a[0]="REPEATED_FIELD_ENCODING_UNKNOWN"]=0,e[a[1]="PACKED"]=1,e[a[2]="EXPANDED"]=2,e),I.Utf8Validation=(a={},(e=Object.create(a))[a[0]="UTF8_VALIDATION_UNKNOWN"]=0,e[a[2]="VERIFY"]=2,e[a[3]="NONE"]=3,e),I.MessageEncoding=(a={},(e=Object.create(a))[a[0]="MESSAGE_ENCODING_UNKNOWN"]=0,e[a[1]="LENGTH_PREFIXED"]=1,e[a[2]="DELIMITED"]=2,e),I.JsonFormat=(a={},(e=Object.create(a))[a[0]="JSON_FORMAT_UNKNOWN"]=0,e[a[1]="ALLOW"]=1,e[a[2]="LEGACY_BEST_EFFORT"]=2,e),I.EnforceNamingStyle=(a={},(e=Object.create(a))[a[0]="ENFORCE_NAMING_STYLE_UNKNOWN"]=0,e[a[1]="STYLE2024"]=1,e[a[2]="STYLE_LEGACY"]=2,e[a[3]="STYLE2026"]=3,e),I.VisibilityFeature=(Le.create=function(e){return new Le(e)},Le.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return t},Le.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Le.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,t=new g.google.protobuf.FeatureSet.VisibilityFeature;e.pos<n;){var i=e.uint32();if(i===o)break;e.skipType(7&i,r)}return t},Le.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Le.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null},Le.fromObject=function(e,t){return e instanceof g.google.protobuf.FeatureSet.VisibilityFeature?e:new g.google.protobuf.FeatureSet.VisibilityFeature},Le.toObject=function(){return{}},Le.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Le.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FeatureSet.VisibilityFeature"},Le.DefaultSymbolVisibility=(a={},(e=Object.create(a))[a[0]="DEFAULT_SYMBOL_VISIBILITY_UNKNOWN"]=0,e[a[1]="EXPORT_ALL"]=1,e[a[2]="EXPORT_TOP_LEVEL"]=2,e[a[3]="LOCAL_ALL"]=3,e[a[4]="STRICT"]=4,e),Le),I.ProtoLimitsFeature=(De.create=function(e){return new De(e)},De.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return t},De.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},De.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,t=new g.google.protobuf.FeatureSet.ProtoLimitsFeature;e.pos<n;){var i=e.uint32();if(i===o)break;e.skipType(7&i,r)}return t},De.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},De.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null},De.fromObject=function(e,t){return e instanceof g.google.protobuf.FeatureSet.ProtoLimitsFeature?e:new g.google.protobuf.FeatureSet.ProtoLimitsFeature},De.toObject=function(){return{}},De.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},De.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FeatureSet.ProtoLimitsFeature"},De.EnforceProtoLimits=(a={},(e=Object.create(a))[a[0]="PROTO_LIMITS_UNKNOWN"]=0,e[a[1]="LEGACY_NO_EXPLICIT_LIMITS"]=1,e[a[2]="PROTO_LIMITS2026"]=2,e),De),I),t.FeatureSetDefaults=(Ne.prototype.defaults=d.emptyArray,Ne.prototype.minimumEdition=0,Ne.prototype.maximumEdition=0,Ne.create=function(e){return new Ne(e)},Ne.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.defaults&&e.defaults.length)for(var r=0;r<e.defaults.length;++r)g.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.encode(e.defaults[r],t.uint32(10).fork(),o+1).ldelim();return null!=e.minimumEdition&&Object.hasOwnProperty.call(e,"minimumEdition")&&t.uint32(32).int32(e.minimumEdition),null!=e.maximumEdition&&Object.hasOwnProperty.call(e,"maximumEdition")&&t.uint32(40).int32(e.maximumEdition),t},Ne.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ne.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FeatureSetDefaults;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.defaults&&i.defaults.length||(i.defaults=[]),i.defaults.push(g.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.decode(e,e.uint32(),void 0,r+1));break;case 4:i.minimumEdition=e.int32();break;case 5:i.maximumEdition=e.int32();break;default:e.skipType(7&a,r)}}return i},Ne.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Ne.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.defaults&&Object.hasOwnProperty.call(e,"defaults")){if(!Array.isArray(e.defaults))return"defaults: array expected";for(var o=0;o<e.defaults.length;++o){var r=g.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify(e.defaults[o],t+1);if(r)return"defaults."+r}}if(null!=e.minimumEdition&&Object.hasOwnProperty.call(e,"minimumEdition"))switch(e.minimumEdition){default:return"minimumEdition: enum value expected";case 0:case 900:case 998:case 999:case 1e3:case 1001:case 1002:case 9999:case 1:case 2:case 99997:case 99998:case 99999:case 2147483647:}if(null!=e.maximumEdition&&Object.hasOwnProperty.call(e,"maximumEdition"))switch(e.maximumEdition){default:return"maximumEdition: enum value expected";case 0:case 900:case 998:case 999:case 1e3:case 1001:case 1002:case 9999:case 1:case 2:case 99997:case 99998:case 99999:case 2147483647:}return null},Ne.fromObject=function(e,t){if(e instanceof g.google.protobuf.FeatureSetDefaults)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.FeatureSetDefaults: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.FeatureSetDefaults;if(e.defaults){if(!Array.isArray(e.defaults))throw TypeError(".google.protobuf.FeatureSetDefaults.defaults: array expected");o.defaults=[];for(var r=0;r<e.defaults.length;++r){if(!d.isObject(e.defaults[r]))throw TypeError(".google.protobuf.FeatureSetDefaults.defaults: object expected");o.defaults[r]=g.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fromObject(e.defaults[r],t+1)}}switch(e.minimumEdition){default:"number"==typeof e.minimumEdition&&(o.minimumEdition=e.minimumEdition);break;case"EDITION_UNKNOWN":case 0:o.minimumEdition=0;break;case"EDITION_LEGACY":case 900:o.minimumEdition=900;break;case"EDITION_PROTO2":case 998:o.minimumEdition=998;break;case"EDITION_PROTO3":case 999:o.minimumEdition=999;break;case"EDITION_2023":case 1e3:o.minimumEdition=1e3;break;case"EDITION_2024":case 1001:o.minimumEdition=1001;break;case"EDITION_2026":case 1002:o.minimumEdition=1002;break;case"EDITION_UNSTABLE":case 9999:o.minimumEdition=9999;break;case"EDITION_1_TEST_ONLY":case 1:o.minimumEdition=1;break;case"EDITION_2_TEST_ONLY":case 2:o.minimumEdition=2;break;case"EDITION_99997_TEST_ONLY":case 99997:o.minimumEdition=99997;break;case"EDITION_99998_TEST_ONLY":case 99998:o.minimumEdition=99998;break;case"EDITION_99999_TEST_ONLY":case 99999:o.minimumEdition=99999;break;case"EDITION_MAX":case 2147483647:o.minimumEdition=2147483647}switch(e.maximumEdition){default:"number"==typeof e.maximumEdition&&(o.maximumEdition=e.maximumEdition);break;case"EDITION_UNKNOWN":case 0:o.maximumEdition=0;break;case"EDITION_LEGACY":case 900:o.maximumEdition=900;break;case"EDITION_PROTO2":case 998:o.maximumEdition=998;break;case"EDITION_PROTO3":case 999:o.maximumEdition=999;break;case"EDITION_2023":case 1e3:o.maximumEdition=1e3;break;case"EDITION_2024":case 1001:o.maximumEdition=1001;break;case"EDITION_2026":case 1002:o.maximumEdition=1002;break;case"EDITION_UNSTABLE":case 9999:o.maximumEdition=9999;break;case"EDITION_1_TEST_ONLY":case 1:o.maximumEdition=1;break;case"EDITION_2_TEST_ONLY":case 2:o.maximumEdition=2;break;case"EDITION_99997_TEST_ONLY":case 99997:o.maximumEdition=99997;break;case"EDITION_99998_TEST_ONLY":case 99998:o.maximumEdition=99998;break;case"EDITION_99999_TEST_ONLY":case 99999:o.maximumEdition=99999;break;case"EDITION_MAX":case 2147483647:o.maximumEdition=2147483647}return o},Ne.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.defaults=[]),t.defaults&&(r.minimumEdition=t.enums===String?"EDITION_UNKNOWN":0,r.maximumEdition=t.enums===String?"EDITION_UNKNOWN":0),e.defaults&&e.defaults.length){r.defaults=[];for(var n=0;n<e.defaults.length;++n)r.defaults[n]=g.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.toObject(e.defaults[n],t,o+1)}return null!=e.minimumEdition&&Object.hasOwnProperty.call(e,"minimumEdition")&&(r.minimumEdition=t.enums!==String||void 0===g.google.protobuf.Edition[e.minimumEdition]?e.minimumEdition:g.google.protobuf.Edition[e.minimumEdition]),null!=e.maximumEdition&&Object.hasOwnProperty.call(e,"maximumEdition")&&(r.maximumEdition=t.enums!==String||void 0===g.google.protobuf.Edition[e.maximumEdition]?e.maximumEdition:g.google.protobuf.Edition[e.maximumEdition]),r},Ne.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Ne.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FeatureSetDefaults"},Ne.FeatureSetEditionDefault=(_e.prototype.edition=0,_e.prototype.overridableFeatures=null,_e.prototype.fixedFeatures=null,_e.create=function(e){return new _e(e)},_e.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.edition&&Object.hasOwnProperty.call(e,"edition")&&t.uint32(24).int32(e.edition),null!=e.overridableFeatures&&Object.hasOwnProperty.call(e,"overridableFeatures")&&g.google.protobuf.FeatureSet.encode(e.overridableFeatures,t.uint32(34).fork(),o+1).ldelim(),null!=e.fixedFeatures&&Object.hasOwnProperty.call(e,"fixedFeatures")&&g.google.protobuf.FeatureSet.encode(e.fixedFeatures,t.uint32(42).fork(),o+1).ldelim(),t},_e.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},_e.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 3:i.edition=e.int32();break;case 4:i.overridableFeatures=g.google.protobuf.FeatureSet.decode(e,e.uint32(),void 0,r+1);break;case 5:i.fixedFeatures=g.google.protobuf.FeatureSet.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},_e.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},_e.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.edition&&Object.hasOwnProperty.call(e,"edition"))switch(e.edition){default:return"edition: enum value expected";case 0:case 900:case 998:case 999:case 1e3:case 1001:case 1002:case 9999:case 1:case 2:case 99997:case 99998:case 99999:case 2147483647:}var o;if(null!=e.overridableFeatures&&Object.hasOwnProperty.call(e,"overridableFeatures")&&(o=g.google.protobuf.FeatureSet.verify(e.overridableFeatures,t+1)))return"overridableFeatures."+o;if(null!=e.fixedFeatures&&Object.hasOwnProperty.call(e,"fixedFeatures")&&(o=g.google.protobuf.FeatureSet.verify(e.fixedFeatures,t+1)))return"fixedFeatures."+o;return null},_e.fromObject=function(e,t){if(e instanceof g.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;switch(e.edition){default:"number"==typeof e.edition&&(o.edition=e.edition);break;case"EDITION_UNKNOWN":case 0:o.edition=0;break;case"EDITION_LEGACY":case 900:o.edition=900;break;case"EDITION_PROTO2":case 998:o.edition=998;break;case"EDITION_PROTO3":case 999:o.edition=999;break;case"EDITION_2023":case 1e3:o.edition=1e3;break;case"EDITION_2024":case 1001:o.edition=1001;break;case"EDITION_2026":case 1002:o.edition=1002;break;case"EDITION_UNSTABLE":case 9999:o.edition=9999;break;case"EDITION_1_TEST_ONLY":case 1:o.edition=1;break;case"EDITION_2_TEST_ONLY":case 2:o.edition=2;break;case"EDITION_99997_TEST_ONLY":case 99997:o.edition=99997;break;case"EDITION_99998_TEST_ONLY":case 99998:o.edition=99998;break;case"EDITION_99999_TEST_ONLY":case 99999:o.edition=99999;break;case"EDITION_MAX":case 2147483647:o.edition=2147483647}if(null!=e.overridableFeatures){if(!d.isObject(e.overridableFeatures))throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.overridableFeatures: object expected");o.overridableFeatures=g.google.protobuf.FeatureSet.fromObject(e.overridableFeatures,t+1)}if(null!=e.fixedFeatures){if(!d.isObject(e.fixedFeatures))throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fixedFeatures: object expected");o.fixedFeatures=g.google.protobuf.FeatureSet.fromObject(e.fixedFeatures,t+1)}return o},_e.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.edition=t.enums===String?"EDITION_UNKNOWN":0,r.overridableFeatures=null,r.fixedFeatures=null),null!=e.edition&&Object.hasOwnProperty.call(e,"edition")&&(r.edition=t.enums!==String||void 0===g.google.protobuf.Edition[e.edition]?e.edition:g.google.protobuf.Edition[e.edition]),null!=e.overridableFeatures&&Object.hasOwnProperty.call(e,"overridableFeatures")&&(r.overridableFeatures=g.google.protobuf.FeatureSet.toObject(e.overridableFeatures,t,o+1)),null!=e.fixedFeatures&&Object.hasOwnProperty.call(e,"fixedFeatures")&&(r.fixedFeatures=g.google.protobuf.FeatureSet.toObject(e.fixedFeatures,t,o+1)),r},_e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},_e.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault"},_e),Ne),t.SourceCodeInfo=(Ce.prototype.location=d.emptyArray,Ce.create=function(e){return new Ce(e)},Ce.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.location&&e.location.length)for(var r=0;r<e.location.length;++r)g.google.protobuf.SourceCodeInfo.Location.encode(e.location[r],t.uint32(10).fork(),o+1).ldelim();return t},Ce.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ce.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.SourceCodeInfo;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?(i.location&&i.location.length||(i.location=[]),i.location.push(g.google.protobuf.SourceCodeInfo.Location.decode(e,e.uint32(),void 0,r+1))):e.skipType(7&a,r)}return i},Ce.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Ce.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.location&&Object.hasOwnProperty.call(e,"location")){if(!Array.isArray(e.location))return"location: array expected";for(var o=0;o<e.location.length;++o){var r=g.google.protobuf.SourceCodeInfo.Location.verify(e.location[o],t+1);if(r)return"location."+r}}return null},Ce.fromObject=function(e,t){if(e instanceof g.google.protobuf.SourceCodeInfo)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.SourceCodeInfo: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.SourceCodeInfo;if(e.location){if(!Array.isArray(e.location))throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected");o.location=[];for(var r=0;r<e.location.length;++r){if(!d.isObject(e.location[r]))throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected");o.location[r]=g.google.protobuf.SourceCodeInfo.Location.fromObject(e.location[r],t+1)}}return o},Ce.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.location=[]),e.location&&e.location.length){r.location=[];for(var n=0;n<e.location.length;++n)r.location[n]=g.google.protobuf.SourceCodeInfo.Location.toObject(e.location[n],t,o+1)}return r},Ce.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Ce.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.SourceCodeInfo"},Ce.Location=(Ae.prototype.path=d.emptyArray,Ae.prototype.span=d.emptyArray,Ae.prototype.leadingComments="",Ae.prototype.trailingComments="",Ae.prototype.leadingDetachedComments=d.emptyArray,Ae.create=function(e){return new Ae(e)},Ae.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.path&&e.path.length){t.uint32(10).fork();for(var r=0;r<e.path.length;++r)t.int32(e.path[r]);t.ldelim()}if(null!=e.span&&e.span.length){t.uint32(18).fork();for(r=0;r<e.span.length;++r)t.int32(e.span[r]);t.ldelim()}if(null!=e.leadingComments&&Object.hasOwnProperty.call(e,"leadingComments")&&t.uint32(26).string(e.leadingComments),null!=e.trailingComments&&Object.hasOwnProperty.call(e,"trailingComments")&&t.uint32(34).string(e.trailingComments),null!=e.leadingDetachedComments&&e.leadingDetachedComments.length)for(r=0;r<e.leadingDetachedComments.length;++r)t.uint32(50).string(e.leadingDetachedComments[r]);return t},Ae.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ae.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.SourceCodeInfo.Location;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:if(i.path&&i.path.length||(i.path=[]),2==(7&a))for(var l=e.uint32()+e.pos;e.pos<l;)i.path.push(e.int32());else i.path.push(e.int32());break;case 2:if(i.span&&i.span.length||(i.span=[]),2==(7&a))for(l=e.uint32()+e.pos;e.pos<l;)i.span.push(e.int32());else i.span.push(e.int32());break;case 3:i.leadingComments=e.string();break;case 4:i.trailingComments=e.string();break;case 6:i.leadingDetachedComments&&i.leadingDetachedComments.length||(i.leadingDetachedComments=[]),i.leadingDetachedComments.push(e.string());break;default:e.skipType(7&a,r)}}return i},Ae.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Ae.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.path&&Object.hasOwnProperty.call(e,"path")){if(!Array.isArray(e.path))return"path: array expected";for(var o=0;o<e.path.length;++o)if(!d.isInteger(e.path[o]))return"path: integer[] expected"}if(null!=e.span&&Object.hasOwnProperty.call(e,"span")){if(!Array.isArray(e.span))return"span: array expected";for(o=0;o<e.span.length;++o)if(!d.isInteger(e.span[o]))return"span: integer[] expected"}if(null!=e.leadingComments&&Object.hasOwnProperty.call(e,"leadingComments")&&!d.isString(e.leadingComments))return"leadingComments: string expected";if(null!=e.trailingComments&&Object.hasOwnProperty.call(e,"trailingComments")&&!d.isString(e.trailingComments))return"trailingComments: string expected";if(null!=e.leadingDetachedComments&&Object.hasOwnProperty.call(e,"leadingDetachedComments")){if(!Array.isArray(e.leadingDetachedComments))return"leadingDetachedComments: array expected";for(o=0;o<e.leadingDetachedComments.length;++o)if(!d.isString(e.leadingDetachedComments[o]))return"leadingDetachedComments: string[] expected"}return null},Ae.fromObject=function(e,t){if(e instanceof g.google.protobuf.SourceCodeInfo.Location)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.SourceCodeInfo.Location: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.SourceCodeInfo.Location;if(e.path){if(!Array.isArray(e.path))throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected");o.path=[];for(var r=0;r<e.path.length;++r)o.path[r]=0|e.path[r]}if(e.span){if(!Array.isArray(e.span))throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected");o.span=[];for(r=0;r<e.span.length;++r)o.span[r]=0|e.span[r]}if(null!=e.leadingComments&&(o.leadingComments=String(e.leadingComments)),null!=e.trailingComments&&(o.trailingComments=String(e.trailingComments)),e.leadingDetachedComments){if(!Array.isArray(e.leadingDetachedComments))throw TypeError(".google.protobuf.SourceCodeInfo.Location.leadingDetachedComments: array expected");o.leadingDetachedComments=[];for(r=0;r<e.leadingDetachedComments.length;++r)o.leadingDetachedComments[r]=String(e.leadingDetachedComments[r])}return o},Ae.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.path=[],r.span=[],r.leadingDetachedComments=[]),t.defaults&&(r.leadingComments="",r.trailingComments=""),e.path&&e.path.length){r.path=[];for(var n=0;n<e.path.length;++n)r.path[n]=e.path[n]}if(e.span&&e.span.length){r.span=[];for(n=0;n<e.span.length;++n)r.span[n]=e.span[n]}if(null!=e.leadingComments&&Object.hasOwnProperty.call(e,"leadingComments")&&(r.leadingComments=e.leadingComments),null!=e.trailingComments&&Object.hasOwnProperty.call(e,"trailingComments")&&(r.trailingComments=e.trailingComments),e.leadingDetachedComments&&e.leadingDetachedComments.length){r.leadingDetachedComments=[];for(n=0;n<e.leadingDetachedComments.length;++n)r.leadingDetachedComments[n]=e.leadingDetachedComments[n]}return r},Ae.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Ae.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.SourceCodeInfo.Location"},Ae),Ce),t.GeneratedCodeInfo=(Fe.prototype.annotation=d.emptyArray,Fe.create=function(e){return new Fe(e)},Fe.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.annotation&&e.annotation.length)for(var r=0;r<e.annotation.length;++r)g.google.protobuf.GeneratedCodeInfo.Annotation.encode(e.annotation[r],t.uint32(10).fork(),o+1).ldelim();return t},Fe.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Fe.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.GeneratedCodeInfo;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?(i.annotation&&i.annotation.length||(i.annotation=[]),i.annotation.push(g.google.protobuf.GeneratedCodeInfo.Annotation.decode(e,e.uint32(),void 0,r+1))):e.skipType(7&a,r)}return i},Fe.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Fe.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.annotation&&Object.hasOwnProperty.call(e,"annotation")){if(!Array.isArray(e.annotation))return"annotation: array expected";for(var o=0;o<e.annotation.length;++o){var r=g.google.protobuf.GeneratedCodeInfo.Annotation.verify(e.annotation[o],t+1);if(r)return"annotation."+r}}return null},Fe.fromObject=function(e,t){if(e instanceof g.google.protobuf.GeneratedCodeInfo)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.GeneratedCodeInfo: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.GeneratedCodeInfo;if(e.annotation){if(!Array.isArray(e.annotation))throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected");o.annotation=[];for(var r=0;r<e.annotation.length;++r){if(!d.isObject(e.annotation[r]))throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected");o.annotation[r]=g.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(e.annotation[r],t+1)}}return o},Fe.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.annotation=[]),e.annotation&&e.annotation.length){r.annotation=[];for(var n=0;n<e.annotation.length;++n)r.annotation[n]=g.google.protobuf.GeneratedCodeInfo.Annotation.toObject(e.annotation[n],t,o+1)}return r},Fe.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Fe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.GeneratedCodeInfo"},Fe.Annotation=(Be.prototype.path=d.emptyArray,Be.prototype.sourceFile="",Be.prototype.begin=0,Be.prototype.end=0,Be.prototype.semantic=0,Be.create=function(e){return new Be(e)},Be.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.path&&e.path.length){t.uint32(10).fork();for(var r=0;r<e.path.length;++r)t.int32(e.path[r]);t.ldelim()}return null!=e.sourceFile&&Object.hasOwnProperty.call(e,"sourceFile")&&t.uint32(18).string(e.sourceFile),null!=e.begin&&Object.hasOwnProperty.call(e,"begin")&&t.uint32(24).int32(e.begin),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(32).int32(e.end),null!=e.semantic&&Object.hasOwnProperty.call(e,"semantic")&&t.uint32(40).int32(e.semantic),t},Be.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Be.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.GeneratedCodeInfo.Annotation;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:if(i.path&&i.path.length||(i.path=[]),2==(7&a))for(var l=e.uint32()+e.pos;e.pos<l;)i.path.push(e.int32());else i.path.push(e.int32());break;case 2:i.sourceFile=e.string();break;case 3:i.begin=e.int32();break;case 4:i.end=e.int32();break;case 5:i.semantic=e.int32();break;default:e.skipType(7&a,r)}}return i},Be.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Be.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.path&&Object.hasOwnProperty.call(e,"path")){if(!Array.isArray(e.path))return"path: array expected";for(var o=0;o<e.path.length;++o)if(!d.isInteger(e.path[o]))return"path: integer[] expected"}if(null!=e.sourceFile&&Object.hasOwnProperty.call(e,"sourceFile")&&!d.isString(e.sourceFile))return"sourceFile: string expected";if(null!=e.begin&&Object.hasOwnProperty.call(e,"begin")&&!d.isInteger(e.begin))return"begin: integer expected";if(null!=e.end&&Object.hasOwnProperty.call(e,"end")&&!d.isInteger(e.end))return"end: integer expected";if(null!=e.semantic&&Object.hasOwnProperty.call(e,"semantic"))switch(e.semantic){default:return"semantic: enum value expected";case 0:case 1:case 2:}return null},Be.fromObject=function(e,t){if(e instanceof g.google.protobuf.GeneratedCodeInfo.Annotation)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.GeneratedCodeInfo.Annotation;if(e.path){if(!Array.isArray(e.path))throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected");o.path=[];for(var r=0;r<e.path.length;++r)o.path[r]=0|e.path[r]}switch(null!=e.sourceFile&&(o.sourceFile=String(e.sourceFile)),null!=e.begin&&(o.begin=0|e.begin),null!=e.end&&(o.end=0|e.end),e.semantic){default:"number"==typeof e.semantic&&(o.semantic=e.semantic);break;case"NONE":case 0:o.semantic=0;break;case"SET":case 1:o.semantic=1;break;case"ALIAS":case 2:o.semantic=2}return o},Be.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.path=[]),t.defaults&&(r.sourceFile="",r.begin=0,r.end=0,r.semantic=t.enums===String?"NONE":0),e.path&&e.path.length){r.path=[];for(var n=0;n<e.path.length;++n)r.path[n]=e.path[n]}return null!=e.sourceFile&&Object.hasOwnProperty.call(e,"sourceFile")&&(r.sourceFile=e.sourceFile),null!=e.begin&&Object.hasOwnProperty.call(e,"begin")&&(r.begin=e.begin),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&(r.end=e.end),null!=e.semantic&&Object.hasOwnProperty.call(e,"semantic")&&(r.semantic=t.enums!==String||void 0===g.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[e.semantic]?e.semantic:g.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[e.semantic]),r},Be.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Be.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.GeneratedCodeInfo.Annotation"},Be.Semantic=(a={},(e=Object.create(a))[a[0]="NONE"]=0,e[a[1]="SET"]=1,e[a[2]="ALIAS"]=2,e),Be),Fe),t.SymbolVisibility=(a={},(e=Object.create(a))[a[0]="VISIBILITY_UNSET"]=0,e[a[1]="VISIBILITY_LOCAL"]=1,e[a[2]="VISIBILITY_EXPORT"]=2,e),t.Duration=(qe.prototype.seconds=d.Long?d.Long.fromBits(0,0,!1):0,qe.prototype.nanos=0,qe.create=function(e){return new qe(e)},qe.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&t.uint32(8).int64(e.seconds),null!=e.nanos&&Object.hasOwnProperty.call(e,"nanos")&&t.uint32(16).int32(e.nanos),t},qe.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},qe.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.Duration;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.seconds=e.int64();break;case 2:i.nanos=e.int32();break;default:e.skipType(7&a,r)}}return i},qe.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},qe.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&!(d.isInteger(e.seconds)||e.seconds&&d.isInteger(e.seconds.low)&&d.isInteger(e.seconds.high))?"seconds: integer|Long expected":null!=e.nanos&&Object.hasOwnProperty.call(e,"nanos")&&!d.isInteger(e.nanos)?"nanos: integer expected":null},qe.fromObject=function(e,t){if(e instanceof g.google.protobuf.Duration)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.Duration: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.Duration;return null!=e.seconds&&(d.Long?t.seconds=d.Long.fromValue(e.seconds,!1):"string"==typeof e.seconds?t.seconds=parseInt(e.seconds,10):"number"==typeof e.seconds?t.seconds=e.seconds:"object"==typeof e.seconds&&(t.seconds=new d.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber())),null!=e.nanos&&(t.nanos=0|e.nanos),t},qe.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,o={};return t.defaults&&(d.Long?(r=new d.Long(0,0,!1),o.seconds=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):o.seconds=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,o.nanos=0),null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&("undefined"!=typeof BigInt&&t.longs===BigInt?o.seconds="number"==typeof e.seconds?BigInt(e.seconds):d.Long.fromBits(e.seconds.low>>>0,e.seconds.high>>>0,!1).toBigInt():"number"==typeof e.seconds?o.seconds=t.longs===String?String(e.seconds):e.seconds:o.seconds=t.longs===String?d.Long.prototype.toString.call(e.seconds):t.longs===Number?new d.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber():e.seconds),null!=e.nanos&&Object.hasOwnProperty.call(e,"nanos")&&(o.nanos=e.nanos),o},qe.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},qe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.Duration"},qe),t.DoubleValue=(Ve.prototype.value=0,Ve.create=function(e){return new Ve(e)},Ve.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(9).double(e.value),t},Ve.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ve.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.DoubleValue;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.value=e.double():e.skipType(7&a,r)}return i},Ve.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Ve.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.value&&Object.hasOwnProperty.call(e,"value")&&"number"!=typeof e.value?"value: number expected":null},Ve.fromObject=function(e,t){if(e instanceof g.google.protobuf.DoubleValue)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.DoubleValue: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.DoubleValue;return null!=e.value&&(t.value=Number(e.value)),t},Ve.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.value=0),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&(o.value=t.json&&!isFinite(e.value)?String(e.value):e.value),o},Ve.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Ve.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.DoubleValue"},Ve),t.FloatValue=(Ue.prototype.value=0,Ue.create=function(e){return new Ue(e)},Ue.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),t},Ue.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ue.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FloatValue;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.value=e.float():e.skipType(7&a,r)}return i},Ue.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Ue.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.value&&Object.hasOwnProperty.call(e,"value")&&"number"!=typeof e.value?"value: number expected":null},Ue.fromObject=function(e,t){if(e instanceof g.google.protobuf.FloatValue)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.FloatValue: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.FloatValue;return null!=e.value&&(t.value=Number(e.value)),t},Ue.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.value=0),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&(o.value=t.json&&!isFinite(e.value)?String(e.value):e.value),o},Ue.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Ue.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FloatValue"},Ue),t.Int64Value=(Me.prototype.value=d.Long?d.Long.fromBits(0,0,!1):0,Me.create=function(e){return new Me(e)},Me.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).int64(e.value),t},Me.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Me.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.Int64Value;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.value=e.int64():e.skipType(7&a,r)}return i},Me.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Me.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.value&&Object.hasOwnProperty.call(e,"value")&&!(d.isInteger(e.value)||e.value&&d.isInteger(e.value.low)&&d.isInteger(e.value.high))?"value: integer|Long expected":null},Me.fromObject=function(e,t){if(e instanceof g.google.protobuf.Int64Value)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.Int64Value: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.Int64Value;return null!=e.value&&(d.Long?t.value=d.Long.fromValue(e.value,!1):"string"==typeof e.value?t.value=parseInt(e.value,10):"number"==typeof e.value?t.value=e.value:"object"==typeof e.value&&(t.value=new d.LongBits(e.value.low>>>0,e.value.high>>>0).toNumber())),t},Me.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,o={};return t.defaults&&(d.Long?(r=new d.Long(0,0,!1),o.value=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):o.value=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&("undefined"!=typeof BigInt&&t.longs===BigInt?o.value="number"==typeof e.value?BigInt(e.value):d.Long.fromBits(e.value.low>>>0,e.value.high>>>0,!1).toBigInt():"number"==typeof e.value?o.value=t.longs===String?String(e.value):e.value:o.value=t.longs===String?d.Long.prototype.toString.call(e.value):t.longs===Number?new d.LongBits(e.value.low>>>0,e.value.high>>>0).toNumber():e.value),o},Me.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Me.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.Int64Value"},Me),t.UInt64Value=(ze.prototype.value=d.Long?d.Long.fromBits(0,0,!0):0,ze.create=function(e){return new ze(e)},ze.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).uint64(e.value),t},ze.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ze.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.UInt64Value;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.value=e.uint64():e.skipType(7&a,r)}return i},ze.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ze.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.value&&Object.hasOwnProperty.call(e,"value")&&!(d.isInteger(e.value)||e.value&&d.isInteger(e.value.low)&&d.isInteger(e.value.high))?"value: integer|Long expected":null},ze.fromObject=function(e,t){if(e instanceof g.google.protobuf.UInt64Value)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.UInt64Value: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.UInt64Value;return null!=e.value&&(d.Long?t.value=d.Long.fromValue(e.value,!0):"string"==typeof e.value?t.value=parseInt(e.value,10):"number"==typeof e.value?t.value=e.value:"object"==typeof e.value&&(t.value=new d.LongBits(e.value.low>>>0,e.value.high>>>0).toNumber(!0))),t},ze.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,o={};return t.defaults&&(d.Long?(r=new d.Long(0,0,!0),o.value=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):o.value=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&("undefined"!=typeof BigInt&&t.longs===BigInt?o.value="number"==typeof e.value?BigInt(e.value):d.Long.fromBits(e.value.low>>>0,e.value.high>>>0,!0).toBigInt():"number"==typeof e.value?o.value=t.longs===String?String(e.value):e.value:o.value=t.longs===String?d.Long.prototype.toString.call(e.value):t.longs===Number?new d.LongBits(e.value.low>>>0,e.value.high>>>0).toNumber(!0):e.value),o},ze.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ze.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.UInt64Value"},ze),t.Int32Value=(Ge.prototype.value=0,Ge.create=function(e){return new Ge(e)},Ge.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).int32(e.value),t},Ge.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ge.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.Int32Value;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.value=e.int32():e.skipType(7&a,r)}return i},Ge.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Ge.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.value&&Object.hasOwnProperty.call(e,"value")&&!d.isInteger(e.value)?"value: integer expected":null},Ge.fromObject=function(e,t){if(e instanceof g.google.protobuf.Int32Value)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.Int32Value: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.Int32Value;return null!=e.value&&(t.value=0|e.value),t},Ge.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.value=0),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&(o.value=e.value),o},Ge.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Ge.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.Int32Value"},Ge),t.UInt32Value=(Je.prototype.value=0,Je.create=function(e){return new Je(e)},Je.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).uint32(e.value),t},Je.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Je.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.UInt32Value;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.value=e.uint32():e.skipType(7&a,r)}return i},Je.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Je.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.value&&Object.hasOwnProperty.call(e,"value")&&!d.isInteger(e.value)?"value: integer expected":null},Je.fromObject=function(e,t){if(e instanceof g.google.protobuf.UInt32Value)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.UInt32Value: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.UInt32Value;return null!=e.value&&(t.value=e.value>>>0),t},Je.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.value=0),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&(o.value=e.value),o},Je.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Je.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.UInt32Value"},Je),t.BoolValue=(Ye.prototype.value=!1,Ye.create=function(e){return new Ye(e)},Ye.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).bool(e.value),t},Ye.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ye.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.BoolValue;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.value=e.bool():e.skipType(7&a,r)}return i},Ye.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Ye.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.value&&Object.hasOwnProperty.call(e,"value")&&"boolean"!=typeof e.value?"value: boolean expected":null},Ye.fromObject=function(e,t){if(e instanceof g.google.protobuf.BoolValue)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.BoolValue: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.BoolValue;return null!=e.value&&(t.value=Boolean(e.value)),t},Ye.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.value=!1),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&(o.value=e.value),o},Ye.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Ye.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.BoolValue"},Ye),t.StringValue=(We.prototype.value="",We.create=function(e){return new We(e)},We.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(10).string(e.value),t},We.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},We.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.StringValue;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.value=e.string():e.skipType(7&a,r)}return i},We.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},We.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.value&&Object.hasOwnProperty.call(e,"value")&&!d.isString(e.value)?"value: string expected":null},We.fromObject=function(e,t){if(e instanceof g.google.protobuf.StringValue)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.StringValue: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.StringValue;return null!=e.value&&(t.value=String(e.value)),t},We.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.value=""),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&(o.value=e.value),o},We.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},We.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.StringValue"},We),t.BytesValue=(He.prototype.value=d.newBuffer([]),He.create=function(e){return new He(e)},He.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(10).bytes(e.value),t},He.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},He.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.BytesValue;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.value=e.bytes():e.skipType(7&a,r)}return i},He.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},He.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.value&&Object.hasOwnProperty.call(e,"value")&&!(e.value&&"number"==typeof e.value.length||d.isString(e.value))?"value: buffer expected":null},He.fromObject=function(e,t){if(e instanceof g.google.protobuf.BytesValue)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.BytesValue: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.BytesValue;return null!=e.value&&("string"==typeof e.value?d.base64.decode(e.value,t.value=d.newBuffer(d.base64.length(e.value)),0):0<=e.value.length&&(t.value=e.value)),t},He.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(t.bytes===String?o.value="":(o.value=[],t.bytes!==Array&&(o.value=d.newBuffer(o.value)))),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&(o.value=t.bytes===String?d.base64.encode(e.value,0,e.value.length):t.bytes===Array?Array.prototype.slice.call(e.value):e.value),o},He.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},He.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.BytesValue"},He),t.Timestamp=(Ke.prototype.seconds=d.Long?d.Long.fromBits(0,0,!1):0,Ke.prototype.nanos=0,Ke.create=function(e){return new Ke(e)},Ke.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&t.uint32(8).int64(e.seconds),null!=e.nanos&&Object.hasOwnProperty.call(e,"nanos")&&t.uint32(16).int32(e.nanos),t},Ke.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ke.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.Timestamp;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.seconds=e.int64();break;case 2:i.nanos=e.int32();break;default:e.skipType(7&a,r)}}return i},Ke.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Ke.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&!(d.isInteger(e.seconds)||e.seconds&&d.isInteger(e.seconds.low)&&d.isInteger(e.seconds.high))?"seconds: integer|Long expected":null!=e.nanos&&Object.hasOwnProperty.call(e,"nanos")&&!d.isInteger(e.nanos)?"nanos: integer expected":null},Ke.fromObject=function(e,t){if(e instanceof g.google.protobuf.Timestamp)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.Timestamp: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.Timestamp;return null!=e.seconds&&(d.Long?t.seconds=d.Long.fromValue(e.seconds,!1):"string"==typeof e.seconds?t.seconds=parseInt(e.seconds,10):"number"==typeof e.seconds?t.seconds=e.seconds:"object"==typeof e.seconds&&(t.seconds=new d.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber())),null!=e.nanos&&(t.nanos=0|e.nanos),t},Ke.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,o={};return t.defaults&&(d.Long?(r=new d.Long(0,0,!1),o.seconds=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):o.seconds=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,o.nanos=0),null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&("undefined"!=typeof BigInt&&t.longs===BigInt?o.seconds="number"==typeof e.seconds?BigInt(e.seconds):d.Long.fromBits(e.seconds.low>>>0,e.seconds.high>>>0,!1).toBigInt():"number"==typeof e.seconds?o.seconds=t.longs===String?String(e.seconds):e.seconds:o.seconds=t.longs===String?d.Long.prototype.toString.call(e.seconds):t.longs===Number?new d.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber():e.seconds),null!=e.nanos&&Object.hasOwnProperty.call(e,"nanos")&&(o.nanos=e.nanos),o},Ke.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Ke.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.Timestamp"},Ke),t.Any=(Xe.prototype.type_url="",Xe.prototype.value=d.newBuffer([]),Xe.create=function(e){return new Xe(e)},Xe.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.type_url&&Object.hasOwnProperty.call(e,"type_url")&&t.uint32(10).string(e.type_url),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(18).bytes(e.value),t},Xe.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Xe.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.Any;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.type_url=e.string();break;case 2:i.value=e.bytes();break;default:e.skipType(7&a,r)}}return i},Xe.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Xe.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.type_url&&Object.hasOwnProperty.call(e,"type_url")&&!d.isString(e.type_url)?"type_url: string expected":null!=e.value&&Object.hasOwnProperty.call(e,"value")&&!(e.value&&"number"==typeof e.value.length||d.isString(e.value))?"value: buffer expected":null},Xe.fromObject=function(e,t){if(e instanceof g.google.protobuf.Any)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.Any: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.protobuf.Any;return null!=e.type_url&&(t.type_url=String(e.type_url)),null!=e.value&&("string"==typeof e.value?d.base64.decode(e.value,t.value=d.newBuffer(d.base64.length(e.value)),0):0<=e.value.length&&(t.value=e.value)),t},Xe.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.type_url="",t.bytes===String?o.value="":(o.value=[],t.bytes!==Array&&(o.value=d.newBuffer(o.value)))),null!=e.type_url&&Object.hasOwnProperty.call(e,"type_url")&&(o.type_url=e.type_url),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&(o.value=t.bytes===String?d.base64.encode(e.value,0,e.value.length):t.bytes===Array?Array.prototype.slice.call(e.value):e.value),o},Xe.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Xe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.Any"},Xe),t),A.api=((i={}).Http=(Ze.prototype.rules=d.emptyArray,Ze.prototype.fullyDecodeReservedExpansion=!1,Ze.create=function(e){return new Ze(e)},Ze.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.rules&&e.rules.length)for(var r=0;r<e.rules.length;++r)g.google.api.HttpRule.encode(e.rules[r],t.uint32(10).fork(),o+1).ldelim();return null!=e.fullyDecodeReservedExpansion&&Object.hasOwnProperty.call(e,"fullyDecodeReservedExpansion")&&t.uint32(16).bool(e.fullyDecodeReservedExpansion),t},Ze.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ze.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.Http;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.rules&&i.rules.length||(i.rules=[]),i.rules.push(g.google.api.HttpRule.decode(e,e.uint32(),void 0,r+1));break;case 2:i.fullyDecodeReservedExpansion=e.bool();break;default:e.skipType(7&a,r)}}return i},Ze.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Ze.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.rules&&Object.hasOwnProperty.call(e,"rules")){if(!Array.isArray(e.rules))return"rules: array expected";for(var o=0;o<e.rules.length;++o){var r=g.google.api.HttpRule.verify(e.rules[o],t+1);if(r)return"rules."+r}}return null!=e.fullyDecodeReservedExpansion&&Object.hasOwnProperty.call(e,"fullyDecodeReservedExpansion")&&"boolean"!=typeof e.fullyDecodeReservedExpansion?"fullyDecodeReservedExpansion: boolean expected":null},Ze.fromObject=function(e,t){if(e instanceof g.google.api.Http)return e;if(!d.isObject(e))throw TypeError(".google.api.Http: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.Http;if(e.rules){if(!Array.isArray(e.rules))throw TypeError(".google.api.Http.rules: array expected");o.rules=[];for(var r=0;r<e.rules.length;++r){if(!d.isObject(e.rules[r]))throw TypeError(".google.api.Http.rules: object expected");o.rules[r]=g.google.api.HttpRule.fromObject(e.rules[r],t+1)}}return null!=e.fullyDecodeReservedExpansion&&(o.fullyDecodeReservedExpansion=Boolean(e.fullyDecodeReservedExpansion)),o},Ze.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.rules=[]),t.defaults&&(r.fullyDecodeReservedExpansion=!1),e.rules&&e.rules.length){r.rules=[];for(var n=0;n<e.rules.length;++n)r.rules[n]=g.google.api.HttpRule.toObject(e.rules[n],t,o+1)}return null!=e.fullyDecodeReservedExpansion&&Object.hasOwnProperty.call(e,"fullyDecodeReservedExpansion")&&(r.fullyDecodeReservedExpansion=e.fullyDecodeReservedExpansion),r},Ze.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Ze.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.Http"},Ze),i.HttpRule=(L.prototype.selector="",L.prototype.get=null,L.prototype.put=null,L.prototype.post=null,L.prototype.delete=null,L.prototype.patch=null,L.prototype.custom=null,L.prototype.body="",L.prototype.responseBody="",L.prototype.additionalBindings=d.emptyArray,Object.defineProperty(L.prototype,"pattern",{get:d.oneOfGetter(o=["get","put","post","delete","patch","custom"]),set:d.oneOfSetter(o)}),L.create=function(e){return new L(e)},L.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.selector&&Object.hasOwnProperty.call(e,"selector")&&t.uint32(10).string(e.selector),null!=e.get&&Object.hasOwnProperty.call(e,"get")&&t.uint32(18).string(e.get),null!=e.put&&Object.hasOwnProperty.call(e,"put")&&t.uint32(26).string(e.put),null!=e.post&&Object.hasOwnProperty.call(e,"post")&&t.uint32(34).string(e.post),null!=e.delete&&Object.hasOwnProperty.call(e,"delete")&&t.uint32(42).string(e.delete),null!=e.patch&&Object.hasOwnProperty.call(e,"patch")&&t.uint32(50).string(e.patch),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&t.uint32(58).string(e.body),null!=e.custom&&Object.hasOwnProperty.call(e,"custom")&&g.google.api.CustomHttpPattern.encode(e.custom,t.uint32(66).fork(),o+1).ldelim(),null!=e.additionalBindings&&e.additionalBindings.length)for(var r=0;r<e.additionalBindings.length;++r)g.google.api.HttpRule.encode(e.additionalBindings[r],t.uint32(90).fork(),o+1).ldelim();return null!=e.responseBody&&Object.hasOwnProperty.call(e,"responseBody")&&t.uint32(98).string(e.responseBody),t},L.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},L.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.HttpRule;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.selector=e.string();break;case 2:i.get=e.string();break;case 3:i.put=e.string();break;case 4:i.post=e.string();break;case 5:i.delete=e.string();break;case 6:i.patch=e.string();break;case 8:i.custom=g.google.api.CustomHttpPattern.decode(e,e.uint32(),void 0,r+1);break;case 7:i.body=e.string();break;case 12:i.responseBody=e.string();break;case 11:i.additionalBindings&&i.additionalBindings.length||(i.additionalBindings=[]),i.additionalBindings.push(g.google.api.HttpRule.decode(e,e.uint32(),void 0,r+1));break;default:e.skipType(7&a,r)}}return i},L.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},L.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";var o={};if(null!=e.selector&&Object.hasOwnProperty.call(e,"selector")&&!d.isString(e.selector))return"selector: string expected";if(null!=e.get&&Object.hasOwnProperty.call(e,"get")&&(o.pattern=1,!d.isString(e.get)))return"get: string expected";if(null!=e.put&&Object.hasOwnProperty.call(e,"put")){if(1===o.pattern)return"pattern: multiple values";if(o.pattern=1,!d.isString(e.put))return"put: string expected"}if(null!=e.post&&Object.hasOwnProperty.call(e,"post")){if(1===o.pattern)return"pattern: multiple values";if(o.pattern=1,!d.isString(e.post))return"post: string expected"}if(null!=e.delete&&Object.hasOwnProperty.call(e,"delete")){if(1===o.pattern)return"pattern: multiple values";if(o.pattern=1,!d.isString(e.delete))return"delete: string expected"}if(null!=e.patch&&Object.hasOwnProperty.call(e,"patch")){if(1===o.pattern)return"pattern: multiple values";if(o.pattern=1,!d.isString(e.patch))return"patch: string expected"}if(null!=e.custom&&Object.hasOwnProperty.call(e,"custom")){if(1===o.pattern)return"pattern: multiple values";if(r=g.google.api.CustomHttpPattern.verify(e.custom,t+(o.pattern=1)))return"custom."+r}if(null!=e.body&&Object.hasOwnProperty.call(e,"body")&&!d.isString(e.body))return"body: string expected";if(null!=e.responseBody&&Object.hasOwnProperty.call(e,"responseBody")&&!d.isString(e.responseBody))return"responseBody: string expected";if(null!=e.additionalBindings&&Object.hasOwnProperty.call(e,"additionalBindings")){if(!Array.isArray(e.additionalBindings))return"additionalBindings: array expected";for(var r,n=0;n<e.additionalBindings.length;++n)if(r=g.google.api.HttpRule.verify(e.additionalBindings[n],t+1))return"additionalBindings."+r}return null},L.fromObject=function(e,t){if(e instanceof g.google.api.HttpRule)return e;if(!d.isObject(e))throw TypeError(".google.api.HttpRule: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.HttpRule;if(null!=e.selector&&(o.selector=String(e.selector)),null!=e.get&&(o.get=String(e.get)),null!=e.put&&(o.put=String(e.put)),null!=e.post&&(o.post=String(e.post)),null!=e.delete&&(o.delete=String(e.delete)),null!=e.patch&&(o.patch=String(e.patch)),null!=e.custom){if(!d.isObject(e.custom))throw TypeError(".google.api.HttpRule.custom: object expected");o.custom=g.google.api.CustomHttpPattern.fromObject(e.custom,t+1)}if(null!=e.body&&(o.body=String(e.body)),null!=e.responseBody&&(o.responseBody=String(e.responseBody)),e.additionalBindings){if(!Array.isArray(e.additionalBindings))throw TypeError(".google.api.HttpRule.additionalBindings: array expected");o.additionalBindings=[];for(var r=0;r<e.additionalBindings.length;++r){if(!d.isObject(e.additionalBindings[r]))throw TypeError(".google.api.HttpRule.additionalBindings: object expected");o.additionalBindings[r]=g.google.api.HttpRule.fromObject(e.additionalBindings[r],t+1)}}return o},L.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.additionalBindings=[]),t.defaults&&(r.selector="",r.body="",r.responseBody=""),null!=e.selector&&Object.hasOwnProperty.call(e,"selector")&&(r.selector=e.selector),null!=e.get&&Object.hasOwnProperty.call(e,"get")&&(r.get=e.get,t.oneofs)&&(r.pattern="get"),null!=e.put&&Object.hasOwnProperty.call(e,"put")&&(r.put=e.put,t.oneofs)&&(r.pattern="put"),null!=e.post&&Object.hasOwnProperty.call(e,"post")&&(r.post=e.post,t.oneofs)&&(r.pattern="post"),null!=e.delete&&Object.hasOwnProperty.call(e,"delete")&&(r.delete=e.delete,t.oneofs)&&(r.pattern="delete"),null!=e.patch&&Object.hasOwnProperty.call(e,"patch")&&(r.patch=e.patch,t.oneofs)&&(r.pattern="patch"),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&(r.body=e.body),null!=e.custom&&Object.hasOwnProperty.call(e,"custom")&&(r.custom=g.google.api.CustomHttpPattern.toObject(e.custom,t,o+1),t.oneofs)&&(r.pattern="custom"),e.additionalBindings&&e.additionalBindings.length){r.additionalBindings=[];for(var n=0;n<e.additionalBindings.length;++n)r.additionalBindings[n]=g.google.api.HttpRule.toObject(e.additionalBindings[n],t,o+1)}return null!=e.responseBody&&Object.hasOwnProperty.call(e,"responseBody")&&(r.responseBody=e.responseBody),r},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.api.HttpRule"},L),i.CustomHttpPattern=(Qe.prototype.kind="",Qe.prototype.path="",Qe.create=function(e){return new Qe(e)},Qe.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.kind&&Object.hasOwnProperty.call(e,"kind")&&t.uint32(10).string(e.kind),null!=e.path&&Object.hasOwnProperty.call(e,"path")&&t.uint32(18).string(e.path),t},Qe.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Qe.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.CustomHttpPattern;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.kind=e.string();break;case 2:i.path=e.string();break;default:e.skipType(7&a,r)}}return i},Qe.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Qe.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.kind&&Object.hasOwnProperty.call(e,"kind")&&!d.isString(e.kind)?"kind: string expected":null!=e.path&&Object.hasOwnProperty.call(e,"path")&&!d.isString(e.path)?"path: string expected":null},Qe.fromObject=function(e,t){if(e instanceof g.google.api.CustomHttpPattern)return e;if(!d.isObject(e))throw TypeError(".google.api.CustomHttpPattern: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.api.CustomHttpPattern;return null!=e.kind&&(t.kind=String(e.kind)),null!=e.path&&(t.path=String(e.path)),t},Qe.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.kind="",o.path=""),null!=e.kind&&Object.hasOwnProperty.call(e,"kind")&&(o.kind=e.kind),null!=e.path&&Object.hasOwnProperty.call(e,"path")&&(o.path=e.path),o},Qe.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},Qe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.CustomHttpPattern"},Qe),i.CommonLanguageSettings=($e.prototype.referenceDocsUri="",$e.prototype.destinations=d.emptyArray,$e.prototype.selectiveGapicGeneration=null,$e.create=function(e){return new $e(e)},$e.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.referenceDocsUri&&Object.hasOwnProperty.call(e,"referenceDocsUri")&&t.uint32(10).string(e.referenceDocsUri),null!=e.destinations&&e.destinations.length){t.uint32(18).fork();for(var r=0;r<e.destinations.length;++r)t.int32(e.destinations[r]);t.ldelim()}return null!=e.selectiveGapicGeneration&&Object.hasOwnProperty.call(e,"selectiveGapicGeneration")&&g.google.api.SelectiveGapicGeneration.encode(e.selectiveGapicGeneration,t.uint32(26).fork(),o+1).ldelim(),t},$e.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},$e.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.CommonLanguageSettings;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.referenceDocsUri=e.string();break;case 2:if(i.destinations&&i.destinations.length||(i.destinations=[]),2==(7&a))for(var l=e.uint32()+e.pos;e.pos<l;)i.destinations.push(e.int32());else i.destinations.push(e.int32());break;case 3:i.selectiveGapicGeneration=g.google.api.SelectiveGapicGeneration.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},$e.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},$e.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.referenceDocsUri&&Object.hasOwnProperty.call(e,"referenceDocsUri")&&!d.isString(e.referenceDocsUri))return"referenceDocsUri: string expected";if(null!=e.destinations&&Object.hasOwnProperty.call(e,"destinations")){if(!Array.isArray(e.destinations))return"destinations: array expected";for(var o=0;o<e.destinations.length;++o)switch(e.destinations[o]){default:return"destinations: enum value[] expected";case 0:case 10:case 20:}}if(null!=e.selectiveGapicGeneration&&Object.hasOwnProperty.call(e,"selectiveGapicGeneration")){t=g.google.api.SelectiveGapicGeneration.verify(e.selectiveGapicGeneration,t+1);if(t)return"selectiveGapicGeneration."+t}return null},$e.fromObject=function(e,t){if(e instanceof g.google.api.CommonLanguageSettings)return e;if(!d.isObject(e))throw TypeError(".google.api.CommonLanguageSettings: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.CommonLanguageSettings;if(null!=e.referenceDocsUri&&(o.referenceDocsUri=String(e.referenceDocsUri)),e.destinations){if(!Array.isArray(e.destinations))throw TypeError(".google.api.CommonLanguageSettings.destinations: array expected");o.destinations=[];for(var r=0;r<e.destinations.length;++r)switch(e.destinations[r]){default:if("number"==typeof e.destinations[r]){o.destinations[r]=e.destinations[r];break}case"CLIENT_LIBRARY_DESTINATION_UNSPECIFIED":case 0:o.destinations[r]=0;break;case"GITHUB":case 10:o.destinations[r]=10;break;case"PACKAGE_MANAGER":case 20:o.destinations[r]=20}}if(null!=e.selectiveGapicGeneration){if(!d.isObject(e.selectiveGapicGeneration))throw TypeError(".google.api.CommonLanguageSettings.selectiveGapicGeneration: object expected");o.selectiveGapicGeneration=g.google.api.SelectiveGapicGeneration.fromObject(e.selectiveGapicGeneration,t+1)}return o},$e.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.destinations=[]),t.defaults&&(r.referenceDocsUri="",r.selectiveGapicGeneration=null),null!=e.referenceDocsUri&&Object.hasOwnProperty.call(e,"referenceDocsUri")&&(r.referenceDocsUri=e.referenceDocsUri),e.destinations&&e.destinations.length){r.destinations=[];for(var n=0;n<e.destinations.length;++n)r.destinations[n]=t.enums!==String||void 0===g.google.api.ClientLibraryDestination[e.destinations[n]]?e.destinations[n]:g.google.api.ClientLibraryDestination[e.destinations[n]]}return null!=e.selectiveGapicGeneration&&Object.hasOwnProperty.call(e,"selectiveGapicGeneration")&&(r.selectiveGapicGeneration=g.google.api.SelectiveGapicGeneration.toObject(e.selectiveGapicGeneration,t,o+1)),r},$e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},$e.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.CommonLanguageSettings"},$e),i.ClientLibrarySettings=(D.prototype.version="",D.prototype.launchStage=0,D.prototype.restNumericEnums=!1,D.prototype.javaSettings=null,D.prototype.cppSettings=null,D.prototype.phpSettings=null,D.prototype.pythonSettings=null,D.prototype.nodeSettings=null,D.prototype.dotnetSettings=null,D.prototype.rubySettings=null,D.prototype.goSettings=null,D.create=function(e){return new D(e)},D.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.version&&Object.hasOwnProperty.call(e,"version")&&t.uint32(10).string(e.version),null!=e.launchStage&&Object.hasOwnProperty.call(e,"launchStage")&&t.uint32(16).int32(e.launchStage),null!=e.restNumericEnums&&Object.hasOwnProperty.call(e,"restNumericEnums")&&t.uint32(24).bool(e.restNumericEnums),null!=e.javaSettings&&Object.hasOwnProperty.call(e,"javaSettings")&&g.google.api.JavaSettings.encode(e.javaSettings,t.uint32(170).fork(),o+1).ldelim(),null!=e.cppSettings&&Object.hasOwnProperty.call(e,"cppSettings")&&g.google.api.CppSettings.encode(e.cppSettings,t.uint32(178).fork(),o+1).ldelim(),null!=e.phpSettings&&Object.hasOwnProperty.call(e,"phpSettings")&&g.google.api.PhpSettings.encode(e.phpSettings,t.uint32(186).fork(),o+1).ldelim(),null!=e.pythonSettings&&Object.hasOwnProperty.call(e,"pythonSettings")&&g.google.api.PythonSettings.encode(e.pythonSettings,t.uint32(194).fork(),o+1).ldelim(),null!=e.nodeSettings&&Object.hasOwnProperty.call(e,"nodeSettings")&&g.google.api.NodeSettings.encode(e.nodeSettings,t.uint32(202).fork(),o+1).ldelim(),null!=e.dotnetSettings&&Object.hasOwnProperty.call(e,"dotnetSettings")&&g.google.api.DotnetSettings.encode(e.dotnetSettings,t.uint32(210).fork(),o+1).ldelim(),null!=e.rubySettings&&Object.hasOwnProperty.call(e,"rubySettings")&&g.google.api.RubySettings.encode(e.rubySettings,t.uint32(218).fork(),o+1).ldelim(),null!=e.goSettings&&Object.hasOwnProperty.call(e,"goSettings")&&g.google.api.GoSettings.encode(e.goSettings,t.uint32(226).fork(),o+1).ldelim(),t},D.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},D.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.ClientLibrarySettings;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.version=e.string();break;case 2:i.launchStage=e.int32();break;case 3:i.restNumericEnums=e.bool();break;case 21:i.javaSettings=g.google.api.JavaSettings.decode(e,e.uint32(),void 0,r+1);break;case 22:i.cppSettings=g.google.api.CppSettings.decode(e,e.uint32(),void 0,r+1);break;case 23:i.phpSettings=g.google.api.PhpSettings.decode(e,e.uint32(),void 0,r+1);break;case 24:i.pythonSettings=g.google.api.PythonSettings.decode(e,e.uint32(),void 0,r+1);break;case 25:i.nodeSettings=g.google.api.NodeSettings.decode(e,e.uint32(),void 0,r+1);break;case 26:i.dotnetSettings=g.google.api.DotnetSettings.decode(e,e.uint32(),void 0,r+1);break;case 27:i.rubySettings=g.google.api.RubySettings.decode(e,e.uint32(),void 0,r+1);break;case 28:i.goSettings=g.google.api.GoSettings.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},D.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},D.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.version&&Object.hasOwnProperty.call(e,"version")&&!d.isString(e.version))return"version: string expected";if(null!=e.launchStage&&Object.hasOwnProperty.call(e,"launchStage"))switch(e.launchStage){default:return"launchStage: enum value expected";case 0:case 6:case 7:case 1:case 2:case 3:case 4:case 5:}if(null!=e.restNumericEnums&&Object.hasOwnProperty.call(e,"restNumericEnums")&&"boolean"!=typeof e.restNumericEnums)return"restNumericEnums: boolean expected";var o;if(null!=e.javaSettings&&Object.hasOwnProperty.call(e,"javaSettings")&&(o=g.google.api.JavaSettings.verify(e.javaSettings,t+1)))return"javaSettings."+o;if(null!=e.cppSettings&&Object.hasOwnProperty.call(e,"cppSettings")&&(o=g.google.api.CppSettings.verify(e.cppSettings,t+1)))return"cppSettings."+o;if(null!=e.phpSettings&&Object.hasOwnProperty.call(e,"phpSettings")&&(o=g.google.api.PhpSettings.verify(e.phpSettings,t+1)))return"phpSettings."+o;if(null!=e.pythonSettings&&Object.hasOwnProperty.call(e,"pythonSettings")&&(o=g.google.api.PythonSettings.verify(e.pythonSettings,t+1)))return"pythonSettings."+o;if(null!=e.nodeSettings&&Object.hasOwnProperty.call(e,"nodeSettings")&&(o=g.google.api.NodeSettings.verify(e.nodeSettings,t+1)))return"nodeSettings."+o;if(null!=e.dotnetSettings&&Object.hasOwnProperty.call(e,"dotnetSettings")&&(o=g.google.api.DotnetSettings.verify(e.dotnetSettings,t+1)))return"dotnetSettings."+o;if(null!=e.rubySettings&&Object.hasOwnProperty.call(e,"rubySettings")&&(o=g.google.api.RubySettings.verify(e.rubySettings,t+1)))return"rubySettings."+o;if(null!=e.goSettings&&Object.hasOwnProperty.call(e,"goSettings")&&(o=g.google.api.GoSettings.verify(e.goSettings,t+1)))return"goSettings."+o;return null},D.fromObject=function(e,t){if(e instanceof g.google.api.ClientLibrarySettings)return e;if(!d.isObject(e))throw TypeError(".google.api.ClientLibrarySettings: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.ClientLibrarySettings;switch(null!=e.version&&(o.version=String(e.version)),e.launchStage){default:"number"==typeof e.launchStage&&(o.launchStage=e.launchStage);break;case"LAUNCH_STAGE_UNSPECIFIED":case 0:o.launchStage=0;break;case"UNIMPLEMENTED":case 6:o.launchStage=6;break;case"PRELAUNCH":case 7:o.launchStage=7;break;case"EARLY_ACCESS":case 1:o.launchStage=1;break;case"ALPHA":case 2:o.launchStage=2;break;case"BETA":case 3:o.launchStage=3;break;case"GA":case 4:o.launchStage=4;break;case"DEPRECATED":case 5:o.launchStage=5}if(null!=e.restNumericEnums&&(o.restNumericEnums=Boolean(e.restNumericEnums)),null!=e.javaSettings){if(!d.isObject(e.javaSettings))throw TypeError(".google.api.ClientLibrarySettings.javaSettings: object expected");o.javaSettings=g.google.api.JavaSettings.fromObject(e.javaSettings,t+1)}if(null!=e.cppSettings){if(!d.isObject(e.cppSettings))throw TypeError(".google.api.ClientLibrarySettings.cppSettings: object expected");o.cppSettings=g.google.api.CppSettings.fromObject(e.cppSettings,t+1)}if(null!=e.phpSettings){if(!d.isObject(e.phpSettings))throw TypeError(".google.api.ClientLibrarySettings.phpSettings: object expected");o.phpSettings=g.google.api.PhpSettings.fromObject(e.phpSettings,t+1)}if(null!=e.pythonSettings){if(!d.isObject(e.pythonSettings))throw TypeError(".google.api.ClientLibrarySettings.pythonSettings: object expected");o.pythonSettings=g.google.api.PythonSettings.fromObject(e.pythonSettings,t+1)}if(null!=e.nodeSettings){if(!d.isObject(e.nodeSettings))throw TypeError(".google.api.ClientLibrarySettings.nodeSettings: object expected");o.nodeSettings=g.google.api.NodeSettings.fromObject(e.nodeSettings,t+1)}if(null!=e.dotnetSettings){if(!d.isObject(e.dotnetSettings))throw TypeError(".google.api.ClientLibrarySettings.dotnetSettings: object expected");o.dotnetSettings=g.google.api.DotnetSettings.fromObject(e.dotnetSettings,t+1)}if(null!=e.rubySettings){if(!d.isObject(e.rubySettings))throw TypeError(".google.api.ClientLibrarySettings.rubySettings: object expected");o.rubySettings=g.google.api.RubySettings.fromObject(e.rubySettings,t+1)}if(null!=e.goSettings){if(!d.isObject(e.goSettings))throw TypeError(".google.api.ClientLibrarySettings.goSettings: object expected");o.goSettings=g.google.api.GoSettings.fromObject(e.goSettings,t+1)}return o},D.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.version="",r.launchStage=t.enums===String?"LAUNCH_STAGE_UNSPECIFIED":0,r.restNumericEnums=!1,r.javaSettings=null,r.cppSettings=null,r.phpSettings=null,r.pythonSettings=null,r.nodeSettings=null,r.dotnetSettings=null,r.rubySettings=null,r.goSettings=null),null!=e.version&&Object.hasOwnProperty.call(e,"version")&&(r.version=e.version),null!=e.launchStage&&Object.hasOwnProperty.call(e,"launchStage")&&(r.launchStage=t.enums!==String||void 0===g.google.api.LaunchStage[e.launchStage]?e.launchStage:g.google.api.LaunchStage[e.launchStage]),null!=e.restNumericEnums&&Object.hasOwnProperty.call(e,"restNumericEnums")&&(r.restNumericEnums=e.restNumericEnums),null!=e.javaSettings&&Object.hasOwnProperty.call(e,"javaSettings")&&(r.javaSettings=g.google.api.JavaSettings.toObject(e.javaSettings,t,o+1)),null!=e.cppSettings&&Object.hasOwnProperty.call(e,"cppSettings")&&(r.cppSettings=g.google.api.CppSettings.toObject(e.cppSettings,t,o+1)),null!=e.phpSettings&&Object.hasOwnProperty.call(e,"phpSettings")&&(r.phpSettings=g.google.api.PhpSettings.toObject(e.phpSettings,t,o+1)),null!=e.pythonSettings&&Object.hasOwnProperty.call(e,"pythonSettings")&&(r.pythonSettings=g.google.api.PythonSettings.toObject(e.pythonSettings,t,o+1)),null!=e.nodeSettings&&Object.hasOwnProperty.call(e,"nodeSettings")&&(r.nodeSettings=g.google.api.NodeSettings.toObject(e.nodeSettings,t,o+1)),null!=e.dotnetSettings&&Object.hasOwnProperty.call(e,"dotnetSettings")&&(r.dotnetSettings=g.google.api.DotnetSettings.toObject(e.dotnetSettings,t,o+1)),null!=e.rubySettings&&Object.hasOwnProperty.call(e,"rubySettings")&&(r.rubySettings=g.google.api.RubySettings.toObject(e.rubySettings,t,o+1)),null!=e.goSettings&&Object.hasOwnProperty.call(e,"goSettings")&&(r.goSettings=g.google.api.GoSettings.toObject(e.goSettings,t,o+1)),r},D.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},D.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.ClientLibrarySettings"},D),i.Publishing=(N.prototype.methodSettings=d.emptyArray,N.prototype.newIssueUri="",N.prototype.documentationUri="",N.prototype.apiShortName="",N.prototype.githubLabel="",N.prototype.codeownerGithubTeams=d.emptyArray,N.prototype.docTagPrefix="",N.prototype.organization=0,N.prototype.librarySettings=d.emptyArray,N.prototype.protoReferenceDocumentationUri="",N.prototype.restReferenceDocumentationUri="",N.create=function(e){return new N(e)},N.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.methodSettings&&e.methodSettings.length)for(var r=0;r<e.methodSettings.length;++r)g.google.api.MethodSettings.encode(e.methodSettings[r],t.uint32(18).fork(),o+1).ldelim();if(null!=e.newIssueUri&&Object.hasOwnProperty.call(e,"newIssueUri")&&t.uint32(810).string(e.newIssueUri),null!=e.documentationUri&&Object.hasOwnProperty.call(e,"documentationUri")&&t.uint32(818).string(e.documentationUri),null!=e.apiShortName&&Object.hasOwnProperty.call(e,"apiShortName")&&t.uint32(826).string(e.apiShortName),null!=e.githubLabel&&Object.hasOwnProperty.call(e,"githubLabel")&&t.uint32(834).string(e.githubLabel),null!=e.codeownerGithubTeams&&e.codeownerGithubTeams.length)for(r=0;r<e.codeownerGithubTeams.length;++r)t.uint32(842).string(e.codeownerGithubTeams[r]);if(null!=e.docTagPrefix&&Object.hasOwnProperty.call(e,"docTagPrefix")&&t.uint32(850).string(e.docTagPrefix),null!=e.organization&&Object.hasOwnProperty.call(e,"organization")&&t.uint32(856).int32(e.organization),null!=e.librarySettings&&e.librarySettings.length)for(r=0;r<e.librarySettings.length;++r)g.google.api.ClientLibrarySettings.encode(e.librarySettings[r],t.uint32(874).fork(),o+1).ldelim();return null!=e.protoReferenceDocumentationUri&&Object.hasOwnProperty.call(e,"protoReferenceDocumentationUri")&&t.uint32(882).string(e.protoReferenceDocumentationUri),null!=e.restReferenceDocumentationUri&&Object.hasOwnProperty.call(e,"restReferenceDocumentationUri")&&t.uint32(890).string(e.restReferenceDocumentationUri),t},N.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},N.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.Publishing;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 2:i.methodSettings&&i.methodSettings.length||(i.methodSettings=[]),i.methodSettings.push(g.google.api.MethodSettings.decode(e,e.uint32(),void 0,r+1));break;case 101:i.newIssueUri=e.string();break;case 102:i.documentationUri=e.string();break;case 103:i.apiShortName=e.string();break;case 104:i.githubLabel=e.string();break;case 105:i.codeownerGithubTeams&&i.codeownerGithubTeams.length||(i.codeownerGithubTeams=[]),i.codeownerGithubTeams.push(e.string());break;case 106:i.docTagPrefix=e.string();break;case 107:i.organization=e.int32();break;case 109:i.librarySettings&&i.librarySettings.length||(i.librarySettings=[]),i.librarySettings.push(g.google.api.ClientLibrarySettings.decode(e,e.uint32(),void 0,r+1));break;case 110:i.protoReferenceDocumentationUri=e.string();break;case 111:i.restReferenceDocumentationUri=e.string();break;default:e.skipType(7&a,r)}}return i},N.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},N.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.methodSettings&&Object.hasOwnProperty.call(e,"methodSettings")){if(!Array.isArray(e.methodSettings))return"methodSettings: array expected";for(var o=0;o<e.methodSettings.length;++o)if(r=g.google.api.MethodSettings.verify(e.methodSettings[o],t+1))return"methodSettings."+r}if(null!=e.newIssueUri&&Object.hasOwnProperty.call(e,"newIssueUri")&&!d.isString(e.newIssueUri))return"newIssueUri: string expected";if(null!=e.documentationUri&&Object.hasOwnProperty.call(e,"documentationUri")&&!d.isString(e.documentationUri))return"documentationUri: string expected";if(null!=e.apiShortName&&Object.hasOwnProperty.call(e,"apiShortName")&&!d.isString(e.apiShortName))return"apiShortName: string expected";if(null!=e.githubLabel&&Object.hasOwnProperty.call(e,"githubLabel")&&!d.isString(e.githubLabel))return"githubLabel: string expected";if(null!=e.codeownerGithubTeams&&Object.hasOwnProperty.call(e,"codeownerGithubTeams")){if(!Array.isArray(e.codeownerGithubTeams))return"codeownerGithubTeams: array expected";for(o=0;o<e.codeownerGithubTeams.length;++o)if(!d.isString(e.codeownerGithubTeams[o]))return"codeownerGithubTeams: string[] expected"}if(null!=e.docTagPrefix&&Object.hasOwnProperty.call(e,"docTagPrefix")&&!d.isString(e.docTagPrefix))return"docTagPrefix: string expected";if(null!=e.organization&&Object.hasOwnProperty.call(e,"organization"))switch(e.organization){default:return"organization: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:}if(null!=e.librarySettings&&Object.hasOwnProperty.call(e,"librarySettings")){if(!Array.isArray(e.librarySettings))return"librarySettings: array expected";for(var r,o=0;o<e.librarySettings.length;++o)if(r=g.google.api.ClientLibrarySettings.verify(e.librarySettings[o],t+1))return"librarySettings."+r}return null!=e.protoReferenceDocumentationUri&&Object.hasOwnProperty.call(e,"protoReferenceDocumentationUri")&&!d.isString(e.protoReferenceDocumentationUri)?"protoReferenceDocumentationUri: string expected":null!=e.restReferenceDocumentationUri&&Object.hasOwnProperty.call(e,"restReferenceDocumentationUri")&&!d.isString(e.restReferenceDocumentationUri)?"restReferenceDocumentationUri: string expected":null},N.fromObject=function(e,t){if(e instanceof g.google.api.Publishing)return e;if(!d.isObject(e))throw TypeError(".google.api.Publishing: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.Publishing;if(e.methodSettings){if(!Array.isArray(e.methodSettings))throw TypeError(".google.api.Publishing.methodSettings: array expected");o.methodSettings=[];for(var r=0;r<e.methodSettings.length;++r){if(!d.isObject(e.methodSettings[r]))throw TypeError(".google.api.Publishing.methodSettings: object expected");o.methodSettings[r]=g.google.api.MethodSettings.fromObject(e.methodSettings[r],t+1)}}if(null!=e.newIssueUri&&(o.newIssueUri=String(e.newIssueUri)),null!=e.documentationUri&&(o.documentationUri=String(e.documentationUri)),null!=e.apiShortName&&(o.apiShortName=String(e.apiShortName)),null!=e.githubLabel&&(o.githubLabel=String(e.githubLabel)),e.codeownerGithubTeams){if(!Array.isArray(e.codeownerGithubTeams))throw TypeError(".google.api.Publishing.codeownerGithubTeams: array expected");o.codeownerGithubTeams=[];for(r=0;r<e.codeownerGithubTeams.length;++r)o.codeownerGithubTeams[r]=String(e.codeownerGithubTeams[r])}switch(null!=e.docTagPrefix&&(o.docTagPrefix=String(e.docTagPrefix)),e.organization){default:"number"==typeof e.organization&&(o.organization=e.organization);break;case"CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED":case 0:o.organization=0;break;case"CLOUD":case 1:o.organization=1;break;case"ADS":case 2:o.organization=2;break;case"PHOTOS":case 3:o.organization=3;break;case"STREET_VIEW":case 4:o.organization=4;break;case"SHOPPING":case 5:o.organization=5;break;case"GEO":case 6:o.organization=6;break;case"GENERATIVE_AI":case 7:o.organization=7}if(e.librarySettings){if(!Array.isArray(e.librarySettings))throw TypeError(".google.api.Publishing.librarySettings: array expected");o.librarySettings=[];for(r=0;r<e.librarySettings.length;++r){if(!d.isObject(e.librarySettings[r]))throw TypeError(".google.api.Publishing.librarySettings: object expected");o.librarySettings[r]=g.google.api.ClientLibrarySettings.fromObject(e.librarySettings[r],t+1)}}return null!=e.protoReferenceDocumentationUri&&(o.protoReferenceDocumentationUri=String(e.protoReferenceDocumentationUri)),null!=e.restReferenceDocumentationUri&&(o.restReferenceDocumentationUri=String(e.restReferenceDocumentationUri)),o},N.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.methodSettings=[],r.codeownerGithubTeams=[],r.librarySettings=[]),t.defaults&&(r.newIssueUri="",r.documentationUri="",r.apiShortName="",r.githubLabel="",r.docTagPrefix="",r.organization=t.enums===String?"CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED":0,r.protoReferenceDocumentationUri="",r.restReferenceDocumentationUri=""),e.methodSettings&&e.methodSettings.length){r.methodSettings=[];for(var n=0;n<e.methodSettings.length;++n)r.methodSettings[n]=g.google.api.MethodSettings.toObject(e.methodSettings[n],t,o+1)}if(null!=e.newIssueUri&&Object.hasOwnProperty.call(e,"newIssueUri")&&(r.newIssueUri=e.newIssueUri),null!=e.documentationUri&&Object.hasOwnProperty.call(e,"documentationUri")&&(r.documentationUri=e.documentationUri),null!=e.apiShortName&&Object.hasOwnProperty.call(e,"apiShortName")&&(r.apiShortName=e.apiShortName),null!=e.githubLabel&&Object.hasOwnProperty.call(e,"githubLabel")&&(r.githubLabel=e.githubLabel),e.codeownerGithubTeams&&e.codeownerGithubTeams.length){r.codeownerGithubTeams=[];for(n=0;n<e.codeownerGithubTeams.length;++n)r.codeownerGithubTeams[n]=e.codeownerGithubTeams[n]}if(null!=e.docTagPrefix&&Object.hasOwnProperty.call(e,"docTagPrefix")&&(r.docTagPrefix=e.docTagPrefix),null!=e.organization&&Object.hasOwnProperty.call(e,"organization")&&(r.organization=t.enums!==String||void 0===g.google.api.ClientLibraryOrganization[e.organization]?e.organization:g.google.api.ClientLibraryOrganization[e.organization]),e.librarySettings&&e.librarySettings.length){r.librarySettings=[];for(n=0;n<e.librarySettings.length;++n)r.librarySettings[n]=g.google.api.ClientLibrarySettings.toObject(e.librarySettings[n],t,o+1)}return null!=e.protoReferenceDocumentationUri&&Object.hasOwnProperty.call(e,"protoReferenceDocumentationUri")&&(r.protoReferenceDocumentationUri=e.protoReferenceDocumentationUri),null!=e.restReferenceDocumentationUri&&Object.hasOwnProperty.call(e,"restReferenceDocumentationUri")&&(r.restReferenceDocumentationUri=e.restReferenceDocumentationUri),r},N.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},N.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.Publishing"},N),i.JavaSettings=(et.prototype.libraryPackage="",et.prototype.serviceClassNames=d.emptyObject,et.prototype.common=null,et.create=function(e){return new et(e)},et.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.libraryPackage&&Object.hasOwnProperty.call(e,"libraryPackage")&&t.uint32(10).string(e.libraryPackage),null!=e.serviceClassNames&&Object.hasOwnProperty.call(e,"serviceClassNames"))for(var r=Object.keys(e.serviceClassNames),n=0;n<r.length;++n)t.uint32(18).fork().uint32(10).string(r[n]).uint32(18).string(e.serviceClassNames[r[n]]).ldelim();return null!=e.common&&Object.hasOwnProperty.call(e,"common")&&g.google.api.CommonLanguageSettings.encode(e.common,t.uint32(26).fork(),o+1).ldelim(),t},et.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},et.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.JavaSettings;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.libraryPackage=e.string();break;case 2:i.serviceClassNames===d.emptyObject&&(i.serviceClassNames={});for(var l=e.uint32()+e.pos,s="",c="";e.pos<l;){var u=e.uint32();switch(u>>>3){case 1:s=e.string();break;case 2:c=e.string();break;default:e.skipType(7&u,r)}}"__proto__"===s&&d.makeProp(i.serviceClassNames,s),i.serviceClassNames[s]=c;break;case 3:i.common=g.google.api.CommonLanguageSettings.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},et.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},et.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.libraryPackage&&Object.hasOwnProperty.call(e,"libraryPackage")&&!d.isString(e.libraryPackage))return"libraryPackage: string expected";if(null!=e.serviceClassNames&&Object.hasOwnProperty.call(e,"serviceClassNames")){if(!d.isObject(e.serviceClassNames))return"serviceClassNames: object expected";for(var o=Object.keys(e.serviceClassNames),r=0;r<o.length;++r)if(!d.isString(e.serviceClassNames[o[r]]))return"serviceClassNames: string{k:string} expected"}if(null!=e.common&&Object.hasOwnProperty.call(e,"common")){t=g.google.api.CommonLanguageSettings.verify(e.common,t+1);if(t)return"common."+t}return null},et.fromObject=function(e,t){if(e instanceof g.google.api.JavaSettings)return e;if(!d.isObject(e))throw TypeError(".google.api.JavaSettings: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.JavaSettings;if(null!=e.libraryPackage&&(o.libraryPackage=String(e.libraryPackage)),e.serviceClassNames){if(!d.isObject(e.serviceClassNames))throw TypeError(".google.api.JavaSettings.serviceClassNames: object expected");o.serviceClassNames={};for(var r=Object.keys(e.serviceClassNames),n=0;n<r.length;++n)"__proto__"===r[n]&&d.makeProp(o.serviceClassNames,r[n]),o.serviceClassNames[r[n]]=String(e.serviceClassNames[r[n]])}if(null!=e.common){if(!d.isObject(e.common))throw TypeError(".google.api.JavaSettings.common: object expected");o.common=g.google.api.CommonLanguageSettings.fromObject(e.common,t+1)}return o},et.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,n={};if((t.objects||t.defaults)&&(n.serviceClassNames={}),t.defaults&&(n.libraryPackage="",n.common=null),null!=e.libraryPackage&&Object.hasOwnProperty.call(e,"libraryPackage")&&(n.libraryPackage=e.libraryPackage),e.serviceClassNames&&(r=Object.keys(e.serviceClassNames)).length){n.serviceClassNames={};for(var i=0;i<r.length;++i)"__proto__"===r[i]&&d.makeProp(n.serviceClassNames,r[i]),n.serviceClassNames[r[i]]=e.serviceClassNames[r[i]]}return null!=e.common&&Object.hasOwnProperty.call(e,"common")&&(n.common=g.google.api.CommonLanguageSettings.toObject(e.common,t,o+1)),n},et.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},et.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.JavaSettings"},et),i.CppSettings=(tt.prototype.common=null,tt.create=function(e){return new tt(e)},tt.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.common&&Object.hasOwnProperty.call(e,"common")&&g.google.api.CommonLanguageSettings.encode(e.common,t.uint32(10).fork(),o+1).ldelim(),t},tt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},tt.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.CppSettings;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.common=g.google.api.CommonLanguageSettings.decode(e,e.uint32(),void 0,r+1):e.skipType(7&a,r)}return i},tt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},tt.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.common&&Object.hasOwnProperty.call(e,"common")){e=g.google.api.CommonLanguageSettings.verify(e.common,t+1);if(e)return"common."+e}return null},tt.fromObject=function(e,t){if(e instanceof g.google.api.CppSettings)return e;if(!d.isObject(e))throw TypeError(".google.api.CppSettings: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.CppSettings;if(null!=e.common){if(!d.isObject(e.common))throw TypeError(".google.api.CppSettings.common: object expected");o.common=g.google.api.CommonLanguageSettings.fromObject(e.common,t+1)}return o},tt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.common=null),null!=e.common&&Object.hasOwnProperty.call(e,"common")&&(r.common=g.google.api.CommonLanguageSettings.toObject(e.common,t,o+1)),r},tt.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},tt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.CppSettings"},tt),i.PhpSettings=(ot.prototype.common=null,ot.prototype.libraryPackage="",ot.create=function(e){return new ot(e)},ot.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.common&&Object.hasOwnProperty.call(e,"common")&&g.google.api.CommonLanguageSettings.encode(e.common,t.uint32(10).fork(),o+1).ldelim(),null!=e.libraryPackage&&Object.hasOwnProperty.call(e,"libraryPackage")&&t.uint32(18).string(e.libraryPackage),t},ot.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ot.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.PhpSettings;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.common=g.google.api.CommonLanguageSettings.decode(e,e.uint32(),void 0,r+1);break;case 2:i.libraryPackage=e.string();break;default:e.skipType(7&a,r)}}return i},ot.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ot.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.common&&Object.hasOwnProperty.call(e,"common")){t=g.google.api.CommonLanguageSettings.verify(e.common,t+1);if(t)return"common."+t}return null!=e.libraryPackage&&Object.hasOwnProperty.call(e,"libraryPackage")&&!d.isString(e.libraryPackage)?"libraryPackage: string expected":null},ot.fromObject=function(e,t){if(e instanceof g.google.api.PhpSettings)return e;if(!d.isObject(e))throw TypeError(".google.api.PhpSettings: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.PhpSettings;if(null!=e.common){if(!d.isObject(e.common))throw TypeError(".google.api.PhpSettings.common: object expected");o.common=g.google.api.CommonLanguageSettings.fromObject(e.common,t+1)}return null!=e.libraryPackage&&(o.libraryPackage=String(e.libraryPackage)),o},ot.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.common=null,r.libraryPackage=""),null!=e.common&&Object.hasOwnProperty.call(e,"common")&&(r.common=g.google.api.CommonLanguageSettings.toObject(e.common,t,o+1)),null!=e.libraryPackage&&Object.hasOwnProperty.call(e,"libraryPackage")&&(r.libraryPackage=e.libraryPackage),r},ot.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ot.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.PhpSettings"},ot),i.PythonSettings=(rt.prototype.common=null,rt.prototype.experimentalFeatures=null,rt.create=function(e){return new rt(e)},rt.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.common&&Object.hasOwnProperty.call(e,"common")&&g.google.api.CommonLanguageSettings.encode(e.common,t.uint32(10).fork(),o+1).ldelim(),null!=e.experimentalFeatures&&Object.hasOwnProperty.call(e,"experimentalFeatures")&&g.google.api.PythonSettings.ExperimentalFeatures.encode(e.experimentalFeatures,t.uint32(18).fork(),o+1).ldelim(),t},rt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},rt.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.PythonSettings;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.common=g.google.api.CommonLanguageSettings.decode(e,e.uint32(),void 0,r+1);break;case 2:i.experimentalFeatures=g.google.api.PythonSettings.ExperimentalFeatures.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},rt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},rt.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";var o;if(null!=e.common&&Object.hasOwnProperty.call(e,"common")&&(o=g.google.api.CommonLanguageSettings.verify(e.common,t+1)))return"common."+o;if(null!=e.experimentalFeatures&&Object.hasOwnProperty.call(e,"experimentalFeatures")&&(o=g.google.api.PythonSettings.ExperimentalFeatures.verify(e.experimentalFeatures,t+1)))return"experimentalFeatures."+o;return null},rt.fromObject=function(e,t){if(e instanceof g.google.api.PythonSettings)return e;if(!d.isObject(e))throw TypeError(".google.api.PythonSettings: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.PythonSettings;if(null!=e.common){if(!d.isObject(e.common))throw TypeError(".google.api.PythonSettings.common: object expected");o.common=g.google.api.CommonLanguageSettings.fromObject(e.common,t+1)}if(null!=e.experimentalFeatures){if(!d.isObject(e.experimentalFeatures))throw TypeError(".google.api.PythonSettings.experimentalFeatures: object expected");o.experimentalFeatures=g.google.api.PythonSettings.ExperimentalFeatures.fromObject(e.experimentalFeatures,t+1)}return o},rt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.common=null,r.experimentalFeatures=null),null!=e.common&&Object.hasOwnProperty.call(e,"common")&&(r.common=g.google.api.CommonLanguageSettings.toObject(e.common,t,o+1)),null!=e.experimentalFeatures&&Object.hasOwnProperty.call(e,"experimentalFeatures")&&(r.experimentalFeatures=g.google.api.PythonSettings.ExperimentalFeatures.toObject(e.experimentalFeatures,t,o+1)),r},rt.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},rt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.PythonSettings"},rt.ExperimentalFeatures=(nt.prototype.restAsyncIoEnabled=!1,nt.prototype.protobufPythonicTypesEnabled=!1,nt.prototype.unversionedPackageDisabled=!1,nt.create=function(e){return new nt(e)},nt.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.restAsyncIoEnabled&&Object.hasOwnProperty.call(e,"restAsyncIoEnabled")&&t.uint32(8).bool(e.restAsyncIoEnabled),null!=e.protobufPythonicTypesEnabled&&Object.hasOwnProperty.call(e,"protobufPythonicTypesEnabled")&&t.uint32(16).bool(e.protobufPythonicTypesEnabled),null!=e.unversionedPackageDisabled&&Object.hasOwnProperty.call(e,"unversionedPackageDisabled")&&t.uint32(24).bool(e.unversionedPackageDisabled),t},nt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},nt.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.PythonSettings.ExperimentalFeatures;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.restAsyncIoEnabled=e.bool();break;case 2:i.protobufPythonicTypesEnabled=e.bool();break;case 3:i.unversionedPackageDisabled=e.bool();break;default:e.skipType(7&a,r)}}return i},nt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},nt.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.restAsyncIoEnabled&&Object.hasOwnProperty.call(e,"restAsyncIoEnabled")&&"boolean"!=typeof e.restAsyncIoEnabled?"restAsyncIoEnabled: boolean expected":null!=e.protobufPythonicTypesEnabled&&Object.hasOwnProperty.call(e,"protobufPythonicTypesEnabled")&&"boolean"!=typeof e.protobufPythonicTypesEnabled?"protobufPythonicTypesEnabled: boolean expected":null!=e.unversionedPackageDisabled&&Object.hasOwnProperty.call(e,"unversionedPackageDisabled")&&"boolean"!=typeof e.unversionedPackageDisabled?"unversionedPackageDisabled: boolean expected":null},nt.fromObject=function(e,t){if(e instanceof g.google.api.PythonSettings.ExperimentalFeatures)return e;if(!d.isObject(e))throw TypeError(".google.api.PythonSettings.ExperimentalFeatures: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.api.PythonSettings.ExperimentalFeatures;return null!=e.restAsyncIoEnabled&&(t.restAsyncIoEnabled=Boolean(e.restAsyncIoEnabled)),null!=e.protobufPythonicTypesEnabled&&(t.protobufPythonicTypesEnabled=Boolean(e.protobufPythonicTypesEnabled)),null!=e.unversionedPackageDisabled&&(t.unversionedPackageDisabled=Boolean(e.unversionedPackageDisabled)),t},nt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.restAsyncIoEnabled=!1,o.protobufPythonicTypesEnabled=!1,o.unversionedPackageDisabled=!1),null!=e.restAsyncIoEnabled&&Object.hasOwnProperty.call(e,"restAsyncIoEnabled")&&(o.restAsyncIoEnabled=e.restAsyncIoEnabled),null!=e.protobufPythonicTypesEnabled&&Object.hasOwnProperty.call(e,"protobufPythonicTypesEnabled")&&(o.protobufPythonicTypesEnabled=e.protobufPythonicTypesEnabled),null!=e.unversionedPackageDisabled&&Object.hasOwnProperty.call(e,"unversionedPackageDisabled")&&(o.unversionedPackageDisabled=e.unversionedPackageDisabled),o},nt.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},nt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.PythonSettings.ExperimentalFeatures"},nt),rt),i.NodeSettings=(it.prototype.common=null,it.create=function(e){return new it(e)},it.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.common&&Object.hasOwnProperty.call(e,"common")&&g.google.api.CommonLanguageSettings.encode(e.common,t.uint32(10).fork(),o+1).ldelim(),t},it.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},it.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.NodeSettings;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.common=g.google.api.CommonLanguageSettings.decode(e,e.uint32(),void 0,r+1):e.skipType(7&a,r)}return i},it.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},it.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.common&&Object.hasOwnProperty.call(e,"common")){e=g.google.api.CommonLanguageSettings.verify(e.common,t+1);if(e)return"common."+e}return null},it.fromObject=function(e,t){if(e instanceof g.google.api.NodeSettings)return e;if(!d.isObject(e))throw TypeError(".google.api.NodeSettings: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.NodeSettings;if(null!=e.common){if(!d.isObject(e.common))throw TypeError(".google.api.NodeSettings.common: object expected");o.common=g.google.api.CommonLanguageSettings.fromObject(e.common,t+1)}return o},it.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.common=null),null!=e.common&&Object.hasOwnProperty.call(e,"common")&&(r.common=g.google.api.CommonLanguageSettings.toObject(e.common,t,o+1)),r},it.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},it.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.NodeSettings"},it),i.DotnetSettings=(at.prototype.common=null,at.prototype.renamedServices=d.emptyObject,at.prototype.renamedResources=d.emptyObject,at.prototype.ignoredResources=d.emptyArray,at.prototype.forcedNamespaceAliases=d.emptyArray,at.prototype.handwrittenSignatures=d.emptyArray,at.create=function(e){return new at(e)},at.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.common&&Object.hasOwnProperty.call(e,"common")&&g.google.api.CommonLanguageSettings.encode(e.common,t.uint32(10).fork(),o+1).ldelim(),null!=e.renamedServices&&Object.hasOwnProperty.call(e,"renamedServices"))for(var r=Object.keys(e.renamedServices),n=0;n<r.length;++n)t.uint32(18).fork().uint32(10).string(r[n]).uint32(18).string(e.renamedServices[r[n]]).ldelim();if(null!=e.renamedResources&&Object.hasOwnProperty.call(e,"renamedResources"))for(r=Object.keys(e.renamedResources),n=0;n<r.length;++n)t.uint32(26).fork().uint32(10).string(r[n]).uint32(18).string(e.renamedResources[r[n]]).ldelim();if(null!=e.ignoredResources&&e.ignoredResources.length)for(n=0;n<e.ignoredResources.length;++n)t.uint32(34).string(e.ignoredResources[n]);if(null!=e.forcedNamespaceAliases&&e.forcedNamespaceAliases.length)for(n=0;n<e.forcedNamespaceAliases.length;++n)t.uint32(42).string(e.forcedNamespaceAliases[n]);if(null!=e.handwrittenSignatures&&e.handwrittenSignatures.length)for(n=0;n<e.handwrittenSignatures.length;++n)t.uint32(50).string(e.handwrittenSignatures[n]);return t},at.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},at.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.DotnetSettings;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.common=g.google.api.CommonLanguageSettings.decode(e,e.uint32(),void 0,r+1);break;case 2:i.renamedServices===d.emptyObject&&(i.renamedServices={});for(var l=e.uint32()+e.pos,s="",c="";e.pos<l;)switch((u=e.uint32())>>>3){case 1:s=e.string();break;case 2:c=e.string();break;default:e.skipType(7&u,r)}"__proto__"===s&&d.makeProp(i.renamedServices,s),i.renamedServices[s]=c;break;case 3:i.renamedResources===d.emptyObject&&(i.renamedResources={});var u,l=e.uint32()+e.pos;for(c=s="";e.pos<l;)switch((u=e.uint32())>>>3){case 1:s=e.string();break;case 2:c=e.string();break;default:e.skipType(7&u,r)}"__proto__"===s&&d.makeProp(i.renamedResources,s),i.renamedResources[s]=c;break;case 4:i.ignoredResources&&i.ignoredResources.length||(i.ignoredResources=[]),i.ignoredResources.push(e.string());break;case 5:i.forcedNamespaceAliases&&i.forcedNamespaceAliases.length||(i.forcedNamespaceAliases=[]),i.forcedNamespaceAliases.push(e.string());break;case 6:i.handwrittenSignatures&&i.handwrittenSignatures.length||(i.handwrittenSignatures=[]),i.handwrittenSignatures.push(e.string());break;default:e.skipType(7&a,r)}}return i},at.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},at.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.common&&Object.hasOwnProperty.call(e,"common")){t=g.google.api.CommonLanguageSettings.verify(e.common,t+1);if(t)return"common."+t}if(null!=e.renamedServices&&Object.hasOwnProperty.call(e,"renamedServices")){if(!d.isObject(e.renamedServices))return"renamedServices: object expected";for(var o=Object.keys(e.renamedServices),r=0;r<o.length;++r)if(!d.isString(e.renamedServices[o[r]]))return"renamedServices: string{k:string} expected"}if(null!=e.renamedResources&&Object.hasOwnProperty.call(e,"renamedResources")){if(!d.isObject(e.renamedResources))return"renamedResources: object expected";for(o=Object.keys(e.renamedResources),r=0;r<o.length;++r)if(!d.isString(e.renamedResources[o[r]]))return"renamedResources: string{k:string} expected"}if(null!=e.ignoredResources&&Object.hasOwnProperty.call(e,"ignoredResources")){if(!Array.isArray(e.ignoredResources))return"ignoredResources: array expected";for(r=0;r<e.ignoredResources.length;++r)if(!d.isString(e.ignoredResources[r]))return"ignoredResources: string[] expected"}if(null!=e.forcedNamespaceAliases&&Object.hasOwnProperty.call(e,"forcedNamespaceAliases")){if(!Array.isArray(e.forcedNamespaceAliases))return"forcedNamespaceAliases: array expected";for(r=0;r<e.forcedNamespaceAliases.length;++r)if(!d.isString(e.forcedNamespaceAliases[r]))return"forcedNamespaceAliases: string[] expected"}if(null!=e.handwrittenSignatures&&Object.hasOwnProperty.call(e,"handwrittenSignatures")){if(!Array.isArray(e.handwrittenSignatures))return"handwrittenSignatures: array expected";for(r=0;r<e.handwrittenSignatures.length;++r)if(!d.isString(e.handwrittenSignatures[r]))return"handwrittenSignatures: string[] expected"}return null},at.fromObject=function(e,t){if(e instanceof g.google.api.DotnetSettings)return e;if(!d.isObject(e))throw TypeError(".google.api.DotnetSettings: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.DotnetSettings;if(null!=e.common){if(!d.isObject(e.common))throw TypeError(".google.api.DotnetSettings.common: object expected");o.common=g.google.api.CommonLanguageSettings.fromObject(e.common,t+1)}if(e.renamedServices){if(!d.isObject(e.renamedServices))throw TypeError(".google.api.DotnetSettings.renamedServices: object expected");o.renamedServices={};for(var r=Object.keys(e.renamedServices),n=0;n<r.length;++n)"__proto__"===r[n]&&d.makeProp(o.renamedServices,r[n]),o.renamedServices[r[n]]=String(e.renamedServices[r[n]])}if(e.renamedResources){if(!d.isObject(e.renamedResources))throw TypeError(".google.api.DotnetSettings.renamedResources: object expected");o.renamedResources={};for(r=Object.keys(e.renamedResources),n=0;n<r.length;++n)"__proto__"===r[n]&&d.makeProp(o.renamedResources,r[n]),o.renamedResources[r[n]]=String(e.renamedResources[r[n]])}if(e.ignoredResources){if(!Array.isArray(e.ignoredResources))throw TypeError(".google.api.DotnetSettings.ignoredResources: array expected");o.ignoredResources=[];for(n=0;n<e.ignoredResources.length;++n)o.ignoredResources[n]=String(e.ignoredResources[n])}if(e.forcedNamespaceAliases){if(!Array.isArray(e.forcedNamespaceAliases))throw TypeError(".google.api.DotnetSettings.forcedNamespaceAliases: array expected");o.forcedNamespaceAliases=[];for(n=0;n<e.forcedNamespaceAliases.length;++n)o.forcedNamespaceAliases[n]=String(e.forcedNamespaceAliases[n])}if(e.handwrittenSignatures){if(!Array.isArray(e.handwrittenSignatures))throw TypeError(".google.api.DotnetSettings.handwrittenSignatures: array expected");o.handwrittenSignatures=[];for(n=0;n<e.handwrittenSignatures.length;++n)o.handwrittenSignatures[n]=String(e.handwrittenSignatures[n])}return o},at.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,n={};if((t.arrays||t.defaults)&&(n.ignoredResources=[],n.forcedNamespaceAliases=[],n.handwrittenSignatures=[]),(t.objects||t.defaults)&&(n.renamedServices={},n.renamedResources={}),t.defaults&&(n.common=null),null!=e.common&&Object.hasOwnProperty.call(e,"common")&&(n.common=g.google.api.CommonLanguageSettings.toObject(e.common,t,o+1)),e.renamedServices&&(r=Object.keys(e.renamedServices)).length){n.renamedServices={};for(var i=0;i<r.length;++i)"__proto__"===r[i]&&d.makeProp(n.renamedServices,r[i]),n.renamedServices[r[i]]=e.renamedServices[r[i]]}if(e.renamedResources&&(r=Object.keys(e.renamedResources)).length){n.renamedResources={};for(i=0;i<r.length;++i)"__proto__"===r[i]&&d.makeProp(n.renamedResources,r[i]),n.renamedResources[r[i]]=e.renamedResources[r[i]]}if(e.ignoredResources&&e.ignoredResources.length){n.ignoredResources=[];for(i=0;i<e.ignoredResources.length;++i)n.ignoredResources[i]=e.ignoredResources[i]}if(e.forcedNamespaceAliases&&e.forcedNamespaceAliases.length){n.forcedNamespaceAliases=[];for(i=0;i<e.forcedNamespaceAliases.length;++i)n.forcedNamespaceAliases[i]=e.forcedNamespaceAliases[i]}if(e.handwrittenSignatures&&e.handwrittenSignatures.length){n.handwrittenSignatures=[];for(i=0;i<e.handwrittenSignatures.length;++i)n.handwrittenSignatures[i]=e.handwrittenSignatures[i]}return n},at.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},at.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.DotnetSettings"},at),i.RubySettings=(lt.prototype.common=null,lt.create=function(e){return new lt(e)},lt.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.common&&Object.hasOwnProperty.call(e,"common")&&g.google.api.CommonLanguageSettings.encode(e.common,t.uint32(10).fork(),o+1).ldelim(),t},lt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},lt.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.RubySettings;e.pos<n;){var a=e.uint32();if(a===o)break;a>>>3==1?i.common=g.google.api.CommonLanguageSettings.decode(e,e.uint32(),void 0,r+1):e.skipType(7&a,r)}return i},lt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},lt.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.common&&Object.hasOwnProperty.call(e,"common")){e=g.google.api.CommonLanguageSettings.verify(e.common,t+1);if(e)return"common."+e}return null},lt.fromObject=function(e,t){if(e instanceof g.google.api.RubySettings)return e;if(!d.isObject(e))throw TypeError(".google.api.RubySettings: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.RubySettings;if(null!=e.common){if(!d.isObject(e.common))throw TypeError(".google.api.RubySettings.common: object expected");o.common=g.google.api.CommonLanguageSettings.fromObject(e.common,t+1)}return o},lt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.common=null),null!=e.common&&Object.hasOwnProperty.call(e,"common")&&(r.common=g.google.api.CommonLanguageSettings.toObject(e.common,t,o+1)),r},lt.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},lt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.RubySettings"},lt),i.GoSettings=(st.prototype.common=null,st.prototype.renamedServices=d.emptyObject,st.create=function(e){return new st(e)},st.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.common&&Object.hasOwnProperty.call(e,"common")&&g.google.api.CommonLanguageSettings.encode(e.common,t.uint32(10).fork(),o+1).ldelim(),null!=e.renamedServices&&Object.hasOwnProperty.call(e,"renamedServices"))for(var r=Object.keys(e.renamedServices),n=0;n<r.length;++n)t.uint32(18).fork().uint32(10).string(r[n]).uint32(18).string(e.renamedServices[r[n]]).ldelim();return t},st.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},st.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.GoSettings;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.common=g.google.api.CommonLanguageSettings.decode(e,e.uint32(),void 0,r+1);break;case 2:i.renamedServices===d.emptyObject&&(i.renamedServices={});for(var l=e.uint32()+e.pos,s="",c="";e.pos<l;){var u=e.uint32();switch(u>>>3){case 1:s=e.string();break;case 2:c=e.string();break;default:e.skipType(7&u,r)}}"__proto__"===s&&d.makeProp(i.renamedServices,s),i.renamedServices[s]=c;break;default:e.skipType(7&a,r)}}return i},st.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},st.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.common&&Object.hasOwnProperty.call(e,"common")){t=g.google.api.CommonLanguageSettings.verify(e.common,t+1);if(t)return"common."+t}if(null!=e.renamedServices&&Object.hasOwnProperty.call(e,"renamedServices")){if(!d.isObject(e.renamedServices))return"renamedServices: object expected";for(var o=Object.keys(e.renamedServices),r=0;r<o.length;++r)if(!d.isString(e.renamedServices[o[r]]))return"renamedServices: string{k:string} expected"}return null},st.fromObject=function(e,t){if(e instanceof g.google.api.GoSettings)return e;if(!d.isObject(e))throw TypeError(".google.api.GoSettings: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.GoSettings;if(null!=e.common){if(!d.isObject(e.common))throw TypeError(".google.api.GoSettings.common: object expected");o.common=g.google.api.CommonLanguageSettings.fromObject(e.common,t+1)}if(e.renamedServices){if(!d.isObject(e.renamedServices))throw TypeError(".google.api.GoSettings.renamedServices: object expected");o.renamedServices={};for(var r=Object.keys(e.renamedServices),n=0;n<r.length;++n)"__proto__"===r[n]&&d.makeProp(o.renamedServices,r[n]),o.renamedServices[r[n]]=String(e.renamedServices[r[n]])}return o},st.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,n={};if((t.objects||t.defaults)&&(n.renamedServices={}),t.defaults&&(n.common=null),null!=e.common&&Object.hasOwnProperty.call(e,"common")&&(n.common=g.google.api.CommonLanguageSettings.toObject(e.common,t,o+1)),e.renamedServices&&(r=Object.keys(e.renamedServices)).length){n.renamedServices={};for(var i=0;i<r.length;++i)"__proto__"===r[i]&&d.makeProp(n.renamedServices,r[i]),n.renamedServices[r[i]]=e.renamedServices[r[i]]}return n},st.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},st.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.GoSettings"},st),i.MethodSettings=(ct.prototype.selector="",ct.prototype.longRunning=null,ct.prototype.autoPopulatedFields=d.emptyArray,ct.prototype.batching=null,ct.create=function(e){return new ct(e)},ct.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.selector&&Object.hasOwnProperty.call(e,"selector")&&t.uint32(10).string(e.selector),null!=e.longRunning&&Object.hasOwnProperty.call(e,"longRunning")&&g.google.api.MethodSettings.LongRunning.encode(e.longRunning,t.uint32(18).fork(),o+1).ldelim(),null!=e.autoPopulatedFields&&e.autoPopulatedFields.length)for(var r=0;r<e.autoPopulatedFields.length;++r)t.uint32(26).string(e.autoPopulatedFields[r]);return null!=e.batching&&Object.hasOwnProperty.call(e,"batching")&&g.google.api.BatchingConfigProto.encode(e.batching,t.uint32(34).fork(),o+1).ldelim(),t},ct.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ct.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.MethodSettings;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.selector=e.string();break;case 2:i.longRunning=g.google.api.MethodSettings.LongRunning.decode(e,e.uint32(),void 0,r+1);break;case 3:i.autoPopulatedFields&&i.autoPopulatedFields.length||(i.autoPopulatedFields=[]),i.autoPopulatedFields.push(e.string());break;case 4:i.batching=g.google.api.BatchingConfigProto.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},ct.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ct.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.selector&&Object.hasOwnProperty.call(e,"selector")&&!d.isString(e.selector))return"selector: string expected";var o;if(null!=e.longRunning&&Object.hasOwnProperty.call(e,"longRunning")&&(o=g.google.api.MethodSettings.LongRunning.verify(e.longRunning,t+1)))return"longRunning."+o;if(null!=e.autoPopulatedFields&&Object.hasOwnProperty.call(e,"autoPopulatedFields")){if(!Array.isArray(e.autoPopulatedFields))return"autoPopulatedFields: array expected";for(var r=0;r<e.autoPopulatedFields.length;++r)if(!d.isString(e.autoPopulatedFields[r]))return"autoPopulatedFields: string[] expected"}if(null!=e.batching&&Object.hasOwnProperty.call(e,"batching")&&(o=g.google.api.BatchingConfigProto.verify(e.batching,t+1)))return"batching."+o;return null},ct.fromObject=function(e,t){if(e instanceof g.google.api.MethodSettings)return e;if(!d.isObject(e))throw TypeError(".google.api.MethodSettings: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.MethodSettings;if(null!=e.selector&&(o.selector=String(e.selector)),null!=e.longRunning){if(!d.isObject(e.longRunning))throw TypeError(".google.api.MethodSettings.longRunning: object expected");o.longRunning=g.google.api.MethodSettings.LongRunning.fromObject(e.longRunning,t+1)}if(e.autoPopulatedFields){if(!Array.isArray(e.autoPopulatedFields))throw TypeError(".google.api.MethodSettings.autoPopulatedFields: array expected");o.autoPopulatedFields=[];for(var r=0;r<e.autoPopulatedFields.length;++r)o.autoPopulatedFields[r]=String(e.autoPopulatedFields[r])}if(null!=e.batching){if(!d.isObject(e.batching))throw TypeError(".google.api.MethodSettings.batching: object expected");o.batching=g.google.api.BatchingConfigProto.fromObject(e.batching,t+1)}return o},ct.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.autoPopulatedFields=[]),t.defaults&&(r.selector="",r.longRunning=null,r.batching=null),null!=e.selector&&Object.hasOwnProperty.call(e,"selector")&&(r.selector=e.selector),null!=e.longRunning&&Object.hasOwnProperty.call(e,"longRunning")&&(r.longRunning=g.google.api.MethodSettings.LongRunning.toObject(e.longRunning,t,o+1)),e.autoPopulatedFields&&e.autoPopulatedFields.length){r.autoPopulatedFields=[];for(var n=0;n<e.autoPopulatedFields.length;++n)r.autoPopulatedFields[n]=e.autoPopulatedFields[n]}return null!=e.batching&&Object.hasOwnProperty.call(e,"batching")&&(r.batching=g.google.api.BatchingConfigProto.toObject(e.batching,t,o+1)),r},ct.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ct.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.MethodSettings"},ct.LongRunning=(ut.prototype.initialPollDelay=null,ut.prototype.pollDelayMultiplier=0,ut.prototype.maxPollDelay=null,ut.prototype.totalPollTimeout=null,ut.create=function(e){return new ut(e)},ut.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.initialPollDelay&&Object.hasOwnProperty.call(e,"initialPollDelay")&&g.google.protobuf.Duration.encode(e.initialPollDelay,t.uint32(10).fork(),o+1).ldelim(),null!=e.pollDelayMultiplier&&Object.hasOwnProperty.call(e,"pollDelayMultiplier")&&t.uint32(21).float(e.pollDelayMultiplier),null!=e.maxPollDelay&&Object.hasOwnProperty.call(e,"maxPollDelay")&&g.google.protobuf.Duration.encode(e.maxPollDelay,t.uint32(26).fork(),o+1).ldelim(),null!=e.totalPollTimeout&&Object.hasOwnProperty.call(e,"totalPollTimeout")&&g.google.protobuf.Duration.encode(e.totalPollTimeout,t.uint32(34).fork(),o+1).ldelim(),t},ut.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ut.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.MethodSettings.LongRunning;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.initialPollDelay=g.google.protobuf.Duration.decode(e,e.uint32(),void 0,r+1);break;case 2:i.pollDelayMultiplier=e.float();break;case 3:i.maxPollDelay=g.google.protobuf.Duration.decode(e,e.uint32(),void 0,r+1);break;case 4:i.totalPollTimeout=g.google.protobuf.Duration.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},ut.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ut.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";var o;if(null!=e.initialPollDelay&&Object.hasOwnProperty.call(e,"initialPollDelay")&&(o=g.google.protobuf.Duration.verify(e.initialPollDelay,t+1)))return"initialPollDelay."+o;if(null!=e.pollDelayMultiplier&&Object.hasOwnProperty.call(e,"pollDelayMultiplier")&&"number"!=typeof e.pollDelayMultiplier)return"pollDelayMultiplier: number expected";if(null!=e.maxPollDelay&&Object.hasOwnProperty.call(e,"maxPollDelay")&&(o=g.google.protobuf.Duration.verify(e.maxPollDelay,t+1)))return"maxPollDelay."+o;if(null!=e.totalPollTimeout&&Object.hasOwnProperty.call(e,"totalPollTimeout")&&(o=g.google.protobuf.Duration.verify(e.totalPollTimeout,t+1)))return"totalPollTimeout."+o;return null},ut.fromObject=function(e,t){if(e instanceof g.google.api.MethodSettings.LongRunning)return e;if(!d.isObject(e))throw TypeError(".google.api.MethodSettings.LongRunning: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.MethodSettings.LongRunning;if(null!=e.initialPollDelay){if(!d.isObject(e.initialPollDelay))throw TypeError(".google.api.MethodSettings.LongRunning.initialPollDelay: object expected");o.initialPollDelay=g.google.protobuf.Duration.fromObject(e.initialPollDelay,t+1)}if(null!=e.pollDelayMultiplier&&(o.pollDelayMultiplier=Number(e.pollDelayMultiplier)),null!=e.maxPollDelay){if(!d.isObject(e.maxPollDelay))throw TypeError(".google.api.MethodSettings.LongRunning.maxPollDelay: object expected");o.maxPollDelay=g.google.protobuf.Duration.fromObject(e.maxPollDelay,t+1)}if(null!=e.totalPollTimeout){if(!d.isObject(e.totalPollTimeout))throw TypeError(".google.api.MethodSettings.LongRunning.totalPollTimeout: object expected");o.totalPollTimeout=g.google.protobuf.Duration.fromObject(e.totalPollTimeout,t+1)}return o},ut.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.initialPollDelay=null,r.pollDelayMultiplier=0,r.maxPollDelay=null,r.totalPollTimeout=null),null!=e.initialPollDelay&&Object.hasOwnProperty.call(e,"initialPollDelay")&&(r.initialPollDelay=g.google.protobuf.Duration.toObject(e.initialPollDelay,t,o+1)),null!=e.pollDelayMultiplier&&Object.hasOwnProperty.call(e,"pollDelayMultiplier")&&(r.pollDelayMultiplier=t.json&&!isFinite(e.pollDelayMultiplier)?String(e.pollDelayMultiplier):e.pollDelayMultiplier),null!=e.maxPollDelay&&Object.hasOwnProperty.call(e,"maxPollDelay")&&(r.maxPollDelay=g.google.protobuf.Duration.toObject(e.maxPollDelay,t,o+1)),null!=e.totalPollTimeout&&Object.hasOwnProperty.call(e,"totalPollTimeout")&&(r.totalPollTimeout=g.google.protobuf.Duration.toObject(e.totalPollTimeout,t,o+1)),r},ut.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ut.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.MethodSettings.LongRunning"},ut),ct),i.ClientLibraryOrganization=(o={},(n=Object.create(o))[o[0]="CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED"]=0,n[o[1]="CLOUD"]=1,n[o[2]="ADS"]=2,n[o[3]="PHOTOS"]=3,n[o[4]="STREET_VIEW"]=4,n[o[5]="SHOPPING"]=5,n[o[6]="GEO"]=6,n[o[7]="GENERATIVE_AI"]=7,n),i.ClientLibraryDestination=(o={},(n=Object.create(o))[o[0]="CLIENT_LIBRARY_DESTINATION_UNSPECIFIED"]=0,n[o[10]="GITHUB"]=10,n[o[20]="PACKAGE_MANAGER"]=20,n),i.SelectiveGapicGeneration=(pt.prototype.methods=d.emptyArray,pt.prototype.generateOmittedAsInternal=!1,pt.create=function(e){return new pt(e)},pt.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.methods&&e.methods.length)for(var r=0;r<e.methods.length;++r)t.uint32(10).string(e.methods[r]);return null!=e.generateOmittedAsInternal&&Object.hasOwnProperty.call(e,"generateOmittedAsInternal")&&t.uint32(16).bool(e.generateOmittedAsInternal),t},pt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},pt.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.SelectiveGapicGeneration;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.methods&&i.methods.length||(i.methods=[]),i.methods.push(e.string());break;case 2:i.generateOmittedAsInternal=e.bool();break;default:e.skipType(7&a,r)}}return i},pt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},pt.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.methods&&Object.hasOwnProperty.call(e,"methods")){if(!Array.isArray(e.methods))return"methods: array expected";for(var o=0;o<e.methods.length;++o)if(!d.isString(e.methods[o]))return"methods: string[] expected"}return null!=e.generateOmittedAsInternal&&Object.hasOwnProperty.call(e,"generateOmittedAsInternal")&&"boolean"!=typeof e.generateOmittedAsInternal?"generateOmittedAsInternal: boolean expected":null},pt.fromObject=function(e,t){if(e instanceof g.google.api.SelectiveGapicGeneration)return e;if(!d.isObject(e))throw TypeError(".google.api.SelectiveGapicGeneration: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.SelectiveGapicGeneration;if(e.methods){if(!Array.isArray(e.methods))throw TypeError(".google.api.SelectiveGapicGeneration.methods: array expected");o.methods=[];for(var r=0;r<e.methods.length;++r)o.methods[r]=String(e.methods[r])}return null!=e.generateOmittedAsInternal&&(o.generateOmittedAsInternal=Boolean(e.generateOmittedAsInternal)),o},pt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.methods=[]),t.defaults&&(r.generateOmittedAsInternal=!1),e.methods&&e.methods.length){r.methods=[];for(var n=0;n<e.methods.length;++n)r.methods[n]=e.methods[n]}return null!=e.generateOmittedAsInternal&&Object.hasOwnProperty.call(e,"generateOmittedAsInternal")&&(r.generateOmittedAsInternal=e.generateOmittedAsInternal),r},pt.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},pt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.SelectiveGapicGeneration"},pt),i.BatchingConfigProto=(dt.prototype.thresholds=null,dt.prototype.batchDescriptor=null,dt.create=function(e){return new dt(e)},dt.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.thresholds&&Object.hasOwnProperty.call(e,"thresholds")&&g.google.api.BatchingSettingsProto.encode(e.thresholds,t.uint32(10).fork(),o+1).ldelim(),null!=e.batchDescriptor&&Object.hasOwnProperty.call(e,"batchDescriptor")&&g.google.api.BatchingDescriptorProto.encode(e.batchDescriptor,t.uint32(18).fork(),o+1).ldelim(),t},dt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},dt.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.BatchingConfigProto;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.thresholds=g.google.api.BatchingSettingsProto.decode(e,e.uint32(),void 0,r+1);break;case 2:i.batchDescriptor=g.google.api.BatchingDescriptorProto.decode(e,e.uint32(),void 0,r+1);break;default:e.skipType(7&a,r)}}return i},dt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},dt.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";var o;if(null!=e.thresholds&&Object.hasOwnProperty.call(e,"thresholds")&&(o=g.google.api.BatchingSettingsProto.verify(e.thresholds,t+1)))return"thresholds."+o;if(null!=e.batchDescriptor&&Object.hasOwnProperty.call(e,"batchDescriptor")&&(o=g.google.api.BatchingDescriptorProto.verify(e.batchDescriptor,t+1)))return"batchDescriptor."+o;return null},dt.fromObject=function(e,t){if(e instanceof g.google.api.BatchingConfigProto)return e;if(!d.isObject(e))throw TypeError(".google.api.BatchingConfigProto: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.BatchingConfigProto;if(null!=e.thresholds){if(!d.isObject(e.thresholds))throw TypeError(".google.api.BatchingConfigProto.thresholds: object expected");o.thresholds=g.google.api.BatchingSettingsProto.fromObject(e.thresholds,t+1)}if(null!=e.batchDescriptor){if(!d.isObject(e.batchDescriptor))throw TypeError(".google.api.BatchingConfigProto.batchDescriptor: object expected");o.batchDescriptor=g.google.api.BatchingDescriptorProto.fromObject(e.batchDescriptor,t+1)}return o},dt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};return t.defaults&&(r.thresholds=null,r.batchDescriptor=null),null!=e.thresholds&&Object.hasOwnProperty.call(e,"thresholds")&&(r.thresholds=g.google.api.BatchingSettingsProto.toObject(e.thresholds,t,o+1)),null!=e.batchDescriptor&&Object.hasOwnProperty.call(e,"batchDescriptor")&&(r.batchDescriptor=g.google.api.BatchingDescriptorProto.toObject(e.batchDescriptor,t,o+1)),r},dt.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},dt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.BatchingConfigProto"},dt),i.BatchingSettingsProto=(_.prototype.elementCountThreshold=0,_.prototype.requestByteThreshold=d.Long?d.Long.fromBits(0,0,!1):0,_.prototype.delayThreshold=null,_.prototype.elementCountLimit=0,_.prototype.requestByteLimit=0,_.prototype.flowControlElementLimit=0,_.prototype.flowControlByteLimit=0,_.prototype.flowControlLimitExceededBehavior=0,_.create=function(e){return new _(e)},_.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.elementCountThreshold&&Object.hasOwnProperty.call(e,"elementCountThreshold")&&t.uint32(8).int32(e.elementCountThreshold),null!=e.requestByteThreshold&&Object.hasOwnProperty.call(e,"requestByteThreshold")&&t.uint32(16).int64(e.requestByteThreshold),null!=e.delayThreshold&&Object.hasOwnProperty.call(e,"delayThreshold")&&g.google.protobuf.Duration.encode(e.delayThreshold,t.uint32(26).fork(),o+1).ldelim(),null!=e.elementCountLimit&&Object.hasOwnProperty.call(e,"elementCountLimit")&&t.uint32(32).int32(e.elementCountLimit),null!=e.requestByteLimit&&Object.hasOwnProperty.call(e,"requestByteLimit")&&t.uint32(40).int32(e.requestByteLimit),null!=e.flowControlElementLimit&&Object.hasOwnProperty.call(e,"flowControlElementLimit")&&t.uint32(48).int32(e.flowControlElementLimit),null!=e.flowControlByteLimit&&Object.hasOwnProperty.call(e,"flowControlByteLimit")&&t.uint32(56).int32(e.flowControlByteLimit),null!=e.flowControlLimitExceededBehavior&&Object.hasOwnProperty.call(e,"flowControlLimitExceededBehavior")&&t.uint32(64).int32(e.flowControlLimitExceededBehavior),t},_.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},_.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.BatchingSettingsProto;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.elementCountThreshold=e.int32();break;case 2:i.requestByteThreshold=e.int64();break;case 3:i.delayThreshold=g.google.protobuf.Duration.decode(e,e.uint32(),void 0,r+1);break;case 4:i.elementCountLimit=e.int32();break;case 5:i.requestByteLimit=e.int32();break;case 6:i.flowControlElementLimit=e.int32();break;case 7:i.flowControlByteLimit=e.int32();break;case 8:i.flowControlLimitExceededBehavior=e.int32();break;default:e.skipType(7&a,r)}}return i},_.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},_.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.elementCountThreshold&&Object.hasOwnProperty.call(e,"elementCountThreshold")&&!d.isInteger(e.elementCountThreshold))return"elementCountThreshold: integer expected";if(null!=e.requestByteThreshold&&Object.hasOwnProperty.call(e,"requestByteThreshold")&&!(d.isInteger(e.requestByteThreshold)||e.requestByteThreshold&&d.isInteger(e.requestByteThreshold.low)&&d.isInteger(e.requestByteThreshold.high)))return"requestByteThreshold: integer|Long expected";if(null!=e.delayThreshold&&Object.hasOwnProperty.call(e,"delayThreshold")){t=g.google.protobuf.Duration.verify(e.delayThreshold,t+1);if(t)return"delayThreshold."+t}if(null!=e.elementCountLimit&&Object.hasOwnProperty.call(e,"elementCountLimit")&&!d.isInteger(e.elementCountLimit))return"elementCountLimit: integer expected";if(null!=e.requestByteLimit&&Object.hasOwnProperty.call(e,"requestByteLimit")&&!d.isInteger(e.requestByteLimit))return"requestByteLimit: integer expected";if(null!=e.flowControlElementLimit&&Object.hasOwnProperty.call(e,"flowControlElementLimit")&&!d.isInteger(e.flowControlElementLimit))return"flowControlElementLimit: integer expected";if(null!=e.flowControlByteLimit&&Object.hasOwnProperty.call(e,"flowControlByteLimit")&&!d.isInteger(e.flowControlByteLimit))return"flowControlByteLimit: integer expected";if(null!=e.flowControlLimitExceededBehavior&&Object.hasOwnProperty.call(e,"flowControlLimitExceededBehavior"))switch(e.flowControlLimitExceededBehavior){default:return"flowControlLimitExceededBehavior: enum value expected";case 0:case 1:case 2:case 3:}return null},_.fromObject=function(e,t){if(e instanceof g.google.api.BatchingSettingsProto)return e;if(!d.isObject(e))throw TypeError(".google.api.BatchingSettingsProto: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.BatchingSettingsProto;if(null!=e.elementCountThreshold&&(o.elementCountThreshold=0|e.elementCountThreshold),null!=e.requestByteThreshold&&(d.Long?o.requestByteThreshold=d.Long.fromValue(e.requestByteThreshold,!1):"string"==typeof e.requestByteThreshold?o.requestByteThreshold=parseInt(e.requestByteThreshold,10):"number"==typeof e.requestByteThreshold?o.requestByteThreshold=e.requestByteThreshold:"object"==typeof e.requestByteThreshold&&(o.requestByteThreshold=new d.LongBits(e.requestByteThreshold.low>>>0,e.requestByteThreshold.high>>>0).toNumber())),null!=e.delayThreshold){if(!d.isObject(e.delayThreshold))throw TypeError(".google.api.BatchingSettingsProto.delayThreshold: object expected");o.delayThreshold=g.google.protobuf.Duration.fromObject(e.delayThreshold,t+1)}switch(null!=e.elementCountLimit&&(o.elementCountLimit=0|e.elementCountLimit),null!=e.requestByteLimit&&(o.requestByteLimit=0|e.requestByteLimit),null!=e.flowControlElementLimit&&(o.flowControlElementLimit=0|e.flowControlElementLimit),null!=e.flowControlByteLimit&&(o.flowControlByteLimit=0|e.flowControlByteLimit),e.flowControlLimitExceededBehavior){default:"number"==typeof e.flowControlLimitExceededBehavior&&(o.flowControlLimitExceededBehavior=e.flowControlLimitExceededBehavior);break;case"UNSET_BEHAVIOR":case 0:o.flowControlLimitExceededBehavior=0;break;case"THROW_EXCEPTION":case 1:o.flowControlLimitExceededBehavior=1;break;case"BLOCK":case 2:o.flowControlLimitExceededBehavior=2;break;case"IGNORE":case 3:o.flowControlLimitExceededBehavior=3}return o},_.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r,n={};return t.defaults&&(n.elementCountThreshold=0,d.Long?(r=new d.Long(0,0,!1),n.requestByteThreshold=t.longs===String?r.toString():t.longs===Number?r.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?r.toBigInt():r):n.requestByteThreshold=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,n.delayThreshold=null,n.elementCountLimit=0,n.requestByteLimit=0,n.flowControlElementLimit=0,n.flowControlByteLimit=0,n.flowControlLimitExceededBehavior=t.enums===String?"UNSET_BEHAVIOR":0),null!=e.elementCountThreshold&&Object.hasOwnProperty.call(e,"elementCountThreshold")&&(n.elementCountThreshold=e.elementCountThreshold),null!=e.requestByteThreshold&&Object.hasOwnProperty.call(e,"requestByteThreshold")&&("undefined"!=typeof BigInt&&t.longs===BigInt?n.requestByteThreshold="number"==typeof e.requestByteThreshold?BigInt(e.requestByteThreshold):d.Long.fromBits(e.requestByteThreshold.low>>>0,e.requestByteThreshold.high>>>0,!1).toBigInt():"number"==typeof e.requestByteThreshold?n.requestByteThreshold=t.longs===String?String(e.requestByteThreshold):e.requestByteThreshold:n.requestByteThreshold=t.longs===String?d.Long.prototype.toString.call(e.requestByteThreshold):t.longs===Number?new d.LongBits(e.requestByteThreshold.low>>>0,e.requestByteThreshold.high>>>0).toNumber():e.requestByteThreshold),null!=e.delayThreshold&&Object.hasOwnProperty.call(e,"delayThreshold")&&(n.delayThreshold=g.google.protobuf.Duration.toObject(e.delayThreshold,t,o+1)),null!=e.elementCountLimit&&Object.hasOwnProperty.call(e,"elementCountLimit")&&(n.elementCountLimit=e.elementCountLimit),null!=e.requestByteLimit&&Object.hasOwnProperty.call(e,"requestByteLimit")&&(n.requestByteLimit=e.requestByteLimit),null!=e.flowControlElementLimit&&Object.hasOwnProperty.call(e,"flowControlElementLimit")&&(n.flowControlElementLimit=e.flowControlElementLimit),null!=e.flowControlByteLimit&&Object.hasOwnProperty.call(e,"flowControlByteLimit")&&(n.flowControlByteLimit=e.flowControlByteLimit),null!=e.flowControlLimitExceededBehavior&&Object.hasOwnProperty.call(e,"flowControlLimitExceededBehavior")&&(n.flowControlLimitExceededBehavior=t.enums!==String||void 0===g.google.api.FlowControlLimitExceededBehaviorProto[e.flowControlLimitExceededBehavior]?e.flowControlLimitExceededBehavior:g.google.api.FlowControlLimitExceededBehaviorProto[e.flowControlLimitExceededBehavior]),n},_.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},_.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.BatchingSettingsProto"},_),i.FlowControlLimitExceededBehaviorProto=(o={},(n=Object.create(o))[o[0]="UNSET_BEHAVIOR"]=0,n[o[1]="THROW_EXCEPTION"]=1,n[o[2]="BLOCK"]=2,n[o[3]="IGNORE"]=3,n),i.BatchingDescriptorProto=(gt.prototype.batchedField="",gt.prototype.discriminatorFields=d.emptyArray,gt.prototype.subresponseField="",gt.create=function(e){return new gt(e)},gt.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.batchedField&&Object.hasOwnProperty.call(e,"batchedField")&&t.uint32(10).string(e.batchedField),null!=e.discriminatorFields&&e.discriminatorFields.length)for(var r=0;r<e.discriminatorFields.length;++r)t.uint32(18).string(e.discriminatorFields[r]);return null!=e.subresponseField&&Object.hasOwnProperty.call(e,"subresponseField")&&t.uint32(26).string(e.subresponseField),t},gt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},gt.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.BatchingDescriptorProto;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.batchedField=e.string();break;case 2:i.discriminatorFields&&i.discriminatorFields.length||(i.discriminatorFields=[]),i.discriminatorFields.push(e.string());break;case 3:i.subresponseField=e.string();break;default:e.skipType(7&a,r)}}return i},gt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},gt.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.batchedField&&Object.hasOwnProperty.call(e,"batchedField")&&!d.isString(e.batchedField))return"batchedField: string expected";if(null!=e.discriminatorFields&&Object.hasOwnProperty.call(e,"discriminatorFields")){if(!Array.isArray(e.discriminatorFields))return"discriminatorFields: array expected";for(var o=0;o<e.discriminatorFields.length;++o)if(!d.isString(e.discriminatorFields[o]))return"discriminatorFields: string[] expected"}return null!=e.subresponseField&&Object.hasOwnProperty.call(e,"subresponseField")&&!d.isString(e.subresponseField)?"subresponseField: string expected":null},gt.fromObject=function(e,t){if(e instanceof g.google.api.BatchingDescriptorProto)return e;if(!d.isObject(e))throw TypeError(".google.api.BatchingDescriptorProto: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.BatchingDescriptorProto;if(null!=e.batchedField&&(o.batchedField=String(e.batchedField)),e.discriminatorFields){if(!Array.isArray(e.discriminatorFields))throw TypeError(".google.api.BatchingDescriptorProto.discriminatorFields: array expected");o.discriminatorFields=[];for(var r=0;r<e.discriminatorFields.length;++r)o.discriminatorFields[r]=String(e.discriminatorFields[r])}return null!=e.subresponseField&&(o.subresponseField=String(e.subresponseField)),o},gt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.discriminatorFields=[]),t.defaults&&(r.batchedField="",r.subresponseField=""),null!=e.batchedField&&Object.hasOwnProperty.call(e,"batchedField")&&(r.batchedField=e.batchedField),e.discriminatorFields&&e.discriminatorFields.length){r.discriminatorFields=[];for(var n=0;n<e.discriminatorFields.length;++n)r.discriminatorFields[n]=e.discriminatorFields[n]}return null!=e.subresponseField&&Object.hasOwnProperty.call(e,"subresponseField")&&(r.subresponseField=e.subresponseField),r},gt.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},gt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.BatchingDescriptorProto"},gt),i.LaunchStage=(o={},(n=Object.create(o))[o[0]="LAUNCH_STAGE_UNSPECIFIED"]=0,n[o[6]="UNIMPLEMENTED"]=6,n[o[7]="PRELAUNCH"]=7,n[o[1]="EARLY_ACCESS"]=1,n[o[2]="ALPHA"]=2,n[o[3]="BETA"]=3,n[o[4]="GA"]=4,n[o[5]="DEPRECATED"]=5,n),i.FieldBehavior=(o={},(n=Object.create(o))[o[0]="FIELD_BEHAVIOR_UNSPECIFIED"]=0,n[o[1]="OPTIONAL"]=1,n[o[2]="REQUIRED"]=2,n[o[3]="OUTPUT_ONLY"]=3,n[o[4]="INPUT_ONLY"]=4,n[o[5]="IMMUTABLE"]=5,n[o[6]="UNORDERED_LIST"]=6,n[o[7]="NON_EMPTY_DEFAULT"]=7,n[o[8]="IDENTIFIER"]=8,n),i.ResourceDescriptor=(C.prototype.type="",C.prototype.pattern=d.emptyArray,C.prototype.nameField="",C.prototype.history=0,C.prototype.plural="",C.prototype.singular="",C.prototype.style=d.emptyArray,C.create=function(e){return new C(e)},C.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(10).string(e.type),null!=e.pattern&&e.pattern.length)for(var r=0;r<e.pattern.length;++r)t.uint32(18).string(e.pattern[r]);if(null!=e.nameField&&Object.hasOwnProperty.call(e,"nameField")&&t.uint32(26).string(e.nameField),null!=e.history&&Object.hasOwnProperty.call(e,"history")&&t.uint32(32).int32(e.history),null!=e.plural&&Object.hasOwnProperty.call(e,"plural")&&t.uint32(42).string(e.plural),null!=e.singular&&Object.hasOwnProperty.call(e,"singular")&&t.uint32(50).string(e.singular),null!=e.style&&e.style.length){t.uint32(82).fork();for(r=0;r<e.style.length;++r)t.int32(e.style[r]);t.ldelim()}return t},C.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},C.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.ResourceDescriptor;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.type=e.string();break;case 2:i.pattern&&i.pattern.length||(i.pattern=[]),i.pattern.push(e.string());break;case 3:i.nameField=e.string();break;case 4:i.history=e.int32();break;case 5:i.plural=e.string();break;case 6:i.singular=e.string();break;case 10:if(i.style&&i.style.length||(i.style=[]),2==(7&a))for(var l=e.uint32()+e.pos;e.pos<l;)i.style.push(e.int32());else i.style.push(e.int32());break;default:e.skipType(7&a,r)}}return i},C.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},C.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.type&&Object.hasOwnProperty.call(e,"type")&&!d.isString(e.type))return"type: string expected";if(null!=e.pattern&&Object.hasOwnProperty.call(e,"pattern")){if(!Array.isArray(e.pattern))return"pattern: array expected";for(var o=0;o<e.pattern.length;++o)if(!d.isString(e.pattern[o]))return"pattern: string[] expected"}if(null!=e.nameField&&Object.hasOwnProperty.call(e,"nameField")&&!d.isString(e.nameField))return"nameField: string expected";if(null!=e.history&&Object.hasOwnProperty.call(e,"history"))switch(e.history){default:return"history: enum value expected";case 0:case 1:case 2:}if(null!=e.plural&&Object.hasOwnProperty.call(e,"plural")&&!d.isString(e.plural))return"plural: string expected";if(null!=e.singular&&Object.hasOwnProperty.call(e,"singular")&&!d.isString(e.singular))return"singular: string expected";if(null!=e.style&&Object.hasOwnProperty.call(e,"style")){if(!Array.isArray(e.style))return"style: array expected";for(o=0;o<e.style.length;++o)switch(e.style[o]){default:return"style: enum value[] expected";case 0:case 1:}}return null},C.fromObject=function(e,t){if(e instanceof g.google.api.ResourceDescriptor)return e;if(!d.isObject(e))throw TypeError(".google.api.ResourceDescriptor: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.api.ResourceDescriptor;if(null!=e.type&&(o.type=String(e.type)),e.pattern){if(!Array.isArray(e.pattern))throw TypeError(".google.api.ResourceDescriptor.pattern: array expected");o.pattern=[];for(var r=0;r<e.pattern.length;++r)o.pattern[r]=String(e.pattern[r])}switch(null!=e.nameField&&(o.nameField=String(e.nameField)),e.history){default:"number"==typeof e.history&&(o.history=e.history);break;case"HISTORY_UNSPECIFIED":case 0:o.history=0;break;case"ORIGINALLY_SINGLE_PATTERN":case 1:o.history=1;break;case"FUTURE_MULTI_PATTERN":case 2:o.history=2}if(null!=e.plural&&(o.plural=String(e.plural)),null!=e.singular&&(o.singular=String(e.singular)),e.style){if(!Array.isArray(e.style))throw TypeError(".google.api.ResourceDescriptor.style: array expected");o.style=[];for(r=0;r<e.style.length;++r)switch(e.style[r]){default:if("number"==typeof e.style[r]){o.style[r]=e.style[r];break}case"STYLE_UNSPECIFIED":case 0:o.style[r]=0;break;case"DECLARATIVE_FRIENDLY":case 1:o.style[r]=1}}return o},C.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.pattern=[],r.style=[]),t.defaults&&(r.type="",r.nameField="",r.history=t.enums===String?"HISTORY_UNSPECIFIED":0,r.plural="",r.singular=""),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&(r.type=e.type),e.pattern&&e.pattern.length){r.pattern=[];for(var n=0;n<e.pattern.length;++n)r.pattern[n]=e.pattern[n]}if(null!=e.nameField&&Object.hasOwnProperty.call(e,"nameField")&&(r.nameField=e.nameField),null!=e.history&&Object.hasOwnProperty.call(e,"history")&&(r.history=t.enums!==String||void 0===g.google.api.ResourceDescriptor.History[e.history]?e.history:g.google.api.ResourceDescriptor.History[e.history]),null!=e.plural&&Object.hasOwnProperty.call(e,"plural")&&(r.plural=e.plural),null!=e.singular&&Object.hasOwnProperty.call(e,"singular")&&(r.singular=e.singular),e.style&&e.style.length){r.style=[];for(n=0;n<e.style.length;++n)r.style[n]=t.enums!==String||void 0===g.google.api.ResourceDescriptor.Style[e.style[n]]?e.style[n]:g.google.api.ResourceDescriptor.Style[e.style[n]]}return r},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.api.ResourceDescriptor"},C.History=(o={},(n=Object.create(o))[o[0]="HISTORY_UNSPECIFIED"]=0,n[o[1]="ORIGINALLY_SINGLE_PATTERN"]=1,n[o[2]="FUTURE_MULTI_PATTERN"]=2,n),C.Style=(o={},(n=Object.create(o))[o[0]="STYLE_UNSPECIFIED"]=0,n[o[1]="DECLARATIVE_FRIENDLY"]=1,n),C),i.ResourceReference=(ft.prototype.type="",ft.prototype.childType="",ft.create=function(e){return new ft(e)},ft.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(10).string(e.type),null!=e.childType&&Object.hasOwnProperty.call(e,"childType")&&t.uint32(18).string(e.childType),t},ft.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ft.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.api.ResourceReference;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.type=e.string();break;case 2:i.childType=e.string();break;default:e.skipType(7&a,r)}}return i},ft.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ft.verify=function(e,t){return"object"!=typeof e||null===e?"object expected":(t=void 0===t?0:t)>d.recursionLimit?"maximum nesting depth exceeded":null!=e.type&&Object.hasOwnProperty.call(e,"type")&&!d.isString(e.type)?"type: string expected":null!=e.childType&&Object.hasOwnProperty.call(e,"childType")&&!d.isString(e.childType)?"childType: string expected":null},ft.fromObject=function(e,t){if(e instanceof g.google.api.ResourceReference)return e;if(!d.isObject(e))throw TypeError(".google.api.ResourceReference: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.api.ResourceReference;return null!=e.type&&(t.type=String(e.type)),null!=e.childType&&(t.childType=String(e.childType)),t},ft.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return t.defaults&&(o.type="",o.childType=""),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&(o.type=e.type),null!=e.childType&&Object.hasOwnProperty.call(e,"childType")&&(o.childType=e.childType),o},ft.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},ft.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.ResourceReference"},ft),i),A.rpc=((a={}).Status=(mt.prototype.code=0,mt.prototype.message="",mt.prototype.details=d.emptyArray,mt.create=function(e){return new mt(e)},mt.encode=function(e,t,o){if(t=t||l.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.code&&Object.hasOwnProperty.call(e,"code")&&t.uint32(8).int32(e.code),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&t.uint32(18).string(e.message),null!=e.details&&e.details.length)for(var r=0;r<e.details.length;++r)g.google.protobuf.Any.encode(e.details[r],t.uint32(26).fork(),o+1).ldelim();return t},mt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},mt.decode=function(e,t,o,r){if(e instanceof p||(e=p.create(e)),(r=void 0===r?0:r)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var n=void 0===t?e.len:e.pos+t,i=new g.google.rpc.Status;e.pos<n;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.code=e.int32();break;case 2:i.message=e.string();break;case 3:i.details&&i.details.length||(i.details=[]),i.details.push(g.google.protobuf.Any.decode(e,e.uint32(),void 0,r+1));break;default:e.skipType(7&a,r)}}return i},mt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},mt.verify=function(e,t){if("object"!=typeof e||null===e)return"object expected";if((t=void 0===t?0:t)>d.recursionLimit)return"maximum nesting depth exceeded";if(null!=e.code&&Object.hasOwnProperty.call(e,"code")&&!d.isInteger(e.code))return"code: integer expected";if(null!=e.message&&Object.hasOwnProperty.call(e,"message")&&!d.isString(e.message))return"message: string expected";if(null!=e.details&&Object.hasOwnProperty.call(e,"details")){if(!Array.isArray(e.details))return"details: array expected";for(var o=0;o<e.details.length;++o){var r=g.google.protobuf.Any.verify(e.details[o],t+1);if(r)return"details."+r}}return null},mt.fromObject=function(e,t){if(e instanceof g.google.rpc.Status)return e;if(!d.isObject(e))throw TypeError(".google.rpc.Status: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.rpc.Status;if(null!=e.code&&(o.code=0|e.code),null!=e.message&&(o.message=String(e.message)),e.details){if(!Array.isArray(e.details))throw TypeError(".google.rpc.Status.details: array expected");o.details=[];for(var r=0;r<e.details.length;++r){if(!d.isObject(e.details[r]))throw TypeError(".google.rpc.Status.details: object expected");o.details[r]=g.google.protobuf.Any.fromObject(e.details[r],t+1)}}return o},mt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var r={};if((t.arrays||t.defaults)&&(r.details=[]),t.defaults&&(r.code=0,r.message=""),null!=e.code&&Object.hasOwnProperty.call(e,"code")&&(r.code=e.code),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&(r.message=e.message),e.details&&e.details.length){r.details=[];for(var n=0;n<e.details.length;++n)r.details[n]=g.google.protobuf.Any.toObject(e.details[n],t,o+1)}return r},mt.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},mt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.rpc.Status"},mt),a),A),g});
|