text: /* eslint-disable */
  import { Writer, Reader } from 'protobufjs/minimal';
  export const protobufPackage = 'zigbeealliance.distributedcomplianceledger.dclauth';
  const basePendingAccountRevocation = { address: '', approvals: '' };
  export const PendingAccountRevocation = {
      encode(message, writer = Writer.create()) {
          if (message.address !== '') {
              writer.uint32(10).string(message.address);
          }
          for (const v of message.approvals) {
              writer.uint32(18).string(v);
          }
          return writer;
      },
      decode(input, length) {
          const reader = input instanceof Uint8Array ? new Reader(input) : input;
          let end = length === undefined ? reader.len : reader.pos + length;
          const message = { ...basePendingAccountRevocation };
          message.approvals = [];
          while (reader.pos < end) {
              const tag = reader.uint32();
              switch (tag >>> 3) {
                  case 1:
                      message.address = reader.string();
                      break;
                  case 2:
                      message.approvals.push(reader.string());
                      break;
                  default:
                      reader.skipType(tag & 7);
                      break;
              }
          }
          return message;
      },
      fromJSON(object) {
          const message = { ...basePendingAccountRevocation };
          message.approvals = [];
          if (object.address !== undefined && object.address !== null) {
              message.address = String(object.address);
          }
          else {
              message.address = '';
          }
          if (object.approvals !== undefined && object.approvals !== null) {
              for (const e of object.approvals) {
                  message.approvals.push(String(e));
              }
          }
          return message;
      },
      toJSON(message) {
          const obj = {};
          message.address !== undefined && (obj.address = message.address);
          if (message.approvals) {
              obj.approvals = message.approvals.map((e) => e);
          }
          else {
              obj.approvals = [];
          }
          return obj;
      },
      fromPartial(object) {
          const message = { ...basePendingAccountRevocation };
          message.approvals = [];
          if (object.address !== undefined && object.address !== null) {
              message.address = object.address;
          }
          else {
              message.address = '';
          }
          if (object.approvals !== undefined && object.approvals !== null) {
              for (const e of object.approvals) {
                  message.approvals.push(e);
              }
          }
          return message;
      }
  };
  