@gitpod/ide-metrics-api-grpcweb 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.
- package/lib/idemetrics_grpc_web_pb.d.ts +43 -0
- package/lib/idemetrics_grpc_web_pb.js +196 -0
- package/lib/idemetrics_pb.d.ts +91 -0
- package/lib/idemetrics_pb.js +712 -0
- package/package.json +19 -0
- package/pkg-yarn.lock +10 -0
- package/provenance-bundle.jsonl +4 -0
@@ -0,0 +1,43 @@
|
|
1
|
+
import * as grpcWeb from 'grpc-web';
|
2
|
+
|
3
|
+
import * as idemetrics_pb from './idemetrics_pb';
|
4
|
+
|
5
|
+
|
6
|
+
export class MetricsServiceClient {
|
7
|
+
constructor (hostname: string,
|
8
|
+
credentials?: null | { [index: string]: string; },
|
9
|
+
options?: null | { [index: string]: any; });
|
10
|
+
|
11
|
+
addCounter(
|
12
|
+
request: idemetrics_pb.AddCounterRequest,
|
13
|
+
metadata: grpcWeb.Metadata | undefined,
|
14
|
+
callback: (err: grpcWeb.RpcError,
|
15
|
+
response: idemetrics_pb.AddCounterResponse) => void
|
16
|
+
): grpcWeb.ClientReadableStream<idemetrics_pb.AddCounterResponse>;
|
17
|
+
|
18
|
+
observeHistogram(
|
19
|
+
request: idemetrics_pb.ObserveHistogramRequest,
|
20
|
+
metadata: grpcWeb.Metadata | undefined,
|
21
|
+
callback: (err: grpcWeb.RpcError,
|
22
|
+
response: idemetrics_pb.ObserveHistogramResponse) => void
|
23
|
+
): grpcWeb.ClientReadableStream<idemetrics_pb.ObserveHistogramResponse>;
|
24
|
+
|
25
|
+
}
|
26
|
+
|
27
|
+
export class MetricsServicePromiseClient {
|
28
|
+
constructor (hostname: string,
|
29
|
+
credentials?: null | { [index: string]: string; },
|
30
|
+
options?: null | { [index: string]: any; });
|
31
|
+
|
32
|
+
addCounter(
|
33
|
+
request: idemetrics_pb.AddCounterRequest,
|
34
|
+
metadata?: grpcWeb.Metadata
|
35
|
+
): Promise<idemetrics_pb.AddCounterResponse>;
|
36
|
+
|
37
|
+
observeHistogram(
|
38
|
+
request: idemetrics_pb.ObserveHistogramRequest,
|
39
|
+
metadata?: grpcWeb.Metadata
|
40
|
+
): Promise<idemetrics_pb.ObserveHistogramResponse>;
|
41
|
+
|
42
|
+
}
|
43
|
+
|
@@ -0,0 +1,196 @@
|
|
1
|
+
/**
|
2
|
+
* @fileoverview gRPC-Web generated client stub for ide_metrics_api
|
3
|
+
* @enhanceable
|
4
|
+
* @public
|
5
|
+
*/
|
6
|
+
|
7
|
+
// GENERATED CODE -- DO NOT EDIT!
|
8
|
+
|
9
|
+
|
10
|
+
/* eslint-disable */
|
11
|
+
// @ts-nocheck
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
const grpc = {};
|
16
|
+
grpc.web = require('grpc-web');
|
17
|
+
|
18
|
+
const proto = {};
|
19
|
+
proto.ide_metrics_api = require('./idemetrics_pb.js');
|
20
|
+
|
21
|
+
/**
|
22
|
+
* @param {string} hostname
|
23
|
+
* @param {?Object} credentials
|
24
|
+
* @param {?grpc.web.ClientOptions} options
|
25
|
+
* @constructor
|
26
|
+
* @struct
|
27
|
+
* @final
|
28
|
+
*/
|
29
|
+
proto.ide_metrics_api.MetricsServiceClient =
|
30
|
+
function(hostname, credentials, options) {
|
31
|
+
if (!options) options = {};
|
32
|
+
options.format = 'binary';
|
33
|
+
|
34
|
+
/**
|
35
|
+
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
36
|
+
*/
|
37
|
+
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
38
|
+
|
39
|
+
/**
|
40
|
+
* @private @const {string} The hostname
|
41
|
+
*/
|
42
|
+
this.hostname_ = hostname;
|
43
|
+
|
44
|
+
};
|
45
|
+
|
46
|
+
|
47
|
+
/**
|
48
|
+
* @param {string} hostname
|
49
|
+
* @param {?Object} credentials
|
50
|
+
* @param {?grpc.web.ClientOptions} options
|
51
|
+
* @constructor
|
52
|
+
* @struct
|
53
|
+
* @final
|
54
|
+
*/
|
55
|
+
proto.ide_metrics_api.MetricsServicePromiseClient =
|
56
|
+
function(hostname, credentials, options) {
|
57
|
+
if (!options) options = {};
|
58
|
+
options.format = 'binary';
|
59
|
+
|
60
|
+
/**
|
61
|
+
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
62
|
+
*/
|
63
|
+
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
64
|
+
|
65
|
+
/**
|
66
|
+
* @private @const {string} The hostname
|
67
|
+
*/
|
68
|
+
this.hostname_ = hostname;
|
69
|
+
|
70
|
+
};
|
71
|
+
|
72
|
+
|
73
|
+
/**
|
74
|
+
* @const
|
75
|
+
* @type {!grpc.web.MethodDescriptor<
|
76
|
+
* !proto.ide_metrics_api.AddCounterRequest,
|
77
|
+
* !proto.ide_metrics_api.AddCounterResponse>}
|
78
|
+
*/
|
79
|
+
const methodDescriptor_MetricsService_AddCounter = new grpc.web.MethodDescriptor(
|
80
|
+
'/ide_metrics_api.MetricsService/AddCounter',
|
81
|
+
grpc.web.MethodType.UNARY,
|
82
|
+
proto.ide_metrics_api.AddCounterRequest,
|
83
|
+
proto.ide_metrics_api.AddCounterResponse,
|
84
|
+
/**
|
85
|
+
* @param {!proto.ide_metrics_api.AddCounterRequest} request
|
86
|
+
* @return {!Uint8Array}
|
87
|
+
*/
|
88
|
+
function(request) {
|
89
|
+
return request.serializeBinary();
|
90
|
+
},
|
91
|
+
proto.ide_metrics_api.AddCounterResponse.deserializeBinary
|
92
|
+
);
|
93
|
+
|
94
|
+
|
95
|
+
/**
|
96
|
+
* @param {!proto.ide_metrics_api.AddCounterRequest} request The
|
97
|
+
* request proto
|
98
|
+
* @param {?Object<string, string>} metadata User defined
|
99
|
+
* call metadata
|
100
|
+
* @param {function(?grpc.web.RpcError, ?proto.ide_metrics_api.AddCounterResponse)}
|
101
|
+
* callback The callback function(error, response)
|
102
|
+
* @return {!grpc.web.ClientReadableStream<!proto.ide_metrics_api.AddCounterResponse>|undefined}
|
103
|
+
* The XHR Node Readable Stream
|
104
|
+
*/
|
105
|
+
proto.ide_metrics_api.MetricsServiceClient.prototype.addCounter =
|
106
|
+
function(request, metadata, callback) {
|
107
|
+
return this.client_.rpcCall(this.hostname_ +
|
108
|
+
'/ide_metrics_api.MetricsService/AddCounter',
|
109
|
+
request,
|
110
|
+
metadata || {},
|
111
|
+
methodDescriptor_MetricsService_AddCounter,
|
112
|
+
callback);
|
113
|
+
};
|
114
|
+
|
115
|
+
|
116
|
+
/**
|
117
|
+
* @param {!proto.ide_metrics_api.AddCounterRequest} request The
|
118
|
+
* request proto
|
119
|
+
* @param {?Object<string, string>=} metadata User defined
|
120
|
+
* call metadata
|
121
|
+
* @return {!Promise<!proto.ide_metrics_api.AddCounterResponse>}
|
122
|
+
* Promise that resolves to the response
|
123
|
+
*/
|
124
|
+
proto.ide_metrics_api.MetricsServicePromiseClient.prototype.addCounter =
|
125
|
+
function(request, metadata) {
|
126
|
+
return this.client_.unaryCall(this.hostname_ +
|
127
|
+
'/ide_metrics_api.MetricsService/AddCounter',
|
128
|
+
request,
|
129
|
+
metadata || {},
|
130
|
+
methodDescriptor_MetricsService_AddCounter);
|
131
|
+
};
|
132
|
+
|
133
|
+
|
134
|
+
/**
|
135
|
+
* @const
|
136
|
+
* @type {!grpc.web.MethodDescriptor<
|
137
|
+
* !proto.ide_metrics_api.ObserveHistogramRequest,
|
138
|
+
* !proto.ide_metrics_api.ObserveHistogramResponse>}
|
139
|
+
*/
|
140
|
+
const methodDescriptor_MetricsService_ObserveHistogram = new grpc.web.MethodDescriptor(
|
141
|
+
'/ide_metrics_api.MetricsService/ObserveHistogram',
|
142
|
+
grpc.web.MethodType.UNARY,
|
143
|
+
proto.ide_metrics_api.ObserveHistogramRequest,
|
144
|
+
proto.ide_metrics_api.ObserveHistogramResponse,
|
145
|
+
/**
|
146
|
+
* @param {!proto.ide_metrics_api.ObserveHistogramRequest} request
|
147
|
+
* @return {!Uint8Array}
|
148
|
+
*/
|
149
|
+
function(request) {
|
150
|
+
return request.serializeBinary();
|
151
|
+
},
|
152
|
+
proto.ide_metrics_api.ObserveHistogramResponse.deserializeBinary
|
153
|
+
);
|
154
|
+
|
155
|
+
|
156
|
+
/**
|
157
|
+
* @param {!proto.ide_metrics_api.ObserveHistogramRequest} request The
|
158
|
+
* request proto
|
159
|
+
* @param {?Object<string, string>} metadata User defined
|
160
|
+
* call metadata
|
161
|
+
* @param {function(?grpc.web.RpcError, ?proto.ide_metrics_api.ObserveHistogramResponse)}
|
162
|
+
* callback The callback function(error, response)
|
163
|
+
* @return {!grpc.web.ClientReadableStream<!proto.ide_metrics_api.ObserveHistogramResponse>|undefined}
|
164
|
+
* The XHR Node Readable Stream
|
165
|
+
*/
|
166
|
+
proto.ide_metrics_api.MetricsServiceClient.prototype.observeHistogram =
|
167
|
+
function(request, metadata, callback) {
|
168
|
+
return this.client_.rpcCall(this.hostname_ +
|
169
|
+
'/ide_metrics_api.MetricsService/ObserveHistogram',
|
170
|
+
request,
|
171
|
+
metadata || {},
|
172
|
+
methodDescriptor_MetricsService_ObserveHistogram,
|
173
|
+
callback);
|
174
|
+
};
|
175
|
+
|
176
|
+
|
177
|
+
/**
|
178
|
+
* @param {!proto.ide_metrics_api.ObserveHistogramRequest} request The
|
179
|
+
* request proto
|
180
|
+
* @param {?Object<string, string>=} metadata User defined
|
181
|
+
* call metadata
|
182
|
+
* @return {!Promise<!proto.ide_metrics_api.ObserveHistogramResponse>}
|
183
|
+
* Promise that resolves to the response
|
184
|
+
*/
|
185
|
+
proto.ide_metrics_api.MetricsServicePromiseClient.prototype.observeHistogram =
|
186
|
+
function(request, metadata) {
|
187
|
+
return this.client_.unaryCall(this.hostname_ +
|
188
|
+
'/ide_metrics_api.MetricsService/ObserveHistogram',
|
189
|
+
request,
|
190
|
+
metadata || {},
|
191
|
+
methodDescriptor_MetricsService_ObserveHistogram);
|
192
|
+
};
|
193
|
+
|
194
|
+
|
195
|
+
module.exports = proto.ide_metrics_api;
|
196
|
+
|
@@ -0,0 +1,91 @@
|
|
1
|
+
import * as jspb from 'google-protobuf'
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
export class AddCounterRequest extends jspb.Message {
|
6
|
+
getName(): string;
|
7
|
+
setName(value: string): AddCounterRequest;
|
8
|
+
|
9
|
+
getLabelsMap(): jspb.Map<string, string>;
|
10
|
+
clearLabelsMap(): AddCounterRequest;
|
11
|
+
|
12
|
+
getValue(): number;
|
13
|
+
setValue(value: number): AddCounterRequest;
|
14
|
+
hasValue(): boolean;
|
15
|
+
clearValue(): AddCounterRequest;
|
16
|
+
|
17
|
+
serializeBinary(): Uint8Array;
|
18
|
+
toObject(includeInstance?: boolean): AddCounterRequest.AsObject;
|
19
|
+
static toObject(includeInstance: boolean, msg: AddCounterRequest): AddCounterRequest.AsObject;
|
20
|
+
static serializeBinaryToWriter(message: AddCounterRequest, writer: jspb.BinaryWriter): void;
|
21
|
+
static deserializeBinary(bytes: Uint8Array): AddCounterRequest;
|
22
|
+
static deserializeBinaryFromReader(message: AddCounterRequest, reader: jspb.BinaryReader): AddCounterRequest;
|
23
|
+
}
|
24
|
+
|
25
|
+
export namespace AddCounterRequest {
|
26
|
+
export type AsObject = {
|
27
|
+
name: string,
|
28
|
+
labelsMap: Array<[string, string]>,
|
29
|
+
value?: number,
|
30
|
+
}
|
31
|
+
|
32
|
+
export enum ValueCase {
|
33
|
+
_VALUE_NOT_SET = 0,
|
34
|
+
VALUE = 3,
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
export class AddCounterResponse extends jspb.Message {
|
39
|
+
serializeBinary(): Uint8Array;
|
40
|
+
toObject(includeInstance?: boolean): AddCounterResponse.AsObject;
|
41
|
+
static toObject(includeInstance: boolean, msg: AddCounterResponse): AddCounterResponse.AsObject;
|
42
|
+
static serializeBinaryToWriter(message: AddCounterResponse, writer: jspb.BinaryWriter): void;
|
43
|
+
static deserializeBinary(bytes: Uint8Array): AddCounterResponse;
|
44
|
+
static deserializeBinaryFromReader(message: AddCounterResponse, reader: jspb.BinaryReader): AddCounterResponse;
|
45
|
+
}
|
46
|
+
|
47
|
+
export namespace AddCounterResponse {
|
48
|
+
export type AsObject = {
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
export class ObserveHistogramRequest extends jspb.Message {
|
53
|
+
getName(): string;
|
54
|
+
setName(value: string): ObserveHistogramRequest;
|
55
|
+
|
56
|
+
getLabelsMap(): jspb.Map<string, string>;
|
57
|
+
clearLabelsMap(): ObserveHistogramRequest;
|
58
|
+
|
59
|
+
getValue(): number;
|
60
|
+
setValue(value: number): ObserveHistogramRequest;
|
61
|
+
|
62
|
+
serializeBinary(): Uint8Array;
|
63
|
+
toObject(includeInstance?: boolean): ObserveHistogramRequest.AsObject;
|
64
|
+
static toObject(includeInstance: boolean, msg: ObserveHistogramRequest): ObserveHistogramRequest.AsObject;
|
65
|
+
static serializeBinaryToWriter(message: ObserveHistogramRequest, writer: jspb.BinaryWriter): void;
|
66
|
+
static deserializeBinary(bytes: Uint8Array): ObserveHistogramRequest;
|
67
|
+
static deserializeBinaryFromReader(message: ObserveHistogramRequest, reader: jspb.BinaryReader): ObserveHistogramRequest;
|
68
|
+
}
|
69
|
+
|
70
|
+
export namespace ObserveHistogramRequest {
|
71
|
+
export type AsObject = {
|
72
|
+
name: string,
|
73
|
+
labelsMap: Array<[string, string]>,
|
74
|
+
value: number,
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
export class ObserveHistogramResponse extends jspb.Message {
|
79
|
+
serializeBinary(): Uint8Array;
|
80
|
+
toObject(includeInstance?: boolean): ObserveHistogramResponse.AsObject;
|
81
|
+
static toObject(includeInstance: boolean, msg: ObserveHistogramResponse): ObserveHistogramResponse.AsObject;
|
82
|
+
static serializeBinaryToWriter(message: ObserveHistogramResponse, writer: jspb.BinaryWriter): void;
|
83
|
+
static deserializeBinary(bytes: Uint8Array): ObserveHistogramResponse;
|
84
|
+
static deserializeBinaryFromReader(message: ObserveHistogramResponse, reader: jspb.BinaryReader): ObserveHistogramResponse;
|
85
|
+
}
|
86
|
+
|
87
|
+
export namespace ObserveHistogramResponse {
|
88
|
+
export type AsObject = {
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
@@ -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,19 @@
|
|
1
|
+
{
|
2
|
+
"dependencies": {
|
3
|
+
"grpc-web": "^1.3.1"
|
4
|
+
},
|
5
|
+
"devDependencies": {
|
6
|
+
"typescript": "~4.4.2"
|
7
|
+
},
|
8
|
+
"files": [
|
9
|
+
"lib",
|
10
|
+
"pkg-yarn.lock",
|
11
|
+
"provenance-bundle.jsonl"
|
12
|
+
],
|
13
|
+
"license": "UNLICENSED",
|
14
|
+
"name": "@gitpod/ide-metrics-api-grpcweb",
|
15
|
+
"scripts": {
|
16
|
+
"build": "bash build.sh"
|
17
|
+
},
|
18
|
+
"version": "0.0.1-pd-ide-metrics.34"
|
19
|
+
}
|
package/pkg-yarn.lock
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
2
|
+
# yarn lockfile v1
|
3
|
+
|
4
|
+
|
5
|
+
"@gitpod/ide-metrics-api-grpcweb@0.0.1":
|
6
|
+
version "0.0.1"
|
7
|
+
resolved "file:///tmp/cache/ae1117e710ecc76bbcb66684ff76bbdc6bc53dfc.tar.gz"
|
8
|
+
dependencies:
|
9
|
+
grpc-web "^1.3.1"
|
10
|
+
|
@@ -0,0 +1,4 @@
|
|
1
|
+
{"payloadType":"application/vnd.in-toto+json","payload":"ewogICJfdHlwZSI6ICJodHRwczovL2luLXRvdG8uaW8vU3RhdGVtZW50L3YwLjEiLAogICJwcmVkaWNhdGVUeXBlIjogImh0dHBzOi8vc2xzYS5kZXYvcHJvdmVuYW5jZS92MC4xIiwKICAic3ViamVjdCI6IFtdLAogICJwcmVkaWNhdGUiOiB7CiAgICAiYnVpbGRlciI6IHsKICAgICAgImlkIjogImdpdGh1Yi5jb20vZ2l0cG9kLWlvL2xlZXdheTowLjIuMTctM2ViZmIyYUBzaGEyNTY6Yjk2MjllMmQwNDMyYWRlYTFiZTdkZGRiMzYwM2UzNmQ5ZjY5YjA5ZDg5ODVmNzI1MjU3YWRhYWRlNTFkNGE0MCIKICAgIH0sCiAgICAicmVjaXBlIjogewogICAgICAidHlwZSI6ICJodHRwczovL2dpdGh1Yi5jb20vZ2l0cG9kLWlvL2xlZXdheS9idWlsZEBnZW5lcmljOjEiLAogICAgICAiZGVmaW5lZEluTWF0ZXJpYWwiOiAwLAogICAgICAiZW50cnlQb2ludCI6ICJjb21wb25lbnRzL2lkZS1tZXRyaWNzLWFwaTpwcm90byIsCiAgICAgICJhcmd1bWVudHMiOiBbCiAgICAgICAgImxlZXdheSIsCiAgICAgICAgImJ1aWxkIiwKICAgICAgICAiLS1kb2NrZXItYnVpbGQtb3B0aW9ucyIsCiAgICAgICAgIm5ldHdvcms9aG9zdCIsCiAgICAgICAgIi0td2VyZnQ9dHJ1ZSIsCiAgICAgICAgIi1jIiwKICAgICAgICAicmVtb3RlIiwKICAgICAgICAiLS1kb250LXJldGFnIiwKICAgICAgICAiLS1jb3ZlcmFnZS1vdXRwdXQtcGF0aD0vdG1wL3RtcC5sRFZKTFpFS2Z4IiwKICAgICAgICAiLUR2ZXJzaW9uPXBkLWlkZS1tZXRyaWNzLjMyIiwKICAgICAgICAiLURyZW1vdmVTb3VyY2VzPWZhbHNlIiwKICAgICAgICAiLURpbWFnZVJlcG9CYXNlPWV1Lmdjci5pby9naXRwb2QtY29yZS1kZXYvYnVpbGQiLAogICAgICAgICItRGxvY2FsQXBwVmVyc2lvbj11bmtub3duIiwKICAgICAgICAiLURTRUdNRU5UX0lPX1RPS0VOPVgzYk5hdFlQdWRJSmNDejZrRmxUbjU0cHJ1bVFBcUdoIiwKICAgICAgICAiLURSRVBMSUNBVEVEX0FQSV9UT0tFTj1kZWExMGM4ZmI1ODc1NWZkNTFhYjk5NmNjYmFhYjg5NjJmNWU5MDZhYjQ0MTJhZTY3Nzk5NmVhNzRlODVhZTM1IiwKICAgICAgICAiLURSRVBMSUNBVEVEX0FQUD1naXRwb2QiLAogICAgICAgICItRG5wbVB1Ymxpc2hUcmlnZ2VyPTE2NTk1OTUyOTkyMzIiLAogICAgICAgICItRGpiTWFya2V0cGxhY2VQdWJsaXNoVHJpZ2dlcj1mYWxzZSIKICAgICAgXSwKICAgICAgImVudmlyb25tZW50IjogewogICAgICAgICJtYW5pZmVzdCI6IHsKICAgICAgICAgICJhcmNoIjogImFtZDY0IiwKICAgICAgICAgICJnbyI6ICJnbyB2ZXJzaW9uIGdvMS4xOC40IGxpbnV4L2FtZDY0IiwKICAgICAgICAgICJub2RlIjogInYxNi4xNi4wIiwKICAgICAgICAgICJvcyI6ICJsaW51eCIsCiAgICAgICAgICAieWFybiI6ICIxLjIyLjE5IgogICAgICAgIH0KICAgICAgfQogICAgfSwKICAgICJtZXRhZGF0YSI6IHsKICAgICAgImJ1aWxkU3RhcnRlZE9uIjogIjIwMjItMDgtMDRUMDY6NDE6NTQuODE5MjQ1NDY1WiIsCiAgICAgICJidWlsZEZpbmlzaGVkT24iOiAiMjAyMi0wOC0wNFQwNjo0MTo1NC44NjY1OTE0OTVaIiwKICAgICAgImNvbXBsZXRlbmVzcyI6IHsKICAgICAgICAiYXJndW1lbnRzIjogdHJ1ZSwKICAgICAgICAiZW52aXJvbm1lbnQiOiBmYWxzZSwKICAgICAgICAibWF0ZXJpYWxzIjogdHJ1ZQogICAgICB9LAogICAgICAicmVwcm9kdWNpYmxlIjogZmFsc2UKICAgIH0sCiAgICAibWF0ZXJpYWxzIjogWwogICAgICB7CiAgICAgICAgInVyaSI6ICJnaXQraHR0cHM6Ly9naXRodWIuY29tL2dpdHBvZC1pby9naXRwb2QuZ2l0IiwKICAgICAgICAiZGlnZXN0IjogewogICAgICAgICAgInNoYTI1NiI6ICJmM2I4ZTQzYjJjMzQ5MmIzY2M4ODUwM2QxNWJiYjJjYmJlZDlkMGZkIgogICAgICAgIH0KICAgICAgfQogICAgXQogIH0KfQ==","signatures":null}
|
2
|
+
|
3
|
+
{"payloadType":"application/vnd.in-toto+json","payload":"ewogICJfdHlwZSI6ICJodHRwczovL2luLXRvdG8uaW8vU3RhdGVtZW50L3YwLjEiLAogICJwcmVkaWNhdGVUeXBlIjogImh0dHBzOi8vc2xzYS5kZXYvcHJvdmVuYW5jZS92MC4xIiwKICAic3ViamVjdCI6IFsKICAgIHsKICAgICAgIm5hbWUiOiAiL2NvbXBvbmVudHMtaWRlLW1ldHJpY3MtYXBpLS1wcm90by9wcm92ZW5hbmNlLWJ1bmRsZS5qc29ubCIsCiAgICAgICJkaWdlc3QiOiB7CiAgICAgICAgInNoYTI1NiI6ICI3ZGUxNGZjMzRiOWYyYjMzNGJlMjE1ZjExODM4ZmM5YWVkYjNjNTlmOTU4MGRhYTk5NjE0NGFkM2I2MjVhNDQwIgogICAgICB9CiAgICB9LAogICAgewogICAgICAibmFtZSI6ICIvbGliL2lkZW1ldHJpY3NfcGIuanMiLAogICAgICAiZGlnZXN0IjogewogICAgICAgICJzaGEyNTYiOiAiMjk2MzliNjAyYTFiNjFmOGNiNWQ4OWZiNmIyNDZhYmIyNWY1NGM3NTg3MTZkYjExZTk5ZDBkNjFmMjVhY2Y4NSIKICAgICAgfQogICAgfSwKICAgIHsKICAgICAgIm5hbWUiOiAiL2NvbXBvbmVudHMtaWRlLW1ldHJpY3MtYXBpLS1wcm90by9pZGVtZXRyaWNzLnByb3RvIiwKICAgICAgImRpZ2VzdCI6IHsKICAgICAgICAic2hhMjU2IjogIjFiZjJmMjZjNmIzZmFlNmZiMzY1YmEwMGI3MDU3YTgzZTVkYmY4YzRkMTA0ODMyYmYwMGExNzI4ZDAyNGMyNGEiCiAgICAgIH0KICAgIH0sCiAgICB7CiAgICAgICJuYW1lIjogIi9saWIvaWRlbWV0cmljc19ncnBjX3dlYl9wYi5kLnRzIiwKICAgICAgImRpZ2VzdCI6IHsKICAgICAgICAic2hhMjU2IjogImFiZmRlYzUzMTgyZjg0NTE1NTFiZjA3Y2EyMDBkMzUwOWYwNmFjNmFmYmMwN2IwOGI5ZTUyMWJhYWMwYTgzYmUiCiAgICAgIH0KICAgIH0sCiAgICB7CiAgICAgICJuYW1lIjogIi9saWIvaWRlbWV0cmljc19wYi5kLnRzIiwKICAgICAgImRpZ2VzdCI6IHsKICAgICAgICAic2hhMjU2IjogIjc2YTM2N2YyNGM1YTYyNTY4NmVjNGFhOTU2NDNmMTY3YTkzNWVjM2U3Mzg1ODQxMWI5ZmQxYWQwNzgzYzFhNjgiCiAgICAgIH0KICAgIH0sCiAgICB7CiAgICAgICJuYW1lIjogIi95YXJuLmxvY2siLAogICAgICAiZGlnZXN0IjogewogICAgICAgICJzaGEyNTYiOiAiOTExYTkwMDkyNWIyZmIyMDJlYTA5MjQ0Nzk2YzQxMzhjNTgyM2MxOGQzM2UzNzYxNTE2NDRlMmJjNDFjN2ExYSIKICAgICAgfQogICAgfSwKICAgIHsKICAgICAgIm5hbWUiOiAiL2xpYi9pZGVtZXRyaWNzX2dycGNfd2ViX3BiLmpzIiwKICAgICAgImRpZ2VzdCI6IHsKICAgICAgICAic2hhMjU2IjogImJmOWMxNTJmNWY1NDFhMGEzMDY1ZmM4ODZmYTYzYTNjNDk3ZWEzMTIyMmFkZTRjZWVlN2RmOGZlOTA4N2UzNzEiCiAgICAgIH0KICAgIH0KICBdLAogICJwcmVkaWNhdGUiOiB7CiAgICAiYnVpbGRlciI6IHsKICAgICAgImlkIjogImdpdGh1Yi5jb20vZ2l0cG9kLWlvL2xlZXdheTowLjIuMTctM2ViZmIyYUBzaGEyNTY6Yjk2MjllMmQwNDMyYWRlYTFiZTdkZGRiMzYwM2UzNmQ5ZjY5YjA5ZDg5ODVmNzI1MjU3YWRhYWRlNTFkNGE0MCIKICAgIH0sCiAgICAicmVjaXBlIjogewogICAgICAidHlwZSI6ICJodHRwczovL2dpdGh1Yi5jb20vZ2l0cG9kLWlvL2xlZXdheS9idWlsZEB5YXJuOjciLAogICAgICAiZGVmaW5lZEluTWF0ZXJpYWwiOiAwLAogICAgICAiZW50cnlQb2ludCI6ICJjb21wb25lbnRzL2lkZS1tZXRyaWNzLWFwaS90eXBlc2NyaXB0LWdycGN3ZWI6bGliIiwKICAgICAgImFyZ3VtZW50cyI6IFsKICAgICAgICAibGVld2F5IiwKICAgICAgICAiYnVpbGQiLAogICAgICAgICItLWRvY2tlci1idWlsZC1vcHRpb25zIiwKICAgICAgICAibmV0d29yaz1ob3N0IiwKICAgICAgICAiLS13ZXJmdD10cnVlIiwKICAgICAgICAiLWMiLAogICAgICAgICJyZW1vdGUiLAogICAgICAgICItLWRvbnQtcmV0YWciLAogICAgICAgICItLWNvdmVyYWdlLW91dHB1dC1wYXRoPS90bXAvdG1wLnRldnZKeWVjZHoiLAogICAgICAgICItRHZlcnNpb249cGQtaWRlLW1ldHJpY3MuMzQiLAogICAgICAgICItRHJlbW92ZVNvdXJjZXM9ZmFsc2UiLAogICAgICAgICItRGltYWdlUmVwb0Jhc2U9ZXUuZ2NyLmlvL2dpdHBvZC1jb3JlLWRldi9idWlsZCIsCiAgICAgICAgIi1EbG9jYWxBcHBWZXJzaW9uPXVua25vd24iLAogICAgICAgICItRFNFR01FTlRfSU9fVE9LRU49WDNiTmF0WVB1ZElKY0N6NmtGbFRuNTRwcnVtUUFxR2giLAogICAgICAgICItRFJFUExJQ0FURURfQVBJX1RPS0VOPWRlYTEwYzhmYjU4NzU1ZmQ1MWFiOTk2Y2NiYWFiODk2MmY1ZTkwNmFiNDQxMmFlNjc3OTk2ZWE3NGU4NWFlMzUiLAogICAgICAgICItRFJFUExJQ0FURURfQVBQPWdpdHBvZCIsCiAgICAgICAgIi1EbnBtUHVibGlzaFRyaWdnZXI9MTY1OTU5Njc0MTY5NSIsCiAgICAgICAgIi1EamJNYXJrZXRwbGFjZVB1Ymxpc2hUcmlnZ2VyPWZhbHNlIgogICAgICBdLAogICAgICAiZW52aXJvbm1lbnQiOiB7CiAgICAgICAgIm1hbmlmZXN0IjogewogICAgICAgICAgImFyY2giOiAiYW1kNjQiLAogICAgICAgICAgImdvIjogImdvIHZlcnNpb24gZ28xLjE4LjQgbGludXgvYW1kNjQiLAogICAgICAgICAgIm5vZGUiOiAidjE2LjE2LjAiLAogICAgICAgICAgIm9zIjogImxpbnV4IiwKICAgICAgICAgICJ5YXJuIjogIjEuMjIuMTkiCiAgICAgICAgfQogICAgICB9CiAgICB9LAogICAgIm1ldGFkYXRhIjogewogICAgICAiYnVpbGRTdGFydGVkT24iOiAiMjAyMi0wOC0wNFQwNzowNTo1Ni42NDY3MjUzMTVaIiwKICAgICAgImJ1aWxkRmluaXNoZWRPbiI6ICIyMDIyLTA4LTA0VDA3OjA2OjA5LjI2ODQwMzQwNFoiLAogICAgICAiY29tcGxldGVuZXNzIjogewogICAgICAgICJhcmd1bWVudHMiOiB0cnVlLAogICAgICAgICJlbnZpcm9ubWVudCI6IGZhbHNlLAogICAgICAgICJtYXRlcmlhbHMiOiB0cnVlCiAgICAgIH0sCiAgICAgICJyZXByb2R1Y2libGUiOiBmYWxzZQogICAgfSwKICAgICJtYXRlcmlhbHMiOiBbCiAgICAgIHsKICAgICAgICAidXJpIjogImdpdCtodHRwczovL2dpdGh1Yi5jb20vZ2l0cG9kLWlvL2dpdHBvZC5naXQiLAogICAgICAgICJkaWdlc3QiOiB7CiAgICAgICAgICAic2hhMjU2IjogIjUwMDljM2M5N2E1M2NiODdiMDMxNmRiYWE0YzMwMDVkMDMyNjIwNjMiCiAgICAgICAgfQogICAgICB9CiAgICBdCiAgfQp9","signatures":null}
|
4
|
+
|