@gitpod/ide-metrics-api-grpc 0.0.1-pd-ide-metrics.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,58 @@
1
+ // package: ide_metrics_api
2
+ // file: idemetrics.proto
3
+
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+
7
+ import * as grpc from "@grpc/grpc-js";
8
+ import * as idemetrics_pb from "./idemetrics_pb";
9
+
10
+ interface IMetricsServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
11
+ addCounter: IMetricsServiceService_IAddCounter;
12
+ observeHistogram: IMetricsServiceService_IObserveHistogram;
13
+ }
14
+
15
+ interface IMetricsServiceService_IAddCounter extends grpc.MethodDefinition<idemetrics_pb.AddCounterRequest, idemetrics_pb.AddCounterResponse> {
16
+ path: "/ide_metrics_api.MetricsService/AddCounter";
17
+ requestStream: false;
18
+ responseStream: false;
19
+ requestSerialize: grpc.serialize<idemetrics_pb.AddCounterRequest>;
20
+ requestDeserialize: grpc.deserialize<idemetrics_pb.AddCounterRequest>;
21
+ responseSerialize: grpc.serialize<idemetrics_pb.AddCounterResponse>;
22
+ responseDeserialize: grpc.deserialize<idemetrics_pb.AddCounterResponse>;
23
+ }
24
+ interface IMetricsServiceService_IObserveHistogram extends grpc.MethodDefinition<idemetrics_pb.ObserveHistogramRequest, idemetrics_pb.ObserveHistogramResponse> {
25
+ path: "/ide_metrics_api.MetricsService/ObserveHistogram";
26
+ requestStream: false;
27
+ responseStream: false;
28
+ requestSerialize: grpc.serialize<idemetrics_pb.ObserveHistogramRequest>;
29
+ requestDeserialize: grpc.deserialize<idemetrics_pb.ObserveHistogramRequest>;
30
+ responseSerialize: grpc.serialize<idemetrics_pb.ObserveHistogramResponse>;
31
+ responseDeserialize: grpc.deserialize<idemetrics_pb.ObserveHistogramResponse>;
32
+ }
33
+
34
+ export const MetricsServiceService: IMetricsServiceService;
35
+
36
+ export interface IMetricsServiceServer extends grpc.UntypedServiceImplementation {
37
+ addCounter: grpc.handleUnaryCall<idemetrics_pb.AddCounterRequest, idemetrics_pb.AddCounterResponse>;
38
+ observeHistogram: grpc.handleUnaryCall<idemetrics_pb.ObserveHistogramRequest, idemetrics_pb.ObserveHistogramResponse>;
39
+ }
40
+
41
+ export interface IMetricsServiceClient {
42
+ addCounter(request: idemetrics_pb.AddCounterRequest, callback: (error: grpc.ServiceError | null, response: idemetrics_pb.AddCounterResponse) => void): grpc.ClientUnaryCall;
43
+ addCounter(request: idemetrics_pb.AddCounterRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: idemetrics_pb.AddCounterResponse) => void): grpc.ClientUnaryCall;
44
+ addCounter(request: idemetrics_pb.AddCounterRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: idemetrics_pb.AddCounterResponse) => void): grpc.ClientUnaryCall;
45
+ observeHistogram(request: idemetrics_pb.ObserveHistogramRequest, callback: (error: grpc.ServiceError | null, response: idemetrics_pb.ObserveHistogramResponse) => void): grpc.ClientUnaryCall;
46
+ observeHistogram(request: idemetrics_pb.ObserveHistogramRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: idemetrics_pb.ObserveHistogramResponse) => void): grpc.ClientUnaryCall;
47
+ observeHistogram(request: idemetrics_pb.ObserveHistogramRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: idemetrics_pb.ObserveHistogramResponse) => void): grpc.ClientUnaryCall;
48
+ }
49
+
50
+ export class MetricsServiceClient extends grpc.Client implements IMetricsServiceClient {
51
+ constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
52
+ public addCounter(request: idemetrics_pb.AddCounterRequest, callback: (error: grpc.ServiceError | null, response: idemetrics_pb.AddCounterResponse) => void): grpc.ClientUnaryCall;
53
+ public addCounter(request: idemetrics_pb.AddCounterRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: idemetrics_pb.AddCounterResponse) => void): grpc.ClientUnaryCall;
54
+ public addCounter(request: idemetrics_pb.AddCounterRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: idemetrics_pb.AddCounterResponse) => void): grpc.ClientUnaryCall;
55
+ public observeHistogram(request: idemetrics_pb.ObserveHistogramRequest, callback: (error: grpc.ServiceError | null, response: idemetrics_pb.ObserveHistogramResponse) => void): grpc.ClientUnaryCall;
56
+ public observeHistogram(request: idemetrics_pb.ObserveHistogramRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: idemetrics_pb.ObserveHistogramResponse) => void): grpc.ClientUnaryCall;
57
+ public observeHistogram(request: idemetrics_pb.ObserveHistogramRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: idemetrics_pb.ObserveHistogramResponse) => void): grpc.ClientUnaryCall;
58
+ }
@@ -0,0 +1,82 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ // Original file comments:
4
+ // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
5
+ // Licensed under the GNU Affero General Public License (AGPL).
6
+ // See License-AGPL.txt in the project root for license information.
7
+ //
8
+ 'use strict';
9
+ var grpc = require('@grpc/grpc-js');
10
+ var idemetrics_pb = require('./idemetrics_pb.js');
11
+
12
+ function serialize_ide_metrics_api_AddCounterRequest(arg) {
13
+ if (!(arg instanceof idemetrics_pb.AddCounterRequest)) {
14
+ throw new Error('Expected argument of type ide_metrics_api.AddCounterRequest');
15
+ }
16
+ return Buffer.from(arg.serializeBinary());
17
+ }
18
+
19
+ function deserialize_ide_metrics_api_AddCounterRequest(buffer_arg) {
20
+ return idemetrics_pb.AddCounterRequest.deserializeBinary(new Uint8Array(buffer_arg));
21
+ }
22
+
23
+ function serialize_ide_metrics_api_AddCounterResponse(arg) {
24
+ if (!(arg instanceof idemetrics_pb.AddCounterResponse)) {
25
+ throw new Error('Expected argument of type ide_metrics_api.AddCounterResponse');
26
+ }
27
+ return Buffer.from(arg.serializeBinary());
28
+ }
29
+
30
+ function deserialize_ide_metrics_api_AddCounterResponse(buffer_arg) {
31
+ return idemetrics_pb.AddCounterResponse.deserializeBinary(new Uint8Array(buffer_arg));
32
+ }
33
+
34
+ function serialize_ide_metrics_api_ObserveHistogramRequest(arg) {
35
+ if (!(arg instanceof idemetrics_pb.ObserveHistogramRequest)) {
36
+ throw new Error('Expected argument of type ide_metrics_api.ObserveHistogramRequest');
37
+ }
38
+ return Buffer.from(arg.serializeBinary());
39
+ }
40
+
41
+ function deserialize_ide_metrics_api_ObserveHistogramRequest(buffer_arg) {
42
+ return idemetrics_pb.ObserveHistogramRequest.deserializeBinary(new Uint8Array(buffer_arg));
43
+ }
44
+
45
+ function serialize_ide_metrics_api_ObserveHistogramResponse(arg) {
46
+ if (!(arg instanceof idemetrics_pb.ObserveHistogramResponse)) {
47
+ throw new Error('Expected argument of type ide_metrics_api.ObserveHistogramResponse');
48
+ }
49
+ return Buffer.from(arg.serializeBinary());
50
+ }
51
+
52
+ function deserialize_ide_metrics_api_ObserveHistogramResponse(buffer_arg) {
53
+ return idemetrics_pb.ObserveHistogramResponse.deserializeBinary(new Uint8Array(buffer_arg));
54
+ }
55
+
56
+
57
+ var MetricsServiceService = exports.MetricsServiceService = {
58
+ addCounter: {
59
+ path: '/ide_metrics_api.MetricsService/AddCounter',
60
+ requestStream: false,
61
+ responseStream: false,
62
+ requestType: idemetrics_pb.AddCounterRequest,
63
+ responseType: idemetrics_pb.AddCounterResponse,
64
+ requestSerialize: serialize_ide_metrics_api_AddCounterRequest,
65
+ requestDeserialize: deserialize_ide_metrics_api_AddCounterRequest,
66
+ responseSerialize: serialize_ide_metrics_api_AddCounterResponse,
67
+ responseDeserialize: deserialize_ide_metrics_api_AddCounterResponse,
68
+ },
69
+ observeHistogram: {
70
+ path: '/ide_metrics_api.MetricsService/ObserveHistogram',
71
+ requestStream: false,
72
+ responseStream: false,
73
+ requestType: idemetrics_pb.ObserveHistogramRequest,
74
+ responseType: idemetrics_pb.ObserveHistogramResponse,
75
+ requestSerialize: serialize_ide_metrics_api_ObserveHistogramRequest,
76
+ requestDeserialize: deserialize_ide_metrics_api_ObserveHistogramRequest,
77
+ responseSerialize: serialize_ide_metrics_api_ObserveHistogramResponse,
78
+ responseDeserialize: deserialize_ide_metrics_api_ObserveHistogramResponse,
79
+ },
80
+ };
81
+
82
+ exports.MetricsServiceClient = grpc.makeGenericClientConstructor(MetricsServiceService);
@@ -0,0 +1,100 @@
1
+ // package: ide_metrics_api
2
+ // file: idemetrics.proto
3
+
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+
7
+ import * as jspb from "google-protobuf";
8
+
9
+ export class AddCounterRequest extends jspb.Message {
10
+ getName(): string;
11
+ setName(value: string): AddCounterRequest;
12
+
13
+ getLabelsMap(): jspb.Map<string, string>;
14
+ clearLabelsMap(): void;
15
+
16
+ hasValue(): boolean;
17
+ clearValue(): void;
18
+ getValue(): number | undefined;
19
+ setValue(value: number): AddCounterRequest;
20
+
21
+ serializeBinary(): Uint8Array;
22
+ toObject(includeInstance?: boolean): AddCounterRequest.AsObject;
23
+ static toObject(includeInstance: boolean, msg: AddCounterRequest): AddCounterRequest.AsObject;
24
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
25
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
26
+ static serializeBinaryToWriter(message: AddCounterRequest, writer: jspb.BinaryWriter): void;
27
+ static deserializeBinary(bytes: Uint8Array): AddCounterRequest;
28
+ static deserializeBinaryFromReader(message: AddCounterRequest, reader: jspb.BinaryReader): AddCounterRequest;
29
+ }
30
+
31
+ export namespace AddCounterRequest {
32
+ export type AsObject = {
33
+ name: string,
34
+
35
+ labelsMap: Array<[string, string]>,
36
+ value?: number,
37
+ }
38
+ }
39
+
40
+ export class AddCounterResponse extends jspb.Message {
41
+
42
+ serializeBinary(): Uint8Array;
43
+ toObject(includeInstance?: boolean): AddCounterResponse.AsObject;
44
+ static toObject(includeInstance: boolean, msg: AddCounterResponse): AddCounterResponse.AsObject;
45
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
46
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
47
+ static serializeBinaryToWriter(message: AddCounterResponse, writer: jspb.BinaryWriter): void;
48
+ static deserializeBinary(bytes: Uint8Array): AddCounterResponse;
49
+ static deserializeBinaryFromReader(message: AddCounterResponse, reader: jspb.BinaryReader): AddCounterResponse;
50
+ }
51
+
52
+ export namespace AddCounterResponse {
53
+ export type AsObject = {
54
+ }
55
+ }
56
+
57
+ export class ObserveHistogramRequest extends jspb.Message {
58
+ getName(): string;
59
+ setName(value: string): ObserveHistogramRequest;
60
+
61
+ getLabelsMap(): jspb.Map<string, string>;
62
+ clearLabelsMap(): void;
63
+ getValue(): number;
64
+ setValue(value: number): ObserveHistogramRequest;
65
+
66
+ serializeBinary(): Uint8Array;
67
+ toObject(includeInstance?: boolean): ObserveHistogramRequest.AsObject;
68
+ static toObject(includeInstance: boolean, msg: ObserveHistogramRequest): ObserveHistogramRequest.AsObject;
69
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
70
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
71
+ static serializeBinaryToWriter(message: ObserveHistogramRequest, writer: jspb.BinaryWriter): void;
72
+ static deserializeBinary(bytes: Uint8Array): ObserveHistogramRequest;
73
+ static deserializeBinaryFromReader(message: ObserveHistogramRequest, reader: jspb.BinaryReader): ObserveHistogramRequest;
74
+ }
75
+
76
+ export namespace ObserveHistogramRequest {
77
+ export type AsObject = {
78
+ name: string,
79
+
80
+ labelsMap: Array<[string, string]>,
81
+ value: number,
82
+ }
83
+ }
84
+
85
+ export class ObserveHistogramResponse extends jspb.Message {
86
+
87
+ serializeBinary(): Uint8Array;
88
+ toObject(includeInstance?: boolean): ObserveHistogramResponse.AsObject;
89
+ static toObject(includeInstance: boolean, msg: ObserveHistogramResponse): ObserveHistogramResponse.AsObject;
90
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
91
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
92
+ static serializeBinaryToWriter(message: ObserveHistogramResponse, writer: jspb.BinaryWriter): void;
93
+ static deserializeBinary(bytes: Uint8Array): ObserveHistogramResponse;
94
+ static deserializeBinaryFromReader(message: ObserveHistogramResponse, reader: jspb.BinaryReader): ObserveHistogramResponse;
95
+ }
96
+
97
+ export namespace ObserveHistogramResponse {
98
+ export type AsObject = {
99
+ }
100
+ }
@@ -0,0 +1,712 @@
1
+ // source: idemetrics.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
17
+
18
+ goog.exportSymbol('proto.ide_metrics_api.AddCounterRequest', null, global);
19
+ goog.exportSymbol('proto.ide_metrics_api.AddCounterResponse', null, global);
20
+ goog.exportSymbol('proto.ide_metrics_api.ObserveHistogramRequest', null, global);
21
+ goog.exportSymbol('proto.ide_metrics_api.ObserveHistogramResponse', null, global);
22
+ /**
23
+ * Generated by JsPbCodeGenerator.
24
+ * @param {Array=} opt_data Optional initial data array, typically from a
25
+ * server response, or constructed directly in Javascript. The array is used
26
+ * in place and becomes part of the constructed object. It is not cloned.
27
+ * If no data is provided, the constructed object will be empty, but still
28
+ * valid.
29
+ * @extends {jspb.Message}
30
+ * @constructor
31
+ */
32
+ proto.ide_metrics_api.AddCounterRequest = function(opt_data) {
33
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
34
+ };
35
+ goog.inherits(proto.ide_metrics_api.AddCounterRequest, jspb.Message);
36
+ if (goog.DEBUG && !COMPILED) {
37
+ /**
38
+ * @public
39
+ * @override
40
+ */
41
+ proto.ide_metrics_api.AddCounterRequest.displayName = 'proto.ide_metrics_api.AddCounterRequest';
42
+ }
43
+ /**
44
+ * Generated by JsPbCodeGenerator.
45
+ * @param {Array=} opt_data Optional initial data array, typically from a
46
+ * server response, or constructed directly in Javascript. The array is used
47
+ * in place and becomes part of the constructed object. It is not cloned.
48
+ * If no data is provided, the constructed object will be empty, but still
49
+ * valid.
50
+ * @extends {jspb.Message}
51
+ * @constructor
52
+ */
53
+ proto.ide_metrics_api.AddCounterResponse = function(opt_data) {
54
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
55
+ };
56
+ goog.inherits(proto.ide_metrics_api.AddCounterResponse, jspb.Message);
57
+ if (goog.DEBUG && !COMPILED) {
58
+ /**
59
+ * @public
60
+ * @override
61
+ */
62
+ proto.ide_metrics_api.AddCounterResponse.displayName = 'proto.ide_metrics_api.AddCounterResponse';
63
+ }
64
+ /**
65
+ * Generated by JsPbCodeGenerator.
66
+ * @param {Array=} opt_data Optional initial data array, typically from a
67
+ * server response, or constructed directly in Javascript. The array is used
68
+ * in place and becomes part of the constructed object. It is not cloned.
69
+ * If no data is provided, the constructed object will be empty, but still
70
+ * valid.
71
+ * @extends {jspb.Message}
72
+ * @constructor
73
+ */
74
+ proto.ide_metrics_api.ObserveHistogramRequest = function(opt_data) {
75
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
76
+ };
77
+ goog.inherits(proto.ide_metrics_api.ObserveHistogramRequest, jspb.Message);
78
+ if (goog.DEBUG && !COMPILED) {
79
+ /**
80
+ * @public
81
+ * @override
82
+ */
83
+ proto.ide_metrics_api.ObserveHistogramRequest.displayName = 'proto.ide_metrics_api.ObserveHistogramRequest';
84
+ }
85
+ /**
86
+ * Generated by JsPbCodeGenerator.
87
+ * @param {Array=} opt_data Optional initial data array, typically from a
88
+ * server response, or constructed directly in Javascript. The array is used
89
+ * in place and becomes part of the constructed object. It is not cloned.
90
+ * If no data is provided, the constructed object will be empty, but still
91
+ * valid.
92
+ * @extends {jspb.Message}
93
+ * @constructor
94
+ */
95
+ proto.ide_metrics_api.ObserveHistogramResponse = function(opt_data) {
96
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
97
+ };
98
+ goog.inherits(proto.ide_metrics_api.ObserveHistogramResponse, jspb.Message);
99
+ if (goog.DEBUG && !COMPILED) {
100
+ /**
101
+ * @public
102
+ * @override
103
+ */
104
+ proto.ide_metrics_api.ObserveHistogramResponse.displayName = 'proto.ide_metrics_api.ObserveHistogramResponse';
105
+ }
106
+
107
+
108
+
109
+ if (jspb.Message.GENERATE_TO_OBJECT) {
110
+ /**
111
+ * Creates an object representation of this proto.
112
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
113
+ * Optional fields that are not set will be set to undefined.
114
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
115
+ * For the list of reserved names please see:
116
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
117
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
118
+ * JSPB instance for transitional soy proto support:
119
+ * http://goto/soy-param-migration
120
+ * @return {!Object}
121
+ */
122
+ proto.ide_metrics_api.AddCounterRequest.prototype.toObject = function(opt_includeInstance) {
123
+ return proto.ide_metrics_api.AddCounterRequest.toObject(opt_includeInstance, this);
124
+ };
125
+
126
+
127
+ /**
128
+ * Static version of the {@see toObject} method.
129
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
130
+ * the JSPB instance for transitional soy proto support:
131
+ * http://goto/soy-param-migration
132
+ * @param {!proto.ide_metrics_api.AddCounterRequest} msg The msg instance to transform.
133
+ * @return {!Object}
134
+ * @suppress {unusedLocalVariables} f is only used for nested messages
135
+ */
136
+ proto.ide_metrics_api.AddCounterRequest.toObject = function(includeInstance, msg) {
137
+ var f, obj = {
138
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
139
+ labelsMap: (f = msg.getLabelsMap()) ? f.toObject(includeInstance, undefined) : [],
140
+ value: jspb.Message.getFieldWithDefault(msg, 3, 0)
141
+ };
142
+
143
+ if (includeInstance) {
144
+ obj.$jspbMessageInstance = msg;
145
+ }
146
+ return obj;
147
+ };
148
+ }
149
+
150
+
151
+ /**
152
+ * Deserializes binary data (in protobuf wire format).
153
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
154
+ * @return {!proto.ide_metrics_api.AddCounterRequest}
155
+ */
156
+ proto.ide_metrics_api.AddCounterRequest.deserializeBinary = function(bytes) {
157
+ var reader = new jspb.BinaryReader(bytes);
158
+ var msg = new proto.ide_metrics_api.AddCounterRequest;
159
+ return proto.ide_metrics_api.AddCounterRequest.deserializeBinaryFromReader(msg, reader);
160
+ };
161
+
162
+
163
+ /**
164
+ * Deserializes binary data (in protobuf wire format) from the
165
+ * given reader into the given message object.
166
+ * @param {!proto.ide_metrics_api.AddCounterRequest} msg The message object to deserialize into.
167
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
168
+ * @return {!proto.ide_metrics_api.AddCounterRequest}
169
+ */
170
+ proto.ide_metrics_api.AddCounterRequest.deserializeBinaryFromReader = function(msg, reader) {
171
+ while (reader.nextField()) {
172
+ if (reader.isEndGroup()) {
173
+ break;
174
+ }
175
+ var field = reader.getFieldNumber();
176
+ switch (field) {
177
+ case 1:
178
+ var value = /** @type {string} */ (reader.readString());
179
+ msg.setName(value);
180
+ break;
181
+ case 2:
182
+ var value = msg.getLabelsMap();
183
+ reader.readMessage(value, function(message, reader) {
184
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
185
+ });
186
+ break;
187
+ case 3:
188
+ var value = /** @type {number} */ (reader.readInt32());
189
+ msg.setValue(value);
190
+ break;
191
+ default:
192
+ reader.skipField();
193
+ break;
194
+ }
195
+ }
196
+ return msg;
197
+ };
198
+
199
+
200
+ /**
201
+ * Serializes the message to binary data (in protobuf wire format).
202
+ * @return {!Uint8Array}
203
+ */
204
+ proto.ide_metrics_api.AddCounterRequest.prototype.serializeBinary = function() {
205
+ var writer = new jspb.BinaryWriter();
206
+ proto.ide_metrics_api.AddCounterRequest.serializeBinaryToWriter(this, writer);
207
+ return writer.getResultBuffer();
208
+ };
209
+
210
+
211
+ /**
212
+ * Serializes the given message to binary data (in protobuf wire
213
+ * format), writing to the given BinaryWriter.
214
+ * @param {!proto.ide_metrics_api.AddCounterRequest} message
215
+ * @param {!jspb.BinaryWriter} writer
216
+ * @suppress {unusedLocalVariables} f is only used for nested messages
217
+ */
218
+ proto.ide_metrics_api.AddCounterRequest.serializeBinaryToWriter = function(message, writer) {
219
+ var f = undefined;
220
+ f = message.getName();
221
+ if (f.length > 0) {
222
+ writer.writeString(
223
+ 1,
224
+ f
225
+ );
226
+ }
227
+ f = message.getLabelsMap(true);
228
+ if (f && f.getLength() > 0) {
229
+ f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
230
+ }
231
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
232
+ if (f != null) {
233
+ writer.writeInt32(
234
+ 3,
235
+ f
236
+ );
237
+ }
238
+ };
239
+
240
+
241
+ /**
242
+ * optional string name = 1;
243
+ * @return {string}
244
+ */
245
+ proto.ide_metrics_api.AddCounterRequest.prototype.getName = function() {
246
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
247
+ };
248
+
249
+
250
+ /**
251
+ * @param {string} value
252
+ * @return {!proto.ide_metrics_api.AddCounterRequest} returns this
253
+ */
254
+ proto.ide_metrics_api.AddCounterRequest.prototype.setName = function(value) {
255
+ return jspb.Message.setProto3StringField(this, 1, value);
256
+ };
257
+
258
+
259
+ /**
260
+ * map<string, string> labels = 2;
261
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
262
+ * empty, instead returning `undefined`
263
+ * @return {!jspb.Map<string,string>}
264
+ */
265
+ proto.ide_metrics_api.AddCounterRequest.prototype.getLabelsMap = function(opt_noLazyCreate) {
266
+ return /** @type {!jspb.Map<string,string>} */ (
267
+ jspb.Message.getMapField(this, 2, opt_noLazyCreate,
268
+ null));
269
+ };
270
+
271
+
272
+ /**
273
+ * Clears values from the map. The map will be non-null.
274
+ * @return {!proto.ide_metrics_api.AddCounterRequest} returns this
275
+ */
276
+ proto.ide_metrics_api.AddCounterRequest.prototype.clearLabelsMap = function() {
277
+ this.getLabelsMap().clear();
278
+ return this;};
279
+
280
+
281
+ /**
282
+ * optional int32 value = 3;
283
+ * @return {number}
284
+ */
285
+ proto.ide_metrics_api.AddCounterRequest.prototype.getValue = function() {
286
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
287
+ };
288
+
289
+
290
+ /**
291
+ * @param {number} value
292
+ * @return {!proto.ide_metrics_api.AddCounterRequest} returns this
293
+ */
294
+ proto.ide_metrics_api.AddCounterRequest.prototype.setValue = function(value) {
295
+ return jspb.Message.setField(this, 3, value);
296
+ };
297
+
298
+
299
+ /**
300
+ * Clears the field making it undefined.
301
+ * @return {!proto.ide_metrics_api.AddCounterRequest} returns this
302
+ */
303
+ proto.ide_metrics_api.AddCounterRequest.prototype.clearValue = function() {
304
+ return jspb.Message.setField(this, 3, undefined);
305
+ };
306
+
307
+
308
+ /**
309
+ * Returns whether this field is set.
310
+ * @return {boolean}
311
+ */
312
+ proto.ide_metrics_api.AddCounterRequest.prototype.hasValue = function() {
313
+ return jspb.Message.getField(this, 3) != null;
314
+ };
315
+
316
+
317
+
318
+
319
+
320
+ if (jspb.Message.GENERATE_TO_OBJECT) {
321
+ /**
322
+ * Creates an object representation of this proto.
323
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
324
+ * Optional fields that are not set will be set to undefined.
325
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
326
+ * For the list of reserved names please see:
327
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
328
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
329
+ * JSPB instance for transitional soy proto support:
330
+ * http://goto/soy-param-migration
331
+ * @return {!Object}
332
+ */
333
+ proto.ide_metrics_api.AddCounterResponse.prototype.toObject = function(opt_includeInstance) {
334
+ return proto.ide_metrics_api.AddCounterResponse.toObject(opt_includeInstance, this);
335
+ };
336
+
337
+
338
+ /**
339
+ * Static version of the {@see toObject} method.
340
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
341
+ * the JSPB instance for transitional soy proto support:
342
+ * http://goto/soy-param-migration
343
+ * @param {!proto.ide_metrics_api.AddCounterResponse} msg The msg instance to transform.
344
+ * @return {!Object}
345
+ * @suppress {unusedLocalVariables} f is only used for nested messages
346
+ */
347
+ proto.ide_metrics_api.AddCounterResponse.toObject = function(includeInstance, msg) {
348
+ var f, obj = {
349
+
350
+ };
351
+
352
+ if (includeInstance) {
353
+ obj.$jspbMessageInstance = msg;
354
+ }
355
+ return obj;
356
+ };
357
+ }
358
+
359
+
360
+ /**
361
+ * Deserializes binary data (in protobuf wire format).
362
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
363
+ * @return {!proto.ide_metrics_api.AddCounterResponse}
364
+ */
365
+ proto.ide_metrics_api.AddCounterResponse.deserializeBinary = function(bytes) {
366
+ var reader = new jspb.BinaryReader(bytes);
367
+ var msg = new proto.ide_metrics_api.AddCounterResponse;
368
+ return proto.ide_metrics_api.AddCounterResponse.deserializeBinaryFromReader(msg, reader);
369
+ };
370
+
371
+
372
+ /**
373
+ * Deserializes binary data (in protobuf wire format) from the
374
+ * given reader into the given message object.
375
+ * @param {!proto.ide_metrics_api.AddCounterResponse} msg The message object to deserialize into.
376
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
377
+ * @return {!proto.ide_metrics_api.AddCounterResponse}
378
+ */
379
+ proto.ide_metrics_api.AddCounterResponse.deserializeBinaryFromReader = function(msg, reader) {
380
+ while (reader.nextField()) {
381
+ if (reader.isEndGroup()) {
382
+ break;
383
+ }
384
+ var field = reader.getFieldNumber();
385
+ switch (field) {
386
+ default:
387
+ reader.skipField();
388
+ break;
389
+ }
390
+ }
391
+ return msg;
392
+ };
393
+
394
+
395
+ /**
396
+ * Serializes the message to binary data (in protobuf wire format).
397
+ * @return {!Uint8Array}
398
+ */
399
+ proto.ide_metrics_api.AddCounterResponse.prototype.serializeBinary = function() {
400
+ var writer = new jspb.BinaryWriter();
401
+ proto.ide_metrics_api.AddCounterResponse.serializeBinaryToWriter(this, writer);
402
+ return writer.getResultBuffer();
403
+ };
404
+
405
+
406
+ /**
407
+ * Serializes the given message to binary data (in protobuf wire
408
+ * format), writing to the given BinaryWriter.
409
+ * @param {!proto.ide_metrics_api.AddCounterResponse} message
410
+ * @param {!jspb.BinaryWriter} writer
411
+ * @suppress {unusedLocalVariables} f is only used for nested messages
412
+ */
413
+ proto.ide_metrics_api.AddCounterResponse.serializeBinaryToWriter = function(message, writer) {
414
+ var f = undefined;
415
+ };
416
+
417
+
418
+
419
+
420
+
421
+ if (jspb.Message.GENERATE_TO_OBJECT) {
422
+ /**
423
+ * Creates an object representation of this proto.
424
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
425
+ * Optional fields that are not set will be set to undefined.
426
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
427
+ * For the list of reserved names please see:
428
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
429
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
430
+ * JSPB instance for transitional soy proto support:
431
+ * http://goto/soy-param-migration
432
+ * @return {!Object}
433
+ */
434
+ proto.ide_metrics_api.ObserveHistogramRequest.prototype.toObject = function(opt_includeInstance) {
435
+ return proto.ide_metrics_api.ObserveHistogramRequest.toObject(opt_includeInstance, this);
436
+ };
437
+
438
+
439
+ /**
440
+ * Static version of the {@see toObject} method.
441
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
442
+ * the JSPB instance for transitional soy proto support:
443
+ * http://goto/soy-param-migration
444
+ * @param {!proto.ide_metrics_api.ObserveHistogramRequest} msg The msg instance to transform.
445
+ * @return {!Object}
446
+ * @suppress {unusedLocalVariables} f is only used for nested messages
447
+ */
448
+ proto.ide_metrics_api.ObserveHistogramRequest.toObject = function(includeInstance, msg) {
449
+ var f, obj = {
450
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
451
+ labelsMap: (f = msg.getLabelsMap()) ? f.toObject(includeInstance, undefined) : [],
452
+ value: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0)
453
+ };
454
+
455
+ if (includeInstance) {
456
+ obj.$jspbMessageInstance = msg;
457
+ }
458
+ return obj;
459
+ };
460
+ }
461
+
462
+
463
+ /**
464
+ * Deserializes binary data (in protobuf wire format).
465
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
466
+ * @return {!proto.ide_metrics_api.ObserveHistogramRequest}
467
+ */
468
+ proto.ide_metrics_api.ObserveHistogramRequest.deserializeBinary = function(bytes) {
469
+ var reader = new jspb.BinaryReader(bytes);
470
+ var msg = new proto.ide_metrics_api.ObserveHistogramRequest;
471
+ return proto.ide_metrics_api.ObserveHistogramRequest.deserializeBinaryFromReader(msg, reader);
472
+ };
473
+
474
+
475
+ /**
476
+ * Deserializes binary data (in protobuf wire format) from the
477
+ * given reader into the given message object.
478
+ * @param {!proto.ide_metrics_api.ObserveHistogramRequest} msg The message object to deserialize into.
479
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
480
+ * @return {!proto.ide_metrics_api.ObserveHistogramRequest}
481
+ */
482
+ proto.ide_metrics_api.ObserveHistogramRequest.deserializeBinaryFromReader = function(msg, reader) {
483
+ while (reader.nextField()) {
484
+ if (reader.isEndGroup()) {
485
+ break;
486
+ }
487
+ var field = reader.getFieldNumber();
488
+ switch (field) {
489
+ case 1:
490
+ var value = /** @type {string} */ (reader.readString());
491
+ msg.setName(value);
492
+ break;
493
+ case 2:
494
+ var value = msg.getLabelsMap();
495
+ reader.readMessage(value, function(message, reader) {
496
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
497
+ });
498
+ break;
499
+ case 3:
500
+ var value = /** @type {number} */ (reader.readDouble());
501
+ msg.setValue(value);
502
+ break;
503
+ default:
504
+ reader.skipField();
505
+ break;
506
+ }
507
+ }
508
+ return msg;
509
+ };
510
+
511
+
512
+ /**
513
+ * Serializes the message to binary data (in protobuf wire format).
514
+ * @return {!Uint8Array}
515
+ */
516
+ proto.ide_metrics_api.ObserveHistogramRequest.prototype.serializeBinary = function() {
517
+ var writer = new jspb.BinaryWriter();
518
+ proto.ide_metrics_api.ObserveHistogramRequest.serializeBinaryToWriter(this, writer);
519
+ return writer.getResultBuffer();
520
+ };
521
+
522
+
523
+ /**
524
+ * Serializes the given message to binary data (in protobuf wire
525
+ * format), writing to the given BinaryWriter.
526
+ * @param {!proto.ide_metrics_api.ObserveHistogramRequest} message
527
+ * @param {!jspb.BinaryWriter} writer
528
+ * @suppress {unusedLocalVariables} f is only used for nested messages
529
+ */
530
+ proto.ide_metrics_api.ObserveHistogramRequest.serializeBinaryToWriter = function(message, writer) {
531
+ var f = undefined;
532
+ f = message.getName();
533
+ if (f.length > 0) {
534
+ writer.writeString(
535
+ 1,
536
+ f
537
+ );
538
+ }
539
+ f = message.getLabelsMap(true);
540
+ if (f && f.getLength() > 0) {
541
+ f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
542
+ }
543
+ f = message.getValue();
544
+ if (f !== 0.0) {
545
+ writer.writeDouble(
546
+ 3,
547
+ f
548
+ );
549
+ }
550
+ };
551
+
552
+
553
+ /**
554
+ * optional string name = 1;
555
+ * @return {string}
556
+ */
557
+ proto.ide_metrics_api.ObserveHistogramRequest.prototype.getName = function() {
558
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
559
+ };
560
+
561
+
562
+ /**
563
+ * @param {string} value
564
+ * @return {!proto.ide_metrics_api.ObserveHistogramRequest} returns this
565
+ */
566
+ proto.ide_metrics_api.ObserveHistogramRequest.prototype.setName = function(value) {
567
+ return jspb.Message.setProto3StringField(this, 1, value);
568
+ };
569
+
570
+
571
+ /**
572
+ * map<string, string> labels = 2;
573
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
574
+ * empty, instead returning `undefined`
575
+ * @return {!jspb.Map<string,string>}
576
+ */
577
+ proto.ide_metrics_api.ObserveHistogramRequest.prototype.getLabelsMap = function(opt_noLazyCreate) {
578
+ return /** @type {!jspb.Map<string,string>} */ (
579
+ jspb.Message.getMapField(this, 2, opt_noLazyCreate,
580
+ null));
581
+ };
582
+
583
+
584
+ /**
585
+ * Clears values from the map. The map will be non-null.
586
+ * @return {!proto.ide_metrics_api.ObserveHistogramRequest} returns this
587
+ */
588
+ proto.ide_metrics_api.ObserveHistogramRequest.prototype.clearLabelsMap = function() {
589
+ this.getLabelsMap().clear();
590
+ return this;};
591
+
592
+
593
+ /**
594
+ * optional double value = 3;
595
+ * @return {number}
596
+ */
597
+ proto.ide_metrics_api.ObserveHistogramRequest.prototype.getValue = function() {
598
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
599
+ };
600
+
601
+
602
+ /**
603
+ * @param {number} value
604
+ * @return {!proto.ide_metrics_api.ObserveHistogramRequest} returns this
605
+ */
606
+ proto.ide_metrics_api.ObserveHistogramRequest.prototype.setValue = function(value) {
607
+ return jspb.Message.setProto3FloatField(this, 3, value);
608
+ };
609
+
610
+
611
+
612
+
613
+
614
+ if (jspb.Message.GENERATE_TO_OBJECT) {
615
+ /**
616
+ * Creates an object representation of this proto.
617
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
618
+ * Optional fields that are not set will be set to undefined.
619
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
620
+ * For the list of reserved names please see:
621
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
622
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
623
+ * JSPB instance for transitional soy proto support:
624
+ * http://goto/soy-param-migration
625
+ * @return {!Object}
626
+ */
627
+ proto.ide_metrics_api.ObserveHistogramResponse.prototype.toObject = function(opt_includeInstance) {
628
+ return proto.ide_metrics_api.ObserveHistogramResponse.toObject(opt_includeInstance, this);
629
+ };
630
+
631
+
632
+ /**
633
+ * Static version of the {@see toObject} method.
634
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
635
+ * the JSPB instance for transitional soy proto support:
636
+ * http://goto/soy-param-migration
637
+ * @param {!proto.ide_metrics_api.ObserveHistogramResponse} msg The msg instance to transform.
638
+ * @return {!Object}
639
+ * @suppress {unusedLocalVariables} f is only used for nested messages
640
+ */
641
+ proto.ide_metrics_api.ObserveHistogramResponse.toObject = function(includeInstance, msg) {
642
+ var f, obj = {
643
+
644
+ };
645
+
646
+ if (includeInstance) {
647
+ obj.$jspbMessageInstance = msg;
648
+ }
649
+ return obj;
650
+ };
651
+ }
652
+
653
+
654
+ /**
655
+ * Deserializes binary data (in protobuf wire format).
656
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
657
+ * @return {!proto.ide_metrics_api.ObserveHistogramResponse}
658
+ */
659
+ proto.ide_metrics_api.ObserveHistogramResponse.deserializeBinary = function(bytes) {
660
+ var reader = new jspb.BinaryReader(bytes);
661
+ var msg = new proto.ide_metrics_api.ObserveHistogramResponse;
662
+ return proto.ide_metrics_api.ObserveHistogramResponse.deserializeBinaryFromReader(msg, reader);
663
+ };
664
+
665
+
666
+ /**
667
+ * Deserializes binary data (in protobuf wire format) from the
668
+ * given reader into the given message object.
669
+ * @param {!proto.ide_metrics_api.ObserveHistogramResponse} msg The message object to deserialize into.
670
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
671
+ * @return {!proto.ide_metrics_api.ObserveHistogramResponse}
672
+ */
673
+ proto.ide_metrics_api.ObserveHistogramResponse.deserializeBinaryFromReader = function(msg, reader) {
674
+ while (reader.nextField()) {
675
+ if (reader.isEndGroup()) {
676
+ break;
677
+ }
678
+ var field = reader.getFieldNumber();
679
+ switch (field) {
680
+ default:
681
+ reader.skipField();
682
+ break;
683
+ }
684
+ }
685
+ return msg;
686
+ };
687
+
688
+
689
+ /**
690
+ * Serializes the message to binary data (in protobuf wire format).
691
+ * @return {!Uint8Array}
692
+ */
693
+ proto.ide_metrics_api.ObserveHistogramResponse.prototype.serializeBinary = function() {
694
+ var writer = new jspb.BinaryWriter();
695
+ proto.ide_metrics_api.ObserveHistogramResponse.serializeBinaryToWriter(this, writer);
696
+ return writer.getResultBuffer();
697
+ };
698
+
699
+
700
+ /**
701
+ * Serializes the given message to binary data (in protobuf wire
702
+ * format), writing to the given BinaryWriter.
703
+ * @param {!proto.ide_metrics_api.ObserveHistogramResponse} message
704
+ * @param {!jspb.BinaryWriter} writer
705
+ * @suppress {unusedLocalVariables} f is only used for nested messages
706
+ */
707
+ proto.ide_metrics_api.ObserveHistogramResponse.serializeBinaryToWriter = function(message, writer) {
708
+ var f = undefined;
709
+ };
710
+
711
+
712
+ goog.object.extend(exports, proto.ide_metrics_api);
package/package.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "dependencies": {
3
+ "@grpc/grpc-js": "^1.3.7",
4
+ "google-protobuf": "^3.19.1"
5
+ },
6
+ "devDependencies": {
7
+ "@types/google-protobuf": "^3.15.5",
8
+ "grpc-tools": "^1.11.2",
9
+ "grpc_tools_node_protoc_ts": "^5.3.2",
10
+ "typescript": "~4.4.2",
11
+ "typescript-formatter": "^7.2.2"
12
+ },
13
+ "files": [
14
+ "lib",
15
+ "pkg-yarn.lock",
16
+ "provenance-bundle.jsonl"
17
+ ],
18
+ "license": "UNLICENSED",
19
+ "name": "@gitpod/ide-metrics-api-grpc",
20
+ "scripts": {
21
+ "build": "sh build.sh"
22
+ },
23
+ "version": "0.0.1-pd-ide-metrics.34"
24
+ }
package/pkg-yarn.lock ADDED
@@ -0,0 +1,11 @@
1
+ # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2
+ # yarn lockfile v1
3
+
4
+
5
+ "@gitpod/ide-metrics-api-grpc@0.0.1":
6
+ version "0.0.1"
7
+ resolved "file:///tmp/cache/879bc223a09f09abf7a1515d0da79ec802f0c1c1.tar.gz"
8
+ dependencies:
9
+ "@grpc/grpc-js" "^1.3.7"
10
+ google-protobuf "^3.19.1"
11
+
@@ -0,0 +1,4 @@
1
+ {"payloadType":"application/vnd.in-toto+json","payload":"ewogICJfdHlwZSI6ICJodHRwczovL2luLXRvdG8uaW8vU3RhdGVtZW50L3YwLjEiLAogICJwcmVkaWNhdGVUeXBlIjogImh0dHBzOi8vc2xzYS5kZXYvcHJvdmVuYW5jZS92MC4xIiwKICAic3ViamVjdCI6IFtdLAogICJwcmVkaWNhdGUiOiB7CiAgICAiYnVpbGRlciI6IHsKICAgICAgImlkIjogImdpdGh1Yi5jb20vZ2l0cG9kLWlvL2xlZXdheTowLjIuMTctM2ViZmIyYUBzaGEyNTY6Yjk2MjllMmQwNDMyYWRlYTFiZTdkZGRiMzYwM2UzNmQ5ZjY5YjA5ZDg5ODVmNzI1MjU3YWRhYWRlNTFkNGE0MCIKICAgIH0sCiAgICAicmVjaXBlIjogewogICAgICAidHlwZSI6ICJodHRwczovL2dpdGh1Yi5jb20vZ2l0cG9kLWlvL2xlZXdheS9idWlsZEBnZW5lcmljOjEiLAogICAgICAiZGVmaW5lZEluTWF0ZXJpYWwiOiAwLAogICAgICAiZW50cnlQb2ludCI6ICJjb21wb25lbnRzL2lkZS1tZXRyaWNzLWFwaTpwcm90byIsCiAgICAgICJhcmd1bWVudHMiOiBbCiAgICAgICAgImxlZXdheSIsCiAgICAgICAgImJ1aWxkIiwKICAgICAgICAiLS1kb2NrZXItYnVpbGQtb3B0aW9ucyIsCiAgICAgICAgIm5ldHdvcms9aG9zdCIsCiAgICAgICAgIi0td2VyZnQ9dHJ1ZSIsCiAgICAgICAgIi1jIiwKICAgICAgICAicmVtb3RlIiwKICAgICAgICAiLS1kb250LXJldGFnIiwKICAgICAgICAiLS1jb3ZlcmFnZS1vdXRwdXQtcGF0aD0vdG1wL3RtcC5sRFZKTFpFS2Z4IiwKICAgICAgICAiLUR2ZXJzaW9uPXBkLWlkZS1tZXRyaWNzLjMyIiwKICAgICAgICAiLURyZW1vdmVTb3VyY2VzPWZhbHNlIiwKICAgICAgICAiLURpbWFnZVJlcG9CYXNlPWV1Lmdjci5pby9naXRwb2QtY29yZS1kZXYvYnVpbGQiLAogICAgICAgICItRGxvY2FsQXBwVmVyc2lvbj11bmtub3duIiwKICAgICAgICAiLURTRUdNRU5UX0lPX1RPS0VOPVgzYk5hdFlQdWRJSmNDejZrRmxUbjU0cHJ1bVFBcUdoIiwKICAgICAgICAiLURSRVBMSUNBVEVEX0FQSV9UT0tFTj1kZWExMGM4ZmI1ODc1NWZkNTFhYjk5NmNjYmFhYjg5NjJmNWU5MDZhYjQ0MTJhZTY3Nzk5NmVhNzRlODVhZTM1IiwKICAgICAgICAiLURSRVBMSUNBVEVEX0FQUD1naXRwb2QiLAogICAgICAgICItRG5wbVB1Ymxpc2hUcmlnZ2VyPTE2NTk1OTUyOTkyMzIiLAogICAgICAgICItRGpiTWFya2V0cGxhY2VQdWJsaXNoVHJpZ2dlcj1mYWxzZSIKICAgICAgXSwKICAgICAgImVudmlyb25tZW50IjogewogICAgICAgICJtYW5pZmVzdCI6IHsKICAgICAgICAgICJhcmNoIjogImFtZDY0IiwKICAgICAgICAgICJnbyI6ICJnbyB2ZXJzaW9uIGdvMS4xOC40IGxpbnV4L2FtZDY0IiwKICAgICAgICAgICJub2RlIjogInYxNi4xNi4wIiwKICAgICAgICAgICJvcyI6ICJsaW51eCIsCiAgICAgICAgICAieWFybiI6ICIxLjIyLjE5IgogICAgICAgIH0KICAgICAgfQogICAgfSwKICAgICJtZXRhZGF0YSI6IHsKICAgICAgImJ1aWxkU3RhcnRlZE9uIjogIjIwMjItMDgtMDRUMDY6NDE6NTQuODE5MjQ1NDY1WiIsCiAgICAgICJidWlsZEZpbmlzaGVkT24iOiAiMjAyMi0wOC0wNFQwNjo0MTo1NC44NjY1OTE0OTVaIiwKICAgICAgImNvbXBsZXRlbmVzcyI6IHsKICAgICAgICAiYXJndW1lbnRzIjogdHJ1ZSwKICAgICAgICAiZW52aXJvbm1lbnQiOiBmYWxzZSwKICAgICAgICAibWF0ZXJpYWxzIjogdHJ1ZQogICAgICB9LAogICAgICAicmVwcm9kdWNpYmxlIjogZmFsc2UKICAgIH0sCiAgICAibWF0ZXJpYWxzIjogWwogICAgICB7CiAgICAgICAgInVyaSI6ICJnaXQraHR0cHM6Ly9naXRodWIuY29tL2dpdHBvZC1pby9naXRwb2QuZ2l0IiwKICAgICAgICAiZGlnZXN0IjogewogICAgICAgICAgInNoYTI1NiI6ICJmM2I4ZTQzYjJjMzQ5MmIzY2M4ODUwM2QxNWJiYjJjYmJlZDlkMGZkIgogICAgICAgIH0KICAgICAgfQogICAgXQogIH0KfQ==","signatures":null}
2
+
3
+ {"payloadType":"application/vnd.in-toto+json","payload":"ewogICJfdHlwZSI6ICJodHRwczovL2luLXRvdG8uaW8vU3RhdGVtZW50L3YwLjEiLAogICJwcmVkaWNhdGVUeXBlIjogImh0dHBzOi8vc2xzYS5kZXYvcHJvdmVuYW5jZS92MC4xIiwKICAic3ViamVjdCI6IFsKICAgIHsKICAgICAgIm5hbWUiOiAiL2xpYi9pZGVtZXRyaWNzX2dycGNfcGIuanMiLAogICAgICAiZGlnZXN0IjogewogICAgICAgICJzaGEyNTYiOiAiYmVhMjVhZDRkZjRkNWUzNjU2MGJhYzRmY2QwNzM0YzZmMDQ2OWM0NWEyOWM2ZWRhODA5ODBkMTRmY2YyNzRlMSIKICAgICAgfQogICAgfSwKICAgIHsKICAgICAgIm5hbWUiOiAiL2NvbXBvbmVudHMtaWRlLW1ldHJpY3MtYXBpLS1wcm90by9wcm92ZW5hbmNlLWJ1bmRsZS5qc29ubCIsCiAgICAgICJkaWdlc3QiOiB7CiAgICAgICAgInNoYTI1NiI6ICI3ZGUxNGZjMzRiOWYyYjMzNGJlMjE1ZjExODM4ZmM5YWVkYjNjNTlmOTU4MGRhYTk5NjE0NGFkM2I2MjVhNDQwIgogICAgICB9CiAgICB9LAogICAgewogICAgICAibmFtZSI6ICIvbGliL2lkZW1ldHJpY3NfcGIuanMiLAogICAgICAiZGlnZXN0IjogewogICAgICAgICJzaGEyNTYiOiAiMjk2MzliNjAyYTFiNjFmOGNiNWQ4OWZiNmIyNDZhYmIyNWY1NGM3NTg3MTZkYjExZTk5ZDBkNjFmMjVhY2Y4NSIKICAgICAgfQogICAgfSwKICAgIHsKICAgICAgIm5hbWUiOiAiL2xpYi9pZGVtZXRyaWNzX2dycGNfcGIuZC50cyIsCiAgICAgICJkaWdlc3QiOiB7CiAgICAgICAgInNoYTI1NiI6ICIyYWYyNTk3NjRjMTg1MjRhMDU1MGM3Zjc3ODZmZDE5MjZmYmZjMmQ0ZDBiYmU1MzBlODYyNjE4ZmFiMTUyNWI1IgogICAgICB9CiAgICB9LAogICAgewogICAgICAibmFtZSI6ICIvbGliL2lkZW1ldHJpY3NfcGIuZC50cyIsCiAgICAgICJkaWdlc3QiOiB7CiAgICAgICAgInNoYTI1NiI6ICJiZjU5MWU2ZjQ2MGZlYTBlMzJlOTk2OGE3NmY2MDRhZDZlNzBiZTVhYWU3NjYzMjM0NDU4MzQxMjlmYTg4MzMwIgogICAgICB9CiAgICB9LAogICAgewogICAgICAibmFtZSI6ICIveWFybi5sb2NrIiwKICAgICAgImRpZ2VzdCI6IHsKICAgICAgICAic2hhMjU2IjogImM0MTU4ZDY5ODRhYmM2NmUzN2MzZDcwOWIyOGNiYTQyOTEyMzBiNDZlZTNiMGM2ZDlkYjYxNjk0NWQ3MWExZGEiCiAgICAgIH0KICAgIH0sCiAgICB7CiAgICAgICJuYW1lIjogIi9jb21wb25lbnRzLWlkZS1tZXRyaWNzLWFwaS0tcHJvdG8vaWRlbWV0cmljcy5wcm90byIsCiAgICAgICJkaWdlc3QiOiB7CiAgICAgICAgInNoYTI1NiI6ICIxYmYyZjI2YzZiM2ZhZTZmYjM2NWJhMDBiNzA1N2E4M2U1ZGJmOGM0ZDEwNDgzMmJmMDBhMTcyOGQwMjRjMjRhIgogICAgICB9CiAgICB9CiAgXSwKICAicHJlZGljYXRlIjogewogICAgImJ1aWxkZXIiOiB7CiAgICAgICJpZCI6ICJnaXRodWIuY29tL2dpdHBvZC1pby9sZWV3YXk6MC4yLjE3LTNlYmZiMmFAc2hhMjU2OmI5NjI5ZTJkMDQzMmFkZWExYmU3ZGRkYjM2MDNlMzZkOWY2OWIwOWQ4OTg1ZjcyNTI1N2FkYWFkZTUxZDRhNDAiCiAgICB9LAogICAgInJlY2lwZSI6IHsKICAgICAgInR5cGUiOiAiaHR0cHM6Ly9naXRodWIuY29tL2dpdHBvZC1pby9sZWV3YXkvYnVpbGRAeWFybjo3IiwKICAgICAgImRlZmluZWRJbk1hdGVyaWFsIjogMCwKICAgICAgImVudHJ5UG9pbnQiOiAiY29tcG9uZW50cy9pZGUtbWV0cmljcy1hcGkvdHlwZXNjcmlwdC1ncnBjOmxpYiIsCiAgICAgICJhcmd1bWVudHMiOiBbCiAgICAgICAgImxlZXdheSIsCiAgICAgICAgImJ1aWxkIiwKICAgICAgICAiLS1kb2NrZXItYnVpbGQtb3B0aW9ucyIsCiAgICAgICAgIm5ldHdvcms9aG9zdCIsCiAgICAgICAgIi0td2VyZnQ9dHJ1ZSIsCiAgICAgICAgIi1jIiwKICAgICAgICAicmVtb3RlIiwKICAgICAgICAiLS1kb250LXJldGFnIiwKICAgICAgICAiLS1jb3ZlcmFnZS1vdXRwdXQtcGF0aD0vdG1wL3RtcC50ZXZ2SnllY2R6IiwKICAgICAgICAiLUR2ZXJzaW9uPXBkLWlkZS1tZXRyaWNzLjM0IiwKICAgICAgICAiLURyZW1vdmVTb3VyY2VzPWZhbHNlIiwKICAgICAgICAiLURpbWFnZVJlcG9CYXNlPWV1Lmdjci5pby9naXRwb2QtY29yZS1kZXYvYnVpbGQiLAogICAgICAgICItRGxvY2FsQXBwVmVyc2lvbj11bmtub3duIiwKICAgICAgICAiLURTRUdNRU5UX0lPX1RPS0VOPVgzYk5hdFlQdWRJSmNDejZrRmxUbjU0cHJ1bVFBcUdoIiwKICAgICAgICAiLURSRVBMSUNBVEVEX0FQSV9UT0tFTj1kZWExMGM4ZmI1ODc1NWZkNTFhYjk5NmNjYmFhYjg5NjJmNWU5MDZhYjQ0MTJhZTY3Nzk5NmVhNzRlODVhZTM1IiwKICAgICAgICAiLURSRVBMSUNBVEVEX0FQUD1naXRwb2QiLAogICAgICAgICItRG5wbVB1Ymxpc2hUcmlnZ2VyPTE2NTk1OTY3NDE2OTUiLAogICAgICAgICItRGpiTWFya2V0cGxhY2VQdWJsaXNoVHJpZ2dlcj1mYWxzZSIKICAgICAgXSwKICAgICAgImVudmlyb25tZW50IjogewogICAgICAgICJtYW5pZmVzdCI6IHsKICAgICAgICAgICJhcmNoIjogImFtZDY0IiwKICAgICAgICAgICJnbyI6ICJnbyB2ZXJzaW9uIGdvMS4xOC40IGxpbnV4L2FtZDY0IiwKICAgICAgICAgICJub2RlIjogInYxNi4xNi4wIiwKICAgICAgICAgICJvcyI6ICJsaW51eCIsCiAgICAgICAgICAieWFybiI6ICIxLjIyLjE5IgogICAgICAgIH0KICAgICAgfQogICAgfSwKICAgICJtZXRhZGF0YSI6IHsKICAgICAgImJ1aWxkU3RhcnRlZE9uIjogIjIwMjItMDgtMDRUMDc6MDU6NTYuNjQ1OTc1NTYxWiIsCiAgICAgICJidWlsZEZpbmlzaGVkT24iOiAiMjAyMi0wOC0wNFQwNzowNjowNy4wMTEwNjI1NjNaIiwKICAgICAgImNvbXBsZXRlbmVzcyI6IHsKICAgICAgICAiYXJndW1lbnRzIjogdHJ1ZSwKICAgICAgICAiZW52aXJvbm1lbnQiOiBmYWxzZSwKICAgICAgICAibWF0ZXJpYWxzIjogdHJ1ZQogICAgICB9LAogICAgICAicmVwcm9kdWNpYmxlIjogZmFsc2UKICAgIH0sCiAgICAibWF0ZXJpYWxzIjogWwogICAgICB7CiAgICAgICAgInVyaSI6ICJnaXQraHR0cHM6Ly9naXRodWIuY29tL2dpdHBvZC1pby9naXRwb2QuZ2l0IiwKICAgICAgICAiZGlnZXN0IjogewogICAgICAgICAgInNoYTI1NiI6ICI1MDA5YzNjOTdhNTNjYjg3YjAzMTZkYmFhNGMzMDA1ZDAzMjYyMDYzIgogICAgICAgIH0KICAgICAgfQogICAgXQogIH0KfQ==","signatures":null}
4
+