@google-cloud/pubsub-api 0.2.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.
@@ -0,0 +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(n){var e,t,o,r,F,p=n.Reader,i=n.Writer,d=n.util,g=n.roots._google_cloud_pubsub_api_protos||(n.roots._google_cloud_pubsub_api_protos={});function C(e,t,o){n.rpc.Service.call(this,e,t,o)}function V(e){if(this.allowedPersistenceRegions=[],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 a(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 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 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 G(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 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 c(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 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 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 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 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 Y(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 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 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 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 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 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 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 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 $(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 y(e){if(this.labels={},this.messageTransforms=[],this.tags={},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.attributes={},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 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 re(e){if(this.messages=[],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.messageIds=[],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(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(this.topics=[],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 le(e){if(this.subscriptions=[],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(this.snapshots=[],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 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 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,t,o){n.rpc.Service.call(this,e,t,o)}function O(e){if(this.labels={},this.messageTransforms=[],this.tags={},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 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 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 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.attributes={},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 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 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 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 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 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 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 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 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 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 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 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 De(e){if(this.subscriptions=[],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 Ae(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 Ne(e){if(this.receivedMessages=[],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.ackIds=[],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.ackIds=[],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.ackIds=[],this.modifyDeadlineSeconds=[],this.modifyDeadlineAckIds=[],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.receivedMessages=[],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(this.ackIds=[],this.invalidAckIds=[],this.unorderedAckIds=[],this.temporaryFailedAckIds=[],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.ackIds=[],this.invalidAckIds=[],this.temporaryFailedAckIds=[],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 Be(e){if(this.labels={},this.tags={},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(this.labels={},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 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 He(e){if(this.snapshots=[],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 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 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 Xe(e,t,o){n.rpc.Service.call(this,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 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 $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(this.schemas=[],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 nt(e){if(this.schemas=[],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 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(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(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 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(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(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 x(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 gt(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 ft(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 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 P(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 bt(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 mt(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 ht(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 yt(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 vt(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 wt(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 jt(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 xt(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 kt(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 E(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 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(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 T(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 I(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 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 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 Rt(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 At(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 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 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 Nt(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 _t(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 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 Ct(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 Vt(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 R(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 A(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 L(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 Mt(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 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 Bt(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 Gt(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 Jt(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 qt(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 zt(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 N(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 Ht(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 Yt(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 Kt(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 Wt(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 Xt(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 Qt(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 Zt(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 $t(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 eo(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 to(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 oo(e){if(this.paths=[],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 no(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 ro(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 io(e){if(this.values=[],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 ao(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]])}return g.google=((F={}).pubsub=((r={}).v1=((t={}).Publisher=(((C.prototype=Object.create(n.rpc.Service.prototype)).constructor=C).create=function(e,t,o){return new this(e,t,o)},Object.defineProperty(C.prototype.createTopic=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.Topic,g.google.pubsub.v1.Topic,t,o)},"name",{value:"CreateTopic"}),Object.defineProperty(C.prototype.updateTopic=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.UpdateTopicRequest,g.google.pubsub.v1.Topic,t,o)},"name",{value:"UpdateTopic"}),Object.defineProperty(C.prototype.publish=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.PublishRequest,g.google.pubsub.v1.PublishResponse,t,o)},"name",{value:"Publish"}),Object.defineProperty(C.prototype.getTopic=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.GetTopicRequest,g.google.pubsub.v1.Topic,t,o)},"name",{value:"GetTopic"}),Object.defineProperty(C.prototype.listTopics=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.ListTopicsRequest,g.google.pubsub.v1.ListTopicsResponse,t,o)},"name",{value:"ListTopics"}),Object.defineProperty(C.prototype.listTopicSubscriptions=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.ListTopicSubscriptionsRequest,g.google.pubsub.v1.ListTopicSubscriptionsResponse,t,o)},"name",{value:"ListTopicSubscriptions"}),Object.defineProperty(C.prototype.listTopicSnapshots=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.ListTopicSnapshotsRequest,g.google.pubsub.v1.ListTopicSnapshotsResponse,t,o)},"name",{value:"ListTopicSnapshots"}),Object.defineProperty(C.prototype.deleteTopic=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.DeleteTopicRequest,g.google.protobuf.Empty,t,o)},"name",{value:"DeleteTopic"}),Object.defineProperty(C.prototype.detachSubscription=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.DetachSubscriptionRequest,g.google.pubsub.v1.DetachSubscriptionResponse,t,o)},"name",{value:"DetachSubscription"}),C),t.MessageStoragePolicy=(V.prototype.allowedPersistenceRegions=d.emptyArray,V.prototype.enforceInTransit=!1,V.create=function(e){return new V(e)},V.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.allowedPersistenceRegions&&e.allowedPersistenceRegions.length)for(var n=0;n<e.allowedPersistenceRegions.length;++n)t.uint32(10).string(e.allowedPersistenceRegions[n]);return null!=e.enforceInTransit&&Object.hasOwnProperty.call(e,"enforceInTransit")&&t.uint32(16).bool(e.enforceInTransit),t},V.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},V.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.MessageStoragePolicy;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.allowedPersistenceRegions&&i.allowedPersistenceRegions.length||(i.allowedPersistenceRegions=[]),i.allowedPersistenceRegions.push(e.string());break;case 2:i.enforceInTransit=e.bool();break;default:e.skipType(7&a,n)}}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.allowedPersistenceRegions&&Object.hasOwnProperty.call(e,"allowedPersistenceRegions")){if(!Array.isArray(e.allowedPersistenceRegions))return"allowedPersistenceRegions: array expected";for(var o=0;o<e.allowedPersistenceRegions.length;++o)if(!d.isString(e.allowedPersistenceRegions[o]))return"allowedPersistenceRegions: string[] expected"}return null!=e.enforceInTransit&&Object.hasOwnProperty.call(e,"enforceInTransit")&&"boolean"!=typeof e.enforceInTransit?"enforceInTransit: boolean expected":null},V.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.MessageStoragePolicy)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.MessageStoragePolicy: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.MessageStoragePolicy;if(e.allowedPersistenceRegions){if(!Array.isArray(e.allowedPersistenceRegions))throw TypeError(".google.pubsub.v1.MessageStoragePolicy.allowedPersistenceRegions: array expected");o.allowedPersistenceRegions=[];for(var n=0;n<e.allowedPersistenceRegions.length;++n)o.allowedPersistenceRegions[n]=String(e.allowedPersistenceRegions[n])}return null!=e.enforceInTransit&&(o.enforceInTransit=Boolean(e.enforceInTransit)),o},V.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.allowedPersistenceRegions=[]),t.defaults&&(n.enforceInTransit=!1),e.allowedPersistenceRegions&&e.allowedPersistenceRegions.length){n.allowedPersistenceRegions=[];for(var r=0;r<e.allowedPersistenceRegions.length;++r)n.allowedPersistenceRegions[r]=e.allowedPersistenceRegions[r]}return null!=e.enforceInTransit&&Object.hasOwnProperty.call(e,"enforceInTransit")&&(n.enforceInTransit=e.enforceInTransit),n},V.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},V.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.MessageStoragePolicy"},V),t.SchemaSettings=(M.prototype.schema="",M.prototype.encoding=0,M.prototype.firstRevisionId="",M.prototype.lastRevisionId="",M.create=function(e){return new M(e)},M.encode=function(e,t,o){if(t=t||i.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),null!=e.encoding&&Object.hasOwnProperty.call(e,"encoding")&&t.uint32(16).int32(e.encoding),null!=e.firstRevisionId&&Object.hasOwnProperty.call(e,"firstRevisionId")&&t.uint32(26).string(e.firstRevisionId),null!=e.lastRevisionId&&Object.hasOwnProperty.call(e,"lastRevisionId")&&t.uint32(34).string(e.lastRevisionId),t},M.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},M.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.SchemaSettings;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.schema=e.string();break;case 2:i.encoding=e.int32();break;case 3:i.firstRevisionId=e.string();break;case 4:i.lastRevisionId=e.string();break;default:e.skipType(7&a,n)}}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.schema&&Object.hasOwnProperty.call(e,"schema")&&!d.isString(e.schema))return"schema: string expected";if(null!=e.encoding&&Object.hasOwnProperty.call(e,"encoding"))switch(e.encoding){default:return"encoding: enum value expected";case 0:case 1:case 2:}return null!=e.firstRevisionId&&Object.hasOwnProperty.call(e,"firstRevisionId")&&!d.isString(e.firstRevisionId)?"firstRevisionId: string expected":null!=e.lastRevisionId&&Object.hasOwnProperty.call(e,"lastRevisionId")&&!d.isString(e.lastRevisionId)?"lastRevisionId: string expected":null},M.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.SchemaSettings)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.SchemaSettings: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.SchemaSettings;switch(null!=e.schema&&(o.schema=String(e.schema)),e.encoding){default:"number"==typeof e.encoding&&(o.encoding=e.encoding);break;case"ENCODING_UNSPECIFIED":case 0:o.encoding=0;break;case"JSON":case 1:o.encoding=1;break;case"BINARY":case 2:o.encoding=2}return null!=e.firstRevisionId&&(o.firstRevisionId=String(e.firstRevisionId)),null!=e.lastRevisionId&&(o.lastRevisionId=String(e.lastRevisionId)),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.schema="",o.encoding=t.enums===String?"ENCODING_UNSPECIFIED":0,o.firstRevisionId="",o.lastRevisionId=""),null!=e.schema&&Object.hasOwnProperty.call(e,"schema")&&(o.schema=e.schema),null!=e.encoding&&Object.hasOwnProperty.call(e,"encoding")&&(o.encoding=t.enums!==String||void 0===g.google.pubsub.v1.Encoding[e.encoding]?e.encoding:g.google.pubsub.v1.Encoding[e.encoding]),null!=e.firstRevisionId&&Object.hasOwnProperty.call(e,"firstRevisionId")&&(o.firstRevisionId=e.firstRevisionId),null!=e.lastRevisionId&&Object.hasOwnProperty.call(e,"lastRevisionId")&&(o.lastRevisionId=e.lastRevisionId),o},M.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},M.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.SchemaSettings"},M),t.IngestionDataSourceSettings=(a.prototype.awsKinesis=null,a.prototype.cloudStorage=null,a.prototype.azureEventHubs=null,a.prototype.awsMsk=null,a.prototype.confluentCloud=null,a.prototype.platformLogsSettings=null,Object.defineProperty(a.prototype,"source",{get:d.oneOfGetter(o=["awsKinesis","cloudStorage","azureEventHubs","awsMsk","confluentCloud"]),set:d.oneOfSetter(o)}),a.create=function(e){return new a(e)},a.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.awsKinesis&&Object.hasOwnProperty.call(e,"awsKinesis")&&g.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.encode(e.awsKinesis,t.uint32(10).fork(),o+1).ldelim(),null!=e.cloudStorage&&Object.hasOwnProperty.call(e,"cloudStorage")&&g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.encode(e.cloudStorage,t.uint32(18).fork(),o+1).ldelim(),null!=e.azureEventHubs&&Object.hasOwnProperty.call(e,"azureEventHubs")&&g.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.encode(e.azureEventHubs,t.uint32(26).fork(),o+1).ldelim(),null!=e.platformLogsSettings&&Object.hasOwnProperty.call(e,"platformLogsSettings")&&g.google.pubsub.v1.PlatformLogsSettings.encode(e.platformLogsSettings,t.uint32(34).fork(),o+1).ldelim(),null!=e.awsMsk&&Object.hasOwnProperty.call(e,"awsMsk")&&g.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.encode(e.awsMsk,t.uint32(42).fork(),o+1).ldelim(),null!=e.confluentCloud&&Object.hasOwnProperty.call(e,"confluentCloud")&&g.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.encode(e.confluentCloud,t.uint32(50).fork(),o+1).ldelim(),t},a.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},a.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.IngestionDataSourceSettings;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.awsKinesis=g.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.decode(e,e.uint32(),void 0,n+1);break;case 2:i.cloudStorage=g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.decode(e,e.uint32(),void 0,n+1);break;case 3:i.azureEventHubs=g.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.decode(e,e.uint32(),void 0,n+1);break;case 5:i.awsMsk=g.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.decode(e,e.uint32(),void 0,n+1);break;case 6:i.confluentCloud=g.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.decode(e,e.uint32(),void 0,n+1);break;case 4:i.platformLogsSettings=g.google.pubsub.v1.PlatformLogsSettings.decode(e,e.uint32(),void 0,n+1);break;default:e.skipType(7&a,n)}}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";var o,n={};if(null!=e.awsKinesis&&Object.hasOwnProperty.call(e,"awsKinesis")&&(o=g.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.verify(e.awsKinesis,t+(n.source=1))))return"awsKinesis."+o;if(null!=e.cloudStorage&&Object.hasOwnProperty.call(e,"cloudStorage")){if(1===n.source)return"source: multiple values";if(o=g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.verify(e.cloudStorage,t+(n.source=1)))return"cloudStorage."+o}if(null!=e.azureEventHubs&&Object.hasOwnProperty.call(e,"azureEventHubs")){if(1===n.source)return"source: multiple values";if(o=g.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.verify(e.azureEventHubs,t+(n.source=1)))return"azureEventHubs."+o}if(null!=e.awsMsk&&Object.hasOwnProperty.call(e,"awsMsk")){if(1===n.source)return"source: multiple values";if(o=g.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.verify(e.awsMsk,t+(n.source=1)))return"awsMsk."+o}if(null!=e.confluentCloud&&Object.hasOwnProperty.call(e,"confluentCloud")){if(1===n.source)return"source: multiple values";if(o=g.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.verify(e.confluentCloud,t+(n.source=1)))return"confluentCloud."+o}if(null!=e.platformLogsSettings&&Object.hasOwnProperty.call(e,"platformLogsSettings")&&(o=g.google.pubsub.v1.PlatformLogsSettings.verify(e.platformLogsSettings,t+1)))return"platformLogsSettings."+o;return null},a.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.IngestionDataSourceSettings)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.IngestionDataSourceSettings: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.IngestionDataSourceSettings;if(null!=e.awsKinesis){if(!d.isObject(e.awsKinesis))throw TypeError(".google.pubsub.v1.IngestionDataSourceSettings.awsKinesis: object expected");o.awsKinesis=g.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.fromObject(e.awsKinesis,t+1)}if(null!=e.cloudStorage){if(!d.isObject(e.cloudStorage))throw TypeError(".google.pubsub.v1.IngestionDataSourceSettings.cloudStorage: object expected");o.cloudStorage=g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.fromObject(e.cloudStorage,t+1)}if(null!=e.azureEventHubs){if(!d.isObject(e.azureEventHubs))throw TypeError(".google.pubsub.v1.IngestionDataSourceSettings.azureEventHubs: object expected");o.azureEventHubs=g.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.fromObject(e.azureEventHubs,t+1)}if(null!=e.awsMsk){if(!d.isObject(e.awsMsk))throw TypeError(".google.pubsub.v1.IngestionDataSourceSettings.awsMsk: object expected");o.awsMsk=g.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.fromObject(e.awsMsk,t+1)}if(null!=e.confluentCloud){if(!d.isObject(e.confluentCloud))throw TypeError(".google.pubsub.v1.IngestionDataSourceSettings.confluentCloud: object expected");o.confluentCloud=g.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.fromObject(e.confluentCloud,t+1)}if(null!=e.platformLogsSettings){if(!d.isObject(e.platformLogsSettings))throw TypeError(".google.pubsub.v1.IngestionDataSourceSettings.platformLogsSettings: object expected");o.platformLogsSettings=g.google.pubsub.v1.PlatformLogsSettings.fromObject(e.platformLogsSettings,t+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 n={};return t.defaults&&(n.platformLogsSettings=null),null!=e.awsKinesis&&Object.hasOwnProperty.call(e,"awsKinesis")&&(n.awsKinesis=g.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.toObject(e.awsKinesis,t,o+1),t.oneofs)&&(n.source="awsKinesis"),null!=e.cloudStorage&&Object.hasOwnProperty.call(e,"cloudStorage")&&(n.cloudStorage=g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.toObject(e.cloudStorage,t,o+1),t.oneofs)&&(n.source="cloudStorage"),null!=e.azureEventHubs&&Object.hasOwnProperty.call(e,"azureEventHubs")&&(n.azureEventHubs=g.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.toObject(e.azureEventHubs,t,o+1),t.oneofs)&&(n.source="azureEventHubs"),null!=e.platformLogsSettings&&Object.hasOwnProperty.call(e,"platformLogsSettings")&&(n.platformLogsSettings=g.google.pubsub.v1.PlatformLogsSettings.toObject(e.platformLogsSettings,t,o+1)),null!=e.awsMsk&&Object.hasOwnProperty.call(e,"awsMsk")&&(n.awsMsk=g.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.toObject(e.awsMsk,t,o+1),t.oneofs)&&(n.source="awsMsk"),null!=e.confluentCloud&&Object.hasOwnProperty.call(e,"confluentCloud")&&(n.confluentCloud=g.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.toObject(e.confluentCloud,t,o+1),t.oneofs)&&(n.source="confluentCloud"),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},a.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.IngestionDataSourceSettings"},a.AwsKinesis=(U.prototype.state=0,U.prototype.streamArn="",U.prototype.consumerArn="",U.prototype.awsRoleArn="",U.prototype.gcpServiceAccount="",U.create=function(e){return new U(e)},U.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.state&&Object.hasOwnProperty.call(e,"state")&&t.uint32(8).int32(e.state),null!=e.streamArn&&Object.hasOwnProperty.call(e,"streamArn")&&t.uint32(18).string(e.streamArn),null!=e.consumerArn&&Object.hasOwnProperty.call(e,"consumerArn")&&t.uint32(26).string(e.consumerArn),null!=e.awsRoleArn&&Object.hasOwnProperty.call(e,"awsRoleArn")&&t.uint32(34).string(e.awsRoleArn),null!=e.gcpServiceAccount&&Object.hasOwnProperty.call(e,"gcpServiceAccount")&&t.uint32(42).string(e.gcpServiceAccount),t},U.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},U.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.state=e.int32();break;case 2:i.streamArn=e.string();break;case 3:i.consumerArn=e.string();break;case 4:i.awsRoleArn=e.string();break;case 5:i.gcpServiceAccount=e.string();break;default:e.skipType(7&a,n)}}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";if(null!=e.state&&Object.hasOwnProperty.call(e,"state"))switch(e.state){default:return"state: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:}return null!=e.streamArn&&Object.hasOwnProperty.call(e,"streamArn")&&!d.isString(e.streamArn)?"streamArn: string expected":null!=e.consumerArn&&Object.hasOwnProperty.call(e,"consumerArn")&&!d.isString(e.consumerArn)?"consumerArn: string expected":null!=e.awsRoleArn&&Object.hasOwnProperty.call(e,"awsRoleArn")&&!d.isString(e.awsRoleArn)?"awsRoleArn: string expected":null!=e.gcpServiceAccount&&Object.hasOwnProperty.call(e,"gcpServiceAccount")&&!d.isString(e.gcpServiceAccount)?"gcpServiceAccount: string expected":null},U.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis;switch(e.state){default:"number"==typeof e.state&&(o.state=e.state);break;case"STATE_UNSPECIFIED":case 0:o.state=0;break;case"ACTIVE":case 1:o.state=1;break;case"KINESIS_PERMISSION_DENIED":case 2:o.state=2;break;case"PUBLISH_PERMISSION_DENIED":case 3:o.state=3;break;case"STREAM_NOT_FOUND":case 4:o.state=4;break;case"CONSUMER_NOT_FOUND":case 5:o.state=5}return null!=e.streamArn&&(o.streamArn=String(e.streamArn)),null!=e.consumerArn&&(o.consumerArn=String(e.consumerArn)),null!=e.awsRoleArn&&(o.awsRoleArn=String(e.awsRoleArn)),null!=e.gcpServiceAccount&&(o.gcpServiceAccount=String(e.gcpServiceAccount)),o},U.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.state=t.enums===String?"STATE_UNSPECIFIED":0,o.streamArn="",o.consumerArn="",o.awsRoleArn="",o.gcpServiceAccount=""),null!=e.state&&Object.hasOwnProperty.call(e,"state")&&(o.state=t.enums!==String||void 0===g.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State[e.state]?e.state:g.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State[e.state]),null!=e.streamArn&&Object.hasOwnProperty.call(e,"streamArn")&&(o.streamArn=e.streamArn),null!=e.consumerArn&&Object.hasOwnProperty.call(e,"consumerArn")&&(o.consumerArn=e.consumerArn),null!=e.awsRoleArn&&Object.hasOwnProperty.call(e,"awsRoleArn")&&(o.awsRoleArn=e.awsRoleArn),null!=e.gcpServiceAccount&&Object.hasOwnProperty.call(e,"gcpServiceAccount")&&(o.gcpServiceAccount=e.gcpServiceAccount),o},U.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},U.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis"},U.State=(o={},(e=Object.create(o))[o[0]="STATE_UNSPECIFIED"]=0,e[o[1]="ACTIVE"]=1,e[o[2]="KINESIS_PERMISSION_DENIED"]=2,e[o[3]="PUBLISH_PERMISSION_DENIED"]=3,e[o[4]="STREAM_NOT_FOUND"]=4,e[o[5]="CONSUMER_NOT_FOUND"]=5,e),U),a.CloudStorage=(s.prototype.state=0,s.prototype.bucket="",s.prototype.textFormat=null,s.prototype.avroFormat=null,s.prototype.pubsubAvroFormat=null,s.prototype.minimumObjectCreateTime=null,s.prototype.matchGlob="",Object.defineProperty(s.prototype,"inputFormat",{get:d.oneOfGetter(o=["textFormat","avroFormat","pubsubAvroFormat"]),set:d.oneOfSetter(o)}),s.create=function(e){return new s(e)},s.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.state&&Object.hasOwnProperty.call(e,"state")&&t.uint32(8).int32(e.state),null!=e.bucket&&Object.hasOwnProperty.call(e,"bucket")&&t.uint32(18).string(e.bucket),null!=e.textFormat&&Object.hasOwnProperty.call(e,"textFormat")&&g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.encode(e.textFormat,t.uint32(26).fork(),o+1).ldelim(),null!=e.avroFormat&&Object.hasOwnProperty.call(e,"avroFormat")&&g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.encode(e.avroFormat,t.uint32(34).fork(),o+1).ldelim(),null!=e.pubsubAvroFormat&&Object.hasOwnProperty.call(e,"pubsubAvroFormat")&&g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat.encode(e.pubsubAvroFormat,t.uint32(42).fork(),o+1).ldelim(),null!=e.minimumObjectCreateTime&&Object.hasOwnProperty.call(e,"minimumObjectCreateTime")&&g.google.protobuf.Timestamp.encode(e.minimumObjectCreateTime,t.uint32(50).fork(),o+1).ldelim(),null!=e.matchGlob&&Object.hasOwnProperty.call(e,"matchGlob")&&t.uint32(74).string(e.matchGlob),t},s.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},s.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.state=e.int32();break;case 2:i.bucket=e.string();break;case 3:i.textFormat=g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.decode(e,e.uint32(),void 0,n+1);break;case 4:i.avroFormat=g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.decode(e,e.uint32(),void 0,n+1);break;case 5:i.pubsubAvroFormat=g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat.decode(e,e.uint32(),void 0,n+1);break;case 6:i.minimumObjectCreateTime=g.google.protobuf.Timestamp.decode(e,e.uint32(),void 0,n+1);break;case 9:i.matchGlob=e.string();break;default:e.skipType(7&a,n)}}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,n={};if(null!=e.state&&Object.hasOwnProperty.call(e,"state"))switch(e.state){default:return"state: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:}if(null!=e.bucket&&Object.hasOwnProperty.call(e,"bucket")&&!d.isString(e.bucket))return"bucket: string expected";if(null!=e.textFormat&&Object.hasOwnProperty.call(e,"textFormat")&&(o=g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.verify(e.textFormat,t+(n.inputFormat=1))))return"textFormat."+o;if(null!=e.avroFormat&&Object.hasOwnProperty.call(e,"avroFormat")){if(1===n.inputFormat)return"inputFormat: multiple values";if(o=g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.verify(e.avroFormat,t+(n.inputFormat=1)))return"avroFormat."+o}if(null!=e.pubsubAvroFormat&&Object.hasOwnProperty.call(e,"pubsubAvroFormat")){if(1===n.inputFormat)return"inputFormat: multiple values";if(o=g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat.verify(e.pubsubAvroFormat,t+(n.inputFormat=1)))return"pubsubAvroFormat."+o}if(null!=e.minimumObjectCreateTime&&Object.hasOwnProperty.call(e,"minimumObjectCreateTime")&&(o=g.google.protobuf.Timestamp.verify(e.minimumObjectCreateTime,t+1)))return"minimumObjectCreateTime."+o;return null!=e.matchGlob&&Object.hasOwnProperty.call(e,"matchGlob")&&!d.isString(e.matchGlob)?"matchGlob: string expected":null},s.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.IngestionDataSourceSettings.CloudStorage: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage;switch(e.state){default:"number"==typeof e.state&&(o.state=e.state);break;case"STATE_UNSPECIFIED":case 0:o.state=0;break;case"ACTIVE":case 1:o.state=1;break;case"CLOUD_STORAGE_PERMISSION_DENIED":case 2:o.state=2;break;case"PUBLISH_PERMISSION_DENIED":case 3:o.state=3;break;case"BUCKET_NOT_FOUND":case 4:o.state=4;break;case"TOO_MANY_OBJECTS":case 5:o.state=5}if(null!=e.bucket&&(o.bucket=String(e.bucket)),null!=e.textFormat){if(!d.isObject(e.textFormat))throw TypeError(".google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.textFormat: object expected");o.textFormat=g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.fromObject(e.textFormat,t+1)}if(null!=e.avroFormat){if(!d.isObject(e.avroFormat))throw TypeError(".google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.avroFormat: object expected");o.avroFormat=g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.fromObject(e.avroFormat,t+1)}if(null!=e.pubsubAvroFormat){if(!d.isObject(e.pubsubAvroFormat))throw TypeError(".google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.pubsubAvroFormat: object expected");o.pubsubAvroFormat=g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat.fromObject(e.pubsubAvroFormat,t+1)}if(null!=e.minimumObjectCreateTime){if(!d.isObject(e.minimumObjectCreateTime))throw TypeError(".google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.minimumObjectCreateTime: object expected");o.minimumObjectCreateTime=g.google.protobuf.Timestamp.fromObject(e.minimumObjectCreateTime,t+1)}return null!=e.matchGlob&&(o.matchGlob=String(e.matchGlob)),o},s.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};return t.defaults&&(n.state=t.enums===String?"STATE_UNSPECIFIED":0,n.bucket="",n.minimumObjectCreateTime=null,n.matchGlob=""),null!=e.state&&Object.hasOwnProperty.call(e,"state")&&(n.state=t.enums!==String||void 0===g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State[e.state]?e.state:g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State[e.state]),null!=e.bucket&&Object.hasOwnProperty.call(e,"bucket")&&(n.bucket=e.bucket),null!=e.textFormat&&Object.hasOwnProperty.call(e,"textFormat")&&(n.textFormat=g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.toObject(e.textFormat,t,o+1),t.oneofs)&&(n.inputFormat="textFormat"),null!=e.avroFormat&&Object.hasOwnProperty.call(e,"avroFormat")&&(n.avroFormat=g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.toObject(e.avroFormat,t,o+1),t.oneofs)&&(n.inputFormat="avroFormat"),null!=e.pubsubAvroFormat&&Object.hasOwnProperty.call(e,"pubsubAvroFormat")&&(n.pubsubAvroFormat=g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat.toObject(e.pubsubAvroFormat,t,o+1),t.oneofs)&&(n.inputFormat="pubsubAvroFormat"),null!=e.minimumObjectCreateTime&&Object.hasOwnProperty.call(e,"minimumObjectCreateTime")&&(n.minimumObjectCreateTime=g.google.protobuf.Timestamp.toObject(e.minimumObjectCreateTime,t,o+1)),null!=e.matchGlob&&Object.hasOwnProperty.call(e,"matchGlob")&&(n.matchGlob=e.matchGlob),n},s.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},s.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.IngestionDataSourceSettings.CloudStorage"},s.State=(o={},(e=Object.create(o))[o[0]="STATE_UNSPECIFIED"]=0,e[o[1]="ACTIVE"]=1,e[o[2]="CLOUD_STORAGE_PERMISSION_DENIED"]=2,e[o[3]="PUBLISH_PERMISSION_DENIED"]=3,e[o[4]="BUCKET_NOT_FOUND"]=4,e[o[5]="TOO_MANY_OBJECTS"]=5,e),s.TextFormat=(B.prototype.delimiter=null,Object.defineProperty(B.prototype,"_delimiter",{get:d.oneOfGetter(o=["delimiter"]),set:d.oneOfSetter(o)}),B.create=function(e){return new B(e)},B.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.delimiter&&Object.hasOwnProperty.call(e,"delimiter")&&t.uint32(10).string(e.delimiter),t},B.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},B.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat;e.pos<r;){var a=e.uint32();if(a===o)break;a>>>3==1?i.delimiter=e.string():e.skipType(7&a,n)}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.delimiter&&Object.hasOwnProperty.call(e,"delimiter")&&!d.isString(e.delimiter)?"delimiter: string expected":null},B.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat;return null!=e.delimiter&&(t.delimiter=String(e.delimiter)),t},B.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");o={};return null!=e.delimiter&&Object.hasOwnProperty.call(e,"delimiter")&&(o.delimiter=e.delimiter,t.oneofs)&&(o._delimiter="delimiter"),o},B.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},B.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat"},B),s.AvroFormat=(G.create=function(e){return new G(e)},G.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return t},G.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},G.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,t=new g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat;e.pos<r;){var i=e.uint32();if(i===o)break;e.skipType(7&i,n)}return t},G.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},G.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},G.fromObject=function(e,t){return e instanceof g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat?e:new g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat},G.toObject=function(){return{}},G.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},G.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat"},G),s.PubSubAvroFormat=(J.create=function(e){return new J(e)},J.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return t},J.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},J.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,t=new g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat;e.pos<r;){var i=e.uint32();if(i===o)break;e.skipType(7&i,n)}return t},J.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},J.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},J.fromObject=function(e,t){return e instanceof g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat?e:new g.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat},J.toObject=function(){return{}},J.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},J.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat"},J),s),a.AzureEventHubs=(c.prototype.state=0,c.prototype.resourceGroup="",c.prototype.namespace="",c.prototype.eventHub="",c.prototype.clientId="",c.prototype.tenantId="",c.prototype.subscriptionId="",c.prototype.gcpServiceAccount="",c.create=function(e){return new c(e)},c.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.state&&Object.hasOwnProperty.call(e,"state")&&t.uint32(8).int32(e.state),null!=e.resourceGroup&&Object.hasOwnProperty.call(e,"resourceGroup")&&t.uint32(18).string(e.resourceGroup),null!=e.namespace&&Object.hasOwnProperty.call(e,"namespace")&&t.uint32(26).string(e.namespace),null!=e.eventHub&&Object.hasOwnProperty.call(e,"eventHub")&&t.uint32(34).string(e.eventHub),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(42).string(e.clientId),null!=e.tenantId&&Object.hasOwnProperty.call(e,"tenantId")&&t.uint32(50).string(e.tenantId),null!=e.subscriptionId&&Object.hasOwnProperty.call(e,"subscriptionId")&&t.uint32(58).string(e.subscriptionId),null!=e.gcpServiceAccount&&Object.hasOwnProperty.call(e,"gcpServiceAccount")&&t.uint32(66).string(e.gcpServiceAccount),t},c.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},c.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.state=e.int32();break;case 2:i.resourceGroup=e.string();break;case 3:i.namespace=e.string();break;case 4:i.eventHub=e.string();break;case 5:i.clientId=e.string();break;case 6:i.tenantId=e.string();break;case 7:i.subscriptionId=e.string();break;case 8:i.gcpServiceAccount=e.string();break;default:e.skipType(7&a,n)}}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.state&&Object.hasOwnProperty.call(e,"state"))switch(e.state){default:return"state: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:}return null!=e.resourceGroup&&Object.hasOwnProperty.call(e,"resourceGroup")&&!d.isString(e.resourceGroup)?"resourceGroup: string expected":null!=e.namespace&&Object.hasOwnProperty.call(e,"namespace")&&!d.isString(e.namespace)?"namespace: string expected":null!=e.eventHub&&Object.hasOwnProperty.call(e,"eventHub")&&!d.isString(e.eventHub)?"eventHub: string expected":null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&!d.isString(e.clientId)?"clientId: string expected":null!=e.tenantId&&Object.hasOwnProperty.call(e,"tenantId")&&!d.isString(e.tenantId)?"tenantId: string expected":null!=e.subscriptionId&&Object.hasOwnProperty.call(e,"subscriptionId")&&!d.isString(e.subscriptionId)?"subscriptionId: string expected":null!=e.gcpServiceAccount&&Object.hasOwnProperty.call(e,"gcpServiceAccount")&&!d.isString(e.gcpServiceAccount)?"gcpServiceAccount: string expected":null},c.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs;switch(e.state){default:"number"==typeof e.state&&(o.state=e.state);break;case"STATE_UNSPECIFIED":case 0:o.state=0;break;case"ACTIVE":case 1:o.state=1;break;case"EVENT_HUBS_PERMISSION_DENIED":case 2:o.state=2;break;case"PUBLISH_PERMISSION_DENIED":case 3:o.state=3;break;case"NAMESPACE_NOT_FOUND":case 4:o.state=4;break;case"EVENT_HUB_NOT_FOUND":case 5:o.state=5;break;case"SUBSCRIPTION_NOT_FOUND":case 6:o.state=6;break;case"RESOURCE_GROUP_NOT_FOUND":case 7:o.state=7}return null!=e.resourceGroup&&(o.resourceGroup=String(e.resourceGroup)),null!=e.namespace&&(o.namespace=String(e.namespace)),null!=e.eventHub&&(o.eventHub=String(e.eventHub)),null!=e.clientId&&(o.clientId=String(e.clientId)),null!=e.tenantId&&(o.tenantId=String(e.tenantId)),null!=e.subscriptionId&&(o.subscriptionId=String(e.subscriptionId)),null!=e.gcpServiceAccount&&(o.gcpServiceAccount=String(e.gcpServiceAccount)),o},c.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.state=t.enums===String?"STATE_UNSPECIFIED":0,o.resourceGroup="",o.namespace="",o.eventHub="",o.clientId="",o.tenantId="",o.subscriptionId="",o.gcpServiceAccount=""),null!=e.state&&Object.hasOwnProperty.call(e,"state")&&(o.state=t.enums!==String||void 0===g.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State[e.state]?e.state:g.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State[e.state]),null!=e.resourceGroup&&Object.hasOwnProperty.call(e,"resourceGroup")&&(o.resourceGroup=e.resourceGroup),null!=e.namespace&&Object.hasOwnProperty.call(e,"namespace")&&(o.namespace=e.namespace),null!=e.eventHub&&Object.hasOwnProperty.call(e,"eventHub")&&(o.eventHub=e.eventHub),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&(o.clientId=e.clientId),null!=e.tenantId&&Object.hasOwnProperty.call(e,"tenantId")&&(o.tenantId=e.tenantId),null!=e.subscriptionId&&Object.hasOwnProperty.call(e,"subscriptionId")&&(o.subscriptionId=e.subscriptionId),null!=e.gcpServiceAccount&&Object.hasOwnProperty.call(e,"gcpServiceAccount")&&(o.gcpServiceAccount=e.gcpServiceAccount),o},c.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},c.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs"},c.State=(e={},(o=Object.create(e))[e[0]="STATE_UNSPECIFIED"]=0,o[e[1]="ACTIVE"]=1,o[e[2]="EVENT_HUBS_PERMISSION_DENIED"]=2,o[e[3]="PUBLISH_PERMISSION_DENIED"]=3,o[e[4]="NAMESPACE_NOT_FOUND"]=4,o[e[5]="EVENT_HUB_NOT_FOUND"]=5,o[e[6]="SUBSCRIPTION_NOT_FOUND"]=6,o[e[7]="RESOURCE_GROUP_NOT_FOUND"]=7,o),c),a.AwsMsk=(q.prototype.state=0,q.prototype.clusterArn="",q.prototype.topic="",q.prototype.awsRoleArn="",q.prototype.gcpServiceAccount="",q.create=function(e){return new q(e)},q.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.state&&Object.hasOwnProperty.call(e,"state")&&t.uint32(8).int32(e.state),null!=e.clusterArn&&Object.hasOwnProperty.call(e,"clusterArn")&&t.uint32(18).string(e.clusterArn),null!=e.topic&&Object.hasOwnProperty.call(e,"topic")&&t.uint32(26).string(e.topic),null!=e.awsRoleArn&&Object.hasOwnProperty.call(e,"awsRoleArn")&&t.uint32(34).string(e.awsRoleArn),null!=e.gcpServiceAccount&&Object.hasOwnProperty.call(e,"gcpServiceAccount")&&t.uint32(42).string(e.gcpServiceAccount),t},q.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},q.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.state=e.int32();break;case 2:i.clusterArn=e.string();break;case 3:i.topic=e.string();break;case 4:i.awsRoleArn=e.string();break;case 5:i.gcpServiceAccount=e.string();break;default:e.skipType(7&a,n)}}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.state&&Object.hasOwnProperty.call(e,"state"))switch(e.state){default:return"state: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:}return null!=e.clusterArn&&Object.hasOwnProperty.call(e,"clusterArn")&&!d.isString(e.clusterArn)?"clusterArn: string expected":null!=e.topic&&Object.hasOwnProperty.call(e,"topic")&&!d.isString(e.topic)?"topic: string expected":null!=e.awsRoleArn&&Object.hasOwnProperty.call(e,"awsRoleArn")&&!d.isString(e.awsRoleArn)?"awsRoleArn: string expected":null!=e.gcpServiceAccount&&Object.hasOwnProperty.call(e,"gcpServiceAccount")&&!d.isString(e.gcpServiceAccount)?"gcpServiceAccount: string expected":null},q.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.IngestionDataSourceSettings.AwsMsk: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk;switch(e.state){default:"number"==typeof e.state&&(o.state=e.state);break;case"STATE_UNSPECIFIED":case 0:o.state=0;break;case"ACTIVE":case 1:o.state=1;break;case"MSK_PERMISSION_DENIED":case 2:o.state=2;break;case"PUBLISH_PERMISSION_DENIED":case 3:o.state=3;break;case"CLUSTER_NOT_FOUND":case 4:o.state=4;break;case"TOPIC_NOT_FOUND":case 5:o.state=5}return null!=e.clusterArn&&(o.clusterArn=String(e.clusterArn)),null!=e.topic&&(o.topic=String(e.topic)),null!=e.awsRoleArn&&(o.awsRoleArn=String(e.awsRoleArn)),null!=e.gcpServiceAccount&&(o.gcpServiceAccount=String(e.gcpServiceAccount)),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.state=t.enums===String?"STATE_UNSPECIFIED":0,o.clusterArn="",o.topic="",o.awsRoleArn="",o.gcpServiceAccount=""),null!=e.state&&Object.hasOwnProperty.call(e,"state")&&(o.state=t.enums!==String||void 0===g.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State[e.state]?e.state:g.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State[e.state]),null!=e.clusterArn&&Object.hasOwnProperty.call(e,"clusterArn")&&(o.clusterArn=e.clusterArn),null!=e.topic&&Object.hasOwnProperty.call(e,"topic")&&(o.topic=e.topic),null!=e.awsRoleArn&&Object.hasOwnProperty.call(e,"awsRoleArn")&&(o.awsRoleArn=e.awsRoleArn),null!=e.gcpServiceAccount&&Object.hasOwnProperty.call(e,"gcpServiceAccount")&&(o.gcpServiceAccount=e.gcpServiceAccount),o},q.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},q.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.IngestionDataSourceSettings.AwsMsk"},q.State=(e={},(o=Object.create(e))[e[0]="STATE_UNSPECIFIED"]=0,o[e[1]="ACTIVE"]=1,o[e[2]="MSK_PERMISSION_DENIED"]=2,o[e[3]="PUBLISH_PERMISSION_DENIED"]=3,o[e[4]="CLUSTER_NOT_FOUND"]=4,o[e[5]="TOPIC_NOT_FOUND"]=5,o),q),a.ConfluentCloud=(l.prototype.state=0,l.prototype.bootstrapServer="",l.prototype.clusterId="",l.prototype.topic="",l.prototype.identityPoolId="",l.prototype.gcpServiceAccount="",l.create=function(e){return new l(e)},l.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.state&&Object.hasOwnProperty.call(e,"state")&&t.uint32(8).int32(e.state),null!=e.bootstrapServer&&Object.hasOwnProperty.call(e,"bootstrapServer")&&t.uint32(18).string(e.bootstrapServer),null!=e.clusterId&&Object.hasOwnProperty.call(e,"clusterId")&&t.uint32(26).string(e.clusterId),null!=e.topic&&Object.hasOwnProperty.call(e,"topic")&&t.uint32(34).string(e.topic),null!=e.identityPoolId&&Object.hasOwnProperty.call(e,"identityPoolId")&&t.uint32(42).string(e.identityPoolId),null!=e.gcpServiceAccount&&Object.hasOwnProperty.call(e,"gcpServiceAccount")&&t.uint32(50).string(e.gcpServiceAccount),t},l.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},l.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.state=e.int32();break;case 2:i.bootstrapServer=e.string();break;case 3:i.clusterId=e.string();break;case 4:i.topic=e.string();break;case 5:i.identityPoolId=e.string();break;case 6:i.gcpServiceAccount=e.string();break;default:e.skipType(7&a,n)}}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.state&&Object.hasOwnProperty.call(e,"state"))switch(e.state){default:return"state: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:}return null!=e.bootstrapServer&&Object.hasOwnProperty.call(e,"bootstrapServer")&&!d.isString(e.bootstrapServer)?"bootstrapServer: string expected":null!=e.clusterId&&Object.hasOwnProperty.call(e,"clusterId")&&!d.isString(e.clusterId)?"clusterId: string expected":null!=e.topic&&Object.hasOwnProperty.call(e,"topic")&&!d.isString(e.topic)?"topic: string expected":null!=e.identityPoolId&&Object.hasOwnProperty.call(e,"identityPoolId")&&!d.isString(e.identityPoolId)?"identityPoolId: string expected":null!=e.gcpServiceAccount&&Object.hasOwnProperty.call(e,"gcpServiceAccount")&&!d.isString(e.gcpServiceAccount)?"gcpServiceAccount: string expected":null},l.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud;switch(e.state){default:"number"==typeof e.state&&(o.state=e.state);break;case"STATE_UNSPECIFIED":case 0:o.state=0;break;case"ACTIVE":case 1:o.state=1;break;case"CONFLUENT_CLOUD_PERMISSION_DENIED":case 2:o.state=2;break;case"PUBLISH_PERMISSION_DENIED":case 3:o.state=3;break;case"UNREACHABLE_BOOTSTRAP_SERVER":case 4:o.state=4;break;case"CLUSTER_NOT_FOUND":case 5:o.state=5;break;case"TOPIC_NOT_FOUND":case 6:o.state=6}return null!=e.bootstrapServer&&(o.bootstrapServer=String(e.bootstrapServer)),null!=e.clusterId&&(o.clusterId=String(e.clusterId)),null!=e.topic&&(o.topic=String(e.topic)),null!=e.identityPoolId&&(o.identityPoolId=String(e.identityPoolId)),null!=e.gcpServiceAccount&&(o.gcpServiceAccount=String(e.gcpServiceAccount)),o},l.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.state=t.enums===String?"STATE_UNSPECIFIED":0,o.bootstrapServer="",o.clusterId="",o.topic="",o.identityPoolId="",o.gcpServiceAccount=""),null!=e.state&&Object.hasOwnProperty.call(e,"state")&&(o.state=t.enums!==String||void 0===g.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State[e.state]?e.state:g.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State[e.state]),null!=e.bootstrapServer&&Object.hasOwnProperty.call(e,"bootstrapServer")&&(o.bootstrapServer=e.bootstrapServer),null!=e.clusterId&&Object.hasOwnProperty.call(e,"clusterId")&&(o.clusterId=e.clusterId),null!=e.topic&&Object.hasOwnProperty.call(e,"topic")&&(o.topic=e.topic),null!=e.identityPoolId&&Object.hasOwnProperty.call(e,"identityPoolId")&&(o.identityPoolId=e.identityPoolId),null!=e.gcpServiceAccount&&Object.hasOwnProperty.call(e,"gcpServiceAccount")&&(o.gcpServiceAccount=e.gcpServiceAccount),o},l.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},l.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud"},l.State=(e={},(o=Object.create(e))[e[0]="STATE_UNSPECIFIED"]=0,o[e[1]="ACTIVE"]=1,o[e[2]="CONFLUENT_CLOUD_PERMISSION_DENIED"]=2,o[e[3]="PUBLISH_PERMISSION_DENIED"]=3,o[e[4]="UNREACHABLE_BOOTSTRAP_SERVER"]=4,o[e[5]="CLUSTER_NOT_FOUND"]=5,o[e[6]="TOPIC_NOT_FOUND"]=6,o),l),a),t.PlatformLogsSettings=(z.prototype.severity=0,z.create=function(e){return new z(e)},z.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.severity&&Object.hasOwnProperty.call(e,"severity")&&t.uint32(8).int32(e.severity),t},z.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},z.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.PlatformLogsSettings;e.pos<r;){var a=e.uint32();if(a===o)break;a>>>3==1?i.severity=e.int32():e.skipType(7&a,n)}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.severity&&Object.hasOwnProperty.call(e,"severity"))switch(e.severity){default:return"severity: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:}return null},z.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.PlatformLogsSettings)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.PlatformLogsSettings: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.PlatformLogsSettings;switch(e.severity){default:"number"==typeof e.severity&&(o.severity=e.severity);break;case"SEVERITY_UNSPECIFIED":case 0:o.severity=0;break;case"DISABLED":case 1:o.severity=1;break;case"DEBUG":case 2:o.severity=2;break;case"INFO":case 3:o.severity=3;break;case"WARNING":case 4:o.severity=4;break;case"ERROR":case 5:o.severity=5}return o},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.severity=t.enums===String?"SEVERITY_UNSPECIFIED":0),null!=e.severity&&Object.hasOwnProperty.call(e,"severity")&&(o.severity=t.enums!==String||void 0===g.google.pubsub.v1.PlatformLogsSettings.Severity[e.severity]?e.severity:g.google.pubsub.v1.PlatformLogsSettings.Severity[e.severity]),o},z.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},z.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.PlatformLogsSettings"},z.Severity=(e={},(o=Object.create(e))[e[0]="SEVERITY_UNSPECIFIED"]=0,o[e[1]="DISABLED"]=1,o[e[2]="DEBUG"]=2,o[e[3]="INFO"]=3,o[e[4]="WARNING"]=4,o[e[5]="ERROR"]=5,o),z),t.IngestionFailureEvent=(u.prototype.topic="",u.prototype.errorMessage="",u.prototype.cloudStorageFailure=null,u.prototype.awsMskFailure=null,u.prototype.azureEventHubsFailure=null,u.prototype.confluentCloudFailure=null,u.prototype.awsKinesisFailure=null,Object.defineProperty(u.prototype,"failure",{get:d.oneOfGetter(e=["cloudStorageFailure","awsMskFailure","azureEventHubsFailure","confluentCloudFailure","awsKinesisFailure"]),set:d.oneOfSetter(e)}),u.create=function(e){return new u(e)},u.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.topic&&Object.hasOwnProperty.call(e,"topic")&&t.uint32(10).string(e.topic),null!=e.errorMessage&&Object.hasOwnProperty.call(e,"errorMessage")&&t.uint32(18).string(e.errorMessage),null!=e.cloudStorageFailure&&Object.hasOwnProperty.call(e,"cloudStorageFailure")&&g.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.encode(e.cloudStorageFailure,t.uint32(26).fork(),o+1).ldelim(),null!=e.awsMskFailure&&Object.hasOwnProperty.call(e,"awsMskFailure")&&g.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.encode(e.awsMskFailure,t.uint32(34).fork(),o+1).ldelim(),null!=e.azureEventHubsFailure&&Object.hasOwnProperty.call(e,"azureEventHubsFailure")&&g.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.encode(e.azureEventHubsFailure,t.uint32(42).fork(),o+1).ldelim(),null!=e.confluentCloudFailure&&Object.hasOwnProperty.call(e,"confluentCloudFailure")&&g.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.encode(e.confluentCloudFailure,t.uint32(50).fork(),o+1).ldelim(),null!=e.awsKinesisFailure&&Object.hasOwnProperty.call(e,"awsKinesisFailure")&&g.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.encode(e.awsKinesisFailure,t.uint32(58).fork(),o+1).ldelim(),t},u.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},u.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.IngestionFailureEvent;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.topic=e.string();break;case 2:i.errorMessage=e.string();break;case 3:i.cloudStorageFailure=g.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.decode(e,e.uint32(),void 0,n+1);break;case 4:i.awsMskFailure=g.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.decode(e,e.uint32(),void 0,n+1);break;case 5:i.azureEventHubsFailure=g.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.decode(e,e.uint32(),void 0,n+1);break;case 6:i.confluentCloudFailure=g.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.decode(e,e.uint32(),void 0,n+1);break;case 7:i.awsKinesisFailure=g.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.decode(e,e.uint32(),void 0,n+1);break;default:e.skipType(7&a,n)}}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,n={};if(null!=e.topic&&Object.hasOwnProperty.call(e,"topic")&&!d.isString(e.topic))return"topic: string expected";if(null!=e.errorMessage&&Object.hasOwnProperty.call(e,"errorMessage")&&!d.isString(e.errorMessage))return"errorMessage: string expected";if(null!=e.cloudStorageFailure&&Object.hasOwnProperty.call(e,"cloudStorageFailure")&&(o=g.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.verify(e.cloudStorageFailure,t+(n.failure=1))))return"cloudStorageFailure."+o;if(null!=e.awsMskFailure&&Object.hasOwnProperty.call(e,"awsMskFailure")){if(1===n.failure)return"failure: multiple values";if(o=g.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.verify(e.awsMskFailure,t+(n.failure=1)))return"awsMskFailure."+o}if(null!=e.azureEventHubsFailure&&Object.hasOwnProperty.call(e,"azureEventHubsFailure")){if(1===n.failure)return"failure: multiple values";if(o=g.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.verify(e.azureEventHubsFailure,t+(n.failure=1)))return"azureEventHubsFailure."+o}if(null!=e.confluentCloudFailure&&Object.hasOwnProperty.call(e,"confluentCloudFailure")){if(1===n.failure)return"failure: multiple values";if(o=g.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.verify(e.confluentCloudFailure,t+(n.failure=1)))return"confluentCloudFailure."+o}if(null!=e.awsKinesisFailure&&Object.hasOwnProperty.call(e,"awsKinesisFailure")){if(1===n.failure)return"failure: multiple values";if(o=g.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.verify(e.awsKinesisFailure,t+(n.failure=1)))return"awsKinesisFailure."+o}return null},u.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.IngestionFailureEvent)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.IngestionFailureEvent: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.IngestionFailureEvent;if(null!=e.topic&&(o.topic=String(e.topic)),null!=e.errorMessage&&(o.errorMessage=String(e.errorMessage)),null!=e.cloudStorageFailure){if(!d.isObject(e.cloudStorageFailure))throw TypeError(".google.pubsub.v1.IngestionFailureEvent.cloudStorageFailure: object expected");o.cloudStorageFailure=g.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.fromObject(e.cloudStorageFailure,t+1)}if(null!=e.awsMskFailure){if(!d.isObject(e.awsMskFailure))throw TypeError(".google.pubsub.v1.IngestionFailureEvent.awsMskFailure: object expected");o.awsMskFailure=g.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.fromObject(e.awsMskFailure,t+1)}if(null!=e.azureEventHubsFailure){if(!d.isObject(e.azureEventHubsFailure))throw TypeError(".google.pubsub.v1.IngestionFailureEvent.azureEventHubsFailure: object expected");o.azureEventHubsFailure=g.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.fromObject(e.azureEventHubsFailure,t+1)}if(null!=e.confluentCloudFailure){if(!d.isObject(e.confluentCloudFailure))throw TypeError(".google.pubsub.v1.IngestionFailureEvent.confluentCloudFailure: object expected");o.confluentCloudFailure=g.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.fromObject(e.confluentCloudFailure,t+1)}if(null!=e.awsKinesisFailure){if(!d.isObject(e.awsKinesisFailure))throw TypeError(".google.pubsub.v1.IngestionFailureEvent.awsKinesisFailure: object expected");o.awsKinesisFailure=g.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.fromObject(e.awsKinesisFailure,t+1)}return o},u.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};return t.defaults&&(n.topic="",n.errorMessage=""),null!=e.topic&&Object.hasOwnProperty.call(e,"topic")&&(n.topic=e.topic),null!=e.errorMessage&&Object.hasOwnProperty.call(e,"errorMessage")&&(n.errorMessage=e.errorMessage),null!=e.cloudStorageFailure&&Object.hasOwnProperty.call(e,"cloudStorageFailure")&&(n.cloudStorageFailure=g.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.toObject(e.cloudStorageFailure,t,o+1),t.oneofs)&&(n.failure="cloudStorageFailure"),null!=e.awsMskFailure&&Object.hasOwnProperty.call(e,"awsMskFailure")&&(n.awsMskFailure=g.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.toObject(e.awsMskFailure,t,o+1),t.oneofs)&&(n.failure="awsMskFailure"),null!=e.azureEventHubsFailure&&Object.hasOwnProperty.call(e,"azureEventHubsFailure")&&(n.azureEventHubsFailure=g.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.toObject(e.azureEventHubsFailure,t,o+1),t.oneofs)&&(n.failure="azureEventHubsFailure"),null!=e.confluentCloudFailure&&Object.hasOwnProperty.call(e,"confluentCloudFailure")&&(n.confluentCloudFailure=g.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.toObject(e.confluentCloudFailure,t,o+1),t.oneofs)&&(n.failure="confluentCloudFailure"),null!=e.awsKinesisFailure&&Object.hasOwnProperty.call(e,"awsKinesisFailure")&&(n.awsKinesisFailure=g.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.toObject(e.awsKinesisFailure,t,o+1),t.oneofs)&&(n.failure="awsKinesisFailure"),n},u.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},u.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.IngestionFailureEvent"},u.ApiViolationReason=(H.create=function(e){return new H(e)},H.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return t},H.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},H.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,t=new g.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason;e.pos<r;){var i=e.uint32();if(i===o)break;e.skipType(7&i,n)}return t},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},H.fromObject=function(e,t){return e instanceof g.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason?e:new g.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason},H.toObject=function(){return{}},H.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},H.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.IngestionFailureEvent.ApiViolationReason"},H),u.AvroFailureReason=(Y.create=function(e){return new Y(e)},Y.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return t},Y.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Y.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,t=new g.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason;e.pos<r;){var i=e.uint32();if(i===o)break;e.skipType(7&i,n)}return t},Y.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Y.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},Y.fromObject=function(e,t){return e instanceof g.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason?e:new g.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason},Y.toObject=function(){return{}},Y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Y.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.IngestionFailureEvent.AvroFailureReason"},Y),u.SchemaViolationReason=(K.create=function(e){return new K(e)},K.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return t},K.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},K.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,t=new g.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason;e.pos<r;){var i=e.uint32();if(i===o)break;e.skipType(7&i,n)}return t},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},K.fromObject=function(e,t){return e instanceof g.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason?e:new g.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason},K.toObject=function(){return{}},K.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},K.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason"},K),u.MessageTransformationFailureReason=(W.create=function(e){return new W(e)},W.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return t},W.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},W.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,t=new g.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason;e.pos<r;){var i=e.uint32();if(i===o)break;e.skipType(7&i,n)}return t},W.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},W.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},W.fromObject=function(e,t){return e instanceof g.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason?e:new g.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason},W.toObject=function(){return{}},W.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},W.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason"},W),u.CloudStorageFailure=(f.prototype.bucket="",f.prototype.objectName="",f.prototype.objectGeneration=d.Long?d.Long.fromBits(0,0,!1):0,f.prototype.avroFailureReason=null,f.prototype.apiViolationReason=null,f.prototype.schemaViolationReason=null,f.prototype.messageTransformationFailureReason=null,Object.defineProperty(f.prototype,"reason",{get:d.oneOfGetter(e=["avroFailureReason","apiViolationReason","schemaViolationReason","messageTransformationFailureReason"]),set:d.oneOfSetter(e)}),f.create=function(e){return new f(e)},f.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.bucket&&Object.hasOwnProperty.call(e,"bucket")&&t.uint32(10).string(e.bucket),null!=e.objectName&&Object.hasOwnProperty.call(e,"objectName")&&t.uint32(18).string(e.objectName),null!=e.objectGeneration&&Object.hasOwnProperty.call(e,"objectGeneration")&&t.uint32(24).int64(e.objectGeneration),null!=e.avroFailureReason&&Object.hasOwnProperty.call(e,"avroFailureReason")&&g.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.encode(e.avroFailureReason,t.uint32(42).fork(),o+1).ldelim(),null!=e.apiViolationReason&&Object.hasOwnProperty.call(e,"apiViolationReason")&&g.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.encode(e.apiViolationReason,t.uint32(50).fork(),o+1).ldelim(),null!=e.schemaViolationReason&&Object.hasOwnProperty.call(e,"schemaViolationReason")&&g.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.encode(e.schemaViolationReason,t.uint32(58).fork(),o+1).ldelim(),null!=e.messageTransformationFailureReason&&Object.hasOwnProperty.call(e,"messageTransformationFailureReason")&&g.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.encode(e.messageTransformationFailureReason,t.uint32(66).fork(),o+1).ldelim(),t},f.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},f.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.bucket=e.string();break;case 2:i.objectName=e.string();break;case 3:i.objectGeneration=e.int64();break;case 5:i.avroFailureReason=g.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.decode(e,e.uint32(),void 0,n+1);break;case 6:i.apiViolationReason=g.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.decode(e,e.uint32(),void 0,n+1);break;case 7:i.schemaViolationReason=g.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.decode(e,e.uint32(),void 0,n+1);break;case 8:i.messageTransformationFailureReason=g.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.decode(e,e.uint32(),void 0,n+1);break;default:e.skipType(7&a,n)}}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,n={};if(null!=e.bucket&&Object.hasOwnProperty.call(e,"bucket")&&!d.isString(e.bucket))return"bucket: string expected";if(null!=e.objectName&&Object.hasOwnProperty.call(e,"objectName")&&!d.isString(e.objectName))return"objectName: string expected";if(null!=e.objectGeneration&&Object.hasOwnProperty.call(e,"objectGeneration")&&!(d.isInteger(e.objectGeneration)||e.objectGeneration&&d.isInteger(e.objectGeneration.low)&&d.isInteger(e.objectGeneration.high)))return"objectGeneration: integer|Long expected";if(null!=e.avroFailureReason&&Object.hasOwnProperty.call(e,"avroFailureReason")&&(o=g.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.verify(e.avroFailureReason,t+(n.reason=1))))return"avroFailureReason."+o;if(null!=e.apiViolationReason&&Object.hasOwnProperty.call(e,"apiViolationReason")){if(1===n.reason)return"reason: multiple values";if(o=g.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.verify(e.apiViolationReason,t+(n.reason=1)))return"apiViolationReason."+o}if(null!=e.schemaViolationReason&&Object.hasOwnProperty.call(e,"schemaViolationReason")){if(1===n.reason)return"reason: multiple values";if(o=g.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.verify(e.schemaViolationReason,t+(n.reason=1)))return"schemaViolationReason."+o}if(null!=e.messageTransformationFailureReason&&Object.hasOwnProperty.call(e,"messageTransformationFailureReason")){if(1===n.reason)return"reason: multiple values";if(o=g.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.verify(e.messageTransformationFailureReason,t+(n.reason=1)))return"messageTransformationFailureReason."+o}return null},f.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure;if(null!=e.bucket&&(o.bucket=String(e.bucket)),null!=e.objectName&&(o.objectName=String(e.objectName)),null!=e.objectGeneration&&(d.Long?o.objectGeneration=d.Long.fromValue(e.objectGeneration,!1):"string"==typeof e.objectGeneration?o.objectGeneration=parseInt(e.objectGeneration,10):"number"==typeof e.objectGeneration?o.objectGeneration=e.objectGeneration:"object"==typeof e.objectGeneration&&(o.objectGeneration=new d.LongBits(e.objectGeneration.low>>>0,e.objectGeneration.high>>>0).toNumber())),null!=e.avroFailureReason){if(!d.isObject(e.avroFailureReason))throw TypeError(".google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.avroFailureReason: object expected");o.avroFailureReason=g.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.fromObject(e.avroFailureReason,t+1)}if(null!=e.apiViolationReason){if(!d.isObject(e.apiViolationReason))throw TypeError(".google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.apiViolationReason: object expected");o.apiViolationReason=g.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.fromObject(e.apiViolationReason,t+1)}if(null!=e.schemaViolationReason){if(!d.isObject(e.schemaViolationReason))throw TypeError(".google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.schemaViolationReason: object expected");o.schemaViolationReason=g.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.fromObject(e.schemaViolationReason,t+1)}if(null!=e.messageTransformationFailureReason){if(!d.isObject(e.messageTransformationFailureReason))throw TypeError(".google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.messageTransformationFailureReason: object expected");o.messageTransformationFailureReason=g.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.fromObject(e.messageTransformationFailureReason,t+1)}return o},f.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n,r={};return t.defaults&&(r.bucket="",r.objectName="",d.Long?(n=new d.Long(0,0,!1),r.objectGeneration=t.longs===String?n.toString():t.longs===Number?n.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?n.toBigInt():n):r.objectGeneration=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0),null!=e.bucket&&Object.hasOwnProperty.call(e,"bucket")&&(r.bucket=e.bucket),null!=e.objectName&&Object.hasOwnProperty.call(e,"objectName")&&(r.objectName=e.objectName),null!=e.objectGeneration&&Object.hasOwnProperty.call(e,"objectGeneration")&&("undefined"!=typeof BigInt&&t.longs===BigInt?r.objectGeneration="number"==typeof e.objectGeneration?BigInt(e.objectGeneration):d.Long.fromBits(e.objectGeneration.low>>>0,e.objectGeneration.high>>>0,!1).toBigInt():"number"==typeof e.objectGeneration?r.objectGeneration=t.longs===String?String(e.objectGeneration):e.objectGeneration:r.objectGeneration=t.longs===String?d.Long.prototype.toString.call(e.objectGeneration):t.longs===Number?new d.LongBits(e.objectGeneration.low>>>0,e.objectGeneration.high>>>0).toNumber():e.objectGeneration),null!=e.avroFailureReason&&Object.hasOwnProperty.call(e,"avroFailureReason")&&(r.avroFailureReason=g.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.toObject(e.avroFailureReason,t,o+1),t.oneofs)&&(r.reason="avroFailureReason"),null!=e.apiViolationReason&&Object.hasOwnProperty.call(e,"apiViolationReason")&&(r.apiViolationReason=g.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.toObject(e.apiViolationReason,t,o+1),t.oneofs)&&(r.reason="apiViolationReason"),null!=e.schemaViolationReason&&Object.hasOwnProperty.call(e,"schemaViolationReason")&&(r.schemaViolationReason=g.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.toObject(e.schemaViolationReason,t,o+1),t.oneofs)&&(r.reason="schemaViolationReason"),null!=e.messageTransformationFailureReason&&Object.hasOwnProperty.call(e,"messageTransformationFailureReason")&&(r.messageTransformationFailureReason=g.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.toObject(e.messageTransformationFailureReason,t,o+1),t.oneofs)&&(r.reason="messageTransformationFailureReason"),r},f.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},f.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure"},f),u.AwsMskFailureReason=(b.prototype.clusterArn="",b.prototype.kafkaTopic="",b.prototype.partitionId=d.Long?d.Long.fromBits(0,0,!1):0,b.prototype.offset=d.Long?d.Long.fromBits(0,0,!1):0,b.prototype.apiViolationReason=null,b.prototype.schemaViolationReason=null,b.prototype.messageTransformationFailureReason=null,Object.defineProperty(b.prototype,"reason",{get:d.oneOfGetter(e=["apiViolationReason","schemaViolationReason","messageTransformationFailureReason"]),set:d.oneOfSetter(e)}),b.create=function(e){return new b(e)},b.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.clusterArn&&Object.hasOwnProperty.call(e,"clusterArn")&&t.uint32(10).string(e.clusterArn),null!=e.kafkaTopic&&Object.hasOwnProperty.call(e,"kafkaTopic")&&t.uint32(18).string(e.kafkaTopic),null!=e.partitionId&&Object.hasOwnProperty.call(e,"partitionId")&&t.uint32(24).int64(e.partitionId),null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&t.uint32(32).int64(e.offset),null!=e.apiViolationReason&&Object.hasOwnProperty.call(e,"apiViolationReason")&&g.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.encode(e.apiViolationReason,t.uint32(42).fork(),o+1).ldelim(),null!=e.schemaViolationReason&&Object.hasOwnProperty.call(e,"schemaViolationReason")&&g.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.encode(e.schemaViolationReason,t.uint32(50).fork(),o+1).ldelim(),null!=e.messageTransformationFailureReason&&Object.hasOwnProperty.call(e,"messageTransformationFailureReason")&&g.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.encode(e.messageTransformationFailureReason,t.uint32(58).fork(),o+1).ldelim(),t},b.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},b.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.clusterArn=e.string();break;case 2:i.kafkaTopic=e.string();break;case 3:i.partitionId=e.int64();break;case 4:i.offset=e.int64();break;case 5:i.apiViolationReason=g.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.decode(e,e.uint32(),void 0,n+1);break;case 6:i.schemaViolationReason=g.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.decode(e,e.uint32(),void 0,n+1);break;case 7:i.messageTransformationFailureReason=g.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.decode(e,e.uint32(),void 0,n+1);break;default:e.skipType(7&a,n)}}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";var o,n={};if(null!=e.clusterArn&&Object.hasOwnProperty.call(e,"clusterArn")&&!d.isString(e.clusterArn))return"clusterArn: string expected";if(null!=e.kafkaTopic&&Object.hasOwnProperty.call(e,"kafkaTopic")&&!d.isString(e.kafkaTopic))return"kafkaTopic: string expected";if(null!=e.partitionId&&Object.hasOwnProperty.call(e,"partitionId")&&!(d.isInteger(e.partitionId)||e.partitionId&&d.isInteger(e.partitionId.low)&&d.isInteger(e.partitionId.high)))return"partitionId: integer|Long expected";if(null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&!(d.isInteger(e.offset)||e.offset&&d.isInteger(e.offset.low)&&d.isInteger(e.offset.high)))return"offset: integer|Long expected";if(null!=e.apiViolationReason&&Object.hasOwnProperty.call(e,"apiViolationReason")&&(o=g.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.verify(e.apiViolationReason,t+(n.reason=1))))return"apiViolationReason."+o;if(null!=e.schemaViolationReason&&Object.hasOwnProperty.call(e,"schemaViolationReason")){if(1===n.reason)return"reason: multiple values";if(o=g.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.verify(e.schemaViolationReason,t+(n.reason=1)))return"schemaViolationReason."+o}if(null!=e.messageTransformationFailureReason&&Object.hasOwnProperty.call(e,"messageTransformationFailureReason")){if(1===n.reason)return"reason: multiple values";if(o=g.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.verify(e.messageTransformationFailureReason,t+(n.reason=1)))return"messageTransformationFailureReason."+o}return null},b.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason;if(null!=e.clusterArn&&(o.clusterArn=String(e.clusterArn)),null!=e.kafkaTopic&&(o.kafkaTopic=String(e.kafkaTopic)),null!=e.partitionId&&(d.Long?o.partitionId=d.Long.fromValue(e.partitionId,!1):"string"==typeof e.partitionId?o.partitionId=parseInt(e.partitionId,10):"number"==typeof e.partitionId?o.partitionId=e.partitionId:"object"==typeof e.partitionId&&(o.partitionId=new d.LongBits(e.partitionId.low>>>0,e.partitionId.high>>>0).toNumber())),null!=e.offset&&(d.Long?o.offset=d.Long.fromValue(e.offset,!1):"string"==typeof e.offset?o.offset=parseInt(e.offset,10):"number"==typeof e.offset?o.offset=e.offset:"object"==typeof e.offset&&(o.offset=new d.LongBits(e.offset.low>>>0,e.offset.high>>>0).toNumber())),null!=e.apiViolationReason){if(!d.isObject(e.apiViolationReason))throw TypeError(".google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.apiViolationReason: object expected");o.apiViolationReason=g.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.fromObject(e.apiViolationReason,t+1)}if(null!=e.schemaViolationReason){if(!d.isObject(e.schemaViolationReason))throw TypeError(".google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.schemaViolationReason: object expected");o.schemaViolationReason=g.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.fromObject(e.schemaViolationReason,t+1)}if(null!=e.messageTransformationFailureReason){if(!d.isObject(e.messageTransformationFailureReason))throw TypeError(".google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.messageTransformationFailureReason: object expected");o.messageTransformationFailureReason=g.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.fromObject(e.messageTransformationFailureReason,t+1)}return o},b.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n,r={};return t.defaults&&(r.clusterArn="",r.kafkaTopic="",d.Long?(n=new d.Long(0,0,!1),r.partitionId=t.longs===String?n.toString():t.longs===Number?n.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?n.toBigInt():n):r.partitionId=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,d.Long?(n=new d.Long(0,0,!1),r.offset=t.longs===String?n.toString():t.longs===Number?n.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?n.toBigInt():n):r.offset=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0),null!=e.clusterArn&&Object.hasOwnProperty.call(e,"clusterArn")&&(r.clusterArn=e.clusterArn),null!=e.kafkaTopic&&Object.hasOwnProperty.call(e,"kafkaTopic")&&(r.kafkaTopic=e.kafkaTopic),null!=e.partitionId&&Object.hasOwnProperty.call(e,"partitionId")&&("undefined"!=typeof BigInt&&t.longs===BigInt?r.partitionId="number"==typeof e.partitionId?BigInt(e.partitionId):d.Long.fromBits(e.partitionId.low>>>0,e.partitionId.high>>>0,!1).toBigInt():"number"==typeof e.partitionId?r.partitionId=t.longs===String?String(e.partitionId):e.partitionId:r.partitionId=t.longs===String?d.Long.prototype.toString.call(e.partitionId):t.longs===Number?new d.LongBits(e.partitionId.low>>>0,e.partitionId.high>>>0).toNumber():e.partitionId),null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&("undefined"!=typeof BigInt&&t.longs===BigInt?r.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?r.offset=t.longs===String?String(e.offset):e.offset:r.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),null!=e.apiViolationReason&&Object.hasOwnProperty.call(e,"apiViolationReason")&&(r.apiViolationReason=g.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.toObject(e.apiViolationReason,t,o+1),t.oneofs)&&(r.reason="apiViolationReason"),null!=e.schemaViolationReason&&Object.hasOwnProperty.call(e,"schemaViolationReason")&&(r.schemaViolationReason=g.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.toObject(e.schemaViolationReason,t,o+1),t.oneofs)&&(r.reason="schemaViolationReason"),null!=e.messageTransformationFailureReason&&Object.hasOwnProperty.call(e,"messageTransformationFailureReason")&&(r.messageTransformationFailureReason=g.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.toObject(e.messageTransformationFailureReason,t,o+1),t.oneofs)&&(r.reason="messageTransformationFailureReason"),r},b.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},b.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason"},b),u.AzureEventHubsFailureReason=(m.prototype.namespace="",m.prototype.eventHub="",m.prototype.partitionId=d.Long?d.Long.fromBits(0,0,!1):0,m.prototype.offset=d.Long?d.Long.fromBits(0,0,!1):0,m.prototype.apiViolationReason=null,m.prototype.schemaViolationReason=null,m.prototype.messageTransformationFailureReason=null,Object.defineProperty(m.prototype,"reason",{get:d.oneOfGetter(e=["apiViolationReason","schemaViolationReason","messageTransformationFailureReason"]),set:d.oneOfSetter(e)}),m.create=function(e){return new m(e)},m.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.namespace&&Object.hasOwnProperty.call(e,"namespace")&&t.uint32(10).string(e.namespace),null!=e.eventHub&&Object.hasOwnProperty.call(e,"eventHub")&&t.uint32(18).string(e.eventHub),null!=e.partitionId&&Object.hasOwnProperty.call(e,"partitionId")&&t.uint32(24).int64(e.partitionId),null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&t.uint32(32).int64(e.offset),null!=e.apiViolationReason&&Object.hasOwnProperty.call(e,"apiViolationReason")&&g.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.encode(e.apiViolationReason,t.uint32(42).fork(),o+1).ldelim(),null!=e.schemaViolationReason&&Object.hasOwnProperty.call(e,"schemaViolationReason")&&g.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.encode(e.schemaViolationReason,t.uint32(50).fork(),o+1).ldelim(),null!=e.messageTransformationFailureReason&&Object.hasOwnProperty.call(e,"messageTransformationFailureReason")&&g.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.encode(e.messageTransformationFailureReason,t.uint32(58).fork(),o+1).ldelim(),t},m.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},m.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.namespace=e.string();break;case 2:i.eventHub=e.string();break;case 3:i.partitionId=e.int64();break;case 4:i.offset=e.int64();break;case 5:i.apiViolationReason=g.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.decode(e,e.uint32(),void 0,n+1);break;case 6:i.schemaViolationReason=g.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.decode(e,e.uint32(),void 0,n+1);break;case 7:i.messageTransformationFailureReason=g.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.decode(e,e.uint32(),void 0,n+1);break;default:e.skipType(7&a,n)}}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,n={};if(null!=e.namespace&&Object.hasOwnProperty.call(e,"namespace")&&!d.isString(e.namespace))return"namespace: string expected";if(null!=e.eventHub&&Object.hasOwnProperty.call(e,"eventHub")&&!d.isString(e.eventHub))return"eventHub: string expected";if(null!=e.partitionId&&Object.hasOwnProperty.call(e,"partitionId")&&!(d.isInteger(e.partitionId)||e.partitionId&&d.isInteger(e.partitionId.low)&&d.isInteger(e.partitionId.high)))return"partitionId: integer|Long expected";if(null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&!(d.isInteger(e.offset)||e.offset&&d.isInteger(e.offset.low)&&d.isInteger(e.offset.high)))return"offset: integer|Long expected";if(null!=e.apiViolationReason&&Object.hasOwnProperty.call(e,"apiViolationReason")&&(o=g.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.verify(e.apiViolationReason,t+(n.reason=1))))return"apiViolationReason."+o;if(null!=e.schemaViolationReason&&Object.hasOwnProperty.call(e,"schemaViolationReason")){if(1===n.reason)return"reason: multiple values";if(o=g.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.verify(e.schemaViolationReason,t+(n.reason=1)))return"schemaViolationReason."+o}if(null!=e.messageTransformationFailureReason&&Object.hasOwnProperty.call(e,"messageTransformationFailureReason")){if(1===n.reason)return"reason: multiple values";if(o=g.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.verify(e.messageTransformationFailureReason,t+(n.reason=1)))return"messageTransformationFailureReason."+o}return null},m.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason;if(null!=e.namespace&&(o.namespace=String(e.namespace)),null!=e.eventHub&&(o.eventHub=String(e.eventHub)),null!=e.partitionId&&(d.Long?o.partitionId=d.Long.fromValue(e.partitionId,!1):"string"==typeof e.partitionId?o.partitionId=parseInt(e.partitionId,10):"number"==typeof e.partitionId?o.partitionId=e.partitionId:"object"==typeof e.partitionId&&(o.partitionId=new d.LongBits(e.partitionId.low>>>0,e.partitionId.high>>>0).toNumber())),null!=e.offset&&(d.Long?o.offset=d.Long.fromValue(e.offset,!1):"string"==typeof e.offset?o.offset=parseInt(e.offset,10):"number"==typeof e.offset?o.offset=e.offset:"object"==typeof e.offset&&(o.offset=new d.LongBits(e.offset.low>>>0,e.offset.high>>>0).toNumber())),null!=e.apiViolationReason){if(!d.isObject(e.apiViolationReason))throw TypeError(".google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.apiViolationReason: object expected");o.apiViolationReason=g.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.fromObject(e.apiViolationReason,t+1)}if(null!=e.schemaViolationReason){if(!d.isObject(e.schemaViolationReason))throw TypeError(".google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.schemaViolationReason: object expected");o.schemaViolationReason=g.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.fromObject(e.schemaViolationReason,t+1)}if(null!=e.messageTransformationFailureReason){if(!d.isObject(e.messageTransformationFailureReason))throw TypeError(".google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.messageTransformationFailureReason: object expected");o.messageTransformationFailureReason=g.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.fromObject(e.messageTransformationFailureReason,t+1)}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 n,r={};return t.defaults&&(r.namespace="",r.eventHub="",d.Long?(n=new d.Long(0,0,!1),r.partitionId=t.longs===String?n.toString():t.longs===Number?n.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?n.toBigInt():n):r.partitionId=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,d.Long?(n=new d.Long(0,0,!1),r.offset=t.longs===String?n.toString():t.longs===Number?n.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?n.toBigInt():n):r.offset=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0),null!=e.namespace&&Object.hasOwnProperty.call(e,"namespace")&&(r.namespace=e.namespace),null!=e.eventHub&&Object.hasOwnProperty.call(e,"eventHub")&&(r.eventHub=e.eventHub),null!=e.partitionId&&Object.hasOwnProperty.call(e,"partitionId")&&("undefined"!=typeof BigInt&&t.longs===BigInt?r.partitionId="number"==typeof e.partitionId?BigInt(e.partitionId):d.Long.fromBits(e.partitionId.low>>>0,e.partitionId.high>>>0,!1).toBigInt():"number"==typeof e.partitionId?r.partitionId=t.longs===String?String(e.partitionId):e.partitionId:r.partitionId=t.longs===String?d.Long.prototype.toString.call(e.partitionId):t.longs===Number?new d.LongBits(e.partitionId.low>>>0,e.partitionId.high>>>0).toNumber():e.partitionId),null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&("undefined"!=typeof BigInt&&t.longs===BigInt?r.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?r.offset=t.longs===String?String(e.offset):e.offset:r.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),null!=e.apiViolationReason&&Object.hasOwnProperty.call(e,"apiViolationReason")&&(r.apiViolationReason=g.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.toObject(e.apiViolationReason,t,o+1),t.oneofs)&&(r.reason="apiViolationReason"),null!=e.schemaViolationReason&&Object.hasOwnProperty.call(e,"schemaViolationReason")&&(r.schemaViolationReason=g.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.toObject(e.schemaViolationReason,t,o+1),t.oneofs)&&(r.reason="schemaViolationReason"),null!=e.messageTransformationFailureReason&&Object.hasOwnProperty.call(e,"messageTransformationFailureReason")&&(r.messageTransformationFailureReason=g.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.toObject(e.messageTransformationFailureReason,t,o+1),t.oneofs)&&(r.reason="messageTransformationFailureReason"),r},m.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},m.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason"},m),u.ConfluentCloudFailureReason=(h.prototype.clusterId="",h.prototype.kafkaTopic="",h.prototype.partitionId=d.Long?d.Long.fromBits(0,0,!1):0,h.prototype.offset=d.Long?d.Long.fromBits(0,0,!1):0,h.prototype.apiViolationReason=null,h.prototype.schemaViolationReason=null,h.prototype.messageTransformationFailureReason=null,Object.defineProperty(h.prototype,"reason",{get:d.oneOfGetter(e=["apiViolationReason","schemaViolationReason","messageTransformationFailureReason"]),set:d.oneOfSetter(e)}),h.create=function(e){return new h(e)},h.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.clusterId&&Object.hasOwnProperty.call(e,"clusterId")&&t.uint32(10).string(e.clusterId),null!=e.kafkaTopic&&Object.hasOwnProperty.call(e,"kafkaTopic")&&t.uint32(18).string(e.kafkaTopic),null!=e.partitionId&&Object.hasOwnProperty.call(e,"partitionId")&&t.uint32(24).int64(e.partitionId),null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&t.uint32(32).int64(e.offset),null!=e.apiViolationReason&&Object.hasOwnProperty.call(e,"apiViolationReason")&&g.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.encode(e.apiViolationReason,t.uint32(42).fork(),o+1).ldelim(),null!=e.schemaViolationReason&&Object.hasOwnProperty.call(e,"schemaViolationReason")&&g.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.encode(e.schemaViolationReason,t.uint32(50).fork(),o+1).ldelim(),null!=e.messageTransformationFailureReason&&Object.hasOwnProperty.call(e,"messageTransformationFailureReason")&&g.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.encode(e.messageTransformationFailureReason,t.uint32(58).fork(),o+1).ldelim(),t},h.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},h.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.clusterId=e.string();break;case 2:i.kafkaTopic=e.string();break;case 3:i.partitionId=e.int64();break;case 4:i.offset=e.int64();break;case 5:i.apiViolationReason=g.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.decode(e,e.uint32(),void 0,n+1);break;case 6:i.schemaViolationReason=g.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.decode(e,e.uint32(),void 0,n+1);break;case 7:i.messageTransformationFailureReason=g.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.decode(e,e.uint32(),void 0,n+1);break;default:e.skipType(7&a,n)}}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";var o,n={};if(null!=e.clusterId&&Object.hasOwnProperty.call(e,"clusterId")&&!d.isString(e.clusterId))return"clusterId: string expected";if(null!=e.kafkaTopic&&Object.hasOwnProperty.call(e,"kafkaTopic")&&!d.isString(e.kafkaTopic))return"kafkaTopic: string expected";if(null!=e.partitionId&&Object.hasOwnProperty.call(e,"partitionId")&&!(d.isInteger(e.partitionId)||e.partitionId&&d.isInteger(e.partitionId.low)&&d.isInteger(e.partitionId.high)))return"partitionId: integer|Long expected";if(null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&!(d.isInteger(e.offset)||e.offset&&d.isInteger(e.offset.low)&&d.isInteger(e.offset.high)))return"offset: integer|Long expected";if(null!=e.apiViolationReason&&Object.hasOwnProperty.call(e,"apiViolationReason")&&(o=g.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.verify(e.apiViolationReason,t+(n.reason=1))))return"apiViolationReason."+o;if(null!=e.schemaViolationReason&&Object.hasOwnProperty.call(e,"schemaViolationReason")){if(1===n.reason)return"reason: multiple values";if(o=g.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.verify(e.schemaViolationReason,t+(n.reason=1)))return"schemaViolationReason."+o}if(null!=e.messageTransformationFailureReason&&Object.hasOwnProperty.call(e,"messageTransformationFailureReason")){if(1===n.reason)return"reason: multiple values";if(o=g.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.verify(e.messageTransformationFailureReason,t+(n.reason=1)))return"messageTransformationFailureReason."+o}return null},h.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason;if(null!=e.clusterId&&(o.clusterId=String(e.clusterId)),null!=e.kafkaTopic&&(o.kafkaTopic=String(e.kafkaTopic)),null!=e.partitionId&&(d.Long?o.partitionId=d.Long.fromValue(e.partitionId,!1):"string"==typeof e.partitionId?o.partitionId=parseInt(e.partitionId,10):"number"==typeof e.partitionId?o.partitionId=e.partitionId:"object"==typeof e.partitionId&&(o.partitionId=new d.LongBits(e.partitionId.low>>>0,e.partitionId.high>>>0).toNumber())),null!=e.offset&&(d.Long?o.offset=d.Long.fromValue(e.offset,!1):"string"==typeof e.offset?o.offset=parseInt(e.offset,10):"number"==typeof e.offset?o.offset=e.offset:"object"==typeof e.offset&&(o.offset=new d.LongBits(e.offset.low>>>0,e.offset.high>>>0).toNumber())),null!=e.apiViolationReason){if(!d.isObject(e.apiViolationReason))throw TypeError(".google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.apiViolationReason: object expected");o.apiViolationReason=g.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.fromObject(e.apiViolationReason,t+1)}if(null!=e.schemaViolationReason){if(!d.isObject(e.schemaViolationReason))throw TypeError(".google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.schemaViolationReason: object expected");o.schemaViolationReason=g.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.fromObject(e.schemaViolationReason,t+1)}if(null!=e.messageTransformationFailureReason){if(!d.isObject(e.messageTransformationFailureReason))throw TypeError(".google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.messageTransformationFailureReason: object expected");o.messageTransformationFailureReason=g.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.fromObject(e.messageTransformationFailureReason,t+1)}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 n,r={};return t.defaults&&(r.clusterId="",r.kafkaTopic="",d.Long?(n=new d.Long(0,0,!1),r.partitionId=t.longs===String?n.toString():t.longs===Number?n.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?n.toBigInt():n):r.partitionId=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,d.Long?(n=new d.Long(0,0,!1),r.offset=t.longs===String?n.toString():t.longs===Number?n.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?n.toBigInt():n):r.offset=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0),null!=e.clusterId&&Object.hasOwnProperty.call(e,"clusterId")&&(r.clusterId=e.clusterId),null!=e.kafkaTopic&&Object.hasOwnProperty.call(e,"kafkaTopic")&&(r.kafkaTopic=e.kafkaTopic),null!=e.partitionId&&Object.hasOwnProperty.call(e,"partitionId")&&("undefined"!=typeof BigInt&&t.longs===BigInt?r.partitionId="number"==typeof e.partitionId?BigInt(e.partitionId):d.Long.fromBits(e.partitionId.low>>>0,e.partitionId.high>>>0,!1).toBigInt():"number"==typeof e.partitionId?r.partitionId=t.longs===String?String(e.partitionId):e.partitionId:r.partitionId=t.longs===String?d.Long.prototype.toString.call(e.partitionId):t.longs===Number?new d.LongBits(e.partitionId.low>>>0,e.partitionId.high>>>0).toNumber():e.partitionId),null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&("undefined"!=typeof BigInt&&t.longs===BigInt?r.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?r.offset=t.longs===String?String(e.offset):e.offset:r.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),null!=e.apiViolationReason&&Object.hasOwnProperty.call(e,"apiViolationReason")&&(r.apiViolationReason=g.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.toObject(e.apiViolationReason,t,o+1),t.oneofs)&&(r.reason="apiViolationReason"),null!=e.schemaViolationReason&&Object.hasOwnProperty.call(e,"schemaViolationReason")&&(r.schemaViolationReason=g.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.toObject(e.schemaViolationReason,t,o+1),t.oneofs)&&(r.reason="schemaViolationReason"),null!=e.messageTransformationFailureReason&&Object.hasOwnProperty.call(e,"messageTransformationFailureReason")&&(r.messageTransformationFailureReason=g.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.toObject(e.messageTransformationFailureReason,t,o+1),t.oneofs)&&(r.reason="messageTransformationFailureReason"),r},h.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},h.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason"},h),u.AwsKinesisFailureReason=(X.prototype.streamArn="",X.prototype.partitionKey="",X.prototype.sequenceNumber="",X.prototype.schemaViolationReason=null,X.prototype.messageTransformationFailureReason=null,X.prototype.apiViolationReason=null,Object.defineProperty(X.prototype,"reason",{get:d.oneOfGetter(e=["schemaViolationReason","messageTransformationFailureReason","apiViolationReason"]),set:d.oneOfSetter(e)}),X.create=function(e){return new X(e)},X.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.streamArn&&Object.hasOwnProperty.call(e,"streamArn")&&t.uint32(10).string(e.streamArn),null!=e.partitionKey&&Object.hasOwnProperty.call(e,"partitionKey")&&t.uint32(18).string(e.partitionKey),null!=e.sequenceNumber&&Object.hasOwnProperty.call(e,"sequenceNumber")&&t.uint32(26).string(e.sequenceNumber),null!=e.schemaViolationReason&&Object.hasOwnProperty.call(e,"schemaViolationReason")&&g.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.encode(e.schemaViolationReason,t.uint32(34).fork(),o+1).ldelim(),null!=e.messageTransformationFailureReason&&Object.hasOwnProperty.call(e,"messageTransformationFailureReason")&&g.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.encode(e.messageTransformationFailureReason,t.uint32(42).fork(),o+1).ldelim(),null!=e.apiViolationReason&&Object.hasOwnProperty.call(e,"apiViolationReason")&&g.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.encode(e.apiViolationReason,t.uint32(50).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,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.streamArn=e.string();break;case 2:i.partitionKey=e.string();break;case 3:i.sequenceNumber=e.string();break;case 4:i.schemaViolationReason=g.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.decode(e,e.uint32(),void 0,n+1);break;case 5:i.messageTransformationFailureReason=g.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.decode(e,e.uint32(),void 0,n+1);break;case 6:i.apiViolationReason=g.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.decode(e,e.uint32(),void 0,n+1);break;default:e.skipType(7&a,n)}}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";var o,n={};if(null!=e.streamArn&&Object.hasOwnProperty.call(e,"streamArn")&&!d.isString(e.streamArn))return"streamArn: string expected";if(null!=e.partitionKey&&Object.hasOwnProperty.call(e,"partitionKey")&&!d.isString(e.partitionKey))return"partitionKey: string expected";if(null!=e.sequenceNumber&&Object.hasOwnProperty.call(e,"sequenceNumber")&&!d.isString(e.sequenceNumber))return"sequenceNumber: string expected";if(null!=e.schemaViolationReason&&Object.hasOwnProperty.call(e,"schemaViolationReason")&&(o=g.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.verify(e.schemaViolationReason,t+(n.reason=1))))return"schemaViolationReason."+o;if(null!=e.messageTransformationFailureReason&&Object.hasOwnProperty.call(e,"messageTransformationFailureReason")){if(1===n.reason)return"reason: multiple values";if(o=g.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.verify(e.messageTransformationFailureReason,t+(n.reason=1)))return"messageTransformationFailureReason."+o}if(null!=e.apiViolationReason&&Object.hasOwnProperty.call(e,"apiViolationReason")){if(1===n.reason)return"reason: multiple values";if(o=g.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.verify(e.apiViolationReason,t+(n.reason=1)))return"apiViolationReason."+o}return null},X.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason;if(null!=e.streamArn&&(o.streamArn=String(e.streamArn)),null!=e.partitionKey&&(o.partitionKey=String(e.partitionKey)),null!=e.sequenceNumber&&(o.sequenceNumber=String(e.sequenceNumber)),null!=e.schemaViolationReason){if(!d.isObject(e.schemaViolationReason))throw TypeError(".google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.schemaViolationReason: object expected");o.schemaViolationReason=g.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.fromObject(e.schemaViolationReason,t+1)}if(null!=e.messageTransformationFailureReason){if(!d.isObject(e.messageTransformationFailureReason))throw TypeError(".google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.messageTransformationFailureReason: object expected");o.messageTransformationFailureReason=g.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.fromObject(e.messageTransformationFailureReason,t+1)}if(null!=e.apiViolationReason){if(!d.isObject(e.apiViolationReason))throw TypeError(".google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.apiViolationReason: object expected");o.apiViolationReason=g.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.fromObject(e.apiViolationReason,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 n={};return t.defaults&&(n.streamArn="",n.partitionKey="",n.sequenceNumber=""),null!=e.streamArn&&Object.hasOwnProperty.call(e,"streamArn")&&(n.streamArn=e.streamArn),null!=e.partitionKey&&Object.hasOwnProperty.call(e,"partitionKey")&&(n.partitionKey=e.partitionKey),null!=e.sequenceNumber&&Object.hasOwnProperty.call(e,"sequenceNumber")&&(n.sequenceNumber=e.sequenceNumber),null!=e.schemaViolationReason&&Object.hasOwnProperty.call(e,"schemaViolationReason")&&(n.schemaViolationReason=g.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.toObject(e.schemaViolationReason,t,o+1),t.oneofs)&&(n.reason="schemaViolationReason"),null!=e.messageTransformationFailureReason&&Object.hasOwnProperty.call(e,"messageTransformationFailureReason")&&(n.messageTransformationFailureReason=g.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.toObject(e.messageTransformationFailureReason,t,o+1),t.oneofs)&&(n.reason="messageTransformationFailureReason"),null!=e.apiViolationReason&&Object.hasOwnProperty.call(e,"apiViolationReason")&&(n.apiViolationReason=g.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.toObject(e.apiViolationReason,t,o+1),t.oneofs)&&(n.reason="apiViolationReason"),n},X.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},X.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason"},X),u),t.JavaScriptUDF=(Q.prototype.functionName="",Q.prototype.code="",Q.create=function(e){return new Q(e)},Q.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.functionName&&Object.hasOwnProperty.call(e,"functionName")&&t.uint32(10).string(e.functionName),null!=e.code&&Object.hasOwnProperty.call(e,"code")&&t.uint32(18).string(e.code),t},Q.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Q.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.JavaScriptUDF;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.functionName=e.string();break;case 2:i.code=e.string();break;default:e.skipType(7&a,n)}}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.functionName&&Object.hasOwnProperty.call(e,"functionName")&&!d.isString(e.functionName)?"functionName: string expected":null!=e.code&&Object.hasOwnProperty.call(e,"code")&&!d.isString(e.code)?"code: string expected":null},Q.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.JavaScriptUDF)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.JavaScriptUDF: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.pubsub.v1.JavaScriptUDF;return null!=e.functionName&&(t.functionName=String(e.functionName)),null!=e.code&&(t.code=String(e.code)),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.functionName="",o.code=""),null!=e.functionName&&Object.hasOwnProperty.call(e,"functionName")&&(o.functionName=e.functionName),null!=e.code&&Object.hasOwnProperty.call(e,"code")&&(o.code=e.code),o},Q.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Q.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.JavaScriptUDF"},Q),t.AIInference=(Z.prototype.endpoint="",Z.prototype.unstructuredInference=null,Z.prototype.serviceAccountEmail="",Object.defineProperty(Z.prototype,"inferenceMode",{get:d.oneOfGetter(o=["unstructuredInference"]),set:d.oneOfSetter(o)}),Z.create=function(e){return new Z(e)},Z.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.endpoint&&Object.hasOwnProperty.call(e,"endpoint")&&t.uint32(10).string(e.endpoint),null!=e.unstructuredInference&&Object.hasOwnProperty.call(e,"unstructuredInference")&&g.google.pubsub.v1.AIInference.UnstructuredInference.encode(e.unstructuredInference,t.uint32(18).fork(),o+1).ldelim(),null!=e.serviceAccountEmail&&Object.hasOwnProperty.call(e,"serviceAccountEmail")&&t.uint32(26).string(e.serviceAccountEmail),t},Z.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Z.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.AIInference;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.endpoint=e.string();break;case 2:i.unstructuredInference=g.google.pubsub.v1.AIInference.UnstructuredInference.decode(e,e.uint32(),void 0,n+1);break;case 3:i.serviceAccountEmail=e.string();break;default:e.skipType(7&a,n)}}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.endpoint&&Object.hasOwnProperty.call(e,"endpoint")&&!d.isString(e.endpoint))return"endpoint: string expected";if(null!=e.unstructuredInference&&Object.hasOwnProperty.call(e,"unstructuredInference")){t=g.google.pubsub.v1.AIInference.UnstructuredInference.verify(e.unstructuredInference,t+1);if(t)return"unstructuredInference."+t}return null!=e.serviceAccountEmail&&Object.hasOwnProperty.call(e,"serviceAccountEmail")&&!d.isString(e.serviceAccountEmail)?"serviceAccountEmail: string expected":null},Z.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.AIInference)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.AIInference: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.AIInference;if(null!=e.endpoint&&(o.endpoint=String(e.endpoint)),null!=e.unstructuredInference){if(!d.isObject(e.unstructuredInference))throw TypeError(".google.pubsub.v1.AIInference.unstructuredInference: object expected");o.unstructuredInference=g.google.pubsub.v1.AIInference.UnstructuredInference.fromObject(e.unstructuredInference,t+1)}return null!=e.serviceAccountEmail&&(o.serviceAccountEmail=String(e.serviceAccountEmail)),o},Z.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};return t.defaults&&(n.endpoint="",n.serviceAccountEmail=""),null!=e.endpoint&&Object.hasOwnProperty.call(e,"endpoint")&&(n.endpoint=e.endpoint),null!=e.unstructuredInference&&Object.hasOwnProperty.call(e,"unstructuredInference")&&(n.unstructuredInference=g.google.pubsub.v1.AIInference.UnstructuredInference.toObject(e.unstructuredInference,t,o+1),t.oneofs)&&(n.inferenceMode="unstructuredInference"),null!=e.serviceAccountEmail&&Object.hasOwnProperty.call(e,"serviceAccountEmail")&&(n.serviceAccountEmail=e.serviceAccountEmail),n},Z.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Z.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.AIInference"},Z.UnstructuredInference=($.prototype.parameters=null,$.create=function(e){return new $(e)},$.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.parameters&&Object.hasOwnProperty.call(e,"parameters")&&g.google.protobuf.Struct.encode(e.parameters,t.uint32(10).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,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.AIInference.UnstructuredInference;e.pos<r;){var a=e.uint32();if(a===o)break;a>>>3==1?i.parameters=g.google.protobuf.Struct.decode(e,e.uint32(),void 0,n+1):e.skipType(7&a,n)}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.parameters&&Object.hasOwnProperty.call(e,"parameters")){e=g.google.protobuf.Struct.verify(e.parameters,t+1);if(e)return"parameters."+e}return null},$.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.AIInference.UnstructuredInference)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.AIInference.UnstructuredInference: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.AIInference.UnstructuredInference;if(null!=e.parameters){if(!d.isObject(e.parameters))throw TypeError(".google.pubsub.v1.AIInference.UnstructuredInference.parameters: object expected");o.parameters=g.google.protobuf.Struct.fromObject(e.parameters,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 n={};return t.defaults&&(n.parameters=null),null!=e.parameters&&Object.hasOwnProperty.call(e,"parameters")&&(n.parameters=g.google.protobuf.Struct.toObject(e.parameters,t,o+1)),n},$.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},$.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.AIInference.UnstructuredInference"},$),Z),t.MessageTransform=(ee.prototype.javascriptUdf=null,ee.prototype.aiInference=null,ee.prototype.enabled=!1,ee.prototype.disabled=!1,Object.defineProperty(ee.prototype,"transform",{get:d.oneOfGetter(e=["javascriptUdf","aiInference"]),set:d.oneOfSetter(e)}),ee.create=function(e){return new ee(e)},ee.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.javascriptUdf&&Object.hasOwnProperty.call(e,"javascriptUdf")&&g.google.pubsub.v1.JavaScriptUDF.encode(e.javascriptUdf,t.uint32(18).fork(),o+1).ldelim(),null!=e.enabled&&Object.hasOwnProperty.call(e,"enabled")&&t.uint32(24).bool(e.enabled),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(32).bool(e.disabled),null!=e.aiInference&&Object.hasOwnProperty.call(e,"aiInference")&&g.google.pubsub.v1.AIInference.encode(e.aiInference,t.uint32(50).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,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.MessageTransform;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 2:i.javascriptUdf=g.google.pubsub.v1.JavaScriptUDF.decode(e,e.uint32(),void 0,n+1);break;case 6:i.aiInference=g.google.pubsub.v1.AIInference.decode(e,e.uint32(),void 0,n+1);break;case 3:i.enabled=e.bool();break;case 4:i.disabled=e.bool();break;default:e.skipType(7&a,n)}}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";var o,n={};if(null!=e.javascriptUdf&&Object.hasOwnProperty.call(e,"javascriptUdf")&&(o=g.google.pubsub.v1.JavaScriptUDF.verify(e.javascriptUdf,t+(n.transform=1))))return"javascriptUdf."+o;if(null!=e.aiInference&&Object.hasOwnProperty.call(e,"aiInference")){if(1===n.transform)return"transform: multiple values";if(o=g.google.pubsub.v1.AIInference.verify(e.aiInference,t+(n.transform=1)))return"aiInference."+o}return null!=e.enabled&&Object.hasOwnProperty.call(e,"enabled")&&"boolean"!=typeof e.enabled?"enabled: boolean expected":null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&"boolean"!=typeof e.disabled?"disabled: boolean expected":null},ee.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.MessageTransform)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.MessageTransform: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.MessageTransform;if(null!=e.javascriptUdf){if(!d.isObject(e.javascriptUdf))throw TypeError(".google.pubsub.v1.MessageTransform.javascriptUdf: object expected");o.javascriptUdf=g.google.pubsub.v1.JavaScriptUDF.fromObject(e.javascriptUdf,t+1)}if(null!=e.aiInference){if(!d.isObject(e.aiInference))throw TypeError(".google.pubsub.v1.MessageTransform.aiInference: object expected");o.aiInference=g.google.pubsub.v1.AIInference.fromObject(e.aiInference,t+1)}return null!=e.enabled&&(o.enabled=Boolean(e.enabled)),null!=e.disabled&&(o.disabled=Boolean(e.disabled)),o},ee.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};return t.defaults&&(n.enabled=!1,n.disabled=!1),null!=e.javascriptUdf&&Object.hasOwnProperty.call(e,"javascriptUdf")&&(n.javascriptUdf=g.google.pubsub.v1.JavaScriptUDF.toObject(e.javascriptUdf,t,o+1),t.oneofs)&&(n.transform="javascriptUdf"),null!=e.enabled&&Object.hasOwnProperty.call(e,"enabled")&&(n.enabled=e.enabled),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&(n.disabled=e.disabled),null!=e.aiInference&&Object.hasOwnProperty.call(e,"aiInference")&&(n.aiInference=g.google.pubsub.v1.AIInference.toObject(e.aiInference,t,o+1),t.oneofs)&&(n.transform="aiInference"),n},ee.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},ee.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.MessageTransform"},ee),t.Topic=(y.prototype.name="",y.prototype.labels=d.emptyObject,y.prototype.messageStoragePolicy=null,y.prototype.kmsKeyName="",y.prototype.schemaSettings=null,y.prototype.satisfiesPzs=!1,y.prototype.messageRetentionDuration=null,y.prototype.state=0,y.prototype.ingestionDataSourceSettings=null,y.prototype.messageTransforms=d.emptyArray,y.prototype.tags=d.emptyObject,y.create=function(e){return new y(e)},y.encode=function(e,t,o){if(t=t||i.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.labels&&Object.hasOwnProperty.call(e,"labels"))for(var n=Object.keys(e.labels),r=0;r<n.length;++r)t.uint32(18).fork().uint32(10).string(n[r]).uint32(18).string(e.labels[n[r]]).ldelim();if(null!=e.messageStoragePolicy&&Object.hasOwnProperty.call(e,"messageStoragePolicy")&&g.google.pubsub.v1.MessageStoragePolicy.encode(e.messageStoragePolicy,t.uint32(26).fork(),o+1).ldelim(),null!=e.kmsKeyName&&Object.hasOwnProperty.call(e,"kmsKeyName")&&t.uint32(42).string(e.kmsKeyName),null!=e.schemaSettings&&Object.hasOwnProperty.call(e,"schemaSettings")&&g.google.pubsub.v1.SchemaSettings.encode(e.schemaSettings,t.uint32(50).fork(),o+1).ldelim(),null!=e.satisfiesPzs&&Object.hasOwnProperty.call(e,"satisfiesPzs")&&t.uint32(56).bool(e.satisfiesPzs),null!=e.messageRetentionDuration&&Object.hasOwnProperty.call(e,"messageRetentionDuration")&&g.google.protobuf.Duration.encode(e.messageRetentionDuration,t.uint32(66).fork(),o+1).ldelim(),null!=e.state&&Object.hasOwnProperty.call(e,"state")&&t.uint32(72).int32(e.state),null!=e.ingestionDataSourceSettings&&Object.hasOwnProperty.call(e,"ingestionDataSourceSettings")&&g.google.pubsub.v1.IngestionDataSourceSettings.encode(e.ingestionDataSourceSettings,t.uint32(82).fork(),o+1).ldelim(),null!=e.messageTransforms&&e.messageTransforms.length)for(r=0;r<e.messageTransforms.length;++r)g.google.pubsub.v1.MessageTransform.encode(e.messageTransforms[r],t.uint32(106).fork(),o+1).ldelim();if(null!=e.tags&&Object.hasOwnProperty.call(e,"tags"))for(n=Object.keys(e.tags),r=0;r<n.length;++r)t.uint32(114).fork().uint32(10).string(n[r]).uint32(18).string(e.tags[n[r]]).ldelim();return t},y.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},y.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.Topic;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.labels===d.emptyObject&&(i.labels={});for(var s=e.uint32()+e.pos,c="",l="";e.pos<s;)switch((u=e.uint32())>>>3){case 1:c=e.string();break;case 2:l=e.string();break;default:e.skipType(7&u,n)}"__proto__"===c&&d.makeProp(i.labels,c),i.labels[c]=l;break;case 3:i.messageStoragePolicy=g.google.pubsub.v1.MessageStoragePolicy.decode(e,e.uint32(),void 0,n+1);break;case 5:i.kmsKeyName=e.string();break;case 6:i.schemaSettings=g.google.pubsub.v1.SchemaSettings.decode(e,e.uint32(),void 0,n+1);break;case 7:i.satisfiesPzs=e.bool();break;case 8:i.messageRetentionDuration=g.google.protobuf.Duration.decode(e,e.uint32(),void 0,n+1);break;case 9:i.state=e.int32();break;case 10:i.ingestionDataSourceSettings=g.google.pubsub.v1.IngestionDataSourceSettings.decode(e,e.uint32(),void 0,n+1);break;case 13:i.messageTransforms&&i.messageTransforms.length||(i.messageTransforms=[]),i.messageTransforms.push(g.google.pubsub.v1.MessageTransform.decode(e,e.uint32(),void 0,n+1));break;case 14:i.tags===d.emptyObject&&(i.tags={});var u,s=e.uint32()+e.pos;for(l=c="";e.pos<s;)switch((u=e.uint32())>>>3){case 1:c=e.string();break;case 2:l=e.string();break;default:e.skipType(7&u,n)}"__proto__"===c&&d.makeProp(i.tags,c),i.tags[c]=l;break;default:e.skipType(7&a,n)}}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.labels&&Object.hasOwnProperty.call(e,"labels")){if(!d.isObject(e.labels))return"labels: object expected";for(var o=Object.keys(e.labels),n=0;n<o.length;++n)if(!d.isString(e.labels[o[n]]))return"labels: string{k:string} expected"}if(null!=e.messageStoragePolicy&&Object.hasOwnProperty.call(e,"messageStoragePolicy")&&(r=g.google.pubsub.v1.MessageStoragePolicy.verify(e.messageStoragePolicy,t+1)))return"messageStoragePolicy."+r;if(null!=e.kmsKeyName&&Object.hasOwnProperty.call(e,"kmsKeyName")&&!d.isString(e.kmsKeyName))return"kmsKeyName: string expected";if(null!=e.schemaSettings&&Object.hasOwnProperty.call(e,"schemaSettings")&&(r=g.google.pubsub.v1.SchemaSettings.verify(e.schemaSettings,t+1)))return"schemaSettings."+r;if(null!=e.satisfiesPzs&&Object.hasOwnProperty.call(e,"satisfiesPzs")&&"boolean"!=typeof e.satisfiesPzs)return"satisfiesPzs: boolean expected";if(null!=e.messageRetentionDuration&&Object.hasOwnProperty.call(e,"messageRetentionDuration")&&(r=g.google.protobuf.Duration.verify(e.messageRetentionDuration,t+1)))return"messageRetentionDuration."+r;if(null!=e.state&&Object.hasOwnProperty.call(e,"state"))switch(e.state){default:return"state: enum value expected";case 0:case 1:case 2:}if(null!=e.ingestionDataSourceSettings&&Object.hasOwnProperty.call(e,"ingestionDataSourceSettings")&&(r=g.google.pubsub.v1.IngestionDataSourceSettings.verify(e.ingestionDataSourceSettings,t+1)))return"ingestionDataSourceSettings."+r;if(null!=e.messageTransforms&&Object.hasOwnProperty.call(e,"messageTransforms")){if(!Array.isArray(e.messageTransforms))return"messageTransforms: array expected";for(var r,n=0;n<e.messageTransforms.length;++n)if(r=g.google.pubsub.v1.MessageTransform.verify(e.messageTransforms[n],t+1))return"messageTransforms."+r}if(null!=e.tags&&Object.hasOwnProperty.call(e,"tags")){if(!d.isObject(e.tags))return"tags: object expected";for(o=Object.keys(e.tags),n=0;n<o.length;++n)if(!d.isString(e.tags[o[n]]))return"tags: string{k:string} expected"}return null},y.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.Topic)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.Topic: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.Topic;if(null!=e.name&&(o.name=String(e.name)),e.labels){if(!d.isObject(e.labels))throw TypeError(".google.pubsub.v1.Topic.labels: object expected");o.labels={};for(var n=Object.keys(e.labels),r=0;r<n.length;++r)"__proto__"===n[r]&&d.makeProp(o.labels,n[r]),o.labels[n[r]]=String(e.labels[n[r]])}if(null!=e.messageStoragePolicy){if(!d.isObject(e.messageStoragePolicy))throw TypeError(".google.pubsub.v1.Topic.messageStoragePolicy: object expected");o.messageStoragePolicy=g.google.pubsub.v1.MessageStoragePolicy.fromObject(e.messageStoragePolicy,t+1)}if(null!=e.kmsKeyName&&(o.kmsKeyName=String(e.kmsKeyName)),null!=e.schemaSettings){if(!d.isObject(e.schemaSettings))throw TypeError(".google.pubsub.v1.Topic.schemaSettings: object expected");o.schemaSettings=g.google.pubsub.v1.SchemaSettings.fromObject(e.schemaSettings,t+1)}if(null!=e.satisfiesPzs&&(o.satisfiesPzs=Boolean(e.satisfiesPzs)),null!=e.messageRetentionDuration){if(!d.isObject(e.messageRetentionDuration))throw TypeError(".google.pubsub.v1.Topic.messageRetentionDuration: object expected");o.messageRetentionDuration=g.google.protobuf.Duration.fromObject(e.messageRetentionDuration,t+1)}switch(e.state){default:"number"==typeof e.state&&(o.state=e.state);break;case"STATE_UNSPECIFIED":case 0:o.state=0;break;case"ACTIVE":case 1:o.state=1;break;case"INGESTION_RESOURCE_ERROR":case 2:o.state=2}if(null!=e.ingestionDataSourceSettings){if(!d.isObject(e.ingestionDataSourceSettings))throw TypeError(".google.pubsub.v1.Topic.ingestionDataSourceSettings: object expected");o.ingestionDataSourceSettings=g.google.pubsub.v1.IngestionDataSourceSettings.fromObject(e.ingestionDataSourceSettings,t+1)}if(e.messageTransforms){if(!Array.isArray(e.messageTransforms))throw TypeError(".google.pubsub.v1.Topic.messageTransforms: array expected");o.messageTransforms=[];for(r=0;r<e.messageTransforms.length;++r){if(!d.isObject(e.messageTransforms[r]))throw TypeError(".google.pubsub.v1.Topic.messageTransforms: object expected");o.messageTransforms[r]=g.google.pubsub.v1.MessageTransform.fromObject(e.messageTransforms[r],t+1)}}if(e.tags){if(!d.isObject(e.tags))throw TypeError(".google.pubsub.v1.Topic.tags: object expected");o.tags={};for(n=Object.keys(e.tags),r=0;r<n.length;++r)"__proto__"===n[r]&&d.makeProp(o.tags,n[r]),o.tags[n[r]]=String(e.tags[n[r]])}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 n,r={};if((t.arrays||t.defaults)&&(r.messageTransforms=[]),(t.objects||t.defaults)&&(r.labels={},r.tags={}),t.defaults&&(r.name="",r.messageStoragePolicy=null,r.kmsKeyName="",r.schemaSettings=null,r.satisfiesPzs=!1,r.messageRetentionDuration=null,r.state=t.enums===String?"STATE_UNSPECIFIED":0,r.ingestionDataSourceSettings=null),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(r.name=e.name),e.labels&&(n=Object.keys(e.labels)).length){r.labels={};for(var i=0;i<n.length;++i)"__proto__"===n[i]&&d.makeProp(r.labels,n[i]),r.labels[n[i]]=e.labels[n[i]]}if(null!=e.messageStoragePolicy&&Object.hasOwnProperty.call(e,"messageStoragePolicy")&&(r.messageStoragePolicy=g.google.pubsub.v1.MessageStoragePolicy.toObject(e.messageStoragePolicy,t,o+1)),null!=e.kmsKeyName&&Object.hasOwnProperty.call(e,"kmsKeyName")&&(r.kmsKeyName=e.kmsKeyName),null!=e.schemaSettings&&Object.hasOwnProperty.call(e,"schemaSettings")&&(r.schemaSettings=g.google.pubsub.v1.SchemaSettings.toObject(e.schemaSettings,t,o+1)),null!=e.satisfiesPzs&&Object.hasOwnProperty.call(e,"satisfiesPzs")&&(r.satisfiesPzs=e.satisfiesPzs),null!=e.messageRetentionDuration&&Object.hasOwnProperty.call(e,"messageRetentionDuration")&&(r.messageRetentionDuration=g.google.protobuf.Duration.toObject(e.messageRetentionDuration,t,o+1)),null!=e.state&&Object.hasOwnProperty.call(e,"state")&&(r.state=t.enums!==String||void 0===g.google.pubsub.v1.Topic.State[e.state]?e.state:g.google.pubsub.v1.Topic.State[e.state]),null!=e.ingestionDataSourceSettings&&Object.hasOwnProperty.call(e,"ingestionDataSourceSettings")&&(r.ingestionDataSourceSettings=g.google.pubsub.v1.IngestionDataSourceSettings.toObject(e.ingestionDataSourceSettings,t,o+1)),e.messageTransforms&&e.messageTransforms.length){r.messageTransforms=[];for(i=0;i<e.messageTransforms.length;++i)r.messageTransforms[i]=g.google.pubsub.v1.MessageTransform.toObject(e.messageTransforms[i],t,o+1)}if(e.tags&&(n=Object.keys(e.tags)).length){r.tags={};for(i=0;i<n.length;++i)"__proto__"===n[i]&&d.makeProp(r.tags,n[i]),r.tags[n[i]]=e.tags[n[i]]}return r},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.Topic"},y.State=(o={},(e=Object.create(o))[o[0]="STATE_UNSPECIFIED"]=0,e[o[1]="ACTIVE"]=1,e[o[2]="INGESTION_RESOURCE_ERROR"]=2,e),y),t.PubsubMessage=(te.prototype.data=d.newBuffer([]),te.prototype.attributes=d.emptyObject,te.prototype.messageId="",te.prototype.publishTime=null,te.prototype.orderingKey="",te.create=function(e){return new te(e)},te.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.data&&Object.hasOwnProperty.call(e,"data")&&t.uint32(10).bytes(e.data),null!=e.attributes&&Object.hasOwnProperty.call(e,"attributes"))for(var n=Object.keys(e.attributes),r=0;r<n.length;++r)t.uint32(18).fork().uint32(10).string(n[r]).uint32(18).string(e.attributes[n[r]]).ldelim();return null!=e.messageId&&Object.hasOwnProperty.call(e,"messageId")&&t.uint32(26).string(e.messageId),null!=e.publishTime&&Object.hasOwnProperty.call(e,"publishTime")&&g.google.protobuf.Timestamp.encode(e.publishTime,t.uint32(34).fork(),o+1).ldelim(),null!=e.orderingKey&&Object.hasOwnProperty.call(e,"orderingKey")&&t.uint32(42).string(e.orderingKey),t},te.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},te.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.PubsubMessage;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.data=e.bytes();break;case 2:i.attributes===d.emptyObject&&(i.attributes={});for(var s=e.uint32()+e.pos,c="",l="";e.pos<s;){var u=e.uint32();switch(u>>>3){case 1:c=e.string();break;case 2:l=e.string();break;default:e.skipType(7&u,n)}}"__proto__"===c&&d.makeProp(i.attributes,c),i.attributes[c]=l;break;case 3:i.messageId=e.string();break;case 4:i.publishTime=g.google.protobuf.Timestamp.decode(e,e.uint32(),void 0,n+1);break;case 5:i.orderingKey=e.string();break;default:e.skipType(7&a,n)}}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.data&&Object.hasOwnProperty.call(e,"data")&&!(e.data&&"number"==typeof e.data.length||d.isString(e.data)))return"data: buffer expected";if(null!=e.attributes&&Object.hasOwnProperty.call(e,"attributes")){if(!d.isObject(e.attributes))return"attributes: object expected";for(var o=Object.keys(e.attributes),n=0;n<o.length;++n)if(!d.isString(e.attributes[o[n]]))return"attributes: string{k:string} expected"}if(null!=e.messageId&&Object.hasOwnProperty.call(e,"messageId")&&!d.isString(e.messageId))return"messageId: string expected";if(null!=e.publishTime&&Object.hasOwnProperty.call(e,"publishTime")){t=g.google.protobuf.Timestamp.verify(e.publishTime,t+1);if(t)return"publishTime."+t}return null!=e.orderingKey&&Object.hasOwnProperty.call(e,"orderingKey")&&!d.isString(e.orderingKey)?"orderingKey: string expected":null},te.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.PubsubMessage)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.PubsubMessage: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.PubsubMessage;if(null!=e.data&&("string"==typeof e.data?d.base64.decode(e.data,o.data=d.newBuffer(d.base64.length(e.data)),0):0<=e.data.length&&(o.data=e.data)),e.attributes){if(!d.isObject(e.attributes))throw TypeError(".google.pubsub.v1.PubsubMessage.attributes: object expected");o.attributes={};for(var n=Object.keys(e.attributes),r=0;r<n.length;++r)"__proto__"===n[r]&&d.makeProp(o.attributes,n[r]),o.attributes[n[r]]=String(e.attributes[n[r]])}if(null!=e.messageId&&(o.messageId=String(e.messageId)),null!=e.publishTime){if(!d.isObject(e.publishTime))throw TypeError(".google.pubsub.v1.PubsubMessage.publishTime: object expected");o.publishTime=g.google.protobuf.Timestamp.fromObject(e.publishTime,t+1)}return null!=e.orderingKey&&(o.orderingKey=String(e.orderingKey)),o},te.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n,r={};if((t.objects||t.defaults)&&(r.attributes={}),t.defaults&&(t.bytes===String?r.data="":(r.data=[],t.bytes!==Array&&(r.data=d.newBuffer(r.data))),r.messageId="",r.publishTime=null,r.orderingKey=""),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&(r.data=t.bytes===String?d.base64.encode(e.data,0,e.data.length):t.bytes===Array?Array.prototype.slice.call(e.data):e.data),e.attributes&&(n=Object.keys(e.attributes)).length){r.attributes={};for(var i=0;i<n.length;++i)"__proto__"===n[i]&&d.makeProp(r.attributes,n[i]),r.attributes[n[i]]=e.attributes[n[i]]}return null!=e.messageId&&Object.hasOwnProperty.call(e,"messageId")&&(r.messageId=e.messageId),null!=e.publishTime&&Object.hasOwnProperty.call(e,"publishTime")&&(r.publishTime=g.google.protobuf.Timestamp.toObject(e.publishTime,t,o+1)),null!=e.orderingKey&&Object.hasOwnProperty.call(e,"orderingKey")&&(r.orderingKey=e.orderingKey),r},te.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},te.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.PubsubMessage"},te),t.GetTopicRequest=(oe.prototype.topic="",oe.create=function(e){return new oe(e)},oe.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.topic&&Object.hasOwnProperty.call(e,"topic")&&t.uint32(10).string(e.topic),t},oe.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},oe.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.GetTopicRequest;e.pos<r;){var a=e.uint32();if(a===o)break;a>>>3==1?i.topic=e.string():e.skipType(7&a,n)}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.topic&&Object.hasOwnProperty.call(e,"topic")&&!d.isString(e.topic)?"topic: string expected":null},oe.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.GetTopicRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.GetTopicRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.pubsub.v1.GetTopicRequest;return null!=e.topic&&(t.topic=String(e.topic)),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.topic=""),null!=e.topic&&Object.hasOwnProperty.call(e,"topic")&&(o.topic=e.topic),o},oe.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},oe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.GetTopicRequest"},oe),t.UpdateTopicRequest=(ne.prototype.topic=null,ne.prototype.updateMask=null,ne.create=function(e){return new ne(e)},ne.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.topic&&Object.hasOwnProperty.call(e,"topic")&&g.google.pubsub.v1.Topic.encode(e.topic,t.uint32(10).fork(),o+1).ldelim(),null!=e.updateMask&&Object.hasOwnProperty.call(e,"updateMask")&&g.google.protobuf.FieldMask.encode(e.updateMask,t.uint32(18).fork(),o+1).ldelim(),t},ne.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ne.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.UpdateTopicRequest;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.topic=g.google.pubsub.v1.Topic.decode(e,e.uint32(),void 0,n+1);break;case 2:i.updateMask=g.google.protobuf.FieldMask.decode(e,e.uint32(),void 0,n+1);break;default:e.skipType(7&a,n)}}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";var o;if(null!=e.topic&&Object.hasOwnProperty.call(e,"topic")&&(o=g.google.pubsub.v1.Topic.verify(e.topic,t+1)))return"topic."+o;if(null!=e.updateMask&&Object.hasOwnProperty.call(e,"updateMask")&&(o=g.google.protobuf.FieldMask.verify(e.updateMask,t+1)))return"updateMask."+o;return null},ne.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.UpdateTopicRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.UpdateTopicRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.UpdateTopicRequest;if(null!=e.topic){if(!d.isObject(e.topic))throw TypeError(".google.pubsub.v1.UpdateTopicRequest.topic: object expected");o.topic=g.google.pubsub.v1.Topic.fromObject(e.topic,t+1)}if(null!=e.updateMask){if(!d.isObject(e.updateMask))throw TypeError(".google.pubsub.v1.UpdateTopicRequest.updateMask: object expected");o.updateMask=g.google.protobuf.FieldMask.fromObject(e.updateMask,t+1)}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 n={};return t.defaults&&(n.topic=null,n.updateMask=null),null!=e.topic&&Object.hasOwnProperty.call(e,"topic")&&(n.topic=g.google.pubsub.v1.Topic.toObject(e.topic,t,o+1)),null!=e.updateMask&&Object.hasOwnProperty.call(e,"updateMask")&&(n.updateMask=g.google.protobuf.FieldMask.toObject(e.updateMask,t,o+1)),n},ne.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},ne.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.UpdateTopicRequest"},ne),t.PublishRequest=(re.prototype.topic="",re.prototype.messages=d.emptyArray,re.create=function(e){return new re(e)},re.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.topic&&Object.hasOwnProperty.call(e,"topic")&&t.uint32(10).string(e.topic),null!=e.messages&&e.messages.length)for(var n=0;n<e.messages.length;++n)g.google.pubsub.v1.PubsubMessage.encode(e.messages[n],t.uint32(18).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,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.PublishRequest;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.topic=e.string();break;case 2:i.messages&&i.messages.length||(i.messages=[]),i.messages.push(g.google.pubsub.v1.PubsubMessage.decode(e,e.uint32(),void 0,n+1));break;default:e.skipType(7&a,n)}}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.topic&&Object.hasOwnProperty.call(e,"topic")&&!d.isString(e.topic))return"topic: string expected";if(null!=e.messages&&Object.hasOwnProperty.call(e,"messages")){if(!Array.isArray(e.messages))return"messages: array expected";for(var o=0;o<e.messages.length;++o){var n=g.google.pubsub.v1.PubsubMessage.verify(e.messages[o],t+1);if(n)return"messages."+n}}return null},re.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.PublishRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.PublishRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.PublishRequest;if(null!=e.topic&&(o.topic=String(e.topic)),e.messages){if(!Array.isArray(e.messages))throw TypeError(".google.pubsub.v1.PublishRequest.messages: array expected");o.messages=[];for(var n=0;n<e.messages.length;++n){if(!d.isObject(e.messages[n]))throw TypeError(".google.pubsub.v1.PublishRequest.messages: object expected");o.messages[n]=g.google.pubsub.v1.PubsubMessage.fromObject(e.messages[n],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 n={};if((t.arrays||t.defaults)&&(n.messages=[]),t.defaults&&(n.topic=""),null!=e.topic&&Object.hasOwnProperty.call(e,"topic")&&(n.topic=e.topic),e.messages&&e.messages.length){n.messages=[];for(var r=0;r<e.messages.length;++r)n.messages[r]=g.google.pubsub.v1.PubsubMessage.toObject(e.messages[r],t,o+1)}return n},re.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},re.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.PublishRequest"},re),t.PublishResponse=(ie.prototype.messageIds=d.emptyArray,ie.create=function(e){return new ie(e)},ie.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.messageIds&&e.messageIds.length)for(var n=0;n<e.messageIds.length;++n)t.uint32(10).string(e.messageIds[n]);return t},ie.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ie.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.PublishResponse;e.pos<r;){var a=e.uint32();if(a===o)break;a>>>3==1?(i.messageIds&&i.messageIds.length||(i.messageIds=[]),i.messageIds.push(e.string())):e.skipType(7&a,n)}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.messageIds&&Object.hasOwnProperty.call(e,"messageIds")){if(!Array.isArray(e.messageIds))return"messageIds: array expected";for(var o=0;o<e.messageIds.length;++o)if(!d.isString(e.messageIds[o]))return"messageIds: string[] expected"}return null},ie.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.PublishResponse)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.PublishResponse: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.PublishResponse;if(e.messageIds){if(!Array.isArray(e.messageIds))throw TypeError(".google.pubsub.v1.PublishResponse.messageIds: array expected");o.messageIds=[];for(var n=0;n<e.messageIds.length;++n)o.messageIds[n]=String(e.messageIds[n])}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 n={};if((t.arrays||t.defaults)&&(n.messageIds=[]),e.messageIds&&e.messageIds.length){n.messageIds=[];for(var r=0;r<e.messageIds.length;++r)n.messageIds[r]=e.messageIds[r]}return n},ie.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},ie.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.PublishResponse"},ie),t.ListTopicsRequest=(ae.prototype.project="",ae.prototype.pageSize=0,ae.prototype.pageToken="",ae.create=function(e){return new ae(e)},ae.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.project&&Object.hasOwnProperty.call(e,"project")&&t.uint32(10).string(e.project),null!=e.pageSize&&Object.hasOwnProperty.call(e,"pageSize")&&t.uint32(16).int32(e.pageSize),null!=e.pageToken&&Object.hasOwnProperty.call(e,"pageToken")&&t.uint32(26).string(e.pageToken),t},ae.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ae.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.ListTopicsRequest;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.project=e.string();break;case 2:i.pageSize=e.int32();break;case 3:i.pageToken=e.string();break;default:e.skipType(7&a,n)}}return i},ae.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ae.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.project&&Object.hasOwnProperty.call(e,"project")&&!d.isString(e.project)?"project: string expected":null!=e.pageSize&&Object.hasOwnProperty.call(e,"pageSize")&&!d.isInteger(e.pageSize)?"pageSize: integer expected":null!=e.pageToken&&Object.hasOwnProperty.call(e,"pageToken")&&!d.isString(e.pageToken)?"pageToken: string expected":null},ae.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.ListTopicsRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.ListTopicsRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.pubsub.v1.ListTopicsRequest;return null!=e.project&&(t.project=String(e.project)),null!=e.pageSize&&(t.pageSize=0|e.pageSize),null!=e.pageToken&&(t.pageToken=String(e.pageToken)),t},ae.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.project="",o.pageSize=0,o.pageToken=""),null!=e.project&&Object.hasOwnProperty.call(e,"project")&&(o.project=e.project),null!=e.pageSize&&Object.hasOwnProperty.call(e,"pageSize")&&(o.pageSize=e.pageSize),null!=e.pageToken&&Object.hasOwnProperty.call(e,"pageToken")&&(o.pageToken=e.pageToken),o},ae.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},ae.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.ListTopicsRequest"},ae),t.ListTopicsResponse=(se.prototype.topics=d.emptyArray,se.prototype.nextPageToken="",se.create=function(e){return new se(e)},se.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.topics&&e.topics.length)for(var n=0;n<e.topics.length;++n)g.google.pubsub.v1.Topic.encode(e.topics[n],t.uint32(10).fork(),o+1).ldelim();return null!=e.nextPageToken&&Object.hasOwnProperty.call(e,"nextPageToken")&&t.uint32(18).string(e.nextPageToken),t},se.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},se.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.ListTopicsResponse;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.topics&&i.topics.length||(i.topics=[]),i.topics.push(g.google.pubsub.v1.Topic.decode(e,e.uint32(),void 0,n+1));break;case 2:i.nextPageToken=e.string();break;default:e.skipType(7&a,n)}}return i},se.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},se.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.topics&&Object.hasOwnProperty.call(e,"topics")){if(!Array.isArray(e.topics))return"topics: array expected";for(var o=0;o<e.topics.length;++o){var n=g.google.pubsub.v1.Topic.verify(e.topics[o],t+1);if(n)return"topics."+n}}return null!=e.nextPageToken&&Object.hasOwnProperty.call(e,"nextPageToken")&&!d.isString(e.nextPageToken)?"nextPageToken: string expected":null},se.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.ListTopicsResponse)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.ListTopicsResponse: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.ListTopicsResponse;if(e.topics){if(!Array.isArray(e.topics))throw TypeError(".google.pubsub.v1.ListTopicsResponse.topics: array expected");o.topics=[];for(var n=0;n<e.topics.length;++n){if(!d.isObject(e.topics[n]))throw TypeError(".google.pubsub.v1.ListTopicsResponse.topics: object expected");o.topics[n]=g.google.pubsub.v1.Topic.fromObject(e.topics[n],t+1)}}return null!=e.nextPageToken&&(o.nextPageToken=String(e.nextPageToken)),o},se.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.topics=[]),t.defaults&&(n.nextPageToken=""),e.topics&&e.topics.length){n.topics=[];for(var r=0;r<e.topics.length;++r)n.topics[r]=g.google.pubsub.v1.Topic.toObject(e.topics[r],t,o+1)}return null!=e.nextPageToken&&Object.hasOwnProperty.call(e,"nextPageToken")&&(n.nextPageToken=e.nextPageToken),n},se.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},se.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.ListTopicsResponse"},se),t.ListTopicSubscriptionsRequest=(ce.prototype.topic="",ce.prototype.pageSize=0,ce.prototype.pageToken="",ce.create=function(e){return new ce(e)},ce.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.topic&&Object.hasOwnProperty.call(e,"topic")&&t.uint32(10).string(e.topic),null!=e.pageSize&&Object.hasOwnProperty.call(e,"pageSize")&&t.uint32(16).int32(e.pageSize),null!=e.pageToken&&Object.hasOwnProperty.call(e,"pageToken")&&t.uint32(26).string(e.pageToken),t},ce.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ce.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.ListTopicSubscriptionsRequest;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.topic=e.string();break;case 2:i.pageSize=e.int32();break;case 3:i.pageToken=e.string();break;default:e.skipType(7&a,n)}}return i},ce.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ce.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.topic&&Object.hasOwnProperty.call(e,"topic")&&!d.isString(e.topic)?"topic: string expected":null!=e.pageSize&&Object.hasOwnProperty.call(e,"pageSize")&&!d.isInteger(e.pageSize)?"pageSize: integer expected":null!=e.pageToken&&Object.hasOwnProperty.call(e,"pageToken")&&!d.isString(e.pageToken)?"pageToken: string expected":null},ce.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.ListTopicSubscriptionsRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.ListTopicSubscriptionsRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.pubsub.v1.ListTopicSubscriptionsRequest;return null!=e.topic&&(t.topic=String(e.topic)),null!=e.pageSize&&(t.pageSize=0|e.pageSize),null!=e.pageToken&&(t.pageToken=String(e.pageToken)),t},ce.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.topic="",o.pageSize=0,o.pageToken=""),null!=e.topic&&Object.hasOwnProperty.call(e,"topic")&&(o.topic=e.topic),null!=e.pageSize&&Object.hasOwnProperty.call(e,"pageSize")&&(o.pageSize=e.pageSize),null!=e.pageToken&&Object.hasOwnProperty.call(e,"pageToken")&&(o.pageToken=e.pageToken),o},ce.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},ce.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.ListTopicSubscriptionsRequest"},ce),t.ListTopicSubscriptionsResponse=(le.prototype.subscriptions=d.emptyArray,le.prototype.nextPageToken="",le.create=function(e){return new le(e)},le.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.subscriptions&&e.subscriptions.length)for(var n=0;n<e.subscriptions.length;++n)t.uint32(10).string(e.subscriptions[n]);return null!=e.nextPageToken&&Object.hasOwnProperty.call(e,"nextPageToken")&&t.uint32(18).string(e.nextPageToken),t},le.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},le.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.ListTopicSubscriptionsResponse;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.subscriptions&&i.subscriptions.length||(i.subscriptions=[]),i.subscriptions.push(e.string());break;case 2:i.nextPageToken=e.string();break;default:e.skipType(7&a,n)}}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.subscriptions&&Object.hasOwnProperty.call(e,"subscriptions")){if(!Array.isArray(e.subscriptions))return"subscriptions: array expected";for(var o=0;o<e.subscriptions.length;++o)if(!d.isString(e.subscriptions[o]))return"subscriptions: string[] expected"}return null!=e.nextPageToken&&Object.hasOwnProperty.call(e,"nextPageToken")&&!d.isString(e.nextPageToken)?"nextPageToken: string expected":null},le.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.ListTopicSubscriptionsResponse)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.ListTopicSubscriptionsResponse: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.ListTopicSubscriptionsResponse;if(e.subscriptions){if(!Array.isArray(e.subscriptions))throw TypeError(".google.pubsub.v1.ListTopicSubscriptionsResponse.subscriptions: array expected");o.subscriptions=[];for(var n=0;n<e.subscriptions.length;++n)o.subscriptions[n]=String(e.subscriptions[n])}return null!=e.nextPageToken&&(o.nextPageToken=String(e.nextPageToken)),o},le.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.subscriptions=[]),t.defaults&&(n.nextPageToken=""),e.subscriptions&&e.subscriptions.length){n.subscriptions=[];for(var r=0;r<e.subscriptions.length;++r)n.subscriptions[r]=e.subscriptions[r]}return null!=e.nextPageToken&&Object.hasOwnProperty.call(e,"nextPageToken")&&(n.nextPageToken=e.nextPageToken),n},le.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},le.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.ListTopicSubscriptionsResponse"},le),t.ListTopicSnapshotsRequest=(ue.prototype.topic="",ue.prototype.pageSize=0,ue.prototype.pageToken="",ue.create=function(e){return new ue(e)},ue.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.topic&&Object.hasOwnProperty.call(e,"topic")&&t.uint32(10).string(e.topic),null!=e.pageSize&&Object.hasOwnProperty.call(e,"pageSize")&&t.uint32(16).int32(e.pageSize),null!=e.pageToken&&Object.hasOwnProperty.call(e,"pageToken")&&t.uint32(26).string(e.pageToken),t},ue.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ue.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.ListTopicSnapshotsRequest;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.topic=e.string();break;case 2:i.pageSize=e.int32();break;case 3:i.pageToken=e.string();break;default:e.skipType(7&a,n)}}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.topic&&Object.hasOwnProperty.call(e,"topic")&&!d.isString(e.topic)?"topic: string expected":null!=e.pageSize&&Object.hasOwnProperty.call(e,"pageSize")&&!d.isInteger(e.pageSize)?"pageSize: integer expected":null!=e.pageToken&&Object.hasOwnProperty.call(e,"pageToken")&&!d.isString(e.pageToken)?"pageToken: string expected":null},ue.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.ListTopicSnapshotsRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.ListTopicSnapshotsRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.pubsub.v1.ListTopicSnapshotsRequest;return null!=e.topic&&(t.topic=String(e.topic)),null!=e.pageSize&&(t.pageSize=0|e.pageSize),null!=e.pageToken&&(t.pageToken=String(e.pageToken)),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.topic="",o.pageSize=0,o.pageToken=""),null!=e.topic&&Object.hasOwnProperty.call(e,"topic")&&(o.topic=e.topic),null!=e.pageSize&&Object.hasOwnProperty.call(e,"pageSize")&&(o.pageSize=e.pageSize),null!=e.pageToken&&Object.hasOwnProperty.call(e,"pageToken")&&(o.pageToken=e.pageToken),o},ue.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},ue.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.ListTopicSnapshotsRequest"},ue),t.ListTopicSnapshotsResponse=(pe.prototype.snapshots=d.emptyArray,pe.prototype.nextPageToken="",pe.create=function(e){return new pe(e)},pe.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.snapshots&&e.snapshots.length)for(var n=0;n<e.snapshots.length;++n)t.uint32(10).string(e.snapshots[n]);return null!=e.nextPageToken&&Object.hasOwnProperty.call(e,"nextPageToken")&&t.uint32(18).string(e.nextPageToken),t},pe.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},pe.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.ListTopicSnapshotsResponse;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.snapshots&&i.snapshots.length||(i.snapshots=[]),i.snapshots.push(e.string());break;case 2:i.nextPageToken=e.string();break;default:e.skipType(7&a,n)}}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.snapshots&&Object.hasOwnProperty.call(e,"snapshots")){if(!Array.isArray(e.snapshots))return"snapshots: array expected";for(var o=0;o<e.snapshots.length;++o)if(!d.isString(e.snapshots[o]))return"snapshots: string[] expected"}return null!=e.nextPageToken&&Object.hasOwnProperty.call(e,"nextPageToken")&&!d.isString(e.nextPageToken)?"nextPageToken: string expected":null},pe.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.ListTopicSnapshotsResponse)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.ListTopicSnapshotsResponse: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.ListTopicSnapshotsResponse;if(e.snapshots){if(!Array.isArray(e.snapshots))throw TypeError(".google.pubsub.v1.ListTopicSnapshotsResponse.snapshots: array expected");o.snapshots=[];for(var n=0;n<e.snapshots.length;++n)o.snapshots[n]=String(e.snapshots[n])}return null!=e.nextPageToken&&(o.nextPageToken=String(e.nextPageToken)),o},pe.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.snapshots=[]),t.defaults&&(n.nextPageToken=""),e.snapshots&&e.snapshots.length){n.snapshots=[];for(var r=0;r<e.snapshots.length;++r)n.snapshots[r]=e.snapshots[r]}return null!=e.nextPageToken&&Object.hasOwnProperty.call(e,"nextPageToken")&&(n.nextPageToken=e.nextPageToken),n},pe.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},pe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.ListTopicSnapshotsResponse"},pe),t.DeleteTopicRequest=(de.prototype.topic="",de.create=function(e){return new de(e)},de.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.topic&&Object.hasOwnProperty.call(e,"topic")&&t.uint32(10).string(e.topic),t},de.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},de.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.DeleteTopicRequest;e.pos<r;){var a=e.uint32();if(a===o)break;a>>>3==1?i.topic=e.string():e.skipType(7&a,n)}return i},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!=e.topic&&Object.hasOwnProperty.call(e,"topic")&&!d.isString(e.topic)?"topic: string expected":null},de.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.DeleteTopicRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.DeleteTopicRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.pubsub.v1.DeleteTopicRequest;return null!=e.topic&&(t.topic=String(e.topic)),t},de.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.topic=""),null!=e.topic&&Object.hasOwnProperty.call(e,"topic")&&(o.topic=e.topic),o},de.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},de.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.DeleteTopicRequest"},de),t.DetachSubscriptionRequest=(ge.prototype.subscription="",ge.create=function(e){return new ge(e)},ge.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.subscription&&Object.hasOwnProperty.call(e,"subscription")&&t.uint32(10).string(e.subscription),t},ge.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ge.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.DetachSubscriptionRequest;e.pos<r;){var a=e.uint32();if(a===o)break;a>>>3==1?i.subscription=e.string():e.skipType(7&a,n)}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.subscription&&Object.hasOwnProperty.call(e,"subscription")&&!d.isString(e.subscription)?"subscription: string expected":null},ge.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.DetachSubscriptionRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.DetachSubscriptionRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.pubsub.v1.DetachSubscriptionRequest;return null!=e.subscription&&(t.subscription=String(e.subscription)),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.subscription=""),null!=e.subscription&&Object.hasOwnProperty.call(e,"subscription")&&(o.subscription=e.subscription),o},ge.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},ge.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.DetachSubscriptionRequest"},ge),t.DetachSubscriptionResponse=(fe.create=function(e){return new fe(e)},fe.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return t},fe.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},fe.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,t=new g.google.pubsub.v1.DetachSubscriptionResponse;e.pos<r;){var i=e.uint32();if(i===o)break;e.skipType(7&i,n)}return t},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},fe.fromObject=function(e,t){return e instanceof g.google.pubsub.v1.DetachSubscriptionResponse?e:new g.google.pubsub.v1.DetachSubscriptionResponse},fe.toObject=function(){return{}},fe.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},fe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.DetachSubscriptionResponse"},fe),t.Subscriber=(((be.prototype=Object.create(n.rpc.Service.prototype)).constructor=be).create=function(e,t,o){return new this(e,t,o)},Object.defineProperty(be.prototype.createSubscription=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.Subscription,g.google.pubsub.v1.Subscription,t,o)},"name",{value:"CreateSubscription"}),Object.defineProperty(be.prototype.getSubscription=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.GetSubscriptionRequest,g.google.pubsub.v1.Subscription,t,o)},"name",{value:"GetSubscription"}),Object.defineProperty(be.prototype.updateSubscription=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.UpdateSubscriptionRequest,g.google.pubsub.v1.Subscription,t,o)},"name",{value:"UpdateSubscription"}),Object.defineProperty(be.prototype.listSubscriptions=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.ListSubscriptionsRequest,g.google.pubsub.v1.ListSubscriptionsResponse,t,o)},"name",{value:"ListSubscriptions"}),Object.defineProperty(be.prototype.deleteSubscription=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.DeleteSubscriptionRequest,g.google.protobuf.Empty,t,o)},"name",{value:"DeleteSubscription"}),Object.defineProperty(be.prototype.modifyAckDeadline=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.ModifyAckDeadlineRequest,g.google.protobuf.Empty,t,o)},"name",{value:"ModifyAckDeadline"}),Object.defineProperty(be.prototype.acknowledge=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.AcknowledgeRequest,g.google.protobuf.Empty,t,o)},"name",{value:"Acknowledge"}),Object.defineProperty(be.prototype.pull=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.PullRequest,g.google.pubsub.v1.PullResponse,t,o)},"name",{value:"Pull"}),Object.defineProperty(be.prototype.streamingPull=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.StreamingPullRequest,g.google.pubsub.v1.StreamingPullResponse,t,o)},"name",{value:"StreamingPull"}),Object.defineProperty(be.prototype.modifyPushConfig=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.ModifyPushConfigRequest,g.google.protobuf.Empty,t,o)},"name",{value:"ModifyPushConfig"}),Object.defineProperty(be.prototype.getSnapshot=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.GetSnapshotRequest,g.google.pubsub.v1.Snapshot,t,o)},"name",{value:"GetSnapshot"}),Object.defineProperty(be.prototype.listSnapshots=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.ListSnapshotsRequest,g.google.pubsub.v1.ListSnapshotsResponse,t,o)},"name",{value:"ListSnapshots"}),Object.defineProperty(be.prototype.createSnapshot=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.CreateSnapshotRequest,g.google.pubsub.v1.Snapshot,t,o)},"name",{value:"CreateSnapshot"}),Object.defineProperty(be.prototype.updateSnapshot=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.UpdateSnapshotRequest,g.google.pubsub.v1.Snapshot,t,o)},"name",{value:"UpdateSnapshot"}),Object.defineProperty(be.prototype.deleteSnapshot=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.DeleteSnapshotRequest,g.google.protobuf.Empty,t,o)},"name",{value:"DeleteSnapshot"}),Object.defineProperty(be.prototype.seek=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.SeekRequest,g.google.pubsub.v1.SeekResponse,t,o)},"name",{value:"Seek"}),be),t.Subscription=(O.prototype.name="",O.prototype.topic="",O.prototype.pushConfig=null,O.prototype.bigqueryConfig=null,O.prototype.cloudStorageConfig=null,O.prototype.bigtableConfig=null,O.prototype.ackDeadlineSeconds=0,O.prototype.retainAckedMessages=!1,O.prototype.messageRetentionDuration=null,O.prototype.labels=d.emptyObject,O.prototype.enableMessageOrdering=!1,O.prototype.expirationPolicy=null,O.prototype.filter="",O.prototype.deadLetterPolicy=null,O.prototype.retryPolicy=null,O.prototype.detached=!1,O.prototype.enableExactlyOnceDelivery=!1,O.prototype.topicMessageRetentionDuration=null,O.prototype.state=0,O.prototype.analyticsHubSubscriptionInfo=null,O.prototype.messageTransforms=d.emptyArray,O.prototype.tags=d.emptyObject,O.create=function(e){return new O(e)},O.encode=function(e,t,o){if(t=t||i.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.topic&&Object.hasOwnProperty.call(e,"topic")&&t.uint32(18).string(e.topic),null!=e.pushConfig&&Object.hasOwnProperty.call(e,"pushConfig")&&g.google.pubsub.v1.PushConfig.encode(e.pushConfig,t.uint32(34).fork(),o+1).ldelim(),null!=e.ackDeadlineSeconds&&Object.hasOwnProperty.call(e,"ackDeadlineSeconds")&&t.uint32(40).int32(e.ackDeadlineSeconds),null!=e.retainAckedMessages&&Object.hasOwnProperty.call(e,"retainAckedMessages")&&t.uint32(56).bool(e.retainAckedMessages),null!=e.messageRetentionDuration&&Object.hasOwnProperty.call(e,"messageRetentionDuration")&&g.google.protobuf.Duration.encode(e.messageRetentionDuration,t.uint32(66).fork(),o+1).ldelim(),null!=e.labels&&Object.hasOwnProperty.call(e,"labels"))for(var n=Object.keys(e.labels),r=0;r<n.length;++r)t.uint32(74).fork().uint32(10).string(n[r]).uint32(18).string(e.labels[n[r]]).ldelim();if(null!=e.enableMessageOrdering&&Object.hasOwnProperty.call(e,"enableMessageOrdering")&&t.uint32(80).bool(e.enableMessageOrdering),null!=e.expirationPolicy&&Object.hasOwnProperty.call(e,"expirationPolicy")&&g.google.pubsub.v1.ExpirationPolicy.encode(e.expirationPolicy,t.uint32(90).fork(),o+1).ldelim(),null!=e.filter&&Object.hasOwnProperty.call(e,"filter")&&t.uint32(98).string(e.filter),null!=e.deadLetterPolicy&&Object.hasOwnProperty.call(e,"deadLetterPolicy")&&g.google.pubsub.v1.DeadLetterPolicy.encode(e.deadLetterPolicy,t.uint32(106).fork(),o+1).ldelim(),null!=e.retryPolicy&&Object.hasOwnProperty.call(e,"retryPolicy")&&g.google.pubsub.v1.RetryPolicy.encode(e.retryPolicy,t.uint32(114).fork(),o+1).ldelim(),null!=e.detached&&Object.hasOwnProperty.call(e,"detached")&&t.uint32(120).bool(e.detached),null!=e.enableExactlyOnceDelivery&&Object.hasOwnProperty.call(e,"enableExactlyOnceDelivery")&&t.uint32(128).bool(e.enableExactlyOnceDelivery),null!=e.topicMessageRetentionDuration&&Object.hasOwnProperty.call(e,"topicMessageRetentionDuration")&&g.google.protobuf.Duration.encode(e.topicMessageRetentionDuration,t.uint32(138).fork(),o+1).ldelim(),null!=e.bigqueryConfig&&Object.hasOwnProperty.call(e,"bigqueryConfig")&&g.google.pubsub.v1.BigQueryConfig.encode(e.bigqueryConfig,t.uint32(146).fork(),o+1).ldelim(),null!=e.state&&Object.hasOwnProperty.call(e,"state")&&t.uint32(152).int32(e.state),null!=e.cloudStorageConfig&&Object.hasOwnProperty.call(e,"cloudStorageConfig")&&g.google.pubsub.v1.CloudStorageConfig.encode(e.cloudStorageConfig,t.uint32(178).fork(),o+1).ldelim(),null!=e.analyticsHubSubscriptionInfo&&Object.hasOwnProperty.call(e,"analyticsHubSubscriptionInfo")&&g.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.encode(e.analyticsHubSubscriptionInfo,t.uint32(186).fork(),o+1).ldelim(),null!=e.messageTransforms&&e.messageTransforms.length)for(r=0;r<e.messageTransforms.length;++r)g.google.pubsub.v1.MessageTransform.encode(e.messageTransforms[r],t.uint32(202).fork(),o+1).ldelim();if(null!=e.tags&&Object.hasOwnProperty.call(e,"tags"))for(n=Object.keys(e.tags),r=0;r<n.length;++r)t.uint32(210).fork().uint32(10).string(n[r]).uint32(18).string(e.tags[n[r]]).ldelim();return null!=e.bigtableConfig&&Object.hasOwnProperty.call(e,"bigtableConfig")&&g.google.pubsub.v1.BigtableConfig.encode(e.bigtableConfig,t.uint32(218).fork(),o+1).ldelim(),t},O.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},O.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.Subscription;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.topic=e.string();break;case 4:i.pushConfig=g.google.pubsub.v1.PushConfig.decode(e,e.uint32(),void 0,n+1);break;case 18:i.bigqueryConfig=g.google.pubsub.v1.BigQueryConfig.decode(e,e.uint32(),void 0,n+1);break;case 22:i.cloudStorageConfig=g.google.pubsub.v1.CloudStorageConfig.decode(e,e.uint32(),void 0,n+1);break;case 27:i.bigtableConfig=g.google.pubsub.v1.BigtableConfig.decode(e,e.uint32(),void 0,n+1);break;case 5:i.ackDeadlineSeconds=e.int32();break;case 7:i.retainAckedMessages=e.bool();break;case 8:i.messageRetentionDuration=g.google.protobuf.Duration.decode(e,e.uint32(),void 0,n+1);break;case 9:i.labels===d.emptyObject&&(i.labels={});for(var s=e.uint32()+e.pos,c="",l="";e.pos<s;)switch((u=e.uint32())>>>3){case 1:c=e.string();break;case 2:l=e.string();break;default:e.skipType(7&u,n)}"__proto__"===c&&d.makeProp(i.labels,c),i.labels[c]=l;break;case 10:i.enableMessageOrdering=e.bool();break;case 11:i.expirationPolicy=g.google.pubsub.v1.ExpirationPolicy.decode(e,e.uint32(),void 0,n+1);break;case 12:i.filter=e.string();break;case 13:i.deadLetterPolicy=g.google.pubsub.v1.DeadLetterPolicy.decode(e,e.uint32(),void 0,n+1);break;case 14:i.retryPolicy=g.google.pubsub.v1.RetryPolicy.decode(e,e.uint32(),void 0,n+1);break;case 15:i.detached=e.bool();break;case 16:i.enableExactlyOnceDelivery=e.bool();break;case 17:i.topicMessageRetentionDuration=g.google.protobuf.Duration.decode(e,e.uint32(),void 0,n+1);break;case 19:i.state=e.int32();break;case 23:i.analyticsHubSubscriptionInfo=g.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.decode(e,e.uint32(),void 0,n+1);break;case 25:i.messageTransforms&&i.messageTransforms.length||(i.messageTransforms=[]),i.messageTransforms.push(g.google.pubsub.v1.MessageTransform.decode(e,e.uint32(),void 0,n+1));break;case 26:i.tags===d.emptyObject&&(i.tags={});var u,s=e.uint32()+e.pos;for(l=c="";e.pos<s;)switch((u=e.uint32())>>>3){case 1:c=e.string();break;case 2:l=e.string();break;default:e.skipType(7&u,n)}"__proto__"===c&&d.makeProp(i.tags,c),i.tags[c]=l;break;default:e.skipType(7&a,n)}}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.topic&&Object.hasOwnProperty.call(e,"topic")&&!d.isString(e.topic))return"topic: string expected";if(null!=e.pushConfig&&Object.hasOwnProperty.call(e,"pushConfig")&&(r=g.google.pubsub.v1.PushConfig.verify(e.pushConfig,t+1)))return"pushConfig."+r;if(null!=e.bigqueryConfig&&Object.hasOwnProperty.call(e,"bigqueryConfig")&&(r=g.google.pubsub.v1.BigQueryConfig.verify(e.bigqueryConfig,t+1)))return"bigqueryConfig."+r;if(null!=e.cloudStorageConfig&&Object.hasOwnProperty.call(e,"cloudStorageConfig")&&(r=g.google.pubsub.v1.CloudStorageConfig.verify(e.cloudStorageConfig,t+1)))return"cloudStorageConfig."+r;if(null!=e.bigtableConfig&&Object.hasOwnProperty.call(e,"bigtableConfig")&&(r=g.google.pubsub.v1.BigtableConfig.verify(e.bigtableConfig,t+1)))return"bigtableConfig."+r;if(null!=e.ackDeadlineSeconds&&Object.hasOwnProperty.call(e,"ackDeadlineSeconds")&&!d.isInteger(e.ackDeadlineSeconds))return"ackDeadlineSeconds: integer expected";if(null!=e.retainAckedMessages&&Object.hasOwnProperty.call(e,"retainAckedMessages")&&"boolean"!=typeof e.retainAckedMessages)return"retainAckedMessages: boolean expected";if(null!=e.messageRetentionDuration&&Object.hasOwnProperty.call(e,"messageRetentionDuration")&&(r=g.google.protobuf.Duration.verify(e.messageRetentionDuration,t+1)))return"messageRetentionDuration."+r;if(null!=e.labels&&Object.hasOwnProperty.call(e,"labels")){if(!d.isObject(e.labels))return"labels: object expected";for(var o=Object.keys(e.labels),n=0;n<o.length;++n)if(!d.isString(e.labels[o[n]]))return"labels: string{k:string} expected"}if(null!=e.enableMessageOrdering&&Object.hasOwnProperty.call(e,"enableMessageOrdering")&&"boolean"!=typeof e.enableMessageOrdering)return"enableMessageOrdering: boolean expected";if(null!=e.expirationPolicy&&Object.hasOwnProperty.call(e,"expirationPolicy")&&(r=g.google.pubsub.v1.ExpirationPolicy.verify(e.expirationPolicy,t+1)))return"expirationPolicy."+r;if(null!=e.filter&&Object.hasOwnProperty.call(e,"filter")&&!d.isString(e.filter))return"filter: string expected";if(null!=e.deadLetterPolicy&&Object.hasOwnProperty.call(e,"deadLetterPolicy")&&(r=g.google.pubsub.v1.DeadLetterPolicy.verify(e.deadLetterPolicy,t+1)))return"deadLetterPolicy."+r;if(null!=e.retryPolicy&&Object.hasOwnProperty.call(e,"retryPolicy")&&(r=g.google.pubsub.v1.RetryPolicy.verify(e.retryPolicy,t+1)))return"retryPolicy."+r;if(null!=e.detached&&Object.hasOwnProperty.call(e,"detached")&&"boolean"!=typeof e.detached)return"detached: boolean expected";if(null!=e.enableExactlyOnceDelivery&&Object.hasOwnProperty.call(e,"enableExactlyOnceDelivery")&&"boolean"!=typeof e.enableExactlyOnceDelivery)return"enableExactlyOnceDelivery: boolean expected";if(null!=e.topicMessageRetentionDuration&&Object.hasOwnProperty.call(e,"topicMessageRetentionDuration")&&(r=g.google.protobuf.Duration.verify(e.topicMessageRetentionDuration,t+1)))return"topicMessageRetentionDuration."+r;if(null!=e.state&&Object.hasOwnProperty.call(e,"state"))switch(e.state){default:return"state: enum value expected";case 0:case 1:case 2:}if(null!=e.analyticsHubSubscriptionInfo&&Object.hasOwnProperty.call(e,"analyticsHubSubscriptionInfo")&&(r=g.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.verify(e.analyticsHubSubscriptionInfo,t+1)))return"analyticsHubSubscriptionInfo."+r;if(null!=e.messageTransforms&&Object.hasOwnProperty.call(e,"messageTransforms")){if(!Array.isArray(e.messageTransforms))return"messageTransforms: array expected";for(var r,n=0;n<e.messageTransforms.length;++n)if(r=g.google.pubsub.v1.MessageTransform.verify(e.messageTransforms[n],t+1))return"messageTransforms."+r}if(null!=e.tags&&Object.hasOwnProperty.call(e,"tags")){if(!d.isObject(e.tags))return"tags: object expected";for(o=Object.keys(e.tags),n=0;n<o.length;++n)if(!d.isString(e.tags[o[n]]))return"tags: string{k:string} expected"}return null},O.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.Subscription)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.Subscription: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.Subscription;if(null!=e.name&&(o.name=String(e.name)),null!=e.topic&&(o.topic=String(e.topic)),null!=e.pushConfig){if(!d.isObject(e.pushConfig))throw TypeError(".google.pubsub.v1.Subscription.pushConfig: object expected");o.pushConfig=g.google.pubsub.v1.PushConfig.fromObject(e.pushConfig,t+1)}if(null!=e.bigqueryConfig){if(!d.isObject(e.bigqueryConfig))throw TypeError(".google.pubsub.v1.Subscription.bigqueryConfig: object expected");o.bigqueryConfig=g.google.pubsub.v1.BigQueryConfig.fromObject(e.bigqueryConfig,t+1)}if(null!=e.cloudStorageConfig){if(!d.isObject(e.cloudStorageConfig))throw TypeError(".google.pubsub.v1.Subscription.cloudStorageConfig: object expected");o.cloudStorageConfig=g.google.pubsub.v1.CloudStorageConfig.fromObject(e.cloudStorageConfig,t+1)}if(null!=e.bigtableConfig){if(!d.isObject(e.bigtableConfig))throw TypeError(".google.pubsub.v1.Subscription.bigtableConfig: object expected");o.bigtableConfig=g.google.pubsub.v1.BigtableConfig.fromObject(e.bigtableConfig,t+1)}if(null!=e.ackDeadlineSeconds&&(o.ackDeadlineSeconds=0|e.ackDeadlineSeconds),null!=e.retainAckedMessages&&(o.retainAckedMessages=Boolean(e.retainAckedMessages)),null!=e.messageRetentionDuration){if(!d.isObject(e.messageRetentionDuration))throw TypeError(".google.pubsub.v1.Subscription.messageRetentionDuration: object expected");o.messageRetentionDuration=g.google.protobuf.Duration.fromObject(e.messageRetentionDuration,t+1)}if(e.labels){if(!d.isObject(e.labels))throw TypeError(".google.pubsub.v1.Subscription.labels: object expected");o.labels={};for(var n=Object.keys(e.labels),r=0;r<n.length;++r)"__proto__"===n[r]&&d.makeProp(o.labels,n[r]),o.labels[n[r]]=String(e.labels[n[r]])}if(null!=e.enableMessageOrdering&&(o.enableMessageOrdering=Boolean(e.enableMessageOrdering)),null!=e.expirationPolicy){if(!d.isObject(e.expirationPolicy))throw TypeError(".google.pubsub.v1.Subscription.expirationPolicy: object expected");o.expirationPolicy=g.google.pubsub.v1.ExpirationPolicy.fromObject(e.expirationPolicy,t+1)}if(null!=e.filter&&(o.filter=String(e.filter)),null!=e.deadLetterPolicy){if(!d.isObject(e.deadLetterPolicy))throw TypeError(".google.pubsub.v1.Subscription.deadLetterPolicy: object expected");o.deadLetterPolicy=g.google.pubsub.v1.DeadLetterPolicy.fromObject(e.deadLetterPolicy,t+1)}if(null!=e.retryPolicy){if(!d.isObject(e.retryPolicy))throw TypeError(".google.pubsub.v1.Subscription.retryPolicy: object expected");o.retryPolicy=g.google.pubsub.v1.RetryPolicy.fromObject(e.retryPolicy,t+1)}if(null!=e.detached&&(o.detached=Boolean(e.detached)),null!=e.enableExactlyOnceDelivery&&(o.enableExactlyOnceDelivery=Boolean(e.enableExactlyOnceDelivery)),null!=e.topicMessageRetentionDuration){if(!d.isObject(e.topicMessageRetentionDuration))throw TypeError(".google.pubsub.v1.Subscription.topicMessageRetentionDuration: object expected");o.topicMessageRetentionDuration=g.google.protobuf.Duration.fromObject(e.topicMessageRetentionDuration,t+1)}switch(e.state){default:"number"==typeof e.state&&(o.state=e.state);break;case"STATE_UNSPECIFIED":case 0:o.state=0;break;case"ACTIVE":case 1:o.state=1;break;case"RESOURCE_ERROR":case 2:o.state=2}if(null!=e.analyticsHubSubscriptionInfo){if(!d.isObject(e.analyticsHubSubscriptionInfo))throw TypeError(".google.pubsub.v1.Subscription.analyticsHubSubscriptionInfo: object expected");o.analyticsHubSubscriptionInfo=g.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.fromObject(e.analyticsHubSubscriptionInfo,t+1)}if(e.messageTransforms){if(!Array.isArray(e.messageTransforms))throw TypeError(".google.pubsub.v1.Subscription.messageTransforms: array expected");o.messageTransforms=[];for(r=0;r<e.messageTransforms.length;++r){if(!d.isObject(e.messageTransforms[r]))throw TypeError(".google.pubsub.v1.Subscription.messageTransforms: object expected");o.messageTransforms[r]=g.google.pubsub.v1.MessageTransform.fromObject(e.messageTransforms[r],t+1)}}if(e.tags){if(!d.isObject(e.tags))throw TypeError(".google.pubsub.v1.Subscription.tags: object expected");o.tags={};for(n=Object.keys(e.tags),r=0;r<n.length;++r)"__proto__"===n[r]&&d.makeProp(o.tags,n[r]),o.tags[n[r]]=String(e.tags[n[r]])}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 n,r={};if((t.arrays||t.defaults)&&(r.messageTransforms=[]),(t.objects||t.defaults)&&(r.labels={},r.tags={}),t.defaults&&(r.name="",r.topic="",r.pushConfig=null,r.ackDeadlineSeconds=0,r.retainAckedMessages=!1,r.messageRetentionDuration=null,r.enableMessageOrdering=!1,r.expirationPolicy=null,r.filter="",r.deadLetterPolicy=null,r.retryPolicy=null,r.detached=!1,r.enableExactlyOnceDelivery=!1,r.topicMessageRetentionDuration=null,r.bigqueryConfig=null,r.state=t.enums===String?"STATE_UNSPECIFIED":0,r.cloudStorageConfig=null,r.analyticsHubSubscriptionInfo=null,r.bigtableConfig=null),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(r.name=e.name),null!=e.topic&&Object.hasOwnProperty.call(e,"topic")&&(r.topic=e.topic),null!=e.pushConfig&&Object.hasOwnProperty.call(e,"pushConfig")&&(r.pushConfig=g.google.pubsub.v1.PushConfig.toObject(e.pushConfig,t,o+1)),null!=e.ackDeadlineSeconds&&Object.hasOwnProperty.call(e,"ackDeadlineSeconds")&&(r.ackDeadlineSeconds=e.ackDeadlineSeconds),null!=e.retainAckedMessages&&Object.hasOwnProperty.call(e,"retainAckedMessages")&&(r.retainAckedMessages=e.retainAckedMessages),null!=e.messageRetentionDuration&&Object.hasOwnProperty.call(e,"messageRetentionDuration")&&(r.messageRetentionDuration=g.google.protobuf.Duration.toObject(e.messageRetentionDuration,t,o+1)),e.labels&&(n=Object.keys(e.labels)).length){r.labels={};for(var i=0;i<n.length;++i)"__proto__"===n[i]&&d.makeProp(r.labels,n[i]),r.labels[n[i]]=e.labels[n[i]]}if(null!=e.enableMessageOrdering&&Object.hasOwnProperty.call(e,"enableMessageOrdering")&&(r.enableMessageOrdering=e.enableMessageOrdering),null!=e.expirationPolicy&&Object.hasOwnProperty.call(e,"expirationPolicy")&&(r.expirationPolicy=g.google.pubsub.v1.ExpirationPolicy.toObject(e.expirationPolicy,t,o+1)),null!=e.filter&&Object.hasOwnProperty.call(e,"filter")&&(r.filter=e.filter),null!=e.deadLetterPolicy&&Object.hasOwnProperty.call(e,"deadLetterPolicy")&&(r.deadLetterPolicy=g.google.pubsub.v1.DeadLetterPolicy.toObject(e.deadLetterPolicy,t,o+1)),null!=e.retryPolicy&&Object.hasOwnProperty.call(e,"retryPolicy")&&(r.retryPolicy=g.google.pubsub.v1.RetryPolicy.toObject(e.retryPolicy,t,o+1)),null!=e.detached&&Object.hasOwnProperty.call(e,"detached")&&(r.detached=e.detached),null!=e.enableExactlyOnceDelivery&&Object.hasOwnProperty.call(e,"enableExactlyOnceDelivery")&&(r.enableExactlyOnceDelivery=e.enableExactlyOnceDelivery),null!=e.topicMessageRetentionDuration&&Object.hasOwnProperty.call(e,"topicMessageRetentionDuration")&&(r.topicMessageRetentionDuration=g.google.protobuf.Duration.toObject(e.topicMessageRetentionDuration,t,o+1)),null!=e.bigqueryConfig&&Object.hasOwnProperty.call(e,"bigqueryConfig")&&(r.bigqueryConfig=g.google.pubsub.v1.BigQueryConfig.toObject(e.bigqueryConfig,t,o+1)),null!=e.state&&Object.hasOwnProperty.call(e,"state")&&(r.state=t.enums!==String||void 0===g.google.pubsub.v1.Subscription.State[e.state]?e.state:g.google.pubsub.v1.Subscription.State[e.state]),null!=e.cloudStorageConfig&&Object.hasOwnProperty.call(e,"cloudStorageConfig")&&(r.cloudStorageConfig=g.google.pubsub.v1.CloudStorageConfig.toObject(e.cloudStorageConfig,t,o+1)),null!=e.analyticsHubSubscriptionInfo&&Object.hasOwnProperty.call(e,"analyticsHubSubscriptionInfo")&&(r.analyticsHubSubscriptionInfo=g.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.toObject(e.analyticsHubSubscriptionInfo,t,o+1)),e.messageTransforms&&e.messageTransforms.length){r.messageTransforms=[];for(i=0;i<e.messageTransforms.length;++i)r.messageTransforms[i]=g.google.pubsub.v1.MessageTransform.toObject(e.messageTransforms[i],t,o+1)}if(e.tags&&(n=Object.keys(e.tags)).length){r.tags={};for(i=0;i<n.length;++i)"__proto__"===n[i]&&d.makeProp(r.tags,n[i]),r.tags[n[i]]=e.tags[n[i]]}return null!=e.bigtableConfig&&Object.hasOwnProperty.call(e,"bigtableConfig")&&(r.bigtableConfig=g.google.pubsub.v1.BigtableConfig.toObject(e.bigtableConfig,t,o+1)),r},O.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},O.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.Subscription"},O.State=(o={},(e=Object.create(o))[o[0]="STATE_UNSPECIFIED"]=0,e[o[1]="ACTIVE"]=1,e[o[2]="RESOURCE_ERROR"]=2,e),O.AnalyticsHubSubscriptionInfo=(me.prototype.listing="",me.prototype.subscription="",me.create=function(e){return new me(e)},me.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.listing&&Object.hasOwnProperty.call(e,"listing")&&t.uint32(10).string(e.listing),null!=e.subscription&&Object.hasOwnProperty.call(e,"subscription")&&t.uint32(18).string(e.subscription),t},me.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},me.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.listing=e.string();break;case 2:i.subscription=e.string();break;default:e.skipType(7&a,n)}}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.listing&&Object.hasOwnProperty.call(e,"listing")&&!d.isString(e.listing)?"listing: string expected":null!=e.subscription&&Object.hasOwnProperty.call(e,"subscription")&&!d.isString(e.subscription)?"subscription: string expected":null},me.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo;return null!=e.listing&&(t.listing=String(e.listing)),null!=e.subscription&&(t.subscription=String(e.subscription)),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.listing="",o.subscription=""),null!=e.listing&&Object.hasOwnProperty.call(e,"listing")&&(o.listing=e.listing),null!=e.subscription&&Object.hasOwnProperty.call(e,"subscription")&&(o.subscription=e.subscription),o},me.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},me.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo"},me),O),t.RetryPolicy=(he.prototype.minimumBackoff=null,he.prototype.maximumBackoff=null,he.create=function(e){return new he(e)},he.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.minimumBackoff&&Object.hasOwnProperty.call(e,"minimumBackoff")&&g.google.protobuf.Duration.encode(e.minimumBackoff,t.uint32(10).fork(),o+1).ldelim(),null!=e.maximumBackoff&&Object.hasOwnProperty.call(e,"maximumBackoff")&&g.google.protobuf.Duration.encode(e.maximumBackoff,t.uint32(18).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,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.RetryPolicy;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.minimumBackoff=g.google.protobuf.Duration.decode(e,e.uint32(),void 0,n+1);break;case 2:i.maximumBackoff=g.google.protobuf.Duration.decode(e,e.uint32(),void 0,n+1);break;default:e.skipType(7&a,n)}}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";var o;if(null!=e.minimumBackoff&&Object.hasOwnProperty.call(e,"minimumBackoff")&&(o=g.google.protobuf.Duration.verify(e.minimumBackoff,t+1)))return"minimumBackoff."+o;if(null!=e.maximumBackoff&&Object.hasOwnProperty.call(e,"maximumBackoff")&&(o=g.google.protobuf.Duration.verify(e.maximumBackoff,t+1)))return"maximumBackoff."+o;return null},he.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.RetryPolicy)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.RetryPolicy: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.RetryPolicy;if(null!=e.minimumBackoff){if(!d.isObject(e.minimumBackoff))throw TypeError(".google.pubsub.v1.RetryPolicy.minimumBackoff: object expected");o.minimumBackoff=g.google.protobuf.Duration.fromObject(e.minimumBackoff,t+1)}if(null!=e.maximumBackoff){if(!d.isObject(e.maximumBackoff))throw TypeError(".google.pubsub.v1.RetryPolicy.maximumBackoff: object expected");o.maximumBackoff=g.google.protobuf.Duration.fromObject(e.maximumBackoff,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 n={};return t.defaults&&(n.minimumBackoff=null,n.maximumBackoff=null),null!=e.minimumBackoff&&Object.hasOwnProperty.call(e,"minimumBackoff")&&(n.minimumBackoff=g.google.protobuf.Duration.toObject(e.minimumBackoff,t,o+1)),null!=e.maximumBackoff&&Object.hasOwnProperty.call(e,"maximumBackoff")&&(n.maximumBackoff=g.google.protobuf.Duration.toObject(e.maximumBackoff,t,o+1)),n},he.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},he.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.RetryPolicy"},he),t.DeadLetterPolicy=(ye.prototype.deadLetterTopic="",ye.prototype.maxDeliveryAttempts=0,ye.create=function(e){return new ye(e)},ye.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.deadLetterTopic&&Object.hasOwnProperty.call(e,"deadLetterTopic")&&t.uint32(10).string(e.deadLetterTopic),null!=e.maxDeliveryAttempts&&Object.hasOwnProperty.call(e,"maxDeliveryAttempts")&&t.uint32(16).int32(e.maxDeliveryAttempts),t},ye.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ye.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.DeadLetterPolicy;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.deadLetterTopic=e.string();break;case 2:i.maxDeliveryAttempts=e.int32();break;default:e.skipType(7&a,n)}}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.deadLetterTopic&&Object.hasOwnProperty.call(e,"deadLetterTopic")&&!d.isString(e.deadLetterTopic)?"deadLetterTopic: string expected":null!=e.maxDeliveryAttempts&&Object.hasOwnProperty.call(e,"maxDeliveryAttempts")&&!d.isInteger(e.maxDeliveryAttempts)?"maxDeliveryAttempts: integer expected":null},ye.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.DeadLetterPolicy)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.DeadLetterPolicy: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.pubsub.v1.DeadLetterPolicy;return null!=e.deadLetterTopic&&(t.deadLetterTopic=String(e.deadLetterTopic)),null!=e.maxDeliveryAttempts&&(t.maxDeliveryAttempts=0|e.maxDeliveryAttempts),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.deadLetterTopic="",o.maxDeliveryAttempts=0),null!=e.deadLetterTopic&&Object.hasOwnProperty.call(e,"deadLetterTopic")&&(o.deadLetterTopic=e.deadLetterTopic),null!=e.maxDeliveryAttempts&&Object.hasOwnProperty.call(e,"maxDeliveryAttempts")&&(o.maxDeliveryAttempts=e.maxDeliveryAttempts),o},ye.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},ye.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.DeadLetterPolicy"},ye),t.ExpirationPolicy=(Oe.prototype.ttl=null,Oe.create=function(e){return new Oe(e)},Oe.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.ttl&&Object.hasOwnProperty.call(e,"ttl")&&g.google.protobuf.Duration.encode(e.ttl,t.uint32(10).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,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.ExpirationPolicy;e.pos<r;){var a=e.uint32();if(a===o)break;a>>>3==1?i.ttl=g.google.protobuf.Duration.decode(e,e.uint32(),void 0,n+1):e.skipType(7&a,n)}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";if(null!=e.ttl&&Object.hasOwnProperty.call(e,"ttl")){e=g.google.protobuf.Duration.verify(e.ttl,t+1);if(e)return"ttl."+e}return null},Oe.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.ExpirationPolicy)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.ExpirationPolicy: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.ExpirationPolicy;if(null!=e.ttl){if(!d.isObject(e.ttl))throw TypeError(".google.pubsub.v1.ExpirationPolicy.ttl: object expected");o.ttl=g.google.protobuf.Duration.fromObject(e.ttl,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 n={};return t.defaults&&(n.ttl=null),null!=e.ttl&&Object.hasOwnProperty.call(e,"ttl")&&(n.ttl=g.google.protobuf.Duration.toObject(e.ttl,t,o+1)),n},Oe.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Oe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.ExpirationPolicy"},Oe),t.PushConfig=(v.prototype.pushEndpoint="",v.prototype.attributes=d.emptyObject,v.prototype.oidcToken=null,v.prototype.pubsubWrapper=null,v.prototype.noWrapper=null,Object.defineProperty(v.prototype,"authenticationMethod",{get:d.oneOfGetter(o=["oidcToken"]),set:d.oneOfSetter(o)}),Object.defineProperty(v.prototype,"wrapper",{get:d.oneOfGetter(o=["pubsubWrapper","noWrapper"]),set:d.oneOfSetter(o)}),v.create=function(e){return new v(e)},v.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.pushEndpoint&&Object.hasOwnProperty.call(e,"pushEndpoint")&&t.uint32(10).string(e.pushEndpoint),null!=e.attributes&&Object.hasOwnProperty.call(e,"attributes"))for(var n=Object.keys(e.attributes),r=0;r<n.length;++r)t.uint32(18).fork().uint32(10).string(n[r]).uint32(18).string(e.attributes[n[r]]).ldelim();return null!=e.oidcToken&&Object.hasOwnProperty.call(e,"oidcToken")&&g.google.pubsub.v1.PushConfig.OidcToken.encode(e.oidcToken,t.uint32(26).fork(),o+1).ldelim(),null!=e.pubsubWrapper&&Object.hasOwnProperty.call(e,"pubsubWrapper")&&g.google.pubsub.v1.PushConfig.PubsubWrapper.encode(e.pubsubWrapper,t.uint32(34).fork(),o+1).ldelim(),null!=e.noWrapper&&Object.hasOwnProperty.call(e,"noWrapper")&&g.google.pubsub.v1.PushConfig.NoWrapper.encode(e.noWrapper,t.uint32(42).fork(),o+1).ldelim(),t},v.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},v.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.PushConfig;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.pushEndpoint=e.string();break;case 2:i.attributes===d.emptyObject&&(i.attributes={});for(var s=e.uint32()+e.pos,c="",l="";e.pos<s;){var u=e.uint32();switch(u>>>3){case 1:c=e.string();break;case 2:l=e.string();break;default:e.skipType(7&u,n)}}"__proto__"===c&&d.makeProp(i.attributes,c),i.attributes[c]=l;break;case 3:i.oidcToken=g.google.pubsub.v1.PushConfig.OidcToken.decode(e,e.uint32(),void 0,n+1);break;case 4:i.pubsubWrapper=g.google.pubsub.v1.PushConfig.PubsubWrapper.decode(e,e.uint32(),void 0,n+1);break;case 5:i.noWrapper=g.google.pubsub.v1.PushConfig.NoWrapper.decode(e,e.uint32(),void 0,n+1);break;default:e.skipType(7&a,n)}}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";var o,n={};if(null!=e.pushEndpoint&&Object.hasOwnProperty.call(e,"pushEndpoint")&&!d.isString(e.pushEndpoint))return"pushEndpoint: string expected";if(null!=e.attributes&&Object.hasOwnProperty.call(e,"attributes")){if(!d.isObject(e.attributes))return"attributes: object expected";for(var r=Object.keys(e.attributes),i=0;i<r.length;++i)if(!d.isString(e.attributes[r[i]]))return"attributes: string{k:string} expected"}if(null!=e.oidcToken&&Object.hasOwnProperty.call(e,"oidcToken")&&(o=g.google.pubsub.v1.PushConfig.OidcToken.verify(e.oidcToken,t+(n.authenticationMethod=1))))return"oidcToken."+o;if(null!=e.pubsubWrapper&&Object.hasOwnProperty.call(e,"pubsubWrapper")&&(o=g.google.pubsub.v1.PushConfig.PubsubWrapper.verify(e.pubsubWrapper,t+(n.wrapper=1))))return"pubsubWrapper."+o;if(null!=e.noWrapper&&Object.hasOwnProperty.call(e,"noWrapper")){if(1===n.wrapper)return"wrapper: multiple values";if(o=g.google.pubsub.v1.PushConfig.NoWrapper.verify(e.noWrapper,t+(n.wrapper=1)))return"noWrapper."+o}return null},v.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.PushConfig)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.PushConfig: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.PushConfig;if(null!=e.pushEndpoint&&(o.pushEndpoint=String(e.pushEndpoint)),e.attributes){if(!d.isObject(e.attributes))throw TypeError(".google.pubsub.v1.PushConfig.attributes: object expected");o.attributes={};for(var n=Object.keys(e.attributes),r=0;r<n.length;++r)"__proto__"===n[r]&&d.makeProp(o.attributes,n[r]),o.attributes[n[r]]=String(e.attributes[n[r]])}if(null!=e.oidcToken){if(!d.isObject(e.oidcToken))throw TypeError(".google.pubsub.v1.PushConfig.oidcToken: object expected");o.oidcToken=g.google.pubsub.v1.PushConfig.OidcToken.fromObject(e.oidcToken,t+1)}if(null!=e.pubsubWrapper){if(!d.isObject(e.pubsubWrapper))throw TypeError(".google.pubsub.v1.PushConfig.pubsubWrapper: object expected");o.pubsubWrapper=g.google.pubsub.v1.PushConfig.PubsubWrapper.fromObject(e.pubsubWrapper,t+1)}if(null!=e.noWrapper){if(!d.isObject(e.noWrapper))throw TypeError(".google.pubsub.v1.PushConfig.noWrapper: object expected");o.noWrapper=g.google.pubsub.v1.PushConfig.NoWrapper.fromObject(e.noWrapper,t+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 n,r={};if((t.objects||t.defaults)&&(r.attributes={}),t.defaults&&(r.pushEndpoint=""),null!=e.pushEndpoint&&Object.hasOwnProperty.call(e,"pushEndpoint")&&(r.pushEndpoint=e.pushEndpoint),e.attributes&&(n=Object.keys(e.attributes)).length){r.attributes={};for(var i=0;i<n.length;++i)"__proto__"===n[i]&&d.makeProp(r.attributes,n[i]),r.attributes[n[i]]=e.attributes[n[i]]}return null!=e.oidcToken&&Object.hasOwnProperty.call(e,"oidcToken")&&(r.oidcToken=g.google.pubsub.v1.PushConfig.OidcToken.toObject(e.oidcToken,t,o+1),t.oneofs)&&(r.authenticationMethod="oidcToken"),null!=e.pubsubWrapper&&Object.hasOwnProperty.call(e,"pubsubWrapper")&&(r.pubsubWrapper=g.google.pubsub.v1.PushConfig.PubsubWrapper.toObject(e.pubsubWrapper,t,o+1),t.oneofs)&&(r.wrapper="pubsubWrapper"),null!=e.noWrapper&&Object.hasOwnProperty.call(e,"noWrapper")&&(r.noWrapper=g.google.pubsub.v1.PushConfig.NoWrapper.toObject(e.noWrapper,t,o+1),t.oneofs)&&(r.wrapper="noWrapper"),r},v.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},v.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.PushConfig"},v.OidcToken=(ve.prototype.serviceAccountEmail="",ve.prototype.audience="",ve.create=function(e){return new ve(e)},ve.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.serviceAccountEmail&&Object.hasOwnProperty.call(e,"serviceAccountEmail")&&t.uint32(10).string(e.serviceAccountEmail),null!=e.audience&&Object.hasOwnProperty.call(e,"audience")&&t.uint32(18).string(e.audience),t},ve.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ve.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.PushConfig.OidcToken;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.serviceAccountEmail=e.string();break;case 2:i.audience=e.string();break;default:e.skipType(7&a,n)}}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.serviceAccountEmail&&Object.hasOwnProperty.call(e,"serviceAccountEmail")&&!d.isString(e.serviceAccountEmail)?"serviceAccountEmail: string expected":null!=e.audience&&Object.hasOwnProperty.call(e,"audience")&&!d.isString(e.audience)?"audience: string expected":null},ve.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.PushConfig.OidcToken)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.PushConfig.OidcToken: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.pubsub.v1.PushConfig.OidcToken;return null!=e.serviceAccountEmail&&(t.serviceAccountEmail=String(e.serviceAccountEmail)),null!=e.audience&&(t.audience=String(e.audience)),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.serviceAccountEmail="",o.audience=""),null!=e.serviceAccountEmail&&Object.hasOwnProperty.call(e,"serviceAccountEmail")&&(o.serviceAccountEmail=e.serviceAccountEmail),null!=e.audience&&Object.hasOwnProperty.call(e,"audience")&&(o.audience=e.audience),o},ve.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},ve.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.PushConfig.OidcToken"},ve),v.PubsubWrapper=(we.create=function(e){return new we(e)},we.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return t},we.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},we.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,t=new g.google.pubsub.v1.PushConfig.PubsubWrapper;e.pos<r;){var i=e.uint32();if(i===o)break;e.skipType(7&i,n)}return t},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},we.fromObject=function(e,t){return e instanceof g.google.pubsub.v1.PushConfig.PubsubWrapper?e:new g.google.pubsub.v1.PushConfig.PubsubWrapper},we.toObject=function(){return{}},we.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},we.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.PushConfig.PubsubWrapper"},we),v.NoWrapper=(je.prototype.writeMetadata=!1,je.create=function(e){return new je(e)},je.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.writeMetadata&&Object.hasOwnProperty.call(e,"writeMetadata")&&t.uint32(8).bool(e.writeMetadata),t},je.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},je.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.PushConfig.NoWrapper;e.pos<r;){var a=e.uint32();if(a===o)break;a>>>3==1?i.writeMetadata=e.bool():e.skipType(7&a,n)}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.writeMetadata&&Object.hasOwnProperty.call(e,"writeMetadata")&&"boolean"!=typeof e.writeMetadata?"writeMetadata: boolean expected":null},je.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.PushConfig.NoWrapper)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.PushConfig.NoWrapper: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.pubsub.v1.PushConfig.NoWrapper;return null!=e.writeMetadata&&(t.writeMetadata=Boolean(e.writeMetadata)),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.writeMetadata=!1),null!=e.writeMetadata&&Object.hasOwnProperty.call(e,"writeMetadata")&&(o.writeMetadata=e.writeMetadata),o},je.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},je.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.PushConfig.NoWrapper"},je),v),t.BigQueryConfig=(w.prototype.table="",w.prototype.useTopicSchema=!1,w.prototype.writeMetadata=!1,w.prototype.dropUnknownFields=!1,w.prototype.state=0,w.prototype.useTableSchema=!1,w.prototype.serviceAccountEmail="",w.create=function(e){return new w(e)},w.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.table&&Object.hasOwnProperty.call(e,"table")&&t.uint32(10).string(e.table),null!=e.useTopicSchema&&Object.hasOwnProperty.call(e,"useTopicSchema")&&t.uint32(16).bool(e.useTopicSchema),null!=e.writeMetadata&&Object.hasOwnProperty.call(e,"writeMetadata")&&t.uint32(24).bool(e.writeMetadata),null!=e.dropUnknownFields&&Object.hasOwnProperty.call(e,"dropUnknownFields")&&t.uint32(32).bool(e.dropUnknownFields),null!=e.state&&Object.hasOwnProperty.call(e,"state")&&t.uint32(40).int32(e.state),null!=e.useTableSchema&&Object.hasOwnProperty.call(e,"useTableSchema")&&t.uint32(48).bool(e.useTableSchema),null!=e.serviceAccountEmail&&Object.hasOwnProperty.call(e,"serviceAccountEmail")&&t.uint32(58).string(e.serviceAccountEmail),t},w.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},w.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.BigQueryConfig;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.table=e.string();break;case 2:i.useTopicSchema=e.bool();break;case 3:i.writeMetadata=e.bool();break;case 4:i.dropUnknownFields=e.bool();break;case 5:i.state=e.int32();break;case 6:i.useTableSchema=e.bool();break;case 7:i.serviceAccountEmail=e.string();break;default:e.skipType(7&a,n)}}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.table&&Object.hasOwnProperty.call(e,"table")&&!d.isString(e.table))return"table: string expected";if(null!=e.useTopicSchema&&Object.hasOwnProperty.call(e,"useTopicSchema")&&"boolean"!=typeof e.useTopicSchema)return"useTopicSchema: boolean expected";if(null!=e.writeMetadata&&Object.hasOwnProperty.call(e,"writeMetadata")&&"boolean"!=typeof e.writeMetadata)return"writeMetadata: boolean expected";if(null!=e.dropUnknownFields&&Object.hasOwnProperty.call(e,"dropUnknownFields")&&"boolean"!=typeof e.dropUnknownFields)return"dropUnknownFields: boolean expected";if(null!=e.state&&Object.hasOwnProperty.call(e,"state"))switch(e.state){default:return"state: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:}return null!=e.useTableSchema&&Object.hasOwnProperty.call(e,"useTableSchema")&&"boolean"!=typeof e.useTableSchema?"useTableSchema: boolean expected":null!=e.serviceAccountEmail&&Object.hasOwnProperty.call(e,"serviceAccountEmail")&&!d.isString(e.serviceAccountEmail)?"serviceAccountEmail: string expected":null},w.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.BigQueryConfig)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.BigQueryConfig: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.BigQueryConfig;switch(null!=e.table&&(o.table=String(e.table)),null!=e.useTopicSchema&&(o.useTopicSchema=Boolean(e.useTopicSchema)),null!=e.writeMetadata&&(o.writeMetadata=Boolean(e.writeMetadata)),null!=e.dropUnknownFields&&(o.dropUnknownFields=Boolean(e.dropUnknownFields)),e.state){default:"number"==typeof e.state&&(o.state=e.state);break;case"STATE_UNSPECIFIED":case 0:o.state=0;break;case"ACTIVE":case 1:o.state=1;break;case"PERMISSION_DENIED":case 2:o.state=2;break;case"NOT_FOUND":case 3:o.state=3;break;case"SCHEMA_MISMATCH":case 4:o.state=4;break;case"IN_TRANSIT_LOCATION_RESTRICTION":case 5:o.state=5;break;case"VERTEX_AI_LOCATION_RESTRICTION":case 6:o.state=6}return null!=e.useTableSchema&&(o.useTableSchema=Boolean(e.useTableSchema)),null!=e.serviceAccountEmail&&(o.serviceAccountEmail=String(e.serviceAccountEmail)),o},w.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.table="",o.useTopicSchema=!1,o.writeMetadata=!1,o.dropUnknownFields=!1,o.state=t.enums===String?"STATE_UNSPECIFIED":0,o.useTableSchema=!1,o.serviceAccountEmail=""),null!=e.table&&Object.hasOwnProperty.call(e,"table")&&(o.table=e.table),null!=e.useTopicSchema&&Object.hasOwnProperty.call(e,"useTopicSchema")&&(o.useTopicSchema=e.useTopicSchema),null!=e.writeMetadata&&Object.hasOwnProperty.call(e,"writeMetadata")&&(o.writeMetadata=e.writeMetadata),null!=e.dropUnknownFields&&Object.hasOwnProperty.call(e,"dropUnknownFields")&&(o.dropUnknownFields=e.dropUnknownFields),null!=e.state&&Object.hasOwnProperty.call(e,"state")&&(o.state=t.enums!==String||void 0===g.google.pubsub.v1.BigQueryConfig.State[e.state]?e.state:g.google.pubsub.v1.BigQueryConfig.State[e.state]),null!=e.useTableSchema&&Object.hasOwnProperty.call(e,"useTableSchema")&&(o.useTableSchema=e.useTableSchema),null!=e.serviceAccountEmail&&Object.hasOwnProperty.call(e,"serviceAccountEmail")&&(o.serviceAccountEmail=e.serviceAccountEmail),o},w.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},w.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.BigQueryConfig"},w.State=(e={},(o=Object.create(e))[e[0]="STATE_UNSPECIFIED"]=0,o[e[1]="ACTIVE"]=1,o[e[2]="PERMISSION_DENIED"]=2,o[e[3]="NOT_FOUND"]=3,o[e[4]="SCHEMA_MISMATCH"]=4,o[e[5]="IN_TRANSIT_LOCATION_RESTRICTION"]=5,o[e[6]="VERTEX_AI_LOCATION_RESTRICTION"]=6,o),w),t.BigtableConfig=(Se.prototype.table="",Se.prototype.appProfileId="",Se.prototype.serviceAccountEmail="",Se.prototype.writeMetadata=!1,Se.prototype.state=0,Se.create=function(e){return new Se(e)},Se.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.table&&Object.hasOwnProperty.call(e,"table")&&t.uint32(10).string(e.table),null!=e.appProfileId&&Object.hasOwnProperty.call(e,"appProfileId")&&t.uint32(18).string(e.appProfileId),null!=e.serviceAccountEmail&&Object.hasOwnProperty.call(e,"serviceAccountEmail")&&t.uint32(26).string(e.serviceAccountEmail),null!=e.state&&Object.hasOwnProperty.call(e,"state")&&t.uint32(32).int32(e.state),null!=e.writeMetadata&&Object.hasOwnProperty.call(e,"writeMetadata")&&t.uint32(40).bool(e.writeMetadata),t},Se.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Se.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.BigtableConfig;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.table=e.string();break;case 2:i.appProfileId=e.string();break;case 3:i.serviceAccountEmail=e.string();break;case 5:i.writeMetadata=e.bool();break;case 4:i.state=e.int32();break;default:e.skipType(7&a,n)}}return i},Se.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Se.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.table&&Object.hasOwnProperty.call(e,"table")&&!d.isString(e.table))return"table: string expected";if(null!=e.appProfileId&&Object.hasOwnProperty.call(e,"appProfileId")&&!d.isString(e.appProfileId))return"appProfileId: string expected";if(null!=e.serviceAccountEmail&&Object.hasOwnProperty.call(e,"serviceAccountEmail")&&!d.isString(e.serviceAccountEmail))return"serviceAccountEmail: string expected";if(null!=e.writeMetadata&&Object.hasOwnProperty.call(e,"writeMetadata")&&"boolean"!=typeof e.writeMetadata)return"writeMetadata: boolean expected";if(null!=e.state&&Object.hasOwnProperty.call(e,"state"))switch(e.state){default:return"state: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:}return null},Se.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.BigtableConfig)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.BigtableConfig: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.BigtableConfig;switch(null!=e.table&&(o.table=String(e.table)),null!=e.appProfileId&&(o.appProfileId=String(e.appProfileId)),null!=e.serviceAccountEmail&&(o.serviceAccountEmail=String(e.serviceAccountEmail)),null!=e.writeMetadata&&(o.writeMetadata=Boolean(e.writeMetadata)),e.state){default:"number"==typeof e.state&&(o.state=e.state);break;case"STATE_UNSPECIFIED":case 0:o.state=0;break;case"ACTIVE":case 1:o.state=1;break;case"NOT_FOUND":case 2:o.state=2;break;case"APP_PROFILE_MISCONFIGURED":case 3:o.state=3;break;case"PERMISSION_DENIED":case 4:o.state=4;break;case"SCHEMA_MISMATCH":case 5:o.state=5;break;case"IN_TRANSIT_LOCATION_RESTRICTION":case 6:o.state=6;break;case"VERTEX_AI_LOCATION_RESTRICTION":case 7:o.state=7}return o},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.table="",o.appProfileId="",o.serviceAccountEmail="",o.state=t.enums===String?"STATE_UNSPECIFIED":0,o.writeMetadata=!1),null!=e.table&&Object.hasOwnProperty.call(e,"table")&&(o.table=e.table),null!=e.appProfileId&&Object.hasOwnProperty.call(e,"appProfileId")&&(o.appProfileId=e.appProfileId),null!=e.serviceAccountEmail&&Object.hasOwnProperty.call(e,"serviceAccountEmail")&&(o.serviceAccountEmail=e.serviceAccountEmail),null!=e.state&&Object.hasOwnProperty.call(e,"state")&&(o.state=t.enums!==String||void 0===g.google.pubsub.v1.BigtableConfig.State[e.state]?e.state:g.google.pubsub.v1.BigtableConfig.State[e.state]),null!=e.writeMetadata&&Object.hasOwnProperty.call(e,"writeMetadata")&&(o.writeMetadata=e.writeMetadata),o},Se.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Se.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.BigtableConfig"},Se.State=(e={},(o=Object.create(e))[e[0]="STATE_UNSPECIFIED"]=0,o[e[1]="ACTIVE"]=1,o[e[2]="NOT_FOUND"]=2,o[e[3]="APP_PROFILE_MISCONFIGURED"]=3,o[e[4]="PERMISSION_DENIED"]=4,o[e[5]="SCHEMA_MISMATCH"]=5,o[e[6]="IN_TRANSIT_LOCATION_RESTRICTION"]=6,o[e[7]="VERTEX_AI_LOCATION_RESTRICTION"]=7,o),Se),t.CloudStorageConfig=(j.prototype.bucket="",j.prototype.filenamePrefix="",j.prototype.filenameSuffix="",j.prototype.filenameDatetimeFormat="",j.prototype.textConfig=null,j.prototype.avroConfig=null,j.prototype.maxDuration=null,j.prototype.maxBytes=d.Long?d.Long.fromBits(0,0,!1):0,j.prototype.maxMessages=d.Long?d.Long.fromBits(0,0,!1):0,j.prototype.state=0,j.prototype.serviceAccountEmail="",Object.defineProperty(j.prototype,"outputFormat",{get:d.oneOfGetter(e=["textConfig","avroConfig"]),set:d.oneOfSetter(e)}),j.create=function(e){return new j(e)},j.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.bucket&&Object.hasOwnProperty.call(e,"bucket")&&t.uint32(10).string(e.bucket),null!=e.filenamePrefix&&Object.hasOwnProperty.call(e,"filenamePrefix")&&t.uint32(18).string(e.filenamePrefix),null!=e.filenameSuffix&&Object.hasOwnProperty.call(e,"filenameSuffix")&&t.uint32(26).string(e.filenameSuffix),null!=e.textConfig&&Object.hasOwnProperty.call(e,"textConfig")&&g.google.pubsub.v1.CloudStorageConfig.TextConfig.encode(e.textConfig,t.uint32(34).fork(),o+1).ldelim(),null!=e.avroConfig&&Object.hasOwnProperty.call(e,"avroConfig")&&g.google.pubsub.v1.CloudStorageConfig.AvroConfig.encode(e.avroConfig,t.uint32(42).fork(),o+1).ldelim(),null!=e.maxDuration&&Object.hasOwnProperty.call(e,"maxDuration")&&g.google.protobuf.Duration.encode(e.maxDuration,t.uint32(50).fork(),o+1).ldelim(),null!=e.maxBytes&&Object.hasOwnProperty.call(e,"maxBytes")&&t.uint32(56).int64(e.maxBytes),null!=e.maxMessages&&Object.hasOwnProperty.call(e,"maxMessages")&&t.uint32(64).int64(e.maxMessages),null!=e.state&&Object.hasOwnProperty.call(e,"state")&&t.uint32(72).int32(e.state),null!=e.filenameDatetimeFormat&&Object.hasOwnProperty.call(e,"filenameDatetimeFormat")&&t.uint32(82).string(e.filenameDatetimeFormat),null!=e.serviceAccountEmail&&Object.hasOwnProperty.call(e,"serviceAccountEmail")&&t.uint32(90).string(e.serviceAccountEmail),t},j.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},j.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.CloudStorageConfig;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.bucket=e.string();break;case 2:i.filenamePrefix=e.string();break;case 3:i.filenameSuffix=e.string();break;case 10:i.filenameDatetimeFormat=e.string();break;case 4:i.textConfig=g.google.pubsub.v1.CloudStorageConfig.TextConfig.decode(e,e.uint32(),void 0,n+1);break;case 5:i.avroConfig=g.google.pubsub.v1.CloudStorageConfig.AvroConfig.decode(e,e.uint32(),void 0,n+1);break;case 6:i.maxDuration=g.google.protobuf.Duration.decode(e,e.uint32(),void 0,n+1);break;case 7:i.maxBytes=e.int64();break;case 8:i.maxMessages=e.int64();break;case 9:i.state=e.int32();break;case 11:i.serviceAccountEmail=e.string();break;default:e.skipType(7&a,n)}}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";var o,n={};if(null!=e.bucket&&Object.hasOwnProperty.call(e,"bucket")&&!d.isString(e.bucket))return"bucket: string expected";if(null!=e.filenamePrefix&&Object.hasOwnProperty.call(e,"filenamePrefix")&&!d.isString(e.filenamePrefix))return"filenamePrefix: string expected";if(null!=e.filenameSuffix&&Object.hasOwnProperty.call(e,"filenameSuffix")&&!d.isString(e.filenameSuffix))return"filenameSuffix: string expected";if(null!=e.filenameDatetimeFormat&&Object.hasOwnProperty.call(e,"filenameDatetimeFormat")&&!d.isString(e.filenameDatetimeFormat))return"filenameDatetimeFormat: string expected";if(null!=e.textConfig&&Object.hasOwnProperty.call(e,"textConfig")&&(o=g.google.pubsub.v1.CloudStorageConfig.TextConfig.verify(e.textConfig,t+(n.outputFormat=1))))return"textConfig."+o;if(null!=e.avroConfig&&Object.hasOwnProperty.call(e,"avroConfig")){if(1===n.outputFormat)return"outputFormat: multiple values";if(o=g.google.pubsub.v1.CloudStorageConfig.AvroConfig.verify(e.avroConfig,t+(n.outputFormat=1)))return"avroConfig."+o}if(null!=e.maxDuration&&Object.hasOwnProperty.call(e,"maxDuration")&&(o=g.google.protobuf.Duration.verify(e.maxDuration,t+1)))return"maxDuration."+o;if(null!=e.maxBytes&&Object.hasOwnProperty.call(e,"maxBytes")&&!(d.isInteger(e.maxBytes)||e.maxBytes&&d.isInteger(e.maxBytes.low)&&d.isInteger(e.maxBytes.high)))return"maxBytes: integer|Long expected";if(null!=e.maxMessages&&Object.hasOwnProperty.call(e,"maxMessages")&&!(d.isInteger(e.maxMessages)||e.maxMessages&&d.isInteger(e.maxMessages.low)&&d.isInteger(e.maxMessages.high)))return"maxMessages: integer|Long expected";if(null!=e.state&&Object.hasOwnProperty.call(e,"state"))switch(e.state){default:return"state: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:}return null!=e.serviceAccountEmail&&Object.hasOwnProperty.call(e,"serviceAccountEmail")&&!d.isString(e.serviceAccountEmail)?"serviceAccountEmail: string expected":null},j.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.CloudStorageConfig)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.CloudStorageConfig: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.CloudStorageConfig;if(null!=e.bucket&&(o.bucket=String(e.bucket)),null!=e.filenamePrefix&&(o.filenamePrefix=String(e.filenamePrefix)),null!=e.filenameSuffix&&(o.filenameSuffix=String(e.filenameSuffix)),null!=e.filenameDatetimeFormat&&(o.filenameDatetimeFormat=String(e.filenameDatetimeFormat)),null!=e.textConfig){if(!d.isObject(e.textConfig))throw TypeError(".google.pubsub.v1.CloudStorageConfig.textConfig: object expected");o.textConfig=g.google.pubsub.v1.CloudStorageConfig.TextConfig.fromObject(e.textConfig,t+1)}if(null!=e.avroConfig){if(!d.isObject(e.avroConfig))throw TypeError(".google.pubsub.v1.CloudStorageConfig.avroConfig: object expected");o.avroConfig=g.google.pubsub.v1.CloudStorageConfig.AvroConfig.fromObject(e.avroConfig,t+1)}if(null!=e.maxDuration){if(!d.isObject(e.maxDuration))throw TypeError(".google.pubsub.v1.CloudStorageConfig.maxDuration: object expected");o.maxDuration=g.google.protobuf.Duration.fromObject(e.maxDuration,t+1)}switch(null!=e.maxBytes&&(d.Long?o.maxBytes=d.Long.fromValue(e.maxBytes,!1):"string"==typeof e.maxBytes?o.maxBytes=parseInt(e.maxBytes,10):"number"==typeof e.maxBytes?o.maxBytes=e.maxBytes:"object"==typeof e.maxBytes&&(o.maxBytes=new d.LongBits(e.maxBytes.low>>>0,e.maxBytes.high>>>0).toNumber())),null!=e.maxMessages&&(d.Long?o.maxMessages=d.Long.fromValue(e.maxMessages,!1):"string"==typeof e.maxMessages?o.maxMessages=parseInt(e.maxMessages,10):"number"==typeof e.maxMessages?o.maxMessages=e.maxMessages:"object"==typeof e.maxMessages&&(o.maxMessages=new d.LongBits(e.maxMessages.low>>>0,e.maxMessages.high>>>0).toNumber())),e.state){default:"number"==typeof e.state&&(o.state=e.state);break;case"STATE_UNSPECIFIED":case 0:o.state=0;break;case"ACTIVE":case 1:o.state=1;break;case"PERMISSION_DENIED":case 2:o.state=2;break;case"NOT_FOUND":case 3:o.state=3;break;case"IN_TRANSIT_LOCATION_RESTRICTION":case 4:o.state=4;break;case"SCHEMA_MISMATCH":case 5:o.state=5;break;case"VERTEX_AI_LOCATION_RESTRICTION":case 6:o.state=6}return null!=e.serviceAccountEmail&&(o.serviceAccountEmail=String(e.serviceAccountEmail)),o},j.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n,r={};return t.defaults&&(r.bucket="",r.filenamePrefix="",r.filenameSuffix="",r.maxDuration=null,d.Long?(n=new d.Long(0,0,!1),r.maxBytes=t.longs===String?n.toString():t.longs===Number?n.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?n.toBigInt():n):r.maxBytes=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,d.Long?(n=new d.Long(0,0,!1),r.maxMessages=t.longs===String?n.toString():t.longs===Number?n.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?n.toBigInt():n):r.maxMessages=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,r.state=t.enums===String?"STATE_UNSPECIFIED":0,r.filenameDatetimeFormat="",r.serviceAccountEmail=""),null!=e.bucket&&Object.hasOwnProperty.call(e,"bucket")&&(r.bucket=e.bucket),null!=e.filenamePrefix&&Object.hasOwnProperty.call(e,"filenamePrefix")&&(r.filenamePrefix=e.filenamePrefix),null!=e.filenameSuffix&&Object.hasOwnProperty.call(e,"filenameSuffix")&&(r.filenameSuffix=e.filenameSuffix),null!=e.textConfig&&Object.hasOwnProperty.call(e,"textConfig")&&(r.textConfig=g.google.pubsub.v1.CloudStorageConfig.TextConfig.toObject(e.textConfig,t,o+1),t.oneofs)&&(r.outputFormat="textConfig"),null!=e.avroConfig&&Object.hasOwnProperty.call(e,"avroConfig")&&(r.avroConfig=g.google.pubsub.v1.CloudStorageConfig.AvroConfig.toObject(e.avroConfig,t,o+1),t.oneofs)&&(r.outputFormat="avroConfig"),null!=e.maxDuration&&Object.hasOwnProperty.call(e,"maxDuration")&&(r.maxDuration=g.google.protobuf.Duration.toObject(e.maxDuration,t,o+1)),null!=e.maxBytes&&Object.hasOwnProperty.call(e,"maxBytes")&&("undefined"!=typeof BigInt&&t.longs===BigInt?r.maxBytes="number"==typeof e.maxBytes?BigInt(e.maxBytes):d.Long.fromBits(e.maxBytes.low>>>0,e.maxBytes.high>>>0,!1).toBigInt():"number"==typeof e.maxBytes?r.maxBytes=t.longs===String?String(e.maxBytes):e.maxBytes:r.maxBytes=t.longs===String?d.Long.prototype.toString.call(e.maxBytes):t.longs===Number?new d.LongBits(e.maxBytes.low>>>0,e.maxBytes.high>>>0).toNumber():e.maxBytes),null!=e.maxMessages&&Object.hasOwnProperty.call(e,"maxMessages")&&("undefined"!=typeof BigInt&&t.longs===BigInt?r.maxMessages="number"==typeof e.maxMessages?BigInt(e.maxMessages):d.Long.fromBits(e.maxMessages.low>>>0,e.maxMessages.high>>>0,!1).toBigInt():"number"==typeof e.maxMessages?r.maxMessages=t.longs===String?String(e.maxMessages):e.maxMessages:r.maxMessages=t.longs===String?d.Long.prototype.toString.call(e.maxMessages):t.longs===Number?new d.LongBits(e.maxMessages.low>>>0,e.maxMessages.high>>>0).toNumber():e.maxMessages),null!=e.state&&Object.hasOwnProperty.call(e,"state")&&(r.state=t.enums!==String||void 0===g.google.pubsub.v1.CloudStorageConfig.State[e.state]?e.state:g.google.pubsub.v1.CloudStorageConfig.State[e.state]),null!=e.filenameDatetimeFormat&&Object.hasOwnProperty.call(e,"filenameDatetimeFormat")&&(r.filenameDatetimeFormat=e.filenameDatetimeFormat),null!=e.serviceAccountEmail&&Object.hasOwnProperty.call(e,"serviceAccountEmail")&&(r.serviceAccountEmail=e.serviceAccountEmail),r},j.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},j.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.CloudStorageConfig"},j.TextConfig=(xe.create=function(e){return new xe(e)},xe.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return t},xe.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},xe.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,t=new g.google.pubsub.v1.CloudStorageConfig.TextConfig;e.pos<r;){var i=e.uint32();if(i===o)break;e.skipType(7&i,n)}return t},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},xe.fromObject=function(e,t){return e instanceof g.google.pubsub.v1.CloudStorageConfig.TextConfig?e:new g.google.pubsub.v1.CloudStorageConfig.TextConfig},xe.toObject=function(){return{}},xe.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},xe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.CloudStorageConfig.TextConfig"},xe),j.AvroConfig=(ke.prototype.writeMetadata=!1,ke.prototype.useTopicSchema=!1,ke.create=function(e){return new ke(e)},ke.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.writeMetadata&&Object.hasOwnProperty.call(e,"writeMetadata")&&t.uint32(8).bool(e.writeMetadata),null!=e.useTopicSchema&&Object.hasOwnProperty.call(e,"useTopicSchema")&&t.uint32(16).bool(e.useTopicSchema),t},ke.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ke.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.CloudStorageConfig.AvroConfig;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.writeMetadata=e.bool();break;case 2:i.useTopicSchema=e.bool();break;default:e.skipType(7&a,n)}}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.writeMetadata&&Object.hasOwnProperty.call(e,"writeMetadata")&&"boolean"!=typeof e.writeMetadata?"writeMetadata: boolean expected":null!=e.useTopicSchema&&Object.hasOwnProperty.call(e,"useTopicSchema")&&"boolean"!=typeof e.useTopicSchema?"useTopicSchema: boolean expected":null},ke.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.CloudStorageConfig.AvroConfig)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.CloudStorageConfig.AvroConfig: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.pubsub.v1.CloudStorageConfig.AvroConfig;return null!=e.writeMetadata&&(t.writeMetadata=Boolean(e.writeMetadata)),null!=e.useTopicSchema&&(t.useTopicSchema=Boolean(e.useTopicSchema)),t},ke.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.writeMetadata=!1,o.useTopicSchema=!1),null!=e.writeMetadata&&Object.hasOwnProperty.call(e,"writeMetadata")&&(o.writeMetadata=e.writeMetadata),null!=e.useTopicSchema&&Object.hasOwnProperty.call(e,"useTopicSchema")&&(o.useTopicSchema=e.useTopicSchema),o},ke.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},ke.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.CloudStorageConfig.AvroConfig"},ke),j.State=(e={},(o=Object.create(e))[e[0]="STATE_UNSPECIFIED"]=0,o[e[1]="ACTIVE"]=1,o[e[2]="PERMISSION_DENIED"]=2,o[e[3]="NOT_FOUND"]=3,o[e[4]="IN_TRANSIT_LOCATION_RESTRICTION"]=4,o[e[5]="SCHEMA_MISMATCH"]=5,o[e[6]="VERTEX_AI_LOCATION_RESTRICTION"]=6,o),j),t.ReceivedMessage=(Pe.prototype.ackId="",Pe.prototype.message=null,Pe.prototype.deliveryAttempt=0,Pe.create=function(e){return new Pe(e)},Pe.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.ackId&&Object.hasOwnProperty.call(e,"ackId")&&t.uint32(10).string(e.ackId),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&g.google.pubsub.v1.PubsubMessage.encode(e.message,t.uint32(18).fork(),o+1).ldelim(),null!=e.deliveryAttempt&&Object.hasOwnProperty.call(e,"deliveryAttempt")&&t.uint32(24).int32(e.deliveryAttempt),t},Pe.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Pe.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.ReceivedMessage;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.ackId=e.string();break;case 2:i.message=g.google.pubsub.v1.PubsubMessage.decode(e,e.uint32(),void 0,n+1);break;case 3:i.deliveryAttempt=e.int32();break;default:e.skipType(7&a,n)}}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.ackId&&Object.hasOwnProperty.call(e,"ackId")&&!d.isString(e.ackId))return"ackId: string expected";if(null!=e.message&&Object.hasOwnProperty.call(e,"message")){t=g.google.pubsub.v1.PubsubMessage.verify(e.message,t+1);if(t)return"message."+t}return null!=e.deliveryAttempt&&Object.hasOwnProperty.call(e,"deliveryAttempt")&&!d.isInteger(e.deliveryAttempt)?"deliveryAttempt: integer expected":null},Pe.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.ReceivedMessage)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.ReceivedMessage: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.ReceivedMessage;if(null!=e.ackId&&(o.ackId=String(e.ackId)),null!=e.message){if(!d.isObject(e.message))throw TypeError(".google.pubsub.v1.ReceivedMessage.message: object expected");o.message=g.google.pubsub.v1.PubsubMessage.fromObject(e.message,t+1)}return null!=e.deliveryAttempt&&(o.deliveryAttempt=0|e.deliveryAttempt),o},Pe.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};return t.defaults&&(n.ackId="",n.message=null,n.deliveryAttempt=0),null!=e.ackId&&Object.hasOwnProperty.call(e,"ackId")&&(n.ackId=e.ackId),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&(n.message=g.google.pubsub.v1.PubsubMessage.toObject(e.message,t,o+1)),null!=e.deliveryAttempt&&Object.hasOwnProperty.call(e,"deliveryAttempt")&&(n.deliveryAttempt=e.deliveryAttempt),n},Pe.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Pe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.ReceivedMessage"},Pe),t.GetSubscriptionRequest=(Ee.prototype.subscription="",Ee.create=function(e){return new Ee(e)},Ee.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.subscription&&Object.hasOwnProperty.call(e,"subscription")&&t.uint32(10).string(e.subscription),t},Ee.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ee.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.GetSubscriptionRequest;e.pos<r;){var a=e.uint32();if(a===o)break;a>>>3==1?i.subscription=e.string():e.skipType(7&a,n)}return i},Ee.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Ee.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.subscription&&Object.hasOwnProperty.call(e,"subscription")&&!d.isString(e.subscription)?"subscription: string expected":null},Ee.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.GetSubscriptionRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.GetSubscriptionRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.pubsub.v1.GetSubscriptionRequest;return null!=e.subscription&&(t.subscription=String(e.subscription)),t},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.subscription=""),null!=e.subscription&&Object.hasOwnProperty.call(e,"subscription")&&(o.subscription=e.subscription),o},Ee.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Ee.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.GetSubscriptionRequest"},Ee),t.UpdateSubscriptionRequest=(Te.prototype.subscription=null,Te.prototype.updateMask=null,Te.create=function(e){return new Te(e)},Te.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.subscription&&Object.hasOwnProperty.call(e,"subscription")&&g.google.pubsub.v1.Subscription.encode(e.subscription,t.uint32(10).fork(),o+1).ldelim(),null!=e.updateMask&&Object.hasOwnProperty.call(e,"updateMask")&&g.google.protobuf.FieldMask.encode(e.updateMask,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,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.UpdateSubscriptionRequest;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.subscription=g.google.pubsub.v1.Subscription.decode(e,e.uint32(),void 0,n+1);break;case 2:i.updateMask=g.google.protobuf.FieldMask.decode(e,e.uint32(),void 0,n+1);break;default:e.skipType(7&a,n)}}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.subscription&&Object.hasOwnProperty.call(e,"subscription")&&(o=g.google.pubsub.v1.Subscription.verify(e.subscription,t+1)))return"subscription."+o;if(null!=e.updateMask&&Object.hasOwnProperty.call(e,"updateMask")&&(o=g.google.protobuf.FieldMask.verify(e.updateMask,t+1)))return"updateMask."+o;return null},Te.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.UpdateSubscriptionRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.UpdateSubscriptionRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.UpdateSubscriptionRequest;if(null!=e.subscription){if(!d.isObject(e.subscription))throw TypeError(".google.pubsub.v1.UpdateSubscriptionRequest.subscription: object expected");o.subscription=g.google.pubsub.v1.Subscription.fromObject(e.subscription,t+1)}if(null!=e.updateMask){if(!d.isObject(e.updateMask))throw TypeError(".google.pubsub.v1.UpdateSubscriptionRequest.updateMask: object expected");o.updateMask=g.google.protobuf.FieldMask.fromObject(e.updateMask,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 n={};return t.defaults&&(n.subscription=null,n.updateMask=null),null!=e.subscription&&Object.hasOwnProperty.call(e,"subscription")&&(n.subscription=g.google.pubsub.v1.Subscription.toObject(e.subscription,t,o+1)),null!=e.updateMask&&Object.hasOwnProperty.call(e,"updateMask")&&(n.updateMask=g.google.protobuf.FieldMask.toObject(e.updateMask,t,o+1)),n},Te.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Te.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.UpdateSubscriptionRequest"},Te),t.ListSubscriptionsRequest=(Ie.prototype.project="",Ie.prototype.pageSize=0,Ie.prototype.pageToken="",Ie.create=function(e){return new Ie(e)},Ie.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.project&&Object.hasOwnProperty.call(e,"project")&&t.uint32(10).string(e.project),null!=e.pageSize&&Object.hasOwnProperty.call(e,"pageSize")&&t.uint32(16).int32(e.pageSize),null!=e.pageToken&&Object.hasOwnProperty.call(e,"pageToken")&&t.uint32(26).string(e.pageToken),t},Ie.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ie.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.ListSubscriptionsRequest;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.project=e.string();break;case 2:i.pageSize=e.int32();break;case 3:i.pageToken=e.string();break;default:e.skipType(7&a,n)}}return 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":null!=e.project&&Object.hasOwnProperty.call(e,"project")&&!d.isString(e.project)?"project: string expected":null!=e.pageSize&&Object.hasOwnProperty.call(e,"pageSize")&&!d.isInteger(e.pageSize)?"pageSize: integer expected":null!=e.pageToken&&Object.hasOwnProperty.call(e,"pageToken")&&!d.isString(e.pageToken)?"pageToken: string expected":null},Ie.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.ListSubscriptionsRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.ListSubscriptionsRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.pubsub.v1.ListSubscriptionsRequest;return null!=e.project&&(t.project=String(e.project)),null!=e.pageSize&&(t.pageSize=0|e.pageSize),null!=e.pageToken&&(t.pageToken=String(e.pageToken)),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.project="",o.pageSize=0,o.pageToken=""),null!=e.project&&Object.hasOwnProperty.call(e,"project")&&(o.project=e.project),null!=e.pageSize&&Object.hasOwnProperty.call(e,"pageSize")&&(o.pageSize=e.pageSize),null!=e.pageToken&&Object.hasOwnProperty.call(e,"pageToken")&&(o.pageToken=e.pageToken),o},Ie.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Ie.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.ListSubscriptionsRequest"},Ie),t.ListSubscriptionsResponse=(De.prototype.subscriptions=d.emptyArray,De.prototype.nextPageToken="",De.create=function(e){return new De(e)},De.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.subscriptions&&e.subscriptions.length)for(var n=0;n<e.subscriptions.length;++n)g.google.pubsub.v1.Subscription.encode(e.subscriptions[n],t.uint32(10).fork(),o+1).ldelim();return null!=e.nextPageToken&&Object.hasOwnProperty.call(e,"nextPageToken")&&t.uint32(18).string(e.nextPageToken),t},De.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},De.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.ListSubscriptionsResponse;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.subscriptions&&i.subscriptions.length||(i.subscriptions=[]),i.subscriptions.push(g.google.pubsub.v1.Subscription.decode(e,e.uint32(),void 0,n+1));break;case 2:i.nextPageToken=e.string();break;default:e.skipType(7&a,n)}}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.subscriptions&&Object.hasOwnProperty.call(e,"subscriptions")){if(!Array.isArray(e.subscriptions))return"subscriptions: array expected";for(var o=0;o<e.subscriptions.length;++o){var n=g.google.pubsub.v1.Subscription.verify(e.subscriptions[o],t+1);if(n)return"subscriptions."+n}}return null!=e.nextPageToken&&Object.hasOwnProperty.call(e,"nextPageToken")&&!d.isString(e.nextPageToken)?"nextPageToken: string expected":null},De.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.ListSubscriptionsResponse)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.ListSubscriptionsResponse: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.ListSubscriptionsResponse;if(e.subscriptions){if(!Array.isArray(e.subscriptions))throw TypeError(".google.pubsub.v1.ListSubscriptionsResponse.subscriptions: array expected");o.subscriptions=[];for(var n=0;n<e.subscriptions.length;++n){if(!d.isObject(e.subscriptions[n]))throw TypeError(".google.pubsub.v1.ListSubscriptionsResponse.subscriptions: object expected");o.subscriptions[n]=g.google.pubsub.v1.Subscription.fromObject(e.subscriptions[n],t+1)}}return null!=e.nextPageToken&&(o.nextPageToken=String(e.nextPageToken)),o},De.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.subscriptions=[]),t.defaults&&(n.nextPageToken=""),e.subscriptions&&e.subscriptions.length){n.subscriptions=[];for(var r=0;r<e.subscriptions.length;++r)n.subscriptions[r]=g.google.pubsub.v1.Subscription.toObject(e.subscriptions[r],t,o+1)}return null!=e.nextPageToken&&Object.hasOwnProperty.call(e,"nextPageToken")&&(n.nextPageToken=e.nextPageToken),n},De.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},De.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.ListSubscriptionsResponse"},De),t.DeleteSubscriptionRequest=(Re.prototype.subscription="",Re.create=function(e){return new Re(e)},Re.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.subscription&&Object.hasOwnProperty.call(e,"subscription")&&t.uint32(10).string(e.subscription),t},Re.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Re.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.DeleteSubscriptionRequest;e.pos<r;){var a=e.uint32();if(a===o)break;a>>>3==1?i.subscription=e.string():e.skipType(7&a,n)}return i},Re.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Re.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.subscription&&Object.hasOwnProperty.call(e,"subscription")&&!d.isString(e.subscription)?"subscription: string expected":null},Re.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.DeleteSubscriptionRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.DeleteSubscriptionRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.pubsub.v1.DeleteSubscriptionRequest;return null!=e.subscription&&(t.subscription=String(e.subscription)),t},Re.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.subscription=""),null!=e.subscription&&Object.hasOwnProperty.call(e,"subscription")&&(o.subscription=e.subscription),o},Re.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Re.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.DeleteSubscriptionRequest"},Re),t.ModifyPushConfigRequest=(Ae.prototype.subscription="",Ae.prototype.pushConfig=null,Ae.create=function(e){return new Ae(e)},Ae.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.subscription&&Object.hasOwnProperty.call(e,"subscription")&&t.uint32(10).string(e.subscription),null!=e.pushConfig&&Object.hasOwnProperty.call(e,"pushConfig")&&g.google.pubsub.v1.PushConfig.encode(e.pushConfig,t.uint32(18).fork(),o+1).ldelim(),t},Ae.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ae.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.ModifyPushConfigRequest;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.subscription=e.string();break;case 2:i.pushConfig=g.google.pubsub.v1.PushConfig.decode(e,e.uint32(),void 0,n+1);break;default:e.skipType(7&a,n)}}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.subscription&&Object.hasOwnProperty.call(e,"subscription")&&!d.isString(e.subscription))return"subscription: string expected";if(null!=e.pushConfig&&Object.hasOwnProperty.call(e,"pushConfig")){e=g.google.pubsub.v1.PushConfig.verify(e.pushConfig,t+1);if(e)return"pushConfig."+e}return null},Ae.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.ModifyPushConfigRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.ModifyPushConfigRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.ModifyPushConfigRequest;if(null!=e.subscription&&(o.subscription=String(e.subscription)),null!=e.pushConfig){if(!d.isObject(e.pushConfig))throw TypeError(".google.pubsub.v1.ModifyPushConfigRequest.pushConfig: object expected");o.pushConfig=g.google.pubsub.v1.PushConfig.fromObject(e.pushConfig,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 n={};return t.defaults&&(n.subscription="",n.pushConfig=null),null!=e.subscription&&Object.hasOwnProperty.call(e,"subscription")&&(n.subscription=e.subscription),null!=e.pushConfig&&Object.hasOwnProperty.call(e,"pushConfig")&&(n.pushConfig=g.google.pubsub.v1.PushConfig.toObject(e.pushConfig,t,o+1)),n},Ae.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Ae.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.ModifyPushConfigRequest"},Ae),t.PullRequest=(Le.prototype.subscription="",Le.prototype.returnImmediately=!1,Le.prototype.maxMessages=0,Le.create=function(e){return new Le(e)},Le.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.subscription&&Object.hasOwnProperty.call(e,"subscription")&&t.uint32(10).string(e.subscription),null!=e.returnImmediately&&Object.hasOwnProperty.call(e,"returnImmediately")&&t.uint32(16).bool(e.returnImmediately),null!=e.maxMessages&&Object.hasOwnProperty.call(e,"maxMessages")&&t.uint32(24).int32(e.maxMessages),t},Le.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Le.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.PullRequest;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.subscription=e.string();break;case 2:i.returnImmediately=e.bool();break;case 3:i.maxMessages=e.int32();break;default:e.skipType(7&a,n)}}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.subscription&&Object.hasOwnProperty.call(e,"subscription")&&!d.isString(e.subscription)?"subscription: string expected":null!=e.returnImmediately&&Object.hasOwnProperty.call(e,"returnImmediately")&&"boolean"!=typeof e.returnImmediately?"returnImmediately: boolean expected":null!=e.maxMessages&&Object.hasOwnProperty.call(e,"maxMessages")&&!d.isInteger(e.maxMessages)?"maxMessages: integer expected":null},Le.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.PullRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.PullRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.pubsub.v1.PullRequest;return null!=e.subscription&&(t.subscription=String(e.subscription)),null!=e.returnImmediately&&(t.returnImmediately=Boolean(e.returnImmediately)),null!=e.maxMessages&&(t.maxMessages=0|e.maxMessages),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.subscription="",o.returnImmediately=!1,o.maxMessages=0),null!=e.subscription&&Object.hasOwnProperty.call(e,"subscription")&&(o.subscription=e.subscription),null!=e.returnImmediately&&Object.hasOwnProperty.call(e,"returnImmediately")&&(o.returnImmediately=e.returnImmediately),null!=e.maxMessages&&Object.hasOwnProperty.call(e,"maxMessages")&&(o.maxMessages=e.maxMessages),o},Le.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Le.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.PullRequest"},Le),t.PullResponse=(Ne.prototype.receivedMessages=d.emptyArray,Ne.create=function(e){return new Ne(e)},Ne.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.receivedMessages&&e.receivedMessages.length)for(var n=0;n<e.receivedMessages.length;++n)g.google.pubsub.v1.ReceivedMessage.encode(e.receivedMessages[n],t.uint32(10).fork(),o+1).ldelim();return t},Ne.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ne.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.PullResponse;e.pos<r;){var a=e.uint32();if(a===o)break;a>>>3==1?(i.receivedMessages&&i.receivedMessages.length||(i.receivedMessages=[]),i.receivedMessages.push(g.google.pubsub.v1.ReceivedMessage.decode(e,e.uint32(),void 0,n+1))):e.skipType(7&a,n)}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.receivedMessages&&Object.hasOwnProperty.call(e,"receivedMessages")){if(!Array.isArray(e.receivedMessages))return"receivedMessages: array expected";for(var o=0;o<e.receivedMessages.length;++o){var n=g.google.pubsub.v1.ReceivedMessage.verify(e.receivedMessages[o],t+1);if(n)return"receivedMessages."+n}}return null},Ne.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.PullResponse)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.PullResponse: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.PullResponse;if(e.receivedMessages){if(!Array.isArray(e.receivedMessages))throw TypeError(".google.pubsub.v1.PullResponse.receivedMessages: array expected");o.receivedMessages=[];for(var n=0;n<e.receivedMessages.length;++n){if(!d.isObject(e.receivedMessages[n]))throw TypeError(".google.pubsub.v1.PullResponse.receivedMessages: object expected");o.receivedMessages[n]=g.google.pubsub.v1.ReceivedMessage.fromObject(e.receivedMessages[n],t+1)}}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 n={};if((t.arrays||t.defaults)&&(n.receivedMessages=[]),e.receivedMessages&&e.receivedMessages.length){n.receivedMessages=[];for(var r=0;r<e.receivedMessages.length;++r)n.receivedMessages[r]=g.google.pubsub.v1.ReceivedMessage.toObject(e.receivedMessages[r],t,o+1)}return n},Ne.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Ne.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.PullResponse"},Ne),t.ModifyAckDeadlineRequest=(_e.prototype.subscription="",_e.prototype.ackIds=d.emptyArray,_e.prototype.ackDeadlineSeconds=0,_e.create=function(e){return new _e(e)},_e.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.subscription&&Object.hasOwnProperty.call(e,"subscription")&&t.uint32(10).string(e.subscription),null!=e.ackDeadlineSeconds&&Object.hasOwnProperty.call(e,"ackDeadlineSeconds")&&t.uint32(24).int32(e.ackDeadlineSeconds),null!=e.ackIds&&e.ackIds.length)for(var n=0;n<e.ackIds.length;++n)t.uint32(34).string(e.ackIds[n]);return t},_e.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},_e.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.ModifyAckDeadlineRequest;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.subscription=e.string();break;case 4:i.ackIds&&i.ackIds.length||(i.ackIds=[]),i.ackIds.push(e.string());break;case 3:i.ackDeadlineSeconds=e.int32();break;default:e.skipType(7&a,n)}}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.subscription&&Object.hasOwnProperty.call(e,"subscription")&&!d.isString(e.subscription))return"subscription: string expected";if(null!=e.ackIds&&Object.hasOwnProperty.call(e,"ackIds")){if(!Array.isArray(e.ackIds))return"ackIds: array expected";for(var o=0;o<e.ackIds.length;++o)if(!d.isString(e.ackIds[o]))return"ackIds: string[] expected"}return null!=e.ackDeadlineSeconds&&Object.hasOwnProperty.call(e,"ackDeadlineSeconds")&&!d.isInteger(e.ackDeadlineSeconds)?"ackDeadlineSeconds: integer expected":null},_e.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.ModifyAckDeadlineRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.ModifyAckDeadlineRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.ModifyAckDeadlineRequest;if(null!=e.subscription&&(o.subscription=String(e.subscription)),e.ackIds){if(!Array.isArray(e.ackIds))throw TypeError(".google.pubsub.v1.ModifyAckDeadlineRequest.ackIds: array expected");o.ackIds=[];for(var n=0;n<e.ackIds.length;++n)o.ackIds[n]=String(e.ackIds[n])}return null!=e.ackDeadlineSeconds&&(o.ackDeadlineSeconds=0|e.ackDeadlineSeconds),o},_e.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.ackIds=[]),t.defaults&&(n.subscription="",n.ackDeadlineSeconds=0),null!=e.subscription&&Object.hasOwnProperty.call(e,"subscription")&&(n.subscription=e.subscription),null!=e.ackDeadlineSeconds&&Object.hasOwnProperty.call(e,"ackDeadlineSeconds")&&(n.ackDeadlineSeconds=e.ackDeadlineSeconds),e.ackIds&&e.ackIds.length){n.ackIds=[];for(var r=0;r<e.ackIds.length;++r)n.ackIds[r]=e.ackIds[r]}return n},_e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_e.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.ModifyAckDeadlineRequest"},_e),t.AcknowledgeRequest=(Fe.prototype.subscription="",Fe.prototype.ackIds=d.emptyArray,Fe.create=function(e){return new Fe(e)},Fe.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.subscription&&Object.hasOwnProperty.call(e,"subscription")&&t.uint32(10).string(e.subscription),null!=e.ackIds&&e.ackIds.length)for(var n=0;n<e.ackIds.length;++n)t.uint32(18).string(e.ackIds[n]);return t},Fe.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Fe.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.AcknowledgeRequest;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.subscription=e.string();break;case 2:i.ackIds&&i.ackIds.length||(i.ackIds=[]),i.ackIds.push(e.string());break;default:e.skipType(7&a,n)}}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.subscription&&Object.hasOwnProperty.call(e,"subscription")&&!d.isString(e.subscription))return"subscription: string expected";if(null!=e.ackIds&&Object.hasOwnProperty.call(e,"ackIds")){if(!Array.isArray(e.ackIds))return"ackIds: array expected";for(var o=0;o<e.ackIds.length;++o)if(!d.isString(e.ackIds[o]))return"ackIds: string[] expected"}return null},Fe.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.AcknowledgeRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.AcknowledgeRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.AcknowledgeRequest;if(null!=e.subscription&&(o.subscription=String(e.subscription)),e.ackIds){if(!Array.isArray(e.ackIds))throw TypeError(".google.pubsub.v1.AcknowledgeRequest.ackIds: array expected");o.ackIds=[];for(var n=0;n<e.ackIds.length;++n)o.ackIds[n]=String(e.ackIds[n])}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 n={};if((t.arrays||t.defaults)&&(n.ackIds=[]),t.defaults&&(n.subscription=""),null!=e.subscription&&Object.hasOwnProperty.call(e,"subscription")&&(n.subscription=e.subscription),e.ackIds&&e.ackIds.length){n.ackIds=[];for(var r=0;r<e.ackIds.length;++r)n.ackIds[r]=e.ackIds[r]}return n},Fe.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Fe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.AcknowledgeRequest"},Fe),t.StreamingPullRequest=(S.prototype.subscription="",S.prototype.ackIds=d.emptyArray,S.prototype.modifyDeadlineSeconds=d.emptyArray,S.prototype.modifyDeadlineAckIds=d.emptyArray,S.prototype.streamAckDeadlineSeconds=0,S.prototype.clientId="",S.prototype.maxOutstandingMessages=d.Long?d.Long.fromBits(0,0,!1):0,S.prototype.maxOutstandingBytes=d.Long?d.Long.fromBits(0,0,!1):0,S.prototype.protocolVersion=d.Long?d.Long.fromBits(0,0,!1):0,S.create=function(e){return new S(e)},S.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.subscription&&Object.hasOwnProperty.call(e,"subscription")&&t.uint32(10).string(e.subscription),null!=e.ackIds&&e.ackIds.length)for(var n=0;n<e.ackIds.length;++n)t.uint32(18).string(e.ackIds[n]);if(null!=e.modifyDeadlineSeconds&&e.modifyDeadlineSeconds.length){t.uint32(26).fork();for(n=0;n<e.modifyDeadlineSeconds.length;++n)t.int32(e.modifyDeadlineSeconds[n]);t.ldelim()}if(null!=e.modifyDeadlineAckIds&&e.modifyDeadlineAckIds.length)for(n=0;n<e.modifyDeadlineAckIds.length;++n)t.uint32(34).string(e.modifyDeadlineAckIds[n]);return null!=e.streamAckDeadlineSeconds&&Object.hasOwnProperty.call(e,"streamAckDeadlineSeconds")&&t.uint32(40).int32(e.streamAckDeadlineSeconds),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(50).string(e.clientId),null!=e.maxOutstandingMessages&&Object.hasOwnProperty.call(e,"maxOutstandingMessages")&&t.uint32(56).int64(e.maxOutstandingMessages),null!=e.maxOutstandingBytes&&Object.hasOwnProperty.call(e,"maxOutstandingBytes")&&t.uint32(64).int64(e.maxOutstandingBytes),null!=e.protocolVersion&&Object.hasOwnProperty.call(e,"protocolVersion")&&t.uint32(80).int64(e.protocolVersion),t},S.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},S.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.StreamingPullRequest;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.subscription=e.string();break;case 2:i.ackIds&&i.ackIds.length||(i.ackIds=[]),i.ackIds.push(e.string());break;case 3:if(i.modifyDeadlineSeconds&&i.modifyDeadlineSeconds.length||(i.modifyDeadlineSeconds=[]),2==(7&a))for(var s=e.uint32()+e.pos;e.pos<s;)i.modifyDeadlineSeconds.push(e.int32());else i.modifyDeadlineSeconds.push(e.int32());break;case 4:i.modifyDeadlineAckIds&&i.modifyDeadlineAckIds.length||(i.modifyDeadlineAckIds=[]),i.modifyDeadlineAckIds.push(e.string());break;case 5:i.streamAckDeadlineSeconds=e.int32();break;case 6:i.clientId=e.string();break;case 7:i.maxOutstandingMessages=e.int64();break;case 8:i.maxOutstandingBytes=e.int64();break;case 10:i.protocolVersion=e.int64();break;default:e.skipType(7&a,n)}}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.subscription&&Object.hasOwnProperty.call(e,"subscription")&&!d.isString(e.subscription))return"subscription: string expected";if(null!=e.ackIds&&Object.hasOwnProperty.call(e,"ackIds")){if(!Array.isArray(e.ackIds))return"ackIds: array expected";for(var o=0;o<e.ackIds.length;++o)if(!d.isString(e.ackIds[o]))return"ackIds: string[] expected"}if(null!=e.modifyDeadlineSeconds&&Object.hasOwnProperty.call(e,"modifyDeadlineSeconds")){if(!Array.isArray(e.modifyDeadlineSeconds))return"modifyDeadlineSeconds: array expected";for(o=0;o<e.modifyDeadlineSeconds.length;++o)if(!d.isInteger(e.modifyDeadlineSeconds[o]))return"modifyDeadlineSeconds: integer[] expected"}if(null!=e.modifyDeadlineAckIds&&Object.hasOwnProperty.call(e,"modifyDeadlineAckIds")){if(!Array.isArray(e.modifyDeadlineAckIds))return"modifyDeadlineAckIds: array expected";for(o=0;o<e.modifyDeadlineAckIds.length;++o)if(!d.isString(e.modifyDeadlineAckIds[o]))return"modifyDeadlineAckIds: string[] expected"}return null!=e.streamAckDeadlineSeconds&&Object.hasOwnProperty.call(e,"streamAckDeadlineSeconds")&&!d.isInteger(e.streamAckDeadlineSeconds)?"streamAckDeadlineSeconds: integer expected":null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&!d.isString(e.clientId)?"clientId: string expected":null!=e.maxOutstandingMessages&&Object.hasOwnProperty.call(e,"maxOutstandingMessages")&&!(d.isInteger(e.maxOutstandingMessages)||e.maxOutstandingMessages&&d.isInteger(e.maxOutstandingMessages.low)&&d.isInteger(e.maxOutstandingMessages.high))?"maxOutstandingMessages: integer|Long expected":null!=e.maxOutstandingBytes&&Object.hasOwnProperty.call(e,"maxOutstandingBytes")&&!(d.isInteger(e.maxOutstandingBytes)||e.maxOutstandingBytes&&d.isInteger(e.maxOutstandingBytes.low)&&d.isInteger(e.maxOutstandingBytes.high))?"maxOutstandingBytes: integer|Long expected":null!=e.protocolVersion&&Object.hasOwnProperty.call(e,"protocolVersion")&&!(d.isInteger(e.protocolVersion)||e.protocolVersion&&d.isInteger(e.protocolVersion.low)&&d.isInteger(e.protocolVersion.high))?"protocolVersion: integer|Long expected":null},S.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.StreamingPullRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.StreamingPullRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.StreamingPullRequest;if(null!=e.subscription&&(o.subscription=String(e.subscription)),e.ackIds){if(!Array.isArray(e.ackIds))throw TypeError(".google.pubsub.v1.StreamingPullRequest.ackIds: array expected");o.ackIds=[];for(var n=0;n<e.ackIds.length;++n)o.ackIds[n]=String(e.ackIds[n])}if(e.modifyDeadlineSeconds){if(!Array.isArray(e.modifyDeadlineSeconds))throw TypeError(".google.pubsub.v1.StreamingPullRequest.modifyDeadlineSeconds: array expected");o.modifyDeadlineSeconds=[];for(n=0;n<e.modifyDeadlineSeconds.length;++n)o.modifyDeadlineSeconds[n]=0|e.modifyDeadlineSeconds[n]}if(e.modifyDeadlineAckIds){if(!Array.isArray(e.modifyDeadlineAckIds))throw TypeError(".google.pubsub.v1.StreamingPullRequest.modifyDeadlineAckIds: array expected");o.modifyDeadlineAckIds=[];for(n=0;n<e.modifyDeadlineAckIds.length;++n)o.modifyDeadlineAckIds[n]=String(e.modifyDeadlineAckIds[n])}return null!=e.streamAckDeadlineSeconds&&(o.streamAckDeadlineSeconds=0|e.streamAckDeadlineSeconds),null!=e.clientId&&(o.clientId=String(e.clientId)),null!=e.maxOutstandingMessages&&(d.Long?o.maxOutstandingMessages=d.Long.fromValue(e.maxOutstandingMessages,!1):"string"==typeof e.maxOutstandingMessages?o.maxOutstandingMessages=parseInt(e.maxOutstandingMessages,10):"number"==typeof e.maxOutstandingMessages?o.maxOutstandingMessages=e.maxOutstandingMessages:"object"==typeof e.maxOutstandingMessages&&(o.maxOutstandingMessages=new d.LongBits(e.maxOutstandingMessages.low>>>0,e.maxOutstandingMessages.high>>>0).toNumber())),null!=e.maxOutstandingBytes&&(d.Long?o.maxOutstandingBytes=d.Long.fromValue(e.maxOutstandingBytes,!1):"string"==typeof e.maxOutstandingBytes?o.maxOutstandingBytes=parseInt(e.maxOutstandingBytes,10):"number"==typeof e.maxOutstandingBytes?o.maxOutstandingBytes=e.maxOutstandingBytes:"object"==typeof e.maxOutstandingBytes&&(o.maxOutstandingBytes=new d.LongBits(e.maxOutstandingBytes.low>>>0,e.maxOutstandingBytes.high>>>0).toNumber())),null!=e.protocolVersion&&(d.Long?o.protocolVersion=d.Long.fromValue(e.protocolVersion,!1):"string"==typeof e.protocolVersion?o.protocolVersion=parseInt(e.protocolVersion,10):"number"==typeof e.protocolVersion?o.protocolVersion=e.protocolVersion:"object"==typeof e.protocolVersion&&(o.protocolVersion=new d.LongBits(e.protocolVersion.low>>>0,e.protocolVersion.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 n,r={};if((t.arrays||t.defaults)&&(r.ackIds=[],r.modifyDeadlineSeconds=[],r.modifyDeadlineAckIds=[]),t.defaults&&(r.subscription="",r.streamAckDeadlineSeconds=0,r.clientId="",d.Long?(n=new d.Long(0,0,!1),r.maxOutstandingMessages=t.longs===String?n.toString():t.longs===Number?n.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?n.toBigInt():n):r.maxOutstandingMessages=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,d.Long?(n=new d.Long(0,0,!1),r.maxOutstandingBytes=t.longs===String?n.toString():t.longs===Number?n.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?n.toBigInt():n):r.maxOutstandingBytes=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,d.Long?(n=new d.Long(0,0,!1),r.protocolVersion=t.longs===String?n.toString():t.longs===Number?n.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?n.toBigInt():n):r.protocolVersion=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0),null!=e.subscription&&Object.hasOwnProperty.call(e,"subscription")&&(r.subscription=e.subscription),e.ackIds&&e.ackIds.length){r.ackIds=[];for(var i=0;i<e.ackIds.length;++i)r.ackIds[i]=e.ackIds[i]}if(e.modifyDeadlineSeconds&&e.modifyDeadlineSeconds.length){r.modifyDeadlineSeconds=[];for(i=0;i<e.modifyDeadlineSeconds.length;++i)r.modifyDeadlineSeconds[i]=e.modifyDeadlineSeconds[i]}if(e.modifyDeadlineAckIds&&e.modifyDeadlineAckIds.length){r.modifyDeadlineAckIds=[];for(i=0;i<e.modifyDeadlineAckIds.length;++i)r.modifyDeadlineAckIds[i]=e.modifyDeadlineAckIds[i]}return null!=e.streamAckDeadlineSeconds&&Object.hasOwnProperty.call(e,"streamAckDeadlineSeconds")&&(r.streamAckDeadlineSeconds=e.streamAckDeadlineSeconds),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&(r.clientId=e.clientId),null!=e.maxOutstandingMessages&&Object.hasOwnProperty.call(e,"maxOutstandingMessages")&&("undefined"!=typeof BigInt&&t.longs===BigInt?r.maxOutstandingMessages="number"==typeof e.maxOutstandingMessages?BigInt(e.maxOutstandingMessages):d.Long.fromBits(e.maxOutstandingMessages.low>>>0,e.maxOutstandingMessages.high>>>0,!1).toBigInt():"number"==typeof e.maxOutstandingMessages?r.maxOutstandingMessages=t.longs===String?String(e.maxOutstandingMessages):e.maxOutstandingMessages:r.maxOutstandingMessages=t.longs===String?d.Long.prototype.toString.call(e.maxOutstandingMessages):t.longs===Number?new d.LongBits(e.maxOutstandingMessages.low>>>0,e.maxOutstandingMessages.high>>>0).toNumber():e.maxOutstandingMessages),null!=e.maxOutstandingBytes&&Object.hasOwnProperty.call(e,"maxOutstandingBytes")&&("undefined"!=typeof BigInt&&t.longs===BigInt?r.maxOutstandingBytes="number"==typeof e.maxOutstandingBytes?BigInt(e.maxOutstandingBytes):d.Long.fromBits(e.maxOutstandingBytes.low>>>0,e.maxOutstandingBytes.high>>>0,!1).toBigInt():"number"==typeof e.maxOutstandingBytes?r.maxOutstandingBytes=t.longs===String?String(e.maxOutstandingBytes):e.maxOutstandingBytes:r.maxOutstandingBytes=t.longs===String?d.Long.prototype.toString.call(e.maxOutstandingBytes):t.longs===Number?new d.LongBits(e.maxOutstandingBytes.low>>>0,e.maxOutstandingBytes.high>>>0).toNumber():e.maxOutstandingBytes),null!=e.protocolVersion&&Object.hasOwnProperty.call(e,"protocolVersion")&&("undefined"!=typeof BigInt&&t.longs===BigInt?r.protocolVersion="number"==typeof e.protocolVersion?BigInt(e.protocolVersion):d.Long.fromBits(e.protocolVersion.low>>>0,e.protocolVersion.high>>>0,!1).toBigInt():"number"==typeof e.protocolVersion?r.protocolVersion=t.longs===String?String(e.protocolVersion):e.protocolVersion:r.protocolVersion=t.longs===String?d.Long.prototype.toString.call(e.protocolVersion):t.longs===Number?new d.LongBits(e.protocolVersion.low>>>0,e.protocolVersion.high>>>0).toNumber():e.protocolVersion),r},S.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},S.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.StreamingPullRequest"},S),t.StreamingPullResponse=(Ce.prototype.receivedMessages=d.emptyArray,Ce.prototype.acknowledgeConfirmation=null,Ce.prototype.modifyAckDeadlineConfirmation=null,Ce.prototype.subscriptionProperties=null,Ce.create=function(e){return new Ce(e)},Ce.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.receivedMessages&&e.receivedMessages.length)for(var n=0;n<e.receivedMessages.length;++n)g.google.pubsub.v1.ReceivedMessage.encode(e.receivedMessages[n],t.uint32(10).fork(),o+1).ldelim();return null!=e.modifyAckDeadlineConfirmation&&Object.hasOwnProperty.call(e,"modifyAckDeadlineConfirmation")&&g.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.encode(e.modifyAckDeadlineConfirmation,t.uint32(26).fork(),o+1).ldelim(),null!=e.subscriptionProperties&&Object.hasOwnProperty.call(e,"subscriptionProperties")&&g.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.encode(e.subscriptionProperties,t.uint32(34).fork(),o+1).ldelim(),null!=e.acknowledgeConfirmation&&Object.hasOwnProperty.call(e,"acknowledgeConfirmation")&&g.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.encode(e.acknowledgeConfirmation,t.uint32(42).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,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.StreamingPullResponse;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.receivedMessages&&i.receivedMessages.length||(i.receivedMessages=[]),i.receivedMessages.push(g.google.pubsub.v1.ReceivedMessage.decode(e,e.uint32(),void 0,n+1));break;case 5:i.acknowledgeConfirmation=g.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.decode(e,e.uint32(),void 0,n+1);break;case 3:i.modifyAckDeadlineConfirmation=g.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.decode(e,e.uint32(),void 0,n+1);break;case 4:i.subscriptionProperties=g.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.decode(e,e.uint32(),void 0,n+1);break;default:e.skipType(7&a,n)}}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.receivedMessages&&Object.hasOwnProperty.call(e,"receivedMessages")){if(!Array.isArray(e.receivedMessages))return"receivedMessages: array expected";for(var o=0;o<e.receivedMessages.length;++o)if(n=g.google.pubsub.v1.ReceivedMessage.verify(e.receivedMessages[o],t+1))return"receivedMessages."+n}var n;if(null!=e.acknowledgeConfirmation&&Object.hasOwnProperty.call(e,"acknowledgeConfirmation")&&(n=g.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.verify(e.acknowledgeConfirmation,t+1)))return"acknowledgeConfirmation."+n;if(null!=e.modifyAckDeadlineConfirmation&&Object.hasOwnProperty.call(e,"modifyAckDeadlineConfirmation")&&(n=g.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.verify(e.modifyAckDeadlineConfirmation,t+1)))return"modifyAckDeadlineConfirmation."+n;if(null!=e.subscriptionProperties&&Object.hasOwnProperty.call(e,"subscriptionProperties")&&(n=g.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.verify(e.subscriptionProperties,t+1)))return"subscriptionProperties."+n;return null},Ce.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.StreamingPullResponse)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.StreamingPullResponse: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.StreamingPullResponse;if(e.receivedMessages){if(!Array.isArray(e.receivedMessages))throw TypeError(".google.pubsub.v1.StreamingPullResponse.receivedMessages: array expected");o.receivedMessages=[];for(var n=0;n<e.receivedMessages.length;++n){if(!d.isObject(e.receivedMessages[n]))throw TypeError(".google.pubsub.v1.StreamingPullResponse.receivedMessages: object expected");o.receivedMessages[n]=g.google.pubsub.v1.ReceivedMessage.fromObject(e.receivedMessages[n],t+1)}}if(null!=e.acknowledgeConfirmation){if(!d.isObject(e.acknowledgeConfirmation))throw TypeError(".google.pubsub.v1.StreamingPullResponse.acknowledgeConfirmation: object expected");o.acknowledgeConfirmation=g.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.fromObject(e.acknowledgeConfirmation,t+1)}if(null!=e.modifyAckDeadlineConfirmation){if(!d.isObject(e.modifyAckDeadlineConfirmation))throw TypeError(".google.pubsub.v1.StreamingPullResponse.modifyAckDeadlineConfirmation: object expected");o.modifyAckDeadlineConfirmation=g.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.fromObject(e.modifyAckDeadlineConfirmation,t+1)}if(null!=e.subscriptionProperties){if(!d.isObject(e.subscriptionProperties))throw TypeError(".google.pubsub.v1.StreamingPullResponse.subscriptionProperties: object expected");o.subscriptionProperties=g.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.fromObject(e.subscriptionProperties,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 n={};if((t.arrays||t.defaults)&&(n.receivedMessages=[]),t.defaults&&(n.modifyAckDeadlineConfirmation=null,n.subscriptionProperties=null,n.acknowledgeConfirmation=null),e.receivedMessages&&e.receivedMessages.length){n.receivedMessages=[];for(var r=0;r<e.receivedMessages.length;++r)n.receivedMessages[r]=g.google.pubsub.v1.ReceivedMessage.toObject(e.receivedMessages[r],t,o+1)}return null!=e.modifyAckDeadlineConfirmation&&Object.hasOwnProperty.call(e,"modifyAckDeadlineConfirmation")&&(n.modifyAckDeadlineConfirmation=g.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.toObject(e.modifyAckDeadlineConfirmation,t,o+1)),null!=e.subscriptionProperties&&Object.hasOwnProperty.call(e,"subscriptionProperties")&&(n.subscriptionProperties=g.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.toObject(e.subscriptionProperties,t,o+1)),null!=e.acknowledgeConfirmation&&Object.hasOwnProperty.call(e,"acknowledgeConfirmation")&&(n.acknowledgeConfirmation=g.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.toObject(e.acknowledgeConfirmation,t,o+1)),n},Ce.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Ce.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.StreamingPullResponse"},Ce.AcknowledgeConfirmation=(Ve.prototype.ackIds=d.emptyArray,Ve.prototype.invalidAckIds=d.emptyArray,Ve.prototype.unorderedAckIds=d.emptyArray,Ve.prototype.temporaryFailedAckIds=d.emptyArray,Ve.create=function(e){return new Ve(e)},Ve.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.ackIds&&e.ackIds.length)for(var n=0;n<e.ackIds.length;++n)t.uint32(10).string(e.ackIds[n]);if(null!=e.invalidAckIds&&e.invalidAckIds.length)for(n=0;n<e.invalidAckIds.length;++n)t.uint32(18).string(e.invalidAckIds[n]);if(null!=e.unorderedAckIds&&e.unorderedAckIds.length)for(n=0;n<e.unorderedAckIds.length;++n)t.uint32(26).string(e.unorderedAckIds[n]);if(null!=e.temporaryFailedAckIds&&e.temporaryFailedAckIds.length)for(n=0;n<e.temporaryFailedAckIds.length;++n)t.uint32(34).string(e.temporaryFailedAckIds[n]);return t},Ve.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ve.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.ackIds&&i.ackIds.length||(i.ackIds=[]),i.ackIds.push(e.string());break;case 2:i.invalidAckIds&&i.invalidAckIds.length||(i.invalidAckIds=[]),i.invalidAckIds.push(e.string());break;case 3:i.unorderedAckIds&&i.unorderedAckIds.length||(i.unorderedAckIds=[]),i.unorderedAckIds.push(e.string());break;case 4:i.temporaryFailedAckIds&&i.temporaryFailedAckIds.length||(i.temporaryFailedAckIds=[]),i.temporaryFailedAckIds.push(e.string());break;default:e.skipType(7&a,n)}}return i},Ve.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Ve.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.ackIds&&Object.hasOwnProperty.call(e,"ackIds")){if(!Array.isArray(e.ackIds))return"ackIds: array expected";for(var o=0;o<e.ackIds.length;++o)if(!d.isString(e.ackIds[o]))return"ackIds: string[] expected"}if(null!=e.invalidAckIds&&Object.hasOwnProperty.call(e,"invalidAckIds")){if(!Array.isArray(e.invalidAckIds))return"invalidAckIds: array expected";for(o=0;o<e.invalidAckIds.length;++o)if(!d.isString(e.invalidAckIds[o]))return"invalidAckIds: string[] expected"}if(null!=e.unorderedAckIds&&Object.hasOwnProperty.call(e,"unorderedAckIds")){if(!Array.isArray(e.unorderedAckIds))return"unorderedAckIds: array expected";for(o=0;o<e.unorderedAckIds.length;++o)if(!d.isString(e.unorderedAckIds[o]))return"unorderedAckIds: string[] expected"}if(null!=e.temporaryFailedAckIds&&Object.hasOwnProperty.call(e,"temporaryFailedAckIds")){if(!Array.isArray(e.temporaryFailedAckIds))return"temporaryFailedAckIds: array expected";for(o=0;o<e.temporaryFailedAckIds.length;++o)if(!d.isString(e.temporaryFailedAckIds[o]))return"temporaryFailedAckIds: string[] expected"}return null},Ve.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation;if(e.ackIds){if(!Array.isArray(e.ackIds))throw TypeError(".google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.ackIds: array expected");o.ackIds=[];for(var n=0;n<e.ackIds.length;++n)o.ackIds[n]=String(e.ackIds[n])}if(e.invalidAckIds){if(!Array.isArray(e.invalidAckIds))throw TypeError(".google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.invalidAckIds: array expected");o.invalidAckIds=[];for(n=0;n<e.invalidAckIds.length;++n)o.invalidAckIds[n]=String(e.invalidAckIds[n])}if(e.unorderedAckIds){if(!Array.isArray(e.unorderedAckIds))throw TypeError(".google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.unorderedAckIds: array expected");o.unorderedAckIds=[];for(n=0;n<e.unorderedAckIds.length;++n)o.unorderedAckIds[n]=String(e.unorderedAckIds[n])}if(e.temporaryFailedAckIds){if(!Array.isArray(e.temporaryFailedAckIds))throw TypeError(".google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.temporaryFailedAckIds: array expected");o.temporaryFailedAckIds=[];for(n=0;n<e.temporaryFailedAckIds.length;++n)o.temporaryFailedAckIds[n]=String(e.temporaryFailedAckIds[n])}return o},Ve.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.ackIds=[],n.invalidAckIds=[],n.unorderedAckIds=[],n.temporaryFailedAckIds=[]),e.ackIds&&e.ackIds.length){n.ackIds=[];for(var r=0;r<e.ackIds.length;++r)n.ackIds[r]=e.ackIds[r]}if(e.invalidAckIds&&e.invalidAckIds.length){n.invalidAckIds=[];for(r=0;r<e.invalidAckIds.length;++r)n.invalidAckIds[r]=e.invalidAckIds[r]}if(e.unorderedAckIds&&e.unorderedAckIds.length){n.unorderedAckIds=[];for(r=0;r<e.unorderedAckIds.length;++r)n.unorderedAckIds[r]=e.unorderedAckIds[r]}if(e.temporaryFailedAckIds&&e.temporaryFailedAckIds.length){n.temporaryFailedAckIds=[];for(r=0;r<e.temporaryFailedAckIds.length;++r)n.temporaryFailedAckIds[r]=e.temporaryFailedAckIds[r]}return n},Ve.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Ve.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation"},Ve),Ce.ModifyAckDeadlineConfirmation=(Me.prototype.ackIds=d.emptyArray,Me.prototype.invalidAckIds=d.emptyArray,Me.prototype.temporaryFailedAckIds=d.emptyArray,Me.create=function(e){return new Me(e)},Me.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.ackIds&&e.ackIds.length)for(var n=0;n<e.ackIds.length;++n)t.uint32(10).string(e.ackIds[n]);if(null!=e.invalidAckIds&&e.invalidAckIds.length)for(n=0;n<e.invalidAckIds.length;++n)t.uint32(18).string(e.invalidAckIds[n]);if(null!=e.temporaryFailedAckIds&&e.temporaryFailedAckIds.length)for(n=0;n<e.temporaryFailedAckIds.length;++n)t.uint32(26).string(e.temporaryFailedAckIds[n]);return t},Me.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Me.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.ackIds&&i.ackIds.length||(i.ackIds=[]),i.ackIds.push(e.string());break;case 2:i.invalidAckIds&&i.invalidAckIds.length||(i.invalidAckIds=[]),i.invalidAckIds.push(e.string());break;case 3:i.temporaryFailedAckIds&&i.temporaryFailedAckIds.length||(i.temporaryFailedAckIds=[]),i.temporaryFailedAckIds.push(e.string());break;default:e.skipType(7&a,n)}}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.ackIds&&Object.hasOwnProperty.call(e,"ackIds")){if(!Array.isArray(e.ackIds))return"ackIds: array expected";for(var o=0;o<e.ackIds.length;++o)if(!d.isString(e.ackIds[o]))return"ackIds: string[] expected"}if(null!=e.invalidAckIds&&Object.hasOwnProperty.call(e,"invalidAckIds")){if(!Array.isArray(e.invalidAckIds))return"invalidAckIds: array expected";for(o=0;o<e.invalidAckIds.length;++o)if(!d.isString(e.invalidAckIds[o]))return"invalidAckIds: string[] expected"}if(null!=e.temporaryFailedAckIds&&Object.hasOwnProperty.call(e,"temporaryFailedAckIds")){if(!Array.isArray(e.temporaryFailedAckIds))return"temporaryFailedAckIds: array expected";for(o=0;o<e.temporaryFailedAckIds.length;++o)if(!d.isString(e.temporaryFailedAckIds[o]))return"temporaryFailedAckIds: string[] expected"}return null},Me.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation;if(e.ackIds){if(!Array.isArray(e.ackIds))throw TypeError(".google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.ackIds: array expected");o.ackIds=[];for(var n=0;n<e.ackIds.length;++n)o.ackIds[n]=String(e.ackIds[n])}if(e.invalidAckIds){if(!Array.isArray(e.invalidAckIds))throw TypeError(".google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.invalidAckIds: array expected");o.invalidAckIds=[];for(n=0;n<e.invalidAckIds.length;++n)o.invalidAckIds[n]=String(e.invalidAckIds[n])}if(e.temporaryFailedAckIds){if(!Array.isArray(e.temporaryFailedAckIds))throw TypeError(".google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.temporaryFailedAckIds: array expected");o.temporaryFailedAckIds=[];for(n=0;n<e.temporaryFailedAckIds.length;++n)o.temporaryFailedAckIds[n]=String(e.temporaryFailedAckIds[n])}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 n={};if((t.arrays||t.defaults)&&(n.ackIds=[],n.invalidAckIds=[],n.temporaryFailedAckIds=[]),e.ackIds&&e.ackIds.length){n.ackIds=[];for(var r=0;r<e.ackIds.length;++r)n.ackIds[r]=e.ackIds[r]}if(e.invalidAckIds&&e.invalidAckIds.length){n.invalidAckIds=[];for(r=0;r<e.invalidAckIds.length;++r)n.invalidAckIds[r]=e.invalidAckIds[r]}if(e.temporaryFailedAckIds&&e.temporaryFailedAckIds.length){n.temporaryFailedAckIds=[];for(r=0;r<e.temporaryFailedAckIds.length;++r)n.temporaryFailedAckIds[r]=e.temporaryFailedAckIds[r]}return n},Me.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Me.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation"},Me),Ce.SubscriptionProperties=(Ue.prototype.exactlyOnceDeliveryEnabled=!1,Ue.prototype.messageOrderingEnabled=!1,Ue.create=function(e){return new Ue(e)},Ue.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.exactlyOnceDeliveryEnabled&&Object.hasOwnProperty.call(e,"exactlyOnceDeliveryEnabled")&&t.uint32(8).bool(e.exactlyOnceDeliveryEnabled),null!=e.messageOrderingEnabled&&Object.hasOwnProperty.call(e,"messageOrderingEnabled")&&t.uint32(16).bool(e.messageOrderingEnabled),t},Ue.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ue.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.exactlyOnceDeliveryEnabled=e.bool();break;case 2:i.messageOrderingEnabled=e.bool();break;default:e.skipType(7&a,n)}}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.exactlyOnceDeliveryEnabled&&Object.hasOwnProperty.call(e,"exactlyOnceDeliveryEnabled")&&"boolean"!=typeof e.exactlyOnceDeliveryEnabled?"exactlyOnceDeliveryEnabled: boolean expected":null!=e.messageOrderingEnabled&&Object.hasOwnProperty.call(e,"messageOrderingEnabled")&&"boolean"!=typeof e.messageOrderingEnabled?"messageOrderingEnabled: boolean expected":null},Ue.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.StreamingPullResponse.SubscriptionProperties: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties;return null!=e.exactlyOnceDeliveryEnabled&&(t.exactlyOnceDeliveryEnabled=Boolean(e.exactlyOnceDeliveryEnabled)),null!=e.messageOrderingEnabled&&(t.messageOrderingEnabled=Boolean(e.messageOrderingEnabled)),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.exactlyOnceDeliveryEnabled=!1,o.messageOrderingEnabled=!1),null!=e.exactlyOnceDeliveryEnabled&&Object.hasOwnProperty.call(e,"exactlyOnceDeliveryEnabled")&&(o.exactlyOnceDeliveryEnabled=e.exactlyOnceDeliveryEnabled),null!=e.messageOrderingEnabled&&Object.hasOwnProperty.call(e,"messageOrderingEnabled")&&(o.messageOrderingEnabled=e.messageOrderingEnabled),o},Ue.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Ue.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.StreamingPullResponse.SubscriptionProperties"},Ue),Ce),t.CreateSnapshotRequest=(Be.prototype.name="",Be.prototype.subscription="",Be.prototype.labels=d.emptyObject,Be.prototype.tags=d.emptyObject,Be.create=function(e){return new Be(e)},Be.encode=function(e,t,o){if(t=t||i.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.subscription&&Object.hasOwnProperty.call(e,"subscription")&&t.uint32(18).string(e.subscription),null!=e.labels&&Object.hasOwnProperty.call(e,"labels"))for(var n=Object.keys(e.labels),r=0;r<n.length;++r)t.uint32(26).fork().uint32(10).string(n[r]).uint32(18).string(e.labels[n[r]]).ldelim();if(null!=e.tags&&Object.hasOwnProperty.call(e,"tags"))for(n=Object.keys(e.tags),r=0;r<n.length;++r)t.uint32(34).fork().uint32(10).string(n[r]).uint32(18).string(e.tags[n[r]]).ldelim();return t},Be.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Be.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.CreateSnapshotRequest;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.subscription=e.string();break;case 3:i.labels===d.emptyObject&&(i.labels={});for(var s=e.uint32()+e.pos,c="",l="";e.pos<s;)switch((u=e.uint32())>>>3){case 1:c=e.string();break;case 2:l=e.string();break;default:e.skipType(7&u,n)}"__proto__"===c&&d.makeProp(i.labels,c),i.labels[c]=l;break;case 4:i.tags===d.emptyObject&&(i.tags={});var u,s=e.uint32()+e.pos;for(l=c="";e.pos<s;)switch((u=e.uint32())>>>3){case 1:c=e.string();break;case 2:l=e.string();break;default:e.skipType(7&u,n)}"__proto__"===c&&d.makeProp(i.tags,c),i.tags[c]=l;break;default:e.skipType(7&a,n)}}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.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name))return"name: string expected";if(null!=e.subscription&&Object.hasOwnProperty.call(e,"subscription")&&!d.isString(e.subscription))return"subscription: string expected";if(null!=e.labels&&Object.hasOwnProperty.call(e,"labels")){if(!d.isObject(e.labels))return"labels: object expected";for(var o=Object.keys(e.labels),n=0;n<o.length;++n)if(!d.isString(e.labels[o[n]]))return"labels: string{k:string} expected"}if(null!=e.tags&&Object.hasOwnProperty.call(e,"tags")){if(!d.isObject(e.tags))return"tags: object expected";for(o=Object.keys(e.tags),n=0;n<o.length;++n)if(!d.isString(e.tags[o[n]]))return"tags: string{k:string} expected"}return null},Be.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.CreateSnapshotRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.CreateSnapshotRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.CreateSnapshotRequest;if(null!=e.name&&(o.name=String(e.name)),null!=e.subscription&&(o.subscription=String(e.subscription)),e.labels){if(!d.isObject(e.labels))throw TypeError(".google.pubsub.v1.CreateSnapshotRequest.labels: object expected");o.labels={};for(var n=Object.keys(e.labels),r=0;r<n.length;++r)"__proto__"===n[r]&&d.makeProp(o.labels,n[r]),o.labels[n[r]]=String(e.labels[n[r]])}if(e.tags){if(!d.isObject(e.tags))throw TypeError(".google.pubsub.v1.CreateSnapshotRequest.tags: object expected");o.tags={};for(n=Object.keys(e.tags),r=0;r<n.length;++r)"__proto__"===n[r]&&d.makeProp(o.tags,n[r]),o.tags[n[r]]=String(e.tags[n[r]])}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 n,r={};if((t.objects||t.defaults)&&(r.labels={},r.tags={}),t.defaults&&(r.name="",r.subscription=""),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(r.name=e.name),null!=e.subscription&&Object.hasOwnProperty.call(e,"subscription")&&(r.subscription=e.subscription),e.labels&&(n=Object.keys(e.labels)).length){r.labels={};for(var i=0;i<n.length;++i)"__proto__"===n[i]&&d.makeProp(r.labels,n[i]),r.labels[n[i]]=e.labels[n[i]]}if(e.tags&&(n=Object.keys(e.tags)).length){r.tags={};for(i=0;i<n.length;++i)"__proto__"===n[i]&&d.makeProp(r.tags,n[i]),r.tags[n[i]]=e.tags[n[i]]}return r},Be.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Be.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.CreateSnapshotRequest"},Be),t.UpdateSnapshotRequest=(Ge.prototype.snapshot=null,Ge.prototype.updateMask=null,Ge.create=function(e){return new Ge(e)},Ge.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.snapshot&&Object.hasOwnProperty.call(e,"snapshot")&&g.google.pubsub.v1.Snapshot.encode(e.snapshot,t.uint32(10).fork(),o+1).ldelim(),null!=e.updateMask&&Object.hasOwnProperty.call(e,"updateMask")&&g.google.protobuf.FieldMask.encode(e.updateMask,t.uint32(18).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,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.UpdateSnapshotRequest;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.snapshot=g.google.pubsub.v1.Snapshot.decode(e,e.uint32(),void 0,n+1);break;case 2:i.updateMask=g.google.protobuf.FieldMask.decode(e,e.uint32(),void 0,n+1);break;default:e.skipType(7&a,n)}}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";var o;if(null!=e.snapshot&&Object.hasOwnProperty.call(e,"snapshot")&&(o=g.google.pubsub.v1.Snapshot.verify(e.snapshot,t+1)))return"snapshot."+o;if(null!=e.updateMask&&Object.hasOwnProperty.call(e,"updateMask")&&(o=g.google.protobuf.FieldMask.verify(e.updateMask,t+1)))return"updateMask."+o;return null},Ge.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.UpdateSnapshotRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.UpdateSnapshotRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.UpdateSnapshotRequest;if(null!=e.snapshot){if(!d.isObject(e.snapshot))throw TypeError(".google.pubsub.v1.UpdateSnapshotRequest.snapshot: object expected");o.snapshot=g.google.pubsub.v1.Snapshot.fromObject(e.snapshot,t+1)}if(null!=e.updateMask){if(!d.isObject(e.updateMask))throw TypeError(".google.pubsub.v1.UpdateSnapshotRequest.updateMask: object expected");o.updateMask=g.google.protobuf.FieldMask.fromObject(e.updateMask,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 n={};return t.defaults&&(n.snapshot=null,n.updateMask=null),null!=e.snapshot&&Object.hasOwnProperty.call(e,"snapshot")&&(n.snapshot=g.google.pubsub.v1.Snapshot.toObject(e.snapshot,t,o+1)),null!=e.updateMask&&Object.hasOwnProperty.call(e,"updateMask")&&(n.updateMask=g.google.protobuf.FieldMask.toObject(e.updateMask,t,o+1)),n},Ge.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Ge.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.UpdateSnapshotRequest"},Ge),t.Snapshot=(Je.prototype.name="",Je.prototype.topic="",Je.prototype.expireTime=null,Je.prototype.labels=d.emptyObject,Je.create=function(e){return new Je(e)},Je.encode=function(e,t,o){if(t=t||i.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.topic&&Object.hasOwnProperty.call(e,"topic")&&t.uint32(18).string(e.topic),null!=e.expireTime&&Object.hasOwnProperty.call(e,"expireTime")&&g.google.protobuf.Timestamp.encode(e.expireTime,t.uint32(26).fork(),o+1).ldelim(),null!=e.labels&&Object.hasOwnProperty.call(e,"labels"))for(var n=Object.keys(e.labels),r=0;r<n.length;++r)t.uint32(34).fork().uint32(10).string(n[r]).uint32(18).string(e.labels[n[r]]).ldelim();return t},Je.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Je.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.Snapshot;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.topic=e.string();break;case 3:i.expireTime=g.google.protobuf.Timestamp.decode(e,e.uint32(),void 0,n+1);break;case 4:i.labels===d.emptyObject&&(i.labels={});for(var s=e.uint32()+e.pos,c="",l="";e.pos<s;){var u=e.uint32();switch(u>>>3){case 1:c=e.string();break;case 2:l=e.string();break;default:e.skipType(7&u,n)}}"__proto__"===c&&d.makeProp(i.labels,c),i.labels[c]=l;break;default:e.skipType(7&a,n)}}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.topic&&Object.hasOwnProperty.call(e,"topic")&&!d.isString(e.topic))return"topic: string expected";if(null!=e.expireTime&&Object.hasOwnProperty.call(e,"expireTime")){t=g.google.protobuf.Timestamp.verify(e.expireTime,t+1);if(t)return"expireTime."+t}if(null!=e.labels&&Object.hasOwnProperty.call(e,"labels")){if(!d.isObject(e.labels))return"labels: object expected";for(var o=Object.keys(e.labels),n=0;n<o.length;++n)if(!d.isString(e.labels[o[n]]))return"labels: string{k:string} expected"}return null},Je.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.Snapshot)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.Snapshot: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.Snapshot;if(null!=e.name&&(o.name=String(e.name)),null!=e.topic&&(o.topic=String(e.topic)),null!=e.expireTime){if(!d.isObject(e.expireTime))throw TypeError(".google.pubsub.v1.Snapshot.expireTime: object expected");o.expireTime=g.google.protobuf.Timestamp.fromObject(e.expireTime,t+1)}if(e.labels){if(!d.isObject(e.labels))throw TypeError(".google.pubsub.v1.Snapshot.labels: object expected");o.labels={};for(var n=Object.keys(e.labels),r=0;r<n.length;++r)"__proto__"===n[r]&&d.makeProp(o.labels,n[r]),o.labels[n[r]]=String(e.labels[n[r]])}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 n,r={};if((t.objects||t.defaults)&&(r.labels={}),t.defaults&&(r.name="",r.topic="",r.expireTime=null),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(r.name=e.name),null!=e.topic&&Object.hasOwnProperty.call(e,"topic")&&(r.topic=e.topic),null!=e.expireTime&&Object.hasOwnProperty.call(e,"expireTime")&&(r.expireTime=g.google.protobuf.Timestamp.toObject(e.expireTime,t,o+1)),e.labels&&(n=Object.keys(e.labels)).length){r.labels={};for(var i=0;i<n.length;++i)"__proto__"===n[i]&&d.makeProp(r.labels,n[i]),r.labels[n[i]]=e.labels[n[i]]}return r},Je.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Je.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.Snapshot"},Je),t.GetSnapshotRequest=(qe.prototype.snapshot="",qe.create=function(e){return new qe(e)},qe.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.snapshot&&Object.hasOwnProperty.call(e,"snapshot")&&t.uint32(10).string(e.snapshot),t},qe.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},qe.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.GetSnapshotRequest;e.pos<r;){var a=e.uint32();if(a===o)break;a>>>3==1?i.snapshot=e.string():e.skipType(7&a,n)}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.snapshot&&Object.hasOwnProperty.call(e,"snapshot")&&!d.isString(e.snapshot)?"snapshot: string expected":null},qe.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.GetSnapshotRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.GetSnapshotRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.pubsub.v1.GetSnapshotRequest;return null!=e.snapshot&&(t.snapshot=String(e.snapshot)),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.snapshot=""),null!=e.snapshot&&Object.hasOwnProperty.call(e,"snapshot")&&(o.snapshot=e.snapshot),o},qe.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},qe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.GetSnapshotRequest"},qe),t.ListSnapshotsRequest=(ze.prototype.project="",ze.prototype.pageSize=0,ze.prototype.pageToken="",ze.create=function(e){return new ze(e)},ze.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.project&&Object.hasOwnProperty.call(e,"project")&&t.uint32(10).string(e.project),null!=e.pageSize&&Object.hasOwnProperty.call(e,"pageSize")&&t.uint32(16).int32(e.pageSize),null!=e.pageToken&&Object.hasOwnProperty.call(e,"pageToken")&&t.uint32(26).string(e.pageToken),t},ze.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ze.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.ListSnapshotsRequest;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.project=e.string();break;case 2:i.pageSize=e.int32();break;case 3:i.pageToken=e.string();break;default:e.skipType(7&a,n)}}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.project&&Object.hasOwnProperty.call(e,"project")&&!d.isString(e.project)?"project: string expected":null!=e.pageSize&&Object.hasOwnProperty.call(e,"pageSize")&&!d.isInteger(e.pageSize)?"pageSize: integer expected":null!=e.pageToken&&Object.hasOwnProperty.call(e,"pageToken")&&!d.isString(e.pageToken)?"pageToken: string expected":null},ze.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.ListSnapshotsRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.ListSnapshotsRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.pubsub.v1.ListSnapshotsRequest;return null!=e.project&&(t.project=String(e.project)),null!=e.pageSize&&(t.pageSize=0|e.pageSize),null!=e.pageToken&&(t.pageToken=String(e.pageToken)),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.project="",o.pageSize=0,o.pageToken=""),null!=e.project&&Object.hasOwnProperty.call(e,"project")&&(o.project=e.project),null!=e.pageSize&&Object.hasOwnProperty.call(e,"pageSize")&&(o.pageSize=e.pageSize),null!=e.pageToken&&Object.hasOwnProperty.call(e,"pageToken")&&(o.pageToken=e.pageToken),o},ze.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},ze.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.ListSnapshotsRequest"},ze),t.ListSnapshotsResponse=(He.prototype.snapshots=d.emptyArray,He.prototype.nextPageToken="",He.create=function(e){return new He(e)},He.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.snapshots&&e.snapshots.length)for(var n=0;n<e.snapshots.length;++n)g.google.pubsub.v1.Snapshot.encode(e.snapshots[n],t.uint32(10).fork(),o+1).ldelim();return null!=e.nextPageToken&&Object.hasOwnProperty.call(e,"nextPageToken")&&t.uint32(18).string(e.nextPageToken),t},He.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},He.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.ListSnapshotsResponse;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.snapshots&&i.snapshots.length||(i.snapshots=[]),i.snapshots.push(g.google.pubsub.v1.Snapshot.decode(e,e.uint32(),void 0,n+1));break;case 2:i.nextPageToken=e.string();break;default:e.skipType(7&a,n)}}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.snapshots&&Object.hasOwnProperty.call(e,"snapshots")){if(!Array.isArray(e.snapshots))return"snapshots: array expected";for(var o=0;o<e.snapshots.length;++o){var n=g.google.pubsub.v1.Snapshot.verify(e.snapshots[o],t+1);if(n)return"snapshots."+n}}return null!=e.nextPageToken&&Object.hasOwnProperty.call(e,"nextPageToken")&&!d.isString(e.nextPageToken)?"nextPageToken: string expected":null},He.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.ListSnapshotsResponse)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.ListSnapshotsResponse: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.ListSnapshotsResponse;if(e.snapshots){if(!Array.isArray(e.snapshots))throw TypeError(".google.pubsub.v1.ListSnapshotsResponse.snapshots: array expected");o.snapshots=[];for(var n=0;n<e.snapshots.length;++n){if(!d.isObject(e.snapshots[n]))throw TypeError(".google.pubsub.v1.ListSnapshotsResponse.snapshots: object expected");o.snapshots[n]=g.google.pubsub.v1.Snapshot.fromObject(e.snapshots[n],t+1)}}return null!=e.nextPageToken&&(o.nextPageToken=String(e.nextPageToken)),o},He.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.snapshots=[]),t.defaults&&(n.nextPageToken=""),e.snapshots&&e.snapshots.length){n.snapshots=[];for(var r=0;r<e.snapshots.length;++r)n.snapshots[r]=g.google.pubsub.v1.Snapshot.toObject(e.snapshots[r],t,o+1)}return null!=e.nextPageToken&&Object.hasOwnProperty.call(e,"nextPageToken")&&(n.nextPageToken=e.nextPageToken),n},He.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},He.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.ListSnapshotsResponse"},He),t.DeleteSnapshotRequest=(Ye.prototype.snapshot="",Ye.create=function(e){return new Ye(e)},Ye.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.snapshot&&Object.hasOwnProperty.call(e,"snapshot")&&t.uint32(10).string(e.snapshot),t},Ye.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ye.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.DeleteSnapshotRequest;e.pos<r;){var a=e.uint32();if(a===o)break;a>>>3==1?i.snapshot=e.string():e.skipType(7&a,n)}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.snapshot&&Object.hasOwnProperty.call(e,"snapshot")&&!d.isString(e.snapshot)?"snapshot: string expected":null},Ye.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.DeleteSnapshotRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.DeleteSnapshotRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.pubsub.v1.DeleteSnapshotRequest;return null!=e.snapshot&&(t.snapshot=String(e.snapshot)),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.snapshot=""),null!=e.snapshot&&Object.hasOwnProperty.call(e,"snapshot")&&(o.snapshot=e.snapshot),o},Ye.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Ye.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.DeleteSnapshotRequest"},Ye),t.SeekRequest=(Ke.prototype.subscription="",Ke.prototype.time=null,Ke.prototype.snapshot=null,Object.defineProperty(Ke.prototype,"target",{get:d.oneOfGetter(e=["time","snapshot"]),set:d.oneOfSetter(e)}),Ke.create=function(e){return new Ke(e)},Ke.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.subscription&&Object.hasOwnProperty.call(e,"subscription")&&t.uint32(10).string(e.subscription),null!=e.time&&Object.hasOwnProperty.call(e,"time")&&g.google.protobuf.Timestamp.encode(e.time,t.uint32(18).fork(),o+1).ldelim(),null!=e.snapshot&&Object.hasOwnProperty.call(e,"snapshot")&&t.uint32(26).string(e.snapshot),t},Ke.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ke.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.SeekRequest;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.subscription=e.string();break;case 2:i.time=g.google.protobuf.Timestamp.decode(e,e.uint32(),void 0,n+1);break;case 3:i.snapshot=e.string();break;default:e.skipType(7&a,n)}}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";var o={};if(null!=e.subscription&&Object.hasOwnProperty.call(e,"subscription")&&!d.isString(e.subscription))return"subscription: string expected";if(null!=e.time&&Object.hasOwnProperty.call(e,"time")){t=g.google.protobuf.Timestamp.verify(e.time,t+(o.target=1));if(t)return"time."+t}if(null!=e.snapshot&&Object.hasOwnProperty.call(e,"snapshot")){if(1===o.target)return"target: multiple values";if(o.target=1,!d.isString(e.snapshot))return"snapshot: string expected"}return null},Ke.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.SeekRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.SeekRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.SeekRequest;if(null!=e.subscription&&(o.subscription=String(e.subscription)),null!=e.time){if(!d.isObject(e.time))throw TypeError(".google.pubsub.v1.SeekRequest.time: object expected");o.time=g.google.protobuf.Timestamp.fromObject(e.time,t+1)}return null!=e.snapshot&&(o.snapshot=String(e.snapshot)),o},Ke.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};return t.defaults&&(n.subscription=""),null!=e.subscription&&Object.hasOwnProperty.call(e,"subscription")&&(n.subscription=e.subscription),null!=e.time&&Object.hasOwnProperty.call(e,"time")&&(n.time=g.google.protobuf.Timestamp.toObject(e.time,t,o+1),t.oneofs)&&(n.target="time"),null!=e.snapshot&&Object.hasOwnProperty.call(e,"snapshot")&&(n.snapshot=e.snapshot,t.oneofs)&&(n.target="snapshot"),n},Ke.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Ke.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.SeekRequest"},Ke),t.SeekResponse=(We.create=function(e){return new We(e)},We.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return t},We.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},We.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,t=new g.google.pubsub.v1.SeekResponse;e.pos<r;){var i=e.uint32();if(i===o)break;e.skipType(7&i,n)}return t},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},We.fromObject=function(e,t){return e instanceof g.google.pubsub.v1.SeekResponse?e:new g.google.pubsub.v1.SeekResponse},We.toObject=function(){return{}},We.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},We.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.SeekResponse"},We),t.SchemaService=(((Xe.prototype=Object.create(n.rpc.Service.prototype)).constructor=Xe).create=function(e,t,o){return new this(e,t,o)},Object.defineProperty(Xe.prototype.createSchema=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.CreateSchemaRequest,g.google.pubsub.v1.Schema,t,o)},"name",{value:"CreateSchema"}),Object.defineProperty(Xe.prototype.getSchema=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.GetSchemaRequest,g.google.pubsub.v1.Schema,t,o)},"name",{value:"GetSchema"}),Object.defineProperty(Xe.prototype.listSchemas=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.ListSchemasRequest,g.google.pubsub.v1.ListSchemasResponse,t,o)},"name",{value:"ListSchemas"}),Object.defineProperty(Xe.prototype.listSchemaRevisions=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.ListSchemaRevisionsRequest,g.google.pubsub.v1.ListSchemaRevisionsResponse,t,o)},"name",{value:"ListSchemaRevisions"}),Object.defineProperty(Xe.prototype.commitSchema=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.CommitSchemaRequest,g.google.pubsub.v1.Schema,t,o)},"name",{value:"CommitSchema"}),Object.defineProperty(Xe.prototype.rollbackSchema=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.RollbackSchemaRequest,g.google.pubsub.v1.Schema,t,o)},"name",{value:"RollbackSchema"}),Object.defineProperty(Xe.prototype.deleteSchemaRevision=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.DeleteSchemaRevisionRequest,g.google.pubsub.v1.Schema,t,o)},"name",{value:"DeleteSchemaRevision"}),Object.defineProperty(Xe.prototype.deleteSchema=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.DeleteSchemaRequest,g.google.protobuf.Empty,t,o)},"name",{value:"DeleteSchema"}),Object.defineProperty(Xe.prototype.validateSchema=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.ValidateSchemaRequest,g.google.pubsub.v1.ValidateSchemaResponse,t,o)},"name",{value:"ValidateSchema"}),Object.defineProperty(Xe.prototype.validateMessage=function e(t,o){return n.rpc.Service.prototype.rpcCall.call(this,e,g.google.pubsub.v1.ValidateMessageRequest,g.google.pubsub.v1.ValidateMessageResponse,t,o)},"name",{value:"ValidateMessage"}),Xe),t.Schema=(Qe.prototype.name="",Qe.prototype.type=0,Qe.prototype.definition="",Qe.prototype.revisionId="",Qe.prototype.revisionCreateTime=null,Qe.create=function(e){return new Qe(e)},Qe.encode=function(e,t,o){if(t=t||i.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.definition&&Object.hasOwnProperty.call(e,"definition")&&t.uint32(26).string(e.definition),null!=e.revisionId&&Object.hasOwnProperty.call(e,"revisionId")&&t.uint32(34).string(e.revisionId),null!=e.revisionCreateTime&&Object.hasOwnProperty.call(e,"revisionCreateTime")&&g.google.protobuf.Timestamp.encode(e.revisionCreateTime,t.uint32(50).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,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.Schema;e.pos<r;){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.definition=e.string();break;case 4:i.revisionId=e.string();break;case 6:i.revisionCreateTime=g.google.protobuf.Timestamp.decode(e,e.uint32(),void 0,n+1);break;default:e.skipType(7&a,n)}}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.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:}if(null!=e.definition&&Object.hasOwnProperty.call(e,"definition")&&!d.isString(e.definition))return"definition: string expected";if(null!=e.revisionId&&Object.hasOwnProperty.call(e,"revisionId")&&!d.isString(e.revisionId))return"revisionId: string expected";if(null!=e.revisionCreateTime&&Object.hasOwnProperty.call(e,"revisionCreateTime")){e=g.google.protobuf.Timestamp.verify(e.revisionCreateTime,t+1);if(e)return"revisionCreateTime."+e}return null},Qe.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.Schema)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.Schema: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.Schema;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"PROTOCOL_BUFFER":case 1:o.type=1;break;case"AVRO":case 2:o.type=2}if(null!=e.definition&&(o.definition=String(e.definition)),null!=e.revisionId&&(o.revisionId=String(e.revisionId)),null!=e.revisionCreateTime){if(!d.isObject(e.revisionCreateTime))throw TypeError(".google.pubsub.v1.Schema.revisionCreateTime: object expected");o.revisionCreateTime=g.google.protobuf.Timestamp.fromObject(e.revisionCreateTime,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 n={};return t.defaults&&(n.name="",n.type=t.enums===String?"TYPE_UNSPECIFIED":0,n.definition="",n.revisionId="",n.revisionCreateTime=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.pubsub.v1.Schema.Type[e.type]?e.type:g.google.pubsub.v1.Schema.Type[e.type]),null!=e.definition&&Object.hasOwnProperty.call(e,"definition")&&(n.definition=e.definition),null!=e.revisionId&&Object.hasOwnProperty.call(e,"revisionId")&&(n.revisionId=e.revisionId),null!=e.revisionCreateTime&&Object.hasOwnProperty.call(e,"revisionCreateTime")&&(n.revisionCreateTime=g.google.protobuf.Timestamp.toObject(e.revisionCreateTime,t,o+1)),n},Qe.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Qe.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.Schema"},Qe.Type=(o={},(e=Object.create(o))[o[0]="TYPE_UNSPECIFIED"]=0,e[o[1]="PROTOCOL_BUFFER"]=1,e[o[2]="AVRO"]=2,e),Qe),t.SchemaView=(o={},(e=Object.create(o))[o[0]="SCHEMA_VIEW_UNSPECIFIED"]=0,e[o[1]="BASIC"]=1,e[o[2]="FULL"]=2,e),t.CreateSchemaRequest=(Ze.prototype.parent="",Ze.prototype.schema=null,Ze.prototype.schemaId="",Ze.create=function(e){return new Ze(e)},Ze.encode=function(e,t,o){if(t=t||i.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.schema&&Object.hasOwnProperty.call(e,"schema")&&g.google.pubsub.v1.Schema.encode(e.schema,t.uint32(18).fork(),o+1).ldelim(),null!=e.schemaId&&Object.hasOwnProperty.call(e,"schemaId")&&t.uint32(26).string(e.schemaId),t},Ze.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ze.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.CreateSchemaRequest;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.parent=e.string();break;case 2:i.schema=g.google.pubsub.v1.Schema.decode(e,e.uint32(),void 0,n+1);break;case 3:i.schemaId=e.string();break;default:e.skipType(7&a,n)}}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.parent&&Object.hasOwnProperty.call(e,"parent")&&!d.isString(e.parent))return"parent: string expected";if(null!=e.schema&&Object.hasOwnProperty.call(e,"schema")){t=g.google.pubsub.v1.Schema.verify(e.schema,t+1);if(t)return"schema."+t}return null!=e.schemaId&&Object.hasOwnProperty.call(e,"schemaId")&&!d.isString(e.schemaId)?"schemaId: string expected":null},Ze.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.CreateSchemaRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.CreateSchemaRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.CreateSchemaRequest;if(null!=e.parent&&(o.parent=String(e.parent)),null!=e.schema){if(!d.isObject(e.schema))throw TypeError(".google.pubsub.v1.CreateSchemaRequest.schema: object expected");o.schema=g.google.pubsub.v1.Schema.fromObject(e.schema,t+1)}return null!=e.schemaId&&(o.schemaId=String(e.schemaId)),o},Ze.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};return t.defaults&&(n.parent="",n.schema=null,n.schemaId=""),null!=e.parent&&Object.hasOwnProperty.call(e,"parent")&&(n.parent=e.parent),null!=e.schema&&Object.hasOwnProperty.call(e,"schema")&&(n.schema=g.google.pubsub.v1.Schema.toObject(e.schema,t,o+1)),null!=e.schemaId&&Object.hasOwnProperty.call(e,"schemaId")&&(n.schemaId=e.schemaId),n},Ze.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Ze.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.CreateSchemaRequest"},Ze),t.GetSchemaRequest=($e.prototype.name="",$e.prototype.view=0,$e.create=function(e){return new $e(e)},$e.encode=function(e,t,o){if(t=t||i.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(16).int32(e.view),t},$e.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},$e.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.GetSchemaRequest;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.view=e.int32();break;default:e.skipType(7&a,n)}}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.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},$e.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.GetSchemaRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.GetSchemaRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.GetSchemaRequest;switch(null!=e.name&&(o.name=String(e.name)),e.view){default:"number"==typeof e.view&&(o.view=e.view);break;case"SCHEMA_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},$e.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?"SCHEMA_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.pubsub.v1.SchemaView[e.view]?e.view:g.google.pubsub.v1.SchemaView[e.view]),o},$e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},$e.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.GetSchemaRequest"},$e),t.ListSchemasRequest=(et.prototype.parent="",et.prototype.view=0,et.prototype.pageSize=0,et.prototype.pageToken="",et.create=function(e){return new et(e)},et.encode=function(e,t,o){if(t=t||i.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.view&&Object.hasOwnProperty.call(e,"view")&&t.uint32(16).int32(e.view),null!=e.pageSize&&Object.hasOwnProperty.call(e,"pageSize")&&t.uint32(24).int32(e.pageSize),null!=e.pageToken&&Object.hasOwnProperty.call(e,"pageToken")&&t.uint32(34).string(e.pageToken),t},et.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},et.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.ListSchemasRequest;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.parent=e.string();break;case 2:i.view=e.int32();break;case 3:i.pageSize=e.int32();break;case 4:i.pageToken=e.string();break;default:e.skipType(7&a,n)}}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.parent&&Object.hasOwnProperty.call(e,"parent")&&!d.isString(e.parent))return"parent: 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!=e.pageSize&&Object.hasOwnProperty.call(e,"pageSize")&&!d.isInteger(e.pageSize)?"pageSize: integer expected":null!=e.pageToken&&Object.hasOwnProperty.call(e,"pageToken")&&!d.isString(e.pageToken)?"pageToken: string expected":null},et.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.ListSchemasRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.ListSchemasRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.ListSchemasRequest;switch(null!=e.parent&&(o.parent=String(e.parent)),e.view){default:"number"==typeof e.view&&(o.view=e.view);break;case"SCHEMA_VIEW_UNSPECIFIED":case 0:o.view=0;break;case"BASIC":case 1:o.view=1;break;case"FULL":case 2:o.view=2}return null!=e.pageSize&&(o.pageSize=0|e.pageSize),null!=e.pageToken&&(o.pageToken=String(e.pageToken)),o},et.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.parent="",o.view=t.enums===String?"SCHEMA_VIEW_UNSPECIFIED":0,o.pageSize=0,o.pageToken=""),null!=e.parent&&Object.hasOwnProperty.call(e,"parent")&&(o.parent=e.parent),null!=e.view&&Object.hasOwnProperty.call(e,"view")&&(o.view=t.enums!==String||void 0===g.google.pubsub.v1.SchemaView[e.view]?e.view:g.google.pubsub.v1.SchemaView[e.view]),null!=e.pageSize&&Object.hasOwnProperty.call(e,"pageSize")&&(o.pageSize=e.pageSize),null!=e.pageToken&&Object.hasOwnProperty.call(e,"pageToken")&&(o.pageToken=e.pageToken),o},et.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},et.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.ListSchemasRequest"},et),t.ListSchemasResponse=(tt.prototype.schemas=d.emptyArray,tt.prototype.nextPageToken="",tt.create=function(e){return new tt(e)},tt.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.schemas&&e.schemas.length)for(var n=0;n<e.schemas.length;++n)g.google.pubsub.v1.Schema.encode(e.schemas[n],t.uint32(10).fork(),o+1).ldelim();return null!=e.nextPageToken&&Object.hasOwnProperty.call(e,"nextPageToken")&&t.uint32(18).string(e.nextPageToken),t},tt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},tt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.ListSchemasResponse;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.schemas&&i.schemas.length||(i.schemas=[]),i.schemas.push(g.google.pubsub.v1.Schema.decode(e,e.uint32(),void 0,n+1));break;case 2:i.nextPageToken=e.string();break;default:e.skipType(7&a,n)}}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.schemas&&Object.hasOwnProperty.call(e,"schemas")){if(!Array.isArray(e.schemas))return"schemas: array expected";for(var o=0;o<e.schemas.length;++o){var n=g.google.pubsub.v1.Schema.verify(e.schemas[o],t+1);if(n)return"schemas."+n}}return null!=e.nextPageToken&&Object.hasOwnProperty.call(e,"nextPageToken")&&!d.isString(e.nextPageToken)?"nextPageToken: string expected":null},tt.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.ListSchemasResponse)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.ListSchemasResponse: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.ListSchemasResponse;if(e.schemas){if(!Array.isArray(e.schemas))throw TypeError(".google.pubsub.v1.ListSchemasResponse.schemas: array expected");o.schemas=[];for(var n=0;n<e.schemas.length;++n){if(!d.isObject(e.schemas[n]))throw TypeError(".google.pubsub.v1.ListSchemasResponse.schemas: object expected");o.schemas[n]=g.google.pubsub.v1.Schema.fromObject(e.schemas[n],t+1)}}return null!=e.nextPageToken&&(o.nextPageToken=String(e.nextPageToken)),o},tt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.schemas=[]),t.defaults&&(n.nextPageToken=""),e.schemas&&e.schemas.length){n.schemas=[];for(var r=0;r<e.schemas.length;++r)n.schemas[r]=g.google.pubsub.v1.Schema.toObject(e.schemas[r],t,o+1)}return null!=e.nextPageToken&&Object.hasOwnProperty.call(e,"nextPageToken")&&(n.nextPageToken=e.nextPageToken),n},tt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},tt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.ListSchemasResponse"},tt),t.ListSchemaRevisionsRequest=(ot.prototype.name="",ot.prototype.view=0,ot.prototype.pageSize=0,ot.prototype.pageToken="",ot.create=function(e){return new ot(e)},ot.encode=function(e,t,o){if(t=t||i.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(16).int32(e.view),null!=e.pageSize&&Object.hasOwnProperty.call(e,"pageSize")&&t.uint32(24).int32(e.pageSize),null!=e.pageToken&&Object.hasOwnProperty.call(e,"pageToken")&&t.uint32(34).string(e.pageToken),t},ot.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ot.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.ListSchemaRevisionsRequest;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.view=e.int32();break;case 3:i.pageSize=e.int32();break;case 4:i.pageToken=e.string();break;default:e.skipType(7&a,n)}}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.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!=e.pageSize&&Object.hasOwnProperty.call(e,"pageSize")&&!d.isInteger(e.pageSize)?"pageSize: integer expected":null!=e.pageToken&&Object.hasOwnProperty.call(e,"pageToken")&&!d.isString(e.pageToken)?"pageToken: string expected":null},ot.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.ListSchemaRevisionsRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.ListSchemaRevisionsRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.ListSchemaRevisionsRequest;switch(null!=e.name&&(o.name=String(e.name)),e.view){default:"number"==typeof e.view&&(o.view=e.view);break;case"SCHEMA_VIEW_UNSPECIFIED":case 0:o.view=0;break;case"BASIC":case 1:o.view=1;break;case"FULL":case 2:o.view=2}return null!=e.pageSize&&(o.pageSize=0|e.pageSize),null!=e.pageToken&&(o.pageToken=String(e.pageToken)),o},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.name="",o.view=t.enums===String?"SCHEMA_VIEW_UNSPECIFIED":0,o.pageSize=0,o.pageToken=""),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.pubsub.v1.SchemaView[e.view]?e.view:g.google.pubsub.v1.SchemaView[e.view]),null!=e.pageSize&&Object.hasOwnProperty.call(e,"pageSize")&&(o.pageSize=e.pageSize),null!=e.pageToken&&Object.hasOwnProperty.call(e,"pageToken")&&(o.pageToken=e.pageToken),o},ot.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},ot.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.ListSchemaRevisionsRequest"},ot),t.ListSchemaRevisionsResponse=(nt.prototype.schemas=d.emptyArray,nt.prototype.nextPageToken="",nt.create=function(e){return new nt(e)},nt.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.schemas&&e.schemas.length)for(var n=0;n<e.schemas.length;++n)g.google.pubsub.v1.Schema.encode(e.schemas[n],t.uint32(10).fork(),o+1).ldelim();return null!=e.nextPageToken&&Object.hasOwnProperty.call(e,"nextPageToken")&&t.uint32(18).string(e.nextPageToken),t},nt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},nt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.ListSchemaRevisionsResponse;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.schemas&&i.schemas.length||(i.schemas=[]),i.schemas.push(g.google.pubsub.v1.Schema.decode(e,e.uint32(),void 0,n+1));break;case 2:i.nextPageToken=e.string();break;default:e.skipType(7&a,n)}}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.schemas&&Object.hasOwnProperty.call(e,"schemas")){if(!Array.isArray(e.schemas))return"schemas: array expected";for(var o=0;o<e.schemas.length;++o){var n=g.google.pubsub.v1.Schema.verify(e.schemas[o],t+1);if(n)return"schemas."+n}}return null!=e.nextPageToken&&Object.hasOwnProperty.call(e,"nextPageToken")&&!d.isString(e.nextPageToken)?"nextPageToken: string expected":null},nt.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.ListSchemaRevisionsResponse)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.ListSchemaRevisionsResponse: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.ListSchemaRevisionsResponse;if(e.schemas){if(!Array.isArray(e.schemas))throw TypeError(".google.pubsub.v1.ListSchemaRevisionsResponse.schemas: array expected");o.schemas=[];for(var n=0;n<e.schemas.length;++n){if(!d.isObject(e.schemas[n]))throw TypeError(".google.pubsub.v1.ListSchemaRevisionsResponse.schemas: object expected");o.schemas[n]=g.google.pubsub.v1.Schema.fromObject(e.schemas[n],t+1)}}return null!=e.nextPageToken&&(o.nextPageToken=String(e.nextPageToken)),o},nt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.schemas=[]),t.defaults&&(n.nextPageToken=""),e.schemas&&e.schemas.length){n.schemas=[];for(var r=0;r<e.schemas.length;++r)n.schemas[r]=g.google.pubsub.v1.Schema.toObject(e.schemas[r],t,o+1)}return null!=e.nextPageToken&&Object.hasOwnProperty.call(e,"nextPageToken")&&(n.nextPageToken=e.nextPageToken),n},nt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},nt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.ListSchemaRevisionsResponse"},nt),t.CommitSchemaRequest=(rt.prototype.name="",rt.prototype.schema=null,rt.create=function(e){return new rt(e)},rt.encode=function(e,t,o){if(t=t||i.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.schema&&Object.hasOwnProperty.call(e,"schema")&&g.google.pubsub.v1.Schema.encode(e.schema,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,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.CommitSchemaRequest;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.schema=g.google.pubsub.v1.Schema.decode(e,e.uint32(),void 0,n+1);break;default:e.skipType(7&a,n)}}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.name&&Object.hasOwnProperty.call(e,"name")&&!d.isString(e.name))return"name: string expected";if(null!=e.schema&&Object.hasOwnProperty.call(e,"schema")){e=g.google.pubsub.v1.Schema.verify(e.schema,t+1);if(e)return"schema."+e}return null},rt.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.CommitSchemaRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.CommitSchemaRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.CommitSchemaRequest;if(null!=e.name&&(o.name=String(e.name)),null!=e.schema){if(!d.isObject(e.schema))throw TypeError(".google.pubsub.v1.CommitSchemaRequest.schema: object expected");o.schema=g.google.pubsub.v1.Schema.fromObject(e.schema,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 n={};return t.defaults&&(n.name="",n.schema=null),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(n.name=e.name),null!=e.schema&&Object.hasOwnProperty.call(e,"schema")&&(n.schema=g.google.pubsub.v1.Schema.toObject(e.schema,t,o+1)),n},rt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},rt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.CommitSchemaRequest"},rt),t.RollbackSchemaRequest=(it.prototype.name="",it.prototype.revisionId="",it.create=function(e){return new it(e)},it.encode=function(e,t,o){if(t=t||i.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.revisionId&&Object.hasOwnProperty.call(e,"revisionId")&&t.uint32(18).string(e.revisionId),t},it.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},it.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.RollbackSchemaRequest;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.revisionId=e.string();break;default:e.skipType(7&a,n)}}return i},it.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},it.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.revisionId&&Object.hasOwnProperty.call(e,"revisionId")&&!d.isString(e.revisionId)?"revisionId: string expected":null},it.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.RollbackSchemaRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.RollbackSchemaRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.pubsub.v1.RollbackSchemaRequest;return null!=e.name&&(t.name=String(e.name)),null!=e.revisionId&&(t.revisionId=String(e.revisionId)),t},it.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.revisionId=""),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(o.name=e.name),null!=e.revisionId&&Object.hasOwnProperty.call(e,"revisionId")&&(o.revisionId=e.revisionId),o},it.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},it.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.RollbackSchemaRequest"},it),t.DeleteSchemaRevisionRequest=(at.prototype.name="",at.prototype.revisionId="",at.create=function(e){return new at(e)},at.encode=function(e,t,o){if(t=t||i.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.revisionId&&Object.hasOwnProperty.call(e,"revisionId")&&t.uint32(18).string(e.revisionId),t},at.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},at.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.DeleteSchemaRevisionRequest;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.name=e.string();break;case 2:i.revisionId=e.string();break;default:e.skipType(7&a,n)}}return i},at.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},at.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.revisionId&&Object.hasOwnProperty.call(e,"revisionId")&&!d.isString(e.revisionId)?"revisionId: string expected":null},at.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.DeleteSchemaRevisionRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.DeleteSchemaRevisionRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.pubsub.v1.DeleteSchemaRevisionRequest;return null!=e.name&&(t.name=String(e.name)),null!=e.revisionId&&(t.revisionId=String(e.revisionId)),t},at.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.revisionId=""),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(o.name=e.name),null!=e.revisionId&&Object.hasOwnProperty.call(e,"revisionId")&&(o.revisionId=e.revisionId),o},at.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},at.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.DeleteSchemaRevisionRequest"},at),t.DeleteSchemaRequest=(st.prototype.name="",st.create=function(e){return new st(e)},st.encode=function(e,t,o){if(t=t||i.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},st.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},st.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.DeleteSchemaRequest;e.pos<r;){var a=e.uint32();if(a===o)break;a>>>3==1?i.name=e.string():e.skipType(7&a,n)}return i},st.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},st.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},st.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.DeleteSchemaRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.DeleteSchemaRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");t=new g.google.pubsub.v1.DeleteSchemaRequest;return null!=e.name&&(t.name=String(e.name)),t},st.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},st.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},st.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.DeleteSchemaRequest"},st),t.ValidateSchemaRequest=(ct.prototype.parent="",ct.prototype.schema=null,ct.create=function(e){return new ct(e)},ct.encode=function(e,t,o){if(t=t||i.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.schema&&Object.hasOwnProperty.call(e,"schema")&&g.google.pubsub.v1.Schema.encode(e.schema,t.uint32(18).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,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.ValidateSchemaRequest;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.parent=e.string();break;case 2:i.schema=g.google.pubsub.v1.Schema.decode(e,e.uint32(),void 0,n+1);break;default:e.skipType(7&a,n)}}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.parent&&Object.hasOwnProperty.call(e,"parent")&&!d.isString(e.parent))return"parent: string expected";if(null!=e.schema&&Object.hasOwnProperty.call(e,"schema")){e=g.google.pubsub.v1.Schema.verify(e.schema,t+1);if(e)return"schema."+e}return null},ct.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.ValidateSchemaRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.ValidateSchemaRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.ValidateSchemaRequest;if(null!=e.parent&&(o.parent=String(e.parent)),null!=e.schema){if(!d.isObject(e.schema))throw TypeError(".google.pubsub.v1.ValidateSchemaRequest.schema: object expected");o.schema=g.google.pubsub.v1.Schema.fromObject(e.schema,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 n={};return t.defaults&&(n.parent="",n.schema=null),null!=e.parent&&Object.hasOwnProperty.call(e,"parent")&&(n.parent=e.parent),null!=e.schema&&Object.hasOwnProperty.call(e,"schema")&&(n.schema=g.google.pubsub.v1.Schema.toObject(e.schema,t,o+1)),n},ct.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},ct.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.ValidateSchemaRequest"},ct),t.ValidateSchemaResponse=(lt.create=function(e){return new lt(e)},lt.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return t},lt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},lt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,t=new g.google.pubsub.v1.ValidateSchemaResponse;e.pos<r;){var i=e.uint32();if(i===o)break;e.skipType(7&i,n)}return t},lt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},lt.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},lt.fromObject=function(e,t){return e instanceof g.google.pubsub.v1.ValidateSchemaResponse?e:new g.google.pubsub.v1.ValidateSchemaResponse},lt.toObject=function(){return{}},lt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},lt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.ValidateSchemaResponse"},lt),t.ValidateMessageRequest=(ut.prototype.parent="",ut.prototype.name=null,ut.prototype.schema=null,ut.prototype.message=d.newBuffer([]),ut.prototype.encoding=0,Object.defineProperty(ut.prototype,"schemaSpec",{get:d.oneOfGetter(o=["name","schema"]),set:d.oneOfSetter(o)}),ut.create=function(e){return new ut(e)},ut.encode=function(e,t,o){if(t=t||i.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.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),null!=e.schema&&Object.hasOwnProperty.call(e,"schema")&&g.google.pubsub.v1.Schema.encode(e.schema,t.uint32(26).fork(),o+1).ldelim(),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&t.uint32(34).bytes(e.message),null!=e.encoding&&Object.hasOwnProperty.call(e,"encoding")&&t.uint32(40).int32(e.encoding),t},ut.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ut.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.pubsub.v1.ValidateMessageRequest;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.parent=e.string();break;case 2:i.name=e.string();break;case 3:i.schema=g.google.pubsub.v1.Schema.decode(e,e.uint32(),void 0,n+1);break;case 4:i.message=e.bytes();break;case 5:i.encoding=e.int32();break;default:e.skipType(7&a,n)}}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.parent&&Object.hasOwnProperty.call(e,"parent")&&!d.isString(e.parent))return"parent: string expected";if(null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(o.schemaSpec=1,!d.isString(e.name)))return"name: string expected";if(null!=e.schema&&Object.hasOwnProperty.call(e,"schema")){if(1===o.schemaSpec)return"schemaSpec: multiple values";t=g.google.pubsub.v1.Schema.verify(e.schema,t+(o.schemaSpec=1));if(t)return"schema."+t}if(null!=e.message&&Object.hasOwnProperty.call(e,"message")&&!(e.message&&"number"==typeof e.message.length||d.isString(e.message)))return"message: buffer expected";if(null!=e.encoding&&Object.hasOwnProperty.call(e,"encoding"))switch(e.encoding){default:return"encoding: enum value expected";case 0:case 1:case 2:}return null},ut.fromObject=function(e,t){if(e instanceof g.google.pubsub.v1.ValidateMessageRequest)return e;if(!d.isObject(e))throw TypeError(".google.pubsub.v1.ValidateMessageRequest: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.pubsub.v1.ValidateMessageRequest;if(null!=e.parent&&(o.parent=String(e.parent)),null!=e.name&&(o.name=String(e.name)),null!=e.schema){if(!d.isObject(e.schema))throw TypeError(".google.pubsub.v1.ValidateMessageRequest.schema: object expected");o.schema=g.google.pubsub.v1.Schema.fromObject(e.schema,t+1)}switch(null!=e.message&&("string"==typeof e.message?d.base64.decode(e.message,o.message=d.newBuffer(d.base64.length(e.message)),0):0<=e.message.length&&(o.message=e.message)),e.encoding){default:"number"==typeof e.encoding&&(o.encoding=e.encoding);break;case"ENCODING_UNSPECIFIED":case 0:o.encoding=0;break;case"JSON":case 1:o.encoding=1;break;case"BINARY":case 2:o.encoding=2}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 n={};return t.defaults&&(n.parent="",t.bytes===String?n.message="":(n.message=[],t.bytes!==Array&&(n.message=d.newBuffer(n.message))),n.encoding=t.enums===String?"ENCODING_UNSPECIFIED":0),null!=e.parent&&Object.hasOwnProperty.call(e,"parent")&&(n.parent=e.parent),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(n.name=e.name,t.oneofs)&&(n.schemaSpec="name"),null!=e.schema&&Object.hasOwnProperty.call(e,"schema")&&(n.schema=g.google.pubsub.v1.Schema.toObject(e.schema,t,o+1),t.oneofs)&&(n.schemaSpec="schema"),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&(n.message=t.bytes===String?d.base64.encode(e.message,0,e.message.length):t.bytes===Array?Array.prototype.slice.call(e.message):e.message),null!=e.encoding&&Object.hasOwnProperty.call(e,"encoding")&&(n.encoding=t.enums!==String||void 0===g.google.pubsub.v1.Encoding[e.encoding]?e.encoding:g.google.pubsub.v1.Encoding[e.encoding]),n},ut.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},ut.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.ValidateMessageRequest"},ut),t.ValidateMessageResponse=(pt.create=function(e){return new pt(e)},pt.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return t},pt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},pt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,t=new g.google.pubsub.v1.ValidateMessageResponse;e.pos<r;){var i=e.uint32();if(i===o)break;e.skipType(7&i,n)}return t},pt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},pt.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},pt.fromObject=function(e,t){return e instanceof g.google.pubsub.v1.ValidateMessageResponse?e:new g.google.pubsub.v1.ValidateMessageResponse},pt.toObject=function(){return{}},pt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},pt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.pubsub.v1.ValidateMessageResponse"},pt),t.Encoding=(e={},(o=Object.create(e))[e[0]="ENCODING_UNSPECIFIED"]=0,o[e[1]="JSON"]=1,o[e[2]="BINARY"]=2,o),t),r),F.api=((e={}).Http=(dt.prototype.rules=d.emptyArray,dt.prototype.fullyDecodeReservedExpansion=!1,dt.create=function(e){return new dt(e)},dt.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.rules&&e.rules.length)for(var n=0;n<e.rules.length;++n)g.google.api.HttpRule.encode(e.rules[n],t.uint32(10).fork(),o+1).ldelim();return null!=e.fullyDecodeReservedExpansion&&Object.hasOwnProperty.call(e,"fullyDecodeReservedExpansion")&&t.uint32(16).bool(e.fullyDecodeReservedExpansion),t},dt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},dt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.api.Http;e.pos<r;){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,n+1));break;case 2:i.fullyDecodeReservedExpansion=e.bool();break;default:e.skipType(7&a,n)}}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";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 n=g.google.api.HttpRule.verify(e.rules[o],t+1);if(n)return"rules."+n}}return null!=e.fullyDecodeReservedExpansion&&Object.hasOwnProperty.call(e,"fullyDecodeReservedExpansion")&&"boolean"!=typeof e.fullyDecodeReservedExpansion?"fullyDecodeReservedExpansion: boolean expected":null},dt.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 n=0;n<e.rules.length;++n){if(!d.isObject(e.rules[n]))throw TypeError(".google.api.Http.rules: object expected");o.rules[n]=g.google.api.HttpRule.fromObject(e.rules[n],t+1)}}return null!=e.fullyDecodeReservedExpansion&&(o.fullyDecodeReservedExpansion=Boolean(e.fullyDecodeReservedExpansion)),o},dt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.rules=[]),t.defaults&&(n.fullyDecodeReservedExpansion=!1),e.rules&&e.rules.length){n.rules=[];for(var r=0;r<e.rules.length;++r)n.rules[r]=g.google.api.HttpRule.toObject(e.rules[r],t,o+1)}return null!=e.fullyDecodeReservedExpansion&&Object.hasOwnProperty.call(e,"fullyDecodeReservedExpansion")&&(n.fullyDecodeReservedExpansion=e.fullyDecodeReservedExpansion),n},dt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},dt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.Http"},dt),e.HttpRule=(x.prototype.selector="",x.prototype.get=null,x.prototype.put=null,x.prototype.post=null,x.prototype.delete=null,x.prototype.patch=null,x.prototype.custom=null,x.prototype.body="",x.prototype.responseBody="",x.prototype.additionalBindings=d.emptyArray,Object.defineProperty(x.prototype,"pattern",{get:d.oneOfGetter(o=["get","put","post","delete","patch","custom"]),set:d.oneOfSetter(o)}),x.create=function(e){return new x(e)},x.encode=function(e,t,o){if(t=t||i.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 n=0;n<e.additionalBindings.length;++n)g.google.api.HttpRule.encode(e.additionalBindings[n],t.uint32(90).fork(),o+1).ldelim();return null!=e.responseBody&&Object.hasOwnProperty.call(e,"responseBody")&&t.uint32(98).string(e.responseBody),t},x.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},x.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.api.HttpRule;e.pos<r;){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,n+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,n+1));break;default:e.skipType(7&a,n)}}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";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(n=g.google.api.CustomHttpPattern.verify(e.custom,t+(o.pattern=1)))return"custom."+n}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 n,r=0;r<e.additionalBindings.length;++r)if(n=g.google.api.HttpRule.verify(e.additionalBindings[r],t+1))return"additionalBindings."+n}return null},x.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 n=0;n<e.additionalBindings.length;++n){if(!d.isObject(e.additionalBindings[n]))throw TypeError(".google.api.HttpRule.additionalBindings: object expected");o.additionalBindings[n]=g.google.api.HttpRule.fromObject(e.additionalBindings[n],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 n={};if((t.arrays||t.defaults)&&(n.additionalBindings=[]),t.defaults&&(n.selector="",n.body="",n.responseBody=""),null!=e.selector&&Object.hasOwnProperty.call(e,"selector")&&(n.selector=e.selector),null!=e.get&&Object.hasOwnProperty.call(e,"get")&&(n.get=e.get,t.oneofs)&&(n.pattern="get"),null!=e.put&&Object.hasOwnProperty.call(e,"put")&&(n.put=e.put,t.oneofs)&&(n.pattern="put"),null!=e.post&&Object.hasOwnProperty.call(e,"post")&&(n.post=e.post,t.oneofs)&&(n.pattern="post"),null!=e.delete&&Object.hasOwnProperty.call(e,"delete")&&(n.delete=e.delete,t.oneofs)&&(n.pattern="delete"),null!=e.patch&&Object.hasOwnProperty.call(e,"patch")&&(n.patch=e.patch,t.oneofs)&&(n.pattern="patch"),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&(n.body=e.body),null!=e.custom&&Object.hasOwnProperty.call(e,"custom")&&(n.custom=g.google.api.CustomHttpPattern.toObject(e.custom,t,o+1),t.oneofs)&&(n.pattern="custom"),e.additionalBindings&&e.additionalBindings.length){n.additionalBindings=[];for(var r=0;r<e.additionalBindings.length;++r)n.additionalBindings[r]=g.google.api.HttpRule.toObject(e.additionalBindings[r],t,o+1)}return null!=e.responseBody&&Object.hasOwnProperty.call(e,"responseBody")&&(n.responseBody=e.responseBody),n},x.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},x.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.HttpRule"},x),e.CustomHttpPattern=(gt.prototype.kind="",gt.prototype.path="",gt.create=function(e){return new gt(e)},gt.encode=function(e,t,o){if(t=t||i.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},gt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},gt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.api.CustomHttpPattern;e.pos<r;){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,n)}}return i},gt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},gt.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},gt.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},gt.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},gt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},gt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.CustomHttpPattern"},gt),e.CommonLanguageSettings=(ft.prototype.referenceDocsUri="",ft.prototype.destinations=d.emptyArray,ft.prototype.selectiveGapicGeneration=null,ft.create=function(e){return new ft(e)},ft.encode=function(e,t,o){if(t=t||i.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 n=0;n<e.destinations.length;++n)t.int32(e.destinations[n]);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},ft.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ft.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.api.CommonLanguageSettings;e.pos<r;){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 s=e.uint32()+e.pos;e.pos<s;)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,n+1);break;default:e.skipType(7&a,n)}}return i},ft.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ft.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},ft.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 n=0;n<e.destinations.length;++n)switch(e.destinations[n]){default:if("number"==typeof e.destinations[n]){o.destinations[n]=e.destinations[n];break}case"CLIENT_LIBRARY_DESTINATION_UNSPECIFIED":case 0:o.destinations[n]=0;break;case"GITHUB":case 10:o.destinations[n]=10;break;case"PACKAGE_MANAGER":case 20:o.destinations[n]=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},ft.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.destinations=[]),t.defaults&&(n.referenceDocsUri="",n.selectiveGapicGeneration=null),null!=e.referenceDocsUri&&Object.hasOwnProperty.call(e,"referenceDocsUri")&&(n.referenceDocsUri=e.referenceDocsUri),e.destinations&&e.destinations.length){n.destinations=[];for(var r=0;r<e.destinations.length;++r)n.destinations[r]=t.enums!==String||void 0===g.google.api.ClientLibraryDestination[e.destinations[r]]?e.destinations[r]:g.google.api.ClientLibraryDestination[e.destinations[r]]}return null!=e.selectiveGapicGeneration&&Object.hasOwnProperty.call(e,"selectiveGapicGeneration")&&(n.selectiveGapicGeneration=g.google.api.SelectiveGapicGeneration.toObject(e.selectiveGapicGeneration,t,o+1)),n},ft.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},ft.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.CommonLanguageSettings"},ft),e.ClientLibrarySettings=(k.prototype.version="",k.prototype.launchStage=0,k.prototype.restNumericEnums=!1,k.prototype.javaSettings=null,k.prototype.cppSettings=null,k.prototype.phpSettings=null,k.prototype.pythonSettings=null,k.prototype.nodeSettings=null,k.prototype.dotnetSettings=null,k.prototype.rubySettings=null,k.prototype.goSettings=null,k.create=function(e){return new k(e)},k.encode=function(e,t,o){if(t=t||i.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},k.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},k.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.api.ClientLibrarySettings;e.pos<r;){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,n+1);break;case 22:i.cppSettings=g.google.api.CppSettings.decode(e,e.uint32(),void 0,n+1);break;case 23:i.phpSettings=g.google.api.PhpSettings.decode(e,e.uint32(),void 0,n+1);break;case 24:i.pythonSettings=g.google.api.PythonSettings.decode(e,e.uint32(),void 0,n+1);break;case 25:i.nodeSettings=g.google.api.NodeSettings.decode(e,e.uint32(),void 0,n+1);break;case 26:i.dotnetSettings=g.google.api.DotnetSettings.decode(e,e.uint32(),void 0,n+1);break;case 27:i.rubySettings=g.google.api.RubySettings.decode(e,e.uint32(),void 0,n+1);break;case 28:i.goSettings=g.google.api.GoSettings.decode(e,e.uint32(),void 0,n+1);break;default:e.skipType(7&a,n)}}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.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},k.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},k.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};return t.defaults&&(n.version="",n.launchStage=t.enums===String?"LAUNCH_STAGE_UNSPECIFIED":0,n.restNumericEnums=!1,n.javaSettings=null,n.cppSettings=null,n.phpSettings=null,n.pythonSettings=null,n.nodeSettings=null,n.dotnetSettings=null,n.rubySettings=null,n.goSettings=null),null!=e.version&&Object.hasOwnProperty.call(e,"version")&&(n.version=e.version),null!=e.launchStage&&Object.hasOwnProperty.call(e,"launchStage")&&(n.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")&&(n.restNumericEnums=e.restNumericEnums),null!=e.javaSettings&&Object.hasOwnProperty.call(e,"javaSettings")&&(n.javaSettings=g.google.api.JavaSettings.toObject(e.javaSettings,t,o+1)),null!=e.cppSettings&&Object.hasOwnProperty.call(e,"cppSettings")&&(n.cppSettings=g.google.api.CppSettings.toObject(e.cppSettings,t,o+1)),null!=e.phpSettings&&Object.hasOwnProperty.call(e,"phpSettings")&&(n.phpSettings=g.google.api.PhpSettings.toObject(e.phpSettings,t,o+1)),null!=e.pythonSettings&&Object.hasOwnProperty.call(e,"pythonSettings")&&(n.pythonSettings=g.google.api.PythonSettings.toObject(e.pythonSettings,t,o+1)),null!=e.nodeSettings&&Object.hasOwnProperty.call(e,"nodeSettings")&&(n.nodeSettings=g.google.api.NodeSettings.toObject(e.nodeSettings,t,o+1)),null!=e.dotnetSettings&&Object.hasOwnProperty.call(e,"dotnetSettings")&&(n.dotnetSettings=g.google.api.DotnetSettings.toObject(e.dotnetSettings,t,o+1)),null!=e.rubySettings&&Object.hasOwnProperty.call(e,"rubySettings")&&(n.rubySettings=g.google.api.RubySettings.toObject(e.rubySettings,t,o+1)),null!=e.goSettings&&Object.hasOwnProperty.call(e,"goSettings")&&(n.goSettings=g.google.api.GoSettings.toObject(e.goSettings,t,o+1)),n},k.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},k.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.ClientLibrarySettings"},k),e.Publishing=(P.prototype.methodSettings=d.emptyArray,P.prototype.newIssueUri="",P.prototype.documentationUri="",P.prototype.apiShortName="",P.prototype.githubLabel="",P.prototype.codeownerGithubTeams=d.emptyArray,P.prototype.docTagPrefix="",P.prototype.organization=0,P.prototype.librarySettings=d.emptyArray,P.prototype.protoReferenceDocumentationUri="",P.prototype.restReferenceDocumentationUri="",P.create=function(e){return new P(e)},P.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.methodSettings&&e.methodSettings.length)for(var n=0;n<e.methodSettings.length;++n)g.google.api.MethodSettings.encode(e.methodSettings[n],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(n=0;n<e.codeownerGithubTeams.length;++n)t.uint32(842).string(e.codeownerGithubTeams[n]);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(n=0;n<e.librarySettings.length;++n)g.google.api.ClientLibrarySettings.encode(e.librarySettings[n],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},P.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},P.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.api.Publishing;e.pos<r;){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,n+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,n+1));break;case 110:i.protoReferenceDocumentationUri=e.string();break;case 111:i.restReferenceDocumentationUri=e.string();break;default:e.skipType(7&a,n)}}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.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(n=g.google.api.MethodSettings.verify(e.methodSettings[o],t+1))return"methodSettings."+n}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 n,o=0;o<e.librarySettings.length;++o)if(n=g.google.api.ClientLibrarySettings.verify(e.librarySettings[o],t+1))return"librarySettings."+n}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},P.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 n=0;n<e.methodSettings.length;++n){if(!d.isObject(e.methodSettings[n]))throw TypeError(".google.api.Publishing.methodSettings: object expected");o.methodSettings[n]=g.google.api.MethodSettings.fromObject(e.methodSettings[n],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(n=0;n<e.codeownerGithubTeams.length;++n)o.codeownerGithubTeams[n]=String(e.codeownerGithubTeams[n])}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(n=0;n<e.librarySettings.length;++n){if(!d.isObject(e.librarySettings[n]))throw TypeError(".google.api.Publishing.librarySettings: object expected");o.librarySettings[n]=g.google.api.ClientLibrarySettings.fromObject(e.librarySettings[n],t+1)}}return null!=e.protoReferenceDocumentationUri&&(o.protoReferenceDocumentationUri=String(e.protoReferenceDocumentationUri)),null!=e.restReferenceDocumentationUri&&(o.restReferenceDocumentationUri=String(e.restReferenceDocumentationUri)),o},P.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.methodSettings=[],n.codeownerGithubTeams=[],n.librarySettings=[]),t.defaults&&(n.newIssueUri="",n.documentationUri="",n.apiShortName="",n.githubLabel="",n.docTagPrefix="",n.organization=t.enums===String?"CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED":0,n.protoReferenceDocumentationUri="",n.restReferenceDocumentationUri=""),e.methodSettings&&e.methodSettings.length){n.methodSettings=[];for(var r=0;r<e.methodSettings.length;++r)n.methodSettings[r]=g.google.api.MethodSettings.toObject(e.methodSettings[r],t,o+1)}if(null!=e.newIssueUri&&Object.hasOwnProperty.call(e,"newIssueUri")&&(n.newIssueUri=e.newIssueUri),null!=e.documentationUri&&Object.hasOwnProperty.call(e,"documentationUri")&&(n.documentationUri=e.documentationUri),null!=e.apiShortName&&Object.hasOwnProperty.call(e,"apiShortName")&&(n.apiShortName=e.apiShortName),null!=e.githubLabel&&Object.hasOwnProperty.call(e,"githubLabel")&&(n.githubLabel=e.githubLabel),e.codeownerGithubTeams&&e.codeownerGithubTeams.length){n.codeownerGithubTeams=[];for(r=0;r<e.codeownerGithubTeams.length;++r)n.codeownerGithubTeams[r]=e.codeownerGithubTeams[r]}if(null!=e.docTagPrefix&&Object.hasOwnProperty.call(e,"docTagPrefix")&&(n.docTagPrefix=e.docTagPrefix),null!=e.organization&&Object.hasOwnProperty.call(e,"organization")&&(n.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){n.librarySettings=[];for(r=0;r<e.librarySettings.length;++r)n.librarySettings[r]=g.google.api.ClientLibrarySettings.toObject(e.librarySettings[r],t,o+1)}return null!=e.protoReferenceDocumentationUri&&Object.hasOwnProperty.call(e,"protoReferenceDocumentationUri")&&(n.protoReferenceDocumentationUri=e.protoReferenceDocumentationUri),null!=e.restReferenceDocumentationUri&&Object.hasOwnProperty.call(e,"restReferenceDocumentationUri")&&(n.restReferenceDocumentationUri=e.restReferenceDocumentationUri),n},P.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},P.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.Publishing"},P),e.JavaSettings=(bt.prototype.libraryPackage="",bt.prototype.serviceClassNames=d.emptyObject,bt.prototype.common=null,bt.create=function(e){return new bt(e)},bt.encode=function(e,t,o){if(t=t||i.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 n=Object.keys(e.serviceClassNames),r=0;r<n.length;++r)t.uint32(18).fork().uint32(10).string(n[r]).uint32(18).string(e.serviceClassNames[n[r]]).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},bt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},bt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.api.JavaSettings;e.pos<r;){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 s=e.uint32()+e.pos,c="",l="";e.pos<s;){var u=e.uint32();switch(u>>>3){case 1:c=e.string();break;case 2:l=e.string();break;default:e.skipType(7&u,n)}}"__proto__"===c&&d.makeProp(i.serviceClassNames,c),i.serviceClassNames[c]=l;break;case 3:i.common=g.google.api.CommonLanguageSettings.decode(e,e.uint32(),void 0,n+1);break;default:e.skipType(7&a,n)}}return i},bt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},bt.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),n=0;n<o.length;++n)if(!d.isString(e.serviceClassNames[o[n]]))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},bt.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 n=Object.keys(e.serviceClassNames),r=0;r<n.length;++r)"__proto__"===n[r]&&d.makeProp(o.serviceClassNames,n[r]),o.serviceClassNames[n[r]]=String(e.serviceClassNames[n[r]])}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},bt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n,r={};if((t.objects||t.defaults)&&(r.serviceClassNames={}),t.defaults&&(r.libraryPackage="",r.common=null),null!=e.libraryPackage&&Object.hasOwnProperty.call(e,"libraryPackage")&&(r.libraryPackage=e.libraryPackage),e.serviceClassNames&&(n=Object.keys(e.serviceClassNames)).length){r.serviceClassNames={};for(var i=0;i<n.length;++i)"__proto__"===n[i]&&d.makeProp(r.serviceClassNames,n[i]),r.serviceClassNames[n[i]]=e.serviceClassNames[n[i]]}return null!=e.common&&Object.hasOwnProperty.call(e,"common")&&(r.common=g.google.api.CommonLanguageSettings.toObject(e.common,t,o+1)),r},bt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},bt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.JavaSettings"},bt),e.CppSettings=(mt.prototype.common=null,mt.create=function(e){return new mt(e)},mt.encode=function(e,t,o){if(t=t||i.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},mt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},mt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.api.CppSettings;e.pos<r;){var a=e.uint32();if(a===o)break;a>>>3==1?i.common=g.google.api.CommonLanguageSettings.decode(e,e.uint32(),void 0,n+1):e.skipType(7&a,n)}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.common&&Object.hasOwnProperty.call(e,"common")){e=g.google.api.CommonLanguageSettings.verify(e.common,t+1);if(e)return"common."+e}return null},mt.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},mt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};return 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)),n},mt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},mt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.CppSettings"},mt),e.PhpSettings=(ht.prototype.common=null,ht.create=function(e){return new ht(e)},ht.encode=function(e,t,o){if(t=t||i.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},ht.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ht.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.api.PhpSettings;e.pos<r;){var a=e.uint32();if(a===o)break;a>>>3==1?i.common=g.google.api.CommonLanguageSettings.decode(e,e.uint32(),void 0,n+1):e.skipType(7&a,n)}return i},ht.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ht.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},ht.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},ht.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};return 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)),n},ht.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},ht.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.PhpSettings"},ht),e.PythonSettings=(yt.prototype.common=null,yt.prototype.experimentalFeatures=null,yt.create=function(e){return new yt(e)},yt.encode=function(e,t,o){if(t=t||i.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},yt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},yt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.api.PythonSettings;e.pos<r;){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,n+1);break;case 2:i.experimentalFeatures=g.google.api.PythonSettings.ExperimentalFeatures.decode(e,e.uint32(),void 0,n+1);break;default:e.skipType(7&a,n)}}return i},yt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},yt.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},yt.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},yt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};return t.defaults&&(n.common=null,n.experimentalFeatures=null),null!=e.common&&Object.hasOwnProperty.call(e,"common")&&(n.common=g.google.api.CommonLanguageSettings.toObject(e.common,t,o+1)),null!=e.experimentalFeatures&&Object.hasOwnProperty.call(e,"experimentalFeatures")&&(n.experimentalFeatures=g.google.api.PythonSettings.ExperimentalFeatures.toObject(e.experimentalFeatures,t,o+1)),n},yt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},yt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.PythonSettings"},yt.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||i.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,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.api.PythonSettings.ExperimentalFeatures;e.pos<r;){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,n)}}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,n.util.toJSONOptions)},Ot.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.PythonSettings.ExperimentalFeatures"},Ot),yt),e.NodeSettings=(vt.prototype.common=null,vt.create=function(e){return new vt(e)},vt.encode=function(e,t,o){if(t=t||i.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},vt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},vt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.api.NodeSettings;e.pos<r;){var a=e.uint32();if(a===o)break;a>>>3==1?i.common=g.google.api.CommonLanguageSettings.decode(e,e.uint32(),void 0,n+1):e.skipType(7&a,n)}return i},vt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},vt.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},vt.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},vt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};return 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)),n},vt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},vt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.NodeSettings"},vt),e.DotnetSettings=(wt.prototype.common=null,wt.prototype.renamedServices=d.emptyObject,wt.prototype.renamedResources=d.emptyObject,wt.prototype.ignoredResources=d.emptyArray,wt.prototype.forcedNamespaceAliases=d.emptyArray,wt.prototype.handwrittenSignatures=d.emptyArray,wt.create=function(e){return new wt(e)},wt.encode=function(e,t,o){if(t=t||i.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 n=Object.keys(e.renamedServices),r=0;r<n.length;++r)t.uint32(18).fork().uint32(10).string(n[r]).uint32(18).string(e.renamedServices[n[r]]).ldelim();if(null!=e.renamedResources&&Object.hasOwnProperty.call(e,"renamedResources"))for(n=Object.keys(e.renamedResources),r=0;r<n.length;++r)t.uint32(26).fork().uint32(10).string(n[r]).uint32(18).string(e.renamedResources[n[r]]).ldelim();if(null!=e.ignoredResources&&e.ignoredResources.length)for(r=0;r<e.ignoredResources.length;++r)t.uint32(34).string(e.ignoredResources[r]);if(null!=e.forcedNamespaceAliases&&e.forcedNamespaceAliases.length)for(r=0;r<e.forcedNamespaceAliases.length;++r)t.uint32(42).string(e.forcedNamespaceAliases[r]);if(null!=e.handwrittenSignatures&&e.handwrittenSignatures.length)for(r=0;r<e.handwrittenSignatures.length;++r)t.uint32(50).string(e.handwrittenSignatures[r]);return t},wt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},wt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.api.DotnetSettings;e.pos<r;){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,n+1);break;case 2:i.renamedServices===d.emptyObject&&(i.renamedServices={});for(var s=e.uint32()+e.pos,c="",l="";e.pos<s;)switch((u=e.uint32())>>>3){case 1:c=e.string();break;case 2:l=e.string();break;default:e.skipType(7&u,n)}"__proto__"===c&&d.makeProp(i.renamedServices,c),i.renamedServices[c]=l;break;case 3:i.renamedResources===d.emptyObject&&(i.renamedResources={});var u,s=e.uint32()+e.pos;for(l=c="";e.pos<s;)switch((u=e.uint32())>>>3){case 1:c=e.string();break;case 2:l=e.string();break;default:e.skipType(7&u,n)}"__proto__"===c&&d.makeProp(i.renamedResources,c),i.renamedResources[c]=l;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,n)}}return i},wt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},wt.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),n=0;n<o.length;++n)if(!d.isString(e.renamedServices[o[n]]))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),n=0;n<o.length;++n)if(!d.isString(e.renamedResources[o[n]]))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(n=0;n<e.ignoredResources.length;++n)if(!d.isString(e.ignoredResources[n]))return"ignoredResources: string[] expected"}if(null!=e.forcedNamespaceAliases&&Object.hasOwnProperty.call(e,"forcedNamespaceAliases")){if(!Array.isArray(e.forcedNamespaceAliases))return"forcedNamespaceAliases: array expected";for(n=0;n<e.forcedNamespaceAliases.length;++n)if(!d.isString(e.forcedNamespaceAliases[n]))return"forcedNamespaceAliases: string[] expected"}if(null!=e.handwrittenSignatures&&Object.hasOwnProperty.call(e,"handwrittenSignatures")){if(!Array.isArray(e.handwrittenSignatures))return"handwrittenSignatures: array expected";for(n=0;n<e.handwrittenSignatures.length;++n)if(!d.isString(e.handwrittenSignatures[n]))return"handwrittenSignatures: string[] expected"}return null},wt.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 n=Object.keys(e.renamedServices),r=0;r<n.length;++r)"__proto__"===n[r]&&d.makeProp(o.renamedServices,n[r]),o.renamedServices[n[r]]=String(e.renamedServices[n[r]])}if(e.renamedResources){if(!d.isObject(e.renamedResources))throw TypeError(".google.api.DotnetSettings.renamedResources: object expected");o.renamedResources={};for(n=Object.keys(e.renamedResources),r=0;r<n.length;++r)"__proto__"===n[r]&&d.makeProp(o.renamedResources,n[r]),o.renamedResources[n[r]]=String(e.renamedResources[n[r]])}if(e.ignoredResources){if(!Array.isArray(e.ignoredResources))throw TypeError(".google.api.DotnetSettings.ignoredResources: array expected");o.ignoredResources=[];for(r=0;r<e.ignoredResources.length;++r)o.ignoredResources[r]=String(e.ignoredResources[r])}if(e.forcedNamespaceAliases){if(!Array.isArray(e.forcedNamespaceAliases))throw TypeError(".google.api.DotnetSettings.forcedNamespaceAliases: array expected");o.forcedNamespaceAliases=[];for(r=0;r<e.forcedNamespaceAliases.length;++r)o.forcedNamespaceAliases[r]=String(e.forcedNamespaceAliases[r])}if(e.handwrittenSignatures){if(!Array.isArray(e.handwrittenSignatures))throw TypeError(".google.api.DotnetSettings.handwrittenSignatures: array expected");o.handwrittenSignatures=[];for(r=0;r<e.handwrittenSignatures.length;++r)o.handwrittenSignatures[r]=String(e.handwrittenSignatures[r])}return o},wt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n,r={};if((t.arrays||t.defaults)&&(r.ignoredResources=[],r.forcedNamespaceAliases=[],r.handwrittenSignatures=[]),(t.objects||t.defaults)&&(r.renamedServices={},r.renamedResources={}),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)),e.renamedServices&&(n=Object.keys(e.renamedServices)).length){r.renamedServices={};for(var i=0;i<n.length;++i)"__proto__"===n[i]&&d.makeProp(r.renamedServices,n[i]),r.renamedServices[n[i]]=e.renamedServices[n[i]]}if(e.renamedResources&&(n=Object.keys(e.renamedResources)).length){r.renamedResources={};for(i=0;i<n.length;++i)"__proto__"===n[i]&&d.makeProp(r.renamedResources,n[i]),r.renamedResources[n[i]]=e.renamedResources[n[i]]}if(e.ignoredResources&&e.ignoredResources.length){r.ignoredResources=[];for(i=0;i<e.ignoredResources.length;++i)r.ignoredResources[i]=e.ignoredResources[i]}if(e.forcedNamespaceAliases&&e.forcedNamespaceAliases.length){r.forcedNamespaceAliases=[];for(i=0;i<e.forcedNamespaceAliases.length;++i)r.forcedNamespaceAliases[i]=e.forcedNamespaceAliases[i]}if(e.handwrittenSignatures&&e.handwrittenSignatures.length){r.handwrittenSignatures=[];for(i=0;i<e.handwrittenSignatures.length;++i)r.handwrittenSignatures[i]=e.handwrittenSignatures[i]}return r},wt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},wt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.DotnetSettings"},wt),e.RubySettings=(jt.prototype.common=null,jt.create=function(e){return new jt(e)},jt.encode=function(e,t,o){if(t=t||i.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},jt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},jt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.api.RubySettings;e.pos<r;){var a=e.uint32();if(a===o)break;a>>>3==1?i.common=g.google.api.CommonLanguageSettings.decode(e,e.uint32(),void 0,n+1):e.skipType(7&a,n)}return i},jt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},jt.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},jt.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},jt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};return 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)),n},jt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},jt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.RubySettings"},jt),e.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||i.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 n=Object.keys(e.renamedServices),r=0;r<n.length;++r)t.uint32(18).fork().uint32(10).string(n[r]).uint32(18).string(e.renamedServices[n[r]]).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,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.api.GoSettings;e.pos<r;){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,n+1);break;case 2:i.renamedServices===d.emptyObject&&(i.renamedServices={});for(var s=e.uint32()+e.pos,c="",l="";e.pos<s;){var u=e.uint32();switch(u>>>3){case 1:c=e.string();break;case 2:l=e.string();break;default:e.skipType(7&u,n)}}"__proto__"===c&&d.makeProp(i.renamedServices,c),i.renamedServices[c]=l;break;default:e.skipType(7&a,n)}}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),n=0;n<o.length;++n)if(!d.isString(e.renamedServices[o[n]]))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 n=Object.keys(e.renamedServices),r=0;r<n.length;++r)"__proto__"===n[r]&&d.makeProp(o.renamedServices,n[r]),o.renamedServices[n[r]]=String(e.renamedServices[n[r]])}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 n,r={};if((t.objects||t.defaults)&&(r.renamedServices={}),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)),e.renamedServices&&(n=Object.keys(e.renamedServices)).length){r.renamedServices={};for(var i=0;i<n.length;++i)"__proto__"===n[i]&&d.makeProp(r.renamedServices,n[i]),r.renamedServices[n[i]]=e.renamedServices[n[i]]}return r},St.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},St.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.GoSettings"},St),e.MethodSettings=(xt.prototype.selector="",xt.prototype.longRunning=null,xt.prototype.autoPopulatedFields=d.emptyArray,xt.create=function(e){return new xt(e)},xt.encode=function(e,t,o){if(t=t||i.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 n=0;n<e.autoPopulatedFields.length;++n)t.uint32(26).string(e.autoPopulatedFields[n]);return t},xt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},xt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.api.MethodSettings;e.pos<r;){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,n+1);break;case 3:i.autoPopulatedFields&&i.autoPopulatedFields.length||(i.autoPopulatedFields=[]),i.autoPopulatedFields.push(e.string());break;default:e.skipType(7&a,n)}}return i},xt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},xt.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},xt.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 n=0;n<e.autoPopulatedFields.length;++n)o.autoPopulatedFields[n]=String(e.autoPopulatedFields[n])}return o},xt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.autoPopulatedFields=[]),t.defaults&&(n.selector="",n.longRunning=null),null!=e.selector&&Object.hasOwnProperty.call(e,"selector")&&(n.selector=e.selector),null!=e.longRunning&&Object.hasOwnProperty.call(e,"longRunning")&&(n.longRunning=g.google.api.MethodSettings.LongRunning.toObject(e.longRunning,t,o+1)),e.autoPopulatedFields&&e.autoPopulatedFields.length){n.autoPopulatedFields=[];for(var r=0;r<e.autoPopulatedFields.length;++r)n.autoPopulatedFields[r]=e.autoPopulatedFields[r]}return n},xt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},xt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.MethodSettings"},xt.LongRunning=(kt.prototype.initialPollDelay=null,kt.prototype.pollDelayMultiplier=0,kt.prototype.maxPollDelay=null,kt.prototype.totalPollTimeout=null,kt.create=function(e){return new kt(e)},kt.encode=function(e,t,o){if(t=t||i.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},kt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},kt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.api.MethodSettings.LongRunning;e.pos<r;){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,n+1);break;case 2:i.pollDelayMultiplier=e.float();break;case 3:i.maxPollDelay=g.google.protobuf.Duration.decode(e,e.uint32(),void 0,n+1);break;case 4:i.totalPollTimeout=g.google.protobuf.Duration.decode(e,e.uint32(),void 0,n+1);break;default:e.skipType(7&a,n)}}return i},kt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},kt.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},kt.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},kt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};return t.defaults&&(n.initialPollDelay=null,n.pollDelayMultiplier=0,n.maxPollDelay=null,n.totalPollTimeout=null),null!=e.initialPollDelay&&Object.hasOwnProperty.call(e,"initialPollDelay")&&(n.initialPollDelay=g.google.protobuf.Duration.toObject(e.initialPollDelay,t,o+1)),null!=e.pollDelayMultiplier&&Object.hasOwnProperty.call(e,"pollDelayMultiplier")&&(n.pollDelayMultiplier=t.json&&!isFinite(e.pollDelayMultiplier)?String(e.pollDelayMultiplier):e.pollDelayMultiplier),null!=e.maxPollDelay&&Object.hasOwnProperty.call(e,"maxPollDelay")&&(n.maxPollDelay=g.google.protobuf.Duration.toObject(e.maxPollDelay,t,o+1)),null!=e.totalPollTimeout&&Object.hasOwnProperty.call(e,"totalPollTimeout")&&(n.totalPollTimeout=g.google.protobuf.Duration.toObject(e.totalPollTimeout,t,o+1)),n},kt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},kt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.MethodSettings.LongRunning"},kt),xt),e.ClientLibraryOrganization=(o={},(t=Object.create(o))[o[0]="CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED"]=0,t[o[1]="CLOUD"]=1,t[o[2]="ADS"]=2,t[o[3]="PHOTOS"]=3,t[o[4]="STREET_VIEW"]=4,t[o[5]="SHOPPING"]=5,t[o[6]="GEO"]=6,t[o[7]="GENERATIVE_AI"]=7,t),e.ClientLibraryDestination=(o={},(t=Object.create(o))[o[0]="CLIENT_LIBRARY_DESTINATION_UNSPECIFIED"]=0,t[o[10]="GITHUB"]=10,t[o[20]="PACKAGE_MANAGER"]=20,t),e.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||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.methods&&e.methods.length)for(var n=0;n<e.methods.length;++n)t.uint32(10).string(e.methods[n]);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,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.api.SelectiveGapicGeneration;e.pos<r;){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,n)}}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 n=0;n<e.methods.length;++n)o.methods[n]=String(e.methods[n])}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 n={};if((t.arrays||t.defaults)&&(n.methods=[]),t.defaults&&(n.generateOmittedAsInternal=!1),e.methods&&e.methods.length){n.methods=[];for(var r=0;r<e.methods.length;++r)n.methods[r]=e.methods[r]}return null!=e.generateOmittedAsInternal&&Object.hasOwnProperty.call(e,"generateOmittedAsInternal")&&(n.generateOmittedAsInternal=e.generateOmittedAsInternal),n},Pt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Pt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.SelectiveGapicGeneration"},Pt),e.LaunchStage=(o={},(t=Object.create(o))[o[0]="LAUNCH_STAGE_UNSPECIFIED"]=0,t[o[6]="UNIMPLEMENTED"]=6,t[o[7]="PRELAUNCH"]=7,t[o[1]="EARLY_ACCESS"]=1,t[o[2]="ALPHA"]=2,t[o[3]="BETA"]=3,t[o[4]="GA"]=4,t[o[5]="DEPRECATED"]=5,t),e.FieldBehavior=(o={},(t=Object.create(o))[o[0]="FIELD_BEHAVIOR_UNSPECIFIED"]=0,t[o[1]="OPTIONAL"]=1,t[o[2]="REQUIRED"]=2,t[o[3]="OUTPUT_ONLY"]=3,t[o[4]="INPUT_ONLY"]=4,t[o[5]="IMMUTABLE"]=5,t[o[6]="UNORDERED_LIST"]=6,t[o[7]="NON_EMPTY_DEFAULT"]=7,t[o[8]="IDENTIFIER"]=8,t),e.ResourceDescriptor=(E.prototype.type="",E.prototype.pattern=d.emptyArray,E.prototype.nameField="",E.prototype.history=0,E.prototype.plural="",E.prototype.singular="",E.prototype.style=d.emptyArray,E.create=function(e){return new E(e)},E.encode=function(e,t,o){if(t=t||i.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 n=0;n<e.pattern.length;++n)t.uint32(18).string(e.pattern[n]);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(n=0;n<e.style.length;++n)t.int32(e.style[n]);t.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,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.api.ResourceDescriptor;e.pos<r;){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 s=e.uint32()+e.pos;e.pos<s;)i.style.push(e.int32());else i.style.push(e.int32());break;default:e.skipType(7&a,n)}}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.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},E.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 n=0;n<e.pattern.length;++n)o.pattern[n]=String(e.pattern[n])}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(n=0;n<e.style.length;++n)switch(e.style[n]){default:if("number"==typeof e.style[n]){o.style[n]=e.style[n];break}case"STYLE_UNSPECIFIED":case 0:o.style[n]=0;break;case"DECLARATIVE_FRIENDLY":case 1:o.style[n]=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 n={};if((t.arrays||t.defaults)&&(n.pattern=[],n.style=[]),t.defaults&&(n.type="",n.nameField="",n.history=t.enums===String?"HISTORY_UNSPECIFIED":0,n.plural="",n.singular=""),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&(n.type=e.type),e.pattern&&e.pattern.length){n.pattern=[];for(var r=0;r<e.pattern.length;++r)n.pattern[r]=e.pattern[r]}if(null!=e.nameField&&Object.hasOwnProperty.call(e,"nameField")&&(n.nameField=e.nameField),null!=e.history&&Object.hasOwnProperty.call(e,"history")&&(n.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")&&(n.plural=e.plural),null!=e.singular&&Object.hasOwnProperty.call(e,"singular")&&(n.singular=e.singular),e.style&&e.style.length){n.style=[];for(r=0;r<e.style.length;++r)n.style[r]=t.enums!==String||void 0===g.google.api.ResourceDescriptor.Style[e.style[r]]?e.style[r]:g.google.api.ResourceDescriptor.Style[e.style[r]]}return n},E.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},E.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.ResourceDescriptor"},E.History=(o={},(t=Object.create(o))[o[0]="HISTORY_UNSPECIFIED"]=0,t[o[1]="ORIGINALLY_SINGLE_PATTERN"]=1,t[o[2]="FUTURE_MULTI_PATTERN"]=2,t),E.Style=(o={},(t=Object.create(o))[o[0]="STYLE_UNSPECIFIED"]=0,t[o[1]="DECLARATIVE_FRIENDLY"]=1,t),E),e.ResourceReference=(Et.prototype.type="",Et.prototype.childType="",Et.create=function(e){return new Et(e)},Et.encode=function(e,t,o){if(t=t||i.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},Et.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Et.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.api.ResourceReference;e.pos<r;){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,n)}}return i},Et.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Et.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},Et.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},Et.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},Et.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Et.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.api.ResourceReference"},Et),e),F.protobuf=((r={}).FileDescriptorSet=(Tt.prototype.file=d.emptyArray,Tt.create=function(e){return new Tt(e)},Tt.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.file&&e.file.length)for(var n=0;n<e.file.length;++n)g.google.protobuf.FileDescriptorProto.encode(e.file[n],t.uint32(10).fork(),o+1).ldelim();return t},Tt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Tt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FileDescriptorSet;e.pos<r;){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,n+1))):e.skipType(7&a,n)}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.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 n=g.google.protobuf.FileDescriptorProto.verify(e.file[o],t+1);if(n)return"file."+n}}return null},Tt.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 n=0;n<e.file.length;++n){if(!d.isObject(e.file[n]))throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected");o.file[n]=g.google.protobuf.FileDescriptorProto.fromObject(e.file[n],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 n={};if((t.arrays||t.defaults)&&(n.file=[]),e.file&&e.file.length){n.file=[];for(var r=0;r<e.file.length;++r)n.file[r]=g.google.protobuf.FileDescriptorProto.toObject(e.file[r],t,o+1)}return n},Tt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Tt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FileDescriptorSet"},Tt),r.Edition=(o={},(t=Object.create(o))[o[0]="EDITION_UNKNOWN"]=0,t[o[900]="EDITION_LEGACY"]=900,t[o[998]="EDITION_PROTO2"]=998,t[o[999]="EDITION_PROTO3"]=999,t[o[1e3]="EDITION_2023"]=1e3,t[o[1001]="EDITION_2024"]=1001,t[o[1]="EDITION_1_TEST_ONLY"]=1,t[o[2]="EDITION_2_TEST_ONLY"]=2,t[o[99997]="EDITION_99997_TEST_ONLY"]=99997,t[o[99998]="EDITION_99998_TEST_ONLY"]=99998,t[o[99999]="EDITION_99999_TEST_ONLY"]=99999,t[o[2147483647]="EDITION_MAX"]=2147483647,t),r.FileDescriptorProto=(T.prototype.name="",T.prototype.package="",T.prototype.dependency=d.emptyArray,T.prototype.publicDependency=d.emptyArray,T.prototype.weakDependency=d.emptyArray,T.prototype.optionDependency=d.emptyArray,T.prototype.messageType=d.emptyArray,T.prototype.enumType=d.emptyArray,T.prototype.service=d.emptyArray,T.prototype.extension=d.emptyArray,T.prototype.options=null,T.prototype.sourceCodeInfo=null,T.prototype.syntax="",T.prototype.edition=0,T.create=function(e){return new T(e)},T.encode=function(e,t,o){if(t=t||i.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 n=0;n<e.dependency.length;++n)t.uint32(26).string(e.dependency[n]);if(null!=e.messageType&&e.messageType.length)for(n=0;n<e.messageType.length;++n)g.google.protobuf.DescriptorProto.encode(e.messageType[n],t.uint32(34).fork(),o+1).ldelim();if(null!=e.enumType&&e.enumType.length)for(n=0;n<e.enumType.length;++n)g.google.protobuf.EnumDescriptorProto.encode(e.enumType[n],t.uint32(42).fork(),o+1).ldelim();if(null!=e.service&&e.service.length)for(n=0;n<e.service.length;++n)g.google.protobuf.ServiceDescriptorProto.encode(e.service[n],t.uint32(50).fork(),o+1).ldelim();if(null!=e.extension&&e.extension.length)for(n=0;n<e.extension.length;++n)g.google.protobuf.FieldDescriptorProto.encode(e.extension[n],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(n=0;n<e.publicDependency.length;++n)t.uint32(80).int32(e.publicDependency[n]);if(null!=e.weakDependency&&e.weakDependency.length)for(n=0;n<e.weakDependency.length;++n)t.uint32(88).int32(e.weakDependency[n]);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(n=0;n<e.optionDependency.length;++n)t.uint32(122).string(e.optionDependency[n]);return t},T.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},T.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FileDescriptorProto;e.pos<r;){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 s=e.uint32()+e.pos;e.pos<s;)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(s=e.uint32()+e.pos;e.pos<s;)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,n+1));break;case 5:i.enumType&&i.enumType.length||(i.enumType=[]),i.enumType.push(g.google.protobuf.EnumDescriptorProto.decode(e,e.uint32(),void 0,n+1));break;case 6:i.service&&i.service.length||(i.service=[]),i.service.push(g.google.protobuf.ServiceDescriptorProto.decode(e,e.uint32(),void 0,n+1));break;case 7:i.extension&&i.extension.length||(i.extension=[]),i.extension.push(g.google.protobuf.FieldDescriptorProto.decode(e,e.uint32(),void 0,n+1));break;case 8:i.options=g.google.protobuf.FileOptions.decode(e,e.uint32(),void 0,n+1);break;case 9:i.sourceCodeInfo=g.google.protobuf.SourceCodeInfo.decode(e,e.uint32(),void 0,n+1);break;case 12:i.syntax=e.string();break;case 14:i.edition=e.int32();break;default:e.skipType(7&a,n)}}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.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(n=g.google.protobuf.DescriptorProto.verify(e.messageType[o],t+1))return"messageType."+n}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(n=g.google.protobuf.EnumDescriptorProto.verify(e.enumType[o],t+1))return"enumType."+n}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(n=g.google.protobuf.ServiceDescriptorProto.verify(e.service[o],t+1))return"service."+n}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(n=g.google.protobuf.FieldDescriptorProto.verify(e.extension[o],t+1))return"extension."+n}var n;if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(n=g.google.protobuf.FileOptions.verify(e.options,t+1)))return"options."+n;if(null!=e.sourceCodeInfo&&Object.hasOwnProperty.call(e,"sourceCodeInfo")&&(n=g.google.protobuf.SourceCodeInfo.verify(e.sourceCodeInfo,t+1)))return"sourceCodeInfo."+n;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},T.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 n=0;n<e.dependency.length;++n)o.dependency[n]=String(e.dependency[n])}if(e.publicDependency){if(!Array.isArray(e.publicDependency))throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected");o.publicDependency=[];for(n=0;n<e.publicDependency.length;++n)o.publicDependency[n]=0|e.publicDependency[n]}if(e.weakDependency){if(!Array.isArray(e.weakDependency))throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected");o.weakDependency=[];for(n=0;n<e.weakDependency.length;++n)o.weakDependency[n]=0|e.weakDependency[n]}if(e.optionDependency){if(!Array.isArray(e.optionDependency))throw TypeError(".google.protobuf.FileDescriptorProto.optionDependency: array expected");o.optionDependency=[];for(n=0;n<e.optionDependency.length;++n)o.optionDependency[n]=String(e.optionDependency[n])}if(e.messageType){if(!Array.isArray(e.messageType))throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected");o.messageType=[];for(n=0;n<e.messageType.length;++n){if(!d.isObject(e.messageType[n]))throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected");o.messageType[n]=g.google.protobuf.DescriptorProto.fromObject(e.messageType[n],t+1)}}if(e.enumType){if(!Array.isArray(e.enumType))throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected");o.enumType=[];for(n=0;n<e.enumType.length;++n){if(!d.isObject(e.enumType[n]))throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected");o.enumType[n]=g.google.protobuf.EnumDescriptorProto.fromObject(e.enumType[n],t+1)}}if(e.service){if(!Array.isArray(e.service))throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected");o.service=[];for(n=0;n<e.service.length;++n){if(!d.isObject(e.service[n]))throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected");o.service[n]=g.google.protobuf.ServiceDescriptorProto.fromObject(e.service[n],t+1)}}if(e.extension){if(!Array.isArray(e.extension))throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected");o.extension=[];for(n=0;n<e.extension.length;++n){if(!d.isObject(e.extension[n]))throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected");o.extension[n]=g.google.protobuf.FieldDescriptorProto.fromObject(e.extension[n],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},T.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.dependency=[],n.messageType=[],n.enumType=[],n.service=[],n.extension=[],n.publicDependency=[],n.weakDependency=[],n.optionDependency=[]),t.defaults&&(n.name="",n.package="",n.options=null,n.sourceCodeInfo=null,n.syntax="",n.edition=t.enums===String?"EDITION_UNKNOWN":0),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(n.name=e.name),null!=e.package&&Object.hasOwnProperty.call(e,"package")&&(n.package=e.package),e.dependency&&e.dependency.length){n.dependency=[];for(var r=0;r<e.dependency.length;++r)n.dependency[r]=e.dependency[r]}if(e.messageType&&e.messageType.length){n.messageType=[];for(r=0;r<e.messageType.length;++r)n.messageType[r]=g.google.protobuf.DescriptorProto.toObject(e.messageType[r],t,o+1)}if(e.enumType&&e.enumType.length){n.enumType=[];for(r=0;r<e.enumType.length;++r)n.enumType[r]=g.google.protobuf.EnumDescriptorProto.toObject(e.enumType[r],t,o+1)}if(e.service&&e.service.length){n.service=[];for(r=0;r<e.service.length;++r)n.service[r]=g.google.protobuf.ServiceDescriptorProto.toObject(e.service[r],t,o+1)}if(e.extension&&e.extension.length){n.extension=[];for(r=0;r<e.extension.length;++r)n.extension[r]=g.google.protobuf.FieldDescriptorProto.toObject(e.extension[r],t,o+1)}if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(n.options=g.google.protobuf.FileOptions.toObject(e.options,t,o+1)),null!=e.sourceCodeInfo&&Object.hasOwnProperty.call(e,"sourceCodeInfo")&&(n.sourceCodeInfo=g.google.protobuf.SourceCodeInfo.toObject(e.sourceCodeInfo,t,o+1)),e.publicDependency&&e.publicDependency.length){n.publicDependency=[];for(r=0;r<e.publicDependency.length;++r)n.publicDependency[r]=e.publicDependency[r]}if(e.weakDependency&&e.weakDependency.length){n.weakDependency=[];for(r=0;r<e.weakDependency.length;++r)n.weakDependency[r]=e.weakDependency[r]}if(null!=e.syntax&&Object.hasOwnProperty.call(e,"syntax")&&(n.syntax=e.syntax),null!=e.edition&&Object.hasOwnProperty.call(e,"edition")&&(n.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){n.optionDependency=[];for(r=0;r<e.optionDependency.length;++r)n.optionDependency[r]=e.optionDependency[r]}return n},T.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},T.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FileDescriptorProto"},T),r.DescriptorProto=(I.prototype.name="",I.prototype.field=d.emptyArray,I.prototype.extension=d.emptyArray,I.prototype.nestedType=d.emptyArray,I.prototype.enumType=d.emptyArray,I.prototype.extensionRange=d.emptyArray,I.prototype.oneofDecl=d.emptyArray,I.prototype.options=null,I.prototype.reservedRange=d.emptyArray,I.prototype.reservedName=d.emptyArray,I.prototype.visibility=0,I.create=function(e){return new I(e)},I.encode=function(e,t,o){if(t=t||i.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 n=0;n<e.field.length;++n)g.google.protobuf.FieldDescriptorProto.encode(e.field[n],t.uint32(18).fork(),o+1).ldelim();if(null!=e.nestedType&&e.nestedType.length)for(n=0;n<e.nestedType.length;++n)g.google.protobuf.DescriptorProto.encode(e.nestedType[n],t.uint32(26).fork(),o+1).ldelim();if(null!=e.enumType&&e.enumType.length)for(n=0;n<e.enumType.length;++n)g.google.protobuf.EnumDescriptorProto.encode(e.enumType[n],t.uint32(34).fork(),o+1).ldelim();if(null!=e.extensionRange&&e.extensionRange.length)for(n=0;n<e.extensionRange.length;++n)g.google.protobuf.DescriptorProto.ExtensionRange.encode(e.extensionRange[n],t.uint32(42).fork(),o+1).ldelim();if(null!=e.extension&&e.extension.length)for(n=0;n<e.extension.length;++n)g.google.protobuf.FieldDescriptorProto.encode(e.extension[n],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(n=0;n<e.oneofDecl.length;++n)g.google.protobuf.OneofDescriptorProto.encode(e.oneofDecl[n],t.uint32(66).fork(),o+1).ldelim();if(null!=e.reservedRange&&e.reservedRange.length)for(n=0;n<e.reservedRange.length;++n)g.google.protobuf.DescriptorProto.ReservedRange.encode(e.reservedRange[n],t.uint32(74).fork(),o+1).ldelim();if(null!=e.reservedName&&e.reservedName.length)for(n=0;n<e.reservedName.length;++n)t.uint32(82).string(e.reservedName[n]);return null!=e.visibility&&Object.hasOwnProperty.call(e,"visibility")&&t.uint32(88).int32(e.visibility),t},I.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},I.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.DescriptorProto;e.pos<r;){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,n+1));break;case 6:i.extension&&i.extension.length||(i.extension=[]),i.extension.push(g.google.protobuf.FieldDescriptorProto.decode(e,e.uint32(),void 0,n+1));break;case 3:i.nestedType&&i.nestedType.length||(i.nestedType=[]),i.nestedType.push(g.google.protobuf.DescriptorProto.decode(e,e.uint32(),void 0,n+1));break;case 4:i.enumType&&i.enumType.length||(i.enumType=[]),i.enumType.push(g.google.protobuf.EnumDescriptorProto.decode(e,e.uint32(),void 0,n+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,n+1));break;case 8:i.oneofDecl&&i.oneofDecl.length||(i.oneofDecl=[]),i.oneofDecl.push(g.google.protobuf.OneofDescriptorProto.decode(e,e.uint32(),void 0,n+1));break;case 7:i.options=g.google.protobuf.MessageOptions.decode(e,e.uint32(),void 0,n+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,n+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,n)}}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.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(n=g.google.protobuf.FieldDescriptorProto.verify(e.field[o],t+1))return"field."+n}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(n=g.google.protobuf.FieldDescriptorProto.verify(e.extension[o],t+1))return"extension."+n}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(n=g.google.protobuf.DescriptorProto.verify(e.nestedType[o],t+1))return"nestedType."+n}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(n=g.google.protobuf.EnumDescriptorProto.verify(e.enumType[o],t+1))return"enumType."+n}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(n=g.google.protobuf.DescriptorProto.ExtensionRange.verify(e.extensionRange[o],t+1))return"extensionRange."+n}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(n=g.google.protobuf.OneofDescriptorProto.verify(e.oneofDecl[o],t+1))return"oneofDecl."+n}if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(n=g.google.protobuf.MessageOptions.verify(e.options,t+1)))return"options."+n;if(null!=e.reservedRange&&Object.hasOwnProperty.call(e,"reservedRange")){if(!Array.isArray(e.reservedRange))return"reservedRange: array expected";for(var n,o=0;o<e.reservedRange.length;++o)if(n=g.google.protobuf.DescriptorProto.ReservedRange.verify(e.reservedRange[o],t+1))return"reservedRange."+n}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},I.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 n=0;n<e.field.length;++n){if(!d.isObject(e.field[n]))throw TypeError(".google.protobuf.DescriptorProto.field: object expected");o.field[n]=g.google.protobuf.FieldDescriptorProto.fromObject(e.field[n],t+1)}}if(e.extension){if(!Array.isArray(e.extension))throw TypeError(".google.protobuf.DescriptorProto.extension: array expected");o.extension=[];for(n=0;n<e.extension.length;++n){if(!d.isObject(e.extension[n]))throw TypeError(".google.protobuf.DescriptorProto.extension: object expected");o.extension[n]=g.google.protobuf.FieldDescriptorProto.fromObject(e.extension[n],t+1)}}if(e.nestedType){if(!Array.isArray(e.nestedType))throw TypeError(".google.protobuf.DescriptorProto.nestedType: array expected");o.nestedType=[];for(n=0;n<e.nestedType.length;++n){if(!d.isObject(e.nestedType[n]))throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected");o.nestedType[n]=g.google.protobuf.DescriptorProto.fromObject(e.nestedType[n],t+1)}}if(e.enumType){if(!Array.isArray(e.enumType))throw TypeError(".google.protobuf.DescriptorProto.enumType: array expected");o.enumType=[];for(n=0;n<e.enumType.length;++n){if(!d.isObject(e.enumType[n]))throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected");o.enumType[n]=g.google.protobuf.EnumDescriptorProto.fromObject(e.enumType[n],t+1)}}if(e.extensionRange){if(!Array.isArray(e.extensionRange))throw TypeError(".google.protobuf.DescriptorProto.extensionRange: array expected");o.extensionRange=[];for(n=0;n<e.extensionRange.length;++n){if(!d.isObject(e.extensionRange[n]))throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected");o.extensionRange[n]=g.google.protobuf.DescriptorProto.ExtensionRange.fromObject(e.extensionRange[n],t+1)}}if(e.oneofDecl){if(!Array.isArray(e.oneofDecl))throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: array expected");o.oneofDecl=[];for(n=0;n<e.oneofDecl.length;++n){if(!d.isObject(e.oneofDecl[n]))throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected");o.oneofDecl[n]=g.google.protobuf.OneofDescriptorProto.fromObject(e.oneofDecl[n],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(n=0;n<e.reservedRange.length;++n){if(!d.isObject(e.reservedRange[n]))throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected");o.reservedRange[n]=g.google.protobuf.DescriptorProto.ReservedRange.fromObject(e.reservedRange[n],t+1)}}if(e.reservedName){if(!Array.isArray(e.reservedName))throw TypeError(".google.protobuf.DescriptorProto.reservedName: array expected");o.reservedName=[];for(n=0;n<e.reservedName.length;++n)o.reservedName[n]=String(e.reservedName[n])}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},I.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.field=[],n.nestedType=[],n.enumType=[],n.extensionRange=[],n.extension=[],n.oneofDecl=[],n.reservedRange=[],n.reservedName=[]),t.defaults&&(n.name="",n.options=null,n.visibility=t.enums===String?"VISIBILITY_UNSET":0),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(n.name=e.name),e.field&&e.field.length){n.field=[];for(var r=0;r<e.field.length;++r)n.field[r]=g.google.protobuf.FieldDescriptorProto.toObject(e.field[r],t,o+1)}if(e.nestedType&&e.nestedType.length){n.nestedType=[];for(r=0;r<e.nestedType.length;++r)n.nestedType[r]=g.google.protobuf.DescriptorProto.toObject(e.nestedType[r],t,o+1)}if(e.enumType&&e.enumType.length){n.enumType=[];for(r=0;r<e.enumType.length;++r)n.enumType[r]=g.google.protobuf.EnumDescriptorProto.toObject(e.enumType[r],t,o+1)}if(e.extensionRange&&e.extensionRange.length){n.extensionRange=[];for(r=0;r<e.extensionRange.length;++r)n.extensionRange[r]=g.google.protobuf.DescriptorProto.ExtensionRange.toObject(e.extensionRange[r],t,o+1)}if(e.extension&&e.extension.length){n.extension=[];for(r=0;r<e.extension.length;++r)n.extension[r]=g.google.protobuf.FieldDescriptorProto.toObject(e.extension[r],t,o+1)}if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(n.options=g.google.protobuf.MessageOptions.toObject(e.options,t,o+1)),e.oneofDecl&&e.oneofDecl.length){n.oneofDecl=[];for(r=0;r<e.oneofDecl.length;++r)n.oneofDecl[r]=g.google.protobuf.OneofDescriptorProto.toObject(e.oneofDecl[r],t,o+1)}if(e.reservedRange&&e.reservedRange.length){n.reservedRange=[];for(r=0;r<e.reservedRange.length;++r)n.reservedRange[r]=g.google.protobuf.DescriptorProto.ReservedRange.toObject(e.reservedRange[r],t,o+1)}if(e.reservedName&&e.reservedName.length){n.reservedName=[];for(r=0;r<e.reservedName.length;++r)n.reservedName[r]=e.reservedName[r]}return null!=e.visibility&&Object.hasOwnProperty.call(e,"visibility")&&(n.visibility=t.enums!==String||void 0===g.google.protobuf.SymbolVisibility[e.visibility]?e.visibility:g.google.protobuf.SymbolVisibility[e.visibility]),n},I.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},I.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.DescriptorProto"},I.ExtensionRange=(It.prototype.start=0,It.prototype.end=0,It.prototype.options=null,It.create=function(e){return new It(e)},It.encode=function(e,t,o){if(t=t||i.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},It.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},It.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.DescriptorProto.ExtensionRange;e.pos<r;){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,n+1);break;default:e.skipType(7&a,n)}}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.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},It.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},It.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};return t.defaults&&(n.start=0,n.end=0,n.options=null),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&(n.start=e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&(n.end=e.end),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(n.options=g.google.protobuf.ExtensionRangeOptions.toObject(e.options,t,o+1)),n},It.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},It.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.DescriptorProto.ExtensionRange"},It),I.ReservedRange=(Dt.prototype.start=0,Dt.prototype.end=0,Dt.create=function(e){return new Dt(e)},Dt.encode=function(e,t,o){if(t=t||i.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},Dt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Dt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.DescriptorProto.ReservedRange;e.pos<r;){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,n)}}return i},Dt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Dt.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},Dt.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},Dt.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},Dt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Dt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.DescriptorProto.ReservedRange"},Dt),I),r.ExtensionRangeOptions=(Rt.prototype.uninterpretedOption=d.emptyArray,Rt.prototype.declaration=d.emptyArray,Rt.prototype.features=null,Rt.prototype.verification=1,Rt.create=function(e){return new Rt(e)},Rt.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.declaration&&e.declaration.length)for(var n=0;n<e.declaration.length;++n)g.google.protobuf.ExtensionRangeOptions.Declaration.encode(e.declaration[n],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(n=0;n<e.uninterpretedOption.length;++n)g.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[n],t.uint32(7994).fork(),o+1).ldelim();return t},Rt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Rt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.ExtensionRangeOptions;e.pos<r;){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,n+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,n+1));break;case 50:i.features=g.google.protobuf.FeatureSet.decode(e,e.uint32(),void 0,n+1);break;case 3:i.verification=e.int32();break;default:e.skipType(7&a,n)}}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.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(n=g.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[o],t+1))return"uninterpretedOption."+n}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(n=g.google.protobuf.ExtensionRangeOptions.Declaration.verify(e.declaration[o],t+1))return"declaration."+n}var n;if(null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(n=g.google.protobuf.FeatureSet.verify(e.features,t+1)))return"features."+n;if(null!=e.verification&&Object.hasOwnProperty.call(e,"verification"))switch(e.verification){default:return"verification: enum value expected";case 0:case 1:}return null},Rt.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 n=0;n<e.uninterpretedOption.length;++n){if(!d.isObject(e.uninterpretedOption[n]))throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: object expected");o.uninterpretedOption[n]=g.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[n],t+1)}}if(e.declaration){if(!Array.isArray(e.declaration))throw TypeError(".google.protobuf.ExtensionRangeOptions.declaration: array expected");o.declaration=[];for(n=0;n<e.declaration.length;++n){if(!d.isObject(e.declaration[n]))throw TypeError(".google.protobuf.ExtensionRangeOptions.declaration: object expected");o.declaration[n]=g.google.protobuf.ExtensionRangeOptions.Declaration.fromObject(e.declaration[n],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},Rt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.declaration=[],n.uninterpretedOption=[]),t.defaults&&(n.verification=t.enums===String?"UNVERIFIED":1,n.features=null),e.declaration&&e.declaration.length){n.declaration=[];for(var r=0;r<e.declaration.length;++r)n.declaration[r]=g.google.protobuf.ExtensionRangeOptions.Declaration.toObject(e.declaration[r],t,o+1)}if(null!=e.verification&&Object.hasOwnProperty.call(e,"verification")&&(n.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")&&(n.features=g.google.protobuf.FeatureSet.toObject(e.features,t,o+1)),e.uninterpretedOption&&e.uninterpretedOption.length){n.uninterpretedOption=[];for(r=0;r<e.uninterpretedOption.length;++r)n.uninterpretedOption[r]=g.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[r],t,o+1)}return n},Rt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Rt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.ExtensionRangeOptions"},Rt.Declaration=(At.prototype.number=0,At.prototype.fullName="",At.prototype.type="",At.prototype.reserved=!1,At.prototype.repeated=!1,At.create=function(e){return new At(e)},At.encode=function(e,t,o){if(t=t||i.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},At.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},At.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.ExtensionRangeOptions.Declaration;e.pos<r;){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,n)}}return i},At.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},At.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},At.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},At.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},At.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},At.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.ExtensionRangeOptions.Declaration"},At),Rt.VerificationState=(o={},(t=Object.create(o))[o[0]="DECLARATION"]=0,t[o[1]="UNVERIFIED"]=1,t),Rt),r.FieldDescriptorProto=(D.prototype.name="",D.prototype.number=0,D.prototype.label=1,D.prototype.type=1,D.prototype.typeName="",D.prototype.extendee="",D.prototype.defaultValue="",D.prototype.oneofIndex=0,D.prototype.jsonName="",D.prototype.options=null,D.prototype.proto3Optional=!1,D.create=function(e){return new D(e)},D.encode=function(e,t,o){if(t=t||i.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},D.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},D.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FieldDescriptorProto;e.pos<r;){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,n+1);break;case 17:i.proto3Optional=e.bool();break;default:e.skipType(7&a,n)}}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.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},D.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},D.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};return t.defaults&&(n.name="",n.extendee="",n.number=0,n.label=t.enums===String?"LABEL_OPTIONAL":1,n.type=t.enums===String?"TYPE_DOUBLE":1,n.typeName="",n.defaultValue="",n.options=null,n.oneofIndex=0,n.jsonName="",n.proto3Optional=!1),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(n.name=e.name),null!=e.extendee&&Object.hasOwnProperty.call(e,"extendee")&&(n.extendee=e.extendee),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&(n.number=e.number),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&(n.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")&&(n.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")&&(n.typeName=e.typeName),null!=e.defaultValue&&Object.hasOwnProperty.call(e,"defaultValue")&&(n.defaultValue=e.defaultValue),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(n.options=g.google.protobuf.FieldOptions.toObject(e.options,t,o+1)),null!=e.oneofIndex&&Object.hasOwnProperty.call(e,"oneofIndex")&&(n.oneofIndex=e.oneofIndex),null!=e.jsonName&&Object.hasOwnProperty.call(e,"jsonName")&&(n.jsonName=e.jsonName),null!=e.proto3Optional&&Object.hasOwnProperty.call(e,"proto3Optional")&&(n.proto3Optional=e.proto3Optional),n},D.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},D.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FieldDescriptorProto"},D.Type=(o={},(t=Object.create(o))[o[1]="TYPE_DOUBLE"]=1,t[o[2]="TYPE_FLOAT"]=2,t[o[3]="TYPE_INT64"]=3,t[o[4]="TYPE_UINT64"]=4,t[o[5]="TYPE_INT32"]=5,t[o[6]="TYPE_FIXED64"]=6,t[o[7]="TYPE_FIXED32"]=7,t[o[8]="TYPE_BOOL"]=8,t[o[9]="TYPE_STRING"]=9,t[o[10]="TYPE_GROUP"]=10,t[o[11]="TYPE_MESSAGE"]=11,t[o[12]="TYPE_BYTES"]=12,t[o[13]="TYPE_UINT32"]=13,t[o[14]="TYPE_ENUM"]=14,t[o[15]="TYPE_SFIXED32"]=15,t[o[16]="TYPE_SFIXED64"]=16,t[o[17]="TYPE_SINT32"]=17,t[o[18]="TYPE_SINT64"]=18,t),D.Label=(o={},(t=Object.create(o))[o[1]="LABEL_OPTIONAL"]=1,t[o[3]="LABEL_REPEATED"]=3,t[o[2]="LABEL_REQUIRED"]=2,t),D),r.OneofDescriptorProto=(Lt.prototype.name="",Lt.prototype.options=null,Lt.create=function(e){return new Lt(e)},Lt.encode=function(e,t,o){if(t=t||i.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},Lt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Lt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.OneofDescriptorProto;e.pos<r;){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,n+1);break;default:e.skipType(7&a,n)}}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.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},Lt.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},Lt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};return t.defaults&&(n.name="",n.options=null),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(n.name=e.name),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(n.options=g.google.protobuf.OneofOptions.toObject(e.options,t,o+1)),n},Lt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Lt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.OneofDescriptorProto"},Lt),r.EnumDescriptorProto=(Nt.prototype.name="",Nt.prototype.value=d.emptyArray,Nt.prototype.options=null,Nt.prototype.reservedRange=d.emptyArray,Nt.prototype.reservedName=d.emptyArray,Nt.prototype.visibility=0,Nt.create=function(e){return new Nt(e)},Nt.encode=function(e,t,o){if(t=t||i.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 n=0;n<e.value.length;++n)g.google.protobuf.EnumValueDescriptorProto.encode(e.value[n],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(n=0;n<e.reservedRange.length;++n)g.google.protobuf.EnumDescriptorProto.EnumReservedRange.encode(e.reservedRange[n],t.uint32(34).fork(),o+1).ldelim();if(null!=e.reservedName&&e.reservedName.length)for(n=0;n<e.reservedName.length;++n)t.uint32(42).string(e.reservedName[n]);return null!=e.visibility&&Object.hasOwnProperty.call(e,"visibility")&&t.uint32(48).int32(e.visibility),t},Nt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Nt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.EnumDescriptorProto;e.pos<r;){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,n+1));break;case 3:i.options=g.google.protobuf.EnumOptions.decode(e,e.uint32(),void 0,n+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,n+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,n)}}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.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(n=g.google.protobuf.EnumValueDescriptorProto.verify(e.value[o],t+1))return"value."+n}if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(n=g.google.protobuf.EnumOptions.verify(e.options,t+1)))return"options."+n;if(null!=e.reservedRange&&Object.hasOwnProperty.call(e,"reservedRange")){if(!Array.isArray(e.reservedRange))return"reservedRange: array expected";for(var n,o=0;o<e.reservedRange.length;++o)if(n=g.google.protobuf.EnumDescriptorProto.EnumReservedRange.verify(e.reservedRange[o],t+1))return"reservedRange."+n}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},Nt.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 n=0;n<e.value.length;++n){if(!d.isObject(e.value[n]))throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected");o.value[n]=g.google.protobuf.EnumValueDescriptorProto.fromObject(e.value[n],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(n=0;n<e.reservedRange.length;++n){if(!d.isObject(e.reservedRange[n]))throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: object expected");o.reservedRange[n]=g.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromObject(e.reservedRange[n],t+1)}}if(e.reservedName){if(!Array.isArray(e.reservedName))throw TypeError(".google.protobuf.EnumDescriptorProto.reservedName: array expected");o.reservedName=[];for(n=0;n<e.reservedName.length;++n)o.reservedName[n]=String(e.reservedName[n])}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},Nt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.value=[],n.reservedRange=[],n.reservedName=[]),t.defaults&&(n.name="",n.options=null,n.visibility=t.enums===String?"VISIBILITY_UNSET":0),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(n.name=e.name),e.value&&e.value.length){n.value=[];for(var r=0;r<e.value.length;++r)n.value[r]=g.google.protobuf.EnumValueDescriptorProto.toObject(e.value[r],t,o+1)}if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(n.options=g.google.protobuf.EnumOptions.toObject(e.options,t,o+1)),e.reservedRange&&e.reservedRange.length){n.reservedRange=[];for(r=0;r<e.reservedRange.length;++r)n.reservedRange[r]=g.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(e.reservedRange[r],t,o+1)}if(e.reservedName&&e.reservedName.length){n.reservedName=[];for(r=0;r<e.reservedName.length;++r)n.reservedName[r]=e.reservedName[r]}return null!=e.visibility&&Object.hasOwnProperty.call(e,"visibility")&&(n.visibility=t.enums!==String||void 0===g.google.protobuf.SymbolVisibility[e.visibility]?e.visibility:g.google.protobuf.SymbolVisibility[e.visibility]),n},Nt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Nt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.EnumDescriptorProto"},Nt.EnumReservedRange=(_t.prototype.start=0,_t.prototype.end=0,_t.create=function(e){return new _t(e)},_t.encode=function(e,t,o){if(t=t||i.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},_t.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},_t.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.EnumDescriptorProto.EnumReservedRange;e.pos<r;){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,n)}}return i},_t.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},_t.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},_t.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},_t.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},_t.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_t.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.EnumDescriptorProto.EnumReservedRange"},_t),Nt),r.EnumValueDescriptorProto=(Ft.prototype.name="",Ft.prototype.number=0,Ft.prototype.options=null,Ft.create=function(e){return new Ft(e)},Ft.encode=function(e,t,o){if(t=t||i.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},Ft.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ft.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.EnumValueDescriptorProto;e.pos<r;){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,n+1);break;default:e.skipType(7&a,n)}}return i},Ft.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Ft.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},Ft.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},Ft.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};return t.defaults&&(n.name="",n.number=0,n.options=null),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(n.name=e.name),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&(n.number=e.number),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(n.options=g.google.protobuf.EnumValueOptions.toObject(e.options,t,o+1)),n},Ft.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Ft.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.EnumValueDescriptorProto"},Ft),r.ServiceDescriptorProto=(Ct.prototype.name="",Ct.prototype.method=d.emptyArray,Ct.prototype.options=null,Ct.create=function(e){return new Ct(e)},Ct.encode=function(e,t,o){if(t=t||i.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 n=0;n<e.method.length;++n)g.google.protobuf.MethodDescriptorProto.encode(e.method[n],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},Ct.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ct.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.ServiceDescriptorProto;e.pos<r;){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,n+1));break;case 3:i.options=g.google.protobuf.ServiceOptions.decode(e,e.uint32(),void 0,n+1);break;default:e.skipType(7&a,n)}}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.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(n=g.google.protobuf.MethodDescriptorProto.verify(e.method[o],t+1))return"method."+n}var n;if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(n=g.google.protobuf.ServiceOptions.verify(e.options,t+1)))return"options."+n;return null},Ct.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 n=0;n<e.method.length;++n){if(!d.isObject(e.method[n]))throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected");o.method[n]=g.google.protobuf.MethodDescriptorProto.fromObject(e.method[n],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},Ct.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.method=[]),t.defaults&&(n.name="",n.options=null),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(n.name=e.name),e.method&&e.method.length){n.method=[];for(var r=0;r<e.method.length;++r)n.method[r]=g.google.protobuf.MethodDescriptorProto.toObject(e.method[r],t,o+1)}return null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(n.options=g.google.protobuf.ServiceOptions.toObject(e.options,t,o+1)),n},Ct.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Ct.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.ServiceDescriptorProto"},Ct),r.MethodDescriptorProto=(Vt.prototype.name="",Vt.prototype.inputType="",Vt.prototype.outputType="",Vt.prototype.options=null,Vt.prototype.clientStreaming=!1,Vt.prototype.serverStreaming=!1,Vt.create=function(e){return new Vt(e)},Vt.encode=function(e,t,o){if(t=t||i.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},Vt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Vt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.MethodDescriptorProto;e.pos<r;){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,n+1);break;case 5:i.clientStreaming=e.bool();break;case 6:i.serverStreaming=e.bool();break;default:e.skipType(7&a,n)}}return i},Vt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Vt.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},Vt.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},Vt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};return t.defaults&&(n.name="",n.inputType="",n.outputType="",n.options=null,n.clientStreaming=!1,n.serverStreaming=!1),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&(n.name=e.name),null!=e.inputType&&Object.hasOwnProperty.call(e,"inputType")&&(n.inputType=e.inputType),null!=e.outputType&&Object.hasOwnProperty.call(e,"outputType")&&(n.outputType=e.outputType),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&(n.options=g.google.protobuf.MethodOptions.toObject(e.options,t,o+1)),null!=e.clientStreaming&&Object.hasOwnProperty.call(e,"clientStreaming")&&(n.clientStreaming=e.clientStreaming),null!=e.serverStreaming&&Object.hasOwnProperty.call(e,"serverStreaming")&&(n.serverStreaming=e.serverStreaming),n},Vt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Vt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.MethodDescriptorProto"},Vt),r.FileOptions=(R.prototype.javaPackage="",R.prototype.javaOuterClassname="",R.prototype.javaMultipleFiles=!1,R.prototype.javaGenerateEqualsAndHash=!1,R.prototype.javaStringCheckUtf8=!1,R.prototype.optimizeFor=1,R.prototype.goPackage="",R.prototype.ccGenericServices=!1,R.prototype.javaGenericServices=!1,R.prototype.pyGenericServices=!1,R.prototype.deprecated=!1,R.prototype.ccEnableArenas=!0,R.prototype.objcClassPrefix="",R.prototype.csharpNamespace="",R.prototype.swiftPrefix="",R.prototype.phpClassPrefix="",R.prototype.phpNamespace="",R.prototype.phpMetadataNamespace="",R.prototype.rubyPackage="",R.prototype.features=null,R.prototype.uninterpretedOption=d.emptyArray,R.prototype[".google.api.resourceDefinition"]=d.emptyArray,R.create=function(e){return new R(e)},R.encode=function(e,t,o){if(t=t||i.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 n=0;n<e.uninterpretedOption.length;++n)g.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[n],t.uint32(7994).fork(),o+1).ldelim();if(null!=e[".google.api.resourceDefinition"]&&e[".google.api.resourceDefinition"].length)for(n=0;n<e[".google.api.resourceDefinition"].length;++n)g.google.api.ResourceDescriptor.encode(e[".google.api.resourceDefinition"][n],t.uint32(8426).fork(),o+1).ldelim();return t},R.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},R.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FileOptions;e.pos<r;){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,n+1);break;case 999:i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(g.google.protobuf.UninterpretedOption.decode(e,e.uint32(),void 0,n+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,n+1));break;default:e.skipType(7&a,n)}}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.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")&&(n=g.google.protobuf.FeatureSet.verify(e.features,t+1)))return"features."+n;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(n=g.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[o],t+1))return"uninterpretedOption."+n}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 n,o=0;o<e[".google.api.resourceDefinition"].length;++o)if(n=g.google.api.ResourceDescriptor.verify(e[".google.api.resourceDefinition"][o],t+1))return".google.api.resourceDefinition."+n}return null},R.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 n=0;n<e.uninterpretedOption.length;++n){if(!d.isObject(e.uninterpretedOption[n]))throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: object expected");o.uninterpretedOption[n]=g.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[n],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(n=0;n<e[".google.api.resourceDefinition"].length;++n){if(!d.isObject(e[".google.api.resourceDefinition"][n]))throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: object expected");o[".google.api.resourceDefinition"][n]=g.google.api.ResourceDescriptor.fromObject(e[".google.api.resourceDefinition"][n],t+1)}}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 n={};if((t.arrays||t.defaults)&&(n.uninterpretedOption=[],n[".google.api.resourceDefinition"]=[]),t.defaults&&(n.javaPackage="",n.javaOuterClassname="",n.optimizeFor=t.enums===String?"SPEED":1,n.javaMultipleFiles=!1,n.goPackage="",n.ccGenericServices=!1,n.javaGenericServices=!1,n.pyGenericServices=!1,n.javaGenerateEqualsAndHash=!1,n.deprecated=!1,n.javaStringCheckUtf8=!1,n.ccEnableArenas=!0,n.objcClassPrefix="",n.csharpNamespace="",n.swiftPrefix="",n.phpClassPrefix="",n.phpNamespace="",n.phpMetadataNamespace="",n.rubyPackage="",n.features=null),null!=e.javaPackage&&Object.hasOwnProperty.call(e,"javaPackage")&&(n.javaPackage=e.javaPackage),null!=e.javaOuterClassname&&Object.hasOwnProperty.call(e,"javaOuterClassname")&&(n.javaOuterClassname=e.javaOuterClassname),null!=e.optimizeFor&&Object.hasOwnProperty.call(e,"optimizeFor")&&(n.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")&&(n.javaMultipleFiles=e.javaMultipleFiles),null!=e.goPackage&&Object.hasOwnProperty.call(e,"goPackage")&&(n.goPackage=e.goPackage),null!=e.ccGenericServices&&Object.hasOwnProperty.call(e,"ccGenericServices")&&(n.ccGenericServices=e.ccGenericServices),null!=e.javaGenericServices&&Object.hasOwnProperty.call(e,"javaGenericServices")&&(n.javaGenericServices=e.javaGenericServices),null!=e.pyGenericServices&&Object.hasOwnProperty.call(e,"pyGenericServices")&&(n.pyGenericServices=e.pyGenericServices),null!=e.javaGenerateEqualsAndHash&&Object.hasOwnProperty.call(e,"javaGenerateEqualsAndHash")&&(n.javaGenerateEqualsAndHash=e.javaGenerateEqualsAndHash),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&(n.deprecated=e.deprecated),null!=e.javaStringCheckUtf8&&Object.hasOwnProperty.call(e,"javaStringCheckUtf8")&&(n.javaStringCheckUtf8=e.javaStringCheckUtf8),null!=e.ccEnableArenas&&Object.hasOwnProperty.call(e,"ccEnableArenas")&&(n.ccEnableArenas=e.ccEnableArenas),null!=e.objcClassPrefix&&Object.hasOwnProperty.call(e,"objcClassPrefix")&&(n.objcClassPrefix=e.objcClassPrefix),null!=e.csharpNamespace&&Object.hasOwnProperty.call(e,"csharpNamespace")&&(n.csharpNamespace=e.csharpNamespace),null!=e.swiftPrefix&&Object.hasOwnProperty.call(e,"swiftPrefix")&&(n.swiftPrefix=e.swiftPrefix),null!=e.phpClassPrefix&&Object.hasOwnProperty.call(e,"phpClassPrefix")&&(n.phpClassPrefix=e.phpClassPrefix),null!=e.phpNamespace&&Object.hasOwnProperty.call(e,"phpNamespace")&&(n.phpNamespace=e.phpNamespace),null!=e.phpMetadataNamespace&&Object.hasOwnProperty.call(e,"phpMetadataNamespace")&&(n.phpMetadataNamespace=e.phpMetadataNamespace),null!=e.rubyPackage&&Object.hasOwnProperty.call(e,"rubyPackage")&&(n.rubyPackage=e.rubyPackage),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(n.features=g.google.protobuf.FeatureSet.toObject(e.features,t,o+1)),e.uninterpretedOption&&e.uninterpretedOption.length){n.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r)n.uninterpretedOption[r]=g.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[r],t,o+1)}if(e[".google.api.resourceDefinition"]&&e[".google.api.resourceDefinition"].length){n[".google.api.resourceDefinition"]=[];for(r=0;r<e[".google.api.resourceDefinition"].length;++r)n[".google.api.resourceDefinition"][r]=g.google.api.ResourceDescriptor.toObject(e[".google.api.resourceDefinition"][r],t,o+1)}return n},R.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},R.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FileOptions"},R.OptimizeMode=(o={},(t=Object.create(o))[o[1]="SPEED"]=1,t[o[2]="CODE_SIZE"]=2,t[o[3]="LITE_RUNTIME"]=3,t),R),r.MessageOptions=(A.prototype.messageSetWireFormat=!1,A.prototype.noStandardDescriptorAccessor=!1,A.prototype.deprecated=!1,A.prototype.mapEntry=!1,A.prototype.deprecatedLegacyJsonFieldConflicts=!1,A.prototype.features=null,A.prototype.uninterpretedOption=d.emptyArray,A.prototype[".google.api.resource"]=null,A.create=function(e){return new A(e)},A.encode=function(e,t,o){if(t=t||i.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 n=0;n<e.uninterpretedOption.length;++n)g.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[n],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},A.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},A.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.MessageOptions;e.pos<r;){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,n+1);break;case 999:i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(g.google.protobuf.UninterpretedOption.decode(e,e.uint32(),void 0,n+1));break;case 1053:i[".google.api.resource"]=g.google.api.ResourceDescriptor.decode(e,e.uint32(),void 0,n+1);break;default:e.skipType(7&a,n)}}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.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,n=0;n<e.uninterpretedOption.length;++n)if(o=g.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[n],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},A.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 n=0;n<e.uninterpretedOption.length;++n){if(!d.isObject(e.uninterpretedOption[n]))throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: object expected");o.uninterpretedOption[n]=g.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[n],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},A.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.uninterpretedOption=[]),t.defaults&&(n.messageSetWireFormat=!1,n.noStandardDescriptorAccessor=!1,n.deprecated=!1,n.mapEntry=!1,n.deprecatedLegacyJsonFieldConflicts=!1,n.features=null,n[".google.api.resource"]=null),null!=e.messageSetWireFormat&&Object.hasOwnProperty.call(e,"messageSetWireFormat")&&(n.messageSetWireFormat=e.messageSetWireFormat),null!=e.noStandardDescriptorAccessor&&Object.hasOwnProperty.call(e,"noStandardDescriptorAccessor")&&(n.noStandardDescriptorAccessor=e.noStandardDescriptorAccessor),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&(n.deprecated=e.deprecated),null!=e.mapEntry&&Object.hasOwnProperty.call(e,"mapEntry")&&(n.mapEntry=e.mapEntry),null!=e.deprecatedLegacyJsonFieldConflicts&&Object.hasOwnProperty.call(e,"deprecatedLegacyJsonFieldConflicts")&&(n.deprecatedLegacyJsonFieldConflicts=e.deprecatedLegacyJsonFieldConflicts),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(n.features=g.google.protobuf.FeatureSet.toObject(e.features,t,o+1)),e.uninterpretedOption&&e.uninterpretedOption.length){n.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r)n.uninterpretedOption[r]=g.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[r],t,o+1)}return null!=e[".google.api.resource"]&&Object.hasOwnProperty.call(e,".google.api.resource")&&(n[".google.api.resource"]=g.google.api.ResourceDescriptor.toObject(e[".google.api.resource"],t,o+1)),n},A.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},A.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.MessageOptions"},A),r.FieldOptions=(L.prototype.ctype=0,L.prototype.packed=!1,L.prototype.jstype=0,L.prototype.lazy=!1,L.prototype.unverifiedLazy=!1,L.prototype.deprecated=!1,L.prototype.weak=!1,L.prototype.debugRedact=!1,L.prototype.retention=0,L.prototype.targets=d.emptyArray,L.prototype.editionDefaults=d.emptyArray,L.prototype.features=null,L.prototype.featureSupport=null,L.prototype.uninterpretedOption=d.emptyArray,L.prototype[".google.api.fieldBehavior"]=d.emptyArray,L.prototype[".google.api.resourceReference"]=null,L.create=function(e){return new L(e)},L.encode=function(e,t,o){if(t=t||i.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 n=0;n<e.targets.length;++n)t.uint32(152).int32(e.targets[n]);if(null!=e.editionDefaults&&e.editionDefaults.length)for(n=0;n<e.editionDefaults.length;++n)g.google.protobuf.FieldOptions.EditionDefault.encode(e.editionDefaults[n],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(n=0;n<e.uninterpretedOption.length;++n)g.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[n],t.uint32(7994).fork(),o+1).ldelim();if(null!=e[".google.api.fieldBehavior"]&&e[".google.api.fieldBehavior"].length)for(n=0;n<e[".google.api.fieldBehavior"].length;++n)t.uint32(8416).int32(e[".google.api.fieldBehavior"][n]);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(),t},L.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},L.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FieldOptions;e.pos<r;){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 s=e.uint32()+e.pos;e.pos<s;)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,n+1));break;case 21:i.features=g.google.protobuf.FeatureSet.decode(e,e.uint32(),void 0,n+1);break;case 22:i.featureSupport=g.google.protobuf.FieldOptions.FeatureSupport.decode(e,e.uint32(),void 0,n+1);break;case 999:i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(g.google.protobuf.UninterpretedOption.decode(e,e.uint32(),void 0,n+1));break;case 1052:if(i[".google.api.fieldBehavior"]&&i[".google.api.fieldBehavior"].length||(i[".google.api.fieldBehavior"]=[]),2==(7&a))for(s=e.uint32()+e.pos;e.pos<s;)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,n+1);break;default:e.skipType(7&a,n)}}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.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(n=g.google.protobuf.FieldOptions.EditionDefault.verify(e.editionDefaults[o],t+1))return"editionDefaults."+n}if(null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(n=g.google.protobuf.FeatureSet.verify(e.features,t+1)))return"features."+n;if(null!=e.featureSupport&&Object.hasOwnProperty.call(e,"featureSupport")&&(n=g.google.protobuf.FieldOptions.FeatureSupport.verify(e.featureSupport,t+1)))return"featureSupport."+n;if(null!=e.uninterpretedOption&&Object.hasOwnProperty.call(e,"uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var n,o=0;o<e.uninterpretedOption.length;++o)if(n=g.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[o],t+1))return"uninterpretedOption."+n}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")&&(n=g.google.api.ResourceReference.verify(e[".google.api.resourceReference"],t+1)))return".google.api.resourceReference."+n;return null},L.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 n=0;n<e.targets.length;++n)switch(e.targets[n]){default:if("number"==typeof e.targets[n]){o.targets[n]=e.targets[n];break}case"TARGET_TYPE_UNKNOWN":case 0:o.targets[n]=0;break;case"TARGET_TYPE_FILE":case 1:o.targets[n]=1;break;case"TARGET_TYPE_EXTENSION_RANGE":case 2:o.targets[n]=2;break;case"TARGET_TYPE_MESSAGE":case 3:o.targets[n]=3;break;case"TARGET_TYPE_FIELD":case 4:o.targets[n]=4;break;case"TARGET_TYPE_ONEOF":case 5:o.targets[n]=5;break;case"TARGET_TYPE_ENUM":case 6:o.targets[n]=6;break;case"TARGET_TYPE_ENUM_ENTRY":case 7:o.targets[n]=7;break;case"TARGET_TYPE_SERVICE":case 8:o.targets[n]=8;break;case"TARGET_TYPE_METHOD":case 9:o.targets[n]=9}}if(e.editionDefaults){if(!Array.isArray(e.editionDefaults))throw TypeError(".google.protobuf.FieldOptions.editionDefaults: array expected");o.editionDefaults=[];for(n=0;n<e.editionDefaults.length;++n){if(!d.isObject(e.editionDefaults[n]))throw TypeError(".google.protobuf.FieldOptions.editionDefaults: object expected");o.editionDefaults[n]=g.google.protobuf.FieldOptions.EditionDefault.fromObject(e.editionDefaults[n],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(n=0;n<e.uninterpretedOption.length;++n){if(!d.isObject(e.uninterpretedOption[n]))throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: object expected");o.uninterpretedOption[n]=g.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[n],t+1)}}if(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(n=0;n<e[".google.api.fieldBehavior"].length;++n)switch(e[".google.api.fieldBehavior"][n]){default:if("number"==typeof e[".google.api.fieldBehavior"][n]){o[".google.api.fieldBehavior"][n]=e[".google.api.fieldBehavior"][n];break}case"FIELD_BEHAVIOR_UNSPECIFIED":case 0:o[".google.api.fieldBehavior"][n]=0;break;case"OPTIONAL":case 1:o[".google.api.fieldBehavior"][n]=1;break;case"REQUIRED":case 2:o[".google.api.fieldBehavior"][n]=2;break;case"OUTPUT_ONLY":case 3:o[".google.api.fieldBehavior"][n]=3;break;case"INPUT_ONLY":case 4:o[".google.api.fieldBehavior"][n]=4;break;case"IMMUTABLE":case 5:o[".google.api.fieldBehavior"][n]=5;break;case"UNORDERED_LIST":case 6:o[".google.api.fieldBehavior"][n]=6;break;case"NON_EMPTY_DEFAULT":case 7:o[".google.api.fieldBehavior"][n]=7;break;case"IDENTIFIER":case 8:o[".google.api.fieldBehavior"][n]=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},L.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.targets=[],n.editionDefaults=[],n.uninterpretedOption=[],n[".google.api.fieldBehavior"]=[]),t.defaults&&(n.ctype=t.enums===String?"STRING":0,n.packed=!1,n.deprecated=!1,n.lazy=!1,n.jstype=t.enums===String?"JS_NORMAL":0,n.weak=!1,n.unverifiedLazy=!1,n.debugRedact=!1,n.retention=t.enums===String?"RETENTION_UNKNOWN":0,n.features=null,n.featureSupport=null,n[".google.api.resourceReference"]=null),null!=e.ctype&&Object.hasOwnProperty.call(e,"ctype")&&(n.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")&&(n.packed=e.packed),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&(n.deprecated=e.deprecated),null!=e.lazy&&Object.hasOwnProperty.call(e,"lazy")&&(n.lazy=e.lazy),null!=e.jstype&&Object.hasOwnProperty.call(e,"jstype")&&(n.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")&&(n.weak=e.weak),null!=e.unverifiedLazy&&Object.hasOwnProperty.call(e,"unverifiedLazy")&&(n.unverifiedLazy=e.unverifiedLazy),null!=e.debugRedact&&Object.hasOwnProperty.call(e,"debugRedact")&&(n.debugRedact=e.debugRedact),null!=e.retention&&Object.hasOwnProperty.call(e,"retention")&&(n.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){n.targets=[];for(var r=0;r<e.targets.length;++r)n.targets[r]=t.enums!==String||void 0===g.google.protobuf.FieldOptions.OptionTargetType[e.targets[r]]?e.targets[r]:g.google.protobuf.FieldOptions.OptionTargetType[e.targets[r]]}if(e.editionDefaults&&e.editionDefaults.length){n.editionDefaults=[];for(r=0;r<e.editionDefaults.length;++r)n.editionDefaults[r]=g.google.protobuf.FieldOptions.EditionDefault.toObject(e.editionDefaults[r],t,o+1)}if(null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(n.features=g.google.protobuf.FeatureSet.toObject(e.features,t,o+1)),null!=e.featureSupport&&Object.hasOwnProperty.call(e,"featureSupport")&&(n.featureSupport=g.google.protobuf.FieldOptions.FeatureSupport.toObject(e.featureSupport,t,o+1)),e.uninterpretedOption&&e.uninterpretedOption.length){n.uninterpretedOption=[];for(r=0;r<e.uninterpretedOption.length;++r)n.uninterpretedOption[r]=g.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[r],t,o+1)}if(e[".google.api.fieldBehavior"]&&e[".google.api.fieldBehavior"].length){n[".google.api.fieldBehavior"]=[];for(r=0;r<e[".google.api.fieldBehavior"].length;++r)n[".google.api.fieldBehavior"][r]=t.enums!==String||void 0===g.google.api.FieldBehavior[e[".google.api.fieldBehavior"][r]]?e[".google.api.fieldBehavior"][r]:g.google.api.FieldBehavior[e[".google.api.fieldBehavior"][r]]}return null!=e[".google.api.resourceReference"]&&Object.hasOwnProperty.call(e,".google.api.resourceReference")&&(n[".google.api.resourceReference"]=g.google.api.ResourceReference.toObject(e[".google.api.resourceReference"],t,o+1)),n},L.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},L.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FieldOptions"},L.CType=(o={},(t=Object.create(o))[o[0]="STRING"]=0,t[o[1]="CORD"]=1,t[o[2]="STRING_PIECE"]=2,t),L.JSType=(o={},(t=Object.create(o))[o[0]="JS_NORMAL"]=0,t[o[1]="JS_STRING"]=1,t[o[2]="JS_NUMBER"]=2,t),L.OptionRetention=(o={},(t=Object.create(o))[o[0]="RETENTION_UNKNOWN"]=0,t[o[1]="RETENTION_RUNTIME"]=1,t[o[2]="RETENTION_SOURCE"]=2,t),L.OptionTargetType=(o={},(t=Object.create(o))[o[0]="TARGET_TYPE_UNKNOWN"]=0,t[o[1]="TARGET_TYPE_FILE"]=1,t[o[2]="TARGET_TYPE_EXTENSION_RANGE"]=2,t[o[3]="TARGET_TYPE_MESSAGE"]=3,t[o[4]="TARGET_TYPE_FIELD"]=4,t[o[5]="TARGET_TYPE_ONEOF"]=5,t[o[6]="TARGET_TYPE_ENUM"]=6,t[o[7]="TARGET_TYPE_ENUM_ENTRY"]=7,t[o[8]="TARGET_TYPE_SERVICE"]=8,t[o[9]="TARGET_TYPE_METHOD"]=9,t),L.EditionDefault=(Mt.prototype.edition=0,Mt.prototype.value="",Mt.create=function(e){return new Mt(e)},Mt.encode=function(e,t,o){if(t=t||i.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},Mt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Mt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FieldOptions.EditionDefault;e.pos<r;){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,n)}}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.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},Mt.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},Mt.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},Mt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Mt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FieldOptions.EditionDefault"},Mt),L.FeatureSupport=(Ut.prototype.editionIntroduced=0,Ut.prototype.editionDeprecated=0,Ut.prototype.deprecationWarning="",Ut.prototype.editionRemoved=0,Ut.create=function(e){return new Ut(e)},Ut.encode=function(e,t,o){if(t=t||i.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},Ut.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ut.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FieldOptions.FeatureSupport;e.pos<r;){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,n)}}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";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},Ut.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},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.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},Ut.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Ut.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FieldOptions.FeatureSupport"},Ut),L),r.OneofOptions=(Bt.prototype.features=null,Bt.prototype.uninterpretedOption=d.emptyArray,Bt.create=function(e){return new Bt(e)},Bt.encode=function(e,t,o){if(t=t||i.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 n=0;n<e.uninterpretedOption.length;++n)g.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[n],t.uint32(7994).fork(),o+1).ldelim();return t},Bt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Bt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.OneofOptions;e.pos<r;){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,n+1);break;case 999:i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(g.google.protobuf.UninterpretedOption.decode(e,e.uint32(),void 0,n+1));break;default:e.skipType(7&a,n)}}return i},Bt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Bt.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,n=0;n<e.uninterpretedOption.length;++n)if(o=g.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[n],t+1))return"uninterpretedOption."+o}return null},Bt.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 n=0;n<e.uninterpretedOption.length;++n){if(!d.isObject(e.uninterpretedOption[n]))throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: object expected");o.uninterpretedOption[n]=g.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[n],t+1)}}return o},Bt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.uninterpretedOption=[]),t.defaults&&(n.features=null),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(n.features=g.google.protobuf.FeatureSet.toObject(e.features,t,o+1)),e.uninterpretedOption&&e.uninterpretedOption.length){n.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r)n.uninterpretedOption[r]=g.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[r],t,o+1)}return n},Bt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Bt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.OneofOptions"},Bt),r.EnumOptions=(Gt.prototype.allowAlias=!1,Gt.prototype.deprecated=!1,Gt.prototype.deprecatedLegacyJsonFieldConflicts=!1,Gt.prototype.features=null,Gt.prototype.uninterpretedOption=d.emptyArray,Gt.create=function(e){return new Gt(e)},Gt.encode=function(e,t,o){if(t=t||i.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 n=0;n<e.uninterpretedOption.length;++n)g.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[n],t.uint32(7994).fork(),o+1).ldelim();return t},Gt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Gt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.EnumOptions;e.pos<r;){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,n+1);break;case 999:i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(g.google.protobuf.UninterpretedOption.decode(e,e.uint32(),void 0,n+1));break;default:e.skipType(7&a,n)}}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.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,n=0;n<e.uninterpretedOption.length;++n)if(o=g.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[n],t+1))return"uninterpretedOption."+o}return null},Gt.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 n=0;n<e.uninterpretedOption.length;++n){if(!d.isObject(e.uninterpretedOption[n]))throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: object expected");o.uninterpretedOption[n]=g.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[n],t+1)}}return o},Gt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.uninterpretedOption=[]),t.defaults&&(n.allowAlias=!1,n.deprecated=!1,n.deprecatedLegacyJsonFieldConflicts=!1,n.features=null),null!=e.allowAlias&&Object.hasOwnProperty.call(e,"allowAlias")&&(n.allowAlias=e.allowAlias),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&(n.deprecated=e.deprecated),null!=e.deprecatedLegacyJsonFieldConflicts&&Object.hasOwnProperty.call(e,"deprecatedLegacyJsonFieldConflicts")&&(n.deprecatedLegacyJsonFieldConflicts=e.deprecatedLegacyJsonFieldConflicts),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(n.features=g.google.protobuf.FeatureSet.toObject(e.features,t,o+1)),e.uninterpretedOption&&e.uninterpretedOption.length){n.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r)n.uninterpretedOption[r]=g.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[r],t,o+1)}return n},Gt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Gt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.EnumOptions"},Gt),r.EnumValueOptions=(Jt.prototype.deprecated=!1,Jt.prototype.features=null,Jt.prototype.debugRedact=!1,Jt.prototype.featureSupport=null,Jt.prototype.uninterpretedOption=d.emptyArray,Jt.create=function(e){return new Jt(e)},Jt.encode=function(e,t,o){if(t=t||i.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 n=0;n<e.uninterpretedOption.length;++n)g.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[n],t.uint32(7994).fork(),o+1).ldelim();return t},Jt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Jt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.EnumValueOptions;e.pos<r;){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,n+1);break;case 3:i.debugRedact=e.bool();break;case 4:i.featureSupport=g.google.protobuf.FieldOptions.FeatureSupport.decode(e,e.uint32(),void 0,n+1);break;case 999:i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(g.google.protobuf.UninterpretedOption.decode(e,e.uint32(),void 0,n+1));break;default:e.skipType(7&a,n)}}return i},Jt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Jt.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,n=0;n<e.uninterpretedOption.length;++n)if(o=g.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[n],t+1))return"uninterpretedOption."+o}return null},Jt.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 n=0;n<e.uninterpretedOption.length;++n){if(!d.isObject(e.uninterpretedOption[n]))throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: object expected");o.uninterpretedOption[n]=g.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[n],t+1)}}return o},Jt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.uninterpretedOption=[]),t.defaults&&(n.deprecated=!1,n.features=null,n.debugRedact=!1,n.featureSupport=null),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&(n.deprecated=e.deprecated),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(n.features=g.google.protobuf.FeatureSet.toObject(e.features,t,o+1)),null!=e.debugRedact&&Object.hasOwnProperty.call(e,"debugRedact")&&(n.debugRedact=e.debugRedact),null!=e.featureSupport&&Object.hasOwnProperty.call(e,"featureSupport")&&(n.featureSupport=g.google.protobuf.FieldOptions.FeatureSupport.toObject(e.featureSupport,t,o+1)),e.uninterpretedOption&&e.uninterpretedOption.length){n.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r)n.uninterpretedOption[r]=g.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[r],t,o+1)}return n},Jt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Jt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.EnumValueOptions"},Jt),r.ServiceOptions=(qt.prototype.features=null,qt.prototype.deprecated=!1,qt.prototype.uninterpretedOption=d.emptyArray,qt.prototype[".google.api.defaultHost"]="",qt.prototype[".google.api.oauthScopes"]="",qt.prototype[".google.api.apiVersion"]="",qt.create=function(e){return new qt(e)},qt.encode=function(e,t,o){if(t=t||i.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 n=0;n<e.uninterpretedOption.length;++n)g.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[n],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},qt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},qt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.ServiceOptions;e.pos<r;){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,n+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,n+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,n)}}return i},qt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},qt.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,n=0;n<e.uninterpretedOption.length;++n)if(o=g.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[n],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},qt.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 n=0;n<e.uninterpretedOption.length;++n){if(!d.isObject(e.uninterpretedOption[n]))throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: object expected");o.uninterpretedOption[n]=g.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[n],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},qt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.uninterpretedOption=[]),t.defaults&&(n.deprecated=!1,n.features=null,n[".google.api.defaultHost"]="",n[".google.api.oauthScopes"]="",n[".google.api.apiVersion"]=""),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&(n.deprecated=e.deprecated),null!=e.features&&Object.hasOwnProperty.call(e,"features")&&(n.features=g.google.protobuf.FeatureSet.toObject(e.features,t,o+1)),e.uninterpretedOption&&e.uninterpretedOption.length){n.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r)n.uninterpretedOption[r]=g.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[r],t,o+1)}return null!=e[".google.api.defaultHost"]&&Object.hasOwnProperty.call(e,".google.api.defaultHost")&&(n[".google.api.defaultHost"]=e[".google.api.defaultHost"]),null!=e[".google.api.oauthScopes"]&&Object.hasOwnProperty.call(e,".google.api.oauthScopes")&&(n[".google.api.oauthScopes"]=e[".google.api.oauthScopes"]),null!=e[".google.api.apiVersion"]&&Object.hasOwnProperty.call(e,".google.api.apiVersion")&&(n[".google.api.apiVersion"]=e[".google.api.apiVersion"]),n},qt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},qt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.ServiceOptions"},qt),r.MethodOptions=(zt.prototype.deprecated=!1,zt.prototype.idempotencyLevel=0,zt.prototype.features=null,zt.prototype.uninterpretedOption=d.emptyArray,zt.prototype[".google.api.http"]=null,zt.prototype[".google.api.methodSignature"]=d.emptyArray,zt.create=function(e){return new zt(e)},zt.encode=function(e,t,o){if(t=t||i.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 n=0;n<e.uninterpretedOption.length;++n)g.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[n],t.uint32(7994).fork(),o+1).ldelim();if(null!=e[".google.api.methodSignature"]&&e[".google.api.methodSignature"].length)for(n=0;n<e[".google.api.methodSignature"].length;++n)t.uint32(8410).string(e[".google.api.methodSignature"][n]);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},zt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},zt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.MethodOptions;e.pos<r;){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,n+1);break;case 999:i.uninterpretedOption&&i.uninterpretedOption.length||(i.uninterpretedOption=[]),i.uninterpretedOption.push(g.google.protobuf.UninterpretedOption.decode(e,e.uint32(),void 0,n+1));break;case 72295728:i[".google.api.http"]=g.google.api.HttpRule.decode(e,e.uint32(),void 0,n+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,n)}}return i},zt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},zt.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,n=0;n<e.uninterpretedOption.length;++n)if(o=g.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[n],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(n=0;n<e[".google.api.methodSignature"].length;++n)if(!d.isString(e[".google.api.methodSignature"][n]))return".google.api.methodSignature: string[] expected"}return null},zt.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 n=0;n<e.uninterpretedOption.length;++n){if(!d.isObject(e.uninterpretedOption[n]))throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: object expected");o.uninterpretedOption[n]=g.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[n],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(n=0;n<e[".google.api.methodSignature"].length;++n)o[".google.api.methodSignature"][n]=String(e[".google.api.methodSignature"][n])}return o},zt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.uninterpretedOption=[],n[".google.api.methodSignature"]=[]),t.defaults&&(n.deprecated=!1,n.idempotencyLevel=t.enums===String?"IDEMPOTENCY_UNKNOWN":0,n.features=null,n[".google.api.http"]=null),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&(n.deprecated=e.deprecated),null!=e.idempotencyLevel&&Object.hasOwnProperty.call(e,"idempotencyLevel")&&(n.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")&&(n.features=g.google.protobuf.FeatureSet.toObject(e.features,t,o+1)),e.uninterpretedOption&&e.uninterpretedOption.length){n.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r)n.uninterpretedOption[r]=g.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[r],t,o+1)}if(e[".google.api.methodSignature"]&&e[".google.api.methodSignature"].length){n[".google.api.methodSignature"]=[];for(r=0;r<e[".google.api.methodSignature"].length;++r)n[".google.api.methodSignature"][r]=e[".google.api.methodSignature"][r]}return null!=e[".google.api.http"]&&Object.hasOwnProperty.call(e,".google.api.http")&&(n[".google.api.http"]=g.google.api.HttpRule.toObject(e[".google.api.http"],t,o+1)),n},zt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},zt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.MethodOptions"},zt.IdempotencyLevel=(o={},(t=Object.create(o))[o[0]="IDEMPOTENCY_UNKNOWN"]=0,t[o[1]="NO_SIDE_EFFECTS"]=1,t[o[2]="IDEMPOTENT"]=2,t),zt),r.UninterpretedOption=(N.prototype.name=d.emptyArray,N.prototype.identifierValue="",N.prototype.positiveIntValue=d.Long?d.Long.fromBits(0,0,!0):0,N.prototype.negativeIntValue=d.Long?d.Long.fromBits(0,0,!1):0,N.prototype.doubleValue=0,N.prototype.stringValue=d.newBuffer([]),N.prototype.aggregateValue="",N.create=function(e){return new N(e)},N.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.name&&e.name.length)for(var n=0;n<e.name.length;++n)g.google.protobuf.UninterpretedOption.NamePart.encode(e.name[n],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},N.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},N.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.UninterpretedOption;e.pos<r;){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,n+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,n)}}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.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 n=g.google.protobuf.UninterpretedOption.NamePart.verify(e.name[o],t+1);if(n)return"name."+n}}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},N.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 n=0;n<e.name.length;++n){if(!d.isObject(e.name[n]))throw TypeError(".google.protobuf.UninterpretedOption.name: object expected");o.name[n]=g.google.protobuf.UninterpretedOption.NamePart.fromObject(e.name[n],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},N.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n,r={};if((t.arrays||t.defaults)&&(r.name=[]),t.defaults&&(r.identifierValue="",d.Long?(n=new d.Long(0,0,!0),r.positiveIntValue=t.longs===String?n.toString():t.longs===Number?n.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?n.toBigInt():n):r.positiveIntValue=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,d.Long?(n=new d.Long(0,0,!1),r.negativeIntValue=t.longs===String?n.toString():t.longs===Number?n.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?n.toBigInt():n):r.negativeIntValue=t.longs===String?"0":"undefined"!=typeof BigInt&&t.longs===BigInt?BigInt("0"):0,r.doubleValue=0,t.bytes===String?r.stringValue="":(r.stringValue=[],t.bytes!==Array&&(r.stringValue=d.newBuffer(r.stringValue))),r.aggregateValue=""),e.name&&e.name.length){r.name=[];for(var i=0;i<e.name.length;++i)r.name[i]=g.google.protobuf.UninterpretedOption.NamePart.toObject(e.name[i],t,o+1)}return null!=e.identifierValue&&Object.hasOwnProperty.call(e,"identifierValue")&&(r.identifierValue=e.identifierValue),null!=e.positiveIntValue&&Object.hasOwnProperty.call(e,"positiveIntValue")&&("undefined"!=typeof BigInt&&t.longs===BigInt?r.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?r.positiveIntValue=t.longs===String?String(e.positiveIntValue):e.positiveIntValue:r.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?r.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?r.negativeIntValue=t.longs===String?String(e.negativeIntValue):e.negativeIntValue:r.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")&&(r.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue),null!=e.stringValue&&Object.hasOwnProperty.call(e,"stringValue")&&(r.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")&&(r.aggregateValue=e.aggregateValue),r},N.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},N.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.UninterpretedOption"},N.NamePart=(Ht.prototype.namePart="",Ht.prototype.isExtension=!1,Ht.create=function(e){return new Ht(e)},Ht.encode=function(e,t,o){if(t=t||i.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},Ht.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Ht.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.UninterpretedOption.NamePart;e.pos<r;){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,n)}}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})},Ht.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Ht.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"},Ht.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},Ht.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},Ht.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Ht.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.UninterpretedOption.NamePart"},Ht),N),r.FeatureSet=(_.prototype.fieldPresence=0,_.prototype.enumType=0,_.prototype.repeatedFieldEncoding=0,_.prototype.utf8Validation=0,_.prototype.messageEncoding=0,_.prototype.jsonFormat=0,_.prototype.enforceNamingStyle=0,_.prototype.defaultSymbolVisibility=0,_.create=function(e){return new _(e)},_.encode=function(e,t,o){if(t=t||i.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},_.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},_.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FeatureSet;e.pos<r;){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,n)}}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.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},_.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},_.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},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FeatureSet"},_.FieldPresence=(o={},(t=Object.create(o))[o[0]="FIELD_PRESENCE_UNKNOWN"]=0,t[o[1]="EXPLICIT"]=1,t[o[2]="IMPLICIT"]=2,t[o[3]="LEGACY_REQUIRED"]=3,t),_.EnumType=(o={},(t=Object.create(o))[o[0]="ENUM_TYPE_UNKNOWN"]=0,t[o[1]="OPEN"]=1,t[o[2]="CLOSED"]=2,t),_.RepeatedFieldEncoding=(o={},(t=Object.create(o))[o[0]="REPEATED_FIELD_ENCODING_UNKNOWN"]=0,t[o[1]="PACKED"]=1,t[o[2]="EXPANDED"]=2,t),_.Utf8Validation=(o={},(t=Object.create(o))[o[0]="UTF8_VALIDATION_UNKNOWN"]=0,t[o[2]="VERIFY"]=2,t[o[3]="NONE"]=3,t),_.MessageEncoding=(o={},(t=Object.create(o))[o[0]="MESSAGE_ENCODING_UNKNOWN"]=0,t[o[1]="LENGTH_PREFIXED"]=1,t[o[2]="DELIMITED"]=2,t),_.JsonFormat=(o={},(t=Object.create(o))[o[0]="JSON_FORMAT_UNKNOWN"]=0,t[o[1]="ALLOW"]=1,t[o[2]="LEGACY_BEST_EFFORT"]=2,t),_.EnforceNamingStyle=(o={},(t=Object.create(o))[o[0]="ENFORCE_NAMING_STYLE_UNKNOWN"]=0,t[o[1]="STYLE2024"]=1,t[o[2]="STYLE_LEGACY"]=2,t),_.VisibilityFeature=(Yt.create=function(e){return new Yt(e)},Yt.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return t},Yt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Yt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,t=new g.google.protobuf.FeatureSet.VisibilityFeature;e.pos<r;){var i=e.uint32();if(i===o)break;e.skipType(7&i,n)}return t},Yt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Yt.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},Yt.fromObject=function(e,t){return e instanceof g.google.protobuf.FeatureSet.VisibilityFeature?e:new g.google.protobuf.FeatureSet.VisibilityFeature},Yt.toObject=function(){return{}},Yt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Yt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FeatureSet.VisibilityFeature"},Yt.DefaultSymbolVisibility=(o={},(t=Object.create(o))[o[0]="DEFAULT_SYMBOL_VISIBILITY_UNKNOWN"]=0,t[o[1]="EXPORT_ALL"]=1,t[o[2]="EXPORT_TOP_LEVEL"]=2,t[o[3]="LOCAL_ALL"]=3,t[o[4]="STRICT"]=4,t),Yt),_),r.FeatureSetDefaults=(Kt.prototype.defaults=d.emptyArray,Kt.prototype.minimumEdition=0,Kt.prototype.maximumEdition=0,Kt.create=function(e){return new Kt(e)},Kt.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.defaults&&e.defaults.length)for(var n=0;n<e.defaults.length;++n)g.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.encode(e.defaults[n],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},Kt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Kt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FeatureSetDefaults;e.pos<r;){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,n+1));break;case 4:i.minimumEdition=e.int32();break;case 5:i.maximumEdition=e.int32();break;default:e.skipType(7&a,n)}}return i},Kt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Kt.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 n=g.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify(e.defaults[o],t+1);if(n)return"defaults."+n}}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},Kt.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 n=0;n<e.defaults.length;++n){if(!d.isObject(e.defaults[n]))throw TypeError(".google.protobuf.FeatureSetDefaults.defaults: object expected");o.defaults[n]=g.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fromObject(e.defaults[n],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},Kt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.defaults=[]),t.defaults&&(n.minimumEdition=t.enums===String?"EDITION_UNKNOWN":0,n.maximumEdition=t.enums===String?"EDITION_UNKNOWN":0),e.defaults&&e.defaults.length){n.defaults=[];for(var r=0;r<e.defaults.length;++r)n.defaults[r]=g.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.toObject(e.defaults[r],t,o+1)}return null!=e.minimumEdition&&Object.hasOwnProperty.call(e,"minimumEdition")&&(n.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")&&(n.maximumEdition=t.enums!==String||void 0===g.google.protobuf.Edition[e.maximumEdition]?e.maximumEdition:g.google.protobuf.Edition[e.maximumEdition]),n},Kt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Kt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FeatureSetDefaults"},Kt.FeatureSetEditionDefault=(Wt.prototype.edition=0,Wt.prototype.overridableFeatures=null,Wt.prototype.fixedFeatures=null,Wt.create=function(e){return new Wt(e)},Wt.encode=function(e,t,o){if(t=t||i.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},Wt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Wt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;e.pos<r;){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,n+1);break;case 5:i.fixedFeatures=g.google.protobuf.FeatureSet.decode(e,e.uint32(),void 0,n+1);break;default:e.skipType(7&a,n)}}return i},Wt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Wt.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},Wt.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},Wt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};return t.defaults&&(n.edition=t.enums===String?"EDITION_UNKNOWN":0,n.overridableFeatures=null,n.fixedFeatures=null),null!=e.edition&&Object.hasOwnProperty.call(e,"edition")&&(n.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")&&(n.overridableFeatures=g.google.protobuf.FeatureSet.toObject(e.overridableFeatures,t,o+1)),null!=e.fixedFeatures&&Object.hasOwnProperty.call(e,"fixedFeatures")&&(n.fixedFeatures=g.google.protobuf.FeatureSet.toObject(e.fixedFeatures,t,o+1)),n},Wt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Wt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault"},Wt),Kt),r.SourceCodeInfo=(Xt.prototype.location=d.emptyArray,Xt.create=function(e){return new Xt(e)},Xt.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.location&&e.location.length)for(var n=0;n<e.location.length;++n)g.google.protobuf.SourceCodeInfo.Location.encode(e.location[n],t.uint32(10).fork(),o+1).ldelim();return t},Xt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Xt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.SourceCodeInfo;e.pos<r;){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,n+1))):e.skipType(7&a,n)}return i},Xt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Xt.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 n=g.google.protobuf.SourceCodeInfo.Location.verify(e.location[o],t+1);if(n)return"location."+n}}return null},Xt.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 n=0;n<e.location.length;++n){if(!d.isObject(e.location[n]))throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected");o.location[n]=g.google.protobuf.SourceCodeInfo.Location.fromObject(e.location[n],t+1)}}return o},Xt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.location=[]),e.location&&e.location.length){n.location=[];for(var r=0;r<e.location.length;++r)n.location[r]=g.google.protobuf.SourceCodeInfo.Location.toObject(e.location[r],t,o+1)}return n},Xt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Xt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.SourceCodeInfo"},Xt.Location=(Qt.prototype.path=d.emptyArray,Qt.prototype.span=d.emptyArray,Qt.prototype.leadingComments="",Qt.prototype.trailingComments="",Qt.prototype.leadingDetachedComments=d.emptyArray,Qt.create=function(e){return new Qt(e)},Qt.encode=function(e,t,o){if(t=t||i.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 n=0;n<e.path.length;++n)t.int32(e.path[n]);t.ldelim()}if(null!=e.span&&e.span.length){t.uint32(18).fork();for(n=0;n<e.span.length;++n)t.int32(e.span[n]);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(n=0;n<e.leadingDetachedComments.length;++n)t.uint32(50).string(e.leadingDetachedComments[n]);return t},Qt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Qt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.SourceCodeInfo.Location;e.pos<r;){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 s=e.uint32()+e.pos;e.pos<s;)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(s=e.uint32()+e.pos;e.pos<s;)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,n)}}return i},Qt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Qt.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},Qt.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 n=0;n<e.path.length;++n)o.path[n]=0|e.path[n]}if(e.span){if(!Array.isArray(e.span))throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected");o.span=[];for(n=0;n<e.span.length;++n)o.span[n]=0|e.span[n]}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(n=0;n<e.leadingDetachedComments.length;++n)o.leadingDetachedComments[n]=String(e.leadingDetachedComments[n])}return o},Qt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.path=[],n.span=[],n.leadingDetachedComments=[]),t.defaults&&(n.leadingComments="",n.trailingComments=""),e.path&&e.path.length){n.path=[];for(var r=0;r<e.path.length;++r)n.path[r]=e.path[r]}if(e.span&&e.span.length){n.span=[];for(r=0;r<e.span.length;++r)n.span[r]=e.span[r]}if(null!=e.leadingComments&&Object.hasOwnProperty.call(e,"leadingComments")&&(n.leadingComments=e.leadingComments),null!=e.trailingComments&&Object.hasOwnProperty.call(e,"trailingComments")&&(n.trailingComments=e.trailingComments),e.leadingDetachedComments&&e.leadingDetachedComments.length){n.leadingDetachedComments=[];for(r=0;r<e.leadingDetachedComments.length;++r)n.leadingDetachedComments[r]=e.leadingDetachedComments[r]}return n},Qt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Qt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.SourceCodeInfo.Location"},Qt),Xt),r.GeneratedCodeInfo=(Zt.prototype.annotation=d.emptyArray,Zt.create=function(e){return new Zt(e)},Zt.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.annotation&&e.annotation.length)for(var n=0;n<e.annotation.length;++n)g.google.protobuf.GeneratedCodeInfo.Annotation.encode(e.annotation[n],t.uint32(10).fork(),o+1).ldelim();return t},Zt.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},Zt.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.GeneratedCodeInfo;e.pos<r;){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,n+1))):e.skipType(7&a,n)}return i},Zt.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},Zt.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 n=g.google.protobuf.GeneratedCodeInfo.Annotation.verify(e.annotation[o],t+1);if(n)return"annotation."+n}}return null},Zt.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 n=0;n<e.annotation.length;++n){if(!d.isObject(e.annotation[n]))throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected");o.annotation[n]=g.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(e.annotation[n],t+1)}}return o},Zt.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.annotation=[]),e.annotation&&e.annotation.length){n.annotation=[];for(var r=0;r<e.annotation.length;++r)n.annotation[r]=g.google.protobuf.GeneratedCodeInfo.Annotation.toObject(e.annotation[r],t,o+1)}return n},Zt.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Zt.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.GeneratedCodeInfo"},Zt.Annotation=($t.prototype.path=d.emptyArray,$t.prototype.sourceFile="",$t.prototype.begin=0,$t.prototype.end=0,$t.prototype.semantic=0,$t.create=function(e){return new $t(e)},$t.encode=function(e,t,o){if(t=t||i.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 n=0;n<e.path.length;++n)t.int32(e.path[n]);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},$t.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},$t.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.GeneratedCodeInfo.Annotation;e.pos<r;){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 s=e.uint32()+e.pos;e.pos<s;)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,n)}}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.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},$t.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 n=0;n<e.path.length;++n)o.path[n]=0|e.path[n]}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},$t.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.path=[]),t.defaults&&(n.sourceFile="",n.begin=0,n.end=0,n.semantic=t.enums===String?"NONE":0),e.path&&e.path.length){n.path=[];for(var r=0;r<e.path.length;++r)n.path[r]=e.path[r]}return null!=e.sourceFile&&Object.hasOwnProperty.call(e,"sourceFile")&&(n.sourceFile=e.sourceFile),null!=e.begin&&Object.hasOwnProperty.call(e,"begin")&&(n.begin=e.begin),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&(n.end=e.end),null!=e.semantic&&Object.hasOwnProperty.call(e,"semantic")&&(n.semantic=t.enums!==String||void 0===g.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[e.semantic]?e.semantic:g.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[e.semantic]),n},$t.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},$t.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.GeneratedCodeInfo.Annotation"},$t.Semantic=(o={},(t=Object.create(o))[o[0]="NONE"]=0,t[o[1]="SET"]=1,t[o[2]="ALIAS"]=2,t),$t),Zt),r.SymbolVisibility=(o={},(t=Object.create(o))[o[0]="VISIBILITY_UNSET"]=0,t[o[1]="VISIBILITY_LOCAL"]=1,t[o[2]="VISIBILITY_EXPORT"]=2,t),r.Duration=(eo.prototype.seconds=d.Long?d.Long.fromBits(0,0,!1):0,eo.prototype.nanos=0,eo.create=function(e){return new eo(e)},eo.encode=function(e,t,o){if(t=t||i.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},eo.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},eo.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.Duration;e.pos<r;){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,n)}}return i},eo.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},eo.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},eo.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},eo.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n,o={};return t.defaults&&(d.Long?(n=new d.Long(0,0,!1),o.seconds=t.longs===String?n.toString():t.longs===Number?n.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?n.toBigInt():n):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},eo.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},eo.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.Duration"},eo),r.Empty=(to.create=function(e){return new to(e)},to.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return t},to.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},to.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,t=new g.google.protobuf.Empty;e.pos<r;){var i=e.uint32();if(i===o)break;e.skipType(7&i,n)}return t},to.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},to.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},to.fromObject=function(e,t){return e instanceof g.google.protobuf.Empty?e:new g.google.protobuf.Empty},to.toObject=function(){return{}},to.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},to.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.Empty"},to),r.FieldMask=(oo.prototype.paths=d.emptyArray,oo.create=function(e){return new oo(e)},oo.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.paths&&e.paths.length)for(var n=0;n<e.paths.length;++n)t.uint32(10).string(e.paths[n]);return t},oo.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},oo.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.FieldMask;e.pos<r;){var a=e.uint32();if(a===o)break;a>>>3==1?(i.paths&&i.paths.length||(i.paths=[]),i.paths.push(e.string())):e.skipType(7&a,n)}return i},oo.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},oo.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.paths&&Object.hasOwnProperty.call(e,"paths")){if(!Array.isArray(e.paths))return"paths: array expected";for(var o=0;o<e.paths.length;++o)if(!d.isString(e.paths[o]))return"paths: string[] expected"}return null},oo.fromObject=function(e,t){if(e instanceof g.google.protobuf.FieldMask)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.FieldMask: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.FieldMask;if(e.paths){if(!Array.isArray(e.paths))throw TypeError(".google.protobuf.FieldMask.paths: array expected");o.paths=[];for(var n=0;n<e.paths.length;++n)o.paths[n]=String(e.paths[n])}return o},oo.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.paths=[]),e.paths&&e.paths.length){n.paths=[];for(var r=0;r<e.paths.length;++r)n.paths[r]=e.paths[r]}return n},oo.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},oo.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.FieldMask"},oo),r.Struct=(no.prototype.fields=d.emptyObject,no.create=function(e){return new no(e)},no.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.fields&&Object.hasOwnProperty.call(e,"fields"))for(var n=Object.keys(e.fields),r=0;r<n.length;++r)t.uint32(10).fork().uint32(10).string(n[r]),g.google.protobuf.Value.encode(e.fields[n[r]],t.uint32(18).fork(),o+1).ldelim().ldelim();return t},no.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},no.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.Struct;e.pos<r;){var a=e.uint32();if(a===o)break;if(a>>>3==1){i.fields===d.emptyObject&&(i.fields={});for(var s=e.uint32()+e.pos,c="",l=null;e.pos<s;){var u=e.uint32();switch(u>>>3){case 1:c=e.string();break;case 2:l=g.google.protobuf.Value.decode(e,e.uint32(),void 0,n+1);break;default:e.skipType(7&u,n)}}"__proto__"===c&&d.makeProp(i.fields,c),i.fields[c]=l}else e.skipType(7&a,n)}return i},no.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},no.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(!d.isObject(e.fields))return"fields: object expected";for(var o=Object.keys(e.fields),n=0;n<o.length;++n){var r=g.google.protobuf.Value.verify(e.fields[o[n]],t+1);if(r)return"fields."+r}}return null},no.fromObject=function(e,t){if(e instanceof g.google.protobuf.Struct)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.Struct: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.Struct;if(e.fields){if(!d.isObject(e.fields))throw TypeError(".google.protobuf.Struct.fields: object expected");o.fields={};for(var n=Object.keys(e.fields),r=0;r<n.length;++r){if("__proto__"===n[r]&&d.makeProp(o.fields,n[r]),!d.isObject(e.fields[n[r]]))throw TypeError(".google.protobuf.Struct.fields: object expected");o.fields[n[r]]=g.google.protobuf.Value.fromObject(e.fields[n[r]],t+1)}}return o},no.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n,r={};if((t.objects||t.defaults)&&(r.fields={}),e.fields&&(n=Object.keys(e.fields)).length){r.fields={};for(var i=0;i<n.length;++i)"__proto__"===n[i]&&d.makeProp(r.fields,n[i]),r.fields[n[i]]=g.google.protobuf.Value.toObject(e.fields[n[i]],t,o+1)}return r},no.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},no.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.Struct"},no),r.Value=(ro.prototype.nullValue=null,ro.prototype.numberValue=null,ro.prototype.stringValue=null,ro.prototype.boolValue=null,ro.prototype.structValue=null,ro.prototype.listValue=null,Object.defineProperty(ro.prototype,"kind",{get:d.oneOfGetter(o=["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]),set:d.oneOfSetter(o)}),ro.create=function(e){return new ro(e)},ro.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");return null!=e.nullValue&&Object.hasOwnProperty.call(e,"nullValue")&&t.uint32(8).int32(e.nullValue),null!=e.numberValue&&Object.hasOwnProperty.call(e,"numberValue")&&t.uint32(17).double(e.numberValue),null!=e.stringValue&&Object.hasOwnProperty.call(e,"stringValue")&&t.uint32(26).string(e.stringValue),null!=e.boolValue&&Object.hasOwnProperty.call(e,"boolValue")&&t.uint32(32).bool(e.boolValue),null!=e.structValue&&Object.hasOwnProperty.call(e,"structValue")&&g.google.protobuf.Struct.encode(e.structValue,t.uint32(42).fork(),o+1).ldelim(),null!=e.listValue&&Object.hasOwnProperty.call(e,"listValue")&&g.google.protobuf.ListValue.encode(e.listValue,t.uint32(50).fork(),o+1).ldelim(),t},ro.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ro.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.Value;e.pos<r;){var a=e.uint32();if(a===o)break;switch(a>>>3){case 1:i.nullValue=e.int32();break;case 2:i.numberValue=e.double();break;case 3:i.stringValue=e.string();break;case 4:i.boolValue=e.bool();break;case 5:i.structValue=g.google.protobuf.Struct.decode(e,e.uint32(),void 0,n+1);break;case 6:i.listValue=g.google.protobuf.ListValue.decode(e,e.uint32(),void 0,n+1);break;default:e.skipType(7&a,n)}}return i},ro.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ro.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,n={};if(null!=e.nullValue&&Object.hasOwnProperty.call(e,"nullValue")&&(n.kind=1,0!==e.nullValue))return"nullValue: enum value expected";if(null!=e.numberValue&&Object.hasOwnProperty.call(e,"numberValue")){if(1===n.kind)return"kind: multiple values";if(n.kind=1,"number"!=typeof e.numberValue)return"numberValue: number expected"}if(null!=e.stringValue&&Object.hasOwnProperty.call(e,"stringValue")){if(1===n.kind)return"kind: multiple values";if(n.kind=1,!d.isString(e.stringValue))return"stringValue: string expected"}if(null!=e.boolValue&&Object.hasOwnProperty.call(e,"boolValue")){if(1===n.kind)return"kind: multiple values";if(n.kind=1,"boolean"!=typeof e.boolValue)return"boolValue: boolean expected"}if(null!=e.structValue&&Object.hasOwnProperty.call(e,"structValue")){if(1===n.kind)return"kind: multiple values";if(o=g.google.protobuf.Struct.verify(e.structValue,t+(n.kind=1)))return"structValue."+o}if(null!=e.listValue&&Object.hasOwnProperty.call(e,"listValue")){if(1===n.kind)return"kind: multiple values";if(o=g.google.protobuf.ListValue.verify(e.listValue,t+(n.kind=1)))return"listValue."+o}return null},ro.fromObject=function(e,t){if(e instanceof g.google.protobuf.Value)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.Value: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.Value;switch(e.nullValue){default:"number"==typeof e.nullValue&&(o.nullValue=e.nullValue);break;case"NULL_VALUE":case 0:o.nullValue=0}if(null!=e.numberValue&&(o.numberValue=Number(e.numberValue)),null!=e.stringValue&&(o.stringValue=String(e.stringValue)),null!=e.boolValue&&(o.boolValue=Boolean(e.boolValue)),null!=e.structValue){if(!d.isObject(e.structValue))throw TypeError(".google.protobuf.Value.structValue: object expected");o.structValue=g.google.protobuf.Struct.fromObject(e.structValue,t+1)}if(null!=e.listValue){if(!d.isObject(e.listValue))throw TypeError(".google.protobuf.Value.listValue: object expected");o.listValue=g.google.protobuf.ListValue.fromObject(e.listValue,t+1)}return o},ro.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};return null!=e.nullValue&&Object.hasOwnProperty.call(e,"nullValue")&&(n.nullValue=t.enums!==String||void 0===g.google.protobuf.NullValue[e.nullValue]?e.nullValue:g.google.protobuf.NullValue[e.nullValue],t.oneofs)&&(n.kind="nullValue"),null!=e.numberValue&&Object.hasOwnProperty.call(e,"numberValue")&&(n.numberValue=t.json&&!isFinite(e.numberValue)?String(e.numberValue):e.numberValue,t.oneofs)&&(n.kind="numberValue"),null!=e.stringValue&&Object.hasOwnProperty.call(e,"stringValue")&&(n.stringValue=e.stringValue,t.oneofs)&&(n.kind="stringValue"),null!=e.boolValue&&Object.hasOwnProperty.call(e,"boolValue")&&(n.boolValue=e.boolValue,t.oneofs)&&(n.kind="boolValue"),null!=e.structValue&&Object.hasOwnProperty.call(e,"structValue")&&(n.structValue=g.google.protobuf.Struct.toObject(e.structValue,t,o+1),t.oneofs)&&(n.kind="structValue"),null!=e.listValue&&Object.hasOwnProperty.call(e,"listValue")&&(n.listValue=g.google.protobuf.ListValue.toObject(e.listValue,t,o+1),t.oneofs)&&(n.kind="listValue"),n},ro.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},ro.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.Value"},ro),r.NullValue=(t={},(o=Object.create(t))[t[0]="NULL_VALUE"]=0,o),r.ListValue=(io.prototype.values=d.emptyArray,io.create=function(e){return new io(e)},io.encode=function(e,t,o){if(t=t||i.create(),(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");if(null!=e.values&&e.values.length)for(var n=0;n<e.values.length;++n)g.google.protobuf.Value.encode(e.values[n],t.uint32(10).fork(),o+1).ldelim();return t},io.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},io.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.ListValue;e.pos<r;){var a=e.uint32();if(a===o)break;a>>>3==1?(i.values&&i.values.length||(i.values=[]),i.values.push(g.google.protobuf.Value.decode(e,e.uint32(),void 0,n+1))):e.skipType(7&a,n)}return i},io.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},io.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.values&&Object.hasOwnProperty.call(e,"values")){if(!Array.isArray(e.values))return"values: array expected";for(var o=0;o<e.values.length;++o){var n=g.google.protobuf.Value.verify(e.values[o],t+1);if(n)return"values."+n}}return null},io.fromObject=function(e,t){if(e instanceof g.google.protobuf.ListValue)return e;if(!d.isObject(e))throw TypeError(".google.protobuf.ListValue: object expected");if((t=void 0===t?0:t)>d.recursionLimit)throw Error("maximum nesting depth exceeded");var o=new g.google.protobuf.ListValue;if(e.values){if(!Array.isArray(e.values))throw TypeError(".google.protobuf.ListValue.values: array expected");o.values=[];for(var n=0;n<e.values.length;++n){if(!d.isObject(e.values[n]))throw TypeError(".google.protobuf.ListValue.values: object expected");o.values[n]=g.google.protobuf.Value.fromObject(e.values[n],t+1)}}return o},io.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n={};if((t.arrays||t.defaults)&&(n.values=[]),e.values&&e.values.length){n.values=[];for(var r=0;r<e.values.length;++r)n.values[r]=g.google.protobuf.Value.toObject(e.values[r],t,o+1)}return n},io.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},io.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.ListValue"},io),r.Timestamp=(ao.prototype.seconds=d.Long?d.Long.fromBits(0,0,!1):0,ao.prototype.nanos=0,ao.create=function(e){return new ao(e)},ao.encode=function(e,t,o){if(t=t||i.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},ao.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},ao.decode=function(e,t,o,n){if(e instanceof p||(e=p.create(e)),(n=void 0===n?0:n)>p.recursionLimit)throw Error("maximum nesting depth exceeded");for(var r=void 0===t?e.len:e.pos+t,i=new g.google.protobuf.Timestamp;e.pos<r;){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,n)}}return i},ao.decodeDelimited=function(e){return e instanceof p||(e=new p(e)),this.decode(e,e.uint32())},ao.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},ao.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},ao.toObject=function(e,t,o){if(t=t||{},(o=void 0===o?0:o)>d.recursionLimit)throw Error("max depth exceeded");var n,o={};return t.defaults&&(d.Long?(n=new d.Long(0,0,!1),o.seconds=t.longs===String?n.toString():t.longs===Number?n.toNumber():"undefined"!=typeof BigInt&&t.longs===BigInt?n.toBigInt():n):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},ao.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},ao.getTypeUrl=function(e){return(e=void 0===e?"type.googleapis.com":e)+"/google.protobuf.Timestamp"},ao),r),F),g});