diff --git a/src/agent/agentService.ts b/src/agent/agentService.ts index 1f827f8327..9e3a6b99ab 100644 --- a/src/agent/agentService.ts +++ b/src/agent/agentService.ts @@ -178,13 +178,10 @@ function createAgentService({ }); }, nodesScan: async ( - call: grpc.ServerWritableStream< - agentPB.NodeIdMessage, - agentPB.VaultListMessage - >, + call: grpc.ServerWritableStream, ): Promise => { const genWritable = grpcUtils.generatorWritable(call); - const response = new agentPB.VaultListMessage(); + const response = new vaultsPB.List(); const nodeId = makeNodeId(call.request.getNodeId()); const perms = await gestaltGraph.getGestaltActionsByNode(nodeId); if (!perms) { diff --git a/src/client/clientService.ts b/src/client/clientService.ts index 28502537a4..d868142c6d 100644 --- a/src/client/clientService.ts +++ b/src/client/clientService.ts @@ -16,14 +16,7 @@ import { IClientServiceServer, } from '../proto/js/polykey/v1/client_service_grpc_pb'; import * as utilsPB from '../proto/js/polykey/v1/utils/utils_pb'; -import * as vaultsPB from '../proto/js/polykey/v1/vaults/vaults_pb'; import * as nodesPB from '../proto/js/polykey/v1/nodes/nodes_pb'; -import * as notificationsPB from '../proto/js/polykey/v1/notifications/notifications_pb'; -import * as sessionsPB from '../proto/js/polykey/v1/sessions/sessions_pb'; -import * as gestaltsPB from '../proto/js/polykey/v1/gestalts/gestalts_pb'; -import * as identitiesPB from '../proto/js/polykey/v1/identities/identities_pb'; -import * as keysPB from '../proto/js/polykey/v1/keys/keys_pb'; -import * as permissionsPB from '../proto/js/polykey/v1/permissions/permissions_pb'; import createEchoRPC from './rpcEcho'; import createSessionRPC from './rpcSession'; import createVaultRPC from './rpcVaults'; diff --git a/src/client/rpcNodes.ts b/src/client/rpcNodes.ts index 4ccbbf465b..3312aeeae2 100644 --- a/src/client/rpcNodes.ts +++ b/src/client/rpcNodes.ts @@ -7,6 +7,7 @@ import type { NotificationsManager } from '../notifications'; import * as grpc from '@grpc/grpc-js'; import * as utilsPB from '../proto/js/polykey/v1/utils/utils_pb'; import * as nodesPB from '../proto/js/polykey/v1/nodes/nodes_pb'; +import * as vaultsPB from '../proto/js/polykey/v1/vaults/vaults_pb'; import * as utils from '../client/utils'; import * as nodesUtils from '../nodes/utils'; import * as grpcUtils from '../grpc/utils'; @@ -151,10 +152,7 @@ const createNodesRPC = ({ callback(null, response); }, nodesScan: async ( - call: grpc.ServerWritableStream< - clientPB.NodeMessage, - clientPB.VaultListMessage - >, + call: grpc.ServerWritableStream, ): Promise => { const genWritable = grpcUtils.generatorWritable(call); const nodeId = makeNodeId(call.request.getNodeId()); @@ -166,7 +164,7 @@ const createNodesRPC = ({ call.sendMetadata(responseMeta); const list = await nodeManager.scanNodeVaults(nodeId); for (const vault of list) { - const vaultListMessage = new clientPB.VaultListMessage(); + const vaultListMessage = new vaultsPB.List(); vaultListMessage.setVaultName(vault[0]); vaultListMessage.setVaultId(vaultsUtils.makeVaultIdPretty(vault[1])); await genWritable.next(vaultListMessage); diff --git a/src/client/rpcVaults.ts b/src/client/rpcVaults.ts index 40de4d7a03..ad31de9db1 100644 --- a/src/client/rpcVaults.ts +++ b/src/client/rpcVaults.ts @@ -8,7 +8,7 @@ import * as grpcUtils from '../grpc/utils'; import * as utilsPB from '../proto/js/polykey/v1/utils/utils_pb'; import * as vaultsPB from '../proto/js/polykey/v1/vaults/vaults_pb'; import * as secretsPB from '../proto/js/polykey/v1/secrets/secrets_pb'; -import { isNodeId, makeNodeId } from '../nodes/utils'; +import { makeNodeId } from '../nodes/utils'; import { vaultOps } from '../vaults'; import { makeVaultId, makeVaultIdPretty } from '../vaults/utils'; @@ -423,10 +423,7 @@ const createVaultRPC = ({ } }, vaultsShare: async ( - call: grpc.ServerUnaryCall< - vaultsPB.PermSet, - utilsPB.StatusMessage - >, + call: grpc.ServerUnaryCall, callback: grpc.sendUnaryData, ): Promise => { try { @@ -456,10 +453,7 @@ const createVaultRPC = ({ } }, vaultsUnshare: async ( - call: grpc.ServerUnaryCall< - vaultsPB.PermUnset, - utilsPB.StatusMessage - >, + call: grpc.ServerUnaryCall, callback: grpc.sendUnaryData, ): Promise => { try { diff --git a/src/nodes/NodeConnection.ts b/src/nodes/NodeConnection.ts index b4ec223326..8dc1a26b76 100644 --- a/src/nodes/NodeConnection.ts +++ b/src/nodes/NodeConnection.ts @@ -430,7 +430,7 @@ class NodeConnection { public async scanVaults( nodeId: NodeId, ): Promise> { - const nodeIdMessage = new agentPB.NodeIdMessage(); + const nodeIdMessage = new nodesPB.Node(); nodeIdMessage.setNodeId(nodeId); const vaults: Array<[VaultName, VaultId]> = []; const genReadable = this.client.nodesScan(nodeIdMessage); diff --git a/src/proto/js/Agent_grpc_pb.d.ts b/src/proto/js/Agent_grpc_pb.d.ts deleted file mode 100644 index c072c40549..0000000000 --- a/src/proto/js/Agent_grpc_pb.d.ts +++ /dev/null @@ -1,188 +0,0 @@ -// package: agentInterface -// file: Agent.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "@grpc/grpc-js"; -import * as Agent_pb from "./Agent_pb"; - -interface IAgentService extends grpc.ServiceDefinition { - echo: IAgentService_IEcho; - vaultsGitInfoGet: IAgentService_IVaultsGitInfoGet; - vaultsGitPackGet: IAgentService_IVaultsGitPackGet; - nodesClosestLocalNodesGet: IAgentService_INodesClosestLocalNodesGet; - nodesClaimsGet: IAgentService_INodesClaimsGet; - nodesChainDataGet: IAgentService_INodesChainDataGet; - nodesHolePunchMessageSend: IAgentService_INodesHolePunchMessageSend; - nodesCrossSignClaim: IAgentService_INodesCrossSignClaim; - nodesScan: IAgentService_INodesScan; - notificationsSend: IAgentService_INotificationsSend; -} - -interface IAgentService_IEcho extends grpc.MethodDefinition { - path: "/agentInterface.Agent/Echo"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IAgentService_IVaultsGitInfoGet extends grpc.MethodDefinition { - path: "/agentInterface.Agent/VaultsGitInfoGet"; - requestStream: false; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IAgentService_IVaultsGitPackGet extends grpc.MethodDefinition { - path: "/agentInterface.Agent/VaultsGitPackGet"; - requestStream: true; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IAgentService_INodesClosestLocalNodesGet extends grpc.MethodDefinition { - path: "/agentInterface.Agent/NodesClosestLocalNodesGet"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IAgentService_INodesClaimsGet extends grpc.MethodDefinition { - path: "/agentInterface.Agent/NodesClaimsGet"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IAgentService_INodesChainDataGet extends grpc.MethodDefinition { - path: "/agentInterface.Agent/NodesChainDataGet"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IAgentService_INodesHolePunchMessageSend extends grpc.MethodDefinition { - path: "/agentInterface.Agent/NodesHolePunchMessageSend"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IAgentService_INodesCrossSignClaim extends grpc.MethodDefinition { - path: "/agentInterface.Agent/NodesCrossSignClaim"; - requestStream: true; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IAgentService_INodesScan extends grpc.MethodDefinition { - path: "/agentInterface.Agent/NodesScan"; - requestStream: false; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IAgentService_INotificationsSend extends grpc.MethodDefinition { - path: "/agentInterface.Agent/NotificationsSend"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const AgentService: IAgentService; - -export interface IAgentServer extends grpc.UntypedServiceImplementation { - echo: grpc.handleUnaryCall; - vaultsGitInfoGet: grpc.handleServerStreamingCall; - vaultsGitPackGet: grpc.handleBidiStreamingCall; - nodesClosestLocalNodesGet: grpc.handleUnaryCall; - nodesClaimsGet: grpc.handleUnaryCall; - nodesChainDataGet: grpc.handleUnaryCall; - nodesHolePunchMessageSend: grpc.handleUnaryCall; - nodesCrossSignClaim: grpc.handleBidiStreamingCall; - nodesScan: grpc.handleServerStreamingCall; - notificationsSend: grpc.handleUnaryCall; -} - -export interface IAgentClient { - echo(request: Agent_pb.EchoMessage, callback: (error: grpc.ServiceError | null, response: Agent_pb.EchoMessage) => void): grpc.ClientUnaryCall; - echo(request: Agent_pb.EchoMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Agent_pb.EchoMessage) => void): grpc.ClientUnaryCall; - echo(request: Agent_pb.EchoMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Agent_pb.EchoMessage) => void): grpc.ClientUnaryCall; - vaultsGitInfoGet(request: Agent_pb.InfoRequest, options?: Partial): grpc.ClientReadableStream; - vaultsGitInfoGet(request: Agent_pb.InfoRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - vaultsGitPackGet(): grpc.ClientDuplexStream; - vaultsGitPackGet(options: Partial): grpc.ClientDuplexStream; - vaultsGitPackGet(metadata: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; - nodesClosestLocalNodesGet(request: Agent_pb.NodeIdMessage, callback: (error: grpc.ServiceError | null, response: Agent_pb.NodeTableMessage) => void): grpc.ClientUnaryCall; - nodesClosestLocalNodesGet(request: Agent_pb.NodeIdMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Agent_pb.NodeTableMessage) => void): grpc.ClientUnaryCall; - nodesClosestLocalNodesGet(request: Agent_pb.NodeIdMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Agent_pb.NodeTableMessage) => void): grpc.ClientUnaryCall; - nodesClaimsGet(request: Agent_pb.ClaimTypeMessage, callback: (error: grpc.ServiceError | null, response: Agent_pb.ClaimsMessage) => void): grpc.ClientUnaryCall; - nodesClaimsGet(request: Agent_pb.ClaimTypeMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Agent_pb.ClaimsMessage) => void): grpc.ClientUnaryCall; - nodesClaimsGet(request: Agent_pb.ClaimTypeMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Agent_pb.ClaimsMessage) => void): grpc.ClientUnaryCall; - nodesChainDataGet(request: Agent_pb.EmptyMessage, callback: (error: grpc.ServiceError | null, response: Agent_pb.ChainDataMessage) => void): grpc.ClientUnaryCall; - nodesChainDataGet(request: Agent_pb.EmptyMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Agent_pb.ChainDataMessage) => void): grpc.ClientUnaryCall; - nodesChainDataGet(request: Agent_pb.EmptyMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Agent_pb.ChainDataMessage) => void): grpc.ClientUnaryCall; - nodesHolePunchMessageSend(request: Agent_pb.RelayMessage, callback: (error: grpc.ServiceError | null, response: Agent_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - nodesHolePunchMessageSend(request: Agent_pb.RelayMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Agent_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - nodesHolePunchMessageSend(request: Agent_pb.RelayMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Agent_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - nodesCrossSignClaim(): grpc.ClientDuplexStream; - nodesCrossSignClaim(options: Partial): grpc.ClientDuplexStream; - nodesCrossSignClaim(metadata: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; - nodesScan(request: Agent_pb.NodeIdMessage, options?: Partial): grpc.ClientReadableStream; - nodesScan(request: Agent_pb.NodeIdMessage, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - notificationsSend(request: Agent_pb.NotificationMessage, callback: (error: grpc.ServiceError | null, response: Agent_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - notificationsSend(request: Agent_pb.NotificationMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Agent_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - notificationsSend(request: Agent_pb.NotificationMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Agent_pb.EmptyMessage) => void): grpc.ClientUnaryCall; -} - -export class AgentClient extends grpc.Client implements IAgentClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); - public echo(request: Agent_pb.EchoMessage, callback: (error: grpc.ServiceError | null, response: Agent_pb.EchoMessage) => void): grpc.ClientUnaryCall; - public echo(request: Agent_pb.EchoMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Agent_pb.EchoMessage) => void): grpc.ClientUnaryCall; - public echo(request: Agent_pb.EchoMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Agent_pb.EchoMessage) => void): grpc.ClientUnaryCall; - public vaultsGitInfoGet(request: Agent_pb.InfoRequest, options?: Partial): grpc.ClientReadableStream; - public vaultsGitInfoGet(request: Agent_pb.InfoRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - public vaultsGitPackGet(options?: Partial): grpc.ClientDuplexStream; - public vaultsGitPackGet(metadata?: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; - public nodesClosestLocalNodesGet(request: Agent_pb.NodeIdMessage, callback: (error: grpc.ServiceError | null, response: Agent_pb.NodeTableMessage) => void): grpc.ClientUnaryCall; - public nodesClosestLocalNodesGet(request: Agent_pb.NodeIdMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Agent_pb.NodeTableMessage) => void): grpc.ClientUnaryCall; - public nodesClosestLocalNodesGet(request: Agent_pb.NodeIdMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Agent_pb.NodeTableMessage) => void): grpc.ClientUnaryCall; - public nodesClaimsGet(request: Agent_pb.ClaimTypeMessage, callback: (error: grpc.ServiceError | null, response: Agent_pb.ClaimsMessage) => void): grpc.ClientUnaryCall; - public nodesClaimsGet(request: Agent_pb.ClaimTypeMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Agent_pb.ClaimsMessage) => void): grpc.ClientUnaryCall; - public nodesClaimsGet(request: Agent_pb.ClaimTypeMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Agent_pb.ClaimsMessage) => void): grpc.ClientUnaryCall; - public nodesChainDataGet(request: Agent_pb.EmptyMessage, callback: (error: grpc.ServiceError | null, response: Agent_pb.ChainDataMessage) => void): grpc.ClientUnaryCall; - public nodesChainDataGet(request: Agent_pb.EmptyMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Agent_pb.ChainDataMessage) => void): grpc.ClientUnaryCall; - public nodesChainDataGet(request: Agent_pb.EmptyMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Agent_pb.ChainDataMessage) => void): grpc.ClientUnaryCall; - public nodesHolePunchMessageSend(request: Agent_pb.RelayMessage, callback: (error: grpc.ServiceError | null, response: Agent_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public nodesHolePunchMessageSend(request: Agent_pb.RelayMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Agent_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public nodesHolePunchMessageSend(request: Agent_pb.RelayMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Agent_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public nodesCrossSignClaim(options?: Partial): grpc.ClientDuplexStream; - public nodesCrossSignClaim(metadata?: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; - public nodesScan(request: Agent_pb.NodeIdMessage, options?: Partial): grpc.ClientReadableStream; - public nodesScan(request: Agent_pb.NodeIdMessage, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - public notificationsSend(request: Agent_pb.NotificationMessage, callback: (error: grpc.ServiceError | null, response: Agent_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public notificationsSend(request: Agent_pb.NotificationMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Agent_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public notificationsSend(request: Agent_pb.NotificationMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Agent_pb.EmptyMessage) => void): grpc.ClientUnaryCall; -} diff --git a/src/proto/js/Agent_grpc_pb.js b/src/proto/js/Agent_grpc_pb.js deleted file mode 100644 index d2adc7a63e..0000000000 --- a/src/proto/js/Agent_grpc_pb.js +++ /dev/null @@ -1,268 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -'use strict'; -var grpc = require('@grpc/grpc-js'); -var Agent_pb = require('./Agent_pb.js'); - -function serialize_agentInterface_ChainDataMessage(arg) { - if (!(arg instanceof Agent_pb.ChainDataMessage)) { - throw new Error('Expected argument of type agentInterface.ChainDataMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_agentInterface_ChainDataMessage(buffer_arg) { - return Agent_pb.ChainDataMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_agentInterface_ClaimTypeMessage(arg) { - if (!(arg instanceof Agent_pb.ClaimTypeMessage)) { - throw new Error('Expected argument of type agentInterface.ClaimTypeMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_agentInterface_ClaimTypeMessage(buffer_arg) { - return Agent_pb.ClaimTypeMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_agentInterface_ClaimsMessage(arg) { - if (!(arg instanceof Agent_pb.ClaimsMessage)) { - throw new Error('Expected argument of type agentInterface.ClaimsMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_agentInterface_ClaimsMessage(buffer_arg) { - return Agent_pb.ClaimsMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_agentInterface_CrossSignMessage(arg) { - if (!(arg instanceof Agent_pb.CrossSignMessage)) { - throw new Error('Expected argument of type agentInterface.CrossSignMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_agentInterface_CrossSignMessage(buffer_arg) { - return Agent_pb.CrossSignMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_agentInterface_EchoMessage(arg) { - if (!(arg instanceof Agent_pb.EchoMessage)) { - throw new Error('Expected argument of type agentInterface.EchoMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_agentInterface_EchoMessage(buffer_arg) { - return Agent_pb.EchoMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_agentInterface_EmptyMessage(arg) { - if (!(arg instanceof Agent_pb.EmptyMessage)) { - throw new Error('Expected argument of type agentInterface.EmptyMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_agentInterface_EmptyMessage(buffer_arg) { - return Agent_pb.EmptyMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_agentInterface_InfoRequest(arg) { - if (!(arg instanceof Agent_pb.InfoRequest)) { - throw new Error('Expected argument of type agentInterface.InfoRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_agentInterface_InfoRequest(buffer_arg) { - return Agent_pb.InfoRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_agentInterface_NodeIdMessage(arg) { - if (!(arg instanceof Agent_pb.NodeIdMessage)) { - throw new Error('Expected argument of type agentInterface.NodeIdMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_agentInterface_NodeIdMessage(buffer_arg) { - return Agent_pb.NodeIdMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_agentInterface_NodeTableMessage(arg) { - if (!(arg instanceof Agent_pb.NodeTableMessage)) { - throw new Error('Expected argument of type agentInterface.NodeTableMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_agentInterface_NodeTableMessage(buffer_arg) { - return Agent_pb.NodeTableMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_agentInterface_NotificationMessage(arg) { - if (!(arg instanceof Agent_pb.NotificationMessage)) { - throw new Error('Expected argument of type agentInterface.NotificationMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_agentInterface_NotificationMessage(buffer_arg) { - return Agent_pb.NotificationMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_agentInterface_PackChunk(arg) { - if (!(arg instanceof Agent_pb.PackChunk)) { - throw new Error('Expected argument of type agentInterface.PackChunk'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_agentInterface_PackChunk(buffer_arg) { - return Agent_pb.PackChunk.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_agentInterface_RelayMessage(arg) { - if (!(arg instanceof Agent_pb.RelayMessage)) { - throw new Error('Expected argument of type agentInterface.RelayMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_agentInterface_RelayMessage(buffer_arg) { - return Agent_pb.RelayMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_agentInterface_VaultListMessage(arg) { - if (!(arg instanceof Agent_pb.VaultListMessage)) { - throw new Error('Expected argument of type agentInterface.VaultListMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_agentInterface_VaultListMessage(buffer_arg) { - return Agent_pb.VaultListMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -var AgentService = exports.AgentService = { - // Echo -echo: { - path: '/agentInterface.Agent/Echo', - requestStream: false, - responseStream: false, - requestType: Agent_pb.EchoMessage, - responseType: Agent_pb.EchoMessage, - requestSerialize: serialize_agentInterface_EchoMessage, - requestDeserialize: deserialize_agentInterface_EchoMessage, - responseSerialize: serialize_agentInterface_EchoMessage, - responseDeserialize: deserialize_agentInterface_EchoMessage, - }, - // Vaults -vaultsGitInfoGet: { - path: '/agentInterface.Agent/VaultsGitInfoGet', - requestStream: false, - responseStream: true, - requestType: Agent_pb.InfoRequest, - responseType: Agent_pb.PackChunk, - requestSerialize: serialize_agentInterface_InfoRequest, - requestDeserialize: deserialize_agentInterface_InfoRequest, - responseSerialize: serialize_agentInterface_PackChunk, - responseDeserialize: deserialize_agentInterface_PackChunk, - }, - vaultsGitPackGet: { - path: '/agentInterface.Agent/VaultsGitPackGet', - requestStream: true, - responseStream: true, - requestType: Agent_pb.PackChunk, - responseType: Agent_pb.PackChunk, - requestSerialize: serialize_agentInterface_PackChunk, - requestDeserialize: deserialize_agentInterface_PackChunk, - responseSerialize: serialize_agentInterface_PackChunk, - responseDeserialize: deserialize_agentInterface_PackChunk, - }, - // Nodes -nodesClosestLocalNodesGet: { - path: '/agentInterface.Agent/NodesClosestLocalNodesGet', - requestStream: false, - responseStream: false, - requestType: Agent_pb.NodeIdMessage, - responseType: Agent_pb.NodeTableMessage, - requestSerialize: serialize_agentInterface_NodeIdMessage, - requestDeserialize: deserialize_agentInterface_NodeIdMessage, - responseSerialize: serialize_agentInterface_NodeTableMessage, - responseDeserialize: deserialize_agentInterface_NodeTableMessage, - }, - nodesClaimsGet: { - path: '/agentInterface.Agent/NodesClaimsGet', - requestStream: false, - responseStream: false, - requestType: Agent_pb.ClaimTypeMessage, - responseType: Agent_pb.ClaimsMessage, - requestSerialize: serialize_agentInterface_ClaimTypeMessage, - requestDeserialize: deserialize_agentInterface_ClaimTypeMessage, - responseSerialize: serialize_agentInterface_ClaimsMessage, - responseDeserialize: deserialize_agentInterface_ClaimsMessage, - }, - nodesChainDataGet: { - path: '/agentInterface.Agent/NodesChainDataGet', - requestStream: false, - responseStream: false, - requestType: Agent_pb.EmptyMessage, - responseType: Agent_pb.ChainDataMessage, - requestSerialize: serialize_agentInterface_EmptyMessage, - requestDeserialize: deserialize_agentInterface_EmptyMessage, - responseSerialize: serialize_agentInterface_ChainDataMessage, - responseDeserialize: deserialize_agentInterface_ChainDataMessage, - }, - nodesHolePunchMessageSend: { - path: '/agentInterface.Agent/NodesHolePunchMessageSend', - requestStream: false, - responseStream: false, - requestType: Agent_pb.RelayMessage, - responseType: Agent_pb.EmptyMessage, - requestSerialize: serialize_agentInterface_RelayMessage, - requestDeserialize: deserialize_agentInterface_RelayMessage, - responseSerialize: serialize_agentInterface_EmptyMessage, - responseDeserialize: deserialize_agentInterface_EmptyMessage, - }, - nodesCrossSignClaim: { - path: '/agentInterface.Agent/NodesCrossSignClaim', - requestStream: true, - responseStream: true, - requestType: Agent_pb.CrossSignMessage, - responseType: Agent_pb.CrossSignMessage, - requestSerialize: serialize_agentInterface_CrossSignMessage, - requestDeserialize: deserialize_agentInterface_CrossSignMessage, - responseSerialize: serialize_agentInterface_CrossSignMessage, - responseDeserialize: deserialize_agentInterface_CrossSignMessage, - }, - nodesScan: { - path: '/agentInterface.Agent/NodesScan', - requestStream: false, - responseStream: true, - requestType: Agent_pb.NodeIdMessage, - responseType: Agent_pb.VaultListMessage, - requestSerialize: serialize_agentInterface_NodeIdMessage, - requestDeserialize: deserialize_agentInterface_NodeIdMessage, - responseSerialize: serialize_agentInterface_VaultListMessage, - responseDeserialize: deserialize_agentInterface_VaultListMessage, - }, - // Notifications -notificationsSend: { - path: '/agentInterface.Agent/NotificationsSend', - requestStream: false, - responseStream: false, - requestType: Agent_pb.NotificationMessage, - responseType: Agent_pb.EmptyMessage, - requestSerialize: serialize_agentInterface_NotificationMessage, - requestDeserialize: deserialize_agentInterface_NotificationMessage, - responseSerialize: serialize_agentInterface_EmptyMessage, - responseDeserialize: deserialize_agentInterface_EmptyMessage, - }, -}; - -exports.AgentClient = grpc.makeGenericClientConstructor(AgentService); diff --git a/src/proto/js/Agent_pb.d.ts b/src/proto/js/Agent_pb.d.ts deleted file mode 100644 index 8d0aef003f..0000000000 --- a/src/proto/js/Agent_pb.d.ts +++ /dev/null @@ -1,487 +0,0 @@ -// package: agentInterface -// file: Agent.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; - -export class EmptyMessage extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EmptyMessage.AsObject; - static toObject(includeInstance: boolean, msg: EmptyMessage): EmptyMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EmptyMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EmptyMessage; - static deserializeBinaryFromReader(message: EmptyMessage, reader: jspb.BinaryReader): EmptyMessage; -} - -export namespace EmptyMessage { - export type AsObject = { - } -} - -export class EchoMessage extends jspb.Message { - getChallenge(): string; - setChallenge(value: string): EchoMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EchoMessage.AsObject; - static toObject(includeInstance: boolean, msg: EchoMessage): EchoMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EchoMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EchoMessage; - static deserializeBinaryFromReader(message: EchoMessage, reader: jspb.BinaryReader): EchoMessage; -} - -export namespace EchoMessage { - export type AsObject = { - challenge: string, - } -} - -export class InfoRequest extends jspb.Message { - getVaultId(): string; - setVaultId(value: string): InfoRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InfoRequest.AsObject; - static toObject(includeInstance: boolean, msg: InfoRequest): InfoRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InfoRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InfoRequest; - static deserializeBinaryFromReader(message: InfoRequest, reader: jspb.BinaryReader): InfoRequest; -} - -export namespace InfoRequest { - export type AsObject = { - vaultId: string, - } -} - -export class PackChunk extends jspb.Message { - getChunk(): Uint8Array | string; - getChunk_asU8(): Uint8Array; - getChunk_asB64(): string; - setChunk(value: Uint8Array | string): PackChunk; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PackChunk.AsObject; - static toObject(includeInstance: boolean, msg: PackChunk): PackChunk.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PackChunk, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PackChunk; - static deserializeBinaryFromReader(message: PackChunk, reader: jspb.BinaryReader): PackChunk; -} - -export namespace PackChunk { - export type AsObject = { - chunk: Uint8Array | string, - } -} - -export class PackRequest extends jspb.Message { - getId(): string; - setId(value: string): PackRequest; - getBody(): Uint8Array | string; - getBody_asU8(): Uint8Array; - getBody_asB64(): string; - setBody(value: Uint8Array | string): PackRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PackRequest.AsObject; - static toObject(includeInstance: boolean, msg: PackRequest): PackRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PackRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PackRequest; - static deserializeBinaryFromReader(message: PackRequest, reader: jspb.BinaryReader): PackRequest; -} - -export namespace PackRequest { - export type AsObject = { - id: string, - body: Uint8Array | string, - } -} - -export class VaultListMessage extends jspb.Message { - getVaultName(): string; - setVaultName(value: string): VaultListMessage; - getVaultId(): string; - setVaultId(value: string): VaultListMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VaultListMessage.AsObject; - static toObject(includeInstance: boolean, msg: VaultListMessage): VaultListMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VaultListMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VaultListMessage; - static deserializeBinaryFromReader(message: VaultListMessage, reader: jspb.BinaryReader): VaultListMessage; -} - -export namespace VaultListMessage { - export type AsObject = { - vaultName: string, - vaultId: string, - } -} - -export class VaultPermMessage extends jspb.Message { - getNodeId(): string; - setNodeId(value: string): VaultPermMessage; - getVaultId(): string; - setVaultId(value: string): VaultPermMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VaultPermMessage.AsObject; - static toObject(includeInstance: boolean, msg: VaultPermMessage): VaultPermMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VaultPermMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VaultPermMessage; - static deserializeBinaryFromReader(message: VaultPermMessage, reader: jspb.BinaryReader): VaultPermMessage; -} - -export namespace VaultPermMessage { - export type AsObject = { - nodeId: string, - vaultId: string, - } -} - -export class PermissionMessage extends jspb.Message { - getPermission(): boolean; - setPermission(value: boolean): PermissionMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PermissionMessage.AsObject; - static toObject(includeInstance: boolean, msg: PermissionMessage): PermissionMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PermissionMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PermissionMessage; - static deserializeBinaryFromReader(message: PermissionMessage, reader: jspb.BinaryReader): PermissionMessage; -} - -export namespace PermissionMessage { - export type AsObject = { - permission: boolean, - } -} - -export class NodeIdMessage extends jspb.Message { - getNodeId(): string; - setNodeId(value: string): NodeIdMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NodeIdMessage.AsObject; - static toObject(includeInstance: boolean, msg: NodeIdMessage): NodeIdMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NodeIdMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NodeIdMessage; - static deserializeBinaryFromReader(message: NodeIdMessage, reader: jspb.BinaryReader): NodeIdMessage; -} - -export namespace NodeIdMessage { - export type AsObject = { - nodeId: string, - } -} - -export class ConnectionMessage extends jspb.Message { - getAId(): string; - setAId(value: string): ConnectionMessage; - getBId(): string; - setBId(value: string): ConnectionMessage; - getAIp(): string; - setAIp(value: string): ConnectionMessage; - getBIp(): string; - setBIp(value: string): ConnectionMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConnectionMessage.AsObject; - static toObject(includeInstance: boolean, msg: ConnectionMessage): ConnectionMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConnectionMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConnectionMessage; - static deserializeBinaryFromReader(message: ConnectionMessage, reader: jspb.BinaryReader): ConnectionMessage; -} - -export namespace ConnectionMessage { - export type AsObject = { - aId: string, - bId: string, - aIp: string, - bIp: string, - } -} - -export class RelayMessage extends jspb.Message { - getSrcId(): string; - setSrcId(value: string): RelayMessage; - getTargetId(): string; - setTargetId(value: string): RelayMessage; - getEgressAddress(): string; - setEgressAddress(value: string): RelayMessage; - getSignature(): string; - setSignature(value: string): RelayMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RelayMessage.AsObject; - static toObject(includeInstance: boolean, msg: RelayMessage): RelayMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RelayMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RelayMessage; - static deserializeBinaryFromReader(message: RelayMessage, reader: jspb.BinaryReader): RelayMessage; -} - -export namespace RelayMessage { - export type AsObject = { - srcId: string, - targetId: string, - egressAddress: string, - signature: string, - } -} - -export class NodeAddressMessage extends jspb.Message { - getIp(): string; - setIp(value: string): NodeAddressMessage; - getPort(): number; - setPort(value: number): NodeAddressMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NodeAddressMessage.AsObject; - static toObject(includeInstance: boolean, msg: NodeAddressMessage): NodeAddressMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NodeAddressMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NodeAddressMessage; - static deserializeBinaryFromReader(message: NodeAddressMessage, reader: jspb.BinaryReader): NodeAddressMessage; -} - -export namespace NodeAddressMessage { - export type AsObject = { - ip: string, - port: number, - } -} - -export class NodeTableMessage extends jspb.Message { - - getNodeTableMap(): jspb.Map; - clearNodeTableMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NodeTableMessage.AsObject; - static toObject(includeInstance: boolean, msg: NodeTableMessage): NodeTableMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NodeTableMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NodeTableMessage; - static deserializeBinaryFromReader(message: NodeTableMessage, reader: jspb.BinaryReader): NodeTableMessage; -} - -export namespace NodeTableMessage { - export type AsObject = { - - nodeTableMap: Array<[string, NodeAddressMessage.AsObject]>, - } -} - -export class ClaimTypeMessage extends jspb.Message { - getClaimType(): string; - setClaimType(value: string): ClaimTypeMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ClaimTypeMessage.AsObject; - static toObject(includeInstance: boolean, msg: ClaimTypeMessage): ClaimTypeMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ClaimTypeMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ClaimTypeMessage; - static deserializeBinaryFromReader(message: ClaimTypeMessage, reader: jspb.BinaryReader): ClaimTypeMessage; -} - -export namespace ClaimTypeMessage { - export type AsObject = { - claimType: string, - } -} - -export class ClaimsMessage extends jspb.Message { - clearClaimsList(): void; - getClaimsList(): Array; - setClaimsList(value: Array): ClaimsMessage; - addClaims(value?: ClaimMessage, index?: number): ClaimMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ClaimsMessage.AsObject; - static toObject(includeInstance: boolean, msg: ClaimsMessage): ClaimsMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ClaimsMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ClaimsMessage; - static deserializeBinaryFromReader(message: ClaimsMessage, reader: jspb.BinaryReader): ClaimsMessage; -} - -export namespace ClaimsMessage { - export type AsObject = { - claimsList: Array, - } -} - -export class ChainDataMessage extends jspb.Message { - - getChainDataMap(): jspb.Map; - clearChainDataMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ChainDataMessage.AsObject; - static toObject(includeInstance: boolean, msg: ChainDataMessage): ChainDataMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ChainDataMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ChainDataMessage; - static deserializeBinaryFromReader(message: ChainDataMessage, reader: jspb.BinaryReader): ChainDataMessage; -} - -export namespace ChainDataMessage { - export type AsObject = { - - chainDataMap: Array<[string, ClaimMessage.AsObject]>, - } -} - -export class ClaimMessage extends jspb.Message { - getPayload(): string; - setPayload(value: string): ClaimMessage; - clearSignaturesList(): void; - getSignaturesList(): Array; - setSignaturesList(value: Array): ClaimMessage; - addSignatures(value?: SignatureMessage, index?: number): SignatureMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ClaimMessage.AsObject; - static toObject(includeInstance: boolean, msg: ClaimMessage): ClaimMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ClaimMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ClaimMessage; - static deserializeBinaryFromReader(message: ClaimMessage, reader: jspb.BinaryReader): ClaimMessage; -} - -export namespace ClaimMessage { - export type AsObject = { - payload: string, - signaturesList: Array, - } -} - -export class SignatureMessage extends jspb.Message { - getSignature(): string; - setSignature(value: string): SignatureMessage; - getProtected(): string; - setProtected(value: string): SignatureMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SignatureMessage.AsObject; - static toObject(includeInstance: boolean, msg: SignatureMessage): SignatureMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SignatureMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SignatureMessage; - static deserializeBinaryFromReader(message: SignatureMessage, reader: jspb.BinaryReader): SignatureMessage; -} - -export namespace SignatureMessage { - export type AsObject = { - signature: string, - pb_protected: string, - } -} - -export class NotificationMessage extends jspb.Message { - getContent(): string; - setContent(value: string): NotificationMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NotificationMessage.AsObject; - static toObject(includeInstance: boolean, msg: NotificationMessage): NotificationMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NotificationMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NotificationMessage; - static deserializeBinaryFromReader(message: NotificationMessage, reader: jspb.BinaryReader): NotificationMessage; -} - -export namespace NotificationMessage { - export type AsObject = { - content: string, - } -} - -export class ClaimIntermediaryMessage extends jspb.Message { - getPayload(): string; - setPayload(value: string): ClaimIntermediaryMessage; - - hasSignature(): boolean; - clearSignature(): void; - getSignature(): SignatureMessage | undefined; - setSignature(value?: SignatureMessage): ClaimIntermediaryMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ClaimIntermediaryMessage.AsObject; - static toObject(includeInstance: boolean, msg: ClaimIntermediaryMessage): ClaimIntermediaryMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ClaimIntermediaryMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ClaimIntermediaryMessage; - static deserializeBinaryFromReader(message: ClaimIntermediaryMessage, reader: jspb.BinaryReader): ClaimIntermediaryMessage; -} - -export namespace ClaimIntermediaryMessage { - export type AsObject = { - payload: string, - signature?: SignatureMessage.AsObject, - } -} - -export class CrossSignMessage extends jspb.Message { - - hasSinglySignedClaim(): boolean; - clearSinglySignedClaim(): void; - getSinglySignedClaim(): ClaimIntermediaryMessage | undefined; - setSinglySignedClaim(value?: ClaimIntermediaryMessage): CrossSignMessage; - - hasDoublySignedClaim(): boolean; - clearDoublySignedClaim(): void; - getDoublySignedClaim(): ClaimMessage | undefined; - setDoublySignedClaim(value?: ClaimMessage): CrossSignMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CrossSignMessage.AsObject; - static toObject(includeInstance: boolean, msg: CrossSignMessage): CrossSignMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CrossSignMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CrossSignMessage; - static deserializeBinaryFromReader(message: CrossSignMessage, reader: jspb.BinaryReader): CrossSignMessage; -} - -export namespace CrossSignMessage { - export type AsObject = { - singlySignedClaim?: ClaimIntermediaryMessage.AsObject, - doublySignedClaim?: ClaimMessage.AsObject, - } -} diff --git a/src/proto/js/Client_grpc_pb.d.ts b/src/proto/js/Client_grpc_pb.d.ts deleted file mode 100644 index 6ed6419852..0000000000 --- a/src/proto/js/Client_grpc_pb.d.ts +++ /dev/null @@ -1,1028 +0,0 @@ -// package: clientInterface -// file: Client.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "@grpc/grpc-js"; -import * as Client_pb from "./Client_pb"; - -interface IClientService extends grpc.ServiceDefinition { - echo: IClientService_IEcho; - agentStop: IClientService_IAgentStop; - sessionUnlock: IClientService_ISessionUnlock; - sessionRefresh: IClientService_ISessionRefresh; - sessionLockAll: IClientService_ISessionLockAll; - nodesAdd: IClientService_INodesAdd; - nodesPing: IClientService_INodesPing; - nodesClaim: IClientService_INodesClaim; - nodesFind: IClientService_INodesFind; - nodesScan: IClientService_INodesScan; - keysKeyPairRoot: IClientService_IKeysKeyPairRoot; - keysKeyPairReset: IClientService_IKeysKeyPairReset; - keysKeyPairRenew: IClientService_IKeysKeyPairRenew; - keysEncrypt: IClientService_IKeysEncrypt; - keysDecrypt: IClientService_IKeysDecrypt; - keysSign: IClientService_IKeysSign; - keysVerify: IClientService_IKeysVerify; - keysPasswordChange: IClientService_IKeysPasswordChange; - keysCertsGet: IClientService_IKeysCertsGet; - keysCertsChainGet: IClientService_IKeysCertsChainGet; - vaultsList: IClientService_IVaultsList; - vaultsCreate: IClientService_IVaultsCreate; - vaultsRename: IClientService_IVaultsRename; - vaultsDelete: IClientService_IVaultsDelete; - vaultsPull: IClientService_IVaultsPull; - vaultsClone: IClientService_IVaultsClone; - vaultsSecretsList: IClientService_IVaultsSecretsList; - vaultsSecretsMkdir: IClientService_IVaultsSecretsMkdir; - vaultsSecretsDelete: IClientService_IVaultsSecretsDelete; - vaultsSecretsEdit: IClientService_IVaultsSecretsEdit; - vaultsSecretsGet: IClientService_IVaultsSecretsGet; - vaultsSecretsRename: IClientService_IVaultsSecretsRename; - vaultsSecretsNew: IClientService_IVaultsSecretsNew; - vaultsSecretsNewDir: IClientService_IVaultsSecretsNewDir; - vaultsShare: IClientService_IVaultsShare; - vaultsUnshare: IClientService_IVaultsUnshare; - vaultsVersion: IClientService_IVaultsVersion; - vaultsLog: IClientService_IVaultsLog; - identitiesAuthenticate: IClientService_IIdentitiesAuthenticate; - identitiesTokenPut: IClientService_IIdentitiesTokenPut; - identitiesTokenGet: IClientService_IIdentitiesTokenGet; - identitiesTokenDelete: IClientService_IIdentitiesTokenDelete; - identitiesProvidersList: IClientService_IIdentitiesProvidersList; - identitiesInfoGet: IClientService_IIdentitiesInfoGet; - identitiesInfoGetConnected: IClientService_IIdentitiesInfoGetConnected; - identitiesClaim: IClientService_IIdentitiesClaim; - gestaltsGestaltList: IClientService_IGestaltsGestaltList; - gestaltsGestaltGetByNode: IClientService_IGestaltsGestaltGetByNode; - gestaltsGestaltGetByIdentity: IClientService_IGestaltsGestaltGetByIdentity; - gestaltsDiscoveryByNode: IClientService_IGestaltsDiscoveryByNode; - gestaltsDiscoveryByIdentity: IClientService_IGestaltsDiscoveryByIdentity; - gestaltsActionsGetByNode: IClientService_IGestaltsActionsGetByNode; - gestaltsActionsGetByIdentity: IClientService_IGestaltsActionsGetByIdentity; - gestaltsActionsSetByNode: IClientService_IGestaltsActionsSetByNode; - gestaltsActionsSetByIdentity: IClientService_IGestaltsActionsSetByIdentity; - gestaltsActionsUnsetByNode: IClientService_IGestaltsActionsUnsetByNode; - gestaltsActionsUnsetByIdentity: IClientService_IGestaltsActionsUnsetByIdentity; - notificationsSend: IClientService_INotificationsSend; - notificationsRead: IClientService_INotificationsRead; - notificationsClear: IClientService_INotificationsClear; -} - -interface IClientService_IEcho extends grpc.MethodDefinition { - path: "/clientInterface.Client/Echo"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IAgentStop extends grpc.MethodDefinition { - path: "/clientInterface.Client/AgentStop"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_ISessionUnlock extends grpc.MethodDefinition { - path: "/clientInterface.Client/SessionUnlock"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_ISessionRefresh extends grpc.MethodDefinition { - path: "/clientInterface.Client/SessionRefresh"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_ISessionLockAll extends grpc.MethodDefinition { - path: "/clientInterface.Client/SessionLockAll"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_INodesAdd extends grpc.MethodDefinition { - path: "/clientInterface.Client/NodesAdd"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_INodesPing extends grpc.MethodDefinition { - path: "/clientInterface.Client/NodesPing"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_INodesClaim extends grpc.MethodDefinition { - path: "/clientInterface.Client/NodesClaim"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_INodesFind extends grpc.MethodDefinition { - path: "/clientInterface.Client/NodesFind"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_INodesScan extends grpc.MethodDefinition { - path: "/clientInterface.Client/NodesScan"; - requestStream: false; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IKeysKeyPairRoot extends grpc.MethodDefinition { - path: "/clientInterface.Client/KeysKeyPairRoot"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IKeysKeyPairReset extends grpc.MethodDefinition { - path: "/clientInterface.Client/KeysKeyPairReset"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IKeysKeyPairRenew extends grpc.MethodDefinition { - path: "/clientInterface.Client/KeysKeyPairRenew"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IKeysEncrypt extends grpc.MethodDefinition { - path: "/clientInterface.Client/KeysEncrypt"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IKeysDecrypt extends grpc.MethodDefinition { - path: "/clientInterface.Client/KeysDecrypt"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IKeysSign extends grpc.MethodDefinition { - path: "/clientInterface.Client/KeysSign"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IKeysVerify extends grpc.MethodDefinition { - path: "/clientInterface.Client/KeysVerify"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IKeysPasswordChange extends grpc.MethodDefinition { - path: "/clientInterface.Client/KeysPasswordChange"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IKeysCertsGet extends grpc.MethodDefinition { - path: "/clientInterface.Client/KeysCertsGet"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IKeysCertsChainGet extends grpc.MethodDefinition { - path: "/clientInterface.Client/KeysCertsChainGet"; - requestStream: false; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IVaultsList extends grpc.MethodDefinition { - path: "/clientInterface.Client/VaultsList"; - requestStream: false; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IVaultsCreate extends grpc.MethodDefinition { - path: "/clientInterface.Client/VaultsCreate"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IVaultsRename extends grpc.MethodDefinition { - path: "/clientInterface.Client/VaultsRename"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IVaultsDelete extends grpc.MethodDefinition { - path: "/clientInterface.Client/VaultsDelete"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IVaultsPull extends grpc.MethodDefinition { - path: "/clientInterface.Client/VaultsPull"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IVaultsClone extends grpc.MethodDefinition { - path: "/clientInterface.Client/VaultsClone"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IVaultsSecretsList extends grpc.MethodDefinition { - path: "/clientInterface.Client/VaultsSecretsList"; - requestStream: false; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IVaultsSecretsMkdir extends grpc.MethodDefinition { - path: "/clientInterface.Client/VaultsSecretsMkdir"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IVaultsSecretsDelete extends grpc.MethodDefinition { - path: "/clientInterface.Client/VaultsSecretsDelete"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IVaultsSecretsEdit extends grpc.MethodDefinition { - path: "/clientInterface.Client/VaultsSecretsEdit"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IVaultsSecretsGet extends grpc.MethodDefinition { - path: "/clientInterface.Client/VaultsSecretsGet"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IVaultsSecretsRename extends grpc.MethodDefinition { - path: "/clientInterface.Client/VaultsSecretsRename"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IVaultsSecretsNew extends grpc.MethodDefinition { - path: "/clientInterface.Client/VaultsSecretsNew"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IVaultsSecretsNewDir extends grpc.MethodDefinition { - path: "/clientInterface.Client/VaultsSecretsNewDir"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IVaultsShare extends grpc.MethodDefinition { - path: "/clientInterface.Client/VaultsShare"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IVaultsUnshare extends grpc.MethodDefinition { - path: "/clientInterface.Client/VaultsUnshare"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IVaultsVersion extends grpc.MethodDefinition { - path: "/clientInterface.Client/VaultsVersion"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IVaultsLog extends grpc.MethodDefinition { - path: "/clientInterface.Client/VaultsLog"; - requestStream: false; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IIdentitiesAuthenticate extends grpc.MethodDefinition { - path: "/clientInterface.Client/IdentitiesAuthenticate"; - requestStream: false; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IIdentitiesTokenPut extends grpc.MethodDefinition { - path: "/clientInterface.Client/IdentitiesTokenPut"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IIdentitiesTokenGet extends grpc.MethodDefinition { - path: "/clientInterface.Client/IdentitiesTokenGet"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IIdentitiesTokenDelete extends grpc.MethodDefinition { - path: "/clientInterface.Client/IdentitiesTokenDelete"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IIdentitiesProvidersList extends grpc.MethodDefinition { - path: "/clientInterface.Client/IdentitiesProvidersList"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IIdentitiesInfoGet extends grpc.MethodDefinition { - path: "/clientInterface.Client/IdentitiesInfoGet"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IIdentitiesInfoGetConnected extends grpc.MethodDefinition { - path: "/clientInterface.Client/IdentitiesInfoGetConnected"; - requestStream: false; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IIdentitiesClaim extends grpc.MethodDefinition { - path: "/clientInterface.Client/IdentitiesClaim"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IGestaltsGestaltList extends grpc.MethodDefinition { - path: "/clientInterface.Client/GestaltsGestaltList"; - requestStream: false; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IGestaltsGestaltGetByNode extends grpc.MethodDefinition { - path: "/clientInterface.Client/GestaltsGestaltGetByNode"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IGestaltsGestaltGetByIdentity extends grpc.MethodDefinition { - path: "/clientInterface.Client/GestaltsGestaltGetByIdentity"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IGestaltsDiscoveryByNode extends grpc.MethodDefinition { - path: "/clientInterface.Client/GestaltsDiscoveryByNode"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IGestaltsDiscoveryByIdentity extends grpc.MethodDefinition { - path: "/clientInterface.Client/GestaltsDiscoveryByIdentity"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IGestaltsActionsGetByNode extends grpc.MethodDefinition { - path: "/clientInterface.Client/GestaltsActionsGetByNode"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IGestaltsActionsGetByIdentity extends grpc.MethodDefinition { - path: "/clientInterface.Client/GestaltsActionsGetByIdentity"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IGestaltsActionsSetByNode extends grpc.MethodDefinition { - path: "/clientInterface.Client/GestaltsActionsSetByNode"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IGestaltsActionsSetByIdentity extends grpc.MethodDefinition { - path: "/clientInterface.Client/GestaltsActionsSetByIdentity"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IGestaltsActionsUnsetByNode extends grpc.MethodDefinition { - path: "/clientInterface.Client/GestaltsActionsUnsetByNode"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_IGestaltsActionsUnsetByIdentity extends grpc.MethodDefinition { - path: "/clientInterface.Client/GestaltsActionsUnsetByIdentity"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_INotificationsSend extends grpc.MethodDefinition { - path: "/clientInterface.Client/NotificationsSend"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_INotificationsRead extends grpc.MethodDefinition { - path: "/clientInterface.Client/NotificationsRead"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IClientService_INotificationsClear extends grpc.MethodDefinition { - path: "/clientInterface.Client/NotificationsClear"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const ClientService: IClientService; - -export interface IClientServer extends grpc.UntypedServiceImplementation { - echo: grpc.handleUnaryCall; - agentStop: grpc.handleUnaryCall; - sessionUnlock: grpc.handleUnaryCall; - sessionRefresh: grpc.handleUnaryCall; - sessionLockAll: grpc.handleUnaryCall; - nodesAdd: grpc.handleUnaryCall; - nodesPing: grpc.handleUnaryCall; - nodesClaim: grpc.handleUnaryCall; - nodesFind: grpc.handleUnaryCall; - nodesScan: grpc.handleServerStreamingCall; - keysKeyPairRoot: grpc.handleUnaryCall; - keysKeyPairReset: grpc.handleUnaryCall; - keysKeyPairRenew: grpc.handleUnaryCall; - keysEncrypt: grpc.handleUnaryCall; - keysDecrypt: grpc.handleUnaryCall; - keysSign: grpc.handleUnaryCall; - keysVerify: grpc.handleUnaryCall; - keysPasswordChange: grpc.handleUnaryCall; - keysCertsGet: grpc.handleUnaryCall; - keysCertsChainGet: grpc.handleServerStreamingCall; - vaultsList: grpc.handleServerStreamingCall; - vaultsCreate: grpc.handleUnaryCall; - vaultsRename: grpc.handleUnaryCall; - vaultsDelete: grpc.handleUnaryCall; - vaultsPull: grpc.handleUnaryCall; - vaultsClone: grpc.handleUnaryCall; - vaultsSecretsList: grpc.handleServerStreamingCall; - vaultsSecretsMkdir: grpc.handleUnaryCall; - vaultsSecretsDelete: grpc.handleUnaryCall; - vaultsSecretsEdit: grpc.handleUnaryCall; - vaultsSecretsGet: grpc.handleUnaryCall; - vaultsSecretsRename: grpc.handleUnaryCall; - vaultsSecretsNew: grpc.handleUnaryCall; - vaultsSecretsNewDir: grpc.handleUnaryCall; - vaultsShare: grpc.handleUnaryCall; - vaultsUnshare: grpc.handleUnaryCall; - vaultsVersion: grpc.handleUnaryCall; - vaultsLog: grpc.handleServerStreamingCall; - identitiesAuthenticate: grpc.handleServerStreamingCall; - identitiesTokenPut: grpc.handleUnaryCall; - identitiesTokenGet: grpc.handleUnaryCall; - identitiesTokenDelete: grpc.handleUnaryCall; - identitiesProvidersList: grpc.handleUnaryCall; - identitiesInfoGet: grpc.handleUnaryCall; - identitiesInfoGetConnected: grpc.handleServerStreamingCall; - identitiesClaim: grpc.handleUnaryCall; - gestaltsGestaltList: grpc.handleServerStreamingCall; - gestaltsGestaltGetByNode: grpc.handleUnaryCall; - gestaltsGestaltGetByIdentity: grpc.handleUnaryCall; - gestaltsDiscoveryByNode: grpc.handleUnaryCall; - gestaltsDiscoveryByIdentity: grpc.handleUnaryCall; - gestaltsActionsGetByNode: grpc.handleUnaryCall; - gestaltsActionsGetByIdentity: grpc.handleUnaryCall; - gestaltsActionsSetByNode: grpc.handleUnaryCall; - gestaltsActionsSetByIdentity: grpc.handleUnaryCall; - gestaltsActionsUnsetByNode: grpc.handleUnaryCall; - gestaltsActionsUnsetByIdentity: grpc.handleUnaryCall; - notificationsSend: grpc.handleUnaryCall; - notificationsRead: grpc.handleUnaryCall; - notificationsClear: grpc.handleUnaryCall; -} - -export interface IClientClient { - echo(request: Client_pb.EchoMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EchoMessage) => void): grpc.ClientUnaryCall; - echo(request: Client_pb.EchoMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EchoMessage) => void): grpc.ClientUnaryCall; - echo(request: Client_pb.EchoMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EchoMessage) => void): grpc.ClientUnaryCall; - agentStop(request: Client_pb.EmptyMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - agentStop(request: Client_pb.EmptyMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - agentStop(request: Client_pb.EmptyMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - sessionUnlock(request: Client_pb.PasswordMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.SessionTokenMessage) => void): grpc.ClientUnaryCall; - sessionUnlock(request: Client_pb.PasswordMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.SessionTokenMessage) => void): grpc.ClientUnaryCall; - sessionUnlock(request: Client_pb.PasswordMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.SessionTokenMessage) => void): grpc.ClientUnaryCall; - sessionRefresh(request: Client_pb.EmptyMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.SessionTokenMessage) => void): grpc.ClientUnaryCall; - sessionRefresh(request: Client_pb.EmptyMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.SessionTokenMessage) => void): grpc.ClientUnaryCall; - sessionRefresh(request: Client_pb.EmptyMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.SessionTokenMessage) => void): grpc.ClientUnaryCall; - sessionLockAll(request: Client_pb.EmptyMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - sessionLockAll(request: Client_pb.EmptyMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - sessionLockAll(request: Client_pb.EmptyMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - nodesAdd(request: Client_pb.NodeAddressMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - nodesAdd(request: Client_pb.NodeAddressMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - nodesAdd(request: Client_pb.NodeAddressMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - nodesPing(request: Client_pb.NodeMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - nodesPing(request: Client_pb.NodeMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - nodesPing(request: Client_pb.NodeMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - nodesClaim(request: Client_pb.NodeClaimMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - nodesClaim(request: Client_pb.NodeClaimMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - nodesClaim(request: Client_pb.NodeClaimMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - nodesFind(request: Client_pb.NodeMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.NodeAddressMessage) => void): grpc.ClientUnaryCall; - nodesFind(request: Client_pb.NodeMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.NodeAddressMessage) => void): grpc.ClientUnaryCall; - nodesFind(request: Client_pb.NodeMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.NodeAddressMessage) => void): grpc.ClientUnaryCall; - nodesScan(request: Client_pb.NodeMessage, options?: Partial): grpc.ClientReadableStream; - nodesScan(request: Client_pb.NodeMessage, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - keysKeyPairRoot(request: Client_pb.EmptyMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.KeyPairMessage) => void): grpc.ClientUnaryCall; - keysKeyPairRoot(request: Client_pb.EmptyMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.KeyPairMessage) => void): grpc.ClientUnaryCall; - keysKeyPairRoot(request: Client_pb.EmptyMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.KeyPairMessage) => void): grpc.ClientUnaryCall; - keysKeyPairReset(request: Client_pb.KeyMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - keysKeyPairReset(request: Client_pb.KeyMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - keysKeyPairReset(request: Client_pb.KeyMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - keysKeyPairRenew(request: Client_pb.KeyMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - keysKeyPairRenew(request: Client_pb.KeyMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - keysKeyPairRenew(request: Client_pb.KeyMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - keysEncrypt(request: Client_pb.CryptoMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.CryptoMessage) => void): grpc.ClientUnaryCall; - keysEncrypt(request: Client_pb.CryptoMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.CryptoMessage) => void): grpc.ClientUnaryCall; - keysEncrypt(request: Client_pb.CryptoMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.CryptoMessage) => void): grpc.ClientUnaryCall; - keysDecrypt(request: Client_pb.CryptoMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.CryptoMessage) => void): grpc.ClientUnaryCall; - keysDecrypt(request: Client_pb.CryptoMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.CryptoMessage) => void): grpc.ClientUnaryCall; - keysDecrypt(request: Client_pb.CryptoMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.CryptoMessage) => void): grpc.ClientUnaryCall; - keysSign(request: Client_pb.CryptoMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.CryptoMessage) => void): grpc.ClientUnaryCall; - keysSign(request: Client_pb.CryptoMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.CryptoMessage) => void): grpc.ClientUnaryCall; - keysSign(request: Client_pb.CryptoMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.CryptoMessage) => void): grpc.ClientUnaryCall; - keysVerify(request: Client_pb.CryptoMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - keysVerify(request: Client_pb.CryptoMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - keysVerify(request: Client_pb.CryptoMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - keysPasswordChange(request: Client_pb.PasswordMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - keysPasswordChange(request: Client_pb.PasswordMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - keysPasswordChange(request: Client_pb.PasswordMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - keysCertsGet(request: Client_pb.EmptyMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.CertificateMessage) => void): grpc.ClientUnaryCall; - keysCertsGet(request: Client_pb.EmptyMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.CertificateMessage) => void): grpc.ClientUnaryCall; - keysCertsGet(request: Client_pb.EmptyMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.CertificateMessage) => void): grpc.ClientUnaryCall; - keysCertsChainGet(request: Client_pb.EmptyMessage, options?: Partial): grpc.ClientReadableStream; - keysCertsChainGet(request: Client_pb.EmptyMessage, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - vaultsList(request: Client_pb.EmptyMessage, options?: Partial): grpc.ClientReadableStream; - vaultsList(request: Client_pb.EmptyMessage, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - vaultsCreate(request: Client_pb.VaultMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.VaultMessage) => void): grpc.ClientUnaryCall; - vaultsCreate(request: Client_pb.VaultMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.VaultMessage) => void): grpc.ClientUnaryCall; - vaultsCreate(request: Client_pb.VaultMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.VaultMessage) => void): grpc.ClientUnaryCall; - vaultsRename(request: Client_pb.VaultRenameMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.VaultMessage) => void): grpc.ClientUnaryCall; - vaultsRename(request: Client_pb.VaultRenameMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.VaultMessage) => void): grpc.ClientUnaryCall; - vaultsRename(request: Client_pb.VaultRenameMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.VaultMessage) => void): grpc.ClientUnaryCall; - vaultsDelete(request: Client_pb.VaultMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsDelete(request: Client_pb.VaultMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsDelete(request: Client_pb.VaultMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsPull(request: Client_pb.VaultPullMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsPull(request: Client_pb.VaultPullMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsPull(request: Client_pb.VaultPullMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsClone(request: Client_pb.VaultCloneMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsClone(request: Client_pb.VaultCloneMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsClone(request: Client_pb.VaultCloneMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsSecretsList(request: Client_pb.VaultMessage, options?: Partial): grpc.ClientReadableStream; - vaultsSecretsList(request: Client_pb.VaultMessage, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - vaultsSecretsMkdir(request: Client_pb.VaultMkdirMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsSecretsMkdir(request: Client_pb.VaultMkdirMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsSecretsMkdir(request: Client_pb.VaultMkdirMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsSecretsDelete(request: Client_pb.SecretMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsSecretsDelete(request: Client_pb.SecretMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsSecretsDelete(request: Client_pb.SecretMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsSecretsEdit(request: Client_pb.SecretMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsSecretsEdit(request: Client_pb.SecretMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsSecretsEdit(request: Client_pb.SecretMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsSecretsGet(request: Client_pb.SecretMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.SecretMessage) => void): grpc.ClientUnaryCall; - vaultsSecretsGet(request: Client_pb.SecretMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.SecretMessage) => void): grpc.ClientUnaryCall; - vaultsSecretsGet(request: Client_pb.SecretMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.SecretMessage) => void): grpc.ClientUnaryCall; - vaultsSecretsRename(request: Client_pb.SecretRenameMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsSecretsRename(request: Client_pb.SecretRenameMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsSecretsRename(request: Client_pb.SecretRenameMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsSecretsNew(request: Client_pb.SecretMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsSecretsNew(request: Client_pb.SecretMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsSecretsNew(request: Client_pb.SecretMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsSecretsNewDir(request: Client_pb.SecretDirectoryMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsSecretsNewDir(request: Client_pb.SecretDirectoryMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsSecretsNewDir(request: Client_pb.SecretDirectoryMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsShare(request: Client_pb.SetVaultPermMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsShare(request: Client_pb.SetVaultPermMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsShare(request: Client_pb.SetVaultPermMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsUnshare(request: Client_pb.UnsetVaultPermMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsUnshare(request: Client_pb.UnsetVaultPermMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsUnshare(request: Client_pb.UnsetVaultPermMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsVersion(request: Client_pb.VaultsVersionMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.VaultsVersionResultMessage) => void): grpc.ClientUnaryCall; - vaultsVersion(request: Client_pb.VaultsVersionMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.VaultsVersionResultMessage) => void): grpc.ClientUnaryCall; - vaultsVersion(request: Client_pb.VaultsVersionMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.VaultsVersionResultMessage) => void): grpc.ClientUnaryCall; - vaultsLog(request: Client_pb.VaultsLogMessage, options?: Partial): grpc.ClientReadableStream; - vaultsLog(request: Client_pb.VaultsLogMessage, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - identitiesAuthenticate(request: Client_pb.ProviderMessage, options?: Partial): grpc.ClientReadableStream; - identitiesAuthenticate(request: Client_pb.ProviderMessage, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - identitiesTokenPut(request: Client_pb.TokenSpecificMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - identitiesTokenPut(request: Client_pb.TokenSpecificMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - identitiesTokenPut(request: Client_pb.TokenSpecificMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - identitiesTokenGet(request: Client_pb.ProviderMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.TokenMessage) => void): grpc.ClientUnaryCall; - identitiesTokenGet(request: Client_pb.ProviderMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.TokenMessage) => void): grpc.ClientUnaryCall; - identitiesTokenGet(request: Client_pb.ProviderMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.TokenMessage) => void): grpc.ClientUnaryCall; - identitiesTokenDelete(request: Client_pb.ProviderMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - identitiesTokenDelete(request: Client_pb.ProviderMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - identitiesTokenDelete(request: Client_pb.ProviderMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - identitiesProvidersList(request: Client_pb.EmptyMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.ProviderMessage) => void): grpc.ClientUnaryCall; - identitiesProvidersList(request: Client_pb.EmptyMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.ProviderMessage) => void): grpc.ClientUnaryCall; - identitiesProvidersList(request: Client_pb.EmptyMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.ProviderMessage) => void): grpc.ClientUnaryCall; - identitiesInfoGet(request: Client_pb.ProviderMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.ProviderMessage) => void): grpc.ClientUnaryCall; - identitiesInfoGet(request: Client_pb.ProviderMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.ProviderMessage) => void): grpc.ClientUnaryCall; - identitiesInfoGet(request: Client_pb.ProviderMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.ProviderMessage) => void): grpc.ClientUnaryCall; - identitiesInfoGetConnected(request: Client_pb.ProviderSearchMessage, options?: Partial): grpc.ClientReadableStream; - identitiesInfoGetConnected(request: Client_pb.ProviderSearchMessage, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - identitiesClaim(request: Client_pb.ProviderMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - identitiesClaim(request: Client_pb.ProviderMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - identitiesClaim(request: Client_pb.ProviderMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - gestaltsGestaltList(request: Client_pb.EmptyMessage, options?: Partial): grpc.ClientReadableStream; - gestaltsGestaltList(request: Client_pb.EmptyMessage, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - gestaltsGestaltGetByNode(request: Client_pb.NodeMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.GestaltGraphMessage) => void): grpc.ClientUnaryCall; - gestaltsGestaltGetByNode(request: Client_pb.NodeMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.GestaltGraphMessage) => void): grpc.ClientUnaryCall; - gestaltsGestaltGetByNode(request: Client_pb.NodeMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.GestaltGraphMessage) => void): grpc.ClientUnaryCall; - gestaltsGestaltGetByIdentity(request: Client_pb.ProviderMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.GestaltGraphMessage) => void): grpc.ClientUnaryCall; - gestaltsGestaltGetByIdentity(request: Client_pb.ProviderMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.GestaltGraphMessage) => void): grpc.ClientUnaryCall; - gestaltsGestaltGetByIdentity(request: Client_pb.ProviderMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.GestaltGraphMessage) => void): grpc.ClientUnaryCall; - gestaltsDiscoveryByNode(request: Client_pb.NodeMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - gestaltsDiscoveryByNode(request: Client_pb.NodeMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - gestaltsDiscoveryByNode(request: Client_pb.NodeMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - gestaltsDiscoveryByIdentity(request: Client_pb.ProviderMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - gestaltsDiscoveryByIdentity(request: Client_pb.ProviderMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - gestaltsDiscoveryByIdentity(request: Client_pb.ProviderMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - gestaltsActionsGetByNode(request: Client_pb.NodeMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.ActionsMessage) => void): grpc.ClientUnaryCall; - gestaltsActionsGetByNode(request: Client_pb.NodeMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.ActionsMessage) => void): grpc.ClientUnaryCall; - gestaltsActionsGetByNode(request: Client_pb.NodeMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.ActionsMessage) => void): grpc.ClientUnaryCall; - gestaltsActionsGetByIdentity(request: Client_pb.ProviderMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.ActionsMessage) => void): grpc.ClientUnaryCall; - gestaltsActionsGetByIdentity(request: Client_pb.ProviderMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.ActionsMessage) => void): grpc.ClientUnaryCall; - gestaltsActionsGetByIdentity(request: Client_pb.ProviderMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.ActionsMessage) => void): grpc.ClientUnaryCall; - gestaltsActionsSetByNode(request: Client_pb.SetActionsMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - gestaltsActionsSetByNode(request: Client_pb.SetActionsMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - gestaltsActionsSetByNode(request: Client_pb.SetActionsMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - gestaltsActionsSetByIdentity(request: Client_pb.SetActionsMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - gestaltsActionsSetByIdentity(request: Client_pb.SetActionsMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - gestaltsActionsSetByIdentity(request: Client_pb.SetActionsMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - gestaltsActionsUnsetByNode(request: Client_pb.SetActionsMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - gestaltsActionsUnsetByNode(request: Client_pb.SetActionsMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - gestaltsActionsUnsetByNode(request: Client_pb.SetActionsMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - gestaltsActionsUnsetByIdentity(request: Client_pb.SetActionsMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - gestaltsActionsUnsetByIdentity(request: Client_pb.SetActionsMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - gestaltsActionsUnsetByIdentity(request: Client_pb.SetActionsMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - notificationsSend(request: Client_pb.NotificationsSendMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - notificationsSend(request: Client_pb.NotificationsSendMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - notificationsSend(request: Client_pb.NotificationsSendMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - notificationsRead(request: Client_pb.NotificationsReadMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.NotificationsListMessage) => void): grpc.ClientUnaryCall; - notificationsRead(request: Client_pb.NotificationsReadMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.NotificationsListMessage) => void): grpc.ClientUnaryCall; - notificationsRead(request: Client_pb.NotificationsReadMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.NotificationsListMessage) => void): grpc.ClientUnaryCall; - notificationsClear(request: Client_pb.EmptyMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - notificationsClear(request: Client_pb.EmptyMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - notificationsClear(request: Client_pb.EmptyMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; -} - -export class ClientClient extends grpc.Client implements IClientClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); - public echo(request: Client_pb.EchoMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EchoMessage) => void): grpc.ClientUnaryCall; - public echo(request: Client_pb.EchoMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EchoMessage) => void): grpc.ClientUnaryCall; - public echo(request: Client_pb.EchoMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EchoMessage) => void): grpc.ClientUnaryCall; - public agentStop(request: Client_pb.EmptyMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public agentStop(request: Client_pb.EmptyMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public agentStop(request: Client_pb.EmptyMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public sessionUnlock(request: Client_pb.PasswordMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.SessionTokenMessage) => void): grpc.ClientUnaryCall; - public sessionUnlock(request: Client_pb.PasswordMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.SessionTokenMessage) => void): grpc.ClientUnaryCall; - public sessionUnlock(request: Client_pb.PasswordMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.SessionTokenMessage) => void): grpc.ClientUnaryCall; - public sessionRefresh(request: Client_pb.EmptyMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.SessionTokenMessage) => void): grpc.ClientUnaryCall; - public sessionRefresh(request: Client_pb.EmptyMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.SessionTokenMessage) => void): grpc.ClientUnaryCall; - public sessionRefresh(request: Client_pb.EmptyMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.SessionTokenMessage) => void): grpc.ClientUnaryCall; - public sessionLockAll(request: Client_pb.EmptyMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public sessionLockAll(request: Client_pb.EmptyMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public sessionLockAll(request: Client_pb.EmptyMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public nodesAdd(request: Client_pb.NodeAddressMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public nodesAdd(request: Client_pb.NodeAddressMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public nodesAdd(request: Client_pb.NodeAddressMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public nodesPing(request: Client_pb.NodeMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public nodesPing(request: Client_pb.NodeMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public nodesPing(request: Client_pb.NodeMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public nodesClaim(request: Client_pb.NodeClaimMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public nodesClaim(request: Client_pb.NodeClaimMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public nodesClaim(request: Client_pb.NodeClaimMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public nodesFind(request: Client_pb.NodeMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.NodeAddressMessage) => void): grpc.ClientUnaryCall; - public nodesFind(request: Client_pb.NodeMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.NodeAddressMessage) => void): grpc.ClientUnaryCall; - public nodesFind(request: Client_pb.NodeMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.NodeAddressMessage) => void): grpc.ClientUnaryCall; - public nodesScan(request: Client_pb.NodeMessage, options?: Partial): grpc.ClientReadableStream; - public nodesScan(request: Client_pb.NodeMessage, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - public keysKeyPairRoot(request: Client_pb.EmptyMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.KeyPairMessage) => void): grpc.ClientUnaryCall; - public keysKeyPairRoot(request: Client_pb.EmptyMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.KeyPairMessage) => void): grpc.ClientUnaryCall; - public keysKeyPairRoot(request: Client_pb.EmptyMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.KeyPairMessage) => void): grpc.ClientUnaryCall; - public keysKeyPairReset(request: Client_pb.KeyMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public keysKeyPairReset(request: Client_pb.KeyMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public keysKeyPairReset(request: Client_pb.KeyMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public keysKeyPairRenew(request: Client_pb.KeyMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public keysKeyPairRenew(request: Client_pb.KeyMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public keysKeyPairRenew(request: Client_pb.KeyMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public keysEncrypt(request: Client_pb.CryptoMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.CryptoMessage) => void): grpc.ClientUnaryCall; - public keysEncrypt(request: Client_pb.CryptoMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.CryptoMessage) => void): grpc.ClientUnaryCall; - public keysEncrypt(request: Client_pb.CryptoMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.CryptoMessage) => void): grpc.ClientUnaryCall; - public keysDecrypt(request: Client_pb.CryptoMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.CryptoMessage) => void): grpc.ClientUnaryCall; - public keysDecrypt(request: Client_pb.CryptoMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.CryptoMessage) => void): grpc.ClientUnaryCall; - public keysDecrypt(request: Client_pb.CryptoMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.CryptoMessage) => void): grpc.ClientUnaryCall; - public keysSign(request: Client_pb.CryptoMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.CryptoMessage) => void): grpc.ClientUnaryCall; - public keysSign(request: Client_pb.CryptoMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.CryptoMessage) => void): grpc.ClientUnaryCall; - public keysSign(request: Client_pb.CryptoMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.CryptoMessage) => void): grpc.ClientUnaryCall; - public keysVerify(request: Client_pb.CryptoMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public keysVerify(request: Client_pb.CryptoMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public keysVerify(request: Client_pb.CryptoMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public keysPasswordChange(request: Client_pb.PasswordMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public keysPasswordChange(request: Client_pb.PasswordMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public keysPasswordChange(request: Client_pb.PasswordMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public keysCertsGet(request: Client_pb.EmptyMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.CertificateMessage) => void): grpc.ClientUnaryCall; - public keysCertsGet(request: Client_pb.EmptyMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.CertificateMessage) => void): grpc.ClientUnaryCall; - public keysCertsGet(request: Client_pb.EmptyMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.CertificateMessage) => void): grpc.ClientUnaryCall; - public keysCertsChainGet(request: Client_pb.EmptyMessage, options?: Partial): grpc.ClientReadableStream; - public keysCertsChainGet(request: Client_pb.EmptyMessage, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - public vaultsList(request: Client_pb.EmptyMessage, options?: Partial): grpc.ClientReadableStream; - public vaultsList(request: Client_pb.EmptyMessage, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - public vaultsCreate(request: Client_pb.VaultMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.VaultMessage) => void): grpc.ClientUnaryCall; - public vaultsCreate(request: Client_pb.VaultMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.VaultMessage) => void): grpc.ClientUnaryCall; - public vaultsCreate(request: Client_pb.VaultMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.VaultMessage) => void): grpc.ClientUnaryCall; - public vaultsRename(request: Client_pb.VaultRenameMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.VaultMessage) => void): grpc.ClientUnaryCall; - public vaultsRename(request: Client_pb.VaultRenameMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.VaultMessage) => void): grpc.ClientUnaryCall; - public vaultsRename(request: Client_pb.VaultRenameMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.VaultMessage) => void): grpc.ClientUnaryCall; - public vaultsDelete(request: Client_pb.VaultMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsDelete(request: Client_pb.VaultMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsDelete(request: Client_pb.VaultMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsPull(request: Client_pb.VaultPullMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsPull(request: Client_pb.VaultPullMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsPull(request: Client_pb.VaultPullMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsClone(request: Client_pb.VaultCloneMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsClone(request: Client_pb.VaultCloneMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsClone(request: Client_pb.VaultCloneMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsSecretsList(request: Client_pb.VaultMessage, options?: Partial): grpc.ClientReadableStream; - public vaultsSecretsList(request: Client_pb.VaultMessage, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - public vaultsSecretsMkdir(request: Client_pb.VaultMkdirMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsSecretsMkdir(request: Client_pb.VaultMkdirMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsSecretsMkdir(request: Client_pb.VaultMkdirMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsSecretsDelete(request: Client_pb.SecretMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsSecretsDelete(request: Client_pb.SecretMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsSecretsDelete(request: Client_pb.SecretMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsSecretsEdit(request: Client_pb.SecretMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsSecretsEdit(request: Client_pb.SecretMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsSecretsEdit(request: Client_pb.SecretMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsSecretsGet(request: Client_pb.SecretMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.SecretMessage) => void): grpc.ClientUnaryCall; - public vaultsSecretsGet(request: Client_pb.SecretMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.SecretMessage) => void): grpc.ClientUnaryCall; - public vaultsSecretsGet(request: Client_pb.SecretMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.SecretMessage) => void): grpc.ClientUnaryCall; - public vaultsSecretsRename(request: Client_pb.SecretRenameMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsSecretsRename(request: Client_pb.SecretRenameMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsSecretsRename(request: Client_pb.SecretRenameMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsSecretsNew(request: Client_pb.SecretMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsSecretsNew(request: Client_pb.SecretMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsSecretsNew(request: Client_pb.SecretMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsSecretsNewDir(request: Client_pb.SecretDirectoryMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsSecretsNewDir(request: Client_pb.SecretDirectoryMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsSecretsNewDir(request: Client_pb.SecretDirectoryMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsShare(request: Client_pb.SetVaultPermMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsShare(request: Client_pb.SetVaultPermMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsShare(request: Client_pb.SetVaultPermMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsUnshare(request: Client_pb.UnsetVaultPermMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsUnshare(request: Client_pb.UnsetVaultPermMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsUnshare(request: Client_pb.UnsetVaultPermMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsVersion(request: Client_pb.VaultsVersionMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.VaultsVersionResultMessage) => void): grpc.ClientUnaryCall; - public vaultsVersion(request: Client_pb.VaultsVersionMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.VaultsVersionResultMessage) => void): grpc.ClientUnaryCall; - public vaultsVersion(request: Client_pb.VaultsVersionMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.VaultsVersionResultMessage) => void): grpc.ClientUnaryCall; - public vaultsLog(request: Client_pb.VaultsLogMessage, options?: Partial): grpc.ClientReadableStream; - public vaultsLog(request: Client_pb.VaultsLogMessage, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - public identitiesAuthenticate(request: Client_pb.ProviderMessage, options?: Partial): grpc.ClientReadableStream; - public identitiesAuthenticate(request: Client_pb.ProviderMessage, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - public identitiesTokenPut(request: Client_pb.TokenSpecificMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public identitiesTokenPut(request: Client_pb.TokenSpecificMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public identitiesTokenPut(request: Client_pb.TokenSpecificMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public identitiesTokenGet(request: Client_pb.ProviderMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.TokenMessage) => void): grpc.ClientUnaryCall; - public identitiesTokenGet(request: Client_pb.ProviderMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.TokenMessage) => void): grpc.ClientUnaryCall; - public identitiesTokenGet(request: Client_pb.ProviderMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.TokenMessage) => void): grpc.ClientUnaryCall; - public identitiesTokenDelete(request: Client_pb.ProviderMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public identitiesTokenDelete(request: Client_pb.ProviderMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public identitiesTokenDelete(request: Client_pb.ProviderMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public identitiesProvidersList(request: Client_pb.EmptyMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.ProviderMessage) => void): grpc.ClientUnaryCall; - public identitiesProvidersList(request: Client_pb.EmptyMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.ProviderMessage) => void): grpc.ClientUnaryCall; - public identitiesProvidersList(request: Client_pb.EmptyMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.ProviderMessage) => void): grpc.ClientUnaryCall; - public identitiesInfoGet(request: Client_pb.ProviderMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.ProviderMessage) => void): grpc.ClientUnaryCall; - public identitiesInfoGet(request: Client_pb.ProviderMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.ProviderMessage) => void): grpc.ClientUnaryCall; - public identitiesInfoGet(request: Client_pb.ProviderMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.ProviderMessage) => void): grpc.ClientUnaryCall; - public identitiesInfoGetConnected(request: Client_pb.ProviderSearchMessage, options?: Partial): grpc.ClientReadableStream; - public identitiesInfoGetConnected(request: Client_pb.ProviderSearchMessage, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - public identitiesClaim(request: Client_pb.ProviderMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public identitiesClaim(request: Client_pb.ProviderMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public identitiesClaim(request: Client_pb.ProviderMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public gestaltsGestaltList(request: Client_pb.EmptyMessage, options?: Partial): grpc.ClientReadableStream; - public gestaltsGestaltList(request: Client_pb.EmptyMessage, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - public gestaltsGestaltGetByNode(request: Client_pb.NodeMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.GestaltGraphMessage) => void): grpc.ClientUnaryCall; - public gestaltsGestaltGetByNode(request: Client_pb.NodeMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.GestaltGraphMessage) => void): grpc.ClientUnaryCall; - public gestaltsGestaltGetByNode(request: Client_pb.NodeMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.GestaltGraphMessage) => void): grpc.ClientUnaryCall; - public gestaltsGestaltGetByIdentity(request: Client_pb.ProviderMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.GestaltGraphMessage) => void): grpc.ClientUnaryCall; - public gestaltsGestaltGetByIdentity(request: Client_pb.ProviderMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.GestaltGraphMessage) => void): grpc.ClientUnaryCall; - public gestaltsGestaltGetByIdentity(request: Client_pb.ProviderMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.GestaltGraphMessage) => void): grpc.ClientUnaryCall; - public gestaltsDiscoveryByNode(request: Client_pb.NodeMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public gestaltsDiscoveryByNode(request: Client_pb.NodeMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public gestaltsDiscoveryByNode(request: Client_pb.NodeMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public gestaltsDiscoveryByIdentity(request: Client_pb.ProviderMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public gestaltsDiscoveryByIdentity(request: Client_pb.ProviderMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public gestaltsDiscoveryByIdentity(request: Client_pb.ProviderMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public gestaltsActionsGetByNode(request: Client_pb.NodeMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.ActionsMessage) => void): grpc.ClientUnaryCall; - public gestaltsActionsGetByNode(request: Client_pb.NodeMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.ActionsMessage) => void): grpc.ClientUnaryCall; - public gestaltsActionsGetByNode(request: Client_pb.NodeMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.ActionsMessage) => void): grpc.ClientUnaryCall; - public gestaltsActionsGetByIdentity(request: Client_pb.ProviderMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.ActionsMessage) => void): grpc.ClientUnaryCall; - public gestaltsActionsGetByIdentity(request: Client_pb.ProviderMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.ActionsMessage) => void): grpc.ClientUnaryCall; - public gestaltsActionsGetByIdentity(request: Client_pb.ProviderMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.ActionsMessage) => void): grpc.ClientUnaryCall; - public gestaltsActionsSetByNode(request: Client_pb.SetActionsMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public gestaltsActionsSetByNode(request: Client_pb.SetActionsMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public gestaltsActionsSetByNode(request: Client_pb.SetActionsMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public gestaltsActionsSetByIdentity(request: Client_pb.SetActionsMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public gestaltsActionsSetByIdentity(request: Client_pb.SetActionsMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public gestaltsActionsSetByIdentity(request: Client_pb.SetActionsMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public gestaltsActionsUnsetByNode(request: Client_pb.SetActionsMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public gestaltsActionsUnsetByNode(request: Client_pb.SetActionsMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public gestaltsActionsUnsetByNode(request: Client_pb.SetActionsMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public gestaltsActionsUnsetByIdentity(request: Client_pb.SetActionsMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public gestaltsActionsUnsetByIdentity(request: Client_pb.SetActionsMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public gestaltsActionsUnsetByIdentity(request: Client_pb.SetActionsMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public notificationsSend(request: Client_pb.NotificationsSendMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public notificationsSend(request: Client_pb.NotificationsSendMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public notificationsSend(request: Client_pb.NotificationsSendMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public notificationsRead(request: Client_pb.NotificationsReadMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.NotificationsListMessage) => void): grpc.ClientUnaryCall; - public notificationsRead(request: Client_pb.NotificationsReadMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.NotificationsListMessage) => void): grpc.ClientUnaryCall; - public notificationsRead(request: Client_pb.NotificationsReadMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.NotificationsListMessage) => void): grpc.ClientUnaryCall; - public notificationsClear(request: Client_pb.EmptyMessage, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public notificationsClear(request: Client_pb.EmptyMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; - public notificationsClear(request: Client_pb.EmptyMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: Client_pb.EmptyMessage) => void): grpc.ClientUnaryCall; -} diff --git a/src/proto/js/Client_grpc_pb.js b/src/proto/js/Client_grpc_pb.js deleted file mode 100644 index 84663f4c6d..0000000000 --- a/src/proto/js/Client_grpc_pb.js +++ /dev/null @@ -1,1108 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -'use strict'; -var grpc = require('@grpc/grpc-js'); -var Client_pb = require('./Client_pb.js'); - -function serialize_clientInterface_ActionsMessage(arg) { - if (!(arg instanceof Client_pb.ActionsMessage)) { - throw new Error('Expected argument of type clientInterface.ActionsMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_ActionsMessage(buffer_arg) { - return Client_pb.ActionsMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_CertificateMessage(arg) { - if (!(arg instanceof Client_pb.CertificateMessage)) { - throw new Error('Expected argument of type clientInterface.CertificateMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_CertificateMessage(buffer_arg) { - return Client_pb.CertificateMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_CryptoMessage(arg) { - if (!(arg instanceof Client_pb.CryptoMessage)) { - throw new Error('Expected argument of type clientInterface.CryptoMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_CryptoMessage(buffer_arg) { - return Client_pb.CryptoMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_EchoMessage(arg) { - if (!(arg instanceof Client_pb.EchoMessage)) { - throw new Error('Expected argument of type clientInterface.EchoMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_EchoMessage(buffer_arg) { - return Client_pb.EchoMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_EmptyMessage(arg) { - if (!(arg instanceof Client_pb.EmptyMessage)) { - throw new Error('Expected argument of type clientInterface.EmptyMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_EmptyMessage(buffer_arg) { - return Client_pb.EmptyMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_GestaltGraphMessage(arg) { - if (!(arg instanceof Client_pb.GestaltGraphMessage)) { - throw new Error('Expected argument of type clientInterface.GestaltGraphMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_GestaltGraphMessage(buffer_arg) { - return Client_pb.GestaltGraphMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_GestaltMessage(arg) { - if (!(arg instanceof Client_pb.GestaltMessage)) { - throw new Error('Expected argument of type clientInterface.GestaltMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_GestaltMessage(buffer_arg) { - return Client_pb.GestaltMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_IdentityInfoMessage(arg) { - if (!(arg instanceof Client_pb.IdentityInfoMessage)) { - throw new Error('Expected argument of type clientInterface.IdentityInfoMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_IdentityInfoMessage(buffer_arg) { - return Client_pb.IdentityInfoMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_KeyMessage(arg) { - if (!(arg instanceof Client_pb.KeyMessage)) { - throw new Error('Expected argument of type clientInterface.KeyMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_KeyMessage(buffer_arg) { - return Client_pb.KeyMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_KeyPairMessage(arg) { - if (!(arg instanceof Client_pb.KeyPairMessage)) { - throw new Error('Expected argument of type clientInterface.KeyPairMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_KeyPairMessage(buffer_arg) { - return Client_pb.KeyPairMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_NodeAddressMessage(arg) { - if (!(arg instanceof Client_pb.NodeAddressMessage)) { - throw new Error('Expected argument of type clientInterface.NodeAddressMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_NodeAddressMessage(buffer_arg) { - return Client_pb.NodeAddressMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_NodeClaimMessage(arg) { - if (!(arg instanceof Client_pb.NodeClaimMessage)) { - throw new Error('Expected argument of type clientInterface.NodeClaimMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_NodeClaimMessage(buffer_arg) { - return Client_pb.NodeClaimMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_NodeMessage(arg) { - if (!(arg instanceof Client_pb.NodeMessage)) { - throw new Error('Expected argument of type clientInterface.NodeMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_NodeMessage(buffer_arg) { - return Client_pb.NodeMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_NotificationsListMessage(arg) { - if (!(arg instanceof Client_pb.NotificationsListMessage)) { - throw new Error('Expected argument of type clientInterface.NotificationsListMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_NotificationsListMessage(buffer_arg) { - return Client_pb.NotificationsListMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_NotificationsReadMessage(arg) { - if (!(arg instanceof Client_pb.NotificationsReadMessage)) { - throw new Error('Expected argument of type clientInterface.NotificationsReadMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_NotificationsReadMessage(buffer_arg) { - return Client_pb.NotificationsReadMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_NotificationsSendMessage(arg) { - if (!(arg instanceof Client_pb.NotificationsSendMessage)) { - throw new Error('Expected argument of type clientInterface.NotificationsSendMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_NotificationsSendMessage(buffer_arg) { - return Client_pb.NotificationsSendMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_PasswordMessage(arg) { - if (!(arg instanceof Client_pb.PasswordMessage)) { - throw new Error('Expected argument of type clientInterface.PasswordMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_PasswordMessage(buffer_arg) { - return Client_pb.PasswordMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_ProviderMessage(arg) { - if (!(arg instanceof Client_pb.ProviderMessage)) { - throw new Error('Expected argument of type clientInterface.ProviderMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_ProviderMessage(buffer_arg) { - return Client_pb.ProviderMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_ProviderSearchMessage(arg) { - if (!(arg instanceof Client_pb.ProviderSearchMessage)) { - throw new Error('Expected argument of type clientInterface.ProviderSearchMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_ProviderSearchMessage(buffer_arg) { - return Client_pb.ProviderSearchMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_SecretDirectoryMessage(arg) { - if (!(arg instanceof Client_pb.SecretDirectoryMessage)) { - throw new Error('Expected argument of type clientInterface.SecretDirectoryMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_SecretDirectoryMessage(buffer_arg) { - return Client_pb.SecretDirectoryMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_SecretMessage(arg) { - if (!(arg instanceof Client_pb.SecretMessage)) { - throw new Error('Expected argument of type clientInterface.SecretMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_SecretMessage(buffer_arg) { - return Client_pb.SecretMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_SecretRenameMessage(arg) { - if (!(arg instanceof Client_pb.SecretRenameMessage)) { - throw new Error('Expected argument of type clientInterface.SecretRenameMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_SecretRenameMessage(buffer_arg) { - return Client_pb.SecretRenameMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_SessionTokenMessage(arg) { - if (!(arg instanceof Client_pb.SessionTokenMessage)) { - throw new Error('Expected argument of type clientInterface.SessionTokenMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_SessionTokenMessage(buffer_arg) { - return Client_pb.SessionTokenMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_SetActionsMessage(arg) { - if (!(arg instanceof Client_pb.SetActionsMessage)) { - throw new Error('Expected argument of type clientInterface.SetActionsMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_SetActionsMessage(buffer_arg) { - return Client_pb.SetActionsMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_SetVaultPermMessage(arg) { - if (!(arg instanceof Client_pb.SetVaultPermMessage)) { - throw new Error('Expected argument of type clientInterface.SetVaultPermMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_SetVaultPermMessage(buffer_arg) { - return Client_pb.SetVaultPermMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_StatusMessage(arg) { - if (!(arg instanceof Client_pb.StatusMessage)) { - throw new Error('Expected argument of type clientInterface.StatusMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_StatusMessage(buffer_arg) { - return Client_pb.StatusMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_TokenMessage(arg) { - if (!(arg instanceof Client_pb.TokenMessage)) { - throw new Error('Expected argument of type clientInterface.TokenMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_TokenMessage(buffer_arg) { - return Client_pb.TokenMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_TokenSpecificMessage(arg) { - if (!(arg instanceof Client_pb.TokenSpecificMessage)) { - throw new Error('Expected argument of type clientInterface.TokenSpecificMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_TokenSpecificMessage(buffer_arg) { - return Client_pb.TokenSpecificMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_UnsetVaultPermMessage(arg) { - if (!(arg instanceof Client_pb.UnsetVaultPermMessage)) { - throw new Error('Expected argument of type clientInterface.UnsetVaultPermMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_UnsetVaultPermMessage(buffer_arg) { - return Client_pb.UnsetVaultPermMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_VaultCloneMessage(arg) { - if (!(arg instanceof Client_pb.VaultCloneMessage)) { - throw new Error('Expected argument of type clientInterface.VaultCloneMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_VaultCloneMessage(buffer_arg) { - return Client_pb.VaultCloneMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_VaultListMessage(arg) { - if (!(arg instanceof Client_pb.VaultListMessage)) { - throw new Error('Expected argument of type clientInterface.VaultListMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_VaultListMessage(buffer_arg) { - return Client_pb.VaultListMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_VaultMessage(arg) { - if (!(arg instanceof Client_pb.VaultMessage)) { - throw new Error('Expected argument of type clientInterface.VaultMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_VaultMessage(buffer_arg) { - return Client_pb.VaultMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_VaultMkdirMessage(arg) { - if (!(arg instanceof Client_pb.VaultMkdirMessage)) { - throw new Error('Expected argument of type clientInterface.VaultMkdirMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_VaultMkdirMessage(buffer_arg) { - return Client_pb.VaultMkdirMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_VaultPullMessage(arg) { - if (!(arg instanceof Client_pb.VaultPullMessage)) { - throw new Error('Expected argument of type clientInterface.VaultPullMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_VaultPullMessage(buffer_arg) { - return Client_pb.VaultPullMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_VaultRenameMessage(arg) { - if (!(arg instanceof Client_pb.VaultRenameMessage)) { - throw new Error('Expected argument of type clientInterface.VaultRenameMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_VaultRenameMessage(buffer_arg) { - return Client_pb.VaultRenameMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_VaultsLogEntryMessage(arg) { - if (!(arg instanceof Client_pb.VaultsLogEntryMessage)) { - throw new Error('Expected argument of type clientInterface.VaultsLogEntryMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_VaultsLogEntryMessage(buffer_arg) { - return Client_pb.VaultsLogEntryMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_VaultsLogMessage(arg) { - if (!(arg instanceof Client_pb.VaultsLogMessage)) { - throw new Error('Expected argument of type clientInterface.VaultsLogMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_VaultsLogMessage(buffer_arg) { - return Client_pb.VaultsLogMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_VaultsVersionMessage(arg) { - if (!(arg instanceof Client_pb.VaultsVersionMessage)) { - throw new Error('Expected argument of type clientInterface.VaultsVersionMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_VaultsVersionMessage(buffer_arg) { - return Client_pb.VaultsVersionMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientInterface_VaultsVersionResultMessage(arg) { - if (!(arg instanceof Client_pb.VaultsVersionResultMessage)) { - throw new Error('Expected argument of type clientInterface.VaultsVersionResultMessage'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientInterface_VaultsVersionResultMessage(buffer_arg) { - return Client_pb.VaultsVersionResultMessage.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -var ClientService = exports.ClientService = { - echo: { - path: '/clientInterface.Client/Echo', - requestStream: false, - responseStream: false, - requestType: Client_pb.EchoMessage, - responseType: Client_pb.EchoMessage, - requestSerialize: serialize_clientInterface_EchoMessage, - requestDeserialize: deserialize_clientInterface_EchoMessage, - responseSerialize: serialize_clientInterface_EchoMessage, - responseDeserialize: deserialize_clientInterface_EchoMessage, - }, - // Agent -agentStop: { - path: '/clientInterface.Client/AgentStop', - requestStream: false, - responseStream: false, - requestType: Client_pb.EmptyMessage, - responseType: Client_pb.EmptyMessage, - requestSerialize: serialize_clientInterface_EmptyMessage, - requestDeserialize: deserialize_clientInterface_EmptyMessage, - responseSerialize: serialize_clientInterface_EmptyMessage, - responseDeserialize: deserialize_clientInterface_EmptyMessage, - }, - // Session -sessionUnlock: { - path: '/clientInterface.Client/SessionUnlock', - requestStream: false, - responseStream: false, - requestType: Client_pb.PasswordMessage, - responseType: Client_pb.SessionTokenMessage, - requestSerialize: serialize_clientInterface_PasswordMessage, - requestDeserialize: deserialize_clientInterface_PasswordMessage, - responseSerialize: serialize_clientInterface_SessionTokenMessage, - responseDeserialize: deserialize_clientInterface_SessionTokenMessage, - }, - sessionRefresh: { - path: '/clientInterface.Client/SessionRefresh', - requestStream: false, - responseStream: false, - requestType: Client_pb.EmptyMessage, - responseType: Client_pb.SessionTokenMessage, - requestSerialize: serialize_clientInterface_EmptyMessage, - requestDeserialize: deserialize_clientInterface_EmptyMessage, - responseSerialize: serialize_clientInterface_SessionTokenMessage, - responseDeserialize: deserialize_clientInterface_SessionTokenMessage, - }, - sessionLockAll: { - path: '/clientInterface.Client/SessionLockAll', - requestStream: false, - responseStream: false, - requestType: Client_pb.EmptyMessage, - responseType: Client_pb.StatusMessage, - requestSerialize: serialize_clientInterface_EmptyMessage, - requestDeserialize: deserialize_clientInterface_EmptyMessage, - responseSerialize: serialize_clientInterface_StatusMessage, - responseDeserialize: deserialize_clientInterface_StatusMessage, - }, - // Nodes -nodesAdd: { - path: '/clientInterface.Client/NodesAdd', - requestStream: false, - responseStream: false, - requestType: Client_pb.NodeAddressMessage, - responseType: Client_pb.EmptyMessage, - requestSerialize: serialize_clientInterface_NodeAddressMessage, - requestDeserialize: deserialize_clientInterface_NodeAddressMessage, - responseSerialize: serialize_clientInterface_EmptyMessage, - responseDeserialize: deserialize_clientInterface_EmptyMessage, - }, - nodesPing: { - path: '/clientInterface.Client/NodesPing', - requestStream: false, - responseStream: false, - requestType: Client_pb.NodeMessage, - responseType: Client_pb.StatusMessage, - requestSerialize: serialize_clientInterface_NodeMessage, - requestDeserialize: deserialize_clientInterface_NodeMessage, - responseSerialize: serialize_clientInterface_StatusMessage, - responseDeserialize: deserialize_clientInterface_StatusMessage, - }, - nodesClaim: { - path: '/clientInterface.Client/NodesClaim', - requestStream: false, - responseStream: false, - requestType: Client_pb.NodeClaimMessage, - responseType: Client_pb.StatusMessage, - requestSerialize: serialize_clientInterface_NodeClaimMessage, - requestDeserialize: deserialize_clientInterface_NodeClaimMessage, - responseSerialize: serialize_clientInterface_StatusMessage, - responseDeserialize: deserialize_clientInterface_StatusMessage, - }, - nodesFind: { - path: '/clientInterface.Client/NodesFind', - requestStream: false, - responseStream: false, - requestType: Client_pb.NodeMessage, - responseType: Client_pb.NodeAddressMessage, - requestSerialize: serialize_clientInterface_NodeMessage, - requestDeserialize: deserialize_clientInterface_NodeMessage, - responseSerialize: serialize_clientInterface_NodeAddressMessage, - responseDeserialize: deserialize_clientInterface_NodeAddressMessage, - }, - nodesScan: { - path: '/clientInterface.Client/NodesScan', - requestStream: false, - responseStream: true, - requestType: Client_pb.NodeMessage, - responseType: Client_pb.VaultListMessage, - requestSerialize: serialize_clientInterface_NodeMessage, - requestDeserialize: deserialize_clientInterface_NodeMessage, - responseSerialize: serialize_clientInterface_VaultListMessage, - responseDeserialize: deserialize_clientInterface_VaultListMessage, - }, - // Keys -keysKeyPairRoot: { - path: '/clientInterface.Client/KeysKeyPairRoot', - requestStream: false, - responseStream: false, - requestType: Client_pb.EmptyMessage, - responseType: Client_pb.KeyPairMessage, - requestSerialize: serialize_clientInterface_EmptyMessage, - requestDeserialize: deserialize_clientInterface_EmptyMessage, - responseSerialize: serialize_clientInterface_KeyPairMessage, - responseDeserialize: deserialize_clientInterface_KeyPairMessage, - }, - keysKeyPairReset: { - path: '/clientInterface.Client/KeysKeyPairReset', - requestStream: false, - responseStream: false, - requestType: Client_pb.KeyMessage, - responseType: Client_pb.EmptyMessage, - requestSerialize: serialize_clientInterface_KeyMessage, - requestDeserialize: deserialize_clientInterface_KeyMessage, - responseSerialize: serialize_clientInterface_EmptyMessage, - responseDeserialize: deserialize_clientInterface_EmptyMessage, - }, - keysKeyPairRenew: { - path: '/clientInterface.Client/KeysKeyPairRenew', - requestStream: false, - responseStream: false, - requestType: Client_pb.KeyMessage, - responseType: Client_pb.EmptyMessage, - requestSerialize: serialize_clientInterface_KeyMessage, - requestDeserialize: deserialize_clientInterface_KeyMessage, - responseSerialize: serialize_clientInterface_EmptyMessage, - responseDeserialize: deserialize_clientInterface_EmptyMessage, - }, - keysEncrypt: { - path: '/clientInterface.Client/KeysEncrypt', - requestStream: false, - responseStream: false, - requestType: Client_pb.CryptoMessage, - responseType: Client_pb.CryptoMessage, - requestSerialize: serialize_clientInterface_CryptoMessage, - requestDeserialize: deserialize_clientInterface_CryptoMessage, - responseSerialize: serialize_clientInterface_CryptoMessage, - responseDeserialize: deserialize_clientInterface_CryptoMessage, - }, - keysDecrypt: { - path: '/clientInterface.Client/KeysDecrypt', - requestStream: false, - responseStream: false, - requestType: Client_pb.CryptoMessage, - responseType: Client_pb.CryptoMessage, - requestSerialize: serialize_clientInterface_CryptoMessage, - requestDeserialize: deserialize_clientInterface_CryptoMessage, - responseSerialize: serialize_clientInterface_CryptoMessage, - responseDeserialize: deserialize_clientInterface_CryptoMessage, - }, - keysSign: { - path: '/clientInterface.Client/KeysSign', - requestStream: false, - responseStream: false, - requestType: Client_pb.CryptoMessage, - responseType: Client_pb.CryptoMessage, - requestSerialize: serialize_clientInterface_CryptoMessage, - requestDeserialize: deserialize_clientInterface_CryptoMessage, - responseSerialize: serialize_clientInterface_CryptoMessage, - responseDeserialize: deserialize_clientInterface_CryptoMessage, - }, - keysVerify: { - path: '/clientInterface.Client/KeysVerify', - requestStream: false, - responseStream: false, - requestType: Client_pb.CryptoMessage, - responseType: Client_pb.StatusMessage, - requestSerialize: serialize_clientInterface_CryptoMessage, - requestDeserialize: deserialize_clientInterface_CryptoMessage, - responseSerialize: serialize_clientInterface_StatusMessage, - responseDeserialize: deserialize_clientInterface_StatusMessage, - }, - keysPasswordChange: { - path: '/clientInterface.Client/KeysPasswordChange', - requestStream: false, - responseStream: false, - requestType: Client_pb.PasswordMessage, - responseType: Client_pb.EmptyMessage, - requestSerialize: serialize_clientInterface_PasswordMessage, - requestDeserialize: deserialize_clientInterface_PasswordMessage, - responseSerialize: serialize_clientInterface_EmptyMessage, - responseDeserialize: deserialize_clientInterface_EmptyMessage, - }, - keysCertsGet: { - path: '/clientInterface.Client/KeysCertsGet', - requestStream: false, - responseStream: false, - requestType: Client_pb.EmptyMessage, - responseType: Client_pb.CertificateMessage, - requestSerialize: serialize_clientInterface_EmptyMessage, - requestDeserialize: deserialize_clientInterface_EmptyMessage, - responseSerialize: serialize_clientInterface_CertificateMessage, - responseDeserialize: deserialize_clientInterface_CertificateMessage, - }, - keysCertsChainGet: { - path: '/clientInterface.Client/KeysCertsChainGet', - requestStream: false, - responseStream: true, - requestType: Client_pb.EmptyMessage, - responseType: Client_pb.CertificateMessage, - requestSerialize: serialize_clientInterface_EmptyMessage, - requestDeserialize: deserialize_clientInterface_EmptyMessage, - responseSerialize: serialize_clientInterface_CertificateMessage, - responseDeserialize: deserialize_clientInterface_CertificateMessage, - }, - // Vaults -vaultsList: { - path: '/clientInterface.Client/VaultsList', - requestStream: false, - responseStream: true, - requestType: Client_pb.EmptyMessage, - responseType: Client_pb.VaultListMessage, - requestSerialize: serialize_clientInterface_EmptyMessage, - requestDeserialize: deserialize_clientInterface_EmptyMessage, - responseSerialize: serialize_clientInterface_VaultListMessage, - responseDeserialize: deserialize_clientInterface_VaultListMessage, - }, - vaultsCreate: { - path: '/clientInterface.Client/VaultsCreate', - requestStream: false, - responseStream: false, - requestType: Client_pb.VaultMessage, - responseType: Client_pb.VaultMessage, - requestSerialize: serialize_clientInterface_VaultMessage, - requestDeserialize: deserialize_clientInterface_VaultMessage, - responseSerialize: serialize_clientInterface_VaultMessage, - responseDeserialize: deserialize_clientInterface_VaultMessage, - }, - vaultsRename: { - path: '/clientInterface.Client/VaultsRename', - requestStream: false, - responseStream: false, - requestType: Client_pb.VaultRenameMessage, - responseType: Client_pb.VaultMessage, - requestSerialize: serialize_clientInterface_VaultRenameMessage, - requestDeserialize: deserialize_clientInterface_VaultRenameMessage, - responseSerialize: serialize_clientInterface_VaultMessage, - responseDeserialize: deserialize_clientInterface_VaultMessage, - }, - vaultsDelete: { - path: '/clientInterface.Client/VaultsDelete', - requestStream: false, - responseStream: false, - requestType: Client_pb.VaultMessage, - responseType: Client_pb.StatusMessage, - requestSerialize: serialize_clientInterface_VaultMessage, - requestDeserialize: deserialize_clientInterface_VaultMessage, - responseSerialize: serialize_clientInterface_StatusMessage, - responseDeserialize: deserialize_clientInterface_StatusMessage, - }, - vaultsPull: { - path: '/clientInterface.Client/VaultsPull', - requestStream: false, - responseStream: false, - requestType: Client_pb.VaultPullMessage, - responseType: Client_pb.StatusMessage, - requestSerialize: serialize_clientInterface_VaultPullMessage, - requestDeserialize: deserialize_clientInterface_VaultPullMessage, - responseSerialize: serialize_clientInterface_StatusMessage, - responseDeserialize: deserialize_clientInterface_StatusMessage, - }, - vaultsClone: { - path: '/clientInterface.Client/VaultsClone', - requestStream: false, - responseStream: false, - requestType: Client_pb.VaultCloneMessage, - responseType: Client_pb.StatusMessage, - requestSerialize: serialize_clientInterface_VaultCloneMessage, - requestDeserialize: deserialize_clientInterface_VaultCloneMessage, - responseSerialize: serialize_clientInterface_StatusMessage, - responseDeserialize: deserialize_clientInterface_StatusMessage, - }, - vaultsSecretsList: { - path: '/clientInterface.Client/VaultsSecretsList', - requestStream: false, - responseStream: true, - requestType: Client_pb.VaultMessage, - responseType: Client_pb.SecretMessage, - requestSerialize: serialize_clientInterface_VaultMessage, - requestDeserialize: deserialize_clientInterface_VaultMessage, - responseSerialize: serialize_clientInterface_SecretMessage, - responseDeserialize: deserialize_clientInterface_SecretMessage, - }, - vaultsSecretsMkdir: { - path: '/clientInterface.Client/VaultsSecretsMkdir', - requestStream: false, - responseStream: false, - requestType: Client_pb.VaultMkdirMessage, - responseType: Client_pb.StatusMessage, - requestSerialize: serialize_clientInterface_VaultMkdirMessage, - requestDeserialize: deserialize_clientInterface_VaultMkdirMessage, - responseSerialize: serialize_clientInterface_StatusMessage, - responseDeserialize: deserialize_clientInterface_StatusMessage, - }, - vaultsSecretsDelete: { - path: '/clientInterface.Client/VaultsSecretsDelete', - requestStream: false, - responseStream: false, - requestType: Client_pb.SecretMessage, - responseType: Client_pb.StatusMessage, - requestSerialize: serialize_clientInterface_SecretMessage, - requestDeserialize: deserialize_clientInterface_SecretMessage, - responseSerialize: serialize_clientInterface_StatusMessage, - responseDeserialize: deserialize_clientInterface_StatusMessage, - }, - vaultsSecretsEdit: { - path: '/clientInterface.Client/VaultsSecretsEdit', - requestStream: false, - responseStream: false, - requestType: Client_pb.SecretMessage, - responseType: Client_pb.StatusMessage, - requestSerialize: serialize_clientInterface_SecretMessage, - requestDeserialize: deserialize_clientInterface_SecretMessage, - responseSerialize: serialize_clientInterface_StatusMessage, - responseDeserialize: deserialize_clientInterface_StatusMessage, - }, - vaultsSecretsGet: { - path: '/clientInterface.Client/VaultsSecretsGet', - requestStream: false, - responseStream: false, - requestType: Client_pb.SecretMessage, - responseType: Client_pb.SecretMessage, - requestSerialize: serialize_clientInterface_SecretMessage, - requestDeserialize: deserialize_clientInterface_SecretMessage, - responseSerialize: serialize_clientInterface_SecretMessage, - responseDeserialize: deserialize_clientInterface_SecretMessage, - }, - vaultsSecretsRename: { - path: '/clientInterface.Client/VaultsSecretsRename', - requestStream: false, - responseStream: false, - requestType: Client_pb.SecretRenameMessage, - responseType: Client_pb.StatusMessage, - requestSerialize: serialize_clientInterface_SecretRenameMessage, - requestDeserialize: deserialize_clientInterface_SecretRenameMessage, - responseSerialize: serialize_clientInterface_StatusMessage, - responseDeserialize: deserialize_clientInterface_StatusMessage, - }, - vaultsSecretsNew: { - path: '/clientInterface.Client/VaultsSecretsNew', - requestStream: false, - responseStream: false, - requestType: Client_pb.SecretMessage, - responseType: Client_pb.StatusMessage, - requestSerialize: serialize_clientInterface_SecretMessage, - requestDeserialize: deserialize_clientInterface_SecretMessage, - responseSerialize: serialize_clientInterface_StatusMessage, - responseDeserialize: deserialize_clientInterface_StatusMessage, - }, - vaultsSecretsNewDir: { - path: '/clientInterface.Client/VaultsSecretsNewDir', - requestStream: false, - responseStream: false, - requestType: Client_pb.SecretDirectoryMessage, - responseType: Client_pb.StatusMessage, - requestSerialize: serialize_clientInterface_SecretDirectoryMessage, - requestDeserialize: deserialize_clientInterface_SecretDirectoryMessage, - responseSerialize: serialize_clientInterface_StatusMessage, - responseDeserialize: deserialize_clientInterface_StatusMessage, - }, - vaultsShare: { - path: '/clientInterface.Client/VaultsShare', - requestStream: false, - responseStream: false, - requestType: Client_pb.SetVaultPermMessage, - responseType: Client_pb.StatusMessage, - requestSerialize: serialize_clientInterface_SetVaultPermMessage, - requestDeserialize: deserialize_clientInterface_SetVaultPermMessage, - responseSerialize: serialize_clientInterface_StatusMessage, - responseDeserialize: deserialize_clientInterface_StatusMessage, - }, - vaultsUnshare: { - path: '/clientInterface.Client/VaultsUnshare', - requestStream: false, - responseStream: false, - requestType: Client_pb.UnsetVaultPermMessage, - responseType: Client_pb.StatusMessage, - requestSerialize: serialize_clientInterface_UnsetVaultPermMessage, - requestDeserialize: deserialize_clientInterface_UnsetVaultPermMessage, - responseSerialize: serialize_clientInterface_StatusMessage, - responseDeserialize: deserialize_clientInterface_StatusMessage, - }, - vaultsVersion: { - path: '/clientInterface.Client/VaultsVersion', - requestStream: false, - responseStream: false, - requestType: Client_pb.VaultsVersionMessage, - responseType: Client_pb.VaultsVersionResultMessage, - requestSerialize: serialize_clientInterface_VaultsVersionMessage, - requestDeserialize: deserialize_clientInterface_VaultsVersionMessage, - responseSerialize: serialize_clientInterface_VaultsVersionResultMessage, - responseDeserialize: deserialize_clientInterface_VaultsVersionResultMessage, - }, - vaultsLog: { - path: '/clientInterface.Client/VaultsLog', - requestStream: false, - responseStream: true, - requestType: Client_pb.VaultsLogMessage, - responseType: Client_pb.VaultsLogEntryMessage, - requestSerialize: serialize_clientInterface_VaultsLogMessage, - requestDeserialize: deserialize_clientInterface_VaultsLogMessage, - responseSerialize: serialize_clientInterface_VaultsLogEntryMessage, - responseDeserialize: deserialize_clientInterface_VaultsLogEntryMessage, - }, - // Identities -identitiesAuthenticate: { - path: '/clientInterface.Client/IdentitiesAuthenticate', - requestStream: false, - responseStream: true, - requestType: Client_pb.ProviderMessage, - responseType: Client_pb.ProviderMessage, - requestSerialize: serialize_clientInterface_ProviderMessage, - requestDeserialize: deserialize_clientInterface_ProviderMessage, - responseSerialize: serialize_clientInterface_ProviderMessage, - responseDeserialize: deserialize_clientInterface_ProviderMessage, - }, - identitiesTokenPut: { - path: '/clientInterface.Client/IdentitiesTokenPut', - requestStream: false, - responseStream: false, - requestType: Client_pb.TokenSpecificMessage, - responseType: Client_pb.EmptyMessage, - requestSerialize: serialize_clientInterface_TokenSpecificMessage, - requestDeserialize: deserialize_clientInterface_TokenSpecificMessage, - responseSerialize: serialize_clientInterface_EmptyMessage, - responseDeserialize: deserialize_clientInterface_EmptyMessage, - }, - identitiesTokenGet: { - path: '/clientInterface.Client/IdentitiesTokenGet', - requestStream: false, - responseStream: false, - requestType: Client_pb.ProviderMessage, - responseType: Client_pb.TokenMessage, - requestSerialize: serialize_clientInterface_ProviderMessage, - requestDeserialize: deserialize_clientInterface_ProviderMessage, - responseSerialize: serialize_clientInterface_TokenMessage, - responseDeserialize: deserialize_clientInterface_TokenMessage, - }, - identitiesTokenDelete: { - path: '/clientInterface.Client/IdentitiesTokenDelete', - requestStream: false, - responseStream: false, - requestType: Client_pb.ProviderMessage, - responseType: Client_pb.EmptyMessage, - requestSerialize: serialize_clientInterface_ProviderMessage, - requestDeserialize: deserialize_clientInterface_ProviderMessage, - responseSerialize: serialize_clientInterface_EmptyMessage, - responseDeserialize: deserialize_clientInterface_EmptyMessage, - }, - identitiesProvidersList: { - path: '/clientInterface.Client/IdentitiesProvidersList', - requestStream: false, - responseStream: false, - requestType: Client_pb.EmptyMessage, - responseType: Client_pb.ProviderMessage, - requestSerialize: serialize_clientInterface_EmptyMessage, - requestDeserialize: deserialize_clientInterface_EmptyMessage, - responseSerialize: serialize_clientInterface_ProviderMessage, - responseDeserialize: deserialize_clientInterface_ProviderMessage, - }, - identitiesInfoGet: { - path: '/clientInterface.Client/IdentitiesInfoGet', - requestStream: false, - responseStream: false, - requestType: Client_pb.ProviderMessage, - responseType: Client_pb.ProviderMessage, - requestSerialize: serialize_clientInterface_ProviderMessage, - requestDeserialize: deserialize_clientInterface_ProviderMessage, - responseSerialize: serialize_clientInterface_ProviderMessage, - responseDeserialize: deserialize_clientInterface_ProviderMessage, - }, - identitiesInfoGetConnected: { - path: '/clientInterface.Client/IdentitiesInfoGetConnected', - requestStream: false, - responseStream: true, - requestType: Client_pb.ProviderSearchMessage, - responseType: Client_pb.IdentityInfoMessage, - requestSerialize: serialize_clientInterface_ProviderSearchMessage, - requestDeserialize: deserialize_clientInterface_ProviderSearchMessage, - responseSerialize: serialize_clientInterface_IdentityInfoMessage, - responseDeserialize: deserialize_clientInterface_IdentityInfoMessage, - }, - identitiesClaim: { - path: '/clientInterface.Client/IdentitiesClaim', - requestStream: false, - responseStream: false, - requestType: Client_pb.ProviderMessage, - responseType: Client_pb.EmptyMessage, - requestSerialize: serialize_clientInterface_ProviderMessage, - requestDeserialize: deserialize_clientInterface_ProviderMessage, - responseSerialize: serialize_clientInterface_EmptyMessage, - responseDeserialize: deserialize_clientInterface_EmptyMessage, - }, - // Gestalts -gestaltsGestaltList: { - path: '/clientInterface.Client/GestaltsGestaltList', - requestStream: false, - responseStream: true, - requestType: Client_pb.EmptyMessage, - responseType: Client_pb.GestaltMessage, - requestSerialize: serialize_clientInterface_EmptyMessage, - requestDeserialize: deserialize_clientInterface_EmptyMessage, - responseSerialize: serialize_clientInterface_GestaltMessage, - responseDeserialize: deserialize_clientInterface_GestaltMessage, - }, - gestaltsGestaltGetByNode: { - path: '/clientInterface.Client/GestaltsGestaltGetByNode', - requestStream: false, - responseStream: false, - requestType: Client_pb.NodeMessage, - responseType: Client_pb.GestaltGraphMessage, - requestSerialize: serialize_clientInterface_NodeMessage, - requestDeserialize: deserialize_clientInterface_NodeMessage, - responseSerialize: serialize_clientInterface_GestaltGraphMessage, - responseDeserialize: deserialize_clientInterface_GestaltGraphMessage, - }, - gestaltsGestaltGetByIdentity: { - path: '/clientInterface.Client/GestaltsGestaltGetByIdentity', - requestStream: false, - responseStream: false, - requestType: Client_pb.ProviderMessage, - responseType: Client_pb.GestaltGraphMessage, - requestSerialize: serialize_clientInterface_ProviderMessage, - requestDeserialize: deserialize_clientInterface_ProviderMessage, - responseSerialize: serialize_clientInterface_GestaltGraphMessage, - responseDeserialize: deserialize_clientInterface_GestaltGraphMessage, - }, - gestaltsDiscoveryByNode: { - path: '/clientInterface.Client/GestaltsDiscoveryByNode', - requestStream: false, - responseStream: false, - requestType: Client_pb.NodeMessage, - responseType: Client_pb.EmptyMessage, - requestSerialize: serialize_clientInterface_NodeMessage, - requestDeserialize: deserialize_clientInterface_NodeMessage, - responseSerialize: serialize_clientInterface_EmptyMessage, - responseDeserialize: deserialize_clientInterface_EmptyMessage, - }, - gestaltsDiscoveryByIdentity: { - path: '/clientInterface.Client/GestaltsDiscoveryByIdentity', - requestStream: false, - responseStream: false, - requestType: Client_pb.ProviderMessage, - responseType: Client_pb.EmptyMessage, - requestSerialize: serialize_clientInterface_ProviderMessage, - requestDeserialize: deserialize_clientInterface_ProviderMessage, - responseSerialize: serialize_clientInterface_EmptyMessage, - responseDeserialize: deserialize_clientInterface_EmptyMessage, - }, - gestaltsActionsGetByNode: { - path: '/clientInterface.Client/GestaltsActionsGetByNode', - requestStream: false, - responseStream: false, - requestType: Client_pb.NodeMessage, - responseType: Client_pb.ActionsMessage, - requestSerialize: serialize_clientInterface_NodeMessage, - requestDeserialize: deserialize_clientInterface_NodeMessage, - responseSerialize: serialize_clientInterface_ActionsMessage, - responseDeserialize: deserialize_clientInterface_ActionsMessage, - }, - gestaltsActionsGetByIdentity: { - path: '/clientInterface.Client/GestaltsActionsGetByIdentity', - requestStream: false, - responseStream: false, - requestType: Client_pb.ProviderMessage, - responseType: Client_pb.ActionsMessage, - requestSerialize: serialize_clientInterface_ProviderMessage, - requestDeserialize: deserialize_clientInterface_ProviderMessage, - responseSerialize: serialize_clientInterface_ActionsMessage, - responseDeserialize: deserialize_clientInterface_ActionsMessage, - }, - gestaltsActionsSetByNode: { - path: '/clientInterface.Client/GestaltsActionsSetByNode', - requestStream: false, - responseStream: false, - requestType: Client_pb.SetActionsMessage, - responseType: Client_pb.EmptyMessage, - requestSerialize: serialize_clientInterface_SetActionsMessage, - requestDeserialize: deserialize_clientInterface_SetActionsMessage, - responseSerialize: serialize_clientInterface_EmptyMessage, - responseDeserialize: deserialize_clientInterface_EmptyMessage, - }, - gestaltsActionsSetByIdentity: { - path: '/clientInterface.Client/GestaltsActionsSetByIdentity', - requestStream: false, - responseStream: false, - requestType: Client_pb.SetActionsMessage, - responseType: Client_pb.EmptyMessage, - requestSerialize: serialize_clientInterface_SetActionsMessage, - requestDeserialize: deserialize_clientInterface_SetActionsMessage, - responseSerialize: serialize_clientInterface_EmptyMessage, - responseDeserialize: deserialize_clientInterface_EmptyMessage, - }, - gestaltsActionsUnsetByNode: { - path: '/clientInterface.Client/GestaltsActionsUnsetByNode', - requestStream: false, - responseStream: false, - requestType: Client_pb.SetActionsMessage, - responseType: Client_pb.EmptyMessage, - requestSerialize: serialize_clientInterface_SetActionsMessage, - requestDeserialize: deserialize_clientInterface_SetActionsMessage, - responseSerialize: serialize_clientInterface_EmptyMessage, - responseDeserialize: deserialize_clientInterface_EmptyMessage, - }, - gestaltsActionsUnsetByIdentity: { - path: '/clientInterface.Client/GestaltsActionsUnsetByIdentity', - requestStream: false, - responseStream: false, - requestType: Client_pb.SetActionsMessage, - responseType: Client_pb.EmptyMessage, - requestSerialize: serialize_clientInterface_SetActionsMessage, - requestDeserialize: deserialize_clientInterface_SetActionsMessage, - responseSerialize: serialize_clientInterface_EmptyMessage, - responseDeserialize: deserialize_clientInterface_EmptyMessage, - }, - // Notifications -notificationsSend: { - path: '/clientInterface.Client/NotificationsSend', - requestStream: false, - responseStream: false, - requestType: Client_pb.NotificationsSendMessage, - responseType: Client_pb.EmptyMessage, - requestSerialize: serialize_clientInterface_NotificationsSendMessage, - requestDeserialize: deserialize_clientInterface_NotificationsSendMessage, - responseSerialize: serialize_clientInterface_EmptyMessage, - responseDeserialize: deserialize_clientInterface_EmptyMessage, - }, - notificationsRead: { - path: '/clientInterface.Client/NotificationsRead', - requestStream: false, - responseStream: false, - requestType: Client_pb.NotificationsReadMessage, - responseType: Client_pb.NotificationsListMessage, - requestSerialize: serialize_clientInterface_NotificationsReadMessage, - requestDeserialize: deserialize_clientInterface_NotificationsReadMessage, - responseSerialize: serialize_clientInterface_NotificationsListMessage, - responseDeserialize: deserialize_clientInterface_NotificationsListMessage, - }, - notificationsClear: { - path: '/clientInterface.Client/NotificationsClear', - requestStream: false, - responseStream: false, - requestType: Client_pb.EmptyMessage, - responseType: Client_pb.EmptyMessage, - requestSerialize: serialize_clientInterface_EmptyMessage, - requestDeserialize: deserialize_clientInterface_EmptyMessage, - responseSerialize: serialize_clientInterface_EmptyMessage, - responseDeserialize: deserialize_clientInterface_EmptyMessage, - }, -}; - -exports.ClientClient = grpc.makeGenericClientConstructor(ClientService); diff --git a/src/proto/js/Client_pb.d.ts b/src/proto/js/Client_pb.d.ts deleted file mode 100644 index 35c249511d..0000000000 --- a/src/proto/js/Client_pb.d.ts +++ /dev/null @@ -1,1190 +0,0 @@ -// package: clientInterface -// file: Client.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; - -export class EmptyMessage extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EmptyMessage.AsObject; - static toObject(includeInstance: boolean, msg: EmptyMessage): EmptyMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EmptyMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EmptyMessage; - static deserializeBinaryFromReader(message: EmptyMessage, reader: jspb.BinaryReader): EmptyMessage; -} - -export namespace EmptyMessage { - export type AsObject = { - } -} - -export class StatusMessage extends jspb.Message { - getSuccess(): boolean; - setSuccess(value: boolean): StatusMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StatusMessage.AsObject; - static toObject(includeInstance: boolean, msg: StatusMessage): StatusMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: StatusMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StatusMessage; - static deserializeBinaryFromReader(message: StatusMessage, reader: jspb.BinaryReader): StatusMessage; -} - -export namespace StatusMessage { - export type AsObject = { - success: boolean, - } -} - -export class EchoMessage extends jspb.Message { - getChallenge(): string; - setChallenge(value: string): EchoMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EchoMessage.AsObject; - static toObject(includeInstance: boolean, msg: EchoMessage): EchoMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EchoMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EchoMessage; - static deserializeBinaryFromReader(message: EchoMessage, reader: jspb.BinaryReader): EchoMessage; -} - -export namespace EchoMessage { - export type AsObject = { - challenge: string, - } -} - -export class PasswordMessage extends jspb.Message { - - hasPassword(): boolean; - clearPassword(): void; - getPassword(): string; - setPassword(value: string): PasswordMessage; - - hasPasswordFile(): boolean; - clearPasswordFile(): void; - getPasswordFile(): string; - setPasswordFile(value: string): PasswordMessage; - - getPasswordOrFileCase(): PasswordMessage.PasswordOrFileCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PasswordMessage.AsObject; - static toObject(includeInstance: boolean, msg: PasswordMessage): PasswordMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PasswordMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PasswordMessage; - static deserializeBinaryFromReader(message: PasswordMessage, reader: jspb.BinaryReader): PasswordMessage; -} - -export namespace PasswordMessage { - export type AsObject = { - password: string, - passwordFile: string, - } - - export enum PasswordOrFileCase { - PASSWORD_OR_FILE_NOT_SET = 0, - PASSWORD = 1, - PASSWORD_FILE = 2, - } - -} - -export class SessionTokenMessage extends jspb.Message { - getToken(): string; - setToken(value: string): SessionTokenMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SessionTokenMessage.AsObject; - static toObject(includeInstance: boolean, msg: SessionTokenMessage): SessionTokenMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SessionTokenMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SessionTokenMessage; - static deserializeBinaryFromReader(message: SessionTokenMessage, reader: jspb.BinaryReader): SessionTokenMessage; -} - -export namespace SessionTokenMessage { - export type AsObject = { - token: string, - } -} - -export class VaultListMessage extends jspb.Message { - getVaultName(): string; - setVaultName(value: string): VaultListMessage; - getVaultId(): string; - setVaultId(value: string): VaultListMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VaultListMessage.AsObject; - static toObject(includeInstance: boolean, msg: VaultListMessage): VaultListMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VaultListMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VaultListMessage; - static deserializeBinaryFromReader(message: VaultListMessage, reader: jspb.BinaryReader): VaultListMessage; -} - -export namespace VaultListMessage { - export type AsObject = { - vaultName: string, - vaultId: string, - } -} - -export class VaultMessage extends jspb.Message { - getNameOrId(): string; - setNameOrId(value: string): VaultMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VaultMessage.AsObject; - static toObject(includeInstance: boolean, msg: VaultMessage): VaultMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VaultMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VaultMessage; - static deserializeBinaryFromReader(message: VaultMessage, reader: jspb.BinaryReader): VaultMessage; -} - -export namespace VaultMessage { - export type AsObject = { - nameOrId: string, - } -} - -export class VaultRenameMessage extends jspb.Message { - - hasVault(): boolean; - clearVault(): void; - getVault(): VaultMessage | undefined; - setVault(value?: VaultMessage): VaultRenameMessage; - getNewName(): string; - setNewName(value: string): VaultRenameMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VaultRenameMessage.AsObject; - static toObject(includeInstance: boolean, msg: VaultRenameMessage): VaultRenameMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VaultRenameMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VaultRenameMessage; - static deserializeBinaryFromReader(message: VaultRenameMessage, reader: jspb.BinaryReader): VaultRenameMessage; -} - -export namespace VaultRenameMessage { - export type AsObject = { - vault?: VaultMessage.AsObject, - newName: string, - } -} - -export class VaultMkdirMessage extends jspb.Message { - - hasVault(): boolean; - clearVault(): void; - getVault(): VaultMessage | undefined; - setVault(value?: VaultMessage): VaultMkdirMessage; - getDirName(): string; - setDirName(value: string): VaultMkdirMessage; - getRecursive(): boolean; - setRecursive(value: boolean): VaultMkdirMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VaultMkdirMessage.AsObject; - static toObject(includeInstance: boolean, msg: VaultMkdirMessage): VaultMkdirMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VaultMkdirMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VaultMkdirMessage; - static deserializeBinaryFromReader(message: VaultMkdirMessage, reader: jspb.BinaryReader): VaultMkdirMessage; -} - -export namespace VaultMkdirMessage { - export type AsObject = { - vault?: VaultMessage.AsObject, - dirName: string, - recursive: boolean, - } -} - -export class VaultPullMessage extends jspb.Message { - - hasVault(): boolean; - clearVault(): void; - getVault(): VaultMessage | undefined; - setVault(value?: VaultMessage): VaultPullMessage; - - hasNode(): boolean; - clearNode(): void; - getNode(): NodeMessage | undefined; - setNode(value?: NodeMessage): VaultPullMessage; - - hasPullVault(): boolean; - clearPullVault(): void; - getPullVault(): VaultMessage | undefined; - setPullVault(value?: VaultMessage): VaultPullMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VaultPullMessage.AsObject; - static toObject(includeInstance: boolean, msg: VaultPullMessage): VaultPullMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VaultPullMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VaultPullMessage; - static deserializeBinaryFromReader(message: VaultPullMessage, reader: jspb.BinaryReader): VaultPullMessage; -} - -export namespace VaultPullMessage { - export type AsObject = { - vault?: VaultMessage.AsObject, - node?: NodeMessage.AsObject, - pullVault?: VaultMessage.AsObject, - } -} - -export class VaultCloneMessage extends jspb.Message { - - hasVault(): boolean; - clearVault(): void; - getVault(): VaultMessage | undefined; - setVault(value?: VaultMessage): VaultCloneMessage; - - hasNode(): boolean; - clearNode(): void; - getNode(): NodeMessage | undefined; - setNode(value?: NodeMessage): VaultCloneMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VaultCloneMessage.AsObject; - static toObject(includeInstance: boolean, msg: VaultCloneMessage): VaultCloneMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VaultCloneMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VaultCloneMessage; - static deserializeBinaryFromReader(message: VaultCloneMessage, reader: jspb.BinaryReader): VaultCloneMessage; -} - -export namespace VaultCloneMessage { - export type AsObject = { - vault?: VaultMessage.AsObject, - node?: NodeMessage.AsObject, - } -} - -export class SecretRenameMessage extends jspb.Message { - - hasOldSecret(): boolean; - clearOldSecret(): void; - getOldSecret(): SecretMessage | undefined; - setOldSecret(value?: SecretMessage): SecretRenameMessage; - getNewName(): string; - setNewName(value: string): SecretRenameMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SecretRenameMessage.AsObject; - static toObject(includeInstance: boolean, msg: SecretRenameMessage): SecretRenameMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SecretRenameMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SecretRenameMessage; - static deserializeBinaryFromReader(message: SecretRenameMessage, reader: jspb.BinaryReader): SecretRenameMessage; -} - -export namespace SecretRenameMessage { - export type AsObject = { - oldSecret?: SecretMessage.AsObject, - newName: string, - } -} - -export class SecretMessage extends jspb.Message { - - hasVault(): boolean; - clearVault(): void; - getVault(): VaultMessage | undefined; - setVault(value?: VaultMessage): SecretMessage; - getSecretName(): string; - setSecretName(value: string): SecretMessage; - getSecretContent(): Uint8Array | string; - getSecretContent_asU8(): Uint8Array; - getSecretContent_asB64(): string; - setSecretContent(value: Uint8Array | string): SecretMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SecretMessage.AsObject; - static toObject(includeInstance: boolean, msg: SecretMessage): SecretMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SecretMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SecretMessage; - static deserializeBinaryFromReader(message: SecretMessage, reader: jspb.BinaryReader): SecretMessage; -} - -export namespace SecretMessage { - export type AsObject = { - vault?: VaultMessage.AsObject, - secretName: string, - secretContent: Uint8Array | string, - } -} - -export class SecretDirectoryMessage extends jspb.Message { - - hasVault(): boolean; - clearVault(): void; - getVault(): VaultMessage | undefined; - setVault(value?: VaultMessage): SecretDirectoryMessage; - getSecretDirectory(): string; - setSecretDirectory(value: string): SecretDirectoryMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SecretDirectoryMessage.AsObject; - static toObject(includeInstance: boolean, msg: SecretDirectoryMessage): SecretDirectoryMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SecretDirectoryMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SecretDirectoryMessage; - static deserializeBinaryFromReader(message: SecretDirectoryMessage, reader: jspb.BinaryReader): SecretDirectoryMessage; -} - -export namespace SecretDirectoryMessage { - export type AsObject = { - vault?: VaultMessage.AsObject, - secretDirectory: string, - } -} - -export class StatMessage extends jspb.Message { - getStats(): string; - setStats(value: string): StatMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StatMessage.AsObject; - static toObject(includeInstance: boolean, msg: StatMessage): StatMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: StatMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StatMessage; - static deserializeBinaryFromReader(message: StatMessage, reader: jspb.BinaryReader): StatMessage; -} - -export namespace StatMessage { - export type AsObject = { - stats: string, - } -} - -export class SetVaultPermMessage extends jspb.Message { - - hasVault(): boolean; - clearVault(): void; - getVault(): VaultMessage | undefined; - setVault(value?: VaultMessage): SetVaultPermMessage; - - hasNode(): boolean; - clearNode(): void; - getNode(): NodeMessage | undefined; - setNode(value?: NodeMessage): SetVaultPermMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SetVaultPermMessage.AsObject; - static toObject(includeInstance: boolean, msg: SetVaultPermMessage): SetVaultPermMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SetVaultPermMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SetVaultPermMessage; - static deserializeBinaryFromReader(message: SetVaultPermMessage, reader: jspb.BinaryReader): SetVaultPermMessage; -} - -export namespace SetVaultPermMessage { - export type AsObject = { - vault?: VaultMessage.AsObject, - node?: NodeMessage.AsObject, - } -} - -export class UnsetVaultPermMessage extends jspb.Message { - - hasVault(): boolean; - clearVault(): void; - getVault(): VaultMessage | undefined; - setVault(value?: VaultMessage): UnsetVaultPermMessage; - - hasNode(): boolean; - clearNode(): void; - getNode(): NodeMessage | undefined; - setNode(value?: NodeMessage): UnsetVaultPermMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UnsetVaultPermMessage.AsObject; - static toObject(includeInstance: boolean, msg: UnsetVaultPermMessage): UnsetVaultPermMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UnsetVaultPermMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UnsetVaultPermMessage; - static deserializeBinaryFromReader(message: UnsetVaultPermMessage, reader: jspb.BinaryReader): UnsetVaultPermMessage; -} - -export namespace UnsetVaultPermMessage { - export type AsObject = { - vault?: VaultMessage.AsObject, - node?: NodeMessage.AsObject, - } -} - -export class GetVaultPermMessage extends jspb.Message { - - hasVault(): boolean; - clearVault(): void; - getVault(): VaultMessage | undefined; - setVault(value?: VaultMessage): GetVaultPermMessage; - - hasNode(): boolean; - clearNode(): void; - getNode(): NodeMessage | undefined; - setNode(value?: NodeMessage): GetVaultPermMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetVaultPermMessage.AsObject; - static toObject(includeInstance: boolean, msg: GetVaultPermMessage): GetVaultPermMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetVaultPermMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetVaultPermMessage; - static deserializeBinaryFromReader(message: GetVaultPermMessage, reader: jspb.BinaryReader): GetVaultPermMessage; -} - -export namespace GetVaultPermMessage { - export type AsObject = { - vault?: VaultMessage.AsObject, - node?: NodeMessage.AsObject, - } -} - -export class PermissionMessage extends jspb.Message { - getNodeId(): string; - setNodeId(value: string): PermissionMessage; - getAction(): string; - setAction(value: string): PermissionMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PermissionMessage.AsObject; - static toObject(includeInstance: boolean, msg: PermissionMessage): PermissionMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PermissionMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PermissionMessage; - static deserializeBinaryFromReader(message: PermissionMessage, reader: jspb.BinaryReader): PermissionMessage; -} - -export namespace PermissionMessage { - export type AsObject = { - nodeId: string, - action: string, - } -} - -export class VaultsVersionMessage extends jspb.Message { - - hasVault(): boolean; - clearVault(): void; - getVault(): VaultMessage | undefined; - setVault(value?: VaultMessage): VaultsVersionMessage; - getVersionId(): string; - setVersionId(value: string): VaultsVersionMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VaultsVersionMessage.AsObject; - static toObject(includeInstance: boolean, msg: VaultsVersionMessage): VaultsVersionMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VaultsVersionMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VaultsVersionMessage; - static deserializeBinaryFromReader(message: VaultsVersionMessage, reader: jspb.BinaryReader): VaultsVersionMessage; -} - -export namespace VaultsVersionMessage { - export type AsObject = { - vault?: VaultMessage.AsObject, - versionId: string, - } -} - -export class VaultsVersionResultMessage extends jspb.Message { - getIsLatestVersion(): boolean; - setIsLatestVersion(value: boolean): VaultsVersionResultMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VaultsVersionResultMessage.AsObject; - static toObject(includeInstance: boolean, msg: VaultsVersionResultMessage): VaultsVersionResultMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VaultsVersionResultMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VaultsVersionResultMessage; - static deserializeBinaryFromReader(message: VaultsVersionResultMessage, reader: jspb.BinaryReader): VaultsVersionResultMessage; -} - -export namespace VaultsVersionResultMessage { - export type AsObject = { - isLatestVersion: boolean, - } -} - -export class VaultsLogMessage extends jspb.Message { - - hasVault(): boolean; - clearVault(): void; - getVault(): VaultMessage | undefined; - setVault(value?: VaultMessage): VaultsLogMessage; - getLogDepth(): number; - setLogDepth(value: number): VaultsLogMessage; - getCommitId(): string; - setCommitId(value: string): VaultsLogMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VaultsLogMessage.AsObject; - static toObject(includeInstance: boolean, msg: VaultsLogMessage): VaultsLogMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VaultsLogMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VaultsLogMessage; - static deserializeBinaryFromReader(message: VaultsLogMessage, reader: jspb.BinaryReader): VaultsLogMessage; -} - -export namespace VaultsLogMessage { - export type AsObject = { - vault?: VaultMessage.AsObject, - logDepth: number, - commitId: string, - } -} - -export class VaultsLogEntryMessage extends jspb.Message { - getOid(): string; - setOid(value: string): VaultsLogEntryMessage; - getCommitter(): string; - setCommitter(value: string): VaultsLogEntryMessage; - getTimeStamp(): number; - setTimeStamp(value: number): VaultsLogEntryMessage; - getMessage(): string; - setMessage(value: string): VaultsLogEntryMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VaultsLogEntryMessage.AsObject; - static toObject(includeInstance: boolean, msg: VaultsLogEntryMessage): VaultsLogEntryMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VaultsLogEntryMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VaultsLogEntryMessage; - static deserializeBinaryFromReader(message: VaultsLogEntryMessage, reader: jspb.BinaryReader): VaultsLogEntryMessage; -} - -export namespace VaultsLogEntryMessage { - export type AsObject = { - oid: string, - committer: string, - timeStamp: number, - message: string, - } -} - -export class NodeMessage extends jspb.Message { - getNodeId(): string; - setNodeId(value: string): NodeMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NodeMessage.AsObject; - static toObject(includeInstance: boolean, msg: NodeMessage): NodeMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NodeMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NodeMessage; - static deserializeBinaryFromReader(message: NodeMessage, reader: jspb.BinaryReader): NodeMessage; -} - -export namespace NodeMessage { - export type AsObject = { - nodeId: string, - } -} - -export class NodeAddressMessage extends jspb.Message { - getNodeId(): string; - setNodeId(value: string): NodeAddressMessage; - getHost(): string; - setHost(value: string): NodeAddressMessage; - getPort(): number; - setPort(value: number): NodeAddressMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NodeAddressMessage.AsObject; - static toObject(includeInstance: boolean, msg: NodeAddressMessage): NodeAddressMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NodeAddressMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NodeAddressMessage; - static deserializeBinaryFromReader(message: NodeAddressMessage, reader: jspb.BinaryReader): NodeAddressMessage; -} - -export namespace NodeAddressMessage { - export type AsObject = { - nodeId: string, - host: string, - port: number, - } -} - -export class NodeClaimMessage extends jspb.Message { - getNodeId(): string; - setNodeId(value: string): NodeClaimMessage; - getForceInvite(): boolean; - setForceInvite(value: boolean): NodeClaimMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NodeClaimMessage.AsObject; - static toObject(includeInstance: boolean, msg: NodeClaimMessage): NodeClaimMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NodeClaimMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NodeClaimMessage; - static deserializeBinaryFromReader(message: NodeClaimMessage, reader: jspb.BinaryReader): NodeClaimMessage; -} - -export namespace NodeClaimMessage { - export type AsObject = { - nodeId: string, - forceInvite: boolean, - } -} - -export class CryptoMessage extends jspb.Message { - getData(): string; - setData(value: string): CryptoMessage; - getSignature(): string; - setSignature(value: string): CryptoMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CryptoMessage.AsObject; - static toObject(includeInstance: boolean, msg: CryptoMessage): CryptoMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CryptoMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CryptoMessage; - static deserializeBinaryFromReader(message: CryptoMessage, reader: jspb.BinaryReader): CryptoMessage; -} - -export namespace CryptoMessage { - export type AsObject = { - data: string, - signature: string, - } -} - -export class KeyMessage extends jspb.Message { - getName(): string; - setName(value: string): KeyMessage; - getKey(): string; - setKey(value: string): KeyMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): KeyMessage.AsObject; - static toObject(includeInstance: boolean, msg: KeyMessage): KeyMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: KeyMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): KeyMessage; - static deserializeBinaryFromReader(message: KeyMessage, reader: jspb.BinaryReader): KeyMessage; -} - -export namespace KeyMessage { - export type AsObject = { - name: string, - key: string, - } -} - -export class KeyPairMessage extends jspb.Message { - getPublic(): string; - setPublic(value: string): KeyPairMessage; - getPrivate(): string; - setPrivate(value: string): KeyPairMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): KeyPairMessage.AsObject; - static toObject(includeInstance: boolean, msg: KeyPairMessage): KeyPairMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: KeyPairMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): KeyPairMessage; - static deserializeBinaryFromReader(message: KeyPairMessage, reader: jspb.BinaryReader): KeyPairMessage; -} - -export namespace KeyPairMessage { - export type AsObject = { - pb_public: string, - pb_private: string, - } -} - -export class CertificateMessage extends jspb.Message { - getCert(): string; - setCert(value: string): CertificateMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CertificateMessage.AsObject; - static toObject(includeInstance: boolean, msg: CertificateMessage): CertificateMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CertificateMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CertificateMessage; - static deserializeBinaryFromReader(message: CertificateMessage, reader: jspb.BinaryReader): CertificateMessage; -} - -export namespace CertificateMessage { - export type AsObject = { - cert: string, - } -} - -export class ProviderMessage extends jspb.Message { - getProviderId(): string; - setProviderId(value: string): ProviderMessage; - getMessage(): string; - setMessage(value: string): ProviderMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProviderMessage.AsObject; - static toObject(includeInstance: boolean, msg: ProviderMessage): ProviderMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ProviderMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProviderMessage; - static deserializeBinaryFromReader(message: ProviderMessage, reader: jspb.BinaryReader): ProviderMessage; -} - -export namespace ProviderMessage { - export type AsObject = { - providerId: string, - message: string, - } -} - -export class TokenSpecificMessage extends jspb.Message { - - hasProvider(): boolean; - clearProvider(): void; - getProvider(): ProviderMessage | undefined; - setProvider(value?: ProviderMessage): TokenSpecificMessage; - getToken(): string; - setToken(value: string): TokenSpecificMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TokenSpecificMessage.AsObject; - static toObject(includeInstance: boolean, msg: TokenSpecificMessage): TokenSpecificMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TokenSpecificMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TokenSpecificMessage; - static deserializeBinaryFromReader(message: TokenSpecificMessage, reader: jspb.BinaryReader): TokenSpecificMessage; -} - -export namespace TokenSpecificMessage { - export type AsObject = { - provider?: ProviderMessage.AsObject, - token: string, - } -} - -export class TokenMessage extends jspb.Message { - getToken(): string; - setToken(value: string): TokenMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TokenMessage.AsObject; - static toObject(includeInstance: boolean, msg: TokenMessage): TokenMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TokenMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TokenMessage; - static deserializeBinaryFromReader(message: TokenMessage, reader: jspb.BinaryReader): TokenMessage; -} - -export namespace TokenMessage { - export type AsObject = { - token: string, - } -} - -export class ProviderSearchMessage extends jspb.Message { - - hasProvider(): boolean; - clearProvider(): void; - getProvider(): ProviderMessage | undefined; - setProvider(value?: ProviderMessage): ProviderSearchMessage; - clearSearchTermList(): void; - getSearchTermList(): Array; - setSearchTermList(value: Array): ProviderSearchMessage; - addSearchTerm(value: string, index?: number): string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProviderSearchMessage.AsObject; - static toObject(includeInstance: boolean, msg: ProviderSearchMessage): ProviderSearchMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ProviderSearchMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProviderSearchMessage; - static deserializeBinaryFromReader(message: ProviderSearchMessage, reader: jspb.BinaryReader): ProviderSearchMessage; -} - -export namespace ProviderSearchMessage { - export type AsObject = { - provider?: ProviderMessage.AsObject, - searchTermList: Array, - } -} - -export class IdentityInfoMessage extends jspb.Message { - - hasProvider(): boolean; - clearProvider(): void; - getProvider(): ProviderMessage | undefined; - setProvider(value?: ProviderMessage): IdentityInfoMessage; - getName(): string; - setName(value: string): IdentityInfoMessage; - getEmail(): string; - setEmail(value: string): IdentityInfoMessage; - getUrl(): string; - setUrl(value: string): IdentityInfoMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): IdentityInfoMessage.AsObject; - static toObject(includeInstance: boolean, msg: IdentityInfoMessage): IdentityInfoMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: IdentityInfoMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): IdentityInfoMessage; - static deserializeBinaryFromReader(message: IdentityInfoMessage, reader: jspb.BinaryReader): IdentityInfoMessage; -} - -export namespace IdentityInfoMessage { - export type AsObject = { - provider?: ProviderMessage.AsObject, - name: string, - email: string, - url: string, - } -} - -export class GestaltMessage extends jspb.Message { - getName(): string; - setName(value: string): GestaltMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GestaltMessage.AsObject; - static toObject(includeInstance: boolean, msg: GestaltMessage): GestaltMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GestaltMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GestaltMessage; - static deserializeBinaryFromReader(message: GestaltMessage, reader: jspb.BinaryReader): GestaltMessage; -} - -export namespace GestaltMessage { - export type AsObject = { - name: string, - } -} - -export class GestaltGraphMessage extends jspb.Message { - getGestaltGraph(): string; - setGestaltGraph(value: string): GestaltGraphMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GestaltGraphMessage.AsObject; - static toObject(includeInstance: boolean, msg: GestaltGraphMessage): GestaltGraphMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GestaltGraphMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GestaltGraphMessage; - static deserializeBinaryFromReader(message: GestaltGraphMessage, reader: jspb.BinaryReader): GestaltGraphMessage; -} - -export namespace GestaltGraphMessage { - export type AsObject = { - gestaltGraph: string, - } -} - -export class GestaltTrustMessage extends jspb.Message { - getProvider(): string; - setProvider(value: string): GestaltTrustMessage; - getName(): string; - setName(value: string): GestaltTrustMessage; - getSet(): boolean; - setSet(value: boolean): GestaltTrustMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GestaltTrustMessage.AsObject; - static toObject(includeInstance: boolean, msg: GestaltTrustMessage): GestaltTrustMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GestaltTrustMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GestaltTrustMessage; - static deserializeBinaryFromReader(message: GestaltTrustMessage, reader: jspb.BinaryReader): GestaltTrustMessage; -} - -export namespace GestaltTrustMessage { - export type AsObject = { - provider: string, - name: string, - set: boolean, - } -} - -export class ActionsMessage extends jspb.Message { - clearActionList(): void; - getActionList(): Array; - setActionList(value: Array): ActionsMessage; - addAction(value: string, index?: number): string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ActionsMessage.AsObject; - static toObject(includeInstance: boolean, msg: ActionsMessage): ActionsMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ActionsMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ActionsMessage; - static deserializeBinaryFromReader(message: ActionsMessage, reader: jspb.BinaryReader): ActionsMessage; -} - -export namespace ActionsMessage { - export type AsObject = { - actionList: Array, - } -} - -export class SetActionsMessage extends jspb.Message { - - hasNode(): boolean; - clearNode(): void; - getNode(): NodeMessage | undefined; - setNode(value?: NodeMessage): SetActionsMessage; - - hasIdentity(): boolean; - clearIdentity(): void; - getIdentity(): ProviderMessage | undefined; - setIdentity(value?: ProviderMessage): SetActionsMessage; - getAction(): string; - setAction(value: string): SetActionsMessage; - - getNodeOrProviderCase(): SetActionsMessage.NodeOrProviderCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SetActionsMessage.AsObject; - static toObject(includeInstance: boolean, msg: SetActionsMessage): SetActionsMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SetActionsMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SetActionsMessage; - static deserializeBinaryFromReader(message: SetActionsMessage, reader: jspb.BinaryReader): SetActionsMessage; -} - -export namespace SetActionsMessage { - export type AsObject = { - node?: NodeMessage.AsObject, - identity?: ProviderMessage.AsObject, - action: string, - } - - export enum NodeOrProviderCase { - NODE_OR_PROVIDER_NOT_SET = 0, - NODE = 1, - IDENTITY = 2, - } - -} - -export class NotificationsMessage extends jspb.Message { - - hasGeneral(): boolean; - clearGeneral(): void; - getGeneral(): GeneralTypeMessage | undefined; - setGeneral(value?: GeneralTypeMessage): NotificationsMessage; - - hasGestaltInvite(): boolean; - clearGestaltInvite(): void; - getGestaltInvite(): string; - setGestaltInvite(value: string): NotificationsMessage; - - hasVaultShare(): boolean; - clearVaultShare(): void; - getVaultShare(): VaultShareTypeMessage | undefined; - setVaultShare(value?: VaultShareTypeMessage): NotificationsMessage; - getSenderId(): string; - setSenderId(value: string): NotificationsMessage; - getIsRead(): boolean; - setIsRead(value: boolean): NotificationsMessage; - - getDataCase(): NotificationsMessage.DataCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NotificationsMessage.AsObject; - static toObject(includeInstance: boolean, msg: NotificationsMessage): NotificationsMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NotificationsMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NotificationsMessage; - static deserializeBinaryFromReader(message: NotificationsMessage, reader: jspb.BinaryReader): NotificationsMessage; -} - -export namespace NotificationsMessage { - export type AsObject = { - general?: GeneralTypeMessage.AsObject, - gestaltInvite: string, - vaultShare?: VaultShareTypeMessage.AsObject, - senderId: string, - isRead: boolean, - } - - export enum DataCase { - DATA_NOT_SET = 0, - GENERAL = 1, - GESTALT_INVITE = 2, - VAULT_SHARE = 3, - } - -} - -export class NotificationsSendMessage extends jspb.Message { - getReceiverId(): string; - setReceiverId(value: string): NotificationsSendMessage; - - hasData(): boolean; - clearData(): void; - getData(): GeneralTypeMessage | undefined; - setData(value?: GeneralTypeMessage): NotificationsSendMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NotificationsSendMessage.AsObject; - static toObject(includeInstance: boolean, msg: NotificationsSendMessage): NotificationsSendMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NotificationsSendMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NotificationsSendMessage; - static deserializeBinaryFromReader(message: NotificationsSendMessage, reader: jspb.BinaryReader): NotificationsSendMessage; -} - -export namespace NotificationsSendMessage { - export type AsObject = { - receiverId: string, - data?: GeneralTypeMessage.AsObject, - } -} - -export class NotificationsReadMessage extends jspb.Message { - getUnread(): boolean; - setUnread(value: boolean): NotificationsReadMessage; - getNumber(): string; - setNumber(value: string): NotificationsReadMessage; - getOrder(): string; - setOrder(value: string): NotificationsReadMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NotificationsReadMessage.AsObject; - static toObject(includeInstance: boolean, msg: NotificationsReadMessage): NotificationsReadMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NotificationsReadMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NotificationsReadMessage; - static deserializeBinaryFromReader(message: NotificationsReadMessage, reader: jspb.BinaryReader): NotificationsReadMessage; -} - -export namespace NotificationsReadMessage { - export type AsObject = { - unread: boolean, - number: string, - order: string, - } -} - -export class NotificationsListMessage extends jspb.Message { - clearNotificationList(): void; - getNotificationList(): Array; - setNotificationList(value: Array): NotificationsListMessage; - addNotification(value?: NotificationsMessage, index?: number): NotificationsMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NotificationsListMessage.AsObject; - static toObject(includeInstance: boolean, msg: NotificationsListMessage): NotificationsListMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NotificationsListMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NotificationsListMessage; - static deserializeBinaryFromReader(message: NotificationsListMessage, reader: jspb.BinaryReader): NotificationsListMessage; -} - -export namespace NotificationsListMessage { - export type AsObject = { - notificationList: Array, - } -} - -export class GeneralTypeMessage extends jspb.Message { - getMessage(): string; - setMessage(value: string): GeneralTypeMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GeneralTypeMessage.AsObject; - static toObject(includeInstance: boolean, msg: GeneralTypeMessage): GeneralTypeMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GeneralTypeMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GeneralTypeMessage; - static deserializeBinaryFromReader(message: GeneralTypeMessage, reader: jspb.BinaryReader): GeneralTypeMessage; -} - -export namespace GeneralTypeMessage { - export type AsObject = { - message: string, - } -} - -export class VaultShareTypeMessage extends jspb.Message { - getVaultId(): string; - setVaultId(value: string): VaultShareTypeMessage; - getVaultName(): string; - setVaultName(value: string): VaultShareTypeMessage; - clearActionsList(): void; - getActionsList(): Array; - setActionsList(value: Array): VaultShareTypeMessage; - addActions(value: string, index?: number): string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VaultShareTypeMessage.AsObject; - static toObject(includeInstance: boolean, msg: VaultShareTypeMessage): VaultShareTypeMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VaultShareTypeMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VaultShareTypeMessage; - static deserializeBinaryFromReader(message: VaultShareTypeMessage, reader: jspb.BinaryReader): VaultShareTypeMessage; -} - -export namespace VaultShareTypeMessage { - export type AsObject = { - vaultId: string, - vaultName: string, - actionsList: Array, - } -} diff --git a/src/proto/js/Client_pb.js b/src/proto/js/Client_pb.js deleted file mode 100644 index 9fee504139..0000000000 --- a/src/proto/js/Client_pb.js +++ /dev/null @@ -1,9204 +0,0 @@ -// source: Client.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.clientInterface.ActionsMessage', null, global); -goog.exportSymbol('proto.clientInterface.CertificateMessage', null, global); -goog.exportSymbol('proto.clientInterface.CryptoMessage', null, global); -goog.exportSymbol('proto.clientInterface.EchoMessage', null, global); -goog.exportSymbol('proto.clientInterface.EmptyMessage', null, global); -goog.exportSymbol('proto.clientInterface.GeneralTypeMessage', null, global); -goog.exportSymbol('proto.clientInterface.GestaltGraphMessage', null, global); -goog.exportSymbol('proto.clientInterface.GestaltMessage', null, global); -goog.exportSymbol('proto.clientInterface.GestaltTrustMessage', null, global); -goog.exportSymbol('proto.clientInterface.GetVaultPermMessage', null, global); -goog.exportSymbol('proto.clientInterface.IdentityInfoMessage', null, global); -goog.exportSymbol('proto.clientInterface.KeyMessage', null, global); -goog.exportSymbol('proto.clientInterface.KeyPairMessage', null, global); -goog.exportSymbol('proto.clientInterface.NodeAddressMessage', null, global); -goog.exportSymbol('proto.clientInterface.NodeClaimMessage', null, global); -goog.exportSymbol('proto.clientInterface.NodeMessage', null, global); -goog.exportSymbol('proto.clientInterface.NotificationsListMessage', null, global); -goog.exportSymbol('proto.clientInterface.NotificationsMessage', null, global); -goog.exportSymbol('proto.clientInterface.NotificationsMessage.DataCase', null, global); -goog.exportSymbol('proto.clientInterface.NotificationsReadMessage', null, global); -goog.exportSymbol('proto.clientInterface.NotificationsSendMessage', null, global); -goog.exportSymbol('proto.clientInterface.PasswordMessage', null, global); -goog.exportSymbol('proto.clientInterface.PasswordMessage.PasswordOrFileCase', null, global); -goog.exportSymbol('proto.clientInterface.PermissionMessage', null, global); -goog.exportSymbol('proto.clientInterface.ProviderMessage', null, global); -goog.exportSymbol('proto.clientInterface.ProviderSearchMessage', null, global); -goog.exportSymbol('proto.clientInterface.SecretDirectoryMessage', null, global); -goog.exportSymbol('proto.clientInterface.SecretMessage', null, global); -goog.exportSymbol('proto.clientInterface.SecretRenameMessage', null, global); -goog.exportSymbol('proto.clientInterface.SessionTokenMessage', null, global); -goog.exportSymbol('proto.clientInterface.SetActionsMessage', null, global); -goog.exportSymbol('proto.clientInterface.SetActionsMessage.NodeOrProviderCase', null, global); -goog.exportSymbol('proto.clientInterface.SetVaultPermMessage', null, global); -goog.exportSymbol('proto.clientInterface.StatMessage', null, global); -goog.exportSymbol('proto.clientInterface.StatusMessage', null, global); -goog.exportSymbol('proto.clientInterface.TokenMessage', null, global); -goog.exportSymbol('proto.clientInterface.TokenSpecificMessage', null, global); -goog.exportSymbol('proto.clientInterface.UnsetVaultPermMessage', null, global); -goog.exportSymbol('proto.clientInterface.VaultCloneMessage', null, global); -goog.exportSymbol('proto.clientInterface.VaultListMessage', null, global); -goog.exportSymbol('proto.clientInterface.VaultMessage', null, global); -goog.exportSymbol('proto.clientInterface.VaultMkdirMessage', null, global); -goog.exportSymbol('proto.clientInterface.VaultPullMessage', null, global); -goog.exportSymbol('proto.clientInterface.VaultRenameMessage', null, global); -goog.exportSymbol('proto.clientInterface.VaultShareTypeMessage', null, global); -goog.exportSymbol('proto.clientInterface.VaultsLogEntryMessage', null, global); -goog.exportSymbol('proto.clientInterface.VaultsLogMessage', null, global); -goog.exportSymbol('proto.clientInterface.VaultsVersionMessage', null, global); -goog.exportSymbol('proto.clientInterface.VaultsVersionResultMessage', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.EmptyMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.EmptyMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.EmptyMessage.displayName = 'proto.clientInterface.EmptyMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.StatusMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.StatusMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.StatusMessage.displayName = 'proto.clientInterface.StatusMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.EchoMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.EchoMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.EchoMessage.displayName = 'proto.clientInterface.EchoMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.PasswordMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clientInterface.PasswordMessage.oneofGroups_); -}; -goog.inherits(proto.clientInterface.PasswordMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.PasswordMessage.displayName = 'proto.clientInterface.PasswordMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.SessionTokenMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.SessionTokenMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.SessionTokenMessage.displayName = 'proto.clientInterface.SessionTokenMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.VaultListMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.VaultListMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.VaultListMessage.displayName = 'proto.clientInterface.VaultListMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.VaultMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.VaultMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.VaultMessage.displayName = 'proto.clientInterface.VaultMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.VaultRenameMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.VaultRenameMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.VaultRenameMessage.displayName = 'proto.clientInterface.VaultRenameMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.VaultMkdirMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.VaultMkdirMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.VaultMkdirMessage.displayName = 'proto.clientInterface.VaultMkdirMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.VaultPullMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.VaultPullMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.VaultPullMessage.displayName = 'proto.clientInterface.VaultPullMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.VaultCloneMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.VaultCloneMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.VaultCloneMessage.displayName = 'proto.clientInterface.VaultCloneMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.SecretRenameMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.SecretRenameMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.SecretRenameMessage.displayName = 'proto.clientInterface.SecretRenameMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.SecretMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.SecretMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.SecretMessage.displayName = 'proto.clientInterface.SecretMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.SecretDirectoryMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.SecretDirectoryMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.SecretDirectoryMessage.displayName = 'proto.clientInterface.SecretDirectoryMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.StatMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.StatMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.StatMessage.displayName = 'proto.clientInterface.StatMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.SetVaultPermMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.SetVaultPermMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.SetVaultPermMessage.displayName = 'proto.clientInterface.SetVaultPermMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.UnsetVaultPermMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.UnsetVaultPermMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.UnsetVaultPermMessage.displayName = 'proto.clientInterface.UnsetVaultPermMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.GetVaultPermMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.GetVaultPermMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.GetVaultPermMessage.displayName = 'proto.clientInterface.GetVaultPermMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.PermissionMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.PermissionMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.PermissionMessage.displayName = 'proto.clientInterface.PermissionMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.VaultsVersionMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.VaultsVersionMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.VaultsVersionMessage.displayName = 'proto.clientInterface.VaultsVersionMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.VaultsVersionResultMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.VaultsVersionResultMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.VaultsVersionResultMessage.displayName = 'proto.clientInterface.VaultsVersionResultMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.VaultsLogMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.VaultsLogMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.VaultsLogMessage.displayName = 'proto.clientInterface.VaultsLogMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.VaultsLogEntryMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.VaultsLogEntryMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.VaultsLogEntryMessage.displayName = 'proto.clientInterface.VaultsLogEntryMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.NodeMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.NodeMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.NodeMessage.displayName = 'proto.clientInterface.NodeMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.NodeAddressMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.NodeAddressMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.NodeAddressMessage.displayName = 'proto.clientInterface.NodeAddressMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.NodeClaimMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.NodeClaimMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.NodeClaimMessage.displayName = 'proto.clientInterface.NodeClaimMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.CryptoMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.CryptoMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.CryptoMessage.displayName = 'proto.clientInterface.CryptoMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.KeyMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.KeyMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.KeyMessage.displayName = 'proto.clientInterface.KeyMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.KeyPairMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.KeyPairMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.KeyPairMessage.displayName = 'proto.clientInterface.KeyPairMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.CertificateMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.CertificateMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.CertificateMessage.displayName = 'proto.clientInterface.CertificateMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.ProviderMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.ProviderMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.ProviderMessage.displayName = 'proto.clientInterface.ProviderMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.TokenSpecificMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.TokenSpecificMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.TokenSpecificMessage.displayName = 'proto.clientInterface.TokenSpecificMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.TokenMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.TokenMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.TokenMessage.displayName = 'proto.clientInterface.TokenMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.ProviderSearchMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clientInterface.ProviderSearchMessage.repeatedFields_, null); -}; -goog.inherits(proto.clientInterface.ProviderSearchMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.ProviderSearchMessage.displayName = 'proto.clientInterface.ProviderSearchMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.IdentityInfoMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.IdentityInfoMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.IdentityInfoMessage.displayName = 'proto.clientInterface.IdentityInfoMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.GestaltMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.GestaltMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.GestaltMessage.displayName = 'proto.clientInterface.GestaltMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.GestaltGraphMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.GestaltGraphMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.GestaltGraphMessage.displayName = 'proto.clientInterface.GestaltGraphMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.GestaltTrustMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.GestaltTrustMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.GestaltTrustMessage.displayName = 'proto.clientInterface.GestaltTrustMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.ActionsMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clientInterface.ActionsMessage.repeatedFields_, null); -}; -goog.inherits(proto.clientInterface.ActionsMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.ActionsMessage.displayName = 'proto.clientInterface.ActionsMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.SetActionsMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clientInterface.SetActionsMessage.oneofGroups_); -}; -goog.inherits(proto.clientInterface.SetActionsMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.SetActionsMessage.displayName = 'proto.clientInterface.SetActionsMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.NotificationsMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clientInterface.NotificationsMessage.oneofGroups_); -}; -goog.inherits(proto.clientInterface.NotificationsMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.NotificationsMessage.displayName = 'proto.clientInterface.NotificationsMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.NotificationsSendMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.NotificationsSendMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.NotificationsSendMessage.displayName = 'proto.clientInterface.NotificationsSendMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.NotificationsReadMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.NotificationsReadMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.NotificationsReadMessage.displayName = 'proto.clientInterface.NotificationsReadMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.NotificationsListMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clientInterface.NotificationsListMessage.repeatedFields_, null); -}; -goog.inherits(proto.clientInterface.NotificationsListMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.NotificationsListMessage.displayName = 'proto.clientInterface.NotificationsListMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.GeneralTypeMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientInterface.GeneralTypeMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.GeneralTypeMessage.displayName = 'proto.clientInterface.GeneralTypeMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientInterface.VaultShareTypeMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clientInterface.VaultShareTypeMessage.repeatedFields_, null); -}; -goog.inherits(proto.clientInterface.VaultShareTypeMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientInterface.VaultShareTypeMessage.displayName = 'proto.clientInterface.VaultShareTypeMessage'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.EmptyMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.EmptyMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.EmptyMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.EmptyMessage.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.EmptyMessage} - */ -proto.clientInterface.EmptyMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.EmptyMessage; - return proto.clientInterface.EmptyMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.EmptyMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.EmptyMessage} - */ -proto.clientInterface.EmptyMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.EmptyMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.EmptyMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.EmptyMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.EmptyMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.StatusMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.StatusMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.StatusMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.StatusMessage.toObject = function(includeInstance, msg) { - var f, obj = { - success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.StatusMessage} - */ -proto.clientInterface.StatusMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.StatusMessage; - return proto.clientInterface.StatusMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.StatusMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.StatusMessage} - */ -proto.clientInterface.StatusMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.StatusMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.StatusMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.StatusMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.StatusMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSuccess(); - if (f) { - writer.writeBool( - 1, - f - ); - } -}; - - -/** - * optional bool success = 1; - * @return {boolean} - */ -proto.clientInterface.StatusMessage.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientInterface.StatusMessage} returns this - */ -proto.clientInterface.StatusMessage.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.EchoMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.EchoMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.EchoMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.EchoMessage.toObject = function(includeInstance, msg) { - var f, obj = { - challenge: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.EchoMessage} - */ -proto.clientInterface.EchoMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.EchoMessage; - return proto.clientInterface.EchoMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.EchoMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.EchoMessage} - */ -proto.clientInterface.EchoMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setChallenge(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.EchoMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.EchoMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.EchoMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.EchoMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getChallenge(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string challenge = 1; - * @return {string} - */ -proto.clientInterface.EchoMessage.prototype.getChallenge = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.EchoMessage} returns this - */ -proto.clientInterface.EchoMessage.prototype.setChallenge = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.clientInterface.PasswordMessage.oneofGroups_ = [[1,2]]; - -/** - * @enum {number} - */ -proto.clientInterface.PasswordMessage.PasswordOrFileCase = { - PASSWORD_OR_FILE_NOT_SET: 0, - PASSWORD: 1, - PASSWORD_FILE: 2 -}; - -/** - * @return {proto.clientInterface.PasswordMessage.PasswordOrFileCase} - */ -proto.clientInterface.PasswordMessage.prototype.getPasswordOrFileCase = function() { - return /** @type {proto.clientInterface.PasswordMessage.PasswordOrFileCase} */(jspb.Message.computeOneofCase(this, proto.clientInterface.PasswordMessage.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.PasswordMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.PasswordMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.PasswordMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.PasswordMessage.toObject = function(includeInstance, msg) { - var f, obj = { - password: jspb.Message.getFieldWithDefault(msg, 1, ""), - passwordFile: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.PasswordMessage} - */ -proto.clientInterface.PasswordMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.PasswordMessage; - return proto.clientInterface.PasswordMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.PasswordMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.PasswordMessage} - */ -proto.clientInterface.PasswordMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPassword(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPasswordFile(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.PasswordMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.PasswordMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.PasswordMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.PasswordMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {string} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeString( - 1, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string password = 1; - * @return {string} - */ -proto.clientInterface.PasswordMessage.prototype.getPassword = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.PasswordMessage} returns this - */ -proto.clientInterface.PasswordMessage.prototype.setPassword = function(value) { - return jspb.Message.setOneofField(this, 1, proto.clientInterface.PasswordMessage.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.clientInterface.PasswordMessage} returns this - */ -proto.clientInterface.PasswordMessage.prototype.clearPassword = function() { - return jspb.Message.setOneofField(this, 1, proto.clientInterface.PasswordMessage.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.PasswordMessage.prototype.hasPassword = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string password_file = 2; - * @return {string} - */ -proto.clientInterface.PasswordMessage.prototype.getPasswordFile = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.PasswordMessage} returns this - */ -proto.clientInterface.PasswordMessage.prototype.setPasswordFile = function(value) { - return jspb.Message.setOneofField(this, 2, proto.clientInterface.PasswordMessage.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.clientInterface.PasswordMessage} returns this - */ -proto.clientInterface.PasswordMessage.prototype.clearPasswordFile = function() { - return jspb.Message.setOneofField(this, 2, proto.clientInterface.PasswordMessage.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.PasswordMessage.prototype.hasPasswordFile = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.SessionTokenMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.SessionTokenMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.SessionTokenMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.SessionTokenMessage.toObject = function(includeInstance, msg) { - var f, obj = { - token: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.SessionTokenMessage} - */ -proto.clientInterface.SessionTokenMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.SessionTokenMessage; - return proto.clientInterface.SessionTokenMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.SessionTokenMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.SessionTokenMessage} - */ -proto.clientInterface.SessionTokenMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setToken(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.SessionTokenMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.SessionTokenMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.SessionTokenMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.SessionTokenMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getToken(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string token = 1; - * @return {string} - */ -proto.clientInterface.SessionTokenMessage.prototype.getToken = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.SessionTokenMessage} returns this - */ -proto.clientInterface.SessionTokenMessage.prototype.setToken = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.VaultListMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.VaultListMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.VaultListMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.VaultListMessage.toObject = function(includeInstance, msg) { - var f, obj = { - vaultName: jspb.Message.getFieldWithDefault(msg, 1, ""), - vaultId: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.VaultListMessage} - */ -proto.clientInterface.VaultListMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.VaultListMessage; - return proto.clientInterface.VaultListMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.VaultListMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.VaultListMessage} - */ -proto.clientInterface.VaultListMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setVaultName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setVaultId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.VaultListMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.VaultListMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.VaultListMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.VaultListMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVaultName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getVaultId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string vault_name = 1; - * @return {string} - */ -proto.clientInterface.VaultListMessage.prototype.getVaultName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.VaultListMessage} returns this - */ -proto.clientInterface.VaultListMessage.prototype.setVaultName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string vault_id = 2; - * @return {string} - */ -proto.clientInterface.VaultListMessage.prototype.getVaultId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.VaultListMessage} returns this - */ -proto.clientInterface.VaultListMessage.prototype.setVaultId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.VaultMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.VaultMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.VaultMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.VaultMessage.toObject = function(includeInstance, msg) { - var f, obj = { - nameOrId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.VaultMessage} - */ -proto.clientInterface.VaultMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.VaultMessage; - return proto.clientInterface.VaultMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.VaultMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.VaultMessage} - */ -proto.clientInterface.VaultMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setNameOrId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.VaultMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.VaultMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.VaultMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.VaultMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNameOrId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string name_or_Id = 1; - * @return {string} - */ -proto.clientInterface.VaultMessage.prototype.getNameOrId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.VaultMessage} returns this - */ -proto.clientInterface.VaultMessage.prototype.setNameOrId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.VaultRenameMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.VaultRenameMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.VaultRenameMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.VaultRenameMessage.toObject = function(includeInstance, msg) { - var f, obj = { - vault: (f = msg.getVault()) && proto.clientInterface.VaultMessage.toObject(includeInstance, f), - newName: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.VaultRenameMessage} - */ -proto.clientInterface.VaultRenameMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.VaultRenameMessage; - return proto.clientInterface.VaultRenameMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.VaultRenameMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.VaultRenameMessage} - */ -proto.clientInterface.VaultRenameMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clientInterface.VaultMessage; - reader.readMessage(value,proto.clientInterface.VaultMessage.deserializeBinaryFromReader); - msg.setVault(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setNewName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.VaultRenameMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.VaultRenameMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.VaultRenameMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.VaultRenameMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVault(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.clientInterface.VaultMessage.serializeBinaryToWriter - ); - } - f = message.getNewName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional VaultMessage vault = 1; - * @return {?proto.clientInterface.VaultMessage} - */ -proto.clientInterface.VaultRenameMessage.prototype.getVault = function() { - return /** @type{?proto.clientInterface.VaultMessage} */ ( - jspb.Message.getWrapperField(this, proto.clientInterface.VaultMessage, 1)); -}; - - -/** - * @param {?proto.clientInterface.VaultMessage|undefined} value - * @return {!proto.clientInterface.VaultRenameMessage} returns this -*/ -proto.clientInterface.VaultRenameMessage.prototype.setVault = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientInterface.VaultRenameMessage} returns this - */ -proto.clientInterface.VaultRenameMessage.prototype.clearVault = function() { - return this.setVault(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.VaultRenameMessage.prototype.hasVault = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string new_name = 2; - * @return {string} - */ -proto.clientInterface.VaultRenameMessage.prototype.getNewName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.VaultRenameMessage} returns this - */ -proto.clientInterface.VaultRenameMessage.prototype.setNewName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.VaultMkdirMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.VaultMkdirMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.VaultMkdirMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.VaultMkdirMessage.toObject = function(includeInstance, msg) { - var f, obj = { - vault: (f = msg.getVault()) && proto.clientInterface.VaultMessage.toObject(includeInstance, f), - dirName: jspb.Message.getFieldWithDefault(msg, 2, ""), - recursive: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.VaultMkdirMessage} - */ -proto.clientInterface.VaultMkdirMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.VaultMkdirMessage; - return proto.clientInterface.VaultMkdirMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.VaultMkdirMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.VaultMkdirMessage} - */ -proto.clientInterface.VaultMkdirMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clientInterface.VaultMessage; - reader.readMessage(value,proto.clientInterface.VaultMessage.deserializeBinaryFromReader); - msg.setVault(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDirName(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setRecursive(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.VaultMkdirMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.VaultMkdirMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.VaultMkdirMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.VaultMkdirMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVault(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.clientInterface.VaultMessage.serializeBinaryToWriter - ); - } - f = message.getDirName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getRecursive(); - if (f) { - writer.writeBool( - 3, - f - ); - } -}; - - -/** - * optional VaultMessage vault = 1; - * @return {?proto.clientInterface.VaultMessage} - */ -proto.clientInterface.VaultMkdirMessage.prototype.getVault = function() { - return /** @type{?proto.clientInterface.VaultMessage} */ ( - jspb.Message.getWrapperField(this, proto.clientInterface.VaultMessage, 1)); -}; - - -/** - * @param {?proto.clientInterface.VaultMessage|undefined} value - * @return {!proto.clientInterface.VaultMkdirMessage} returns this -*/ -proto.clientInterface.VaultMkdirMessage.prototype.setVault = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientInterface.VaultMkdirMessage} returns this - */ -proto.clientInterface.VaultMkdirMessage.prototype.clearVault = function() { - return this.setVault(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.VaultMkdirMessage.prototype.hasVault = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string dir_name = 2; - * @return {string} - */ -proto.clientInterface.VaultMkdirMessage.prototype.getDirName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.VaultMkdirMessage} returns this - */ -proto.clientInterface.VaultMkdirMessage.prototype.setDirName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool recursive = 3; - * @return {boolean} - */ -proto.clientInterface.VaultMkdirMessage.prototype.getRecursive = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientInterface.VaultMkdirMessage} returns this - */ -proto.clientInterface.VaultMkdirMessage.prototype.setRecursive = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.VaultPullMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.VaultPullMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.VaultPullMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.VaultPullMessage.toObject = function(includeInstance, msg) { - var f, obj = { - vault: (f = msg.getVault()) && proto.clientInterface.VaultMessage.toObject(includeInstance, f), - node: (f = msg.getNode()) && proto.clientInterface.NodeMessage.toObject(includeInstance, f), - pullVault: (f = msg.getPullVault()) && proto.clientInterface.VaultMessage.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.VaultPullMessage} - */ -proto.clientInterface.VaultPullMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.VaultPullMessage; - return proto.clientInterface.VaultPullMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.VaultPullMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.VaultPullMessage} - */ -proto.clientInterface.VaultPullMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clientInterface.VaultMessage; - reader.readMessage(value,proto.clientInterface.VaultMessage.deserializeBinaryFromReader); - msg.setVault(value); - break; - case 2: - var value = new proto.clientInterface.NodeMessage; - reader.readMessage(value,proto.clientInterface.NodeMessage.deserializeBinaryFromReader); - msg.setNode(value); - break; - case 3: - var value = new proto.clientInterface.VaultMessage; - reader.readMessage(value,proto.clientInterface.VaultMessage.deserializeBinaryFromReader); - msg.setPullVault(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.VaultPullMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.VaultPullMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.VaultPullMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.VaultPullMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVault(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.clientInterface.VaultMessage.serializeBinaryToWriter - ); - } - f = message.getNode(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.clientInterface.NodeMessage.serializeBinaryToWriter - ); - } - f = message.getPullVault(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.clientInterface.VaultMessage.serializeBinaryToWriter - ); - } -}; - - -/** - * optional VaultMessage vault = 1; - * @return {?proto.clientInterface.VaultMessage} - */ -proto.clientInterface.VaultPullMessage.prototype.getVault = function() { - return /** @type{?proto.clientInterface.VaultMessage} */ ( - jspb.Message.getWrapperField(this, proto.clientInterface.VaultMessage, 1)); -}; - - -/** - * @param {?proto.clientInterface.VaultMessage|undefined} value - * @return {!proto.clientInterface.VaultPullMessage} returns this -*/ -proto.clientInterface.VaultPullMessage.prototype.setVault = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientInterface.VaultPullMessage} returns this - */ -proto.clientInterface.VaultPullMessage.prototype.clearVault = function() { - return this.setVault(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.VaultPullMessage.prototype.hasVault = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional NodeMessage node = 2; - * @return {?proto.clientInterface.NodeMessage} - */ -proto.clientInterface.VaultPullMessage.prototype.getNode = function() { - return /** @type{?proto.clientInterface.NodeMessage} */ ( - jspb.Message.getWrapperField(this, proto.clientInterface.NodeMessage, 2)); -}; - - -/** - * @param {?proto.clientInterface.NodeMessage|undefined} value - * @return {!proto.clientInterface.VaultPullMessage} returns this -*/ -proto.clientInterface.VaultPullMessage.prototype.setNode = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientInterface.VaultPullMessage} returns this - */ -proto.clientInterface.VaultPullMessage.prototype.clearNode = function() { - return this.setNode(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.VaultPullMessage.prototype.hasNode = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional VaultMessage pull_vault = 3; - * @return {?proto.clientInterface.VaultMessage} - */ -proto.clientInterface.VaultPullMessage.prototype.getPullVault = function() { - return /** @type{?proto.clientInterface.VaultMessage} */ ( - jspb.Message.getWrapperField(this, proto.clientInterface.VaultMessage, 3)); -}; - - -/** - * @param {?proto.clientInterface.VaultMessage|undefined} value - * @return {!proto.clientInterface.VaultPullMessage} returns this -*/ -proto.clientInterface.VaultPullMessage.prototype.setPullVault = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientInterface.VaultPullMessage} returns this - */ -proto.clientInterface.VaultPullMessage.prototype.clearPullVault = function() { - return this.setPullVault(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.VaultPullMessage.prototype.hasPullVault = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.VaultCloneMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.VaultCloneMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.VaultCloneMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.VaultCloneMessage.toObject = function(includeInstance, msg) { - var f, obj = { - vault: (f = msg.getVault()) && proto.clientInterface.VaultMessage.toObject(includeInstance, f), - node: (f = msg.getNode()) && proto.clientInterface.NodeMessage.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.VaultCloneMessage} - */ -proto.clientInterface.VaultCloneMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.VaultCloneMessage; - return proto.clientInterface.VaultCloneMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.VaultCloneMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.VaultCloneMessage} - */ -proto.clientInterface.VaultCloneMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clientInterface.VaultMessage; - reader.readMessage(value,proto.clientInterface.VaultMessage.deserializeBinaryFromReader); - msg.setVault(value); - break; - case 2: - var value = new proto.clientInterface.NodeMessage; - reader.readMessage(value,proto.clientInterface.NodeMessage.deserializeBinaryFromReader); - msg.setNode(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.VaultCloneMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.VaultCloneMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.VaultCloneMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.VaultCloneMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVault(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.clientInterface.VaultMessage.serializeBinaryToWriter - ); - } - f = message.getNode(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.clientInterface.NodeMessage.serializeBinaryToWriter - ); - } -}; - - -/** - * optional VaultMessage vault = 1; - * @return {?proto.clientInterface.VaultMessage} - */ -proto.clientInterface.VaultCloneMessage.prototype.getVault = function() { - return /** @type{?proto.clientInterface.VaultMessage} */ ( - jspb.Message.getWrapperField(this, proto.clientInterface.VaultMessage, 1)); -}; - - -/** - * @param {?proto.clientInterface.VaultMessage|undefined} value - * @return {!proto.clientInterface.VaultCloneMessage} returns this -*/ -proto.clientInterface.VaultCloneMessage.prototype.setVault = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientInterface.VaultCloneMessage} returns this - */ -proto.clientInterface.VaultCloneMessage.prototype.clearVault = function() { - return this.setVault(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.VaultCloneMessage.prototype.hasVault = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional NodeMessage node = 2; - * @return {?proto.clientInterface.NodeMessage} - */ -proto.clientInterface.VaultCloneMessage.prototype.getNode = function() { - return /** @type{?proto.clientInterface.NodeMessage} */ ( - jspb.Message.getWrapperField(this, proto.clientInterface.NodeMessage, 2)); -}; - - -/** - * @param {?proto.clientInterface.NodeMessage|undefined} value - * @return {!proto.clientInterface.VaultCloneMessage} returns this -*/ -proto.clientInterface.VaultCloneMessage.prototype.setNode = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientInterface.VaultCloneMessage} returns this - */ -proto.clientInterface.VaultCloneMessage.prototype.clearNode = function() { - return this.setNode(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.VaultCloneMessage.prototype.hasNode = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.SecretRenameMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.SecretRenameMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.SecretRenameMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.SecretRenameMessage.toObject = function(includeInstance, msg) { - var f, obj = { - oldSecret: (f = msg.getOldSecret()) && proto.clientInterface.SecretMessage.toObject(includeInstance, f), - newName: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.SecretRenameMessage} - */ -proto.clientInterface.SecretRenameMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.SecretRenameMessage; - return proto.clientInterface.SecretRenameMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.SecretRenameMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.SecretRenameMessage} - */ -proto.clientInterface.SecretRenameMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clientInterface.SecretMessage; - reader.readMessage(value,proto.clientInterface.SecretMessage.deserializeBinaryFromReader); - msg.setOldSecret(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setNewName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.SecretRenameMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.SecretRenameMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.SecretRenameMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.SecretRenameMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOldSecret(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.clientInterface.SecretMessage.serializeBinaryToWriter - ); - } - f = message.getNewName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional SecretMessage old_secret = 1; - * @return {?proto.clientInterface.SecretMessage} - */ -proto.clientInterface.SecretRenameMessage.prototype.getOldSecret = function() { - return /** @type{?proto.clientInterface.SecretMessage} */ ( - jspb.Message.getWrapperField(this, proto.clientInterface.SecretMessage, 1)); -}; - - -/** - * @param {?proto.clientInterface.SecretMessage|undefined} value - * @return {!proto.clientInterface.SecretRenameMessage} returns this -*/ -proto.clientInterface.SecretRenameMessage.prototype.setOldSecret = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientInterface.SecretRenameMessage} returns this - */ -proto.clientInterface.SecretRenameMessage.prototype.clearOldSecret = function() { - return this.setOldSecret(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.SecretRenameMessage.prototype.hasOldSecret = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string new_name = 2; - * @return {string} - */ -proto.clientInterface.SecretRenameMessage.prototype.getNewName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.SecretRenameMessage} returns this - */ -proto.clientInterface.SecretRenameMessage.prototype.setNewName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.SecretMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.SecretMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.SecretMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.SecretMessage.toObject = function(includeInstance, msg) { - var f, obj = { - vault: (f = msg.getVault()) && proto.clientInterface.VaultMessage.toObject(includeInstance, f), - secretName: jspb.Message.getFieldWithDefault(msg, 2, ""), - secretContent: msg.getSecretContent_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.SecretMessage} - */ -proto.clientInterface.SecretMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.SecretMessage; - return proto.clientInterface.SecretMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.SecretMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.SecretMessage} - */ -proto.clientInterface.SecretMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clientInterface.VaultMessage; - reader.readMessage(value,proto.clientInterface.VaultMessage.deserializeBinaryFromReader); - msg.setVault(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setSecretName(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSecretContent(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.SecretMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.SecretMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.SecretMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.SecretMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVault(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.clientInterface.VaultMessage.serializeBinaryToWriter - ); - } - f = message.getSecretName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getSecretContent_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } -}; - - -/** - * optional VaultMessage vault = 1; - * @return {?proto.clientInterface.VaultMessage} - */ -proto.clientInterface.SecretMessage.prototype.getVault = function() { - return /** @type{?proto.clientInterface.VaultMessage} */ ( - jspb.Message.getWrapperField(this, proto.clientInterface.VaultMessage, 1)); -}; - - -/** - * @param {?proto.clientInterface.VaultMessage|undefined} value - * @return {!proto.clientInterface.SecretMessage} returns this -*/ -proto.clientInterface.SecretMessage.prototype.setVault = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientInterface.SecretMessage} returns this - */ -proto.clientInterface.SecretMessage.prototype.clearVault = function() { - return this.setVault(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.SecretMessage.prototype.hasVault = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string secret_name = 2; - * @return {string} - */ -proto.clientInterface.SecretMessage.prototype.getSecretName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.SecretMessage} returns this - */ -proto.clientInterface.SecretMessage.prototype.setSecretName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bytes secret_content = 3; - * @return {!(string|Uint8Array)} - */ -proto.clientInterface.SecretMessage.prototype.getSecretContent = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes secret_content = 3; - * This is a type-conversion wrapper around `getSecretContent()` - * @return {string} - */ -proto.clientInterface.SecretMessage.prototype.getSecretContent_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSecretContent())); -}; - - -/** - * optional bytes secret_content = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSecretContent()` - * @return {!Uint8Array} - */ -proto.clientInterface.SecretMessage.prototype.getSecretContent_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSecretContent())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.clientInterface.SecretMessage} returns this - */ -proto.clientInterface.SecretMessage.prototype.setSecretContent = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.SecretDirectoryMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.SecretDirectoryMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.SecretDirectoryMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.SecretDirectoryMessage.toObject = function(includeInstance, msg) { - var f, obj = { - vault: (f = msg.getVault()) && proto.clientInterface.VaultMessage.toObject(includeInstance, f), - secretDirectory: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.SecretDirectoryMessage} - */ -proto.clientInterface.SecretDirectoryMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.SecretDirectoryMessage; - return proto.clientInterface.SecretDirectoryMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.SecretDirectoryMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.SecretDirectoryMessage} - */ -proto.clientInterface.SecretDirectoryMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clientInterface.VaultMessage; - reader.readMessage(value,proto.clientInterface.VaultMessage.deserializeBinaryFromReader); - msg.setVault(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setSecretDirectory(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.SecretDirectoryMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.SecretDirectoryMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.SecretDirectoryMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.SecretDirectoryMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVault(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.clientInterface.VaultMessage.serializeBinaryToWriter - ); - } - f = message.getSecretDirectory(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional VaultMessage vault = 1; - * @return {?proto.clientInterface.VaultMessage} - */ -proto.clientInterface.SecretDirectoryMessage.prototype.getVault = function() { - return /** @type{?proto.clientInterface.VaultMessage} */ ( - jspb.Message.getWrapperField(this, proto.clientInterface.VaultMessage, 1)); -}; - - -/** - * @param {?proto.clientInterface.VaultMessage|undefined} value - * @return {!proto.clientInterface.SecretDirectoryMessage} returns this -*/ -proto.clientInterface.SecretDirectoryMessage.prototype.setVault = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientInterface.SecretDirectoryMessage} returns this - */ -proto.clientInterface.SecretDirectoryMessage.prototype.clearVault = function() { - return this.setVault(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.SecretDirectoryMessage.prototype.hasVault = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string secret_directory = 2; - * @return {string} - */ -proto.clientInterface.SecretDirectoryMessage.prototype.getSecretDirectory = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.SecretDirectoryMessage} returns this - */ -proto.clientInterface.SecretDirectoryMessage.prototype.setSecretDirectory = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.StatMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.StatMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.StatMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.StatMessage.toObject = function(includeInstance, msg) { - var f, obj = { - stats: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.StatMessage} - */ -proto.clientInterface.StatMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.StatMessage; - return proto.clientInterface.StatMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.StatMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.StatMessage} - */ -proto.clientInterface.StatMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setStats(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.StatMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.StatMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.StatMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.StatMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStats(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string stats = 1; - * @return {string} - */ -proto.clientInterface.StatMessage.prototype.getStats = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.StatMessage} returns this - */ -proto.clientInterface.StatMessage.prototype.setStats = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.SetVaultPermMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.SetVaultPermMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.SetVaultPermMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.SetVaultPermMessage.toObject = function(includeInstance, msg) { - var f, obj = { - vault: (f = msg.getVault()) && proto.clientInterface.VaultMessage.toObject(includeInstance, f), - node: (f = msg.getNode()) && proto.clientInterface.NodeMessage.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.SetVaultPermMessage} - */ -proto.clientInterface.SetVaultPermMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.SetVaultPermMessage; - return proto.clientInterface.SetVaultPermMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.SetVaultPermMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.SetVaultPermMessage} - */ -proto.clientInterface.SetVaultPermMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clientInterface.VaultMessage; - reader.readMessage(value,proto.clientInterface.VaultMessage.deserializeBinaryFromReader); - msg.setVault(value); - break; - case 2: - var value = new proto.clientInterface.NodeMessage; - reader.readMessage(value,proto.clientInterface.NodeMessage.deserializeBinaryFromReader); - msg.setNode(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.SetVaultPermMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.SetVaultPermMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.SetVaultPermMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.SetVaultPermMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVault(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.clientInterface.VaultMessage.serializeBinaryToWriter - ); - } - f = message.getNode(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.clientInterface.NodeMessage.serializeBinaryToWriter - ); - } -}; - - -/** - * optional VaultMessage vault = 1; - * @return {?proto.clientInterface.VaultMessage} - */ -proto.clientInterface.SetVaultPermMessage.prototype.getVault = function() { - return /** @type{?proto.clientInterface.VaultMessage} */ ( - jspb.Message.getWrapperField(this, proto.clientInterface.VaultMessage, 1)); -}; - - -/** - * @param {?proto.clientInterface.VaultMessage|undefined} value - * @return {!proto.clientInterface.SetVaultPermMessage} returns this -*/ -proto.clientInterface.SetVaultPermMessage.prototype.setVault = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientInterface.SetVaultPermMessage} returns this - */ -proto.clientInterface.SetVaultPermMessage.prototype.clearVault = function() { - return this.setVault(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.SetVaultPermMessage.prototype.hasVault = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional NodeMessage node = 2; - * @return {?proto.clientInterface.NodeMessage} - */ -proto.clientInterface.SetVaultPermMessage.prototype.getNode = function() { - return /** @type{?proto.clientInterface.NodeMessage} */ ( - jspb.Message.getWrapperField(this, proto.clientInterface.NodeMessage, 2)); -}; - - -/** - * @param {?proto.clientInterface.NodeMessage|undefined} value - * @return {!proto.clientInterface.SetVaultPermMessage} returns this -*/ -proto.clientInterface.SetVaultPermMessage.prototype.setNode = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientInterface.SetVaultPermMessage} returns this - */ -proto.clientInterface.SetVaultPermMessage.prototype.clearNode = function() { - return this.setNode(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.SetVaultPermMessage.prototype.hasNode = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.UnsetVaultPermMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.UnsetVaultPermMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.UnsetVaultPermMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.UnsetVaultPermMessage.toObject = function(includeInstance, msg) { - var f, obj = { - vault: (f = msg.getVault()) && proto.clientInterface.VaultMessage.toObject(includeInstance, f), - node: (f = msg.getNode()) && proto.clientInterface.NodeMessage.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.UnsetVaultPermMessage} - */ -proto.clientInterface.UnsetVaultPermMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.UnsetVaultPermMessage; - return proto.clientInterface.UnsetVaultPermMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.UnsetVaultPermMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.UnsetVaultPermMessage} - */ -proto.clientInterface.UnsetVaultPermMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clientInterface.VaultMessage; - reader.readMessage(value,proto.clientInterface.VaultMessage.deserializeBinaryFromReader); - msg.setVault(value); - break; - case 2: - var value = new proto.clientInterface.NodeMessage; - reader.readMessage(value,proto.clientInterface.NodeMessage.deserializeBinaryFromReader); - msg.setNode(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.UnsetVaultPermMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.UnsetVaultPermMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.UnsetVaultPermMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.UnsetVaultPermMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVault(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.clientInterface.VaultMessage.serializeBinaryToWriter - ); - } - f = message.getNode(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.clientInterface.NodeMessage.serializeBinaryToWriter - ); - } -}; - - -/** - * optional VaultMessage vault = 1; - * @return {?proto.clientInterface.VaultMessage} - */ -proto.clientInterface.UnsetVaultPermMessage.prototype.getVault = function() { - return /** @type{?proto.clientInterface.VaultMessage} */ ( - jspb.Message.getWrapperField(this, proto.clientInterface.VaultMessage, 1)); -}; - - -/** - * @param {?proto.clientInterface.VaultMessage|undefined} value - * @return {!proto.clientInterface.UnsetVaultPermMessage} returns this -*/ -proto.clientInterface.UnsetVaultPermMessage.prototype.setVault = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientInterface.UnsetVaultPermMessage} returns this - */ -proto.clientInterface.UnsetVaultPermMessage.prototype.clearVault = function() { - return this.setVault(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.UnsetVaultPermMessage.prototype.hasVault = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional NodeMessage node = 2; - * @return {?proto.clientInterface.NodeMessage} - */ -proto.clientInterface.UnsetVaultPermMessage.prototype.getNode = function() { - return /** @type{?proto.clientInterface.NodeMessage} */ ( - jspb.Message.getWrapperField(this, proto.clientInterface.NodeMessage, 2)); -}; - - -/** - * @param {?proto.clientInterface.NodeMessage|undefined} value - * @return {!proto.clientInterface.UnsetVaultPermMessage} returns this -*/ -proto.clientInterface.UnsetVaultPermMessage.prototype.setNode = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientInterface.UnsetVaultPermMessage} returns this - */ -proto.clientInterface.UnsetVaultPermMessage.prototype.clearNode = function() { - return this.setNode(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.UnsetVaultPermMessage.prototype.hasNode = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.GetVaultPermMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.GetVaultPermMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.GetVaultPermMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.GetVaultPermMessage.toObject = function(includeInstance, msg) { - var f, obj = { - vault: (f = msg.getVault()) && proto.clientInterface.VaultMessage.toObject(includeInstance, f), - node: (f = msg.getNode()) && proto.clientInterface.NodeMessage.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.GetVaultPermMessage} - */ -proto.clientInterface.GetVaultPermMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.GetVaultPermMessage; - return proto.clientInterface.GetVaultPermMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.GetVaultPermMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.GetVaultPermMessage} - */ -proto.clientInterface.GetVaultPermMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clientInterface.VaultMessage; - reader.readMessage(value,proto.clientInterface.VaultMessage.deserializeBinaryFromReader); - msg.setVault(value); - break; - case 2: - var value = new proto.clientInterface.NodeMessage; - reader.readMessage(value,proto.clientInterface.NodeMessage.deserializeBinaryFromReader); - msg.setNode(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.GetVaultPermMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.GetVaultPermMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.GetVaultPermMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.GetVaultPermMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVault(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.clientInterface.VaultMessage.serializeBinaryToWriter - ); - } - f = message.getNode(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.clientInterface.NodeMessage.serializeBinaryToWriter - ); - } -}; - - -/** - * optional VaultMessage vault = 1; - * @return {?proto.clientInterface.VaultMessage} - */ -proto.clientInterface.GetVaultPermMessage.prototype.getVault = function() { - return /** @type{?proto.clientInterface.VaultMessage} */ ( - jspb.Message.getWrapperField(this, proto.clientInterface.VaultMessage, 1)); -}; - - -/** - * @param {?proto.clientInterface.VaultMessage|undefined} value - * @return {!proto.clientInterface.GetVaultPermMessage} returns this -*/ -proto.clientInterface.GetVaultPermMessage.prototype.setVault = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientInterface.GetVaultPermMessage} returns this - */ -proto.clientInterface.GetVaultPermMessage.prototype.clearVault = function() { - return this.setVault(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.GetVaultPermMessage.prototype.hasVault = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional NodeMessage node = 2; - * @return {?proto.clientInterface.NodeMessage} - */ -proto.clientInterface.GetVaultPermMessage.prototype.getNode = function() { - return /** @type{?proto.clientInterface.NodeMessage} */ ( - jspb.Message.getWrapperField(this, proto.clientInterface.NodeMessage, 2)); -}; - - -/** - * @param {?proto.clientInterface.NodeMessage|undefined} value - * @return {!proto.clientInterface.GetVaultPermMessage} returns this -*/ -proto.clientInterface.GetVaultPermMessage.prototype.setNode = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientInterface.GetVaultPermMessage} returns this - */ -proto.clientInterface.GetVaultPermMessage.prototype.clearNode = function() { - return this.setNode(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.GetVaultPermMessage.prototype.hasNode = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.PermissionMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.PermissionMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.PermissionMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.PermissionMessage.toObject = function(includeInstance, msg) { - var f, obj = { - nodeId: jspb.Message.getFieldWithDefault(msg, 1, ""), - action: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.PermissionMessage} - */ -proto.clientInterface.PermissionMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.PermissionMessage; - return proto.clientInterface.PermissionMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.PermissionMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.PermissionMessage} - */ -proto.clientInterface.PermissionMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setNodeId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setAction(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.PermissionMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.PermissionMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.PermissionMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.PermissionMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNodeId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getAction(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string node_id = 1; - * @return {string} - */ -proto.clientInterface.PermissionMessage.prototype.getNodeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.PermissionMessage} returns this - */ -proto.clientInterface.PermissionMessage.prototype.setNodeId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string action = 2; - * @return {string} - */ -proto.clientInterface.PermissionMessage.prototype.getAction = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.PermissionMessage} returns this - */ -proto.clientInterface.PermissionMessage.prototype.setAction = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.VaultsVersionMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.VaultsVersionMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.VaultsVersionMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.VaultsVersionMessage.toObject = function(includeInstance, msg) { - var f, obj = { - vault: (f = msg.getVault()) && proto.clientInterface.VaultMessage.toObject(includeInstance, f), - versionId: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.VaultsVersionMessage} - */ -proto.clientInterface.VaultsVersionMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.VaultsVersionMessage; - return proto.clientInterface.VaultsVersionMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.VaultsVersionMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.VaultsVersionMessage} - */ -proto.clientInterface.VaultsVersionMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clientInterface.VaultMessage; - reader.readMessage(value,proto.clientInterface.VaultMessage.deserializeBinaryFromReader); - msg.setVault(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setVersionId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.VaultsVersionMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.VaultsVersionMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.VaultsVersionMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.VaultsVersionMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVault(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.clientInterface.VaultMessage.serializeBinaryToWriter - ); - } - f = message.getVersionId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional VaultMessage vault = 1; - * @return {?proto.clientInterface.VaultMessage} - */ -proto.clientInterface.VaultsVersionMessage.prototype.getVault = function() { - return /** @type{?proto.clientInterface.VaultMessage} */ ( - jspb.Message.getWrapperField(this, proto.clientInterface.VaultMessage, 1)); -}; - - -/** - * @param {?proto.clientInterface.VaultMessage|undefined} value - * @return {!proto.clientInterface.VaultsVersionMessage} returns this -*/ -proto.clientInterface.VaultsVersionMessage.prototype.setVault = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientInterface.VaultsVersionMessage} returns this - */ -proto.clientInterface.VaultsVersionMessage.prototype.clearVault = function() { - return this.setVault(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.VaultsVersionMessage.prototype.hasVault = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string version_id = 2; - * @return {string} - */ -proto.clientInterface.VaultsVersionMessage.prototype.getVersionId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.VaultsVersionMessage} returns this - */ -proto.clientInterface.VaultsVersionMessage.prototype.setVersionId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.VaultsVersionResultMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.VaultsVersionResultMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.VaultsVersionResultMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.VaultsVersionResultMessage.toObject = function(includeInstance, msg) { - var f, obj = { - isLatestVersion: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.VaultsVersionResultMessage} - */ -proto.clientInterface.VaultsVersionResultMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.VaultsVersionResultMessage; - return proto.clientInterface.VaultsVersionResultMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.VaultsVersionResultMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.VaultsVersionResultMessage} - */ -proto.clientInterface.VaultsVersionResultMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsLatestVersion(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.VaultsVersionResultMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.VaultsVersionResultMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.VaultsVersionResultMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.VaultsVersionResultMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIsLatestVersion(); - if (f) { - writer.writeBool( - 1, - f - ); - } -}; - - -/** - * optional bool is_latest_version = 1; - * @return {boolean} - */ -proto.clientInterface.VaultsVersionResultMessage.prototype.getIsLatestVersion = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientInterface.VaultsVersionResultMessage} returns this - */ -proto.clientInterface.VaultsVersionResultMessage.prototype.setIsLatestVersion = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.VaultsLogMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.VaultsLogMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.VaultsLogMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.VaultsLogMessage.toObject = function(includeInstance, msg) { - var f, obj = { - vault: (f = msg.getVault()) && proto.clientInterface.VaultMessage.toObject(includeInstance, f), - logDepth: jspb.Message.getFieldWithDefault(msg, 3, 0), - commitId: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.VaultsLogMessage} - */ -proto.clientInterface.VaultsLogMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.VaultsLogMessage; - return proto.clientInterface.VaultsLogMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.VaultsLogMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.VaultsLogMessage} - */ -proto.clientInterface.VaultsLogMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clientInterface.VaultMessage; - reader.readMessage(value,proto.clientInterface.VaultMessage.deserializeBinaryFromReader); - msg.setVault(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setLogDepth(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setCommitId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.VaultsLogMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.VaultsLogMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.VaultsLogMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.VaultsLogMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVault(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.clientInterface.VaultMessage.serializeBinaryToWriter - ); - } - f = message.getLogDepth(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } - f = message.getCommitId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional VaultMessage vault = 1; - * @return {?proto.clientInterface.VaultMessage} - */ -proto.clientInterface.VaultsLogMessage.prototype.getVault = function() { - return /** @type{?proto.clientInterface.VaultMessage} */ ( - jspb.Message.getWrapperField(this, proto.clientInterface.VaultMessage, 1)); -}; - - -/** - * @param {?proto.clientInterface.VaultMessage|undefined} value - * @return {!proto.clientInterface.VaultsLogMessage} returns this -*/ -proto.clientInterface.VaultsLogMessage.prototype.setVault = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientInterface.VaultsLogMessage} returns this - */ -proto.clientInterface.VaultsLogMessage.prototype.clearVault = function() { - return this.setVault(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.VaultsLogMessage.prototype.hasVault = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional int32 log_depth = 3; - * @return {number} - */ -proto.clientInterface.VaultsLogMessage.prototype.getLogDepth = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientInterface.VaultsLogMessage} returns this - */ -proto.clientInterface.VaultsLogMessage.prototype.setLogDepth = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional string commit_id = 4; - * @return {string} - */ -proto.clientInterface.VaultsLogMessage.prototype.getCommitId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.VaultsLogMessage} returns this - */ -proto.clientInterface.VaultsLogMessage.prototype.setCommitId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.VaultsLogEntryMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.VaultsLogEntryMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.VaultsLogEntryMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.VaultsLogEntryMessage.toObject = function(includeInstance, msg) { - var f, obj = { - oid: jspb.Message.getFieldWithDefault(msg, 1, ""), - committer: jspb.Message.getFieldWithDefault(msg, 2, ""), - timeStamp: jspb.Message.getFieldWithDefault(msg, 4, 0), - message: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.VaultsLogEntryMessage} - */ -proto.clientInterface.VaultsLogEntryMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.VaultsLogEntryMessage; - return proto.clientInterface.VaultsLogEntryMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.VaultsLogEntryMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.VaultsLogEntryMessage} - */ -proto.clientInterface.VaultsLogEntryMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setOid(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setCommitter(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTimeStamp(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setMessage(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.VaultsLogEntryMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.VaultsLogEntryMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.VaultsLogEntryMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.VaultsLogEntryMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOid(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCommitter(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getTimeStamp(); - if (f !== 0) { - writer.writeUint64( - 4, - f - ); - } - f = message.getMessage(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string oid = 1; - * @return {string} - */ -proto.clientInterface.VaultsLogEntryMessage.prototype.getOid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.VaultsLogEntryMessage} returns this - */ -proto.clientInterface.VaultsLogEntryMessage.prototype.setOid = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string committer = 2; - * @return {string} - */ -proto.clientInterface.VaultsLogEntryMessage.prototype.getCommitter = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.VaultsLogEntryMessage} returns this - */ -proto.clientInterface.VaultsLogEntryMessage.prototype.setCommitter = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint64 time_stamp = 4; - * @return {number} - */ -proto.clientInterface.VaultsLogEntryMessage.prototype.getTimeStamp = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientInterface.VaultsLogEntryMessage} returns this - */ -proto.clientInterface.VaultsLogEntryMessage.prototype.setTimeStamp = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional string message = 3; - * @return {string} - */ -proto.clientInterface.VaultsLogEntryMessage.prototype.getMessage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.VaultsLogEntryMessage} returns this - */ -proto.clientInterface.VaultsLogEntryMessage.prototype.setMessage = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.NodeMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.NodeMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.NodeMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.NodeMessage.toObject = function(includeInstance, msg) { - var f, obj = { - nodeId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.NodeMessage} - */ -proto.clientInterface.NodeMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.NodeMessage; - return proto.clientInterface.NodeMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.NodeMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.NodeMessage} - */ -proto.clientInterface.NodeMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setNodeId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.NodeMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.NodeMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.NodeMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.NodeMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNodeId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string node_id = 1; - * @return {string} - */ -proto.clientInterface.NodeMessage.prototype.getNodeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.NodeMessage} returns this - */ -proto.clientInterface.NodeMessage.prototype.setNodeId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.NodeAddressMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.NodeAddressMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.NodeAddressMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.NodeAddressMessage.toObject = function(includeInstance, msg) { - var f, obj = { - nodeId: jspb.Message.getFieldWithDefault(msg, 1, ""), - host: jspb.Message.getFieldWithDefault(msg, 2, ""), - port: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.NodeAddressMessage} - */ -proto.clientInterface.NodeAddressMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.NodeAddressMessage; - return proto.clientInterface.NodeAddressMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.NodeAddressMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.NodeAddressMessage} - */ -proto.clientInterface.NodeAddressMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setNodeId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setHost(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setPort(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.NodeAddressMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.NodeAddressMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.NodeAddressMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.NodeAddressMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNodeId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getHost(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getPort(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } -}; - - -/** - * optional string node_id = 1; - * @return {string} - */ -proto.clientInterface.NodeAddressMessage.prototype.getNodeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.NodeAddressMessage} returns this - */ -proto.clientInterface.NodeAddressMessage.prototype.setNodeId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string host = 2; - * @return {string} - */ -proto.clientInterface.NodeAddressMessage.prototype.getHost = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.NodeAddressMessage} returns this - */ -proto.clientInterface.NodeAddressMessage.prototype.setHost = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional int32 port = 3; - * @return {number} - */ -proto.clientInterface.NodeAddressMessage.prototype.getPort = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientInterface.NodeAddressMessage} returns this - */ -proto.clientInterface.NodeAddressMessage.prototype.setPort = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.NodeClaimMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.NodeClaimMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.NodeClaimMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.NodeClaimMessage.toObject = function(includeInstance, msg) { - var f, obj = { - nodeId: jspb.Message.getFieldWithDefault(msg, 1, ""), - forceInvite: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.NodeClaimMessage} - */ -proto.clientInterface.NodeClaimMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.NodeClaimMessage; - return proto.clientInterface.NodeClaimMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.NodeClaimMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.NodeClaimMessage} - */ -proto.clientInterface.NodeClaimMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setNodeId(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setForceInvite(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.NodeClaimMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.NodeClaimMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.NodeClaimMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.NodeClaimMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNodeId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getForceInvite(); - if (f) { - writer.writeBool( - 2, - f - ); - } -}; - - -/** - * optional string node_id = 1; - * @return {string} - */ -proto.clientInterface.NodeClaimMessage.prototype.getNodeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.NodeClaimMessage} returns this - */ -proto.clientInterface.NodeClaimMessage.prototype.setNodeId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bool force_invite = 2; - * @return {boolean} - */ -proto.clientInterface.NodeClaimMessage.prototype.getForceInvite = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientInterface.NodeClaimMessage} returns this - */ -proto.clientInterface.NodeClaimMessage.prototype.setForceInvite = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.CryptoMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.CryptoMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.CryptoMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.CryptoMessage.toObject = function(includeInstance, msg) { - var f, obj = { - data: jspb.Message.getFieldWithDefault(msg, 1, ""), - signature: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.CryptoMessage} - */ -proto.clientInterface.CryptoMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.CryptoMessage; - return proto.clientInterface.CryptoMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.CryptoMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.CryptoMessage} - */ -proto.clientInterface.CryptoMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setData(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setSignature(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.CryptoMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.CryptoMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.CryptoMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.CryptoMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getData(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSignature(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string data = 1; - * @return {string} - */ -proto.clientInterface.CryptoMessage.prototype.getData = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.CryptoMessage} returns this - */ -proto.clientInterface.CryptoMessage.prototype.setData = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string signature = 2; - * @return {string} - */ -proto.clientInterface.CryptoMessage.prototype.getSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.CryptoMessage} returns this - */ -proto.clientInterface.CryptoMessage.prototype.setSignature = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.KeyMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.KeyMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.KeyMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.KeyMessage.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - key: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.KeyMessage} - */ -proto.clientInterface.KeyMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.KeyMessage; - return proto.clientInterface.KeyMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.KeyMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.KeyMessage} - */ -proto.clientInterface.KeyMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.KeyMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.KeyMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.KeyMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.KeyMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getKey(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.clientInterface.KeyMessage.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.KeyMessage} returns this - */ -proto.clientInterface.KeyMessage.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string key = 2; - * @return {string} - */ -proto.clientInterface.KeyMessage.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.KeyMessage} returns this - */ -proto.clientInterface.KeyMessage.prototype.setKey = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.KeyPairMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.KeyPairMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.KeyPairMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.KeyPairMessage.toObject = function(includeInstance, msg) { - var f, obj = { - pb_public: jspb.Message.getFieldWithDefault(msg, 1, ""), - pb_private: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.KeyPairMessage} - */ -proto.clientInterface.KeyPairMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.KeyPairMessage; - return proto.clientInterface.KeyPairMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.KeyPairMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.KeyPairMessage} - */ -proto.clientInterface.KeyPairMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPublic(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPrivate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.KeyPairMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.KeyPairMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.KeyPairMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.KeyPairMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPublic(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPrivate(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string public = 1; - * @return {string} - */ -proto.clientInterface.KeyPairMessage.prototype.getPublic = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.KeyPairMessage} returns this - */ -proto.clientInterface.KeyPairMessage.prototype.setPublic = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string private = 2; - * @return {string} - */ -proto.clientInterface.KeyPairMessage.prototype.getPrivate = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.KeyPairMessage} returns this - */ -proto.clientInterface.KeyPairMessage.prototype.setPrivate = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.CertificateMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.CertificateMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.CertificateMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.CertificateMessage.toObject = function(includeInstance, msg) { - var f, obj = { - cert: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.CertificateMessage} - */ -proto.clientInterface.CertificateMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.CertificateMessage; - return proto.clientInterface.CertificateMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.CertificateMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.CertificateMessage} - */ -proto.clientInterface.CertificateMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setCert(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.CertificateMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.CertificateMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.CertificateMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.CertificateMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCert(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string cert = 1; - * @return {string} - */ -proto.clientInterface.CertificateMessage.prototype.getCert = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.CertificateMessage} returns this - */ -proto.clientInterface.CertificateMessage.prototype.setCert = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.ProviderMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.ProviderMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.ProviderMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.ProviderMessage.toObject = function(includeInstance, msg) { - var f, obj = { - providerId: jspb.Message.getFieldWithDefault(msg, 1, ""), - message: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.ProviderMessage} - */ -proto.clientInterface.ProviderMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.ProviderMessage; - return proto.clientInterface.ProviderMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.ProviderMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.ProviderMessage} - */ -proto.clientInterface.ProviderMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProviderId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setMessage(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.ProviderMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.ProviderMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.ProviderMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.ProviderMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProviderId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMessage(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string provider_id = 1; - * @return {string} - */ -proto.clientInterface.ProviderMessage.prototype.getProviderId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.ProviderMessage} returns this - */ -proto.clientInterface.ProviderMessage.prototype.setProviderId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string message = 2; - * @return {string} - */ -proto.clientInterface.ProviderMessage.prototype.getMessage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.ProviderMessage} returns this - */ -proto.clientInterface.ProviderMessage.prototype.setMessage = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.TokenSpecificMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.TokenSpecificMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.TokenSpecificMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.TokenSpecificMessage.toObject = function(includeInstance, msg) { - var f, obj = { - provider: (f = msg.getProvider()) && proto.clientInterface.ProviderMessage.toObject(includeInstance, f), - token: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.TokenSpecificMessage} - */ -proto.clientInterface.TokenSpecificMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.TokenSpecificMessage; - return proto.clientInterface.TokenSpecificMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.TokenSpecificMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.TokenSpecificMessage} - */ -proto.clientInterface.TokenSpecificMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clientInterface.ProviderMessage; - reader.readMessage(value,proto.clientInterface.ProviderMessage.deserializeBinaryFromReader); - msg.setProvider(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setToken(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.TokenSpecificMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.TokenSpecificMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.TokenSpecificMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.TokenSpecificMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProvider(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.clientInterface.ProviderMessage.serializeBinaryToWriter - ); - } - f = message.getToken(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional ProviderMessage provider = 1; - * @return {?proto.clientInterface.ProviderMessage} - */ -proto.clientInterface.TokenSpecificMessage.prototype.getProvider = function() { - return /** @type{?proto.clientInterface.ProviderMessage} */ ( - jspb.Message.getWrapperField(this, proto.clientInterface.ProviderMessage, 1)); -}; - - -/** - * @param {?proto.clientInterface.ProviderMessage|undefined} value - * @return {!proto.clientInterface.TokenSpecificMessage} returns this -*/ -proto.clientInterface.TokenSpecificMessage.prototype.setProvider = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientInterface.TokenSpecificMessage} returns this - */ -proto.clientInterface.TokenSpecificMessage.prototype.clearProvider = function() { - return this.setProvider(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.TokenSpecificMessage.prototype.hasProvider = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string token = 2; - * @return {string} - */ -proto.clientInterface.TokenSpecificMessage.prototype.getToken = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.TokenSpecificMessage} returns this - */ -proto.clientInterface.TokenSpecificMessage.prototype.setToken = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.TokenMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.TokenMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.TokenMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.TokenMessage.toObject = function(includeInstance, msg) { - var f, obj = { - token: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.TokenMessage} - */ -proto.clientInterface.TokenMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.TokenMessage; - return proto.clientInterface.TokenMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.TokenMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.TokenMessage} - */ -proto.clientInterface.TokenMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setToken(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.TokenMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.TokenMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.TokenMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.TokenMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getToken(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string token = 1; - * @return {string} - */ -proto.clientInterface.TokenMessage.prototype.getToken = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.TokenMessage} returns this - */ -proto.clientInterface.TokenMessage.prototype.setToken = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clientInterface.ProviderSearchMessage.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.ProviderSearchMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.ProviderSearchMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.ProviderSearchMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.ProviderSearchMessage.toObject = function(includeInstance, msg) { - var f, obj = { - provider: (f = msg.getProvider()) && proto.clientInterface.ProviderMessage.toObject(includeInstance, f), - searchTermList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.ProviderSearchMessage} - */ -proto.clientInterface.ProviderSearchMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.ProviderSearchMessage; - return proto.clientInterface.ProviderSearchMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.ProviderSearchMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.ProviderSearchMessage} - */ -proto.clientInterface.ProviderSearchMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clientInterface.ProviderMessage; - reader.readMessage(value,proto.clientInterface.ProviderMessage.deserializeBinaryFromReader); - msg.setProvider(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addSearchTerm(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.ProviderSearchMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.ProviderSearchMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.ProviderSearchMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.ProviderSearchMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProvider(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.clientInterface.ProviderMessage.serializeBinaryToWriter - ); - } - f = message.getSearchTermList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } -}; - - -/** - * optional ProviderMessage provider = 1; - * @return {?proto.clientInterface.ProviderMessage} - */ -proto.clientInterface.ProviderSearchMessage.prototype.getProvider = function() { - return /** @type{?proto.clientInterface.ProviderMessage} */ ( - jspb.Message.getWrapperField(this, proto.clientInterface.ProviderMessage, 1)); -}; - - -/** - * @param {?proto.clientInterface.ProviderMessage|undefined} value - * @return {!proto.clientInterface.ProviderSearchMessage} returns this -*/ -proto.clientInterface.ProviderSearchMessage.prototype.setProvider = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientInterface.ProviderSearchMessage} returns this - */ -proto.clientInterface.ProviderSearchMessage.prototype.clearProvider = function() { - return this.setProvider(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.ProviderSearchMessage.prototype.hasProvider = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * repeated string search_term = 2; - * @return {!Array} - */ -proto.clientInterface.ProviderSearchMessage.prototype.getSearchTermList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clientInterface.ProviderSearchMessage} returns this - */ -proto.clientInterface.ProviderSearchMessage.prototype.setSearchTermList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clientInterface.ProviderSearchMessage} returns this - */ -proto.clientInterface.ProviderSearchMessage.prototype.addSearchTerm = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clientInterface.ProviderSearchMessage} returns this - */ -proto.clientInterface.ProviderSearchMessage.prototype.clearSearchTermList = function() { - return this.setSearchTermList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.IdentityInfoMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.IdentityInfoMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.IdentityInfoMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.IdentityInfoMessage.toObject = function(includeInstance, msg) { - var f, obj = { - provider: (f = msg.getProvider()) && proto.clientInterface.ProviderMessage.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 3, ""), - email: jspb.Message.getFieldWithDefault(msg, 4, ""), - url: jspb.Message.getFieldWithDefault(msg, 5, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.IdentityInfoMessage} - */ -proto.clientInterface.IdentityInfoMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.IdentityInfoMessage; - return proto.clientInterface.IdentityInfoMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.IdentityInfoMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.IdentityInfoMessage} - */ -proto.clientInterface.IdentityInfoMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clientInterface.ProviderMessage; - reader.readMessage(value,proto.clientInterface.ProviderMessage.deserializeBinaryFromReader); - msg.setProvider(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setUrl(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.IdentityInfoMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.IdentityInfoMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.IdentityInfoMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.IdentityInfoMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProvider(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.clientInterface.ProviderMessage.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getUrl(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } -}; - - -/** - * optional ProviderMessage provider = 1; - * @return {?proto.clientInterface.ProviderMessage} - */ -proto.clientInterface.IdentityInfoMessage.prototype.getProvider = function() { - return /** @type{?proto.clientInterface.ProviderMessage} */ ( - jspb.Message.getWrapperField(this, proto.clientInterface.ProviderMessage, 1)); -}; - - -/** - * @param {?proto.clientInterface.ProviderMessage|undefined} value - * @return {!proto.clientInterface.IdentityInfoMessage} returns this -*/ -proto.clientInterface.IdentityInfoMessage.prototype.setProvider = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientInterface.IdentityInfoMessage} returns this - */ -proto.clientInterface.IdentityInfoMessage.prototype.clearProvider = function() { - return this.setProvider(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.IdentityInfoMessage.prototype.hasProvider = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string name = 3; - * @return {string} - */ -proto.clientInterface.IdentityInfoMessage.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.IdentityInfoMessage} returns this - */ -proto.clientInterface.IdentityInfoMessage.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string email = 4; - * @return {string} - */ -proto.clientInterface.IdentityInfoMessage.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.IdentityInfoMessage} returns this - */ -proto.clientInterface.IdentityInfoMessage.prototype.setEmail = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string url = 5; - * @return {string} - */ -proto.clientInterface.IdentityInfoMessage.prototype.getUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.IdentityInfoMessage} returns this - */ -proto.clientInterface.IdentityInfoMessage.prototype.setUrl = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.GestaltMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.GestaltMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.GestaltMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.GestaltMessage.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.GestaltMessage} - */ -proto.clientInterface.GestaltMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.GestaltMessage; - return proto.clientInterface.GestaltMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.GestaltMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.GestaltMessage} - */ -proto.clientInterface.GestaltMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.GestaltMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.GestaltMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.GestaltMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.GestaltMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.clientInterface.GestaltMessage.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.GestaltMessage} returns this - */ -proto.clientInterface.GestaltMessage.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.GestaltGraphMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.GestaltGraphMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.GestaltGraphMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.GestaltGraphMessage.toObject = function(includeInstance, msg) { - var f, obj = { - gestaltGraph: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.GestaltGraphMessage} - */ -proto.clientInterface.GestaltGraphMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.GestaltGraphMessage; - return proto.clientInterface.GestaltGraphMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.GestaltGraphMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.GestaltGraphMessage} - */ -proto.clientInterface.GestaltGraphMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setGestaltGraph(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.GestaltGraphMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.GestaltGraphMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.GestaltGraphMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.GestaltGraphMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGestaltGraph(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string gestalt_graph = 1; - * @return {string} - */ -proto.clientInterface.GestaltGraphMessage.prototype.getGestaltGraph = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.GestaltGraphMessage} returns this - */ -proto.clientInterface.GestaltGraphMessage.prototype.setGestaltGraph = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.GestaltTrustMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.GestaltTrustMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.GestaltTrustMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.GestaltTrustMessage.toObject = function(includeInstance, msg) { - var f, obj = { - provider: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - set: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.GestaltTrustMessage} - */ -proto.clientInterface.GestaltTrustMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.GestaltTrustMessage; - return proto.clientInterface.GestaltTrustMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.GestaltTrustMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.GestaltTrustMessage} - */ -proto.clientInterface.GestaltTrustMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProvider(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSet(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.GestaltTrustMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.GestaltTrustMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.GestaltTrustMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.GestaltTrustMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProvider(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getSet(); - if (f) { - writer.writeBool( - 3, - f - ); - } -}; - - -/** - * optional string provider = 1; - * @return {string} - */ -proto.clientInterface.GestaltTrustMessage.prototype.getProvider = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.GestaltTrustMessage} returns this - */ -proto.clientInterface.GestaltTrustMessage.prototype.setProvider = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.clientInterface.GestaltTrustMessage.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.GestaltTrustMessage} returns this - */ -proto.clientInterface.GestaltTrustMessage.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool set = 3; - * @return {boolean} - */ -proto.clientInterface.GestaltTrustMessage.prototype.getSet = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientInterface.GestaltTrustMessage} returns this - */ -proto.clientInterface.GestaltTrustMessage.prototype.setSet = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clientInterface.ActionsMessage.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.ActionsMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.ActionsMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.ActionsMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.ActionsMessage.toObject = function(includeInstance, msg) { - var f, obj = { - actionList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.ActionsMessage} - */ -proto.clientInterface.ActionsMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.ActionsMessage; - return proto.clientInterface.ActionsMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.ActionsMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.ActionsMessage} - */ -proto.clientInterface.ActionsMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.addAction(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.ActionsMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.ActionsMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.ActionsMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.ActionsMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getActionList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } -}; - - -/** - * repeated string action = 1; - * @return {!Array} - */ -proto.clientInterface.ActionsMessage.prototype.getActionList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clientInterface.ActionsMessage} returns this - */ -proto.clientInterface.ActionsMessage.prototype.setActionList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clientInterface.ActionsMessage} returns this - */ -proto.clientInterface.ActionsMessage.prototype.addAction = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clientInterface.ActionsMessage} returns this - */ -proto.clientInterface.ActionsMessage.prototype.clearActionList = function() { - return this.setActionList([]); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.clientInterface.SetActionsMessage.oneofGroups_ = [[1,2]]; - -/** - * @enum {number} - */ -proto.clientInterface.SetActionsMessage.NodeOrProviderCase = { - NODE_OR_PROVIDER_NOT_SET: 0, - NODE: 1, - IDENTITY: 2 -}; - -/** - * @return {proto.clientInterface.SetActionsMessage.NodeOrProviderCase} - */ -proto.clientInterface.SetActionsMessage.prototype.getNodeOrProviderCase = function() { - return /** @type {proto.clientInterface.SetActionsMessage.NodeOrProviderCase} */(jspb.Message.computeOneofCase(this, proto.clientInterface.SetActionsMessage.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.SetActionsMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.SetActionsMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.SetActionsMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.SetActionsMessage.toObject = function(includeInstance, msg) { - var f, obj = { - node: (f = msg.getNode()) && proto.clientInterface.NodeMessage.toObject(includeInstance, f), - identity: (f = msg.getIdentity()) && proto.clientInterface.ProviderMessage.toObject(includeInstance, f), - action: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.SetActionsMessage} - */ -proto.clientInterface.SetActionsMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.SetActionsMessage; - return proto.clientInterface.SetActionsMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.SetActionsMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.SetActionsMessage} - */ -proto.clientInterface.SetActionsMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clientInterface.NodeMessage; - reader.readMessage(value,proto.clientInterface.NodeMessage.deserializeBinaryFromReader); - msg.setNode(value); - break; - case 2: - var value = new proto.clientInterface.ProviderMessage; - reader.readMessage(value,proto.clientInterface.ProviderMessage.deserializeBinaryFromReader); - msg.setIdentity(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setAction(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.SetActionsMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.SetActionsMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.SetActionsMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.SetActionsMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNode(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.clientInterface.NodeMessage.serializeBinaryToWriter - ); - } - f = message.getIdentity(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.clientInterface.ProviderMessage.serializeBinaryToWriter - ); - } - f = message.getAction(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional NodeMessage node = 1; - * @return {?proto.clientInterface.NodeMessage} - */ -proto.clientInterface.SetActionsMessage.prototype.getNode = function() { - return /** @type{?proto.clientInterface.NodeMessage} */ ( - jspb.Message.getWrapperField(this, proto.clientInterface.NodeMessage, 1)); -}; - - -/** - * @param {?proto.clientInterface.NodeMessage|undefined} value - * @return {!proto.clientInterface.SetActionsMessage} returns this -*/ -proto.clientInterface.SetActionsMessage.prototype.setNode = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.clientInterface.SetActionsMessage.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientInterface.SetActionsMessage} returns this - */ -proto.clientInterface.SetActionsMessage.prototype.clearNode = function() { - return this.setNode(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.SetActionsMessage.prototype.hasNode = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional ProviderMessage identity = 2; - * @return {?proto.clientInterface.ProviderMessage} - */ -proto.clientInterface.SetActionsMessage.prototype.getIdentity = function() { - return /** @type{?proto.clientInterface.ProviderMessage} */ ( - jspb.Message.getWrapperField(this, proto.clientInterface.ProviderMessage, 2)); -}; - - -/** - * @param {?proto.clientInterface.ProviderMessage|undefined} value - * @return {!proto.clientInterface.SetActionsMessage} returns this -*/ -proto.clientInterface.SetActionsMessage.prototype.setIdentity = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.clientInterface.SetActionsMessage.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientInterface.SetActionsMessage} returns this - */ -proto.clientInterface.SetActionsMessage.prototype.clearIdentity = function() { - return this.setIdentity(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.SetActionsMessage.prototype.hasIdentity = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string action = 3; - * @return {string} - */ -proto.clientInterface.SetActionsMessage.prototype.getAction = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.SetActionsMessage} returns this - */ -proto.clientInterface.SetActionsMessage.prototype.setAction = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.clientInterface.NotificationsMessage.oneofGroups_ = [[1,2,3]]; - -/** - * @enum {number} - */ -proto.clientInterface.NotificationsMessage.DataCase = { - DATA_NOT_SET: 0, - GENERAL: 1, - GESTALT_INVITE: 2, - VAULT_SHARE: 3 -}; - -/** - * @return {proto.clientInterface.NotificationsMessage.DataCase} - */ -proto.clientInterface.NotificationsMessage.prototype.getDataCase = function() { - return /** @type {proto.clientInterface.NotificationsMessage.DataCase} */(jspb.Message.computeOneofCase(this, proto.clientInterface.NotificationsMessage.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.NotificationsMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.NotificationsMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.NotificationsMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.NotificationsMessage.toObject = function(includeInstance, msg) { - var f, obj = { - general: (f = msg.getGeneral()) && proto.clientInterface.GeneralTypeMessage.toObject(includeInstance, f), - gestaltInvite: jspb.Message.getFieldWithDefault(msg, 2, ""), - vaultShare: (f = msg.getVaultShare()) && proto.clientInterface.VaultShareTypeMessage.toObject(includeInstance, f), - senderId: jspb.Message.getFieldWithDefault(msg, 4, ""), - isRead: jspb.Message.getBooleanFieldWithDefault(msg, 5, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.NotificationsMessage} - */ -proto.clientInterface.NotificationsMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.NotificationsMessage; - return proto.clientInterface.NotificationsMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.NotificationsMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.NotificationsMessage} - */ -proto.clientInterface.NotificationsMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clientInterface.GeneralTypeMessage; - reader.readMessage(value,proto.clientInterface.GeneralTypeMessage.deserializeBinaryFromReader); - msg.setGeneral(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setGestaltInvite(value); - break; - case 3: - var value = new proto.clientInterface.VaultShareTypeMessage; - reader.readMessage(value,proto.clientInterface.VaultShareTypeMessage.deserializeBinaryFromReader); - msg.setVaultShare(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setSenderId(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsRead(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.NotificationsMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.NotificationsMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.NotificationsMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.NotificationsMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGeneral(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.clientInterface.GeneralTypeMessage.serializeBinaryToWriter - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeString( - 2, - f - ); - } - f = message.getVaultShare(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.clientInterface.VaultShareTypeMessage.serializeBinaryToWriter - ); - } - f = message.getSenderId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getIsRead(); - if (f) { - writer.writeBool( - 5, - f - ); - } -}; - - -/** - * optional GeneralTypeMessage general = 1; - * @return {?proto.clientInterface.GeneralTypeMessage} - */ -proto.clientInterface.NotificationsMessage.prototype.getGeneral = function() { - return /** @type{?proto.clientInterface.GeneralTypeMessage} */ ( - jspb.Message.getWrapperField(this, proto.clientInterface.GeneralTypeMessage, 1)); -}; - - -/** - * @param {?proto.clientInterface.GeneralTypeMessage|undefined} value - * @return {!proto.clientInterface.NotificationsMessage} returns this -*/ -proto.clientInterface.NotificationsMessage.prototype.setGeneral = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.clientInterface.NotificationsMessage.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientInterface.NotificationsMessage} returns this - */ -proto.clientInterface.NotificationsMessage.prototype.clearGeneral = function() { - return this.setGeneral(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.NotificationsMessage.prototype.hasGeneral = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string gestalt_invite = 2; - * @return {string} - */ -proto.clientInterface.NotificationsMessage.prototype.getGestaltInvite = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.NotificationsMessage} returns this - */ -proto.clientInterface.NotificationsMessage.prototype.setGestaltInvite = function(value) { - return jspb.Message.setOneofField(this, 2, proto.clientInterface.NotificationsMessage.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.clientInterface.NotificationsMessage} returns this - */ -proto.clientInterface.NotificationsMessage.prototype.clearGestaltInvite = function() { - return jspb.Message.setOneofField(this, 2, proto.clientInterface.NotificationsMessage.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.NotificationsMessage.prototype.hasGestaltInvite = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional VaultShareTypeMessage vault_share = 3; - * @return {?proto.clientInterface.VaultShareTypeMessage} - */ -proto.clientInterface.NotificationsMessage.prototype.getVaultShare = function() { - return /** @type{?proto.clientInterface.VaultShareTypeMessage} */ ( - jspb.Message.getWrapperField(this, proto.clientInterface.VaultShareTypeMessage, 3)); -}; - - -/** - * @param {?proto.clientInterface.VaultShareTypeMessage|undefined} value - * @return {!proto.clientInterface.NotificationsMessage} returns this -*/ -proto.clientInterface.NotificationsMessage.prototype.setVaultShare = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.clientInterface.NotificationsMessage.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientInterface.NotificationsMessage} returns this - */ -proto.clientInterface.NotificationsMessage.prototype.clearVaultShare = function() { - return this.setVaultShare(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.NotificationsMessage.prototype.hasVaultShare = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string sender_id = 4; - * @return {string} - */ -proto.clientInterface.NotificationsMessage.prototype.getSenderId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.NotificationsMessage} returns this - */ -proto.clientInterface.NotificationsMessage.prototype.setSenderId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bool is_read = 5; - * @return {boolean} - */ -proto.clientInterface.NotificationsMessage.prototype.getIsRead = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientInterface.NotificationsMessage} returns this - */ -proto.clientInterface.NotificationsMessage.prototype.setIsRead = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.NotificationsSendMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.NotificationsSendMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.NotificationsSendMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.NotificationsSendMessage.toObject = function(includeInstance, msg) { - var f, obj = { - receiverId: jspb.Message.getFieldWithDefault(msg, 1, ""), - data: (f = msg.getData()) && proto.clientInterface.GeneralTypeMessage.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.NotificationsSendMessage} - */ -proto.clientInterface.NotificationsSendMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.NotificationsSendMessage; - return proto.clientInterface.NotificationsSendMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.NotificationsSendMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.NotificationsSendMessage} - */ -proto.clientInterface.NotificationsSendMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setReceiverId(value); - break; - case 2: - var value = new proto.clientInterface.GeneralTypeMessage; - reader.readMessage(value,proto.clientInterface.GeneralTypeMessage.deserializeBinaryFromReader); - msg.setData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.NotificationsSendMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.NotificationsSendMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.NotificationsSendMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.NotificationsSendMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getReceiverId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getData(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.clientInterface.GeneralTypeMessage.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string receiver_id = 1; - * @return {string} - */ -proto.clientInterface.NotificationsSendMessage.prototype.getReceiverId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.NotificationsSendMessage} returns this - */ -proto.clientInterface.NotificationsSendMessage.prototype.setReceiverId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional GeneralTypeMessage data = 2; - * @return {?proto.clientInterface.GeneralTypeMessage} - */ -proto.clientInterface.NotificationsSendMessage.prototype.getData = function() { - return /** @type{?proto.clientInterface.GeneralTypeMessage} */ ( - jspb.Message.getWrapperField(this, proto.clientInterface.GeneralTypeMessage, 2)); -}; - - -/** - * @param {?proto.clientInterface.GeneralTypeMessage|undefined} value - * @return {!proto.clientInterface.NotificationsSendMessage} returns this -*/ -proto.clientInterface.NotificationsSendMessage.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientInterface.NotificationsSendMessage} returns this - */ -proto.clientInterface.NotificationsSendMessage.prototype.clearData = function() { - return this.setData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientInterface.NotificationsSendMessage.prototype.hasData = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.NotificationsReadMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.NotificationsReadMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.NotificationsReadMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.NotificationsReadMessage.toObject = function(includeInstance, msg) { - var f, obj = { - unread: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - number: jspb.Message.getFieldWithDefault(msg, 2, ""), - order: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.NotificationsReadMessage} - */ -proto.clientInterface.NotificationsReadMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.NotificationsReadMessage; - return proto.clientInterface.NotificationsReadMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.NotificationsReadMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.NotificationsReadMessage} - */ -proto.clientInterface.NotificationsReadMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setUnread(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setNumber(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setOrder(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.NotificationsReadMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.NotificationsReadMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.NotificationsReadMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.NotificationsReadMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUnread(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getNumber(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getOrder(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional bool unread = 1; - * @return {boolean} - */ -proto.clientInterface.NotificationsReadMessage.prototype.getUnread = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientInterface.NotificationsReadMessage} returns this - */ -proto.clientInterface.NotificationsReadMessage.prototype.setUnread = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional string number = 2; - * @return {string} - */ -proto.clientInterface.NotificationsReadMessage.prototype.getNumber = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.NotificationsReadMessage} returns this - */ -proto.clientInterface.NotificationsReadMessage.prototype.setNumber = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string order = 3; - * @return {string} - */ -proto.clientInterface.NotificationsReadMessage.prototype.getOrder = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.NotificationsReadMessage} returns this - */ -proto.clientInterface.NotificationsReadMessage.prototype.setOrder = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clientInterface.NotificationsListMessage.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.NotificationsListMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.NotificationsListMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.NotificationsListMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.NotificationsListMessage.toObject = function(includeInstance, msg) { - var f, obj = { - notificationList: jspb.Message.toObjectList(msg.getNotificationList(), - proto.clientInterface.NotificationsMessage.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.NotificationsListMessage} - */ -proto.clientInterface.NotificationsListMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.NotificationsListMessage; - return proto.clientInterface.NotificationsListMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.NotificationsListMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.NotificationsListMessage} - */ -proto.clientInterface.NotificationsListMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clientInterface.NotificationsMessage; - reader.readMessage(value,proto.clientInterface.NotificationsMessage.deserializeBinaryFromReader); - msg.addNotification(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.NotificationsListMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.NotificationsListMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.NotificationsListMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.NotificationsListMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNotificationList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.clientInterface.NotificationsMessage.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated NotificationsMessage notification = 1; - * @return {!Array} - */ -proto.clientInterface.NotificationsListMessage.prototype.getNotificationList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clientInterface.NotificationsMessage, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clientInterface.NotificationsListMessage} returns this -*/ -proto.clientInterface.NotificationsListMessage.prototype.setNotificationList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.clientInterface.NotificationsMessage=} opt_value - * @param {number=} opt_index - * @return {!proto.clientInterface.NotificationsMessage} - */ -proto.clientInterface.NotificationsListMessage.prototype.addNotification = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clientInterface.NotificationsMessage, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clientInterface.NotificationsListMessage} returns this - */ -proto.clientInterface.NotificationsListMessage.prototype.clearNotificationList = function() { - return this.setNotificationList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.GeneralTypeMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.GeneralTypeMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.GeneralTypeMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.GeneralTypeMessage.toObject = function(includeInstance, msg) { - var f, obj = { - message: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.GeneralTypeMessage} - */ -proto.clientInterface.GeneralTypeMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.GeneralTypeMessage; - return proto.clientInterface.GeneralTypeMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.GeneralTypeMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.GeneralTypeMessage} - */ -proto.clientInterface.GeneralTypeMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMessage(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.GeneralTypeMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.GeneralTypeMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.GeneralTypeMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.GeneralTypeMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMessage(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string message = 1; - * @return {string} - */ -proto.clientInterface.GeneralTypeMessage.prototype.getMessage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.GeneralTypeMessage} returns this - */ -proto.clientInterface.GeneralTypeMessage.prototype.setMessage = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clientInterface.VaultShareTypeMessage.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientInterface.VaultShareTypeMessage.prototype.toObject = function(opt_includeInstance) { - return proto.clientInterface.VaultShareTypeMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientInterface.VaultShareTypeMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.VaultShareTypeMessage.toObject = function(includeInstance, msg) { - var f, obj = { - vaultId: jspb.Message.getFieldWithDefault(msg, 1, ""), - vaultName: jspb.Message.getFieldWithDefault(msg, 2, ""), - actionsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientInterface.VaultShareTypeMessage} - */ -proto.clientInterface.VaultShareTypeMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientInterface.VaultShareTypeMessage; - return proto.clientInterface.VaultShareTypeMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientInterface.VaultShareTypeMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientInterface.VaultShareTypeMessage} - */ -proto.clientInterface.VaultShareTypeMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setVaultId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setVaultName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addActions(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientInterface.VaultShareTypeMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientInterface.VaultShareTypeMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientInterface.VaultShareTypeMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientInterface.VaultShareTypeMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVaultId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getVaultName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getActionsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f - ); - } -}; - - -/** - * optional string vault_id = 1; - * @return {string} - */ -proto.clientInterface.VaultShareTypeMessage.prototype.getVaultId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.VaultShareTypeMessage} returns this - */ -proto.clientInterface.VaultShareTypeMessage.prototype.setVaultId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string vault_name = 2; - * @return {string} - */ -proto.clientInterface.VaultShareTypeMessage.prototype.getVaultName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientInterface.VaultShareTypeMessage} returns this - */ -proto.clientInterface.VaultShareTypeMessage.prototype.setVaultName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated string actions = 3; - * @return {!Array} - */ -proto.clientInterface.VaultShareTypeMessage.prototype.getActionsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clientInterface.VaultShareTypeMessage} returns this - */ -proto.clientInterface.VaultShareTypeMessage.prototype.setActionsList = function(value) { - return jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clientInterface.VaultShareTypeMessage} returns this - */ -proto.clientInterface.VaultShareTypeMessage.prototype.addActions = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clientInterface.VaultShareTypeMessage} returns this - */ -proto.clientInterface.VaultShareTypeMessage.prototype.clearActionsList = function() { - return this.setActionsList([]); -}; - - -goog.object.extend(exports, proto.clientInterface); diff --git a/src/proto/js/polykey/v1/agent_service_grpc_pb.d.ts b/src/proto/js/polykey/v1/agent_service_grpc_pb.d.ts index fa5375154c..e7289e6c95 100644 --- a/src/proto/js/polykey/v1/agent_service_grpc_pb.d.ts +++ b/src/proto/js/polykey/v1/agent_service_grpc_pb.d.ts @@ -15,13 +15,12 @@ interface IAgentServiceService extends grpc.ServiceDefinition; responseDeserialize: grpc.deserialize; } -interface IAgentServiceService_IVaultsScan extends grpc.MethodDefinition { - path: "/polykey.v1.AgentService/VaultsScan"; - requestStream: false; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IAgentServiceService_IVaultsPermisssionsCheck extends grpc.MethodDefinition { - path: "/polykey.v1.AgentService/VaultsPermisssionsCheck"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} interface IAgentServiceService_INodesClosestLocalNodesGet extends grpc.MethodDefinition { path: "/polykey.v1.AgentService/NodesClosestLocalNodesGet"; requestStream: false; @@ -115,6 +96,15 @@ interface IAgentServiceService_INodesCrossSignClaim extends grpc.MethodDefinitio responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } +interface IAgentServiceService_INodesScan extends grpc.MethodDefinition { + path: "/polykey.v1.AgentService/NodesScan"; + requestStream: false; + responseStream: true; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} interface IAgentServiceService_INotificationsSend extends grpc.MethodDefinition { path: "/polykey.v1.AgentService/NotificationsSend"; requestStream: false; @@ -131,13 +121,12 @@ export interface IAgentServiceServer extends grpc.UntypedServiceImplementation { echo: grpc.handleUnaryCall; vaultsGitInfoGet: grpc.handleServerStreamingCall; vaultsGitPackGet: grpc.handleBidiStreamingCall; - vaultsScan: grpc.handleServerStreamingCall; - vaultsPermisssionsCheck: grpc.handleUnaryCall; nodesClosestLocalNodesGet: grpc.handleUnaryCall; nodesClaimsGet: grpc.handleUnaryCall; nodesChainDataGet: grpc.handleUnaryCall; nodesHolePunchMessageSend: grpc.handleUnaryCall; nodesCrossSignClaim: grpc.handleBidiStreamingCall; + nodesScan: grpc.handleServerStreamingCall; notificationsSend: grpc.handleUnaryCall; } @@ -150,11 +139,6 @@ export interface IAgentServiceClient { vaultsGitPackGet(): grpc.ClientDuplexStream; vaultsGitPackGet(options: Partial): grpc.ClientDuplexStream; vaultsGitPackGet(metadata: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; - vaultsScan(request: polykey_v1_nodes_nodes_pb.Node, options?: Partial): grpc.ClientReadableStream; - vaultsScan(request: polykey_v1_nodes_nodes_pb.Node, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - vaultsPermisssionsCheck(request: polykey_v1_vaults_vaults_pb.NodePermission, callback: (error: grpc.ServiceError | null, response: polykey_v1_vaults_vaults_pb.NodePermissionAllowed) => void): grpc.ClientUnaryCall; - vaultsPermisssionsCheck(request: polykey_v1_vaults_vaults_pb.NodePermission, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_vaults_vaults_pb.NodePermissionAllowed) => void): grpc.ClientUnaryCall; - vaultsPermisssionsCheck(request: polykey_v1_vaults_vaults_pb.NodePermission, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_vaults_vaults_pb.NodePermissionAllowed) => void): grpc.ClientUnaryCall; nodesClosestLocalNodesGet(request: polykey_v1_nodes_nodes_pb.Node, callback: (error: grpc.ServiceError | null, response: polykey_v1_nodes_nodes_pb.NodeTable) => void): grpc.ClientUnaryCall; nodesClosestLocalNodesGet(request: polykey_v1_nodes_nodes_pb.Node, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_nodes_nodes_pb.NodeTable) => void): grpc.ClientUnaryCall; nodesClosestLocalNodesGet(request: polykey_v1_nodes_nodes_pb.Node, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_nodes_nodes_pb.NodeTable) => void): grpc.ClientUnaryCall; @@ -170,6 +154,8 @@ export interface IAgentServiceClient { nodesCrossSignClaim(): grpc.ClientDuplexStream; nodesCrossSignClaim(options: Partial): grpc.ClientDuplexStream; nodesCrossSignClaim(metadata: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; + nodesScan(request: polykey_v1_nodes_nodes_pb.Node, options?: Partial): grpc.ClientReadableStream; + nodesScan(request: polykey_v1_nodes_nodes_pb.Node, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; notificationsSend(request: polykey_v1_notifications_notifications_pb.AgentNotification, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.EmptyMessage) => void): grpc.ClientUnaryCall; notificationsSend(request: polykey_v1_notifications_notifications_pb.AgentNotification, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.EmptyMessage) => void): grpc.ClientUnaryCall; notificationsSend(request: polykey_v1_notifications_notifications_pb.AgentNotification, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.EmptyMessage) => void): grpc.ClientUnaryCall; @@ -184,11 +170,6 @@ export class AgentServiceClient extends grpc.Client implements IAgentServiceClie public vaultsGitInfoGet(request: polykey_v1_vaults_vaults_pb.Vault, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; public vaultsGitPackGet(options?: Partial): grpc.ClientDuplexStream; public vaultsGitPackGet(metadata?: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; - public vaultsScan(request: polykey_v1_nodes_nodes_pb.Node, options?: Partial): grpc.ClientReadableStream; - public vaultsScan(request: polykey_v1_nodes_nodes_pb.Node, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - public vaultsPermisssionsCheck(request: polykey_v1_vaults_vaults_pb.NodePermission, callback: (error: grpc.ServiceError | null, response: polykey_v1_vaults_vaults_pb.NodePermissionAllowed) => void): grpc.ClientUnaryCall; - public vaultsPermisssionsCheck(request: polykey_v1_vaults_vaults_pb.NodePermission, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_vaults_vaults_pb.NodePermissionAllowed) => void): grpc.ClientUnaryCall; - public vaultsPermisssionsCheck(request: polykey_v1_vaults_vaults_pb.NodePermission, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_vaults_vaults_pb.NodePermissionAllowed) => void): grpc.ClientUnaryCall; public nodesClosestLocalNodesGet(request: polykey_v1_nodes_nodes_pb.Node, callback: (error: grpc.ServiceError | null, response: polykey_v1_nodes_nodes_pb.NodeTable) => void): grpc.ClientUnaryCall; public nodesClosestLocalNodesGet(request: polykey_v1_nodes_nodes_pb.Node, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_nodes_nodes_pb.NodeTable) => void): grpc.ClientUnaryCall; public nodesClosestLocalNodesGet(request: polykey_v1_nodes_nodes_pb.Node, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_nodes_nodes_pb.NodeTable) => void): grpc.ClientUnaryCall; @@ -203,6 +184,8 @@ export class AgentServiceClient extends grpc.Client implements IAgentServiceClie public nodesHolePunchMessageSend(request: polykey_v1_nodes_nodes_pb.Relay, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.EmptyMessage) => void): grpc.ClientUnaryCall; public nodesCrossSignClaim(options?: Partial): grpc.ClientDuplexStream; public nodesCrossSignClaim(metadata?: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; + public nodesScan(request: polykey_v1_nodes_nodes_pb.Node, options?: Partial): grpc.ClientReadableStream; + public nodesScan(request: polykey_v1_nodes_nodes_pb.Node, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; public notificationsSend(request: polykey_v1_notifications_notifications_pb.AgentNotification, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.EmptyMessage) => void): grpc.ClientUnaryCall; public notificationsSend(request: polykey_v1_notifications_notifications_pb.AgentNotification, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.EmptyMessage) => void): grpc.ClientUnaryCall; public notificationsSend(request: polykey_v1_notifications_notifications_pb.AgentNotification, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.EmptyMessage) => void): grpc.ClientUnaryCall; diff --git a/src/proto/js/polykey/v1/agent_service_grpc_pb.js b/src/proto/js/polykey/v1/agent_service_grpc_pb.js index ad46827874..f19fa73d0c 100644 --- a/src/proto/js/polykey/v1/agent_service_grpc_pb.js +++ b/src/proto/js/polykey/v1/agent_service_grpc_pb.js @@ -117,26 +117,15 @@ function deserialize_polykey_v1_utils_EmptyMessage(buffer_arg) { return polykey_v1_utils_utils_pb.EmptyMessage.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_polykey_v1_vaults_NodePermission(arg) { - if (!(arg instanceof polykey_v1_vaults_vaults_pb.NodePermission)) { - throw new Error('Expected argument of type polykey.v1.vaults.NodePermission'); +function serialize_polykey_v1_vaults_List(arg) { + if (!(arg instanceof polykey_v1_vaults_vaults_pb.List)) { + throw new Error('Expected argument of type polykey.v1.vaults.List'); } return Buffer.from(arg.serializeBinary()); } -function deserialize_polykey_v1_vaults_NodePermission(buffer_arg) { - return polykey_v1_vaults_vaults_pb.NodePermission.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_polykey_v1_vaults_NodePermissionAllowed(arg) { - if (!(arg instanceof polykey_v1_vaults_vaults_pb.NodePermissionAllowed)) { - throw new Error('Expected argument of type polykey.v1.vaults.NodePermissionAllowed'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_polykey_v1_vaults_NodePermissionAllowed(buffer_arg) { - return polykey_v1_vaults_vaults_pb.NodePermissionAllowed.deserializeBinary(new Uint8Array(buffer_arg)); +function deserialize_polykey_v1_vaults_List(buffer_arg) { + return polykey_v1_vaults_vaults_pb.List.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_polykey_v1_vaults_PackChunk(arg) { @@ -198,28 +187,6 @@ vaultsGitInfoGet: { responseSerialize: serialize_polykey_v1_vaults_PackChunk, responseDeserialize: deserialize_polykey_v1_vaults_PackChunk, }, - vaultsScan: { - path: '/polykey.v1.AgentService/VaultsScan', - requestStream: false, - responseStream: true, - requestType: polykey_v1_nodes_nodes_pb.Node, - responseType: polykey_v1_vaults_vaults_pb.Vault, - requestSerialize: serialize_polykey_v1_nodes_Node, - requestDeserialize: deserialize_polykey_v1_nodes_Node, - responseSerialize: serialize_polykey_v1_vaults_Vault, - responseDeserialize: deserialize_polykey_v1_vaults_Vault, - }, - vaultsPermisssionsCheck: { - path: '/polykey.v1.AgentService/VaultsPermisssionsCheck', - requestStream: false, - responseStream: false, - requestType: polykey_v1_vaults_vaults_pb.NodePermission, - responseType: polykey_v1_vaults_vaults_pb.NodePermissionAllowed, - requestSerialize: serialize_polykey_v1_vaults_NodePermission, - requestDeserialize: deserialize_polykey_v1_vaults_NodePermission, - responseSerialize: serialize_polykey_v1_vaults_NodePermissionAllowed, - responseDeserialize: deserialize_polykey_v1_vaults_NodePermissionAllowed, - }, // Nodes nodesClosestLocalNodesGet: { path: '/polykey.v1.AgentService/NodesClosestLocalNodesGet', @@ -276,6 +243,17 @@ nodesClosestLocalNodesGet: { responseSerialize: serialize_polykey_v1_nodes_CrossSign, responseDeserialize: deserialize_polykey_v1_nodes_CrossSign, }, + nodesScan: { + path: '/polykey.v1.AgentService/NodesScan', + requestStream: false, + responseStream: true, + requestType: polykey_v1_nodes_nodes_pb.Node, + responseType: polykey_v1_vaults_vaults_pb.List, + requestSerialize: serialize_polykey_v1_nodes_Node, + requestDeserialize: deserialize_polykey_v1_nodes_Node, + responseSerialize: serialize_polykey_v1_vaults_List, + responseDeserialize: deserialize_polykey_v1_vaults_List, + }, // Notifications notificationsSend: { path: '/polykey.v1.AgentService/NotificationsSend', diff --git a/src/proto/js/polykey/v1/client_service_grpc_pb.d.ts b/src/proto/js/polykey/v1/client_service_grpc_pb.d.ts index 2458e90bcd..0ee906195e 100644 --- a/src/proto/js/polykey/v1/client_service_grpc_pb.d.ts +++ b/src/proto/js/polykey/v1/client_service_grpc_pb.d.ts @@ -27,6 +27,7 @@ interface IClientServiceService extends grpc.ServiceDefinition; responseDeserialize: grpc.deserialize; } +interface IClientServiceService_INodesScan extends grpc.MethodDefinition { + path: "/polykey.v1.ClientService/NodesScan"; + requestStream: false; + responseStream: true; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} interface IClientServiceService_IKeysKeyPairRoot extends grpc.MethodDefinition { path: "/polykey.v1.ClientService/KeysKeyPairRoot"; requestStream: false; @@ -307,15 +314,6 @@ interface IClientServiceService_IVaultsClone extends grpc.MethodDefinition; responseDeserialize: grpc.deserialize; } -interface IClientServiceService_IVaultsScan extends grpc.MethodDefinition { - path: "/polykey.v1.ClientService/VaultsScan"; - requestStream: false; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} interface IClientServiceService_IVaultsSecretsList extends grpc.MethodDefinition { path: "/polykey.v1.ClientService/VaultsSecretsList"; requestStream: false; @@ -334,15 +332,6 @@ interface IClientServiceService_IVaultsSecretsMkdir extends grpc.MethodDefinitio responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } -interface IClientServiceService_IVaultsSecretsStat extends grpc.MethodDefinition { - path: "/polykey.v1.ClientService/VaultsSecretsStat"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} interface IClientServiceService_IVaultsSecretsDelete extends grpc.MethodDefinition { path: "/polykey.v1.ClientService/VaultsSecretsDelete"; requestStream: false; @@ -397,8 +386,8 @@ interface IClientServiceService_IVaultsSecretsNewDir extends grpc.MethodDefiniti responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } -interface IClientServiceService_IVaultsPermissionsSet extends grpc.MethodDefinition { - path: "/polykey.v1.ClientService/VaultsPermissionsSet"; +interface IClientServiceService_IVaultsShare extends grpc.MethodDefinition { + path: "/polykey.v1.ClientService/VaultsShare"; requestStream: false; responseStream: false; requestSerialize: grpc.serialize; @@ -406,8 +395,8 @@ interface IClientServiceService_IVaultsPermissionsSet extends grpc.MethodDefinit responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } -interface IClientServiceService_IVaultsPermissionsUnset extends grpc.MethodDefinition { - path: "/polykey.v1.ClientService/VaultsPermissionsUnset"; +interface IClientServiceService_IVaultsUnshare extends grpc.MethodDefinition { + path: "/polykey.v1.ClientService/VaultsUnshare"; requestStream: false; responseStream: false; requestSerialize: grpc.serialize; @@ -415,15 +404,6 @@ interface IClientServiceService_IVaultsPermissionsUnset extends grpc.MethodDefin responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } -interface IClientServiceService_IVaultsPermissions extends grpc.MethodDefinition { - path: "/polykey.v1.ClientService/VaultsPermissions"; - requestStream: false; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} interface IClientServiceService_IVaultsVersion extends grpc.MethodDefinition { path: "/polykey.v1.ClientService/VaultsVersion"; requestStream: false; @@ -653,6 +633,7 @@ export interface IClientServiceServer extends grpc.UntypedServiceImplementation nodesPing: grpc.handleUnaryCall; nodesClaim: grpc.handleUnaryCall; nodesFind: grpc.handleUnaryCall; + nodesScan: grpc.handleServerStreamingCall; keysKeyPairRoot: grpc.handleUnaryCall; keysKeyPairReset: grpc.handleUnaryCall; keysKeyPairRenew: grpc.handleUnaryCall; @@ -669,19 +650,16 @@ export interface IClientServiceServer extends grpc.UntypedServiceImplementation vaultsDelete: grpc.handleUnaryCall; vaultsPull: grpc.handleUnaryCall; vaultsClone: grpc.handleUnaryCall; - vaultsScan: grpc.handleServerStreamingCall; vaultsSecretsList: grpc.handleServerStreamingCall; vaultsSecretsMkdir: grpc.handleUnaryCall; - vaultsSecretsStat: grpc.handleUnaryCall; vaultsSecretsDelete: grpc.handleUnaryCall; vaultsSecretsEdit: grpc.handleUnaryCall; vaultsSecretsGet: grpc.handleUnaryCall; vaultsSecretsRename: grpc.handleUnaryCall; vaultsSecretsNew: grpc.handleUnaryCall; vaultsSecretsNewDir: grpc.handleUnaryCall; - vaultsPermissionsSet: grpc.handleUnaryCall; - vaultsPermissionsUnset: grpc.handleUnaryCall; - vaultsPermissions: grpc.handleServerStreamingCall; + vaultsShare: grpc.handleUnaryCall; + vaultsUnshare: grpc.handleUnaryCall; vaultsVersion: grpc.handleUnaryCall; vaultsLog: grpc.handleServerStreamingCall; identitiesAuthenticate: grpc.handleServerStreamingCall; @@ -736,6 +714,8 @@ export interface IClientServiceClient { nodesFind(request: polykey_v1_nodes_nodes_pb.Node, callback: (error: grpc.ServiceError | null, response: polykey_v1_nodes_nodes_pb.NodeAddress) => void): grpc.ClientUnaryCall; nodesFind(request: polykey_v1_nodes_nodes_pb.Node, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_nodes_nodes_pb.NodeAddress) => void): grpc.ClientUnaryCall; nodesFind(request: polykey_v1_nodes_nodes_pb.Node, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_nodes_nodes_pb.NodeAddress) => void): grpc.ClientUnaryCall; + nodesScan(request: polykey_v1_nodes_nodes_pb.Node, options?: Partial): grpc.ClientReadableStream; + nodesScan(request: polykey_v1_nodes_nodes_pb.Node, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; keysKeyPairRoot(request: polykey_v1_utils_utils_pb.EmptyMessage, callback: (error: grpc.ServiceError | null, response: polykey_v1_keys_keys_pb.KeyPair) => void): grpc.ClientUnaryCall; keysKeyPairRoot(request: polykey_v1_utils_utils_pb.EmptyMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_keys_keys_pb.KeyPair) => void): grpc.ClientUnaryCall; keysKeyPairRoot(request: polykey_v1_utils_utils_pb.EmptyMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_keys_keys_pb.KeyPair) => void): grpc.ClientUnaryCall; @@ -782,16 +762,11 @@ export interface IClientServiceClient { vaultsClone(request: polykey_v1_vaults_vaults_pb.Clone, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; vaultsClone(request: polykey_v1_vaults_vaults_pb.Clone, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; vaultsClone(request: polykey_v1_vaults_vaults_pb.Clone, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsScan(request: polykey_v1_nodes_nodes_pb.Node, options?: Partial): grpc.ClientReadableStream; - vaultsScan(request: polykey_v1_nodes_nodes_pb.Node, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; vaultsSecretsList(request: polykey_v1_vaults_vaults_pb.Vault, options?: Partial): grpc.ClientReadableStream; vaultsSecretsList(request: polykey_v1_vaults_vaults_pb.Vault, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; vaultsSecretsMkdir(request: polykey_v1_vaults_vaults_pb.Mkdir, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; vaultsSecretsMkdir(request: polykey_v1_vaults_vaults_pb.Mkdir, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; vaultsSecretsMkdir(request: polykey_v1_vaults_vaults_pb.Mkdir, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsSecretsStat(request: polykey_v1_vaults_vaults_pb.Vault, callback: (error: grpc.ServiceError | null, response: polykey_v1_vaults_vaults_pb.Stat) => void): grpc.ClientUnaryCall; - vaultsSecretsStat(request: polykey_v1_vaults_vaults_pb.Vault, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_vaults_vaults_pb.Stat) => void): grpc.ClientUnaryCall; - vaultsSecretsStat(request: polykey_v1_vaults_vaults_pb.Vault, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_vaults_vaults_pb.Stat) => void): grpc.ClientUnaryCall; vaultsSecretsDelete(request: polykey_v1_secrets_secrets_pb.Secret, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; vaultsSecretsDelete(request: polykey_v1_secrets_secrets_pb.Secret, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; vaultsSecretsDelete(request: polykey_v1_secrets_secrets_pb.Secret, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; @@ -810,14 +785,12 @@ export interface IClientServiceClient { vaultsSecretsNewDir(request: polykey_v1_secrets_secrets_pb.Directory, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; vaultsSecretsNewDir(request: polykey_v1_secrets_secrets_pb.Directory, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; vaultsSecretsNewDir(request: polykey_v1_secrets_secrets_pb.Directory, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsPermissionsSet(request: polykey_v1_vaults_vaults_pb.PermSet, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsPermissionsSet(request: polykey_v1_vaults_vaults_pb.PermSet, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsPermissionsSet(request: polykey_v1_vaults_vaults_pb.PermSet, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsPermissionsUnset(request: polykey_v1_vaults_vaults_pb.PermUnset, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsPermissionsUnset(request: polykey_v1_vaults_vaults_pb.PermUnset, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsPermissionsUnset(request: polykey_v1_vaults_vaults_pb.PermUnset, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; - vaultsPermissions(request: polykey_v1_vaults_vaults_pb.PermGet, options?: Partial): grpc.ClientReadableStream; - vaultsPermissions(request: polykey_v1_vaults_vaults_pb.PermGet, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; + vaultsShare(request: polykey_v1_vaults_vaults_pb.PermSet, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; + vaultsShare(request: polykey_v1_vaults_vaults_pb.PermSet, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; + vaultsShare(request: polykey_v1_vaults_vaults_pb.PermSet, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; + vaultsUnshare(request: polykey_v1_vaults_vaults_pb.PermUnset, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; + vaultsUnshare(request: polykey_v1_vaults_vaults_pb.PermUnset, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; + vaultsUnshare(request: polykey_v1_vaults_vaults_pb.PermUnset, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; vaultsVersion(request: polykey_v1_vaults_vaults_pb.Version, callback: (error: grpc.ServiceError | null, response: polykey_v1_vaults_vaults_pb.VersionResult) => void): grpc.ClientUnaryCall; vaultsVersion(request: polykey_v1_vaults_vaults_pb.Version, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_vaults_vaults_pb.VersionResult) => void): grpc.ClientUnaryCall; vaultsVersion(request: polykey_v1_vaults_vaults_pb.Version, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_vaults_vaults_pb.VersionResult) => void): grpc.ClientUnaryCall; @@ -917,6 +890,8 @@ export class ClientServiceClient extends grpc.Client implements IClientServiceCl public nodesFind(request: polykey_v1_nodes_nodes_pb.Node, callback: (error: grpc.ServiceError | null, response: polykey_v1_nodes_nodes_pb.NodeAddress) => void): grpc.ClientUnaryCall; public nodesFind(request: polykey_v1_nodes_nodes_pb.Node, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_nodes_nodes_pb.NodeAddress) => void): grpc.ClientUnaryCall; public nodesFind(request: polykey_v1_nodes_nodes_pb.Node, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_nodes_nodes_pb.NodeAddress) => void): grpc.ClientUnaryCall; + public nodesScan(request: polykey_v1_nodes_nodes_pb.Node, options?: Partial): grpc.ClientReadableStream; + public nodesScan(request: polykey_v1_nodes_nodes_pb.Node, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; public keysKeyPairRoot(request: polykey_v1_utils_utils_pb.EmptyMessage, callback: (error: grpc.ServiceError | null, response: polykey_v1_keys_keys_pb.KeyPair) => void): grpc.ClientUnaryCall; public keysKeyPairRoot(request: polykey_v1_utils_utils_pb.EmptyMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_keys_keys_pb.KeyPair) => void): grpc.ClientUnaryCall; public keysKeyPairRoot(request: polykey_v1_utils_utils_pb.EmptyMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_keys_keys_pb.KeyPair) => void): grpc.ClientUnaryCall; @@ -963,16 +938,11 @@ export class ClientServiceClient extends grpc.Client implements IClientServiceCl public vaultsClone(request: polykey_v1_vaults_vaults_pb.Clone, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; public vaultsClone(request: polykey_v1_vaults_vaults_pb.Clone, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; public vaultsClone(request: polykey_v1_vaults_vaults_pb.Clone, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsScan(request: polykey_v1_nodes_nodes_pb.Node, options?: Partial): grpc.ClientReadableStream; - public vaultsScan(request: polykey_v1_nodes_nodes_pb.Node, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; public vaultsSecretsList(request: polykey_v1_vaults_vaults_pb.Vault, options?: Partial): grpc.ClientReadableStream; public vaultsSecretsList(request: polykey_v1_vaults_vaults_pb.Vault, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; public vaultsSecretsMkdir(request: polykey_v1_vaults_vaults_pb.Mkdir, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; public vaultsSecretsMkdir(request: polykey_v1_vaults_vaults_pb.Mkdir, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; public vaultsSecretsMkdir(request: polykey_v1_vaults_vaults_pb.Mkdir, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsSecretsStat(request: polykey_v1_vaults_vaults_pb.Vault, callback: (error: grpc.ServiceError | null, response: polykey_v1_vaults_vaults_pb.Stat) => void): grpc.ClientUnaryCall; - public vaultsSecretsStat(request: polykey_v1_vaults_vaults_pb.Vault, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_vaults_vaults_pb.Stat) => void): grpc.ClientUnaryCall; - public vaultsSecretsStat(request: polykey_v1_vaults_vaults_pb.Vault, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_vaults_vaults_pb.Stat) => void): grpc.ClientUnaryCall; public vaultsSecretsDelete(request: polykey_v1_secrets_secrets_pb.Secret, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; public vaultsSecretsDelete(request: polykey_v1_secrets_secrets_pb.Secret, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; public vaultsSecretsDelete(request: polykey_v1_secrets_secrets_pb.Secret, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; @@ -991,14 +961,12 @@ export class ClientServiceClient extends grpc.Client implements IClientServiceCl public vaultsSecretsNewDir(request: polykey_v1_secrets_secrets_pb.Directory, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; public vaultsSecretsNewDir(request: polykey_v1_secrets_secrets_pb.Directory, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; public vaultsSecretsNewDir(request: polykey_v1_secrets_secrets_pb.Directory, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsPermissionsSet(request: polykey_v1_vaults_vaults_pb.PermSet, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsPermissionsSet(request: polykey_v1_vaults_vaults_pb.PermSet, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsPermissionsSet(request: polykey_v1_vaults_vaults_pb.PermSet, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsPermissionsUnset(request: polykey_v1_vaults_vaults_pb.PermUnset, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsPermissionsUnset(request: polykey_v1_vaults_vaults_pb.PermUnset, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsPermissionsUnset(request: polykey_v1_vaults_vaults_pb.PermUnset, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; - public vaultsPermissions(request: polykey_v1_vaults_vaults_pb.PermGet, options?: Partial): grpc.ClientReadableStream; - public vaultsPermissions(request: polykey_v1_vaults_vaults_pb.PermGet, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; + public vaultsShare(request: polykey_v1_vaults_vaults_pb.PermSet, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; + public vaultsShare(request: polykey_v1_vaults_vaults_pb.PermSet, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; + public vaultsShare(request: polykey_v1_vaults_vaults_pb.PermSet, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; + public vaultsUnshare(request: polykey_v1_vaults_vaults_pb.PermUnset, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; + public vaultsUnshare(request: polykey_v1_vaults_vaults_pb.PermUnset, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; + public vaultsUnshare(request: polykey_v1_vaults_vaults_pb.PermUnset, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_utils_utils_pb.StatusMessage) => void): grpc.ClientUnaryCall; public vaultsVersion(request: polykey_v1_vaults_vaults_pb.Version, callback: (error: grpc.ServiceError | null, response: polykey_v1_vaults_vaults_pb.VersionResult) => void): grpc.ClientUnaryCall; public vaultsVersion(request: polykey_v1_vaults_vaults_pb.Version, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: polykey_v1_vaults_vaults_pb.VersionResult) => void): grpc.ClientUnaryCall; public vaultsVersion(request: polykey_v1_vaults_vaults_pb.Version, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: polykey_v1_vaults_vaults_pb.VersionResult) => void): grpc.ClientUnaryCall; diff --git a/src/proto/js/polykey/v1/client_service_grpc_pb.js b/src/proto/js/polykey/v1/client_service_grpc_pb.js index 8f52b73ebf..3f4ea760f3 100644 --- a/src/proto/js/polykey/v1/client_service_grpc_pb.js +++ b/src/proto/js/polykey/v1/client_service_grpc_pb.js @@ -365,17 +365,6 @@ function deserialize_polykey_v1_vaults_Mkdir(buffer_arg) { return polykey_v1_vaults_vaults_pb.Mkdir.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_polykey_v1_vaults_PermGet(arg) { - if (!(arg instanceof polykey_v1_vaults_vaults_pb.PermGet)) { - throw new Error('Expected argument of type polykey.v1.vaults.PermGet'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_polykey_v1_vaults_PermGet(buffer_arg) { - return polykey_v1_vaults_vaults_pb.PermGet.deserializeBinary(new Uint8Array(buffer_arg)); -} - function serialize_polykey_v1_vaults_PermSet(arg) { if (!(arg instanceof polykey_v1_vaults_vaults_pb.PermSet)) { throw new Error('Expected argument of type polykey.v1.vaults.PermSet'); @@ -398,17 +387,6 @@ function deserialize_polykey_v1_vaults_PermUnset(buffer_arg) { return polykey_v1_vaults_vaults_pb.PermUnset.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_polykey_v1_vaults_Permission(arg) { - if (!(arg instanceof polykey_v1_vaults_vaults_pb.Permission)) { - throw new Error('Expected argument of type polykey.v1.vaults.Permission'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_polykey_v1_vaults_Permission(buffer_arg) { - return polykey_v1_vaults_vaults_pb.Permission.deserializeBinary(new Uint8Array(buffer_arg)); -} - function serialize_polykey_v1_vaults_Pull(arg) { if (!(arg instanceof polykey_v1_vaults_vaults_pb.Pull)) { throw new Error('Expected argument of type polykey.v1.vaults.Pull'); @@ -431,17 +409,6 @@ function deserialize_polykey_v1_vaults_Rename(buffer_arg) { return polykey_v1_vaults_vaults_pb.Rename.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_polykey_v1_vaults_Stat(arg) { - if (!(arg instanceof polykey_v1_vaults_vaults_pb.Stat)) { - throw new Error('Expected argument of type polykey.v1.vaults.Stat'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_polykey_v1_vaults_Stat(buffer_arg) { - return polykey_v1_vaults_vaults_pb.Stat.deserializeBinary(new Uint8Array(buffer_arg)); -} - function serialize_polykey_v1_vaults_Vault(arg) { if (!(arg instanceof polykey_v1_vaults_vaults_pb.Vault)) { throw new Error('Expected argument of type polykey.v1.vaults.Vault'); @@ -579,6 +546,17 @@ nodesAdd: { responseSerialize: serialize_polykey_v1_nodes_NodeAddress, responseDeserialize: deserialize_polykey_v1_nodes_NodeAddress, }, + nodesScan: { + path: '/polykey.v1.ClientService/NodesScan', + requestStream: false, + responseStream: true, + requestType: polykey_v1_nodes_nodes_pb.Node, + responseType: polykey_v1_vaults_vaults_pb.List, + requestSerialize: serialize_polykey_v1_nodes_Node, + requestDeserialize: deserialize_polykey_v1_nodes_Node, + responseSerialize: serialize_polykey_v1_vaults_List, + responseDeserialize: deserialize_polykey_v1_vaults_List, + }, // Keys keysKeyPairRoot: { path: '/polykey.v1.ClientService/KeysKeyPairRoot', @@ -757,17 +735,6 @@ vaultsList: { responseSerialize: serialize_polykey_v1_utils_StatusMessage, responseDeserialize: deserialize_polykey_v1_utils_StatusMessage, }, - vaultsScan: { - path: '/polykey.v1.ClientService/VaultsScan', - requestStream: false, - responseStream: true, - requestType: polykey_v1_nodes_nodes_pb.Node, - responseType: polykey_v1_vaults_vaults_pb.List, - requestSerialize: serialize_polykey_v1_nodes_Node, - requestDeserialize: deserialize_polykey_v1_nodes_Node, - responseSerialize: serialize_polykey_v1_vaults_List, - responseDeserialize: deserialize_polykey_v1_vaults_List, - }, vaultsSecretsList: { path: '/polykey.v1.ClientService/VaultsSecretsList', requestStream: false, @@ -790,17 +757,6 @@ vaultsList: { responseSerialize: serialize_polykey_v1_utils_StatusMessage, responseDeserialize: deserialize_polykey_v1_utils_StatusMessage, }, - vaultsSecretsStat: { - path: '/polykey.v1.ClientService/VaultsSecretsStat', - requestStream: false, - responseStream: false, - requestType: polykey_v1_vaults_vaults_pb.Vault, - responseType: polykey_v1_vaults_vaults_pb.Stat, - requestSerialize: serialize_polykey_v1_vaults_Vault, - requestDeserialize: deserialize_polykey_v1_vaults_Vault, - responseSerialize: serialize_polykey_v1_vaults_Stat, - responseDeserialize: deserialize_polykey_v1_vaults_Stat, - }, vaultsSecretsDelete: { path: '/polykey.v1.ClientService/VaultsSecretsDelete', requestStream: false, @@ -867,8 +823,8 @@ vaultsList: { responseSerialize: serialize_polykey_v1_utils_StatusMessage, responseDeserialize: deserialize_polykey_v1_utils_StatusMessage, }, - vaultsPermissionsSet: { - path: '/polykey.v1.ClientService/VaultsPermissionsSet', + vaultsShare: { + path: '/polykey.v1.ClientService/VaultsShare', requestStream: false, responseStream: false, requestType: polykey_v1_vaults_vaults_pb.PermSet, @@ -878,8 +834,8 @@ vaultsList: { responseSerialize: serialize_polykey_v1_utils_StatusMessage, responseDeserialize: deserialize_polykey_v1_utils_StatusMessage, }, - vaultsPermissionsUnset: { - path: '/polykey.v1.ClientService/VaultsPermissionsUnset', + vaultsUnshare: { + path: '/polykey.v1.ClientService/VaultsUnshare', requestStream: false, responseStream: false, requestType: polykey_v1_vaults_vaults_pb.PermUnset, @@ -889,17 +845,6 @@ vaultsList: { responseSerialize: serialize_polykey_v1_utils_StatusMessage, responseDeserialize: deserialize_polykey_v1_utils_StatusMessage, }, - vaultsPermissions: { - path: '/polykey.v1.ClientService/VaultsPermissions', - requestStream: false, - responseStream: true, - requestType: polykey_v1_vaults_vaults_pb.PermGet, - responseType: polykey_v1_vaults_vaults_pb.Permission, - requestSerialize: serialize_polykey_v1_vaults_PermGet, - requestDeserialize: deserialize_polykey_v1_vaults_PermGet, - responseSerialize: serialize_polykey_v1_vaults_Permission, - responseDeserialize: deserialize_polykey_v1_vaults_Permission, - }, vaultsVersion: { path: '/polykey.v1.ClientService/VaultsVersion', requestStream: false, diff --git a/src/proto/js/polykey/v1/vaults/vaults_pb.d.ts b/src/proto/js/polykey/v1/vaults/vaults_pb.d.ts index 072887bfef..497728120c 100644 --- a/src/proto/js/polykey/v1/vaults/vaults_pb.d.ts +++ b/src/proto/js/polykey/v1/vaults/vaults_pb.d.ts @@ -117,6 +117,11 @@ export class Pull extends jspb.Message { getNode(): polykey_v1_nodes_nodes_pb.Node | undefined; setNode(value?: polykey_v1_nodes_nodes_pb.Node): Pull; + hasPullVault(): boolean; + clearPullVault(): void; + getPullVault(): Vault | undefined; + setPullVault(value?: Vault): Pull; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Pull.AsObject; static toObject(includeInstance: boolean, msg: Pull): Pull.AsObject; @@ -131,6 +136,7 @@ export namespace Pull { export type AsObject = { vault?: Vault.AsObject, node?: polykey_v1_nodes_nodes_pb.Node.AsObject, + pullVault?: Vault.AsObject, } } diff --git a/src/proto/js/polykey/v1/vaults/vaults_pb.js b/src/proto/js/polykey/v1/vaults/vaults_pb.js index 8b6d64bbbd..c24615dc6f 100644 --- a/src/proto/js/polykey/v1/vaults/vaults_pb.js +++ b/src/proto/js/polykey/v1/vaults/vaults_pb.js @@ -1149,7 +1149,8 @@ proto.polykey.v1.vaults.Pull.prototype.toObject = function(opt_includeInstance) proto.polykey.v1.vaults.Pull.toObject = function(includeInstance, msg) { var f, obj = { vault: (f = msg.getVault()) && proto.polykey.v1.vaults.Vault.toObject(includeInstance, f), - node: (f = msg.getNode()) && polykey_v1_nodes_nodes_pb.Node.toObject(includeInstance, f) + node: (f = msg.getNode()) && polykey_v1_nodes_nodes_pb.Node.toObject(includeInstance, f), + pullVault: (f = msg.getPullVault()) && proto.polykey.v1.vaults.Vault.toObject(includeInstance, f) }; if (includeInstance) { @@ -1196,6 +1197,11 @@ proto.polykey.v1.vaults.Pull.deserializeBinaryFromReader = function(msg, reader) reader.readMessage(value,polykey_v1_nodes_nodes_pb.Node.deserializeBinaryFromReader); msg.setNode(value); break; + case 3: + var value = new proto.polykey.v1.vaults.Vault; + reader.readMessage(value,proto.polykey.v1.vaults.Vault.deserializeBinaryFromReader); + msg.setPullVault(value); + break; default: reader.skipField(); break; @@ -1241,6 +1247,14 @@ proto.polykey.v1.vaults.Pull.serializeBinaryToWriter = function(message, writer) polykey_v1_nodes_nodes_pb.Node.serializeBinaryToWriter ); } + f = message.getPullVault(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.polykey.v1.vaults.Vault.serializeBinaryToWriter + ); + } }; @@ -1318,6 +1332,43 @@ proto.polykey.v1.vaults.Pull.prototype.hasNode = function() { }; +/** + * optional Vault pull_vault = 3; + * @return {?proto.polykey.v1.vaults.Vault} + */ +proto.polykey.v1.vaults.Pull.prototype.getPullVault = function() { + return /** @type{?proto.polykey.v1.vaults.Vault} */ ( + jspb.Message.getWrapperField(this, proto.polykey.v1.vaults.Vault, 3)); +}; + + +/** + * @param {?proto.polykey.v1.vaults.Vault|undefined} value + * @return {!proto.polykey.v1.vaults.Pull} returns this +*/ +proto.polykey.v1.vaults.Pull.prototype.setPullVault = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.polykey.v1.vaults.Pull} returns this + */ +proto.polykey.v1.vaults.Pull.prototype.clearPullVault = function() { + return this.setPullVault(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.polykey.v1.vaults.Pull.prototype.hasPullVault = function() { + return jspb.Message.getField(this, 3) != null; +}; + + @@ -1443,13 +1494,6 @@ proto.polykey.v1.vaults.Clone.serializeBinaryToWriter = function(message, writer polykey_v1_nodes_nodes_pb.Node.serializeBinaryToWriter ); } - f = message.getVaultId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } }; diff --git a/src/proto/schemas/Agent.proto b/src/proto/schemas/Agent.proto deleted file mode 100644 index 80890513c9..0000000000 --- a/src/proto/schemas/Agent.proto +++ /dev/null @@ -1,130 +0,0 @@ -syntax = "proto3"; - -package agentInterface; - -service Agent { - - // Echo - rpc Echo(EchoMessage) returns (EchoMessage) {}; - - // Vaults - rpc VaultsGitInfoGet (InfoRequest) returns (stream PackChunk) {}; - rpc VaultsGitPackGet(stream PackChunk) returns (stream PackChunk) {}; - - // Nodes - rpc NodesClosestLocalNodesGet (NodeIdMessage) returns (NodeTableMessage) {} - rpc NodesClaimsGet (ClaimTypeMessage) returns (ClaimsMessage) {} - rpc NodesChainDataGet (EmptyMessage) returns (ChainDataMessage) {} - rpc NodesHolePunchMessageSend (RelayMessage) returns (EmptyMessage) {} - rpc NodesCrossSignClaim (stream CrossSignMessage) returns (stream CrossSignMessage) {} - rpc NodesScan (NodeIdMessage) returns (stream VaultListMessage) {}; - - // Notifications - rpc NotificationsSend (NotificationMessage) returns (EmptyMessage) {} -} - -message EmptyMessage {} - -// Echo messages -message EchoMessage { - string challenge = 1; -} - -// Vaults messages -message InfoRequest { - string vault_id = 1; -} - -message PackChunk { - bytes chunk = 1; -} - -message PackRequest { - string id = 1; - bytes body = 2; -} - -message VaultListMessage { - string vault_name = 1; - string vault_id = 2; -} - -message VaultPermMessage { - string node_id = 1; - string vault_id = 2; -} - -message PermissionMessage { - bool permission = 1; -} - -//Shared messages -message NodeIdMessage { - string node_id = 1; -} - -//Nodes messages -message ConnectionMessage { - string a_id = 1; - string b_id = 2; - string a_ip = 3; - string b_ip = 4; -} - -message RelayMessage { - string src_id = 1; - string target_id = 2; - string egress_address = 3; - string signature = 4; -} - -message NodeAddressMessage { - string ip = 1; - int32 port = 2; -} - -message NodeTableMessage { - map node_table = 1; -} - -// The specific ClaimType of Claims to get -message ClaimTypeMessage { - string claim_type = 1; -} - -// A list of base64url encoded claims -message ClaimsMessage { - repeated ClaimMessage claims = 1; -} - -// A map of ClaimId -> ClaimEncoded -message ChainDataMessage { - map chain_data = 1; -} - -// The components of a ClaimEncoded type (i.e. a GeneralJWS) for GRPC transport -message ClaimMessage { - string payload = 1; // base64 encoded - repeated SignatureMessage signatures = 2; -} - -message SignatureMessage { - string signature = 1; // base64 encoded - string protected = 2; // base64 encoded ('protected' header field in GeneralJWS) -} - -// Notification messages -message NotificationMessage { - string content = 1; -} - -// Claims messages -message ClaimIntermediaryMessage { - string payload = 1; - SignatureMessage signature = 2; -} - -message CrossSignMessage { - ClaimIntermediaryMessage singly_signed_claim = 1; - ClaimMessage doubly_signed_claim = 2; -} diff --git a/src/proto/schemas/Client.proto b/src/proto/schemas/Client.proto deleted file mode 100644 index fe3b5d1334..0000000000 --- a/src/proto/schemas/Client.proto +++ /dev/null @@ -1,332 +0,0 @@ -syntax = "proto3"; - -package clientInterface; - -service Client { - rpc Echo(EchoMessage) returns (EchoMessage) {}; - - // Agent - rpc AgentStop(EmptyMessage) returns (EmptyMessage) {}; - - // Session - rpc SessionUnlock (PasswordMessage) returns (SessionTokenMessage) {}; - rpc SessionRefresh (EmptyMessage) returns (SessionTokenMessage) {}; - rpc SessionLockAll (EmptyMessage) returns (StatusMessage) {}; - - // Nodes - rpc NodesAdd(NodeAddressMessage) returns (EmptyMessage) {}; - rpc NodesPing(NodeMessage) returns (StatusMessage) {}; - rpc NodesClaim(NodeClaimMessage) returns (StatusMessage) {}; - rpc NodesFind(NodeMessage) returns (NodeAddressMessage) {}; - rpc NodesScan(NodeMessage) returns (stream VaultListMessage) {}; - - // Keys - rpc KeysKeyPairRoot (EmptyMessage) returns (KeyPairMessage) {}; - rpc KeysKeyPairReset (KeyMessage) returns (EmptyMessage) {}; - rpc KeysKeyPairRenew (KeyMessage) returns (EmptyMessage) {}; - rpc KeysEncrypt (CryptoMessage) returns (CryptoMessage) {}; - rpc KeysDecrypt (CryptoMessage) returns (CryptoMessage) {}; - rpc KeysSign (CryptoMessage) returns (CryptoMessage) {}; - rpc KeysVerify (CryptoMessage) returns (StatusMessage) {}; - rpc KeysPasswordChange (PasswordMessage) returns (EmptyMessage) {}; - rpc KeysCertsGet (EmptyMessage) returns (CertificateMessage) {}; - rpc KeysCertsChainGet (EmptyMessage) returns (stream CertificateMessage) {}; - - // Vaults - rpc VaultsList(EmptyMessage) returns (stream VaultListMessage) {}; - rpc VaultsCreate(VaultMessage) returns (VaultMessage) {}; - rpc VaultsRename(VaultRenameMessage) returns (VaultMessage) {}; - rpc VaultsDelete(VaultMessage) returns (StatusMessage) {}; - rpc VaultsPull(VaultPullMessage) returns (StatusMessage) {}; - rpc VaultsClone(VaultCloneMessage) returns (StatusMessage) {}; - rpc VaultsSecretsList(VaultMessage) returns (stream SecretMessage) {}; - rpc VaultsSecretsMkdir(VaultMkdirMessage) returns (StatusMessage) {}; - rpc VaultsSecretsDelete(SecretMessage) returns (StatusMessage) {}; - rpc VaultsSecretsEdit(SecretMessage) returns (StatusMessage) {}; - rpc VaultsSecretsGet(SecretMessage) returns (SecretMessage) {}; - rpc VaultsSecretsRename(SecretRenameMessage) returns (StatusMessage) {}; - rpc VaultsSecretsNew(SecretMessage) returns (StatusMessage) {}; - rpc VaultsSecretsNewDir(SecretDirectoryMessage) returns (StatusMessage) {}; - rpc VaultsShare(SetVaultPermMessage) returns (StatusMessage) {}; - rpc VaultsUnshare(UnsetVaultPermMessage) returns (StatusMessage) {} - rpc VaultsVersion(VaultsVersionMessage) returns (VaultsVersionResultMessage) {}; - rpc VaultsLog(VaultsLogMessage) returns (stream VaultsLogEntryMessage) {}; - - // Identities - rpc IdentitiesAuthenticate(ProviderMessage) returns (stream ProviderMessage) {}; - rpc IdentitiesTokenPut(TokenSpecificMessage) returns (EmptyMessage) {}; - rpc IdentitiesTokenGet(ProviderMessage) returns (TokenMessage) {}; - rpc IdentitiesTokenDelete(ProviderMessage) returns (EmptyMessage) {}; - rpc IdentitiesProvidersList(EmptyMessage) returns (ProviderMessage) {}; - rpc IdentitiesInfoGet(ProviderMessage) returns (ProviderMessage) {}; - rpc IdentitiesInfoGetConnected(ProviderSearchMessage) returns (stream IdentityInfoMessage) {}; - rpc IdentitiesClaim(ProviderMessage) returns (EmptyMessage) {}; - - // Gestalts - rpc GestaltsGestaltList(EmptyMessage) returns (stream GestaltMessage) {}; - rpc GestaltsGestaltGetByNode(NodeMessage) returns (GestaltGraphMessage) {}; - rpc GestaltsGestaltGetByIdentity(ProviderMessage) returns (GestaltGraphMessage) {}; - rpc GestaltsDiscoveryByNode(NodeMessage) returns (EmptyMessage) {}; - rpc GestaltsDiscoveryByIdentity(ProviderMessage) returns (EmptyMessage) {}; - rpc GestaltsActionsGetByNode(NodeMessage) returns (ActionsMessage) {}; - rpc GestaltsActionsGetByIdentity(ProviderMessage) returns (ActionsMessage) {}; - rpc GestaltsActionsSetByNode(SetActionsMessage) returns (EmptyMessage) {}; - rpc GestaltsActionsSetByIdentity(SetActionsMessage) returns (EmptyMessage) {}; - rpc GestaltsActionsUnsetByNode(SetActionsMessage) returns (EmptyMessage) {}; - rpc GestaltsActionsUnsetByIdentity(SetActionsMessage) returns (EmptyMessage) {}; - - // Notifications - rpc NotificationsSend(NotificationsSendMessage) returns (EmptyMessage) {}; - rpc NotificationsRead(NotificationsReadMessage) returns (NotificationsListMessage) {}; - rpc NotificationsClear(EmptyMessage) returns (EmptyMessage) {}; -} - -message EmptyMessage {} - -message StatusMessage { - bool success = 1; -} - -message EchoMessage { - string challenge = 1; -} - -// Session - -message PasswordMessage { - oneof password_or_file{ - string password = 1; - string password_file = 2; - } -} - -message SessionTokenMessage { - string token = 1; -} - -// Vaults - -message VaultListMessage { - string vault_name = 1; - string vault_id = 2; -} - -message VaultMessage { - string name_or_Id = 1; -} - -message VaultRenameMessage { - VaultMessage vault = 1; - string new_name = 2; -} - -message VaultMkdirMessage { - VaultMessage vault = 1; - string dir_name = 2; - bool recursive = 3; -} - -message VaultPullMessage { - VaultMessage vault = 1; - NodeMessage node = 2; - VaultMessage pull_vault = 3; -} - -message VaultCloneMessage { - VaultMessage vault = 1; - NodeMessage node = 2; -} - -message SecretRenameMessage { - SecretMessage old_secret = 1; - string new_name = 2; -} - -message SecretMessage { - VaultMessage vault = 1; - string secret_name = 2; - bytes secret_content = 3; -} - -message SecretDirectoryMessage { - VaultMessage vault = 1; - string secret_directory = 2; -} - -message StatMessage { - string stats = 1; -} - -message SetVaultPermMessage { - VaultMessage vault = 1; - NodeMessage node = 2; -} - -message UnsetVaultPermMessage { - VaultMessage vault = 1; - NodeMessage node = 2; -} - -message GetVaultPermMessage { - VaultMessage vault = 1; - NodeMessage node = 2; -} - -message PermissionMessage { - string node_id = 1; - string action = 2; -} - -message VaultsVersionMessage { - VaultMessage vault = 1; - string version_id = 2; -} - -message VaultsVersionResultMessage { - bool is_latest_version = 1; -} - -message VaultsLogMessage { - VaultMessage vault = 1; - int32 log_depth = 3; - string commit_id = 4; -} - -message VaultsLogEntryMessage { - string oid = 1; - string committer = 2; - uint64 time_stamp = 4; - string message = 3; -} - -// Nodes - -message NodeMessage { - string node_id = 1; -} - -message NodeAddressMessage { - string node_id = 1; - string host = 2; - int32 port = 3; -} - -message NodeClaimMessage { - string node_id = 1; - bool force_invite = 2; -} - -// Keys - -message CryptoMessage { - string data = 1; - string signature = 2; -} - -message KeyMessage { - string name = 1; - string key = 2; -} - -message KeyPairMessage { - string public = 1; - string private = 2; -} - -message CertificateMessage { - string cert = 1; -} - - -// Identities - -message ProviderMessage { - string provider_id = 1; - string message = 2; -} - -message TokenSpecificMessage { - ProviderMessage provider = 1; - string token = 2; -} - -message TokenMessage { - string token = 1; -} - -message ProviderSearchMessage { - ProviderMessage provider = 1; - repeated string search_term = 2; -} - -message IdentityInfoMessage { - ProviderMessage provider = 1; - string name = 3; - string email = 4; - string url = 5; -} - -// Gestalts - -message GestaltMessage { - string name = 1; -} - -message GestaltGraphMessage { - string gestalt_graph = 1; -} - -message GestaltTrustMessage { - string provider = 1; - string name = 2; - bool set = 3; -} - -// Permissions -message ActionsMessage { - repeated string action = 1; -} - -message SetActionsMessage { - oneof node_or_provider { - NodeMessage node = 1; - ProviderMessage identity = 2; - } - string action = 3; -} - -// Notifications -message NotificationsMessage { - oneof data { - GeneralTypeMessage general = 1; - string gestalt_invite = 2; - VaultShareTypeMessage vault_share = 3; - }; - string sender_id = 4; - bool is_read = 5; -} - -message NotificationsSendMessage { - string receiver_id = 1; - GeneralTypeMessage data = 2; -} - -message NotificationsReadMessage { - bool unread = 1; - string number = 2; - string order = 3; -} - -message NotificationsListMessage { - repeated NotificationsMessage notification = 1; -} - -message GeneralTypeMessage { - string message = 1; -} - -message VaultShareTypeMessage { - string vault_id = 1; - string vault_name = 2; - repeated string actions = 3; -} diff --git a/src/proto/schemas/polykey/v1/agent_service.proto b/src/proto/schemas/polykey/v1/agent_service.proto index 5c27703ed1..955d9be59b 100644 --- a/src/proto/schemas/polykey/v1/agent_service.proto +++ b/src/proto/schemas/polykey/v1/agent_service.proto @@ -15,8 +15,6 @@ service AgentService { // Vaults rpc VaultsGitInfoGet (polykey.v1.vaults.Vault) returns (stream polykey.v1.vaults.PackChunk); rpc VaultsGitPackGet(stream polykey.v1.vaults.PackChunk) returns (stream polykey.v1.vaults.PackChunk); - rpc VaultsScan (polykey.v1.nodes.Node) returns (stream polykey.v1.vaults.Vault); - rpc VaultsPermisssionsCheck (polykey.v1.vaults.NodePermission) returns (polykey.v1.vaults.NodePermissionAllowed); // Nodes rpc NodesClosestLocalNodesGet (polykey.v1.nodes.Node) returns (polykey.v1.nodes.NodeTable); @@ -24,6 +22,7 @@ service AgentService { rpc NodesChainDataGet (polykey.v1.utils.EmptyMessage) returns (polykey.v1.nodes.ChainData); rpc NodesHolePunchMessageSend (polykey.v1.nodes.Relay) returns (polykey.v1.utils.EmptyMessage); rpc NodesCrossSignClaim (stream polykey.v1.nodes.CrossSign) returns (stream polykey.v1.nodes.CrossSign); + rpc NodesScan (polykey.v1.nodes.Node) returns (stream polykey.v1.vaults.List); // Notifications rpc NotificationsSend (polykey.v1.notifications.AgentNotification) returns (polykey.v1.utils.EmptyMessage); diff --git a/src/proto/schemas/polykey/v1/client_service.proto b/src/proto/schemas/polykey/v1/client_service.proto index 17a730f7cc..9903c3ceb7 100644 --- a/src/proto/schemas/polykey/v1/client_service.proto +++ b/src/proto/schemas/polykey/v1/client_service.proto @@ -29,6 +29,7 @@ service ClientService { rpc NodesPing(polykey.v1.nodes.Node) returns (polykey.v1.utils.StatusMessage); rpc NodesClaim(polykey.v1.nodes.Claim) returns (polykey.v1.utils.StatusMessage); rpc NodesFind(polykey.v1.nodes.Node) returns (polykey.v1.nodes.NodeAddress); + rpc NodesScan(polykey.v1.nodes.Node) returns (stream polykey.v1.vaults.List); // Keys rpc KeysKeyPairRoot (polykey.v1.utils.EmptyMessage) returns (polykey.v1.keys.KeyPair); @@ -49,19 +50,16 @@ service ClientService { rpc VaultsDelete(polykey.v1.vaults.Vault) returns (polykey.v1.utils.StatusMessage); rpc VaultsPull(polykey.v1.vaults.Pull) returns (polykey.v1.utils.StatusMessage); rpc VaultsClone(polykey.v1.vaults.Clone) returns (polykey.v1.utils.StatusMessage); - rpc VaultsScan(polykey.v1.nodes.Node) returns (stream polykey.v1.vaults.List); rpc VaultsSecretsList(polykey.v1.vaults.Vault) returns (stream polykey.v1.secrets.Secret); rpc VaultsSecretsMkdir(polykey.v1.vaults.Mkdir) returns (polykey.v1.utils.StatusMessage); - rpc VaultsSecretsStat(polykey.v1.vaults.Vault) returns (polykey.v1.vaults.Stat); rpc VaultsSecretsDelete(polykey.v1.secrets.Secret) returns (polykey.v1.utils.StatusMessage); rpc VaultsSecretsEdit(polykey.v1.secrets.Secret) returns (polykey.v1.utils.StatusMessage); rpc VaultsSecretsGet(polykey.v1.secrets.Secret) returns (polykey.v1.secrets.Secret); rpc VaultsSecretsRename(polykey.v1.secrets.Rename) returns (polykey.v1.utils.StatusMessage); rpc VaultsSecretsNew(polykey.v1.secrets.Secret) returns (polykey.v1.utils.StatusMessage); rpc VaultsSecretsNewDir(polykey.v1.secrets.Directory) returns (polykey.v1.utils.StatusMessage); - rpc VaultsPermissionsSet(polykey.v1.vaults.PermSet) returns (polykey.v1.utils.StatusMessage); - rpc VaultsPermissionsUnset(polykey.v1.vaults.PermUnset) returns (polykey.v1.utils.StatusMessage); - rpc VaultsPermissions(polykey.v1.vaults.PermGet) returns (stream polykey.v1.vaults.Permission); + rpc VaultsShare(polykey.v1.vaults.PermSet) returns (polykey.v1.utils.StatusMessage); + rpc VaultsUnshare(polykey.v1.vaults.PermUnset) returns (polykey.v1.utils.StatusMessage); rpc VaultsVersion(polykey.v1.vaults.Version) returns (polykey.v1.vaults.VersionResult); rpc VaultsLog(polykey.v1.vaults.Log) returns (stream polykey.v1.vaults.LogEntry); diff --git a/src/proto/schemas/polykey/v1/vaults/vaults.proto b/src/proto/schemas/polykey/v1/vaults/vaults.proto index efd2d45b0a..a013eb94c3 100644 --- a/src/proto/schemas/polykey/v1/vaults/vaults.proto +++ b/src/proto/schemas/polykey/v1/vaults/vaults.proto @@ -32,6 +32,7 @@ message Mkdir { message Pull { Vault vault = 1; polykey.v1.nodes.Node node = 2; + Vault pull_vault = 3; } message Clone { diff --git a/src/vaults/VaultManager.ts b/src/vaults/VaultManager.ts index 11f238882d..22a0cecf7a 100644 --- a/src/vaults/VaultManager.ts +++ b/src/vaults/VaultManager.ts @@ -8,7 +8,7 @@ import type { Vault, } from './types'; import type { FileSystem, POJO } from '../types'; -import type { WorkerManager } from '../workers'; +import type { PolykeyWorkerManagerInterface } from '../workers/types'; import type { NodeId } from '../nodes/types'; import type { KeyManager } from '../keys'; import type { NodeManager } from '../nodes'; @@ -53,7 +53,6 @@ class VaultManager { protected vaultsNamesDbDomain: Array; protected logger: Logger; - protected workerManager?: WorkerManager; static async createVaultManager({ fresh = false, @@ -436,19 +435,14 @@ class VaultManager { } } catch (err) { error = err; - throw err; - } finally { - if (error) { - // eslint-disable-next-line - return { - url: url, - method: method, - body: [], - headers: headers, - statusCode: 400, - statusMessage: 'Server Error', - }; - } + return { + url: url, + method: method, + body: [], + headers: headers, + statusCode: 400, + statusMessage: 'Server Error', + }; } }, }; @@ -601,10 +595,8 @@ class VaultManager { } this.logger.info( `Pulling Vault ${vaultsUtils.makeVaultIdPretty( - pullVaultNameOrId, - )} on Node ${pullNodeId} into Vault ${vaultsUtils.makeVaultIdPretty( vaultId, - )}`, + )} from Node ${pullNodeId}`, ); const nodeConnection = await this.nodeManager.getConnectionToNode( pullNodeId!, @@ -651,19 +643,14 @@ class VaultManager { } } catch (err) { error = err; - throw err; - } finally { - if (error) { - // eslint-disable-next-line - return { - url: url, - method: method, - body: [], - headers: headers, - statusCode: 400, - statusMessage: 'Server Error', - }; - } + return { + url: url, + method: method, + body: [], + headers: headers, + statusCode: 400, + statusMessage: 'Server Error', + }; } }, }; @@ -753,11 +740,9 @@ class VaultManager { const vault = await this.getVault(vaultId); await vault.readWorkingDirectory(); this.logger.info( - `Pulling Vault ${vaultsUtils.makeVaultIdPretty( - pullVaultNameOrId, - )} on Node ${pullNodeId} into Vault ${vaultsUtils.makeVaultIdPretty( + `Pulled Vault ${vaultsUtils.makeVaultIdPretty( vaultId, - )}`, + )} from Node ${pullNodeId}`, ); return vault; }, [vaultId]); diff --git a/tests/agent/GRPCClientAgent.test.ts b/tests/agent/GRPCClientAgent.test.ts index 2673224d71..8b8257870c 100644 --- a/tests/agent/GRPCClientAgent.test.ts +++ b/tests/agent/GRPCClientAgent.test.ts @@ -17,7 +17,6 @@ import { ACL } from '@/acl'; import { GestaltGraph } from '@/gestalts'; import { GRPCClientAgent } from '@/agent'; import * as utilsPB from '@/proto/js/polykey/v1/utils/utils_pb'; -import * as vaultsPB from '@/proto/js/polykey/v1/vaults/vaults_pb'; import * as nodesPB from '@/proto/js/polykey/v1/nodes/nodes_pb'; import { ForwardProxy, ReverseProxy } from '@/network'; import { DB } from '@matrixai/db'; diff --git a/tests/vaults/VaultManager.test.ts b/tests/vaults/VaultManager.test.ts index efc92d8291..bc9e6e6d3c 100644 --- a/tests/vaults/VaultManager.test.ts +++ b/tests/vaults/VaultManager.test.ts @@ -440,8 +440,12 @@ describe('VaultManager', () => { targetRevTLSConfig: TLSConfig, altRevTLSConfig: TLSConfig; - let agentService: IAgentServiceServer, targetAgentService: IAgentServiceServer, altAgentService: IAgentServiceServer; - let agentServer: GRPCServer, targetServer: GRPCServer, altServer: GRPCServer; + let agentService: IAgentServiceServer, + targetAgentService: IAgentServiceServer, + altAgentService: IAgentServiceServer; + let agentServer: GRPCServer, + targetServer: GRPCServer, + altServer: GRPCServer; let targetRevProxy: ReverseProxy, altRevProxy: ReverseProxy;