@superblocksteam/sabs-types-js 0.127.0
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/build/v1/service_grpc_pb.d.ts +111 -0
- package/build/v1/service_grpc_pb.js +179 -0
- package/build/v1/service_pb.d.ts +333 -0
- package/build/v1/service_pb.js +2575 -0
- package/google/api/annotations_grpc_pb.js +1 -0
- package/google/api/annotations_pb.d.ts +11 -0
- package/google/api/annotations_pb.js +54 -0
- package/google/api/http_grpc_pb.js +1 -0
- package/google/api/http_pb.d.ts +135 -0
- package/google/api/http_pb.js +1012 -0
- package/health/v1/service_grpc_pb.d.ts +42 -0
- package/health/v1/service_grpc_pb.js +46 -0
- package/health/v1/service_pb.d.ts +51 -0
- package/health/v1/service_pb.js +363 -0
- package/liveedit/v1/service_grpc_pb.d.ts +42 -0
- package/liveedit/v1/service_grpc_pb.js +46 -0
- package/liveedit/v1/service_pb.d.ts +100 -0
- package/liveedit/v1/service_pb.js +718 -0
- package/package.json +18 -0
- package/protoc-gen-openapiv2/options/annotations_grpc_pb.js +1 -0
- package/protoc-gen-openapiv2/options/annotations_pb.d.ts +19 -0
- package/protoc-gen-openapiv2/options/annotations_pb.js +158 -0
- package/protoc-gen-openapiv2/options/openapiv2_grpc_pb.js +1 -0
- package/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +800 -0
- package/protoc-gen-openapiv2/options/openapiv2_pb.js +6256 -0
|
@@ -0,0 +1,2575 @@
|
|
|
1
|
+
// source: build/v1/service.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 =
|
|
17
|
+
(typeof globalThis !== 'undefined' && globalThis) ||
|
|
18
|
+
(typeof window !== 'undefined' && window) ||
|
|
19
|
+
(typeof global !== 'undefined' && global) ||
|
|
20
|
+
(typeof self !== 'undefined' && self) ||
|
|
21
|
+
(function () { return this; }).call(null) ||
|
|
22
|
+
Function('return this')();
|
|
23
|
+
|
|
24
|
+
var google_api_annotations_pb = require('../../google/api/annotations_pb');
|
|
25
|
+
goog.object.extend(proto, google_api_annotations_pb);
|
|
26
|
+
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb');
|
|
27
|
+
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
28
|
+
var protoc$gen$openapiv2_options_annotations_pb = require('../../protoc-gen-openapiv2/options/annotations_pb');
|
|
29
|
+
goog.object.extend(proto, protoc$gen$openapiv2_options_annotations_pb);
|
|
30
|
+
goog.exportSymbol('proto.build.v1.ApplicationMetadata', null, global);
|
|
31
|
+
goog.exportSymbol('proto.build.v1.BuildRequest', null, global);
|
|
32
|
+
goog.exportSymbol('proto.build.v1.BuildResponse', null, global);
|
|
33
|
+
goog.exportSymbol('proto.build.v1.BuildStatus', null, global);
|
|
34
|
+
goog.exportSymbol('proto.build.v1.BulkStatusRequest', null, global);
|
|
35
|
+
goog.exportSymbol('proto.build.v1.BulkStatusResponse', null, global);
|
|
36
|
+
goog.exportSymbol('proto.build.v1.ListRequest', null, global);
|
|
37
|
+
goog.exportSymbol('proto.build.v1.ListResponse', null, global);
|
|
38
|
+
goog.exportSymbol('proto.build.v1.StatusRequest', null, global);
|
|
39
|
+
goog.exportSymbol('proto.build.v1.StatusResponse', null, global);
|
|
40
|
+
goog.exportSymbol('proto.build.v1.TerminateRequest', null, global);
|
|
41
|
+
goog.exportSymbol('proto.build.v1.TerminateResponse', null, global);
|
|
42
|
+
/**
|
|
43
|
+
* Generated by JsPbCodeGenerator.
|
|
44
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
45
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
46
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
47
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
48
|
+
* valid.
|
|
49
|
+
* @extends {jspb.Message}
|
|
50
|
+
* @constructor
|
|
51
|
+
*/
|
|
52
|
+
proto.build.v1.BuildRequest = function(opt_data) {
|
|
53
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
54
|
+
};
|
|
55
|
+
goog.inherits(proto.build.v1.BuildRequest, jspb.Message);
|
|
56
|
+
if (goog.DEBUG && !COMPILED) {
|
|
57
|
+
/**
|
|
58
|
+
* @public
|
|
59
|
+
* @override
|
|
60
|
+
*/
|
|
61
|
+
proto.build.v1.BuildRequest.displayName = 'proto.build.v1.BuildRequest';
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Generated by JsPbCodeGenerator.
|
|
65
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
66
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
67
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
68
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
69
|
+
* valid.
|
|
70
|
+
* @extends {jspb.Message}
|
|
71
|
+
* @constructor
|
|
72
|
+
*/
|
|
73
|
+
proto.build.v1.ApplicationMetadata = function(opt_data) {
|
|
74
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
75
|
+
};
|
|
76
|
+
goog.inherits(proto.build.v1.ApplicationMetadata, jspb.Message);
|
|
77
|
+
if (goog.DEBUG && !COMPILED) {
|
|
78
|
+
/**
|
|
79
|
+
* @public
|
|
80
|
+
* @override
|
|
81
|
+
*/
|
|
82
|
+
proto.build.v1.ApplicationMetadata.displayName = 'proto.build.v1.ApplicationMetadata';
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Generated by JsPbCodeGenerator.
|
|
86
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
87
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
88
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
89
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
90
|
+
* valid.
|
|
91
|
+
* @extends {jspb.Message}
|
|
92
|
+
* @constructor
|
|
93
|
+
*/
|
|
94
|
+
proto.build.v1.BuildResponse = function(opt_data) {
|
|
95
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
96
|
+
};
|
|
97
|
+
goog.inherits(proto.build.v1.BuildResponse, jspb.Message);
|
|
98
|
+
if (goog.DEBUG && !COMPILED) {
|
|
99
|
+
/**
|
|
100
|
+
* @public
|
|
101
|
+
* @override
|
|
102
|
+
*/
|
|
103
|
+
proto.build.v1.BuildResponse.displayName = 'proto.build.v1.BuildResponse';
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Generated by JsPbCodeGenerator.
|
|
107
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
108
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
109
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
110
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
111
|
+
* valid.
|
|
112
|
+
* @extends {jspb.Message}
|
|
113
|
+
* @constructor
|
|
114
|
+
*/
|
|
115
|
+
proto.build.v1.ListRequest = function(opt_data) {
|
|
116
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
117
|
+
};
|
|
118
|
+
goog.inherits(proto.build.v1.ListRequest, jspb.Message);
|
|
119
|
+
if (goog.DEBUG && !COMPILED) {
|
|
120
|
+
/**
|
|
121
|
+
* @public
|
|
122
|
+
* @override
|
|
123
|
+
*/
|
|
124
|
+
proto.build.v1.ListRequest.displayName = 'proto.build.v1.ListRequest';
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Generated by JsPbCodeGenerator.
|
|
128
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
129
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
130
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
131
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
132
|
+
* valid.
|
|
133
|
+
* @extends {jspb.Message}
|
|
134
|
+
* @constructor
|
|
135
|
+
*/
|
|
136
|
+
proto.build.v1.ListResponse = function(opt_data) {
|
|
137
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.build.v1.ListResponse.repeatedFields_, null);
|
|
138
|
+
};
|
|
139
|
+
goog.inherits(proto.build.v1.ListResponse, jspb.Message);
|
|
140
|
+
if (goog.DEBUG && !COMPILED) {
|
|
141
|
+
/**
|
|
142
|
+
* @public
|
|
143
|
+
* @override
|
|
144
|
+
*/
|
|
145
|
+
proto.build.v1.ListResponse.displayName = 'proto.build.v1.ListResponse';
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Generated by JsPbCodeGenerator.
|
|
149
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
150
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
151
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
152
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
153
|
+
* valid.
|
|
154
|
+
* @extends {jspb.Message}
|
|
155
|
+
* @constructor
|
|
156
|
+
*/
|
|
157
|
+
proto.build.v1.StatusRequest = function(opt_data) {
|
|
158
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
159
|
+
};
|
|
160
|
+
goog.inherits(proto.build.v1.StatusRequest, jspb.Message);
|
|
161
|
+
if (goog.DEBUG && !COMPILED) {
|
|
162
|
+
/**
|
|
163
|
+
* @public
|
|
164
|
+
* @override
|
|
165
|
+
*/
|
|
166
|
+
proto.build.v1.StatusRequest.displayName = 'proto.build.v1.StatusRequest';
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Generated by JsPbCodeGenerator.
|
|
170
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
171
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
172
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
173
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
174
|
+
* valid.
|
|
175
|
+
* @extends {jspb.Message}
|
|
176
|
+
* @constructor
|
|
177
|
+
*/
|
|
178
|
+
proto.build.v1.BulkStatusRequest = function(opt_data) {
|
|
179
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.build.v1.BulkStatusRequest.repeatedFields_, null);
|
|
180
|
+
};
|
|
181
|
+
goog.inherits(proto.build.v1.BulkStatusRequest, jspb.Message);
|
|
182
|
+
if (goog.DEBUG && !COMPILED) {
|
|
183
|
+
/**
|
|
184
|
+
* @public
|
|
185
|
+
* @override
|
|
186
|
+
*/
|
|
187
|
+
proto.build.v1.BulkStatusRequest.displayName = 'proto.build.v1.BulkStatusRequest';
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Generated by JsPbCodeGenerator.
|
|
191
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
192
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
193
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
194
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
195
|
+
* valid.
|
|
196
|
+
* @extends {jspb.Message}
|
|
197
|
+
* @constructor
|
|
198
|
+
*/
|
|
199
|
+
proto.build.v1.BulkStatusResponse = function(opt_data) {
|
|
200
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
201
|
+
};
|
|
202
|
+
goog.inherits(proto.build.v1.BulkStatusResponse, jspb.Message);
|
|
203
|
+
if (goog.DEBUG && !COMPILED) {
|
|
204
|
+
/**
|
|
205
|
+
* @public
|
|
206
|
+
* @override
|
|
207
|
+
*/
|
|
208
|
+
proto.build.v1.BulkStatusResponse.displayName = 'proto.build.v1.BulkStatusResponse';
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Generated by JsPbCodeGenerator.
|
|
212
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
213
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
214
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
215
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
216
|
+
* valid.
|
|
217
|
+
* @extends {jspb.Message}
|
|
218
|
+
* @constructor
|
|
219
|
+
*/
|
|
220
|
+
proto.build.v1.StatusResponse = function(opt_data) {
|
|
221
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
222
|
+
};
|
|
223
|
+
goog.inherits(proto.build.v1.StatusResponse, jspb.Message);
|
|
224
|
+
if (goog.DEBUG && !COMPILED) {
|
|
225
|
+
/**
|
|
226
|
+
* @public
|
|
227
|
+
* @override
|
|
228
|
+
*/
|
|
229
|
+
proto.build.v1.StatusResponse.displayName = 'proto.build.v1.StatusResponse';
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Generated by JsPbCodeGenerator.
|
|
233
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
234
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
235
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
236
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
237
|
+
* valid.
|
|
238
|
+
* @extends {jspb.Message}
|
|
239
|
+
* @constructor
|
|
240
|
+
*/
|
|
241
|
+
proto.build.v1.TerminateRequest = function(opt_data) {
|
|
242
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
243
|
+
};
|
|
244
|
+
goog.inherits(proto.build.v1.TerminateRequest, jspb.Message);
|
|
245
|
+
if (goog.DEBUG && !COMPILED) {
|
|
246
|
+
/**
|
|
247
|
+
* @public
|
|
248
|
+
* @override
|
|
249
|
+
*/
|
|
250
|
+
proto.build.v1.TerminateRequest.displayName = 'proto.build.v1.TerminateRequest';
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Generated by JsPbCodeGenerator.
|
|
254
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
255
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
256
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
257
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
258
|
+
* valid.
|
|
259
|
+
* @extends {jspb.Message}
|
|
260
|
+
* @constructor
|
|
261
|
+
*/
|
|
262
|
+
proto.build.v1.TerminateResponse = function(opt_data) {
|
|
263
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
264
|
+
};
|
|
265
|
+
goog.inherits(proto.build.v1.TerminateResponse, jspb.Message);
|
|
266
|
+
if (goog.DEBUG && !COMPILED) {
|
|
267
|
+
/**
|
|
268
|
+
* @public
|
|
269
|
+
* @override
|
|
270
|
+
*/
|
|
271
|
+
proto.build.v1.TerminateResponse.displayName = 'proto.build.v1.TerminateResponse';
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
277
|
+
/**
|
|
278
|
+
* Creates an object representation of this proto.
|
|
279
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
280
|
+
* Optional fields that are not set will be set to undefined.
|
|
281
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
282
|
+
* For the list of reserved names please see:
|
|
283
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
284
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
285
|
+
* JSPB instance for transitional soy proto support:
|
|
286
|
+
* http://goto/soy-param-migration
|
|
287
|
+
* @return {!Object}
|
|
288
|
+
*/
|
|
289
|
+
proto.build.v1.BuildRequest.prototype.toObject = function(opt_includeInstance) {
|
|
290
|
+
return proto.build.v1.BuildRequest.toObject(opt_includeInstance, this);
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Static version of the {@see toObject} method.
|
|
296
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
297
|
+
* the JSPB instance for transitional soy proto support:
|
|
298
|
+
* http://goto/soy-param-migration
|
|
299
|
+
* @param {!proto.build.v1.BuildRequest} msg The msg instance to transform.
|
|
300
|
+
* @return {!Object}
|
|
301
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
302
|
+
*/
|
|
303
|
+
proto.build.v1.BuildRequest.toObject = function(includeInstance, msg) {
|
|
304
|
+
var f, obj = {
|
|
305
|
+
directoryHash: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
306
|
+
applicationMetadata: (f = msg.getApplicationMetadata()) && proto.build.v1.ApplicationMetadata.toObject(includeInstance, f),
|
|
307
|
+
buildKey: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
if (includeInstance) {
|
|
311
|
+
obj.$jspbMessageInstance = msg;
|
|
312
|
+
}
|
|
313
|
+
return obj;
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Deserializes binary data (in protobuf wire format).
|
|
320
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
321
|
+
* @return {!proto.build.v1.BuildRequest}
|
|
322
|
+
*/
|
|
323
|
+
proto.build.v1.BuildRequest.deserializeBinary = function(bytes) {
|
|
324
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
325
|
+
var msg = new proto.build.v1.BuildRequest;
|
|
326
|
+
return proto.build.v1.BuildRequest.deserializeBinaryFromReader(msg, reader);
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
332
|
+
* given reader into the given message object.
|
|
333
|
+
* @param {!proto.build.v1.BuildRequest} msg The message object to deserialize into.
|
|
334
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
335
|
+
* @return {!proto.build.v1.BuildRequest}
|
|
336
|
+
*/
|
|
337
|
+
proto.build.v1.BuildRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
338
|
+
while (reader.nextField()) {
|
|
339
|
+
if (reader.isEndGroup()) {
|
|
340
|
+
break;
|
|
341
|
+
}
|
|
342
|
+
var field = reader.getFieldNumber();
|
|
343
|
+
switch (field) {
|
|
344
|
+
case 1:
|
|
345
|
+
var value = /** @type {string} */ (reader.readString());
|
|
346
|
+
msg.setDirectoryHash(value);
|
|
347
|
+
break;
|
|
348
|
+
case 2:
|
|
349
|
+
var value = new proto.build.v1.ApplicationMetadata;
|
|
350
|
+
reader.readMessage(value,proto.build.v1.ApplicationMetadata.deserializeBinaryFromReader);
|
|
351
|
+
msg.setApplicationMetadata(value);
|
|
352
|
+
break;
|
|
353
|
+
case 3:
|
|
354
|
+
var value = /** @type {string} */ (reader.readString());
|
|
355
|
+
msg.setBuildKey(value);
|
|
356
|
+
break;
|
|
357
|
+
default:
|
|
358
|
+
reader.skipField();
|
|
359
|
+
break;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
return msg;
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
368
|
+
* @return {!Uint8Array}
|
|
369
|
+
*/
|
|
370
|
+
proto.build.v1.BuildRequest.prototype.serializeBinary = function() {
|
|
371
|
+
var writer = new jspb.BinaryWriter();
|
|
372
|
+
proto.build.v1.BuildRequest.serializeBinaryToWriter(this, writer);
|
|
373
|
+
return writer.getResultBuffer();
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
379
|
+
* format), writing to the given BinaryWriter.
|
|
380
|
+
* @param {!proto.build.v1.BuildRequest} message
|
|
381
|
+
* @param {!jspb.BinaryWriter} writer
|
|
382
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
383
|
+
*/
|
|
384
|
+
proto.build.v1.BuildRequest.serializeBinaryToWriter = function(message, writer) {
|
|
385
|
+
var f = undefined;
|
|
386
|
+
f = message.getDirectoryHash();
|
|
387
|
+
if (f.length > 0) {
|
|
388
|
+
writer.writeString(
|
|
389
|
+
1,
|
|
390
|
+
f
|
|
391
|
+
);
|
|
392
|
+
}
|
|
393
|
+
f = message.getApplicationMetadata();
|
|
394
|
+
if (f != null) {
|
|
395
|
+
writer.writeMessage(
|
|
396
|
+
2,
|
|
397
|
+
f,
|
|
398
|
+
proto.build.v1.ApplicationMetadata.serializeBinaryToWriter
|
|
399
|
+
);
|
|
400
|
+
}
|
|
401
|
+
f = message.getBuildKey();
|
|
402
|
+
if (f.length > 0) {
|
|
403
|
+
writer.writeString(
|
|
404
|
+
3,
|
|
405
|
+
f
|
|
406
|
+
);
|
|
407
|
+
}
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* optional string directory_hash = 1;
|
|
413
|
+
* @return {string}
|
|
414
|
+
*/
|
|
415
|
+
proto.build.v1.BuildRequest.prototype.getDirectoryHash = function() {
|
|
416
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
417
|
+
};
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* @param {string} value
|
|
422
|
+
* @return {!proto.build.v1.BuildRequest} returns this
|
|
423
|
+
*/
|
|
424
|
+
proto.build.v1.BuildRequest.prototype.setDirectoryHash = function(value) {
|
|
425
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* optional ApplicationMetadata application_metadata = 2;
|
|
431
|
+
* @return {?proto.build.v1.ApplicationMetadata}
|
|
432
|
+
*/
|
|
433
|
+
proto.build.v1.BuildRequest.prototype.getApplicationMetadata = function() {
|
|
434
|
+
return /** @type{?proto.build.v1.ApplicationMetadata} */ (
|
|
435
|
+
jspb.Message.getWrapperField(this, proto.build.v1.ApplicationMetadata, 2));
|
|
436
|
+
};
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* @param {?proto.build.v1.ApplicationMetadata|undefined} value
|
|
441
|
+
* @return {!proto.build.v1.BuildRequest} returns this
|
|
442
|
+
*/
|
|
443
|
+
proto.build.v1.BuildRequest.prototype.setApplicationMetadata = function(value) {
|
|
444
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
445
|
+
};
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* Clears the message field making it undefined.
|
|
450
|
+
* @return {!proto.build.v1.BuildRequest} returns this
|
|
451
|
+
*/
|
|
452
|
+
proto.build.v1.BuildRequest.prototype.clearApplicationMetadata = function() {
|
|
453
|
+
return this.setApplicationMetadata(undefined);
|
|
454
|
+
};
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* Returns whether this field is set.
|
|
459
|
+
* @return {boolean}
|
|
460
|
+
*/
|
|
461
|
+
proto.build.v1.BuildRequest.prototype.hasApplicationMetadata = function() {
|
|
462
|
+
return jspb.Message.getField(this, 2) != null;
|
|
463
|
+
};
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* optional string build_key = 3;
|
|
468
|
+
* @return {string}
|
|
469
|
+
*/
|
|
470
|
+
proto.build.v1.BuildRequest.prototype.getBuildKey = function() {
|
|
471
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
472
|
+
};
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* @param {string} value
|
|
477
|
+
* @return {!proto.build.v1.BuildRequest} returns this
|
|
478
|
+
*/
|
|
479
|
+
proto.build.v1.BuildRequest.prototype.setBuildKey = function(value) {
|
|
480
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
481
|
+
};
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
488
|
+
/**
|
|
489
|
+
* Creates an object representation of this proto.
|
|
490
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
491
|
+
* Optional fields that are not set will be set to undefined.
|
|
492
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
493
|
+
* For the list of reserved names please see:
|
|
494
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
495
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
496
|
+
* JSPB instance for transitional soy proto support:
|
|
497
|
+
* http://goto/soy-param-migration
|
|
498
|
+
* @return {!Object}
|
|
499
|
+
*/
|
|
500
|
+
proto.build.v1.ApplicationMetadata.prototype.toObject = function(opt_includeInstance) {
|
|
501
|
+
return proto.build.v1.ApplicationMetadata.toObject(opt_includeInstance, this);
|
|
502
|
+
};
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* Static version of the {@see toObject} method.
|
|
507
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
508
|
+
* the JSPB instance for transitional soy proto support:
|
|
509
|
+
* http://goto/soy-param-migration
|
|
510
|
+
* @param {!proto.build.v1.ApplicationMetadata} msg The msg instance to transform.
|
|
511
|
+
* @return {!Object}
|
|
512
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
513
|
+
*/
|
|
514
|
+
proto.build.v1.ApplicationMetadata.toObject = function(includeInstance, msg) {
|
|
515
|
+
var f, obj = {
|
|
516
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
517
|
+
organizationId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
518
|
+
};
|
|
519
|
+
|
|
520
|
+
if (includeInstance) {
|
|
521
|
+
obj.$jspbMessageInstance = msg;
|
|
522
|
+
}
|
|
523
|
+
return obj;
|
|
524
|
+
};
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* Deserializes binary data (in protobuf wire format).
|
|
530
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
531
|
+
* @return {!proto.build.v1.ApplicationMetadata}
|
|
532
|
+
*/
|
|
533
|
+
proto.build.v1.ApplicationMetadata.deserializeBinary = function(bytes) {
|
|
534
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
535
|
+
var msg = new proto.build.v1.ApplicationMetadata;
|
|
536
|
+
return proto.build.v1.ApplicationMetadata.deserializeBinaryFromReader(msg, reader);
|
|
537
|
+
};
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
542
|
+
* given reader into the given message object.
|
|
543
|
+
* @param {!proto.build.v1.ApplicationMetadata} msg The message object to deserialize into.
|
|
544
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
545
|
+
* @return {!proto.build.v1.ApplicationMetadata}
|
|
546
|
+
*/
|
|
547
|
+
proto.build.v1.ApplicationMetadata.deserializeBinaryFromReader = function(msg, reader) {
|
|
548
|
+
while (reader.nextField()) {
|
|
549
|
+
if (reader.isEndGroup()) {
|
|
550
|
+
break;
|
|
551
|
+
}
|
|
552
|
+
var field = reader.getFieldNumber();
|
|
553
|
+
switch (field) {
|
|
554
|
+
case 1:
|
|
555
|
+
var value = /** @type {string} */ (reader.readString());
|
|
556
|
+
msg.setId(value);
|
|
557
|
+
break;
|
|
558
|
+
case 2:
|
|
559
|
+
var value = /** @type {string} */ (reader.readString());
|
|
560
|
+
msg.setOrganizationId(value);
|
|
561
|
+
break;
|
|
562
|
+
default:
|
|
563
|
+
reader.skipField();
|
|
564
|
+
break;
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
return msg;
|
|
568
|
+
};
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
573
|
+
* @return {!Uint8Array}
|
|
574
|
+
*/
|
|
575
|
+
proto.build.v1.ApplicationMetadata.prototype.serializeBinary = function() {
|
|
576
|
+
var writer = new jspb.BinaryWriter();
|
|
577
|
+
proto.build.v1.ApplicationMetadata.serializeBinaryToWriter(this, writer);
|
|
578
|
+
return writer.getResultBuffer();
|
|
579
|
+
};
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
584
|
+
* format), writing to the given BinaryWriter.
|
|
585
|
+
* @param {!proto.build.v1.ApplicationMetadata} message
|
|
586
|
+
* @param {!jspb.BinaryWriter} writer
|
|
587
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
588
|
+
*/
|
|
589
|
+
proto.build.v1.ApplicationMetadata.serializeBinaryToWriter = function(message, writer) {
|
|
590
|
+
var f = undefined;
|
|
591
|
+
f = message.getId();
|
|
592
|
+
if (f.length > 0) {
|
|
593
|
+
writer.writeString(
|
|
594
|
+
1,
|
|
595
|
+
f
|
|
596
|
+
);
|
|
597
|
+
}
|
|
598
|
+
f = message.getOrganizationId();
|
|
599
|
+
if (f.length > 0) {
|
|
600
|
+
writer.writeString(
|
|
601
|
+
2,
|
|
602
|
+
f
|
|
603
|
+
);
|
|
604
|
+
}
|
|
605
|
+
};
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* optional string id = 1;
|
|
610
|
+
* @return {string}
|
|
611
|
+
*/
|
|
612
|
+
proto.build.v1.ApplicationMetadata.prototype.getId = function() {
|
|
613
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
614
|
+
};
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* @param {string} value
|
|
619
|
+
* @return {!proto.build.v1.ApplicationMetadata} returns this
|
|
620
|
+
*/
|
|
621
|
+
proto.build.v1.ApplicationMetadata.prototype.setId = function(value) {
|
|
622
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
623
|
+
};
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* optional string organization_id = 2;
|
|
628
|
+
* @return {string}
|
|
629
|
+
*/
|
|
630
|
+
proto.build.v1.ApplicationMetadata.prototype.getOrganizationId = function() {
|
|
631
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
632
|
+
};
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* @param {string} value
|
|
637
|
+
* @return {!proto.build.v1.ApplicationMetadata} returns this
|
|
638
|
+
*/
|
|
639
|
+
proto.build.v1.ApplicationMetadata.prototype.setOrganizationId = function(value) {
|
|
640
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
641
|
+
};
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
648
|
+
/**
|
|
649
|
+
* Creates an object representation of this proto.
|
|
650
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
651
|
+
* Optional fields that are not set will be set to undefined.
|
|
652
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
653
|
+
* For the list of reserved names please see:
|
|
654
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
655
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
656
|
+
* JSPB instance for transitional soy proto support:
|
|
657
|
+
* http://goto/soy-param-migration
|
|
658
|
+
* @return {!Object}
|
|
659
|
+
*/
|
|
660
|
+
proto.build.v1.BuildResponse.prototype.toObject = function(opt_includeInstance) {
|
|
661
|
+
return proto.build.v1.BuildResponse.toObject(opt_includeInstance, this);
|
|
662
|
+
};
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
* Static version of the {@see toObject} method.
|
|
667
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
668
|
+
* the JSPB instance for transitional soy proto support:
|
|
669
|
+
* http://goto/soy-param-migration
|
|
670
|
+
* @param {!proto.build.v1.BuildResponse} msg The msg instance to transform.
|
|
671
|
+
* @return {!Object}
|
|
672
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
673
|
+
*/
|
|
674
|
+
proto.build.v1.BuildResponse.toObject = function(includeInstance, msg) {
|
|
675
|
+
var f, obj = {
|
|
676
|
+
buildId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
677
|
+
created: (f = msg.getCreated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
678
|
+
updated: (f = msg.getUpdated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
679
|
+
};
|
|
680
|
+
|
|
681
|
+
if (includeInstance) {
|
|
682
|
+
obj.$jspbMessageInstance = msg;
|
|
683
|
+
}
|
|
684
|
+
return obj;
|
|
685
|
+
};
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* Deserializes binary data (in protobuf wire format).
|
|
691
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
692
|
+
* @return {!proto.build.v1.BuildResponse}
|
|
693
|
+
*/
|
|
694
|
+
proto.build.v1.BuildResponse.deserializeBinary = function(bytes) {
|
|
695
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
696
|
+
var msg = new proto.build.v1.BuildResponse;
|
|
697
|
+
return proto.build.v1.BuildResponse.deserializeBinaryFromReader(msg, reader);
|
|
698
|
+
};
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
703
|
+
* given reader into the given message object.
|
|
704
|
+
* @param {!proto.build.v1.BuildResponse} msg The message object to deserialize into.
|
|
705
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
706
|
+
* @return {!proto.build.v1.BuildResponse}
|
|
707
|
+
*/
|
|
708
|
+
proto.build.v1.BuildResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
709
|
+
while (reader.nextField()) {
|
|
710
|
+
if (reader.isEndGroup()) {
|
|
711
|
+
break;
|
|
712
|
+
}
|
|
713
|
+
var field = reader.getFieldNumber();
|
|
714
|
+
switch (field) {
|
|
715
|
+
case 1:
|
|
716
|
+
var value = /** @type {string} */ (reader.readString());
|
|
717
|
+
msg.setBuildId(value);
|
|
718
|
+
break;
|
|
719
|
+
case 2:
|
|
720
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
721
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
722
|
+
msg.setCreated(value);
|
|
723
|
+
break;
|
|
724
|
+
case 3:
|
|
725
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
726
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
727
|
+
msg.setUpdated(value);
|
|
728
|
+
break;
|
|
729
|
+
default:
|
|
730
|
+
reader.skipField();
|
|
731
|
+
break;
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
return msg;
|
|
735
|
+
};
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
740
|
+
* @return {!Uint8Array}
|
|
741
|
+
*/
|
|
742
|
+
proto.build.v1.BuildResponse.prototype.serializeBinary = function() {
|
|
743
|
+
var writer = new jspb.BinaryWriter();
|
|
744
|
+
proto.build.v1.BuildResponse.serializeBinaryToWriter(this, writer);
|
|
745
|
+
return writer.getResultBuffer();
|
|
746
|
+
};
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
751
|
+
* format), writing to the given BinaryWriter.
|
|
752
|
+
* @param {!proto.build.v1.BuildResponse} message
|
|
753
|
+
* @param {!jspb.BinaryWriter} writer
|
|
754
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
755
|
+
*/
|
|
756
|
+
proto.build.v1.BuildResponse.serializeBinaryToWriter = function(message, writer) {
|
|
757
|
+
var f = undefined;
|
|
758
|
+
f = message.getBuildId();
|
|
759
|
+
if (f.length > 0) {
|
|
760
|
+
writer.writeString(
|
|
761
|
+
1,
|
|
762
|
+
f
|
|
763
|
+
);
|
|
764
|
+
}
|
|
765
|
+
f = message.getCreated();
|
|
766
|
+
if (f != null) {
|
|
767
|
+
writer.writeMessage(
|
|
768
|
+
2,
|
|
769
|
+
f,
|
|
770
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
771
|
+
);
|
|
772
|
+
}
|
|
773
|
+
f = message.getUpdated();
|
|
774
|
+
if (f != null) {
|
|
775
|
+
writer.writeMessage(
|
|
776
|
+
3,
|
|
777
|
+
f,
|
|
778
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
779
|
+
);
|
|
780
|
+
}
|
|
781
|
+
};
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* optional string build_id = 1;
|
|
786
|
+
* @return {string}
|
|
787
|
+
*/
|
|
788
|
+
proto.build.v1.BuildResponse.prototype.getBuildId = function() {
|
|
789
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
790
|
+
};
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
/**
|
|
794
|
+
* @param {string} value
|
|
795
|
+
* @return {!proto.build.v1.BuildResponse} returns this
|
|
796
|
+
*/
|
|
797
|
+
proto.build.v1.BuildResponse.prototype.setBuildId = function(value) {
|
|
798
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
799
|
+
};
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* optional google.protobuf.Timestamp created = 2;
|
|
804
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
805
|
+
*/
|
|
806
|
+
proto.build.v1.BuildResponse.prototype.getCreated = function() {
|
|
807
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
808
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
|
|
809
|
+
};
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
/**
|
|
813
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
814
|
+
* @return {!proto.build.v1.BuildResponse} returns this
|
|
815
|
+
*/
|
|
816
|
+
proto.build.v1.BuildResponse.prototype.setCreated = function(value) {
|
|
817
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
818
|
+
};
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
/**
|
|
822
|
+
* Clears the message field making it undefined.
|
|
823
|
+
* @return {!proto.build.v1.BuildResponse} returns this
|
|
824
|
+
*/
|
|
825
|
+
proto.build.v1.BuildResponse.prototype.clearCreated = function() {
|
|
826
|
+
return this.setCreated(undefined);
|
|
827
|
+
};
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* Returns whether this field is set.
|
|
832
|
+
* @return {boolean}
|
|
833
|
+
*/
|
|
834
|
+
proto.build.v1.BuildResponse.prototype.hasCreated = function() {
|
|
835
|
+
return jspb.Message.getField(this, 2) != null;
|
|
836
|
+
};
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* optional google.protobuf.Timestamp updated = 3;
|
|
841
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
842
|
+
*/
|
|
843
|
+
proto.build.v1.BuildResponse.prototype.getUpdated = function() {
|
|
844
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
845
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
846
|
+
};
|
|
847
|
+
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
851
|
+
* @return {!proto.build.v1.BuildResponse} returns this
|
|
852
|
+
*/
|
|
853
|
+
proto.build.v1.BuildResponse.prototype.setUpdated = function(value) {
|
|
854
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
855
|
+
};
|
|
856
|
+
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* Clears the message field making it undefined.
|
|
860
|
+
* @return {!proto.build.v1.BuildResponse} returns this
|
|
861
|
+
*/
|
|
862
|
+
proto.build.v1.BuildResponse.prototype.clearUpdated = function() {
|
|
863
|
+
return this.setUpdated(undefined);
|
|
864
|
+
};
|
|
865
|
+
|
|
866
|
+
|
|
867
|
+
/**
|
|
868
|
+
* Returns whether this field is set.
|
|
869
|
+
* @return {boolean}
|
|
870
|
+
*/
|
|
871
|
+
proto.build.v1.BuildResponse.prototype.hasUpdated = function() {
|
|
872
|
+
return jspb.Message.getField(this, 3) != null;
|
|
873
|
+
};
|
|
874
|
+
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
|
|
878
|
+
|
|
879
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
880
|
+
/**
|
|
881
|
+
* Creates an object representation of this proto.
|
|
882
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
883
|
+
* Optional fields that are not set will be set to undefined.
|
|
884
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
885
|
+
* For the list of reserved names please see:
|
|
886
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
887
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
888
|
+
* JSPB instance for transitional soy proto support:
|
|
889
|
+
* http://goto/soy-param-migration
|
|
890
|
+
* @return {!Object}
|
|
891
|
+
*/
|
|
892
|
+
proto.build.v1.ListRequest.prototype.toObject = function(opt_includeInstance) {
|
|
893
|
+
return proto.build.v1.ListRequest.toObject(opt_includeInstance, this);
|
|
894
|
+
};
|
|
895
|
+
|
|
896
|
+
|
|
897
|
+
/**
|
|
898
|
+
* Static version of the {@see toObject} method.
|
|
899
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
900
|
+
* the JSPB instance for transitional soy proto support:
|
|
901
|
+
* http://goto/soy-param-migration
|
|
902
|
+
* @param {!proto.build.v1.ListRequest} msg The msg instance to transform.
|
|
903
|
+
* @return {!Object}
|
|
904
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
905
|
+
*/
|
|
906
|
+
proto.build.v1.ListRequest.toObject = function(includeInstance, msg) {
|
|
907
|
+
var f, obj = {
|
|
908
|
+
organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
909
|
+
applicationId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
910
|
+
directoryHash: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
911
|
+
};
|
|
912
|
+
|
|
913
|
+
if (includeInstance) {
|
|
914
|
+
obj.$jspbMessageInstance = msg;
|
|
915
|
+
}
|
|
916
|
+
return obj;
|
|
917
|
+
};
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* Deserializes binary data (in protobuf wire format).
|
|
923
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
924
|
+
* @return {!proto.build.v1.ListRequest}
|
|
925
|
+
*/
|
|
926
|
+
proto.build.v1.ListRequest.deserializeBinary = function(bytes) {
|
|
927
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
928
|
+
var msg = new proto.build.v1.ListRequest;
|
|
929
|
+
return proto.build.v1.ListRequest.deserializeBinaryFromReader(msg, reader);
|
|
930
|
+
};
|
|
931
|
+
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
935
|
+
* given reader into the given message object.
|
|
936
|
+
* @param {!proto.build.v1.ListRequest} msg The message object to deserialize into.
|
|
937
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
938
|
+
* @return {!proto.build.v1.ListRequest}
|
|
939
|
+
*/
|
|
940
|
+
proto.build.v1.ListRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
941
|
+
while (reader.nextField()) {
|
|
942
|
+
if (reader.isEndGroup()) {
|
|
943
|
+
break;
|
|
944
|
+
}
|
|
945
|
+
var field = reader.getFieldNumber();
|
|
946
|
+
switch (field) {
|
|
947
|
+
case 1:
|
|
948
|
+
var value = /** @type {string} */ (reader.readString());
|
|
949
|
+
msg.setOrganizationId(value);
|
|
950
|
+
break;
|
|
951
|
+
case 2:
|
|
952
|
+
var value = /** @type {string} */ (reader.readString());
|
|
953
|
+
msg.setApplicationId(value);
|
|
954
|
+
break;
|
|
955
|
+
case 3:
|
|
956
|
+
var value = /** @type {string} */ (reader.readString());
|
|
957
|
+
msg.setDirectoryHash(value);
|
|
958
|
+
break;
|
|
959
|
+
default:
|
|
960
|
+
reader.skipField();
|
|
961
|
+
break;
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
return msg;
|
|
965
|
+
};
|
|
966
|
+
|
|
967
|
+
|
|
968
|
+
/**
|
|
969
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
970
|
+
* @return {!Uint8Array}
|
|
971
|
+
*/
|
|
972
|
+
proto.build.v1.ListRequest.prototype.serializeBinary = function() {
|
|
973
|
+
var writer = new jspb.BinaryWriter();
|
|
974
|
+
proto.build.v1.ListRequest.serializeBinaryToWriter(this, writer);
|
|
975
|
+
return writer.getResultBuffer();
|
|
976
|
+
};
|
|
977
|
+
|
|
978
|
+
|
|
979
|
+
/**
|
|
980
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
981
|
+
* format), writing to the given BinaryWriter.
|
|
982
|
+
* @param {!proto.build.v1.ListRequest} message
|
|
983
|
+
* @param {!jspb.BinaryWriter} writer
|
|
984
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
985
|
+
*/
|
|
986
|
+
proto.build.v1.ListRequest.serializeBinaryToWriter = function(message, writer) {
|
|
987
|
+
var f = undefined;
|
|
988
|
+
f = message.getOrganizationId();
|
|
989
|
+
if (f.length > 0) {
|
|
990
|
+
writer.writeString(
|
|
991
|
+
1,
|
|
992
|
+
f
|
|
993
|
+
);
|
|
994
|
+
}
|
|
995
|
+
f = message.getApplicationId();
|
|
996
|
+
if (f.length > 0) {
|
|
997
|
+
writer.writeString(
|
|
998
|
+
2,
|
|
999
|
+
f
|
|
1000
|
+
);
|
|
1001
|
+
}
|
|
1002
|
+
f = message.getDirectoryHash();
|
|
1003
|
+
if (f.length > 0) {
|
|
1004
|
+
writer.writeString(
|
|
1005
|
+
3,
|
|
1006
|
+
f
|
|
1007
|
+
);
|
|
1008
|
+
}
|
|
1009
|
+
};
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* optional string organization_id = 1;
|
|
1014
|
+
* @return {string}
|
|
1015
|
+
*/
|
|
1016
|
+
proto.build.v1.ListRequest.prototype.getOrganizationId = function() {
|
|
1017
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1018
|
+
};
|
|
1019
|
+
|
|
1020
|
+
|
|
1021
|
+
/**
|
|
1022
|
+
* @param {string} value
|
|
1023
|
+
* @return {!proto.build.v1.ListRequest} returns this
|
|
1024
|
+
*/
|
|
1025
|
+
proto.build.v1.ListRequest.prototype.setOrganizationId = function(value) {
|
|
1026
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1027
|
+
};
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
/**
|
|
1031
|
+
* optional string application_id = 2;
|
|
1032
|
+
* @return {string}
|
|
1033
|
+
*/
|
|
1034
|
+
proto.build.v1.ListRequest.prototype.getApplicationId = function() {
|
|
1035
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1036
|
+
};
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
/**
|
|
1040
|
+
* @param {string} value
|
|
1041
|
+
* @return {!proto.build.v1.ListRequest} returns this
|
|
1042
|
+
*/
|
|
1043
|
+
proto.build.v1.ListRequest.prototype.setApplicationId = function(value) {
|
|
1044
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1045
|
+
};
|
|
1046
|
+
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
* optional string directory_hash = 3;
|
|
1050
|
+
* @return {string}
|
|
1051
|
+
*/
|
|
1052
|
+
proto.build.v1.ListRequest.prototype.getDirectoryHash = function() {
|
|
1053
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1054
|
+
};
|
|
1055
|
+
|
|
1056
|
+
|
|
1057
|
+
/**
|
|
1058
|
+
* @param {string} value
|
|
1059
|
+
* @return {!proto.build.v1.ListRequest} returns this
|
|
1060
|
+
*/
|
|
1061
|
+
proto.build.v1.ListRequest.prototype.setDirectoryHash = function(value) {
|
|
1062
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1063
|
+
};
|
|
1064
|
+
|
|
1065
|
+
|
|
1066
|
+
|
|
1067
|
+
/**
|
|
1068
|
+
* List of repeated fields within this message type.
|
|
1069
|
+
* @private {!Array<number>}
|
|
1070
|
+
* @const
|
|
1071
|
+
*/
|
|
1072
|
+
proto.build.v1.ListResponse.repeatedFields_ = [1];
|
|
1073
|
+
|
|
1074
|
+
|
|
1075
|
+
|
|
1076
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1077
|
+
/**
|
|
1078
|
+
* Creates an object representation of this proto.
|
|
1079
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1080
|
+
* Optional fields that are not set will be set to undefined.
|
|
1081
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1082
|
+
* For the list of reserved names please see:
|
|
1083
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1084
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1085
|
+
* JSPB instance for transitional soy proto support:
|
|
1086
|
+
* http://goto/soy-param-migration
|
|
1087
|
+
* @return {!Object}
|
|
1088
|
+
*/
|
|
1089
|
+
proto.build.v1.ListResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1090
|
+
return proto.build.v1.ListResponse.toObject(opt_includeInstance, this);
|
|
1091
|
+
};
|
|
1092
|
+
|
|
1093
|
+
|
|
1094
|
+
/**
|
|
1095
|
+
* Static version of the {@see toObject} method.
|
|
1096
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1097
|
+
* the JSPB instance for transitional soy proto support:
|
|
1098
|
+
* http://goto/soy-param-migration
|
|
1099
|
+
* @param {!proto.build.v1.ListResponse} msg The msg instance to transform.
|
|
1100
|
+
* @return {!Object}
|
|
1101
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1102
|
+
*/
|
|
1103
|
+
proto.build.v1.ListResponse.toObject = function(includeInstance, msg) {
|
|
1104
|
+
var f, obj = {
|
|
1105
|
+
buildsList: jspb.Message.toObjectList(msg.getBuildsList(),
|
|
1106
|
+
proto.build.v1.StatusResponse.toObject, includeInstance)
|
|
1107
|
+
};
|
|
1108
|
+
|
|
1109
|
+
if (includeInstance) {
|
|
1110
|
+
obj.$jspbMessageInstance = msg;
|
|
1111
|
+
}
|
|
1112
|
+
return obj;
|
|
1113
|
+
};
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
|
|
1117
|
+
/**
|
|
1118
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1119
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1120
|
+
* @return {!proto.build.v1.ListResponse}
|
|
1121
|
+
*/
|
|
1122
|
+
proto.build.v1.ListResponse.deserializeBinary = function(bytes) {
|
|
1123
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1124
|
+
var msg = new proto.build.v1.ListResponse;
|
|
1125
|
+
return proto.build.v1.ListResponse.deserializeBinaryFromReader(msg, reader);
|
|
1126
|
+
};
|
|
1127
|
+
|
|
1128
|
+
|
|
1129
|
+
/**
|
|
1130
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1131
|
+
* given reader into the given message object.
|
|
1132
|
+
* @param {!proto.build.v1.ListResponse} msg The message object to deserialize into.
|
|
1133
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1134
|
+
* @return {!proto.build.v1.ListResponse}
|
|
1135
|
+
*/
|
|
1136
|
+
proto.build.v1.ListResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1137
|
+
while (reader.nextField()) {
|
|
1138
|
+
if (reader.isEndGroup()) {
|
|
1139
|
+
break;
|
|
1140
|
+
}
|
|
1141
|
+
var field = reader.getFieldNumber();
|
|
1142
|
+
switch (field) {
|
|
1143
|
+
case 1:
|
|
1144
|
+
var value = new proto.build.v1.StatusResponse;
|
|
1145
|
+
reader.readMessage(value,proto.build.v1.StatusResponse.deserializeBinaryFromReader);
|
|
1146
|
+
msg.addBuilds(value);
|
|
1147
|
+
break;
|
|
1148
|
+
default:
|
|
1149
|
+
reader.skipField();
|
|
1150
|
+
break;
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
return msg;
|
|
1154
|
+
};
|
|
1155
|
+
|
|
1156
|
+
|
|
1157
|
+
/**
|
|
1158
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1159
|
+
* @return {!Uint8Array}
|
|
1160
|
+
*/
|
|
1161
|
+
proto.build.v1.ListResponse.prototype.serializeBinary = function() {
|
|
1162
|
+
var writer = new jspb.BinaryWriter();
|
|
1163
|
+
proto.build.v1.ListResponse.serializeBinaryToWriter(this, writer);
|
|
1164
|
+
return writer.getResultBuffer();
|
|
1165
|
+
};
|
|
1166
|
+
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1170
|
+
* format), writing to the given BinaryWriter.
|
|
1171
|
+
* @param {!proto.build.v1.ListResponse} message
|
|
1172
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1173
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1174
|
+
*/
|
|
1175
|
+
proto.build.v1.ListResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1176
|
+
var f = undefined;
|
|
1177
|
+
f = message.getBuildsList();
|
|
1178
|
+
if (f.length > 0) {
|
|
1179
|
+
writer.writeRepeatedMessage(
|
|
1180
|
+
1,
|
|
1181
|
+
f,
|
|
1182
|
+
proto.build.v1.StatusResponse.serializeBinaryToWriter
|
|
1183
|
+
);
|
|
1184
|
+
}
|
|
1185
|
+
};
|
|
1186
|
+
|
|
1187
|
+
|
|
1188
|
+
/**
|
|
1189
|
+
* repeated StatusResponse builds = 1;
|
|
1190
|
+
* @return {!Array<!proto.build.v1.StatusResponse>}
|
|
1191
|
+
*/
|
|
1192
|
+
proto.build.v1.ListResponse.prototype.getBuildsList = function() {
|
|
1193
|
+
return /** @type{!Array<!proto.build.v1.StatusResponse>} */ (
|
|
1194
|
+
jspb.Message.getRepeatedWrapperField(this, proto.build.v1.StatusResponse, 1));
|
|
1195
|
+
};
|
|
1196
|
+
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* @param {!Array<!proto.build.v1.StatusResponse>} value
|
|
1200
|
+
* @return {!proto.build.v1.ListResponse} returns this
|
|
1201
|
+
*/
|
|
1202
|
+
proto.build.v1.ListResponse.prototype.setBuildsList = function(value) {
|
|
1203
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
1204
|
+
};
|
|
1205
|
+
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* @param {!proto.build.v1.StatusResponse=} opt_value
|
|
1209
|
+
* @param {number=} opt_index
|
|
1210
|
+
* @return {!proto.build.v1.StatusResponse}
|
|
1211
|
+
*/
|
|
1212
|
+
proto.build.v1.ListResponse.prototype.addBuilds = function(opt_value, opt_index) {
|
|
1213
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.build.v1.StatusResponse, opt_index);
|
|
1214
|
+
};
|
|
1215
|
+
|
|
1216
|
+
|
|
1217
|
+
/**
|
|
1218
|
+
* Clears the list making it empty but non-null.
|
|
1219
|
+
* @return {!proto.build.v1.ListResponse} returns this
|
|
1220
|
+
*/
|
|
1221
|
+
proto.build.v1.ListResponse.prototype.clearBuildsList = function() {
|
|
1222
|
+
return this.setBuildsList([]);
|
|
1223
|
+
};
|
|
1224
|
+
|
|
1225
|
+
|
|
1226
|
+
|
|
1227
|
+
|
|
1228
|
+
|
|
1229
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1230
|
+
/**
|
|
1231
|
+
* Creates an object representation of this proto.
|
|
1232
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1233
|
+
* Optional fields that are not set will be set to undefined.
|
|
1234
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1235
|
+
* For the list of reserved names please see:
|
|
1236
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1237
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1238
|
+
* JSPB instance for transitional soy proto support:
|
|
1239
|
+
* http://goto/soy-param-migration
|
|
1240
|
+
* @return {!Object}
|
|
1241
|
+
*/
|
|
1242
|
+
proto.build.v1.StatusRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1243
|
+
return proto.build.v1.StatusRequest.toObject(opt_includeInstance, this);
|
|
1244
|
+
};
|
|
1245
|
+
|
|
1246
|
+
|
|
1247
|
+
/**
|
|
1248
|
+
* Static version of the {@see toObject} method.
|
|
1249
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1250
|
+
* the JSPB instance for transitional soy proto support:
|
|
1251
|
+
* http://goto/soy-param-migration
|
|
1252
|
+
* @param {!proto.build.v1.StatusRequest} msg The msg instance to transform.
|
|
1253
|
+
* @return {!Object}
|
|
1254
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1255
|
+
*/
|
|
1256
|
+
proto.build.v1.StatusRequest.toObject = function(includeInstance, msg) {
|
|
1257
|
+
var f, obj = {
|
|
1258
|
+
buildId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
1259
|
+
};
|
|
1260
|
+
|
|
1261
|
+
if (includeInstance) {
|
|
1262
|
+
obj.$jspbMessageInstance = msg;
|
|
1263
|
+
}
|
|
1264
|
+
return obj;
|
|
1265
|
+
};
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
/**
|
|
1270
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1271
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1272
|
+
* @return {!proto.build.v1.StatusRequest}
|
|
1273
|
+
*/
|
|
1274
|
+
proto.build.v1.StatusRequest.deserializeBinary = function(bytes) {
|
|
1275
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1276
|
+
var msg = new proto.build.v1.StatusRequest;
|
|
1277
|
+
return proto.build.v1.StatusRequest.deserializeBinaryFromReader(msg, reader);
|
|
1278
|
+
};
|
|
1279
|
+
|
|
1280
|
+
|
|
1281
|
+
/**
|
|
1282
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1283
|
+
* given reader into the given message object.
|
|
1284
|
+
* @param {!proto.build.v1.StatusRequest} msg The message object to deserialize into.
|
|
1285
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1286
|
+
* @return {!proto.build.v1.StatusRequest}
|
|
1287
|
+
*/
|
|
1288
|
+
proto.build.v1.StatusRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1289
|
+
while (reader.nextField()) {
|
|
1290
|
+
if (reader.isEndGroup()) {
|
|
1291
|
+
break;
|
|
1292
|
+
}
|
|
1293
|
+
var field = reader.getFieldNumber();
|
|
1294
|
+
switch (field) {
|
|
1295
|
+
case 1:
|
|
1296
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1297
|
+
msg.setBuildId(value);
|
|
1298
|
+
break;
|
|
1299
|
+
default:
|
|
1300
|
+
reader.skipField();
|
|
1301
|
+
break;
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
return msg;
|
|
1305
|
+
};
|
|
1306
|
+
|
|
1307
|
+
|
|
1308
|
+
/**
|
|
1309
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1310
|
+
* @return {!Uint8Array}
|
|
1311
|
+
*/
|
|
1312
|
+
proto.build.v1.StatusRequest.prototype.serializeBinary = function() {
|
|
1313
|
+
var writer = new jspb.BinaryWriter();
|
|
1314
|
+
proto.build.v1.StatusRequest.serializeBinaryToWriter(this, writer);
|
|
1315
|
+
return writer.getResultBuffer();
|
|
1316
|
+
};
|
|
1317
|
+
|
|
1318
|
+
|
|
1319
|
+
/**
|
|
1320
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1321
|
+
* format), writing to the given BinaryWriter.
|
|
1322
|
+
* @param {!proto.build.v1.StatusRequest} message
|
|
1323
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1324
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1325
|
+
*/
|
|
1326
|
+
proto.build.v1.StatusRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1327
|
+
var f = undefined;
|
|
1328
|
+
f = message.getBuildId();
|
|
1329
|
+
if (f.length > 0) {
|
|
1330
|
+
writer.writeString(
|
|
1331
|
+
1,
|
|
1332
|
+
f
|
|
1333
|
+
);
|
|
1334
|
+
}
|
|
1335
|
+
};
|
|
1336
|
+
|
|
1337
|
+
|
|
1338
|
+
/**
|
|
1339
|
+
* optional string build_id = 1;
|
|
1340
|
+
* @return {string}
|
|
1341
|
+
*/
|
|
1342
|
+
proto.build.v1.StatusRequest.prototype.getBuildId = function() {
|
|
1343
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1344
|
+
};
|
|
1345
|
+
|
|
1346
|
+
|
|
1347
|
+
/**
|
|
1348
|
+
* @param {string} value
|
|
1349
|
+
* @return {!proto.build.v1.StatusRequest} returns this
|
|
1350
|
+
*/
|
|
1351
|
+
proto.build.v1.StatusRequest.prototype.setBuildId = function(value) {
|
|
1352
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1353
|
+
};
|
|
1354
|
+
|
|
1355
|
+
|
|
1356
|
+
|
|
1357
|
+
/**
|
|
1358
|
+
* List of repeated fields within this message type.
|
|
1359
|
+
* @private {!Array<number>}
|
|
1360
|
+
* @const
|
|
1361
|
+
*/
|
|
1362
|
+
proto.build.v1.BulkStatusRequest.repeatedFields_ = [3];
|
|
1363
|
+
|
|
1364
|
+
|
|
1365
|
+
|
|
1366
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1367
|
+
/**
|
|
1368
|
+
* Creates an object representation of this proto.
|
|
1369
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1370
|
+
* Optional fields that are not set will be set to undefined.
|
|
1371
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1372
|
+
* For the list of reserved names please see:
|
|
1373
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1374
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1375
|
+
* JSPB instance for transitional soy proto support:
|
|
1376
|
+
* http://goto/soy-param-migration
|
|
1377
|
+
* @return {!Object}
|
|
1378
|
+
*/
|
|
1379
|
+
proto.build.v1.BulkStatusRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1380
|
+
return proto.build.v1.BulkStatusRequest.toObject(opt_includeInstance, this);
|
|
1381
|
+
};
|
|
1382
|
+
|
|
1383
|
+
|
|
1384
|
+
/**
|
|
1385
|
+
* Static version of the {@see toObject} method.
|
|
1386
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1387
|
+
* the JSPB instance for transitional soy proto support:
|
|
1388
|
+
* http://goto/soy-param-migration
|
|
1389
|
+
* @param {!proto.build.v1.BulkStatusRequest} msg The msg instance to transform.
|
|
1390
|
+
* @return {!Object}
|
|
1391
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1392
|
+
*/
|
|
1393
|
+
proto.build.v1.BulkStatusRequest.toObject = function(includeInstance, msg) {
|
|
1394
|
+
var f, obj = {
|
|
1395
|
+
organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1396
|
+
applicationId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1397
|
+
directoryHashesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
|
|
1398
|
+
};
|
|
1399
|
+
|
|
1400
|
+
if (includeInstance) {
|
|
1401
|
+
obj.$jspbMessageInstance = msg;
|
|
1402
|
+
}
|
|
1403
|
+
return obj;
|
|
1404
|
+
};
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
|
|
1408
|
+
/**
|
|
1409
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1410
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1411
|
+
* @return {!proto.build.v1.BulkStatusRequest}
|
|
1412
|
+
*/
|
|
1413
|
+
proto.build.v1.BulkStatusRequest.deserializeBinary = function(bytes) {
|
|
1414
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1415
|
+
var msg = new proto.build.v1.BulkStatusRequest;
|
|
1416
|
+
return proto.build.v1.BulkStatusRequest.deserializeBinaryFromReader(msg, reader);
|
|
1417
|
+
};
|
|
1418
|
+
|
|
1419
|
+
|
|
1420
|
+
/**
|
|
1421
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1422
|
+
* given reader into the given message object.
|
|
1423
|
+
* @param {!proto.build.v1.BulkStatusRequest} msg The message object to deserialize into.
|
|
1424
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1425
|
+
* @return {!proto.build.v1.BulkStatusRequest}
|
|
1426
|
+
*/
|
|
1427
|
+
proto.build.v1.BulkStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1428
|
+
while (reader.nextField()) {
|
|
1429
|
+
if (reader.isEndGroup()) {
|
|
1430
|
+
break;
|
|
1431
|
+
}
|
|
1432
|
+
var field = reader.getFieldNumber();
|
|
1433
|
+
switch (field) {
|
|
1434
|
+
case 1:
|
|
1435
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1436
|
+
msg.setOrganizationId(value);
|
|
1437
|
+
break;
|
|
1438
|
+
case 2:
|
|
1439
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1440
|
+
msg.setApplicationId(value);
|
|
1441
|
+
break;
|
|
1442
|
+
case 3:
|
|
1443
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1444
|
+
msg.addDirectoryHashes(value);
|
|
1445
|
+
break;
|
|
1446
|
+
default:
|
|
1447
|
+
reader.skipField();
|
|
1448
|
+
break;
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
return msg;
|
|
1452
|
+
};
|
|
1453
|
+
|
|
1454
|
+
|
|
1455
|
+
/**
|
|
1456
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1457
|
+
* @return {!Uint8Array}
|
|
1458
|
+
*/
|
|
1459
|
+
proto.build.v1.BulkStatusRequest.prototype.serializeBinary = function() {
|
|
1460
|
+
var writer = new jspb.BinaryWriter();
|
|
1461
|
+
proto.build.v1.BulkStatusRequest.serializeBinaryToWriter(this, writer);
|
|
1462
|
+
return writer.getResultBuffer();
|
|
1463
|
+
};
|
|
1464
|
+
|
|
1465
|
+
|
|
1466
|
+
/**
|
|
1467
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1468
|
+
* format), writing to the given BinaryWriter.
|
|
1469
|
+
* @param {!proto.build.v1.BulkStatusRequest} message
|
|
1470
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1471
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1472
|
+
*/
|
|
1473
|
+
proto.build.v1.BulkStatusRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1474
|
+
var f = undefined;
|
|
1475
|
+
f = message.getOrganizationId();
|
|
1476
|
+
if (f.length > 0) {
|
|
1477
|
+
writer.writeString(
|
|
1478
|
+
1,
|
|
1479
|
+
f
|
|
1480
|
+
);
|
|
1481
|
+
}
|
|
1482
|
+
f = message.getApplicationId();
|
|
1483
|
+
if (f.length > 0) {
|
|
1484
|
+
writer.writeString(
|
|
1485
|
+
2,
|
|
1486
|
+
f
|
|
1487
|
+
);
|
|
1488
|
+
}
|
|
1489
|
+
f = message.getDirectoryHashesList();
|
|
1490
|
+
if (f.length > 0) {
|
|
1491
|
+
writer.writeRepeatedString(
|
|
1492
|
+
3,
|
|
1493
|
+
f
|
|
1494
|
+
);
|
|
1495
|
+
}
|
|
1496
|
+
};
|
|
1497
|
+
|
|
1498
|
+
|
|
1499
|
+
/**
|
|
1500
|
+
* optional string organization_id = 1;
|
|
1501
|
+
* @return {string}
|
|
1502
|
+
*/
|
|
1503
|
+
proto.build.v1.BulkStatusRequest.prototype.getOrganizationId = function() {
|
|
1504
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1505
|
+
};
|
|
1506
|
+
|
|
1507
|
+
|
|
1508
|
+
/**
|
|
1509
|
+
* @param {string} value
|
|
1510
|
+
* @return {!proto.build.v1.BulkStatusRequest} returns this
|
|
1511
|
+
*/
|
|
1512
|
+
proto.build.v1.BulkStatusRequest.prototype.setOrganizationId = function(value) {
|
|
1513
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1514
|
+
};
|
|
1515
|
+
|
|
1516
|
+
|
|
1517
|
+
/**
|
|
1518
|
+
* optional string application_id = 2;
|
|
1519
|
+
* @return {string}
|
|
1520
|
+
*/
|
|
1521
|
+
proto.build.v1.BulkStatusRequest.prototype.getApplicationId = function() {
|
|
1522
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1523
|
+
};
|
|
1524
|
+
|
|
1525
|
+
|
|
1526
|
+
/**
|
|
1527
|
+
* @param {string} value
|
|
1528
|
+
* @return {!proto.build.v1.BulkStatusRequest} returns this
|
|
1529
|
+
*/
|
|
1530
|
+
proto.build.v1.BulkStatusRequest.prototype.setApplicationId = function(value) {
|
|
1531
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1532
|
+
};
|
|
1533
|
+
|
|
1534
|
+
|
|
1535
|
+
/**
|
|
1536
|
+
* repeated string directory_hashes = 3;
|
|
1537
|
+
* @return {!Array<string>}
|
|
1538
|
+
*/
|
|
1539
|
+
proto.build.v1.BulkStatusRequest.prototype.getDirectoryHashesList = function() {
|
|
1540
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
|
1541
|
+
};
|
|
1542
|
+
|
|
1543
|
+
|
|
1544
|
+
/**
|
|
1545
|
+
* @param {!Array<string>} value
|
|
1546
|
+
* @return {!proto.build.v1.BulkStatusRequest} returns this
|
|
1547
|
+
*/
|
|
1548
|
+
proto.build.v1.BulkStatusRequest.prototype.setDirectoryHashesList = function(value) {
|
|
1549
|
+
return jspb.Message.setField(this, 3, value || []);
|
|
1550
|
+
};
|
|
1551
|
+
|
|
1552
|
+
|
|
1553
|
+
/**
|
|
1554
|
+
* @param {string} value
|
|
1555
|
+
* @param {number=} opt_index
|
|
1556
|
+
* @return {!proto.build.v1.BulkStatusRequest} returns this
|
|
1557
|
+
*/
|
|
1558
|
+
proto.build.v1.BulkStatusRequest.prototype.addDirectoryHashes = function(value, opt_index) {
|
|
1559
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
1560
|
+
};
|
|
1561
|
+
|
|
1562
|
+
|
|
1563
|
+
/**
|
|
1564
|
+
* Clears the list making it empty but non-null.
|
|
1565
|
+
* @return {!proto.build.v1.BulkStatusRequest} returns this
|
|
1566
|
+
*/
|
|
1567
|
+
proto.build.v1.BulkStatusRequest.prototype.clearDirectoryHashesList = function() {
|
|
1568
|
+
return this.setDirectoryHashesList([]);
|
|
1569
|
+
};
|
|
1570
|
+
|
|
1571
|
+
|
|
1572
|
+
|
|
1573
|
+
|
|
1574
|
+
|
|
1575
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1576
|
+
/**
|
|
1577
|
+
* Creates an object representation of this proto.
|
|
1578
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1579
|
+
* Optional fields that are not set will be set to undefined.
|
|
1580
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1581
|
+
* For the list of reserved names please see:
|
|
1582
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1583
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1584
|
+
* JSPB instance for transitional soy proto support:
|
|
1585
|
+
* http://goto/soy-param-migration
|
|
1586
|
+
* @return {!Object}
|
|
1587
|
+
*/
|
|
1588
|
+
proto.build.v1.BulkStatusResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1589
|
+
return proto.build.v1.BulkStatusResponse.toObject(opt_includeInstance, this);
|
|
1590
|
+
};
|
|
1591
|
+
|
|
1592
|
+
|
|
1593
|
+
/**
|
|
1594
|
+
* Static version of the {@see toObject} method.
|
|
1595
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1596
|
+
* the JSPB instance for transitional soy proto support:
|
|
1597
|
+
* http://goto/soy-param-migration
|
|
1598
|
+
* @param {!proto.build.v1.BulkStatusResponse} msg The msg instance to transform.
|
|
1599
|
+
* @return {!Object}
|
|
1600
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1601
|
+
*/
|
|
1602
|
+
proto.build.v1.BulkStatusResponse.toObject = function(includeInstance, msg) {
|
|
1603
|
+
var f, obj = {
|
|
1604
|
+
directoryHashToStatusMap: (f = msg.getDirectoryHashToStatusMap()) ? f.toObject(includeInstance, proto.build.v1.StatusResponse.toObject) : []
|
|
1605
|
+
};
|
|
1606
|
+
|
|
1607
|
+
if (includeInstance) {
|
|
1608
|
+
obj.$jspbMessageInstance = msg;
|
|
1609
|
+
}
|
|
1610
|
+
return obj;
|
|
1611
|
+
};
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
|
|
1615
|
+
/**
|
|
1616
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1617
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1618
|
+
* @return {!proto.build.v1.BulkStatusResponse}
|
|
1619
|
+
*/
|
|
1620
|
+
proto.build.v1.BulkStatusResponse.deserializeBinary = function(bytes) {
|
|
1621
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1622
|
+
var msg = new proto.build.v1.BulkStatusResponse;
|
|
1623
|
+
return proto.build.v1.BulkStatusResponse.deserializeBinaryFromReader(msg, reader);
|
|
1624
|
+
};
|
|
1625
|
+
|
|
1626
|
+
|
|
1627
|
+
/**
|
|
1628
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1629
|
+
* given reader into the given message object.
|
|
1630
|
+
* @param {!proto.build.v1.BulkStatusResponse} msg The message object to deserialize into.
|
|
1631
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1632
|
+
* @return {!proto.build.v1.BulkStatusResponse}
|
|
1633
|
+
*/
|
|
1634
|
+
proto.build.v1.BulkStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1635
|
+
while (reader.nextField()) {
|
|
1636
|
+
if (reader.isEndGroup()) {
|
|
1637
|
+
break;
|
|
1638
|
+
}
|
|
1639
|
+
var field = reader.getFieldNumber();
|
|
1640
|
+
switch (field) {
|
|
1641
|
+
case 1:
|
|
1642
|
+
var value = msg.getDirectoryHashToStatusMap();
|
|
1643
|
+
reader.readMessage(value, function(message, reader) {
|
|
1644
|
+
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.build.v1.StatusResponse.deserializeBinaryFromReader, "", new proto.build.v1.StatusResponse());
|
|
1645
|
+
});
|
|
1646
|
+
break;
|
|
1647
|
+
default:
|
|
1648
|
+
reader.skipField();
|
|
1649
|
+
break;
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
return msg;
|
|
1653
|
+
};
|
|
1654
|
+
|
|
1655
|
+
|
|
1656
|
+
/**
|
|
1657
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1658
|
+
* @return {!Uint8Array}
|
|
1659
|
+
*/
|
|
1660
|
+
proto.build.v1.BulkStatusResponse.prototype.serializeBinary = function() {
|
|
1661
|
+
var writer = new jspb.BinaryWriter();
|
|
1662
|
+
proto.build.v1.BulkStatusResponse.serializeBinaryToWriter(this, writer);
|
|
1663
|
+
return writer.getResultBuffer();
|
|
1664
|
+
};
|
|
1665
|
+
|
|
1666
|
+
|
|
1667
|
+
/**
|
|
1668
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1669
|
+
* format), writing to the given BinaryWriter.
|
|
1670
|
+
* @param {!proto.build.v1.BulkStatusResponse} message
|
|
1671
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1672
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1673
|
+
*/
|
|
1674
|
+
proto.build.v1.BulkStatusResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1675
|
+
var f = undefined;
|
|
1676
|
+
f = message.getDirectoryHashToStatusMap(true);
|
|
1677
|
+
if (f && f.getLength() > 0) {
|
|
1678
|
+
f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.build.v1.StatusResponse.serializeBinaryToWriter);
|
|
1679
|
+
}
|
|
1680
|
+
};
|
|
1681
|
+
|
|
1682
|
+
|
|
1683
|
+
/**
|
|
1684
|
+
* map<string, StatusResponse> directory_hash_to_status = 1;
|
|
1685
|
+
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
1686
|
+
* empty, instead returning `undefined`
|
|
1687
|
+
* @return {!jspb.Map<string,!proto.build.v1.StatusResponse>}
|
|
1688
|
+
*/
|
|
1689
|
+
proto.build.v1.BulkStatusResponse.prototype.getDirectoryHashToStatusMap = function(opt_noLazyCreate) {
|
|
1690
|
+
return /** @type {!jspb.Map<string,!proto.build.v1.StatusResponse>} */ (
|
|
1691
|
+
jspb.Message.getMapField(this, 1, opt_noLazyCreate,
|
|
1692
|
+
proto.build.v1.StatusResponse));
|
|
1693
|
+
};
|
|
1694
|
+
|
|
1695
|
+
|
|
1696
|
+
/**
|
|
1697
|
+
* Clears values from the map. The map will be non-null.
|
|
1698
|
+
* @return {!proto.build.v1.BulkStatusResponse} returns this
|
|
1699
|
+
*/
|
|
1700
|
+
proto.build.v1.BulkStatusResponse.prototype.clearDirectoryHashToStatusMap = function() {
|
|
1701
|
+
this.getDirectoryHashToStatusMap().clear();
|
|
1702
|
+
return this;
|
|
1703
|
+
};
|
|
1704
|
+
|
|
1705
|
+
|
|
1706
|
+
|
|
1707
|
+
|
|
1708
|
+
|
|
1709
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1710
|
+
/**
|
|
1711
|
+
* Creates an object representation of this proto.
|
|
1712
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1713
|
+
* Optional fields that are not set will be set to undefined.
|
|
1714
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1715
|
+
* For the list of reserved names please see:
|
|
1716
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1717
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1718
|
+
* JSPB instance for transitional soy proto support:
|
|
1719
|
+
* http://goto/soy-param-migration
|
|
1720
|
+
* @return {!Object}
|
|
1721
|
+
*/
|
|
1722
|
+
proto.build.v1.StatusResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1723
|
+
return proto.build.v1.StatusResponse.toObject(opt_includeInstance, this);
|
|
1724
|
+
};
|
|
1725
|
+
|
|
1726
|
+
|
|
1727
|
+
/**
|
|
1728
|
+
* Static version of the {@see toObject} method.
|
|
1729
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1730
|
+
* the JSPB instance for transitional soy proto support:
|
|
1731
|
+
* http://goto/soy-param-migration
|
|
1732
|
+
* @param {!proto.build.v1.StatusResponse} msg The msg instance to transform.
|
|
1733
|
+
* @return {!Object}
|
|
1734
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1735
|
+
*/
|
|
1736
|
+
proto.build.v1.StatusResponse.toObject = function(includeInstance, msg) {
|
|
1737
|
+
var f, obj = {
|
|
1738
|
+
buildId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1739
|
+
status: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
1740
|
+
error: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
|
|
1741
|
+
created: (f = msg.getCreated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
1742
|
+
updated: (f = msg.getUpdated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
1743
|
+
};
|
|
1744
|
+
|
|
1745
|
+
if (includeInstance) {
|
|
1746
|
+
obj.$jspbMessageInstance = msg;
|
|
1747
|
+
}
|
|
1748
|
+
return obj;
|
|
1749
|
+
};
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
|
|
1753
|
+
/**
|
|
1754
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1755
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1756
|
+
* @return {!proto.build.v1.StatusResponse}
|
|
1757
|
+
*/
|
|
1758
|
+
proto.build.v1.StatusResponse.deserializeBinary = function(bytes) {
|
|
1759
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1760
|
+
var msg = new proto.build.v1.StatusResponse;
|
|
1761
|
+
return proto.build.v1.StatusResponse.deserializeBinaryFromReader(msg, reader);
|
|
1762
|
+
};
|
|
1763
|
+
|
|
1764
|
+
|
|
1765
|
+
/**
|
|
1766
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1767
|
+
* given reader into the given message object.
|
|
1768
|
+
* @param {!proto.build.v1.StatusResponse} msg The message object to deserialize into.
|
|
1769
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1770
|
+
* @return {!proto.build.v1.StatusResponse}
|
|
1771
|
+
*/
|
|
1772
|
+
proto.build.v1.StatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1773
|
+
while (reader.nextField()) {
|
|
1774
|
+
if (reader.isEndGroup()) {
|
|
1775
|
+
break;
|
|
1776
|
+
}
|
|
1777
|
+
var field = reader.getFieldNumber();
|
|
1778
|
+
switch (field) {
|
|
1779
|
+
case 1:
|
|
1780
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1781
|
+
msg.setBuildId(value);
|
|
1782
|
+
break;
|
|
1783
|
+
case 2:
|
|
1784
|
+
var value = /** @type {!proto.build.v1.BuildStatus} */ (reader.readEnum());
|
|
1785
|
+
msg.setStatus(value);
|
|
1786
|
+
break;
|
|
1787
|
+
case 3:
|
|
1788
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1789
|
+
msg.setError(value);
|
|
1790
|
+
break;
|
|
1791
|
+
case 4:
|
|
1792
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
1793
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
1794
|
+
msg.setCreated(value);
|
|
1795
|
+
break;
|
|
1796
|
+
case 5:
|
|
1797
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
1798
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
1799
|
+
msg.setUpdated(value);
|
|
1800
|
+
break;
|
|
1801
|
+
default:
|
|
1802
|
+
reader.skipField();
|
|
1803
|
+
break;
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
return msg;
|
|
1807
|
+
};
|
|
1808
|
+
|
|
1809
|
+
|
|
1810
|
+
/**
|
|
1811
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1812
|
+
* @return {!Uint8Array}
|
|
1813
|
+
*/
|
|
1814
|
+
proto.build.v1.StatusResponse.prototype.serializeBinary = function() {
|
|
1815
|
+
var writer = new jspb.BinaryWriter();
|
|
1816
|
+
proto.build.v1.StatusResponse.serializeBinaryToWriter(this, writer);
|
|
1817
|
+
return writer.getResultBuffer();
|
|
1818
|
+
};
|
|
1819
|
+
|
|
1820
|
+
|
|
1821
|
+
/**
|
|
1822
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1823
|
+
* format), writing to the given BinaryWriter.
|
|
1824
|
+
* @param {!proto.build.v1.StatusResponse} message
|
|
1825
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1826
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1827
|
+
*/
|
|
1828
|
+
proto.build.v1.StatusResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1829
|
+
var f = undefined;
|
|
1830
|
+
f = message.getBuildId();
|
|
1831
|
+
if (f.length > 0) {
|
|
1832
|
+
writer.writeString(
|
|
1833
|
+
1,
|
|
1834
|
+
f
|
|
1835
|
+
);
|
|
1836
|
+
}
|
|
1837
|
+
f = message.getStatus();
|
|
1838
|
+
if (f !== 0.0) {
|
|
1839
|
+
writer.writeEnum(
|
|
1840
|
+
2,
|
|
1841
|
+
f
|
|
1842
|
+
);
|
|
1843
|
+
}
|
|
1844
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
1845
|
+
if (f != null) {
|
|
1846
|
+
writer.writeString(
|
|
1847
|
+
3,
|
|
1848
|
+
f
|
|
1849
|
+
);
|
|
1850
|
+
}
|
|
1851
|
+
f = message.getCreated();
|
|
1852
|
+
if (f != null) {
|
|
1853
|
+
writer.writeMessage(
|
|
1854
|
+
4,
|
|
1855
|
+
f,
|
|
1856
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
1857
|
+
);
|
|
1858
|
+
}
|
|
1859
|
+
f = message.getUpdated();
|
|
1860
|
+
if (f != null) {
|
|
1861
|
+
writer.writeMessage(
|
|
1862
|
+
5,
|
|
1863
|
+
f,
|
|
1864
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
1865
|
+
);
|
|
1866
|
+
}
|
|
1867
|
+
};
|
|
1868
|
+
|
|
1869
|
+
|
|
1870
|
+
/**
|
|
1871
|
+
* optional string build_id = 1;
|
|
1872
|
+
* @return {string}
|
|
1873
|
+
*/
|
|
1874
|
+
proto.build.v1.StatusResponse.prototype.getBuildId = function() {
|
|
1875
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1876
|
+
};
|
|
1877
|
+
|
|
1878
|
+
|
|
1879
|
+
/**
|
|
1880
|
+
* @param {string} value
|
|
1881
|
+
* @return {!proto.build.v1.StatusResponse} returns this
|
|
1882
|
+
*/
|
|
1883
|
+
proto.build.v1.StatusResponse.prototype.setBuildId = function(value) {
|
|
1884
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1885
|
+
};
|
|
1886
|
+
|
|
1887
|
+
|
|
1888
|
+
/**
|
|
1889
|
+
* optional BuildStatus status = 2;
|
|
1890
|
+
* @return {!proto.build.v1.BuildStatus}
|
|
1891
|
+
*/
|
|
1892
|
+
proto.build.v1.StatusResponse.prototype.getStatus = function() {
|
|
1893
|
+
return /** @type {!proto.build.v1.BuildStatus} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1894
|
+
};
|
|
1895
|
+
|
|
1896
|
+
|
|
1897
|
+
/**
|
|
1898
|
+
* @param {!proto.build.v1.BuildStatus} value
|
|
1899
|
+
* @return {!proto.build.v1.StatusResponse} returns this
|
|
1900
|
+
*/
|
|
1901
|
+
proto.build.v1.StatusResponse.prototype.setStatus = function(value) {
|
|
1902
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
1903
|
+
};
|
|
1904
|
+
|
|
1905
|
+
|
|
1906
|
+
/**
|
|
1907
|
+
* optional string error = 3;
|
|
1908
|
+
* @return {string}
|
|
1909
|
+
*/
|
|
1910
|
+
proto.build.v1.StatusResponse.prototype.getError = function() {
|
|
1911
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1912
|
+
};
|
|
1913
|
+
|
|
1914
|
+
|
|
1915
|
+
/**
|
|
1916
|
+
* @param {string} value
|
|
1917
|
+
* @return {!proto.build.v1.StatusResponse} returns this
|
|
1918
|
+
*/
|
|
1919
|
+
proto.build.v1.StatusResponse.prototype.setError = function(value) {
|
|
1920
|
+
return jspb.Message.setField(this, 3, value);
|
|
1921
|
+
};
|
|
1922
|
+
|
|
1923
|
+
|
|
1924
|
+
/**
|
|
1925
|
+
* Clears the field making it undefined.
|
|
1926
|
+
* @return {!proto.build.v1.StatusResponse} returns this
|
|
1927
|
+
*/
|
|
1928
|
+
proto.build.v1.StatusResponse.prototype.clearError = function() {
|
|
1929
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
1930
|
+
};
|
|
1931
|
+
|
|
1932
|
+
|
|
1933
|
+
/**
|
|
1934
|
+
* Returns whether this field is set.
|
|
1935
|
+
* @return {boolean}
|
|
1936
|
+
*/
|
|
1937
|
+
proto.build.v1.StatusResponse.prototype.hasError = function() {
|
|
1938
|
+
return jspb.Message.getField(this, 3) != null;
|
|
1939
|
+
};
|
|
1940
|
+
|
|
1941
|
+
|
|
1942
|
+
/**
|
|
1943
|
+
* optional google.protobuf.Timestamp created = 4;
|
|
1944
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
1945
|
+
*/
|
|
1946
|
+
proto.build.v1.StatusResponse.prototype.getCreated = function() {
|
|
1947
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
1948
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
|
|
1949
|
+
};
|
|
1950
|
+
|
|
1951
|
+
|
|
1952
|
+
/**
|
|
1953
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
1954
|
+
* @return {!proto.build.v1.StatusResponse} returns this
|
|
1955
|
+
*/
|
|
1956
|
+
proto.build.v1.StatusResponse.prototype.setCreated = function(value) {
|
|
1957
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
1958
|
+
};
|
|
1959
|
+
|
|
1960
|
+
|
|
1961
|
+
/**
|
|
1962
|
+
* Clears the message field making it undefined.
|
|
1963
|
+
* @return {!proto.build.v1.StatusResponse} returns this
|
|
1964
|
+
*/
|
|
1965
|
+
proto.build.v1.StatusResponse.prototype.clearCreated = function() {
|
|
1966
|
+
return this.setCreated(undefined);
|
|
1967
|
+
};
|
|
1968
|
+
|
|
1969
|
+
|
|
1970
|
+
/**
|
|
1971
|
+
* Returns whether this field is set.
|
|
1972
|
+
* @return {boolean}
|
|
1973
|
+
*/
|
|
1974
|
+
proto.build.v1.StatusResponse.prototype.hasCreated = function() {
|
|
1975
|
+
return jspb.Message.getField(this, 4) != null;
|
|
1976
|
+
};
|
|
1977
|
+
|
|
1978
|
+
|
|
1979
|
+
/**
|
|
1980
|
+
* optional google.protobuf.Timestamp updated = 5;
|
|
1981
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
1982
|
+
*/
|
|
1983
|
+
proto.build.v1.StatusResponse.prototype.getUpdated = function() {
|
|
1984
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
1985
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
|
|
1986
|
+
};
|
|
1987
|
+
|
|
1988
|
+
|
|
1989
|
+
/**
|
|
1990
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
1991
|
+
* @return {!proto.build.v1.StatusResponse} returns this
|
|
1992
|
+
*/
|
|
1993
|
+
proto.build.v1.StatusResponse.prototype.setUpdated = function(value) {
|
|
1994
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
1995
|
+
};
|
|
1996
|
+
|
|
1997
|
+
|
|
1998
|
+
/**
|
|
1999
|
+
* Clears the message field making it undefined.
|
|
2000
|
+
* @return {!proto.build.v1.StatusResponse} returns this
|
|
2001
|
+
*/
|
|
2002
|
+
proto.build.v1.StatusResponse.prototype.clearUpdated = function() {
|
|
2003
|
+
return this.setUpdated(undefined);
|
|
2004
|
+
};
|
|
2005
|
+
|
|
2006
|
+
|
|
2007
|
+
/**
|
|
2008
|
+
* Returns whether this field is set.
|
|
2009
|
+
* @return {boolean}
|
|
2010
|
+
*/
|
|
2011
|
+
proto.build.v1.StatusResponse.prototype.hasUpdated = function() {
|
|
2012
|
+
return jspb.Message.getField(this, 5) != null;
|
|
2013
|
+
};
|
|
2014
|
+
|
|
2015
|
+
|
|
2016
|
+
|
|
2017
|
+
|
|
2018
|
+
|
|
2019
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2020
|
+
/**
|
|
2021
|
+
* Creates an object representation of this proto.
|
|
2022
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2023
|
+
* Optional fields that are not set will be set to undefined.
|
|
2024
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2025
|
+
* For the list of reserved names please see:
|
|
2026
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2027
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2028
|
+
* JSPB instance for transitional soy proto support:
|
|
2029
|
+
* http://goto/soy-param-migration
|
|
2030
|
+
* @return {!Object}
|
|
2031
|
+
*/
|
|
2032
|
+
proto.build.v1.TerminateRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2033
|
+
return proto.build.v1.TerminateRequest.toObject(opt_includeInstance, this);
|
|
2034
|
+
};
|
|
2035
|
+
|
|
2036
|
+
|
|
2037
|
+
/**
|
|
2038
|
+
* Static version of the {@see toObject} method.
|
|
2039
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2040
|
+
* the JSPB instance for transitional soy proto support:
|
|
2041
|
+
* http://goto/soy-param-migration
|
|
2042
|
+
* @param {!proto.build.v1.TerminateRequest} msg The msg instance to transform.
|
|
2043
|
+
* @return {!Object}
|
|
2044
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2045
|
+
*/
|
|
2046
|
+
proto.build.v1.TerminateRequest.toObject = function(includeInstance, msg) {
|
|
2047
|
+
var f, obj = {
|
|
2048
|
+
buildId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2049
|
+
status: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
2050
|
+
error: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
|
|
2051
|
+
buildKey: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
2052
|
+
};
|
|
2053
|
+
|
|
2054
|
+
if (includeInstance) {
|
|
2055
|
+
obj.$jspbMessageInstance = msg;
|
|
2056
|
+
}
|
|
2057
|
+
return obj;
|
|
2058
|
+
};
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2061
|
+
|
|
2062
|
+
/**
|
|
2063
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2064
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2065
|
+
* @return {!proto.build.v1.TerminateRequest}
|
|
2066
|
+
*/
|
|
2067
|
+
proto.build.v1.TerminateRequest.deserializeBinary = function(bytes) {
|
|
2068
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2069
|
+
var msg = new proto.build.v1.TerminateRequest;
|
|
2070
|
+
return proto.build.v1.TerminateRequest.deserializeBinaryFromReader(msg, reader);
|
|
2071
|
+
};
|
|
2072
|
+
|
|
2073
|
+
|
|
2074
|
+
/**
|
|
2075
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2076
|
+
* given reader into the given message object.
|
|
2077
|
+
* @param {!proto.build.v1.TerminateRequest} msg The message object to deserialize into.
|
|
2078
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2079
|
+
* @return {!proto.build.v1.TerminateRequest}
|
|
2080
|
+
*/
|
|
2081
|
+
proto.build.v1.TerminateRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2082
|
+
while (reader.nextField()) {
|
|
2083
|
+
if (reader.isEndGroup()) {
|
|
2084
|
+
break;
|
|
2085
|
+
}
|
|
2086
|
+
var field = reader.getFieldNumber();
|
|
2087
|
+
switch (field) {
|
|
2088
|
+
case 1:
|
|
2089
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2090
|
+
msg.setBuildId(value);
|
|
2091
|
+
break;
|
|
2092
|
+
case 2:
|
|
2093
|
+
var value = /** @type {!proto.build.v1.BuildStatus} */ (reader.readEnum());
|
|
2094
|
+
msg.setStatus(value);
|
|
2095
|
+
break;
|
|
2096
|
+
case 3:
|
|
2097
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2098
|
+
msg.setError(value);
|
|
2099
|
+
break;
|
|
2100
|
+
case 4:
|
|
2101
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2102
|
+
msg.setBuildKey(value);
|
|
2103
|
+
break;
|
|
2104
|
+
default:
|
|
2105
|
+
reader.skipField();
|
|
2106
|
+
break;
|
|
2107
|
+
}
|
|
2108
|
+
}
|
|
2109
|
+
return msg;
|
|
2110
|
+
};
|
|
2111
|
+
|
|
2112
|
+
|
|
2113
|
+
/**
|
|
2114
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2115
|
+
* @return {!Uint8Array}
|
|
2116
|
+
*/
|
|
2117
|
+
proto.build.v1.TerminateRequest.prototype.serializeBinary = function() {
|
|
2118
|
+
var writer = new jspb.BinaryWriter();
|
|
2119
|
+
proto.build.v1.TerminateRequest.serializeBinaryToWriter(this, writer);
|
|
2120
|
+
return writer.getResultBuffer();
|
|
2121
|
+
};
|
|
2122
|
+
|
|
2123
|
+
|
|
2124
|
+
/**
|
|
2125
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2126
|
+
* format), writing to the given BinaryWriter.
|
|
2127
|
+
* @param {!proto.build.v1.TerminateRequest} message
|
|
2128
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2129
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2130
|
+
*/
|
|
2131
|
+
proto.build.v1.TerminateRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2132
|
+
var f = undefined;
|
|
2133
|
+
f = message.getBuildId();
|
|
2134
|
+
if (f.length > 0) {
|
|
2135
|
+
writer.writeString(
|
|
2136
|
+
1,
|
|
2137
|
+
f
|
|
2138
|
+
);
|
|
2139
|
+
}
|
|
2140
|
+
f = message.getStatus();
|
|
2141
|
+
if (f !== 0.0) {
|
|
2142
|
+
writer.writeEnum(
|
|
2143
|
+
2,
|
|
2144
|
+
f
|
|
2145
|
+
);
|
|
2146
|
+
}
|
|
2147
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
2148
|
+
if (f != null) {
|
|
2149
|
+
writer.writeString(
|
|
2150
|
+
3,
|
|
2151
|
+
f
|
|
2152
|
+
);
|
|
2153
|
+
}
|
|
2154
|
+
f = message.getBuildKey();
|
|
2155
|
+
if (f.length > 0) {
|
|
2156
|
+
writer.writeString(
|
|
2157
|
+
4,
|
|
2158
|
+
f
|
|
2159
|
+
);
|
|
2160
|
+
}
|
|
2161
|
+
};
|
|
2162
|
+
|
|
2163
|
+
|
|
2164
|
+
/**
|
|
2165
|
+
* optional string build_id = 1;
|
|
2166
|
+
* @return {string}
|
|
2167
|
+
*/
|
|
2168
|
+
proto.build.v1.TerminateRequest.prototype.getBuildId = function() {
|
|
2169
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2170
|
+
};
|
|
2171
|
+
|
|
2172
|
+
|
|
2173
|
+
/**
|
|
2174
|
+
* @param {string} value
|
|
2175
|
+
* @return {!proto.build.v1.TerminateRequest} returns this
|
|
2176
|
+
*/
|
|
2177
|
+
proto.build.v1.TerminateRequest.prototype.setBuildId = function(value) {
|
|
2178
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2179
|
+
};
|
|
2180
|
+
|
|
2181
|
+
|
|
2182
|
+
/**
|
|
2183
|
+
* optional BuildStatus status = 2;
|
|
2184
|
+
* @return {!proto.build.v1.BuildStatus}
|
|
2185
|
+
*/
|
|
2186
|
+
proto.build.v1.TerminateRequest.prototype.getStatus = function() {
|
|
2187
|
+
return /** @type {!proto.build.v1.BuildStatus} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
2188
|
+
};
|
|
2189
|
+
|
|
2190
|
+
|
|
2191
|
+
/**
|
|
2192
|
+
* @param {!proto.build.v1.BuildStatus} value
|
|
2193
|
+
* @return {!proto.build.v1.TerminateRequest} returns this
|
|
2194
|
+
*/
|
|
2195
|
+
proto.build.v1.TerminateRequest.prototype.setStatus = function(value) {
|
|
2196
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
2197
|
+
};
|
|
2198
|
+
|
|
2199
|
+
|
|
2200
|
+
/**
|
|
2201
|
+
* optional string error = 3;
|
|
2202
|
+
* @return {string}
|
|
2203
|
+
*/
|
|
2204
|
+
proto.build.v1.TerminateRequest.prototype.getError = function() {
|
|
2205
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
2206
|
+
};
|
|
2207
|
+
|
|
2208
|
+
|
|
2209
|
+
/**
|
|
2210
|
+
* @param {string} value
|
|
2211
|
+
* @return {!proto.build.v1.TerminateRequest} returns this
|
|
2212
|
+
*/
|
|
2213
|
+
proto.build.v1.TerminateRequest.prototype.setError = function(value) {
|
|
2214
|
+
return jspb.Message.setField(this, 3, value);
|
|
2215
|
+
};
|
|
2216
|
+
|
|
2217
|
+
|
|
2218
|
+
/**
|
|
2219
|
+
* Clears the field making it undefined.
|
|
2220
|
+
* @return {!proto.build.v1.TerminateRequest} returns this
|
|
2221
|
+
*/
|
|
2222
|
+
proto.build.v1.TerminateRequest.prototype.clearError = function() {
|
|
2223
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
2224
|
+
};
|
|
2225
|
+
|
|
2226
|
+
|
|
2227
|
+
/**
|
|
2228
|
+
* Returns whether this field is set.
|
|
2229
|
+
* @return {boolean}
|
|
2230
|
+
*/
|
|
2231
|
+
proto.build.v1.TerminateRequest.prototype.hasError = function() {
|
|
2232
|
+
return jspb.Message.getField(this, 3) != null;
|
|
2233
|
+
};
|
|
2234
|
+
|
|
2235
|
+
|
|
2236
|
+
/**
|
|
2237
|
+
* optional string build_key = 4;
|
|
2238
|
+
* @return {string}
|
|
2239
|
+
*/
|
|
2240
|
+
proto.build.v1.TerminateRequest.prototype.getBuildKey = function() {
|
|
2241
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
2242
|
+
};
|
|
2243
|
+
|
|
2244
|
+
|
|
2245
|
+
/**
|
|
2246
|
+
* @param {string} value
|
|
2247
|
+
* @return {!proto.build.v1.TerminateRequest} returns this
|
|
2248
|
+
*/
|
|
2249
|
+
proto.build.v1.TerminateRequest.prototype.setBuildKey = function(value) {
|
|
2250
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
2251
|
+
};
|
|
2252
|
+
|
|
2253
|
+
|
|
2254
|
+
|
|
2255
|
+
|
|
2256
|
+
|
|
2257
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2258
|
+
/**
|
|
2259
|
+
* Creates an object representation of this proto.
|
|
2260
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2261
|
+
* Optional fields that are not set will be set to undefined.
|
|
2262
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2263
|
+
* For the list of reserved names please see:
|
|
2264
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2265
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2266
|
+
* JSPB instance for transitional soy proto support:
|
|
2267
|
+
* http://goto/soy-param-migration
|
|
2268
|
+
* @return {!Object}
|
|
2269
|
+
*/
|
|
2270
|
+
proto.build.v1.TerminateResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2271
|
+
return proto.build.v1.TerminateResponse.toObject(opt_includeInstance, this);
|
|
2272
|
+
};
|
|
2273
|
+
|
|
2274
|
+
|
|
2275
|
+
/**
|
|
2276
|
+
* Static version of the {@see toObject} method.
|
|
2277
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2278
|
+
* the JSPB instance for transitional soy proto support:
|
|
2279
|
+
* http://goto/soy-param-migration
|
|
2280
|
+
* @param {!proto.build.v1.TerminateResponse} msg The msg instance to transform.
|
|
2281
|
+
* @return {!Object}
|
|
2282
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2283
|
+
*/
|
|
2284
|
+
proto.build.v1.TerminateResponse.toObject = function(includeInstance, msg) {
|
|
2285
|
+
var f, obj = {
|
|
2286
|
+
buildId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2287
|
+
status: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
2288
|
+
error: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
|
|
2289
|
+
created: (f = msg.getCreated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
2290
|
+
updated: (f = msg.getUpdated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
2291
|
+
};
|
|
2292
|
+
|
|
2293
|
+
if (includeInstance) {
|
|
2294
|
+
obj.$jspbMessageInstance = msg;
|
|
2295
|
+
}
|
|
2296
|
+
return obj;
|
|
2297
|
+
};
|
|
2298
|
+
}
|
|
2299
|
+
|
|
2300
|
+
|
|
2301
|
+
/**
|
|
2302
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2303
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2304
|
+
* @return {!proto.build.v1.TerminateResponse}
|
|
2305
|
+
*/
|
|
2306
|
+
proto.build.v1.TerminateResponse.deserializeBinary = function(bytes) {
|
|
2307
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2308
|
+
var msg = new proto.build.v1.TerminateResponse;
|
|
2309
|
+
return proto.build.v1.TerminateResponse.deserializeBinaryFromReader(msg, reader);
|
|
2310
|
+
};
|
|
2311
|
+
|
|
2312
|
+
|
|
2313
|
+
/**
|
|
2314
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2315
|
+
* given reader into the given message object.
|
|
2316
|
+
* @param {!proto.build.v1.TerminateResponse} msg The message object to deserialize into.
|
|
2317
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2318
|
+
* @return {!proto.build.v1.TerminateResponse}
|
|
2319
|
+
*/
|
|
2320
|
+
proto.build.v1.TerminateResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2321
|
+
while (reader.nextField()) {
|
|
2322
|
+
if (reader.isEndGroup()) {
|
|
2323
|
+
break;
|
|
2324
|
+
}
|
|
2325
|
+
var field = reader.getFieldNumber();
|
|
2326
|
+
switch (field) {
|
|
2327
|
+
case 1:
|
|
2328
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2329
|
+
msg.setBuildId(value);
|
|
2330
|
+
break;
|
|
2331
|
+
case 2:
|
|
2332
|
+
var value = /** @type {!proto.build.v1.BuildStatus} */ (reader.readEnum());
|
|
2333
|
+
msg.setStatus(value);
|
|
2334
|
+
break;
|
|
2335
|
+
case 3:
|
|
2336
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2337
|
+
msg.setError(value);
|
|
2338
|
+
break;
|
|
2339
|
+
case 4:
|
|
2340
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
2341
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
2342
|
+
msg.setCreated(value);
|
|
2343
|
+
break;
|
|
2344
|
+
case 5:
|
|
2345
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
2346
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
2347
|
+
msg.setUpdated(value);
|
|
2348
|
+
break;
|
|
2349
|
+
default:
|
|
2350
|
+
reader.skipField();
|
|
2351
|
+
break;
|
|
2352
|
+
}
|
|
2353
|
+
}
|
|
2354
|
+
return msg;
|
|
2355
|
+
};
|
|
2356
|
+
|
|
2357
|
+
|
|
2358
|
+
/**
|
|
2359
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2360
|
+
* @return {!Uint8Array}
|
|
2361
|
+
*/
|
|
2362
|
+
proto.build.v1.TerminateResponse.prototype.serializeBinary = function() {
|
|
2363
|
+
var writer = new jspb.BinaryWriter();
|
|
2364
|
+
proto.build.v1.TerminateResponse.serializeBinaryToWriter(this, writer);
|
|
2365
|
+
return writer.getResultBuffer();
|
|
2366
|
+
};
|
|
2367
|
+
|
|
2368
|
+
|
|
2369
|
+
/**
|
|
2370
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2371
|
+
* format), writing to the given BinaryWriter.
|
|
2372
|
+
* @param {!proto.build.v1.TerminateResponse} message
|
|
2373
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2374
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2375
|
+
*/
|
|
2376
|
+
proto.build.v1.TerminateResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2377
|
+
var f = undefined;
|
|
2378
|
+
f = message.getBuildId();
|
|
2379
|
+
if (f.length > 0) {
|
|
2380
|
+
writer.writeString(
|
|
2381
|
+
1,
|
|
2382
|
+
f
|
|
2383
|
+
);
|
|
2384
|
+
}
|
|
2385
|
+
f = message.getStatus();
|
|
2386
|
+
if (f !== 0.0) {
|
|
2387
|
+
writer.writeEnum(
|
|
2388
|
+
2,
|
|
2389
|
+
f
|
|
2390
|
+
);
|
|
2391
|
+
}
|
|
2392
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
2393
|
+
if (f != null) {
|
|
2394
|
+
writer.writeString(
|
|
2395
|
+
3,
|
|
2396
|
+
f
|
|
2397
|
+
);
|
|
2398
|
+
}
|
|
2399
|
+
f = message.getCreated();
|
|
2400
|
+
if (f != null) {
|
|
2401
|
+
writer.writeMessage(
|
|
2402
|
+
4,
|
|
2403
|
+
f,
|
|
2404
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
2405
|
+
);
|
|
2406
|
+
}
|
|
2407
|
+
f = message.getUpdated();
|
|
2408
|
+
if (f != null) {
|
|
2409
|
+
writer.writeMessage(
|
|
2410
|
+
5,
|
|
2411
|
+
f,
|
|
2412
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
2413
|
+
);
|
|
2414
|
+
}
|
|
2415
|
+
};
|
|
2416
|
+
|
|
2417
|
+
|
|
2418
|
+
/**
|
|
2419
|
+
* optional string build_id = 1;
|
|
2420
|
+
* @return {string}
|
|
2421
|
+
*/
|
|
2422
|
+
proto.build.v1.TerminateResponse.prototype.getBuildId = function() {
|
|
2423
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2424
|
+
};
|
|
2425
|
+
|
|
2426
|
+
|
|
2427
|
+
/**
|
|
2428
|
+
* @param {string} value
|
|
2429
|
+
* @return {!proto.build.v1.TerminateResponse} returns this
|
|
2430
|
+
*/
|
|
2431
|
+
proto.build.v1.TerminateResponse.prototype.setBuildId = function(value) {
|
|
2432
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2433
|
+
};
|
|
2434
|
+
|
|
2435
|
+
|
|
2436
|
+
/**
|
|
2437
|
+
* optional BuildStatus status = 2;
|
|
2438
|
+
* @return {!proto.build.v1.BuildStatus}
|
|
2439
|
+
*/
|
|
2440
|
+
proto.build.v1.TerminateResponse.prototype.getStatus = function() {
|
|
2441
|
+
return /** @type {!proto.build.v1.BuildStatus} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
2442
|
+
};
|
|
2443
|
+
|
|
2444
|
+
|
|
2445
|
+
/**
|
|
2446
|
+
* @param {!proto.build.v1.BuildStatus} value
|
|
2447
|
+
* @return {!proto.build.v1.TerminateResponse} returns this
|
|
2448
|
+
*/
|
|
2449
|
+
proto.build.v1.TerminateResponse.prototype.setStatus = function(value) {
|
|
2450
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
2451
|
+
};
|
|
2452
|
+
|
|
2453
|
+
|
|
2454
|
+
/**
|
|
2455
|
+
* optional string error = 3;
|
|
2456
|
+
* @return {string}
|
|
2457
|
+
*/
|
|
2458
|
+
proto.build.v1.TerminateResponse.prototype.getError = function() {
|
|
2459
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
2460
|
+
};
|
|
2461
|
+
|
|
2462
|
+
|
|
2463
|
+
/**
|
|
2464
|
+
* @param {string} value
|
|
2465
|
+
* @return {!proto.build.v1.TerminateResponse} returns this
|
|
2466
|
+
*/
|
|
2467
|
+
proto.build.v1.TerminateResponse.prototype.setError = function(value) {
|
|
2468
|
+
return jspb.Message.setField(this, 3, value);
|
|
2469
|
+
};
|
|
2470
|
+
|
|
2471
|
+
|
|
2472
|
+
/**
|
|
2473
|
+
* Clears the field making it undefined.
|
|
2474
|
+
* @return {!proto.build.v1.TerminateResponse} returns this
|
|
2475
|
+
*/
|
|
2476
|
+
proto.build.v1.TerminateResponse.prototype.clearError = function() {
|
|
2477
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
2478
|
+
};
|
|
2479
|
+
|
|
2480
|
+
|
|
2481
|
+
/**
|
|
2482
|
+
* Returns whether this field is set.
|
|
2483
|
+
* @return {boolean}
|
|
2484
|
+
*/
|
|
2485
|
+
proto.build.v1.TerminateResponse.prototype.hasError = function() {
|
|
2486
|
+
return jspb.Message.getField(this, 3) != null;
|
|
2487
|
+
};
|
|
2488
|
+
|
|
2489
|
+
|
|
2490
|
+
/**
|
|
2491
|
+
* optional google.protobuf.Timestamp created = 4;
|
|
2492
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
2493
|
+
*/
|
|
2494
|
+
proto.build.v1.TerminateResponse.prototype.getCreated = function() {
|
|
2495
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
2496
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
|
|
2497
|
+
};
|
|
2498
|
+
|
|
2499
|
+
|
|
2500
|
+
/**
|
|
2501
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
2502
|
+
* @return {!proto.build.v1.TerminateResponse} returns this
|
|
2503
|
+
*/
|
|
2504
|
+
proto.build.v1.TerminateResponse.prototype.setCreated = function(value) {
|
|
2505
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
2506
|
+
};
|
|
2507
|
+
|
|
2508
|
+
|
|
2509
|
+
/**
|
|
2510
|
+
* Clears the message field making it undefined.
|
|
2511
|
+
* @return {!proto.build.v1.TerminateResponse} returns this
|
|
2512
|
+
*/
|
|
2513
|
+
proto.build.v1.TerminateResponse.prototype.clearCreated = function() {
|
|
2514
|
+
return this.setCreated(undefined);
|
|
2515
|
+
};
|
|
2516
|
+
|
|
2517
|
+
|
|
2518
|
+
/**
|
|
2519
|
+
* Returns whether this field is set.
|
|
2520
|
+
* @return {boolean}
|
|
2521
|
+
*/
|
|
2522
|
+
proto.build.v1.TerminateResponse.prototype.hasCreated = function() {
|
|
2523
|
+
return jspb.Message.getField(this, 4) != null;
|
|
2524
|
+
};
|
|
2525
|
+
|
|
2526
|
+
|
|
2527
|
+
/**
|
|
2528
|
+
* optional google.protobuf.Timestamp updated = 5;
|
|
2529
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
2530
|
+
*/
|
|
2531
|
+
proto.build.v1.TerminateResponse.prototype.getUpdated = function() {
|
|
2532
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
2533
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
|
|
2534
|
+
};
|
|
2535
|
+
|
|
2536
|
+
|
|
2537
|
+
/**
|
|
2538
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
2539
|
+
* @return {!proto.build.v1.TerminateResponse} returns this
|
|
2540
|
+
*/
|
|
2541
|
+
proto.build.v1.TerminateResponse.prototype.setUpdated = function(value) {
|
|
2542
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
2543
|
+
};
|
|
2544
|
+
|
|
2545
|
+
|
|
2546
|
+
/**
|
|
2547
|
+
* Clears the message field making it undefined.
|
|
2548
|
+
* @return {!proto.build.v1.TerminateResponse} returns this
|
|
2549
|
+
*/
|
|
2550
|
+
proto.build.v1.TerminateResponse.prototype.clearUpdated = function() {
|
|
2551
|
+
return this.setUpdated(undefined);
|
|
2552
|
+
};
|
|
2553
|
+
|
|
2554
|
+
|
|
2555
|
+
/**
|
|
2556
|
+
* Returns whether this field is set.
|
|
2557
|
+
* @return {boolean}
|
|
2558
|
+
*/
|
|
2559
|
+
proto.build.v1.TerminateResponse.prototype.hasUpdated = function() {
|
|
2560
|
+
return jspb.Message.getField(this, 5) != null;
|
|
2561
|
+
};
|
|
2562
|
+
|
|
2563
|
+
|
|
2564
|
+
/**
|
|
2565
|
+
* @enum {number}
|
|
2566
|
+
*/
|
|
2567
|
+
proto.build.v1.BuildStatus = {
|
|
2568
|
+
BUILD_STATUS_UNSPECIFIED: 0,
|
|
2569
|
+
BUILD_STATUS_RUNNING: 1,
|
|
2570
|
+
BUILD_STATUS_SUCCESS: 2,
|
|
2571
|
+
BUILD_STATUS_FAILED: 3,
|
|
2572
|
+
BUILD_STATUS_TIMED_OUT: 4
|
|
2573
|
+
};
|
|
2574
|
+
|
|
2575
|
+
goog.object.extend(exports, proto.build.v1);
|