UNPKG

@google-cloud/policy-troubleshooter-iam

Version:
1 lines 535 kB
(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,i,a,L,s=n.Reader,l=n.Writer,u=n.util,p=n.roots._google_cloud_policy_troubleshooter_iam_protos||(n.roots._google_cloud_policy_troubleshooter_iam_protos={});function U(e,t,o){n.rpc.Service.call(this,e,t,o)}function M(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function F(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function V(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function c(e){if(this.effectiveTags=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function H(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function B(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function J(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function d(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function G(e){if(this.explainedPolicies=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function K(e){if(this.bindingExplanations=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function g(e){if(this.memberships={},e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function q(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Y(e){if(this.explainedResources=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function W(e){if(this.explainedPolicies=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function z(e){if(this.ruleExplanations=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function f(e){if(this.deniedPermissions={},this.exceptionPermissions={},this.deniedPrincipals={},this.exceptionPrincipals={},e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function X(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Q(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Z(e){if(this.errors=[],this.evaluationStates=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function $(e){if(this.errors=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ee(e,t,o){n.rpc.Service.call(this,e,t,o)}function te(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function oe(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ne(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function y(e){if(this.effectiveTags=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function re(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ie(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ae(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function m(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function le(e){if(this.explainedPolicies=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ce(e){if(this.bindingExplanations=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function b(e){if(this.memberships={},e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function se(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ue(e){if(this.explainedResources=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function pe(e){if(this.explainedPolicies=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function de(e){if(this.ruleExplanations=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function h(e){if(this.deniedPermissions={},this.exceptionPermissions={},this.deniedPrincipals={},this.exceptionPrincipals={},e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ge(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function fe(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ye(e){if(this.errors=[],this.evaluationStates=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function me(e){if(this.errors=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function be(e){if(this.rules=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function O(e){if(this.additionalBindings=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function he(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Oe(e){if(this.destinations=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function v(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function 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]]&&(this[t[o]]=e[t[o]])}function ve(e){if(this.serviceClassNames={},e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Pe(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Ee(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Se(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function we(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function E(e){if(this.renamedServices={},this.renamedResources={},this.ignoredResources=[],this.forcedNamespaceAliases=[],this.handwrittenSignatures=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function xe(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Te(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function je(e){if(this.autoPopulatedFields=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Ae(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Ne(e){if(this.file=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function S(e){if(this.dependency=[],this.publicDependency=[],this.weakDependency=[],this.messageType=[],this.enumType=[],this.service=[],this.extension=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function w(e){if(this.field=[],this.extension=[],this.nestedType=[],this.enumType=[],this.extensionRange=[],this.oneofDecl=[],this.reservedRange=[],this.reservedName=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function De(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ke(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function x(e){if(this.uninterpretedOption=[],this.declaration=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Ce(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function T(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Re(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function j(e){if(this.value=[],this.reservedRange=[],this.reservedName=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Ie(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function _e(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Le(e){if(this.method=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Ue(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function A(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function N(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function D(e){if(this.targets=[],this.editionDefaults=[],this.uninterpretedOption=[],this[".google.api.fieldBehavior"]=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Me(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Fe(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Ve(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function He(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Be(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function k(e){if(this.uninterpretedOption=[],this[".google.api.methodSignature"]=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function C(e){if(this.name=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Je(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function R(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Ge(e){if(this.defaults=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Ke(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function qe(e){if(this.location=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Ye(e){if(this.path=[],this.span=[],this.leadingDetachedComments=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function We(e){if(this.annotation=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ze(e){if(this.path=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Xe(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Qe(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Ze(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function $e(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function et(e){if(this.fields={},e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function I(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function tt(e){if(this.values=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ot(e){if(this.bindings=[],this.auditConfigs=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function nt(e){if(this.members=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function rt(e){if(this.auditLogConfigs=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function it(e){if(this.exemptedMembers=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function at(e){if(this.bindingDeltas=[],this.auditConfigDeltas=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function lt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ct(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function st(e,t,o){n.rpc.Service.call(this,e,t,o)}function _(e){if(this.annotations={},this.rules=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ut(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function pt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function dt(e){if(this.policies=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function gt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ft(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function yt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function mt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function bt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function ht(e){if(this.deniedPrincipals=[],this.exceptionPrincipals=[],this.deniedPermissions=[],this.exceptionPermissions=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Ot(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function vt(e,t,o){n.rpc.Service.call(this,e,t,o)}function Pt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Et(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function St(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function wt(e){if(this.operations=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function xt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Tt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function jt(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function At(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}function Nt(e){if(this.details=[],e)for(var t=Object.keys(e),o=0;o<t.length;++o)null!=e[t[o]]&&(this[t[o]]=e[t[o]])}return p.google=((L={}).cloud=((a={}).policytroubleshooter=((o={}).iam=((i={}).v3=((t={}).PolicyTroubleshooter=(((U.prototype=Object.create(n.rpc.Service.prototype)).constructor=U).create=function(e,t,o){return new this(e,t,o)},Object.defineProperty(U.prototype.troubleshootIamPolicy=function e(t,o){return this.rpcCall(e,p.google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyRequest,p.google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse,t,o)},"name",{value:"TroubleshootIamPolicy"}),U),t.AllowAccessState=(r={},(e=Object.create(r))[r[0]="ALLOW_ACCESS_STATE_UNSPECIFIED"]=0,e[r[1]="ALLOW_ACCESS_STATE_GRANTED"]=1,e[r[2]="ALLOW_ACCESS_STATE_NOT_GRANTED"]=2,e[r[3]="ALLOW_ACCESS_STATE_UNKNOWN_CONDITIONAL"]=3,e[r[4]="ALLOW_ACCESS_STATE_UNKNOWN_INFO"]=4,e),t.DenyAccessState=(r={},(e=Object.create(r))[r[0]="DENY_ACCESS_STATE_UNSPECIFIED"]=0,e[r[1]="DENY_ACCESS_STATE_DENIED"]=1,e[r[2]="DENY_ACCESS_STATE_NOT_DENIED"]=2,e[r[3]="DENY_ACCESS_STATE_UNKNOWN_CONDITIONAL"]=3,e[r[4]="DENY_ACCESS_STATE_UNKNOWN_INFO"]=4,e),t.RolePermissionInclusionState=(r={},(e=Object.create(r))[r[0]="ROLE_PERMISSION_INCLUSION_STATE_UNSPECIFIED"]=0,e[r[1]="ROLE_PERMISSION_INCLUDED"]=1,e[r[2]="ROLE_PERMISSION_NOT_INCLUDED"]=2,e[r[3]="ROLE_PERMISSION_UNKNOWN_INFO"]=3,e),t.PermissionPatternMatchingState=(r={},(e=Object.create(r))[r[0]="PERMISSION_PATTERN_MATCHING_STATE_UNSPECIFIED"]=0,e[r[1]="PERMISSION_PATTERN_MATCHED"]=1,e[r[2]="PERMISSION_PATTERN_NOT_MATCHED"]=2,e),t.MembershipMatchingState=(r={},(e=Object.create(r))[r[0]="MEMBERSHIP_MATCHING_STATE_UNSPECIFIED"]=0,e[r[1]="MEMBERSHIP_MATCHED"]=1,e[r[2]="MEMBERSHIP_NOT_MATCHED"]=2,e[r[3]="MEMBERSHIP_UNKNOWN_INFO"]=3,e[r[4]="MEMBERSHIP_UNKNOWN_UNSUPPORTED"]=4,e),t.HeuristicRelevance=(r={},(e=Object.create(r))[r[0]="HEURISTIC_RELEVANCE_UNSPECIFIED"]=0,e[r[1]="HEURISTIC_RELEVANCE_NORMAL"]=1,e[r[2]="HEURISTIC_RELEVANCE_HIGH"]=2,e),t.TroubleshootIamPolicyRequest=(M.prototype.accessTuple=null,M.create=function(e){return new M(e)},M.encode=function(e,t){return t=t||l.create(),null!=e.accessTuple&&Object.hasOwnProperty.call(e,"accessTuple")&&p.google.cloud.policytroubleshooter.iam.v3.AccessTuple.encode(e.accessTuple,t.uint32(10).fork()).ldelim(),t},M.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},M.decode=function(e,t){e instanceof s||(e=s.create(e));for(var o=void 0===t?e.len:e.pos+t,n=new p.google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyRequest;e.pos<o;){var r=e.uint32();r>>>3==1?n.accessTuple=p.google.cloud.policytroubleshooter.iam.v3.AccessTuple.decode(e,e.uint32()):e.skipType(7&r)}return n},M.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},M.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.accessTuple&&e.hasOwnProperty("accessTuple")){e=p.google.cloud.policytroubleshooter.iam.v3.AccessTuple.verify(e.accessTuple);if(e)return"accessTuple."+e}return null},M.fromObject=function(e){if(e instanceof p.google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyRequest)return e;var t=new p.google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyRequest;if(null!=e.accessTuple){if("object"!=typeof e.accessTuple)throw TypeError(".google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyRequest.accessTuple: object expected");t.accessTuple=p.google.cloud.policytroubleshooter.iam.v3.AccessTuple.fromObject(e.accessTuple)}return t},M.toObject=function(e,t){var o={};return(t=t||{}).defaults&&(o.accessTuple=null),null!=e.accessTuple&&e.hasOwnProperty("accessTuple")&&(o.accessTuple=p.google.cloud.policytroubleshooter.iam.v3.AccessTuple.toObject(e.accessTuple,t)),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.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyRequest"},M),t.TroubleshootIamPolicyResponse=(F.prototype.overallAccessState=0,F.prototype.accessTuple=null,F.prototype.allowPolicyExplanation=null,F.prototype.denyPolicyExplanation=null,F.create=function(e){return new F(e)},F.encode=function(e,t){return t=t||l.create(),null!=e.overallAccessState&&Object.hasOwnProperty.call(e,"overallAccessState")&&t.uint32(8).int32(e.overallAccessState),null!=e.accessTuple&&Object.hasOwnProperty.call(e,"accessTuple")&&p.google.cloud.policytroubleshooter.iam.v3.AccessTuple.encode(e.accessTuple,t.uint32(18).fork()).ldelim(),null!=e.allowPolicyExplanation&&Object.hasOwnProperty.call(e,"allowPolicyExplanation")&&p.google.cloud.policytroubleshooter.iam.v3.AllowPolicyExplanation.encode(e.allowPolicyExplanation,t.uint32(26).fork()).ldelim(),null!=e.denyPolicyExplanation&&Object.hasOwnProperty.call(e,"denyPolicyExplanation")&&p.google.cloud.policytroubleshooter.iam.v3.DenyPolicyExplanation.encode(e.denyPolicyExplanation,t.uint32(34).fork()).ldelim(),t},F.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},F.decode=function(e,t){e instanceof s||(e=s.create(e));for(var o=void 0===t?e.len:e.pos+t,n=new p.google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse;e.pos<o;){var r=e.uint32();switch(r>>>3){case 1:n.overallAccessState=e.int32();break;case 2:n.accessTuple=p.google.cloud.policytroubleshooter.iam.v3.AccessTuple.decode(e,e.uint32());break;case 3:n.allowPolicyExplanation=p.google.cloud.policytroubleshooter.iam.v3.AllowPolicyExplanation.decode(e,e.uint32());break;case 4:n.denyPolicyExplanation=p.google.cloud.policytroubleshooter.iam.v3.DenyPolicyExplanation.decode(e,e.uint32());break;default:e.skipType(7&r)}}return n},F.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},F.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.overallAccessState&&e.hasOwnProperty("overallAccessState"))switch(e.overallAccessState){default:return"overallAccessState: enum value expected";case 0:case 1:case 2:case 3:case 4:}var t;if(null!=e.accessTuple&&e.hasOwnProperty("accessTuple")&&(t=p.google.cloud.policytroubleshooter.iam.v3.AccessTuple.verify(e.accessTuple)))return"accessTuple."+t;if(null!=e.allowPolicyExplanation&&e.hasOwnProperty("allowPolicyExplanation")&&(t=p.google.cloud.policytroubleshooter.iam.v3.AllowPolicyExplanation.verify(e.allowPolicyExplanation)))return"allowPolicyExplanation."+t;if(null!=e.denyPolicyExplanation&&e.hasOwnProperty("denyPolicyExplanation")&&(t=p.google.cloud.policytroubleshooter.iam.v3.DenyPolicyExplanation.verify(e.denyPolicyExplanation)))return"denyPolicyExplanation."+t;return null},F.fromObject=function(e){if(e instanceof p.google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse)return e;var t=new p.google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse;switch(e.overallAccessState){default:"number"==typeof e.overallAccessState&&(t.overallAccessState=e.overallAccessState);break;case"OVERALL_ACCESS_STATE_UNSPECIFIED":case 0:t.overallAccessState=0;break;case"CAN_ACCESS":case 1:t.overallAccessState=1;break;case"CANNOT_ACCESS":case 2:t.overallAccessState=2;break;case"UNKNOWN_INFO":case 3:t.overallAccessState=3;break;case"UNKNOWN_CONDITIONAL":case 4:t.overallAccessState=4}if(null!=e.accessTuple){if("object"!=typeof e.accessTuple)throw TypeError(".google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse.accessTuple: object expected");t.accessTuple=p.google.cloud.policytroubleshooter.iam.v3.AccessTuple.fromObject(e.accessTuple)}if(null!=e.allowPolicyExplanation){if("object"!=typeof e.allowPolicyExplanation)throw TypeError(".google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse.allowPolicyExplanation: object expected");t.allowPolicyExplanation=p.google.cloud.policytroubleshooter.iam.v3.AllowPolicyExplanation.fromObject(e.allowPolicyExplanation)}if(null!=e.denyPolicyExplanation){if("object"!=typeof e.denyPolicyExplanation)throw TypeError(".google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse.denyPolicyExplanation: object expected");t.denyPolicyExplanation=p.google.cloud.policytroubleshooter.iam.v3.DenyPolicyExplanation.fromObject(e.denyPolicyExplanation)}return t},F.toObject=function(e,t){var o={};return(t=t||{}).defaults&&(o.overallAccessState=t.enums===String?"OVERALL_ACCESS_STATE_UNSPECIFIED":0,o.accessTuple=null,o.allowPolicyExplanation=null,o.denyPolicyExplanation=null),null!=e.overallAccessState&&e.hasOwnProperty("overallAccessState")&&(o.overallAccessState=t.enums!==String||void 0===p.google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse.OverallAccessState[e.overallAccessState]?e.overallAccessState:p.google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse.OverallAccessState[e.overallAccessState]),null!=e.accessTuple&&e.hasOwnProperty("accessTuple")&&(o.accessTuple=p.google.cloud.policytroubleshooter.iam.v3.AccessTuple.toObject(e.accessTuple,t)),null!=e.allowPolicyExplanation&&e.hasOwnProperty("allowPolicyExplanation")&&(o.allowPolicyExplanation=p.google.cloud.policytroubleshooter.iam.v3.AllowPolicyExplanation.toObject(e.allowPolicyExplanation,t)),null!=e.denyPolicyExplanation&&e.hasOwnProperty("denyPolicyExplanation")&&(o.denyPolicyExplanation=p.google.cloud.policytroubleshooter.iam.v3.DenyPolicyExplanation.toObject(e.denyPolicyExplanation,t)),o},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.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse"},F.OverallAccessState=(r={},(e=Object.create(r))[r[0]="OVERALL_ACCESS_STATE_UNSPECIFIED"]=0,e[r[1]="CAN_ACCESS"]=1,e[r[2]="CANNOT_ACCESS"]=2,e[r[3]="UNKNOWN_INFO"]=3,e[r[4]="UNKNOWN_CONDITIONAL"]=4,e),F),t.AccessTuple=(V.prototype.principal="",V.prototype.fullResourceName="",V.prototype.permission="",V.prototype.permissionFqdn="",V.prototype.conditionContext=null,V.create=function(e){return new V(e)},V.encode=function(e,t){return t=t||l.create(),null!=e.principal&&Object.hasOwnProperty.call(e,"principal")&&t.uint32(10).string(e.principal),null!=e.fullResourceName&&Object.hasOwnProperty.call(e,"fullResourceName")&&t.uint32(18).string(e.fullResourceName),null!=e.permission&&Object.hasOwnProperty.call(e,"permission")&&t.uint32(26).string(e.permission),null!=e.permissionFqdn&&Object.hasOwnProperty.call(e,"permissionFqdn")&&t.uint32(34).string(e.permissionFqdn),null!=e.conditionContext&&Object.hasOwnProperty.call(e,"conditionContext")&&p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.encode(e.conditionContext,t.uint32(42).fork()).ldelim(),t},V.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},V.decode=function(e,t){e instanceof s||(e=s.create(e));for(var o=void 0===t?e.len:e.pos+t,n=new p.google.cloud.policytroubleshooter.iam.v3.AccessTuple;e.pos<o;){var r=e.uint32();switch(r>>>3){case 1:n.principal=e.string();break;case 2:n.fullResourceName=e.string();break;case 3:n.permission=e.string();break;case 4:n.permissionFqdn=e.string();break;case 5:n.conditionContext=p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.decode(e,e.uint32());break;default:e.skipType(7&r)}}return n},V.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},V.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.principal&&e.hasOwnProperty("principal")&&!u.isString(e.principal))return"principal: string expected";if(null!=e.fullResourceName&&e.hasOwnProperty("fullResourceName")&&!u.isString(e.fullResourceName))return"fullResourceName: string expected";if(null!=e.permission&&e.hasOwnProperty("permission")&&!u.isString(e.permission))return"permission: string expected";if(null!=e.permissionFqdn&&e.hasOwnProperty("permissionFqdn")&&!u.isString(e.permissionFqdn))return"permissionFqdn: string expected";if(null!=e.conditionContext&&e.hasOwnProperty("conditionContext")){e=p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.verify(e.conditionContext);if(e)return"conditionContext."+e}return null},V.fromObject=function(e){if(e instanceof p.google.cloud.policytroubleshooter.iam.v3.AccessTuple)return e;var t=new p.google.cloud.policytroubleshooter.iam.v3.AccessTuple;if(null!=e.principal&&(t.principal=String(e.principal)),null!=e.fullResourceName&&(t.fullResourceName=String(e.fullResourceName)),null!=e.permission&&(t.permission=String(e.permission)),null!=e.permissionFqdn&&(t.permissionFqdn=String(e.permissionFqdn)),null!=e.conditionContext){if("object"!=typeof e.conditionContext)throw TypeError(".google.cloud.policytroubleshooter.iam.v3.AccessTuple.conditionContext: object expected");t.conditionContext=p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.fromObject(e.conditionContext)}return t},V.toObject=function(e,t){var o={};return(t=t||{}).defaults&&(o.principal="",o.fullResourceName="",o.permission="",o.permissionFqdn="",o.conditionContext=null),null!=e.principal&&e.hasOwnProperty("principal")&&(o.principal=e.principal),null!=e.fullResourceName&&e.hasOwnProperty("fullResourceName")&&(o.fullResourceName=e.fullResourceName),null!=e.permission&&e.hasOwnProperty("permission")&&(o.permission=e.permission),null!=e.permissionFqdn&&e.hasOwnProperty("permissionFqdn")&&(o.permissionFqdn=e.permissionFqdn),null!=e.conditionContext&&e.hasOwnProperty("conditionContext")&&(o.conditionContext=p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.toObject(e.conditionContext,t)),o},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.cloud.policytroubleshooter.iam.v3.AccessTuple"},V),t.ConditionContext=(c.prototype.resource=null,c.prototype.destination=null,c.prototype.request=null,c.prototype.effectiveTags=u.emptyArray,c.create=function(e){return new c(e)},c.encode=function(e,t){if(t=t||l.create(),null!=e.resource&&Object.hasOwnProperty.call(e,"resource")&&p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Resource.encode(e.resource,t.uint32(10).fork()).ldelim(),null!=e.destination&&Object.hasOwnProperty.call(e,"destination")&&p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Peer.encode(e.destination,t.uint32(18).fork()).ldelim(),null!=e.request&&Object.hasOwnProperty.call(e,"request")&&p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Request.encode(e.request,t.uint32(26).fork()).ldelim(),null!=e.effectiveTags&&e.effectiveTags.length)for(var o=0;o<e.effectiveTags.length;++o)p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag.encode(e.effectiveTags[o],t.uint32(34).fork()).ldelim();return t},c.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},c.decode=function(e,t){e instanceof s||(e=s.create(e));for(var o=void 0===t?e.len:e.pos+t,n=new p.google.cloud.policytroubleshooter.iam.v3.ConditionContext;e.pos<o;){var r=e.uint32();switch(r>>>3){case 1:n.resource=p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Resource.decode(e,e.uint32());break;case 2:n.destination=p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Peer.decode(e,e.uint32());break;case 3:n.request=p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Request.decode(e,e.uint32());break;case 4:n.effectiveTags&&n.effectiveTags.length||(n.effectiveTags=[]),n.effectiveTags.push(p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return n},c.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},c.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.resource&&e.hasOwnProperty("resource")&&(t=p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Resource.verify(e.resource)))return"resource."+t;if(null!=e.destination&&e.hasOwnProperty("destination")&&(t=p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Peer.verify(e.destination)))return"destination."+t;if(null!=e.request&&e.hasOwnProperty("request")&&(t=p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Request.verify(e.request)))return"request."+t;if(null!=e.effectiveTags&&e.hasOwnProperty("effectiveTags")){if(!Array.isArray(e.effectiveTags))return"effectiveTags: array expected";for(var t,o=0;o<e.effectiveTags.length;++o)if(t=p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag.verify(e.effectiveTags[o]))return"effectiveTags."+t}return null},c.fromObject=function(e){if(e instanceof p.google.cloud.policytroubleshooter.iam.v3.ConditionContext)return e;var t=new p.google.cloud.policytroubleshooter.iam.v3.ConditionContext;if(null!=e.resource){if("object"!=typeof e.resource)throw TypeError(".google.cloud.policytroubleshooter.iam.v3.ConditionContext.resource: object expected");t.resource=p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Resource.fromObject(e.resource)}if(null!=e.destination){if("object"!=typeof e.destination)throw TypeError(".google.cloud.policytroubleshooter.iam.v3.ConditionContext.destination: object expected");t.destination=p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Peer.fromObject(e.destination)}if(null!=e.request){if("object"!=typeof e.request)throw TypeError(".google.cloud.policytroubleshooter.iam.v3.ConditionContext.request: object expected");t.request=p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Request.fromObject(e.request)}if(e.effectiveTags){if(!Array.isArray(e.effectiveTags))throw TypeError(".google.cloud.policytroubleshooter.iam.v3.ConditionContext.effectiveTags: array expected");t.effectiveTags=[];for(var o=0;o<e.effectiveTags.length;++o){if("object"!=typeof e.effectiveTags[o])throw TypeError(".google.cloud.policytroubleshooter.iam.v3.ConditionContext.effectiveTags: object expected");t.effectiveTags[o]=p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag.fromObject(e.effectiveTags[o])}}return t},c.toObject=function(e,t){var o={};if(((t=t||{}).arrays||t.defaults)&&(o.effectiveTags=[]),t.defaults&&(o.resource=null,o.destination=null,o.request=null),null!=e.resource&&e.hasOwnProperty("resource")&&(o.resource=p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Resource.toObject(e.resource,t)),null!=e.destination&&e.hasOwnProperty("destination")&&(o.destination=p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Peer.toObject(e.destination,t)),null!=e.request&&e.hasOwnProperty("request")&&(o.request=p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Request.toObject(e.request,t)),e.effectiveTags&&e.effectiveTags.length){o.effectiveTags=[];for(var n=0;n<e.effectiveTags.length;++n)o.effectiveTags[n]=p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag.toObject(e.effectiveTags[n],t)}return 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.cloud.policytroubleshooter.iam.v3.ConditionContext"},c.Resource=(H.prototype.service="",H.prototype.name="",H.prototype.type="",H.create=function(e){return new H(e)},H.encode=function(e,t){return t=t||l.create(),null!=e.service&&Object.hasOwnProperty.call(e,"service")&&t.uint32(10).string(e.service),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(26).string(e.type),t},H.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},H.decode=function(e,t){e instanceof s||(e=s.create(e));for(var o=void 0===t?e.len:e.pos+t,n=new p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Resource;e.pos<o;){var r=e.uint32();switch(r>>>3){case 1:n.service=e.string();break;case 2:n.name=e.string();break;case 3:n.type=e.string();break;default:e.skipType(7&r)}}return n},H.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},H.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.service&&e.hasOwnProperty("service")&&!u.isString(e.service)?"service: string expected":null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name)?"name: string expected":null!=e.type&&e.hasOwnProperty("type")&&!u.isString(e.type)?"type: string expected":null},H.fromObject=function(e){var t;return e instanceof p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Resource?e:(t=new p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Resource,null!=e.service&&(t.service=String(e.service)),null!=e.name&&(t.name=String(e.name)),null!=e.type&&(t.type=String(e.type)),t)},H.toObject=function(e,t){var o={};return(t=t||{}).defaults&&(o.service="",o.name="",o.type=""),null!=e.service&&e.hasOwnProperty("service")&&(o.service=e.service),null!=e.name&&e.hasOwnProperty("name")&&(o.name=e.name),null!=e.type&&e.hasOwnProperty("type")&&(o.type=e.type),o},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.cloud.policytroubleshooter.iam.v3.ConditionContext.Resource"},H),c.Peer=(B.prototype.ip="",B.prototype.port=u.Long?u.Long.fromBits(0,0,!1):0,B.create=function(e){return new B(e)},B.encode=function(e,t){return t=t||l.create(),null!=e.ip&&Object.hasOwnProperty.call(e,"ip")&&t.uint32(10).string(e.ip),null!=e.port&&Object.hasOwnProperty.call(e,"port")&&t.uint32(16).int64(e.port),t},B.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},B.decode=function(e,t){e instanceof s||(e=s.create(e));for(var o=void 0===t?e.len:e.pos+t,n=new p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Peer;e.pos<o;){var r=e.uint32();switch(r>>>3){case 1:n.ip=e.string();break;case 2:n.port=e.int64();break;default:e.skipType(7&r)}}return n},B.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},B.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.ip&&e.hasOwnProperty("ip")&&!u.isString(e.ip)?"ip: string expected":null!=e.port&&e.hasOwnProperty("port")&&!(u.isInteger(e.port)||e.port&&u.isInteger(e.port.low)&&u.isInteger(e.port.high))?"port: integer|Long expected":null},B.fromObject=function(e){var t;return e instanceof p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Peer?e:(t=new p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Peer,null!=e.ip&&(t.ip=String(e.ip)),null!=e.port&&(u.Long?(t.port=u.Long.fromValue(e.port)).unsigned=!1:"string"==typeof e.port?t.port=parseInt(e.port,10):"number"==typeof e.port?t.port=e.port:"object"==typeof e.port&&(t.port=new u.LongBits(e.port.low>>>0,e.port.high>>>0).toNumber())),t)},B.toObject=function(e,t){var o,n={};return(t=t||{}).defaults&&(n.ip="",u.Long?(o=new u.Long(0,0,!1),n.port=t.longs===String?o.toString():t.longs===Number?o.toNumber():o):n.port=t.longs===String?"0":0),null!=e.ip&&e.hasOwnProperty("ip")&&(n.ip=e.ip),null!=e.port&&e.hasOwnProperty("port")&&("number"==typeof e.port?n.port=t.longs===String?String(e.port):e.port:n.port=t.longs===String?u.Long.prototype.toString.call(e.port):t.longs===Number?new u.LongBits(e.port.low>>>0,e.port.high>>>0).toNumber():e.port),n},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.cloud.policytroubleshooter.iam.v3.ConditionContext.Peer"},B),c.Request=(J.prototype.receiveTime=null,J.create=function(e){return new J(e)},J.encode=function(e,t){return t=t||l.create(),null!=e.receiveTime&&Object.hasOwnProperty.call(e,"receiveTime")&&p.google.protobuf.Timestamp.encode(e.receiveTime,t.uint32(10).fork()).ldelim(),t},J.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},J.decode=function(e,t){e instanceof s||(e=s.create(e));for(var o=void 0===t?e.len:e.pos+t,n=new p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Request;e.pos<o;){var r=e.uint32();r>>>3==1?n.receiveTime=p.google.protobuf.Timestamp.decode(e,e.uint32()):e.skipType(7&r)}return n},J.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},J.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.receiveTime&&e.hasOwnProperty("receiveTime")){e=p.google.protobuf.Timestamp.verify(e.receiveTime);if(e)return"receiveTime."+e}return null},J.fromObject=function(e){if(e instanceof p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Request)return e;var t=new p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Request;if(null!=e.receiveTime){if("object"!=typeof e.receiveTime)throw TypeError(".google.cloud.policytroubleshooter.iam.v3.ConditionContext.Request.receiveTime: object expected");t.receiveTime=p.google.protobuf.Timestamp.fromObject(e.receiveTime)}return t},J.toObject=function(e,t){var o={};return(t=t||{}).defaults&&(o.receiveTime=null),null!=e.receiveTime&&e.hasOwnProperty("receiveTime")&&(o.receiveTime=p.google.protobuf.Timestamp.toObject(e.receiveTime,t)),o},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.cloud.policytroubleshooter.iam.v3.ConditionContext.Request"},J),c.EffectiveTag=(d.prototype.tagValue="",d.prototype.namespacedTagValue="",d.prototype.tagKey="",d.prototype.namespacedTagKey="",d.prototype.tagKeyParentName="",d.prototype.inherited=!1,d.create=function(e){return new d(e)},d.encode=function(e,t){return t=t||l.create(),null!=e.tagValue&&Object.hasOwnProperty.call(e,"tagValue")&&t.uint32(10).string(e.tagValue),null!=e.namespacedTagValue&&Object.hasOwnProperty.call(e,"namespacedTagValue")&&t.uint32(18).string(e.namespacedTagValue),null!=e.tagKey&&Object.hasOwnProperty.call(e,"tagKey")&&t.uint32(26).string(e.tagKey),null!=e.namespacedTagKey&&Object.hasOwnProperty.call(e,"namespacedTagKey")&&t.uint32(34).string(e.namespacedTagKey),null!=e.inherited&&Object.hasOwnProperty.call(e,"inherited")&&t.uint32(40).bool(e.inherited),null!=e.tagKeyParentName&&Object.hasOwnProperty.call(e,"tagKeyParentName")&&t.uint32(50).string(e.tagKeyParentName),t},d.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},d.decode=function(e,t){e instanceof s||(e=s.create(e));for(var o=void 0===t?e.len:e.pos+t,n=new p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag;e.pos<o;){var r=e.uint32();switch(r>>>3){case 1:n.tagValue=e.string();break;case 2:n.namespacedTagValue=e.string();break;case 3:n.tagKey=e.string();break;case 4:n.namespacedTagKey=e.string();break;case 6:n.tagKeyParentName=e.string();break;case 5:n.inherited=e.bool();break;default:e.skipType(7&r)}}return n},d.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},d.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.tagValue&&e.hasOwnProperty("tagValue")&&!u.isString(e.tagValue)?"tagValue: string expected":null!=e.namespacedTagValue&&e.hasOwnProperty("namespacedTagValue")&&!u.isString(e.namespacedTagValue)?"namespacedTagValue: string expected":null!=e.tagKey&&e.hasOwnProperty("tagKey")&&!u.isString(e.tagKey)?"tagKey: string expected":null!=e.namespacedTagKey&&e.hasOwnProperty("namespacedTagKey")&&!u.isString(e.namespacedTagKey)?"namespacedTagKey: string expected":null!=e.tagKeyParentName&&e.hasOwnProperty("tagKeyParentName")&&!u.isString(e.tagKeyParentName)?"tagKeyParentName: string expected":null!=e.inherited&&e.hasOwnProperty("inherited")&&"boolean"!=typeof e.inherited?"inherited: boolean expected":null},d.fromObject=function(e){var t;return e instanceof p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag?e:(t=new p.google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag,null!=e.tagValue&&(t.tagValue=String(e.tagValue)),null!=e.namespacedTagValue&&(t.namespacedTagValue=String(e.namespacedTagValue)),null!=e.tagKey&&(t.tagKey=String(e.tagKey)),null!=e.namespacedTagKey&&(t.namespacedTagKey=String(e.namespacedTagKey)),null!=e.tagKeyParentName&&(t.tagKeyParentName=String(e.tagKeyParentName)),null!=e.inherited&&(t.inherited=Boolean(e.inherited)),t)},d.toObject=function(e,t){var o={};return(t=t||{}).defaults&&(o.tagValue="",o.namespacedTagValue="",o.tagKey="",o.namespacedTagKey="",o.inherited=!1,o.tagKeyParentName=""),null!=e.tagValue&&e.hasOwnProperty("tagValue")&&(o.tagValue=e.tagValue),null!=e.namespacedTagValue&&e.hasOwnProperty("namespacedTagValue")&&(o.namespacedTagValue=e.namespacedTagValue),null!=e.tagKey&&e.hasOwnProperty("tagKey")&&(o.tagKey=e.tagKey),null!=e.namespacedTagKey&&e.hasOwnProperty("namespacedTagKey")&&(o.namespacedTagKey=e.namespacedTagKey),null!=e.inherited&&e.hasOwnProperty("inherited")&&(o.inherited=e.inherited),null!=e.tagKeyParentName&&e.hasOwnProperty("tagKeyParentName")&&(o.tagKeyParentName=e.tagKeyParentName),o},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.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag"},d),c),t.AllowPolicyExplanation=(G.prototype.allowAccessState=0,G.prototype.explainedPolicies=u.emptyArray,G.prototype.relevance=0,G.create=function(e){return new G(e)},G.encode=function(e,t){if(t=t||l.create(),null!=e.allowAccessState&&Object.hasOwnProperty.call(e,"allowAccessState")&&t.uint32(8).int32(e.allowAccessState),null!=e.explainedPolicies&&e.explainedPolicies.length)for(var o=0;o<e.explainedPolicies.length;++o)p.google.cloud.policytroubleshooter.iam.v3.ExplainedAllowPolicy.encode(e.explainedPolicies[o],t.uint32(18).fork()).ldelim();return null!=e.relevance&&Object.hasOwnProperty.call(e,"relevance")&&t.uint32(24).int32(e.relevance),t},G.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},G.decode=function(e,t){e instanceof s||(e=s.create(e));for(var o=void 0===t?e.len:e.pos+t,n=new p.google.cloud.policytroubleshooter.iam.v3.AllowPolicyExplanation;e.pos<o;){var r=e.uint32();switch(r>>>3){case 1:n.allowAccessState=e.int32();break;case 2:n.explainedPolicies&&n.explainedPolicies.length||(n.explainedPolicies=[]),n.explainedPolicies.push(p.google.cloud.policytroubleshooter.iam.v3.ExplainedAllowPolicy.decode(e,e.uint32()));break;case 3:n.relevance=e.int32();break;default:e.skipType(7&r)}}return n},G.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},G.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.allowAccessState&&e.hasOwnProperty("allowAccessState"))switch(e.allowAccessState){default:return"allowAccessState: enum value expected";case 0:case 1:case 2:case 3:case 4:}if(null!=e.explainedPolicies&&e.hasOwnProperty("explainedPolicies")){if(!Array.isArray(e.explainedPolicies))return"explainedPolicies: array expected";for(var t=0;t<e.explainedPolicies.length;++t){var o=p.google.cloud.policytroubleshooter.iam.v3.ExplainedAllowPolicy.verify(e.explainedPolicies[t]);if(o)return"explainedPolicies."+o}}if(null!=e.relevance&&e.hasOwnProperty("relevance"))switch(e.relevance){default:return"relevance: enum value expected";case 0:case 1:case 2:}return null},G.fromObject=function(e){if(e instanceof p.google.cloud.policytroubleshooter.iam.v3.AllowPolicyExplanation)return e;var t=new p.google.cloud.policytroubleshooter.iam.v3.AllowPolicyExplanation;switch(e.allowAccessState){default:"number"==typeof e.allowAccessState&&(t.allowAccessState=e.allowAccessState);break;case"ALLOW_ACCESS_STATE_UNSPECIFIED":case 0:t.allowAccessState=0;break;case"ALLOW_ACCESS_STATE_GRANTED":case 1:t.allowAccessState=1;break;case"ALLOW_ACCESS_STATE_NOT_GRANTED":case 2:t.allowAccessState=2;break;case"ALLOW_ACCESS_STATE_UNKNOWN_CONDITIONAL":case 3:t.allowAccessState=3;break;case"ALLOW_ACCESS_STATE_UNKNOWN_INFO":case 4:t.allowAccessState=4}if(e.explainedPolicies){if(!Array.isArray(e.explainedPolicies))throw TypeError(".google.cloud.policytroubleshooter.iam.v3.AllowPolicyExplanation.explainedPolicies: array expected");t.explainedPolicies=[];for(var o=0;o<e.explainedPolicies.length;++o){if("object"!=typeof e.explainedPolicies[o])throw TypeError(".google.cloud.policytroubleshooter.iam.v3.AllowPolicyExplanation.explainedPolicies: object expected");t.explainedPolicies[o]=p.google.cloud.policytroubleshooter.iam.v3.ExplainedAllowPolicy.fromObject(e.explainedPolicies[o])}}switch(e.relevance){default:"number"==typeof e.relevance&&(t.relevance=e.relevance);break;case"HEURISTIC_RELEVANCE_UNSPECIFIED":case 0:t.relevance=0;break;case"HEURISTIC_RELEVANCE_NORMAL":case 1:t.relevance=1;break;case"HEURISTIC_RELEVANCE_HIGH":case 2:t.relevance=2}return t},G.toObject=function(e,t){var o={};if(((t=t||{}).arrays||t.defaults)&&(o.explainedPolicies=[]),t.defaults&&(o.allowAccessState=t.enums===String?"ALLOW_ACCESS_STATE_UNSPECIFIED":0,o.relevance=t.enums===String?"HEURISTIC_RELEVANCE_UNSPECIFIED":0),null!=e.allowAccessState&&e.hasOwnProperty("allowAccessState")&&(o.allowAccessState=t.enums!==String||void 0===p.google.cloud.policytroubleshooter.iam.v3.AllowAccessState[e.allowAccessState]?e.allowAccessState:p.google.cloud.policytroubleshooter.iam.v3.AllowAccessState[e.allowAccessState]),e.explainedPolicies&&e.explainedPolicies.length){o.explainedPolicies=[];for(var n=0;n<e.explainedPolicies.length;++n)o.explainedPolicies[n]=p.google.cloud.policytroubleshooter.iam.v3.ExplainedAllowPolicy.toObject(e.explainedPolicies[n],t)}return null!=e.relevance&&e.hasOwnProperty("relevance")&&(o.relevance=t.enums!==String||void 0===p.google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance[e.relevance]?e.relevance:p.google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance[e.relevance]),o},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.cloud.policytroubleshooter.iam.v3.AllowPolicyExplanation"},G),t.ExplainedAllowPolicy=(K.prototype.allowAccessState=0,K.prototype.fullResourceName="",K.prototype.bindingExplanations=u.emptyArray,K.prototype.relevance=0,K.prototype.policy=null,K.create=function(e){return new K(e)},K.encode=function(e,t){if(t=t||l.create(),null!=e.allowAccessState&&Object.hasOwnProperty.call(e,"allowAccessState")&&t.uint32(8).int32(e.allowAccessState),null!=e.fullResourceName&&Object.hasOwnProperty.call(e,"fullResourceName")&&t.uint32(18).string(e.fullResourceName),null!=e.bindingExplanations&&e.bindingExplanations.length)for(var o=0;o<e.bindingExplanations.length;++o)p.google.cloud.policytroubleshooter.iam.v3.AllowBindingExplanation.encode(e.bindingExplanations[o],t.uint32(26).fork()).ldelim();return null!=e.relevance&&Object.hasOwnProperty.call(e,"relevance")&&t.uint32(32).int32(e.relevance),null!=e.policy&&Object.hasOwnProperty.call(e,"policy")&&p.google.iam.v1.Policy.encode(e.policy,t.uint32(42).fork()).ldelim(),t},K.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},K.decode=function(e,t){e instanceof s||(e=s.create(e));for(var o=void 0