"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.MsgClientImpl = void 0;
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _binary = require("../binary");
var _tx = require("./tx");
/** Msg defines the Msg service. */
var MsgClientImpl = exports.MsgClientImpl = /*#__PURE__*/function () {
  function MsgClientImpl(rpc) {
    (0, _classCallCheck2["default"])(this, MsgClientImpl);
    (0, _defineProperty2["default"])(this, "rpc", void 0);
    this.rpc = rpc;
    this.toggleForcePush = this.toggleForcePush.bind(this);
    this.revokeProviderPermission = this.revokeProviderPermission.bind(this);
    this.authorizeProvider = this.authorizeProvider.bind(this);
    this.createTask = this.createTask.bind(this);
    this.updateTask = this.updateTask.bind(this);
    this.deleteTask = this.deleteTask.bind(this);
    this.setBranch = this.setBranch.bind(this);
    this.multiSetBranch = this.multiSetBranch.bind(this);
    this.deleteBranch = this.deleteBranch.bind(this);
    this.multiDeleteBranch = this.multiDeleteBranch.bind(this);
    this.setTag = this.setTag.bind(this);
    this.multiSetTag = this.multiSetTag.bind(this);
    this.deleteTag = this.deleteTag.bind(this);
    this.multiDeleteTag = this.multiDeleteTag.bind(this);
    this.addMember = this.addMember.bind(this);
    this.updateMemberRole = this.updateMemberRole.bind(this);
    this.removeMember = this.removeMember.bind(this);
    this.createBounty = this.createBounty.bind(this);
    this.updateBountyExpiry = this.updateBountyExpiry.bind(this);
    this.closeBounty = this.closeBounty.bind(this);
    this.deleteBounty = this.deleteBounty.bind(this);
    this.exercise = this.exercise.bind(this);
    this.createRelease = this.createRelease.bind(this);
    this.updateRelease = this.updateRelease.bind(this);
    this.deleteRelease = this.deleteRelease.bind(this);
    this.createPullRequest = this.createPullRequest.bind(this);
    this.updatePullRequestTitle = this.updatePullRequestTitle.bind(this);
    this.updatePullRequestDescription = this.updatePullRequestDescription.bind(this);
    this.invokeMergePullRequest = this.invokeMergePullRequest.bind(this);
    this.setPullRequestState = this.setPullRequestState.bind(this);
    this.addPullRequestReviewers = this.addPullRequestReviewers.bind(this);
    this.removePullRequestReviewers = this.removePullRequestReviewers.bind(this);
    this.addPullRequestAssignees = this.addPullRequestAssignees.bind(this);
    this.removePullRequestAssignees = this.removePullRequestAssignees.bind(this);
    this.linkPullRequestIssueByIid = this.linkPullRequestIssueByIid.bind(this);
    this.unlinkPullRequestIssueByIid = this.unlinkPullRequestIssueByIid.bind(this);
    this.addPullRequestLabels = this.addPullRequestLabels.bind(this);
    this.removePullRequestLabels = this.removePullRequestLabels.bind(this);
    this.deletePullRequest = this.deletePullRequest.bind(this);
    this.createDao = this.createDao.bind(this);
    this.renameDao = this.renameDao.bind(this);
    this.updateDaoDescription = this.updateDaoDescription.bind(this);
    this.updateDaoWebsite = this.updateDaoWebsite.bind(this);
    this.updateDaoLocation = this.updateDaoLocation.bind(this);
    this.updateDaoAvatar = this.updateDaoAvatar.bind(this);
    this.deleteDao = this.deleteDao.bind(this);
    this.createComment = this.createComment.bind(this);
    this.updateComment = this.updateComment.bind(this);
    this.deleteComment = this.deleteComment.bind(this);
    this.toggleCommentResolved = this.toggleCommentResolved.bind(this);
    this.createIssue = this.createIssue.bind(this);
    this.updateIssueTitle = this.updateIssueTitle.bind(this);
    this.updateIssueDescription = this.updateIssueDescription.bind(this);
    this.toggleIssueState = this.toggleIssueState.bind(this);
    this.addIssueAssignees = this.addIssueAssignees.bind(this);
    this.removeIssueAssignees = this.removeIssueAssignees.bind(this);
    this.addIssueLabels = this.addIssueLabels.bind(this);
    this.removeIssueLabels = this.removeIssueLabels.bind(this);
    this.deleteIssue = this.deleteIssue.bind(this);
    this.createRepository = this.createRepository.bind(this);
    this.invokeForkRepository = this.invokeForkRepository.bind(this);
    this.forkRepository = this.forkRepository.bind(this);
    this.forkRepositorySuccess = this.forkRepositorySuccess.bind(this);
    this.renameRepository = this.renameRepository.bind(this);
    this.updateRepositoryDescription = this.updateRepositoryDescription.bind(this);
    this.toggleRepositoryArchived = this.toggleRepositoryArchived.bind(this);
    this.changeOwner = this.changeOwner.bind(this);
    this.updateRepositoryCollaborator = this.updateRepositoryCollaborator.bind(this);
    this.removeRepositoryCollaborator = this.removeRepositoryCollaborator.bind(this);
    this.createRepositoryLabel = this.createRepositoryLabel.bind(this);
    this.updateRepositoryLabel = this.updateRepositoryLabel.bind(this);
    this.deleteRepositoryLabel = this.deleteRepositoryLabel.bind(this);
    this.setDefaultBranch = this.setDefaultBranch.bind(this);
    this.toggleRepositoryForking = this.toggleRepositoryForking.bind(this);
    this.toggleArweaveBackup = this.toggleArweaveBackup.bind(this);
    this.deleteRepository = this.deleteRepository.bind(this);
    this.createUser = this.createUser.bind(this);
    this.updateUserUsername = this.updateUserUsername.bind(this);
    this.updateUserName = this.updateUserName.bind(this);
    this.updateUserBio = this.updateUserBio.bind(this);
    this.updateUserAvatar = this.updateUserAvatar.bind(this);
    this.deleteUser = this.deleteUser.bind(this);
    this.updateRepositoryBackupRef = this.updateRepositoryBackupRef.bind(this);
    this.addRepositoryBackupRef = this.addRepositoryBackupRef.bind(this);
    this.updateUserPinnedRepositories = this.updateUserPinnedRepositories.bind(this);
    this.updateDaoPinnedRepositories = this.updateDaoPinnedRepositories.bind(this);
    this.updateParams = this.updateParams.bind(this);
    this.distributePlatformIncentives = this.distributePlatformIncentives.bind(this);
  }
  return (0, _createClass2["default"])(MsgClientImpl, [{
    key: "toggleForcePush",
    value: function toggleForcePush(request) {
      var data = _tx.MsgToggleForcePush.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "ToggleForcePush", data);
      return promise.then(function (data) {
        return _tx.MsgToggleForcePushResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "revokeProviderPermission",
    value: function revokeProviderPermission(request) {
      var data = _tx.MsgRevokeProviderPermission.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "RevokeProviderPermission", data);
      return promise.then(function (data) {
        return _tx.MsgRevokeProviderPermissionResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "authorizeProvider",
    value: function authorizeProvider(request) {
      var data = _tx.MsgAuthorizeProvider.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "AuthorizeProvider", data);
      return promise.then(function (data) {
        return _tx.MsgAuthorizeProviderResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "createTask",
    value: function createTask(request) {
      var data = _tx.MsgCreateTask.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "CreateTask", data);
      return promise.then(function (data) {
        return _tx.MsgCreateTaskResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "updateTask",
    value: function updateTask(request) {
      var data = _tx.MsgUpdateTask.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "UpdateTask", data);
      return promise.then(function (data) {
        return _tx.MsgUpdateTaskResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "deleteTask",
    value: function deleteTask(request) {
      var data = _tx.MsgDeleteTask.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "DeleteTask", data);
      return promise.then(function (data) {
        return _tx.MsgDeleteTaskResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "setBranch",
    value: function setBranch(request) {
      var data = _tx.MsgSetBranch.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "SetBranch", data);
      return promise.then(function (data) {
        return _tx.MsgSetBranchResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "multiSetBranch",
    value: function multiSetBranch(request) {
      var data = _tx.MsgMultiSetBranch.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "MultiSetBranch", data);
      return promise.then(function (data) {
        return _tx.MsgMultiSetBranchResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "deleteBranch",
    value: function deleteBranch(request) {
      var data = _tx.MsgDeleteBranch.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "DeleteBranch", data);
      return promise.then(function (data) {
        return _tx.MsgDeleteBranchResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "multiDeleteBranch",
    value: function multiDeleteBranch(request) {
      var data = _tx.MsgMultiDeleteBranch.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "MultiDeleteBranch", data);
      return promise.then(function (data) {
        return _tx.MsgMultiDeleteBranchResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "setTag",
    value: function setTag(request) {
      var data = _tx.MsgSetTag.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "SetTag", data);
      return promise.then(function (data) {
        return _tx.MsgSetTagResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "multiSetTag",
    value: function multiSetTag(request) {
      var data = _tx.MsgMultiSetTag.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "MultiSetTag", data);
      return promise.then(function (data) {
        return _tx.MsgMultiSetTagResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "deleteTag",
    value: function deleteTag(request) {
      var data = _tx.MsgDeleteTag.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "DeleteTag", data);
      return promise.then(function (data) {
        return _tx.MsgDeleteTagResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "multiDeleteTag",
    value: function multiDeleteTag(request) {
      var data = _tx.MsgMultiDeleteTag.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "MultiDeleteTag", data);
      return promise.then(function (data) {
        return _tx.MsgMultiDeleteTagResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "addMember",
    value: function addMember(request) {
      var data = _tx.MsgAddMember.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "AddMember", data);
      return promise.then(function (data) {
        return _tx.MsgAddMemberResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "updateMemberRole",
    value: function updateMemberRole(request) {
      var data = _tx.MsgUpdateMemberRole.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "UpdateMemberRole", data);
      return promise.then(function (data) {
        return _tx.MsgUpdateMemberRoleResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "removeMember",
    value: function removeMember(request) {
      var data = _tx.MsgRemoveMember.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "RemoveMember", data);
      return promise.then(function (data) {
        return _tx.MsgRemoveMemberResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "createBounty",
    value: function createBounty(request) {
      var data = _tx.MsgCreateBounty.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "CreateBounty", data);
      return promise.then(function (data) {
        return _tx.MsgCreateBountyResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "updateBountyExpiry",
    value: function updateBountyExpiry(request) {
      var data = _tx.MsgUpdateBountyExpiry.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "UpdateBountyExpiry", data);
      return promise.then(function (data) {
        return _tx.MsgUpdateBountyExpiryResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "closeBounty",
    value: function closeBounty(request) {
      var data = _tx.MsgCloseBounty.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "CloseBounty", data);
      return promise.then(function (data) {
        return _tx.MsgCloseBountyResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "deleteBounty",
    value: function deleteBounty(request) {
      var data = _tx.MsgDeleteBounty.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "DeleteBounty", data);
      return promise.then(function (data) {
        return _tx.MsgDeleteBountyResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "exercise",
    value: function exercise(request) {
      var data = _tx.MsgExercise.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "Exercise", data);
      return promise.then(function (data) {
        return _tx.MsgExerciseResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "createRelease",
    value: function createRelease(request) {
      var data = _tx.MsgCreateRelease.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "CreateRelease", data);
      return promise.then(function (data) {
        return _tx.MsgCreateReleaseResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "updateRelease",
    value: function updateRelease(request) {
      var data = _tx.MsgUpdateRelease.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "UpdateRelease", data);
      return promise.then(function (data) {
        return _tx.MsgUpdateReleaseResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "deleteRelease",
    value: function deleteRelease(request) {
      var data = _tx.MsgDeleteRelease.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "DeleteRelease", data);
      return promise.then(function (data) {
        return _tx.MsgDeleteReleaseResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "createPullRequest",
    value: function createPullRequest(request) {
      var data = _tx.MsgCreatePullRequest.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "CreatePullRequest", data);
      return promise.then(function (data) {
        return _tx.MsgCreatePullRequestResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "updatePullRequestTitle",
    value: function updatePullRequestTitle(request) {
      var data = _tx.MsgUpdatePullRequestTitle.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "UpdatePullRequestTitle", data);
      return promise.then(function (data) {
        return _tx.MsgUpdatePullRequestTitleResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "updatePullRequestDescription",
    value: function updatePullRequestDescription(request) {
      var data = _tx.MsgUpdatePullRequestDescription.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "UpdatePullRequestDescription", data);
      return promise.then(function (data) {
        return _tx.MsgUpdatePullRequestDescriptionResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "invokeMergePullRequest",
    value: function invokeMergePullRequest(request) {
      var data = _tx.MsgInvokeMergePullRequest.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "InvokeMergePullRequest", data);
      return promise.then(function (data) {
        return _tx.MsgInvokeMergePullRequestResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "setPullRequestState",
    value: function setPullRequestState(request) {
      var data = _tx.MsgSetPullRequestState.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "SetPullRequestState", data);
      return promise.then(function (data) {
        return _tx.MsgSetPullRequestStateResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "addPullRequestReviewers",
    value: function addPullRequestReviewers(request) {
      var data = _tx.MsgAddPullRequestReviewers.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "AddPullRequestReviewers", data);
      return promise.then(function (data) {
        return _tx.MsgAddPullRequestReviewersResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "removePullRequestReviewers",
    value: function removePullRequestReviewers(request) {
      var data = _tx.MsgRemovePullRequestReviewers.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "RemovePullRequestReviewers", data);
      return promise.then(function (data) {
        return _tx.MsgRemovePullRequestReviewersResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "addPullRequestAssignees",
    value: function addPullRequestAssignees(request) {
      var data = _tx.MsgAddPullRequestAssignees.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "AddPullRequestAssignees", data);
      return promise.then(function (data) {
        return _tx.MsgAddPullRequestAssigneesResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "removePullRequestAssignees",
    value: function removePullRequestAssignees(request) {
      var data = _tx.MsgRemovePullRequestAssignees.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "RemovePullRequestAssignees", data);
      return promise.then(function (data) {
        return _tx.MsgRemovePullRequestAssigneesResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "linkPullRequestIssueByIid",
    value: function linkPullRequestIssueByIid(request) {
      var data = _tx.MsgLinkPullRequestIssueByIid.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "LinkPullRequestIssueByIid", data);
      return promise.then(function (data) {
        return _tx.MsgLinkPullRequestIssueByIidResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "unlinkPullRequestIssueByIid",
    value: function unlinkPullRequestIssueByIid(request) {
      var data = _tx.MsgUnlinkPullRequestIssueByIid.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "UnlinkPullRequestIssueByIid", data);
      return promise.then(function (data) {
        return _tx.MsgUnlinkPullRequestIssueByIidResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "addPullRequestLabels",
    value: function addPullRequestLabels(request) {
      var data = _tx.MsgAddPullRequestLabels.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "AddPullRequestLabels", data);
      return promise.then(function (data) {
        return _tx.MsgAddPullRequestLabelsResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "removePullRequestLabels",
    value: function removePullRequestLabels(request) {
      var data = _tx.MsgRemovePullRequestLabels.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "RemovePullRequestLabels", data);
      return promise.then(function (data) {
        return _tx.MsgRemovePullRequestLabelsResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "deletePullRequest",
    value: function deletePullRequest(request) {
      var data = _tx.MsgDeletePullRequest.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "DeletePullRequest", data);
      return promise.then(function (data) {
        return _tx.MsgDeletePullRequestResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "createDao",
    value: function createDao(request) {
      var data = _tx.MsgCreateDao.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "CreateDao", data);
      return promise.then(function (data) {
        return _tx.MsgCreateDaoResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "renameDao",
    value: function renameDao(request) {
      var data = _tx.MsgRenameDao.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "RenameDao", data);
      return promise.then(function (data) {
        return _tx.MsgRenameDaoResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "updateDaoDescription",
    value: function updateDaoDescription(request) {
      var data = _tx.MsgUpdateDaoDescription.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "UpdateDaoDescription", data);
      return promise.then(function (data) {
        return _tx.MsgUpdateDaoDescriptionResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "updateDaoWebsite",
    value: function updateDaoWebsite(request) {
      var data = _tx.MsgUpdateDaoWebsite.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "UpdateDaoWebsite", data);
      return promise.then(function (data) {
        return _tx.MsgUpdateDaoWebsiteResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "updateDaoLocation",
    value: function updateDaoLocation(request) {
      var data = _tx.MsgUpdateDaoLocation.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "UpdateDaoLocation", data);
      return promise.then(function (data) {
        return _tx.MsgUpdateDaoLocationResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "updateDaoAvatar",
    value: function updateDaoAvatar(request) {
      var data = _tx.MsgUpdateDaoAvatar.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "UpdateDaoAvatar", data);
      return promise.then(function (data) {
        return _tx.MsgUpdateDaoAvatarResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "deleteDao",
    value: function deleteDao(request) {
      var data = _tx.MsgDeleteDao.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "DeleteDao", data);
      return promise.then(function (data) {
        return _tx.MsgDeleteDaoResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "createComment",
    value: function createComment(request) {
      var data = _tx.MsgCreateComment.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "CreateComment", data);
      return promise.then(function (data) {
        return _tx.MsgCreateCommentResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "updateComment",
    value: function updateComment(request) {
      var data = _tx.MsgUpdateComment.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "UpdateComment", data);
      return promise.then(function (data) {
        return _tx.MsgUpdateCommentResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "deleteComment",
    value: function deleteComment(request) {
      var data = _tx.MsgDeleteComment.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "DeleteComment", data);
      return promise.then(function (data) {
        return _tx.MsgDeleteCommentResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "toggleCommentResolved",
    value: function toggleCommentResolved(request) {
      var data = _tx.MsgToggleCommentResolved.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "ToggleCommentResolved", data);
      return promise.then(function (data) {
        return _tx.MsgToggleCommentResolvedResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "createIssue",
    value: function createIssue(request) {
      var data = _tx.MsgCreateIssue.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "CreateIssue", data);
      return promise.then(function (data) {
        return _tx.MsgCreateIssueResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "updateIssueTitle",
    value: function updateIssueTitle(request) {
      var data = _tx.MsgUpdateIssueTitle.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "UpdateIssueTitle", data);
      return promise.then(function (data) {
        return _tx.MsgUpdateIssueTitleResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "updateIssueDescription",
    value: function updateIssueDescription(request) {
      var data = _tx.MsgUpdateIssueDescription.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "UpdateIssueDescription", data);
      return promise.then(function (data) {
        return _tx.MsgUpdateIssueDescriptionResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "toggleIssueState",
    value: function toggleIssueState(request) {
      var data = _tx.MsgToggleIssueState.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "ToggleIssueState", data);
      return promise.then(function (data) {
        return _tx.MsgToggleIssueStateResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "addIssueAssignees",
    value: function addIssueAssignees(request) {
      var data = _tx.MsgAddIssueAssignees.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "AddIssueAssignees", data);
      return promise.then(function (data) {
        return _tx.MsgAddIssueAssigneesResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "removeIssueAssignees",
    value: function removeIssueAssignees(request) {
      var data = _tx.MsgRemoveIssueAssignees.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "RemoveIssueAssignees", data);
      return promise.then(function (data) {
        return _tx.MsgRemoveIssueAssigneesResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "addIssueLabels",
    value: function addIssueLabels(request) {
      var data = _tx.MsgAddIssueLabels.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "AddIssueLabels", data);
      return promise.then(function (data) {
        return _tx.MsgAddIssueLabelsResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "removeIssueLabels",
    value: function removeIssueLabels(request) {
      var data = _tx.MsgRemoveIssueLabels.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "RemoveIssueLabels", data);
      return promise.then(function (data) {
        return _tx.MsgRemoveIssueLabelsResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "deleteIssue",
    value: function deleteIssue(request) {
      var data = _tx.MsgDeleteIssue.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "DeleteIssue", data);
      return promise.then(function (data) {
        return _tx.MsgDeleteIssueResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "createRepository",
    value: function createRepository(request) {
      var data = _tx.MsgCreateRepository.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "CreateRepository", data);
      return promise.then(function (data) {
        return _tx.MsgCreateRepositoryResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "invokeForkRepository",
    value: function invokeForkRepository(request) {
      var data = _tx.MsgInvokeForkRepository.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "InvokeForkRepository", data);
      return promise.then(function (data) {
        return _tx.MsgInvokeForkRepositoryResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "forkRepository",
    value: function forkRepository(request) {
      var data = _tx.MsgForkRepository.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "ForkRepository", data);
      return promise.then(function (data) {
        return _tx.MsgForkRepositoryResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "forkRepositorySuccess",
    value: function forkRepositorySuccess(request) {
      var data = _tx.MsgForkRepositorySuccess.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "ForkRepositorySuccess", data);
      return promise.then(function (data) {
        return _tx.MsgForkRepositorySuccessResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "renameRepository",
    value: function renameRepository(request) {
      var data = _tx.MsgRenameRepository.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "RenameRepository", data);
      return promise.then(function (data) {
        return _tx.MsgRenameRepositoryResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "updateRepositoryDescription",
    value: function updateRepositoryDescription(request) {
      var data = _tx.MsgUpdateRepositoryDescription.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "UpdateRepositoryDescription", data);
      return promise.then(function (data) {
        return _tx.MsgUpdateRepositoryDescriptionResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "toggleRepositoryArchived",
    value: function toggleRepositoryArchived(request) {
      var data = _tx.MsgToggleRepositoryArchived.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "ToggleRepositoryArchived", data);
      return promise.then(function (data) {
        return _tx.MsgToggleRepositoryArchivedResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "changeOwner",
    value: function changeOwner(request) {
      var data = _tx.MsgChangeOwner.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "ChangeOwner", data);
      return promise.then(function (data) {
        return _tx.MsgChangeOwnerResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "updateRepositoryCollaborator",
    value: function updateRepositoryCollaborator(request) {
      var data = _tx.MsgUpdateRepositoryCollaborator.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "UpdateRepositoryCollaborator", data);
      return promise.then(function (data) {
        return _tx.MsgUpdateRepositoryCollaboratorResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "removeRepositoryCollaborator",
    value: function removeRepositoryCollaborator(request) {
      var data = _tx.MsgRemoveRepositoryCollaborator.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "RemoveRepositoryCollaborator", data);
      return promise.then(function (data) {
        return _tx.MsgRemoveRepositoryCollaboratorResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "createRepositoryLabel",
    value: function createRepositoryLabel(request) {
      var data = _tx.MsgCreateRepositoryLabel.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "CreateRepositoryLabel", data);
      return promise.then(function (data) {
        return _tx.MsgCreateRepositoryLabelResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "updateRepositoryLabel",
    value: function updateRepositoryLabel(request) {
      var data = _tx.MsgUpdateRepositoryLabel.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "UpdateRepositoryLabel", data);
      return promise.then(function (data) {
        return _tx.MsgUpdateRepositoryLabelResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "deleteRepositoryLabel",
    value: function deleteRepositoryLabel(request) {
      var data = _tx.MsgDeleteRepositoryLabel.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "DeleteRepositoryLabel", data);
      return promise.then(function (data) {
        return _tx.MsgDeleteRepositoryLabelResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "setDefaultBranch",
    value: function setDefaultBranch(request) {
      var data = _tx.MsgSetDefaultBranch.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "SetDefaultBranch", data);
      return promise.then(function (data) {
        return _tx.MsgSetDefaultBranchResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "toggleRepositoryForking",
    value: function toggleRepositoryForking(request) {
      var data = _tx.MsgToggleRepositoryForking.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "ToggleRepositoryForking", data);
      return promise.then(function (data) {
        return _tx.MsgToggleRepositoryForkingResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "toggleArweaveBackup",
    value: function toggleArweaveBackup(request) {
      var data = _tx.MsgToggleArweaveBackup.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "ToggleArweaveBackup", data);
      return promise.then(function (data) {
        return _tx.MsgToggleArweaveBackupResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "deleteRepository",
    value: function deleteRepository(request) {
      var data = _tx.MsgDeleteRepository.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "DeleteRepository", data);
      return promise.then(function (data) {
        return _tx.MsgDeleteRepositoryResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "createUser",
    value: function createUser(request) {
      var data = _tx.MsgCreateUser.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "CreateUser", data);
      return promise.then(function (data) {
        return _tx.MsgCreateUserResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "updateUserUsername",
    value: function updateUserUsername(request) {
      var data = _tx.MsgUpdateUserUsername.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "UpdateUserUsername", data);
      return promise.then(function (data) {
        return _tx.MsgUpdateUserUsernameResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "updateUserName",
    value: function updateUserName(request) {
      var data = _tx.MsgUpdateUserName.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "UpdateUserName", data);
      return promise.then(function (data) {
        return _tx.MsgUpdateUserNameResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "updateUserBio",
    value: function updateUserBio(request) {
      var data = _tx.MsgUpdateUserBio.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "UpdateUserBio", data);
      return promise.then(function (data) {
        return _tx.MsgUpdateUserBioResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "updateUserAvatar",
    value: function updateUserAvatar(request) {
      var data = _tx.MsgUpdateUserAvatar.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "UpdateUserAvatar", data);
      return promise.then(function (data) {
        return _tx.MsgUpdateUserAvatarResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "deleteUser",
    value: function deleteUser(request) {
      var data = _tx.MsgDeleteUser.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "DeleteUser", data);
      return promise.then(function (data) {
        return _tx.MsgDeleteUserResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "updateRepositoryBackupRef",
    value: function updateRepositoryBackupRef(request) {
      var data = _tx.MsgUpdateRepositoryBackupRef.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "UpdateRepositoryBackupRef", data);
      return promise.then(function (data) {
        return _tx.MsgUpdateRepositoryBackupRefResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "addRepositoryBackupRef",
    value: function addRepositoryBackupRef(request) {
      var data = _tx.MsgAddRepositoryBackupRef.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "AddRepositoryBackupRef", data);
      return promise.then(function (data) {
        return _tx.MsgAddRepositoryBackupRefResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "updateUserPinnedRepositories",
    value: function updateUserPinnedRepositories(request) {
      var data = _tx.MsgUpdateUserPinnedRepositories.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "UpdateUserPinnedRepositories", data);
      return promise.then(function (data) {
        return _tx.MsgUpdateUserPinnedRepositoriesResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "updateDaoPinnedRepositories",
    value: function updateDaoPinnedRepositories(request) {
      var data = _tx.MsgUpdateDaoPinnedRepositories.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "UpdateDaoPinnedRepositories", data);
      return promise.then(function (data) {
        return _tx.MsgUpdateDaoPinnedRepositoriesResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "updateParams",
    value: function updateParams(request) {
      var data = _tx.MsgUpdateParams.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "UpdateParams", data);
      return promise.then(function (data) {
        return _tx.MsgUpdateParamsResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }, {
    key: "distributePlatformIncentives",
    value: function distributePlatformIncentives(request) {
      var data = _tx.MsgDistributePlatformIncentives.encode(request).finish();
      var promise = this.rpc.request("gitopia.gitopia.gitopia.Msg", "DistributePlatformIncentives", data);
      return promise.then(function (data) {
        return _tx.MsgDistributePlatformIncentivesResponse.decode(new _binary.BinaryReader(data));
      });
    }
  }]);
}();