-
Notifications
You must be signed in to change notification settings - Fork 35
/
manifest-proto.ts
29 lines (27 loc) · 1.45 KB
/
manifest-proto.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
/**
* @license
* Copyright (c) 2020 Google Inc. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* Code distributed by Google as part of this project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/
import protobuf from 'protobufjs';
import {runfilesDir} from './runfiles-dir.oss.js';
// These variables store classes that deal with protos, upper case name is justified.
// tslint:disable: variable-name
const RootNamespace = protobuf.loadSync([
runfilesDir + 'java/arcs/core/data/proto/annotation.proto',
runfilesDir + 'java/arcs/core/data/proto/manifest.proto',
runfilesDir + 'java/arcs/core/data/proto/policy.proto',
]);
export const DirectionEnum = RootNamespace.lookupEnum('arcs.Direction');
export const FateEnum = RootNamespace.lookupEnum('arcs.Fate');
export const ManifestProto = RootNamespace.lookupType('arcs.ManifestProto');
export const OperatorEnum = RootNamespace.lookupEnum('arcs.OPERATOR');
export const PolicyFieldUsageEnum = RootNamespace.lookupEnum('arcs.PolicyFieldProto.UsageType');
export const PolicyProto = RootNamespace.lookupType('arcs.PolicyProto');
export const PolicyRetentionMediumEnum = RootNamespace.lookupEnum('arcs.PolicyRetentionProto.Medium');
export const PrimitiveTypeEnum = RootNamespace.lookupEnum('arcs.PrimitiveTypeProto');
export const TypeProto = RootNamespace.lookupType('arcs.TypeProto');