-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathinproc.pb.ts
54 lines (50 loc) · 1.72 KB
/
inproc.pb.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// @generated by protoc-gen-es-lite unknown with parameter "target=ts,ts_nocheck=false"
// @generated from file github.com/aperturerobotics/bifrost/transport/inproc/inproc.proto (package inproc, syntax proto3)
/* eslint-disable */
import { Opts } from '../common/pconn/pconn.pb.js'
import { DialerOpts } from '../common/dialer/dialer.pb.js'
import type { MessageType, PartialFieldInfo } from '@aptre/protobuf-es-lite'
import { createMessageType, ScalarType } from '@aptre/protobuf-es-lite'
export const protobufPackage = 'inproc'
/**
* Config is the configuration for the inproc testing transport.
*
* @generated from message inproc.Config
*/
export interface Config {
/**
* TransportPeerID sets the peer ID to attach the transport to.
* If unset, attaches to any running peer with a private key.
*
* @generated from field: string transport_peer_id = 1;
*/
transportPeerId?: string
/**
* PacketOpts are options to set on the packet connection.
*
* @generated from field: pconn.Opts packet_opts = 2;
*/
packetOpts?: Opts
/**
* Dialers maps peer IDs to dialers.
*
* @generated from field: map<string, dialer.DialerOpts> dialers = 3;
*/
dialers?: { [key: string]: DialerOpts }
}
// Config contains the message type declaration for Config.
export const Config: MessageType<Config> = createMessageType({
typeName: 'inproc.Config',
fields: [
{ no: 1, name: 'transport_peer_id', kind: 'scalar', T: ScalarType.STRING },
{ no: 2, name: 'packet_opts', kind: 'message', T: () => Opts },
{
no: 3,
name: 'dialers',
kind: 'map',
K: ScalarType.STRING,
V: { kind: 'message', T: () => DialerOpts },
},
] as readonly PartialFieldInfo[],
packedByDefault: true,
})