@miradorlabs/web-grpc 4.17.0 → 4.18.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.
@@ -29,6 +29,12 @@ var proto_gateway_web_v1_reference_gateway_pb = require('../../../../proto/gatew
29
29
  goog.object.extend(proto, proto_gateway_web_v1_reference_gateway_pb);
30
30
  var proto_gateway_web_v1_trace_gateway_pb = require('../../../../proto/gateway/web/v1/trace_gateway_pb.js');
31
31
  goog.object.extend(proto, proto_gateway_web_v1_trace_gateway_pb);
32
+ goog.exportSymbol('proto.gateway.web.v1.AITask', null, global);
33
+ goog.exportSymbol('proto.gateway.web.v1.AITaskActivation', null, global);
34
+ goog.exportSymbol('proto.gateway.web.v1.AITaskDefinition', null, global);
35
+ goog.exportSymbol('proto.gateway.web.v1.AITaskRevision', null, global);
36
+ goog.exportSymbol('proto.gateway.web.v1.ActivateAITaskRevisionRequest', null, global);
37
+ goog.exportSymbol('proto.gateway.web.v1.ActivateAITaskRevisionResponse', null, global);
32
38
  goog.exportSymbol('proto.gateway.web.v1.AdminRelayHeartbeat', null, global);
33
39
  goog.exportSymbol('proto.gateway.web.v1.AdminUsageDimension', null, global);
34
40
  goog.exportSymbol('proto.gateway.web.v1.AdminUsageGroup', null, global);
@@ -42,11 +48,19 @@ goog.exportSymbol('proto.gateway.web.v1.ConfirmAIModelsRequest', null, global);
42
48
  goog.exportSymbol('proto.gateway.web.v1.ConfirmAIModelsResponse', null, global);
43
49
  goog.exportSymbol('proto.gateway.web.v1.ConfirmAIProvidersRequest', null, global);
44
50
  goog.exportSymbol('proto.gateway.web.v1.ConfirmAIProvidersResponse', null, global);
51
+ goog.exportSymbol('proto.gateway.web.v1.CreateAITaskRevisionRequest', null, global);
52
+ goog.exportSymbol('proto.gateway.web.v1.CreateAITaskRevisionResponse', null, global);
53
+ goog.exportSymbol('proto.gateway.web.v1.DeactivateAITaskRevisionRequest', null, global);
54
+ goog.exportSymbol('proto.gateway.web.v1.DeactivateAITaskRevisionResponse', null, global);
45
55
  goog.exportSymbol('proto.gateway.web.v1.GenerateInviteCodesRequest', null, global);
46
56
  goog.exportSymbol('proto.gateway.web.v1.GenerateInviteCodesResponse', null, global);
47
57
  goog.exportSymbol('proto.gateway.web.v1.GetAdminStatusRequest', null, global);
48
58
  goog.exportSymbol('proto.gateway.web.v1.GetAdminStatusResponse', null, global);
49
59
  goog.exportSymbol('proto.gateway.web.v1.InviteCode', null, global);
60
+ goog.exportSymbol('proto.gateway.web.v1.ListAITaskRevisionsRequest', null, global);
61
+ goog.exportSymbol('proto.gateway.web.v1.ListAITaskRevisionsResponse', null, global);
62
+ goog.exportSymbol('proto.gateway.web.v1.ListAITasksRequest', null, global);
63
+ goog.exportSymbol('proto.gateway.web.v1.ListAITasksResponse', null, global);
50
64
  goog.exportSymbol('proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest', null, global);
51
65
  goog.exportSymbol('proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse', null, global);
52
66
  goog.exportSymbol('proto.gateway.web.v1.ListAdminUsageGroupsRequest', null, global);
@@ -933,6 +947,279 @@ if (goog.DEBUG && !COMPILED) {
933
947
  */
934
948
  proto.gateway.web.v1.UserDetails.displayName = 'proto.gateway.web.v1.UserDetails';
935
949
  }
950
+ /**
951
+ * Generated by JsPbCodeGenerator.
952
+ * @param {Array=} opt_data Optional initial data array, typically from a
953
+ * server response, or constructed directly in Javascript. The array is used
954
+ * in place and becomes part of the constructed object. It is not cloned.
955
+ * If no data is provided, the constructed object will be empty, but still
956
+ * valid.
957
+ * @extends {jspb.Message}
958
+ * @constructor
959
+ */
960
+ proto.gateway.web.v1.ListAITasksRequest = function(opt_data) {
961
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
962
+ };
963
+ goog.inherits(proto.gateway.web.v1.ListAITasksRequest, jspb.Message);
964
+ if (goog.DEBUG && !COMPILED) {
965
+ /**
966
+ * @public
967
+ * @override
968
+ */
969
+ proto.gateway.web.v1.ListAITasksRequest.displayName = 'proto.gateway.web.v1.ListAITasksRequest';
970
+ }
971
+ /**
972
+ * Generated by JsPbCodeGenerator.
973
+ * @param {Array=} opt_data Optional initial data array, typically from a
974
+ * server response, or constructed directly in Javascript. The array is used
975
+ * in place and becomes part of the constructed object. It is not cloned.
976
+ * If no data is provided, the constructed object will be empty, but still
977
+ * valid.
978
+ * @extends {jspb.Message}
979
+ * @constructor
980
+ */
981
+ proto.gateway.web.v1.ListAITasksResponse = function(opt_data) {
982
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ListAITasksResponse.repeatedFields_, null);
983
+ };
984
+ goog.inherits(proto.gateway.web.v1.ListAITasksResponse, jspb.Message);
985
+ if (goog.DEBUG && !COMPILED) {
986
+ /**
987
+ * @public
988
+ * @override
989
+ */
990
+ proto.gateway.web.v1.ListAITasksResponse.displayName = 'proto.gateway.web.v1.ListAITasksResponse';
991
+ }
992
+ /**
993
+ * Generated by JsPbCodeGenerator.
994
+ * @param {Array=} opt_data Optional initial data array, typically from a
995
+ * server response, or constructed directly in Javascript. The array is used
996
+ * in place and becomes part of the constructed object. It is not cloned.
997
+ * If no data is provided, the constructed object will be empty, but still
998
+ * valid.
999
+ * @extends {jspb.Message}
1000
+ * @constructor
1001
+ */
1002
+ proto.gateway.web.v1.AITaskDefinition = function(opt_data) {
1003
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1004
+ };
1005
+ goog.inherits(proto.gateway.web.v1.AITaskDefinition, jspb.Message);
1006
+ if (goog.DEBUG && !COMPILED) {
1007
+ /**
1008
+ * @public
1009
+ * @override
1010
+ */
1011
+ proto.gateway.web.v1.AITaskDefinition.displayName = 'proto.gateway.web.v1.AITaskDefinition';
1012
+ }
1013
+ /**
1014
+ * Generated by JsPbCodeGenerator.
1015
+ * @param {Array=} opt_data Optional initial data array, typically from a
1016
+ * server response, or constructed directly in Javascript. The array is used
1017
+ * in place and becomes part of the constructed object. It is not cloned.
1018
+ * If no data is provided, the constructed object will be empty, but still
1019
+ * valid.
1020
+ * @extends {jspb.Message}
1021
+ * @constructor
1022
+ */
1023
+ proto.gateway.web.v1.AITaskActivation = function(opt_data) {
1024
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1025
+ };
1026
+ goog.inherits(proto.gateway.web.v1.AITaskActivation, jspb.Message);
1027
+ if (goog.DEBUG && !COMPILED) {
1028
+ /**
1029
+ * @public
1030
+ * @override
1031
+ */
1032
+ proto.gateway.web.v1.AITaskActivation.displayName = 'proto.gateway.web.v1.AITaskActivation';
1033
+ }
1034
+ /**
1035
+ * Generated by JsPbCodeGenerator.
1036
+ * @param {Array=} opt_data Optional initial data array, typically from a
1037
+ * server response, or constructed directly in Javascript. The array is used
1038
+ * in place and becomes part of the constructed object. It is not cloned.
1039
+ * If no data is provided, the constructed object will be empty, but still
1040
+ * valid.
1041
+ * @extends {jspb.Message}
1042
+ * @constructor
1043
+ */
1044
+ proto.gateway.web.v1.AITaskRevision = function(opt_data) {
1045
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1046
+ };
1047
+ goog.inherits(proto.gateway.web.v1.AITaskRevision, jspb.Message);
1048
+ if (goog.DEBUG && !COMPILED) {
1049
+ /**
1050
+ * @public
1051
+ * @override
1052
+ */
1053
+ proto.gateway.web.v1.AITaskRevision.displayName = 'proto.gateway.web.v1.AITaskRevision';
1054
+ }
1055
+ /**
1056
+ * Generated by JsPbCodeGenerator.
1057
+ * @param {Array=} opt_data Optional initial data array, typically from a
1058
+ * server response, or constructed directly in Javascript. The array is used
1059
+ * in place and becomes part of the constructed object. It is not cloned.
1060
+ * If no data is provided, the constructed object will be empty, but still
1061
+ * valid.
1062
+ * @extends {jspb.Message}
1063
+ * @constructor
1064
+ */
1065
+ proto.gateway.web.v1.ListAITaskRevisionsRequest = function(opt_data) {
1066
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1067
+ };
1068
+ goog.inherits(proto.gateway.web.v1.ListAITaskRevisionsRequest, jspb.Message);
1069
+ if (goog.DEBUG && !COMPILED) {
1070
+ /**
1071
+ * @public
1072
+ * @override
1073
+ */
1074
+ proto.gateway.web.v1.ListAITaskRevisionsRequest.displayName = 'proto.gateway.web.v1.ListAITaskRevisionsRequest';
1075
+ }
1076
+ /**
1077
+ * Generated by JsPbCodeGenerator.
1078
+ * @param {Array=} opt_data Optional initial data array, typically from a
1079
+ * server response, or constructed directly in Javascript. The array is used
1080
+ * in place and becomes part of the constructed object. It is not cloned.
1081
+ * If no data is provided, the constructed object will be empty, but still
1082
+ * valid.
1083
+ * @extends {jspb.Message}
1084
+ * @constructor
1085
+ */
1086
+ proto.gateway.web.v1.ListAITaskRevisionsResponse = function(opt_data) {
1087
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ListAITaskRevisionsResponse.repeatedFields_, null);
1088
+ };
1089
+ goog.inherits(proto.gateway.web.v1.ListAITaskRevisionsResponse, jspb.Message);
1090
+ if (goog.DEBUG && !COMPILED) {
1091
+ /**
1092
+ * @public
1093
+ * @override
1094
+ */
1095
+ proto.gateway.web.v1.ListAITaskRevisionsResponse.displayName = 'proto.gateway.web.v1.ListAITaskRevisionsResponse';
1096
+ }
1097
+ /**
1098
+ * Generated by JsPbCodeGenerator.
1099
+ * @param {Array=} opt_data Optional initial data array, typically from a
1100
+ * server response, or constructed directly in Javascript. The array is used
1101
+ * in place and becomes part of the constructed object. It is not cloned.
1102
+ * If no data is provided, the constructed object will be empty, but still
1103
+ * valid.
1104
+ * @extends {jspb.Message}
1105
+ * @constructor
1106
+ */
1107
+ proto.gateway.web.v1.CreateAITaskRevisionRequest = function(opt_data) {
1108
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1109
+ };
1110
+ goog.inherits(proto.gateway.web.v1.CreateAITaskRevisionRequest, jspb.Message);
1111
+ if (goog.DEBUG && !COMPILED) {
1112
+ /**
1113
+ * @public
1114
+ * @override
1115
+ */
1116
+ proto.gateway.web.v1.CreateAITaskRevisionRequest.displayName = 'proto.gateway.web.v1.CreateAITaskRevisionRequest';
1117
+ }
1118
+ /**
1119
+ * Generated by JsPbCodeGenerator.
1120
+ * @param {Array=} opt_data Optional initial data array, typically from a
1121
+ * server response, or constructed directly in Javascript. The array is used
1122
+ * in place and becomes part of the constructed object. It is not cloned.
1123
+ * If no data is provided, the constructed object will be empty, but still
1124
+ * valid.
1125
+ * @extends {jspb.Message}
1126
+ * @constructor
1127
+ */
1128
+ proto.gateway.web.v1.CreateAITaskRevisionResponse = function(opt_data) {
1129
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1130
+ };
1131
+ goog.inherits(proto.gateway.web.v1.CreateAITaskRevisionResponse, jspb.Message);
1132
+ if (goog.DEBUG && !COMPILED) {
1133
+ /**
1134
+ * @public
1135
+ * @override
1136
+ */
1137
+ proto.gateway.web.v1.CreateAITaskRevisionResponse.displayName = 'proto.gateway.web.v1.CreateAITaskRevisionResponse';
1138
+ }
1139
+ /**
1140
+ * Generated by JsPbCodeGenerator.
1141
+ * @param {Array=} opt_data Optional initial data array, typically from a
1142
+ * server response, or constructed directly in Javascript. The array is used
1143
+ * in place and becomes part of the constructed object. It is not cloned.
1144
+ * If no data is provided, the constructed object will be empty, but still
1145
+ * valid.
1146
+ * @extends {jspb.Message}
1147
+ * @constructor
1148
+ */
1149
+ proto.gateway.web.v1.ActivateAITaskRevisionRequest = function(opt_data) {
1150
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1151
+ };
1152
+ goog.inherits(proto.gateway.web.v1.ActivateAITaskRevisionRequest, jspb.Message);
1153
+ if (goog.DEBUG && !COMPILED) {
1154
+ /**
1155
+ * @public
1156
+ * @override
1157
+ */
1158
+ proto.gateway.web.v1.ActivateAITaskRevisionRequest.displayName = 'proto.gateway.web.v1.ActivateAITaskRevisionRequest';
1159
+ }
1160
+ /**
1161
+ * Generated by JsPbCodeGenerator.
1162
+ * @param {Array=} opt_data Optional initial data array, typically from a
1163
+ * server response, or constructed directly in Javascript. The array is used
1164
+ * in place and becomes part of the constructed object. It is not cloned.
1165
+ * If no data is provided, the constructed object will be empty, but still
1166
+ * valid.
1167
+ * @extends {jspb.Message}
1168
+ * @constructor
1169
+ */
1170
+ proto.gateway.web.v1.ActivateAITaskRevisionResponse = function(opt_data) {
1171
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1172
+ };
1173
+ goog.inherits(proto.gateway.web.v1.ActivateAITaskRevisionResponse, jspb.Message);
1174
+ if (goog.DEBUG && !COMPILED) {
1175
+ /**
1176
+ * @public
1177
+ * @override
1178
+ */
1179
+ proto.gateway.web.v1.ActivateAITaskRevisionResponse.displayName = 'proto.gateway.web.v1.ActivateAITaskRevisionResponse';
1180
+ }
1181
+ /**
1182
+ * Generated by JsPbCodeGenerator.
1183
+ * @param {Array=} opt_data Optional initial data array, typically from a
1184
+ * server response, or constructed directly in Javascript. The array is used
1185
+ * in place and becomes part of the constructed object. It is not cloned.
1186
+ * If no data is provided, the constructed object will be empty, but still
1187
+ * valid.
1188
+ * @extends {jspb.Message}
1189
+ * @constructor
1190
+ */
1191
+ proto.gateway.web.v1.DeactivateAITaskRevisionRequest = function(opt_data) {
1192
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1193
+ };
1194
+ goog.inherits(proto.gateway.web.v1.DeactivateAITaskRevisionRequest, jspb.Message);
1195
+ if (goog.DEBUG && !COMPILED) {
1196
+ /**
1197
+ * @public
1198
+ * @override
1199
+ */
1200
+ proto.gateway.web.v1.DeactivateAITaskRevisionRequest.displayName = 'proto.gateway.web.v1.DeactivateAITaskRevisionRequest';
1201
+ }
1202
+ /**
1203
+ * Generated by JsPbCodeGenerator.
1204
+ * @param {Array=} opt_data Optional initial data array, typically from a
1205
+ * server response, or constructed directly in Javascript. The array is used
1206
+ * in place and becomes part of the constructed object. It is not cloned.
1207
+ * If no data is provided, the constructed object will be empty, but still
1208
+ * valid.
1209
+ * @extends {jspb.Message}
1210
+ * @constructor
1211
+ */
1212
+ proto.gateway.web.v1.DeactivateAITaskRevisionResponse = function(opt_data) {
1213
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1214
+ };
1215
+ goog.inherits(proto.gateway.web.v1.DeactivateAITaskRevisionResponse, jspb.Message);
1216
+ if (goog.DEBUG && !COMPILED) {
1217
+ /**
1218
+ * @public
1219
+ * @override
1220
+ */
1221
+ proto.gateway.web.v1.DeactivateAITaskRevisionResponse.displayName = 'proto.gateway.web.v1.DeactivateAITaskRevisionResponse';
1222
+ }
936
1223
 
937
1224
 
938
1225
 
@@ -10052,20 +10339,2752 @@ proto.gateway.web.v1.UserDetails.prototype.setName = function(value) {
10052
10339
  };
10053
10340
 
10054
10341
 
10342
+
10343
+
10344
+
10345
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10055
10346
  /**
10056
- * @enum {number}
10347
+ * Creates an object representation of this proto.
10348
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10349
+ * Optional fields that are not set will be set to undefined.
10350
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10351
+ * For the list of reserved names please see:
10352
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10353
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10354
+ * JSPB instance for transitional soy proto support:
10355
+ * http://goto/soy-param-migration
10356
+ * @return {!Object}
10057
10357
  */
10058
- proto.gateway.web.v1.AdminUsageDimension = {
10059
- ADMIN_USAGE_DIMENSION_UNSPECIFIED: 0,
10060
- ADMIN_USAGE_DIMENSION_ORGANIZATION: 1,
10061
- ADMIN_USAGE_DIMENSION_PRINCIPAL: 2,
10062
- ADMIN_USAGE_DIMENSION_SOURCE: 3,
10063
- ADMIN_USAGE_DIMENSION_MODEL: 4,
10064
- ADMIN_USAGE_DIMENSION_DAY: 5
10358
+ proto.gateway.web.v1.ListAITasksRequest.prototype.toObject = function(opt_includeInstance) {
10359
+ return proto.gateway.web.v1.ListAITasksRequest.toObject(opt_includeInstance, this);
10065
10360
  };
10066
10361
 
10362
+
10067
10363
  /**
10068
- * @enum {number}
10364
+ * Static version of the {@see toObject} method.
10365
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10366
+ * the JSPB instance for transitional soy proto support:
10367
+ * http://goto/soy-param-migration
10368
+ * @param {!proto.gateway.web.v1.ListAITasksRequest} msg The msg instance to transform.
10369
+ * @return {!Object}
10370
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10371
+ */
10372
+ proto.gateway.web.v1.ListAITasksRequest.toObject = function(includeInstance, msg) {
10373
+ var f, obj = {
10374
+
10375
+ };
10376
+
10377
+ if (includeInstance) {
10378
+ obj.$jspbMessageInstance = msg;
10379
+ }
10380
+ return obj;
10381
+ };
10382
+ }
10383
+
10384
+
10385
+ /**
10386
+ * Deserializes binary data (in protobuf wire format).
10387
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
10388
+ * @return {!proto.gateway.web.v1.ListAITasksRequest}
10389
+ */
10390
+ proto.gateway.web.v1.ListAITasksRequest.deserializeBinary = function(bytes) {
10391
+ var reader = new jspb.BinaryReader(bytes);
10392
+ var msg = new proto.gateway.web.v1.ListAITasksRequest;
10393
+ return proto.gateway.web.v1.ListAITasksRequest.deserializeBinaryFromReader(msg, reader);
10394
+ };
10395
+
10396
+
10397
+ /**
10398
+ * Deserializes binary data (in protobuf wire format) from the
10399
+ * given reader into the given message object.
10400
+ * @param {!proto.gateway.web.v1.ListAITasksRequest} msg The message object to deserialize into.
10401
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10402
+ * @return {!proto.gateway.web.v1.ListAITasksRequest}
10403
+ */
10404
+ proto.gateway.web.v1.ListAITasksRequest.deserializeBinaryFromReader = function(msg, reader) {
10405
+ while (reader.nextField()) {
10406
+ if (reader.isEndGroup()) {
10407
+ break;
10408
+ }
10409
+ var field = reader.getFieldNumber();
10410
+ switch (field) {
10411
+ default:
10412
+ reader.skipField();
10413
+ break;
10414
+ }
10415
+ }
10416
+ return msg;
10417
+ };
10418
+
10419
+
10420
+ /**
10421
+ * Serializes the message to binary data (in protobuf wire format).
10422
+ * @return {!Uint8Array}
10423
+ */
10424
+ proto.gateway.web.v1.ListAITasksRequest.prototype.serializeBinary = function() {
10425
+ var writer = new jspb.BinaryWriter();
10426
+ proto.gateway.web.v1.ListAITasksRequest.serializeBinaryToWriter(this, writer);
10427
+ return writer.getResultBuffer();
10428
+ };
10429
+
10430
+
10431
+ /**
10432
+ * Serializes the given message to binary data (in protobuf wire
10433
+ * format), writing to the given BinaryWriter.
10434
+ * @param {!proto.gateway.web.v1.ListAITasksRequest} message
10435
+ * @param {!jspb.BinaryWriter} writer
10436
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10437
+ */
10438
+ proto.gateway.web.v1.ListAITasksRequest.serializeBinaryToWriter = function(message, writer) {
10439
+ var f = undefined;
10440
+ };
10441
+
10442
+
10443
+
10444
+ /**
10445
+ * List of repeated fields within this message type.
10446
+ * @private {!Array<number>}
10447
+ * @const
10448
+ */
10449
+ proto.gateway.web.v1.ListAITasksResponse.repeatedFields_ = [2];
10450
+
10451
+
10452
+
10453
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10454
+ /**
10455
+ * Creates an object representation of this proto.
10456
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10457
+ * Optional fields that are not set will be set to undefined.
10458
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10459
+ * For the list of reserved names please see:
10460
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10461
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10462
+ * JSPB instance for transitional soy proto support:
10463
+ * http://goto/soy-param-migration
10464
+ * @return {!Object}
10465
+ */
10466
+ proto.gateway.web.v1.ListAITasksResponse.prototype.toObject = function(opt_includeInstance) {
10467
+ return proto.gateway.web.v1.ListAITasksResponse.toObject(opt_includeInstance, this);
10468
+ };
10469
+
10470
+
10471
+ /**
10472
+ * Static version of the {@see toObject} method.
10473
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10474
+ * the JSPB instance for transitional soy proto support:
10475
+ * http://goto/soy-param-migration
10476
+ * @param {!proto.gateway.web.v1.ListAITasksResponse} msg The msg instance to transform.
10477
+ * @return {!Object}
10478
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10479
+ */
10480
+ proto.gateway.web.v1.ListAITasksResponse.toObject = function(includeInstance, msg) {
10481
+ var f, obj = {
10482
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
10483
+ tasksList: jspb.Message.toObjectList(msg.getTasksList(),
10484
+ proto.gateway.web.v1.AITaskDefinition.toObject, includeInstance)
10485
+ };
10486
+
10487
+ if (includeInstance) {
10488
+ obj.$jspbMessageInstance = msg;
10489
+ }
10490
+ return obj;
10491
+ };
10492
+ }
10493
+
10494
+
10495
+ /**
10496
+ * Deserializes binary data (in protobuf wire format).
10497
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
10498
+ * @return {!proto.gateway.web.v1.ListAITasksResponse}
10499
+ */
10500
+ proto.gateway.web.v1.ListAITasksResponse.deserializeBinary = function(bytes) {
10501
+ var reader = new jspb.BinaryReader(bytes);
10502
+ var msg = new proto.gateway.web.v1.ListAITasksResponse;
10503
+ return proto.gateway.web.v1.ListAITasksResponse.deserializeBinaryFromReader(msg, reader);
10504
+ };
10505
+
10506
+
10507
+ /**
10508
+ * Deserializes binary data (in protobuf wire format) from the
10509
+ * given reader into the given message object.
10510
+ * @param {!proto.gateway.web.v1.ListAITasksResponse} msg The message object to deserialize into.
10511
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10512
+ * @return {!proto.gateway.web.v1.ListAITasksResponse}
10513
+ */
10514
+ proto.gateway.web.v1.ListAITasksResponse.deserializeBinaryFromReader = function(msg, reader) {
10515
+ while (reader.nextField()) {
10516
+ if (reader.isEndGroup()) {
10517
+ break;
10518
+ }
10519
+ var field = reader.getFieldNumber();
10520
+ switch (field) {
10521
+ case 1:
10522
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
10523
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
10524
+ msg.setStatus(value);
10525
+ break;
10526
+ case 2:
10527
+ var value = new proto.gateway.web.v1.AITaskDefinition;
10528
+ reader.readMessage(value,proto.gateway.web.v1.AITaskDefinition.deserializeBinaryFromReader);
10529
+ msg.addTasks(value);
10530
+ break;
10531
+ default:
10532
+ reader.skipField();
10533
+ break;
10534
+ }
10535
+ }
10536
+ return msg;
10537
+ };
10538
+
10539
+
10540
+ /**
10541
+ * Serializes the message to binary data (in protobuf wire format).
10542
+ * @return {!Uint8Array}
10543
+ */
10544
+ proto.gateway.web.v1.ListAITasksResponse.prototype.serializeBinary = function() {
10545
+ var writer = new jspb.BinaryWriter();
10546
+ proto.gateway.web.v1.ListAITasksResponse.serializeBinaryToWriter(this, writer);
10547
+ return writer.getResultBuffer();
10548
+ };
10549
+
10550
+
10551
+ /**
10552
+ * Serializes the given message to binary data (in protobuf wire
10553
+ * format), writing to the given BinaryWriter.
10554
+ * @param {!proto.gateway.web.v1.ListAITasksResponse} message
10555
+ * @param {!jspb.BinaryWriter} writer
10556
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10557
+ */
10558
+ proto.gateway.web.v1.ListAITasksResponse.serializeBinaryToWriter = function(message, writer) {
10559
+ var f = undefined;
10560
+ f = message.getStatus();
10561
+ if (f != null) {
10562
+ writer.writeMessage(
10563
+ 1,
10564
+ f,
10565
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
10566
+ );
10567
+ }
10568
+ f = message.getTasksList();
10569
+ if (f.length > 0) {
10570
+ writer.writeRepeatedMessage(
10571
+ 2,
10572
+ f,
10573
+ proto.gateway.web.v1.AITaskDefinition.serializeBinaryToWriter
10574
+ );
10575
+ }
10576
+ };
10577
+
10578
+
10579
+ /**
10580
+ * optional gateway.common.v1.ResponseStatus status = 1;
10581
+ * @return {?proto.gateway.common.v1.ResponseStatus}
10582
+ */
10583
+ proto.gateway.web.v1.ListAITasksResponse.prototype.getStatus = function() {
10584
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
10585
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
10586
+ };
10587
+
10588
+
10589
+ /**
10590
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
10591
+ * @return {!proto.gateway.web.v1.ListAITasksResponse} returns this
10592
+ */
10593
+ proto.gateway.web.v1.ListAITasksResponse.prototype.setStatus = function(value) {
10594
+ return jspb.Message.setWrapperField(this, 1, value);
10595
+ };
10596
+
10597
+
10598
+ /**
10599
+ * Clears the message field making it undefined.
10600
+ * @return {!proto.gateway.web.v1.ListAITasksResponse} returns this
10601
+ */
10602
+ proto.gateway.web.v1.ListAITasksResponse.prototype.clearStatus = function() {
10603
+ return this.setStatus(undefined);
10604
+ };
10605
+
10606
+
10607
+ /**
10608
+ * Returns whether this field is set.
10609
+ * @return {boolean}
10610
+ */
10611
+ proto.gateway.web.v1.ListAITasksResponse.prototype.hasStatus = function() {
10612
+ return jspb.Message.getField(this, 1) != null;
10613
+ };
10614
+
10615
+
10616
+ /**
10617
+ * repeated AITaskDefinition tasks = 2;
10618
+ * @return {!Array<!proto.gateway.web.v1.AITaskDefinition>}
10619
+ */
10620
+ proto.gateway.web.v1.ListAITasksResponse.prototype.getTasksList = function() {
10621
+ return /** @type{!Array<!proto.gateway.web.v1.AITaskDefinition>} */ (
10622
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.AITaskDefinition, 2));
10623
+ };
10624
+
10625
+
10626
+ /**
10627
+ * @param {!Array<!proto.gateway.web.v1.AITaskDefinition>} value
10628
+ * @return {!proto.gateway.web.v1.ListAITasksResponse} returns this
10629
+ */
10630
+ proto.gateway.web.v1.ListAITasksResponse.prototype.setTasksList = function(value) {
10631
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
10632
+ };
10633
+
10634
+
10635
+ /**
10636
+ * @param {!proto.gateway.web.v1.AITaskDefinition=} opt_value
10637
+ * @param {number=} opt_index
10638
+ * @return {!proto.gateway.web.v1.AITaskDefinition}
10639
+ */
10640
+ proto.gateway.web.v1.ListAITasksResponse.prototype.addTasks = function(opt_value, opt_index) {
10641
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.AITaskDefinition, opt_index);
10642
+ };
10643
+
10644
+
10645
+ /**
10646
+ * Clears the list making it empty but non-null.
10647
+ * @return {!proto.gateway.web.v1.ListAITasksResponse} returns this
10648
+ */
10649
+ proto.gateway.web.v1.ListAITasksResponse.prototype.clearTasksList = function() {
10650
+ return this.setTasksList([]);
10651
+ };
10652
+
10653
+
10654
+
10655
+
10656
+
10657
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10658
+ /**
10659
+ * Creates an object representation of this proto.
10660
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10661
+ * Optional fields that are not set will be set to undefined.
10662
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10663
+ * For the list of reserved names please see:
10664
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10665
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10666
+ * JSPB instance for transitional soy proto support:
10667
+ * http://goto/soy-param-migration
10668
+ * @return {!Object}
10669
+ */
10670
+ proto.gateway.web.v1.AITaskDefinition.prototype.toObject = function(opt_includeInstance) {
10671
+ return proto.gateway.web.v1.AITaskDefinition.toObject(opt_includeInstance, this);
10672
+ };
10673
+
10674
+
10675
+ /**
10676
+ * Static version of the {@see toObject} method.
10677
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10678
+ * the JSPB instance for transitional soy proto support:
10679
+ * http://goto/soy-param-migration
10680
+ * @param {!proto.gateway.web.v1.AITaskDefinition} msg The msg instance to transform.
10681
+ * @return {!Object}
10682
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10683
+ */
10684
+ proto.gateway.web.v1.AITaskDefinition.toObject = function(includeInstance, msg) {
10685
+ var f, obj = {
10686
+ task: jspb.Message.getFieldWithDefault(msg, 1, 0),
10687
+ displayName: jspb.Message.getFieldWithDefault(msg, 2, ""),
10688
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
10689
+ activation: (f = msg.getActivation()) && proto.gateway.web.v1.AITaskActivation.toObject(includeInstance, f),
10690
+ schemaJson: jspb.Message.getFieldWithDefault(msg, 5, ""),
10691
+ appendedInstruction: jspb.Message.getFieldWithDefault(msg, 6, ""),
10692
+ builtInInstruction: jspb.Message.getFieldWithDefault(msg, 7, "")
10693
+ };
10694
+
10695
+ if (includeInstance) {
10696
+ obj.$jspbMessageInstance = msg;
10697
+ }
10698
+ return obj;
10699
+ };
10700
+ }
10701
+
10702
+
10703
+ /**
10704
+ * Deserializes binary data (in protobuf wire format).
10705
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
10706
+ * @return {!proto.gateway.web.v1.AITaskDefinition}
10707
+ */
10708
+ proto.gateway.web.v1.AITaskDefinition.deserializeBinary = function(bytes) {
10709
+ var reader = new jspb.BinaryReader(bytes);
10710
+ var msg = new proto.gateway.web.v1.AITaskDefinition;
10711
+ return proto.gateway.web.v1.AITaskDefinition.deserializeBinaryFromReader(msg, reader);
10712
+ };
10713
+
10714
+
10715
+ /**
10716
+ * Deserializes binary data (in protobuf wire format) from the
10717
+ * given reader into the given message object.
10718
+ * @param {!proto.gateway.web.v1.AITaskDefinition} msg The message object to deserialize into.
10719
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10720
+ * @return {!proto.gateway.web.v1.AITaskDefinition}
10721
+ */
10722
+ proto.gateway.web.v1.AITaskDefinition.deserializeBinaryFromReader = function(msg, reader) {
10723
+ while (reader.nextField()) {
10724
+ if (reader.isEndGroup()) {
10725
+ break;
10726
+ }
10727
+ var field = reader.getFieldNumber();
10728
+ switch (field) {
10729
+ case 1:
10730
+ var value = /** @type {!proto.gateway.web.v1.AITask} */ (reader.readEnum());
10731
+ msg.setTask(value);
10732
+ break;
10733
+ case 2:
10734
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
10735
+ msg.setDisplayName(value);
10736
+ break;
10737
+ case 3:
10738
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
10739
+ msg.setDescription(value);
10740
+ break;
10741
+ case 4:
10742
+ var value = new proto.gateway.web.v1.AITaskActivation;
10743
+ reader.readMessage(value,proto.gateway.web.v1.AITaskActivation.deserializeBinaryFromReader);
10744
+ msg.setActivation(value);
10745
+ break;
10746
+ case 5:
10747
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
10748
+ msg.setSchemaJson(value);
10749
+ break;
10750
+ case 6:
10751
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
10752
+ msg.setAppendedInstruction(value);
10753
+ break;
10754
+ case 7:
10755
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
10756
+ msg.setBuiltInInstruction(value);
10757
+ break;
10758
+ default:
10759
+ reader.skipField();
10760
+ break;
10761
+ }
10762
+ }
10763
+ return msg;
10764
+ };
10765
+
10766
+
10767
+ /**
10768
+ * Serializes the message to binary data (in protobuf wire format).
10769
+ * @return {!Uint8Array}
10770
+ */
10771
+ proto.gateway.web.v1.AITaskDefinition.prototype.serializeBinary = function() {
10772
+ var writer = new jspb.BinaryWriter();
10773
+ proto.gateway.web.v1.AITaskDefinition.serializeBinaryToWriter(this, writer);
10774
+ return writer.getResultBuffer();
10775
+ };
10776
+
10777
+
10778
+ /**
10779
+ * Serializes the given message to binary data (in protobuf wire
10780
+ * format), writing to the given BinaryWriter.
10781
+ * @param {!proto.gateway.web.v1.AITaskDefinition} message
10782
+ * @param {!jspb.BinaryWriter} writer
10783
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10784
+ */
10785
+ proto.gateway.web.v1.AITaskDefinition.serializeBinaryToWriter = function(message, writer) {
10786
+ var f = undefined;
10787
+ f = message.getTask();
10788
+ if (f !== 0.0) {
10789
+ writer.writeEnum(
10790
+ 1,
10791
+ f
10792
+ );
10793
+ }
10794
+ f = message.getDisplayName();
10795
+ if (f.length > 0) {
10796
+ writer.writeString(
10797
+ 2,
10798
+ f
10799
+ );
10800
+ }
10801
+ f = message.getDescription();
10802
+ if (f.length > 0) {
10803
+ writer.writeString(
10804
+ 3,
10805
+ f
10806
+ );
10807
+ }
10808
+ f = message.getActivation();
10809
+ if (f != null) {
10810
+ writer.writeMessage(
10811
+ 4,
10812
+ f,
10813
+ proto.gateway.web.v1.AITaskActivation.serializeBinaryToWriter
10814
+ );
10815
+ }
10816
+ f = message.getSchemaJson();
10817
+ if (f.length > 0) {
10818
+ writer.writeString(
10819
+ 5,
10820
+ f
10821
+ );
10822
+ }
10823
+ f = message.getAppendedInstruction();
10824
+ if (f.length > 0) {
10825
+ writer.writeString(
10826
+ 6,
10827
+ f
10828
+ );
10829
+ }
10830
+ f = message.getBuiltInInstruction();
10831
+ if (f.length > 0) {
10832
+ writer.writeString(
10833
+ 7,
10834
+ f
10835
+ );
10836
+ }
10837
+ };
10838
+
10839
+
10840
+ /**
10841
+ * optional AITask task = 1;
10842
+ * @return {!proto.gateway.web.v1.AITask}
10843
+ */
10844
+ proto.gateway.web.v1.AITaskDefinition.prototype.getTask = function() {
10845
+ return /** @type {!proto.gateway.web.v1.AITask} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
10846
+ };
10847
+
10848
+
10849
+ /**
10850
+ * @param {!proto.gateway.web.v1.AITask} value
10851
+ * @return {!proto.gateway.web.v1.AITaskDefinition} returns this
10852
+ */
10853
+ proto.gateway.web.v1.AITaskDefinition.prototype.setTask = function(value) {
10854
+ return jspb.Message.setProto3EnumField(this, 1, value);
10855
+ };
10856
+
10857
+
10858
+ /**
10859
+ * optional string display_name = 2;
10860
+ * @return {string}
10861
+ */
10862
+ proto.gateway.web.v1.AITaskDefinition.prototype.getDisplayName = function() {
10863
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
10864
+ };
10865
+
10866
+
10867
+ /**
10868
+ * @param {string} value
10869
+ * @return {!proto.gateway.web.v1.AITaskDefinition} returns this
10870
+ */
10871
+ proto.gateway.web.v1.AITaskDefinition.prototype.setDisplayName = function(value) {
10872
+ return jspb.Message.setProto3StringField(this, 2, value);
10873
+ };
10874
+
10875
+
10876
+ /**
10877
+ * optional string description = 3;
10878
+ * @return {string}
10879
+ */
10880
+ proto.gateway.web.v1.AITaskDefinition.prototype.getDescription = function() {
10881
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
10882
+ };
10883
+
10884
+
10885
+ /**
10886
+ * @param {string} value
10887
+ * @return {!proto.gateway.web.v1.AITaskDefinition} returns this
10888
+ */
10889
+ proto.gateway.web.v1.AITaskDefinition.prototype.setDescription = function(value) {
10890
+ return jspb.Message.setProto3StringField(this, 3, value);
10891
+ };
10892
+
10893
+
10894
+ /**
10895
+ * optional AITaskActivation activation = 4;
10896
+ * @return {?proto.gateway.web.v1.AITaskActivation}
10897
+ */
10898
+ proto.gateway.web.v1.AITaskDefinition.prototype.getActivation = function() {
10899
+ return /** @type{?proto.gateway.web.v1.AITaskActivation} */ (
10900
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.AITaskActivation, 4));
10901
+ };
10902
+
10903
+
10904
+ /**
10905
+ * @param {?proto.gateway.web.v1.AITaskActivation|undefined} value
10906
+ * @return {!proto.gateway.web.v1.AITaskDefinition} returns this
10907
+ */
10908
+ proto.gateway.web.v1.AITaskDefinition.prototype.setActivation = function(value) {
10909
+ return jspb.Message.setWrapperField(this, 4, value);
10910
+ };
10911
+
10912
+
10913
+ /**
10914
+ * Clears the message field making it undefined.
10915
+ * @return {!proto.gateway.web.v1.AITaskDefinition} returns this
10916
+ */
10917
+ proto.gateway.web.v1.AITaskDefinition.prototype.clearActivation = function() {
10918
+ return this.setActivation(undefined);
10919
+ };
10920
+
10921
+
10922
+ /**
10923
+ * Returns whether this field is set.
10924
+ * @return {boolean}
10925
+ */
10926
+ proto.gateway.web.v1.AITaskDefinition.prototype.hasActivation = function() {
10927
+ return jspb.Message.getField(this, 4) != null;
10928
+ };
10929
+
10930
+
10931
+ /**
10932
+ * optional string schema_json = 5;
10933
+ * @return {string}
10934
+ */
10935
+ proto.gateway.web.v1.AITaskDefinition.prototype.getSchemaJson = function() {
10936
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
10937
+ };
10938
+
10939
+
10940
+ /**
10941
+ * @param {string} value
10942
+ * @return {!proto.gateway.web.v1.AITaskDefinition} returns this
10943
+ */
10944
+ proto.gateway.web.v1.AITaskDefinition.prototype.setSchemaJson = function(value) {
10945
+ return jspb.Message.setProto3StringField(this, 5, value);
10946
+ };
10947
+
10948
+
10949
+ /**
10950
+ * optional string appended_instruction = 6;
10951
+ * @return {string}
10952
+ */
10953
+ proto.gateway.web.v1.AITaskDefinition.prototype.getAppendedInstruction = function() {
10954
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
10955
+ };
10956
+
10957
+
10958
+ /**
10959
+ * @param {string} value
10960
+ * @return {!proto.gateway.web.v1.AITaskDefinition} returns this
10961
+ */
10962
+ proto.gateway.web.v1.AITaskDefinition.prototype.setAppendedInstruction = function(value) {
10963
+ return jspb.Message.setProto3StringField(this, 6, value);
10964
+ };
10965
+
10966
+
10967
+ /**
10968
+ * optional string built_in_instruction = 7;
10969
+ * @return {string}
10970
+ */
10971
+ proto.gateway.web.v1.AITaskDefinition.prototype.getBuiltInInstruction = function() {
10972
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
10973
+ };
10974
+
10975
+
10976
+ /**
10977
+ * @param {string} value
10978
+ * @return {!proto.gateway.web.v1.AITaskDefinition} returns this
10979
+ */
10980
+ proto.gateway.web.v1.AITaskDefinition.prototype.setBuiltInInstruction = function(value) {
10981
+ return jspb.Message.setProto3StringField(this, 7, value);
10982
+ };
10983
+
10984
+
10985
+
10986
+
10987
+
10988
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10989
+ /**
10990
+ * Creates an object representation of this proto.
10991
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10992
+ * Optional fields that are not set will be set to undefined.
10993
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10994
+ * For the list of reserved names please see:
10995
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10996
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10997
+ * JSPB instance for transitional soy proto support:
10998
+ * http://goto/soy-param-migration
10999
+ * @return {!Object}
11000
+ */
11001
+ proto.gateway.web.v1.AITaskActivation.prototype.toObject = function(opt_includeInstance) {
11002
+ return proto.gateway.web.v1.AITaskActivation.toObject(opt_includeInstance, this);
11003
+ };
11004
+
11005
+
11006
+ /**
11007
+ * Static version of the {@see toObject} method.
11008
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11009
+ * the JSPB instance for transitional soy proto support:
11010
+ * http://goto/soy-param-migration
11011
+ * @param {!proto.gateway.web.v1.AITaskActivation} msg The msg instance to transform.
11012
+ * @return {!Object}
11013
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11014
+ */
11015
+ proto.gateway.web.v1.AITaskActivation.toObject = function(includeInstance, msg) {
11016
+ var f, obj = {
11017
+ revision: (f = msg.getRevision()) && proto.gateway.web.v1.AITaskRevision.toObject(includeInstance, f),
11018
+ activatedByUserId: jspb.Message.getFieldWithDefault(msg, 2, ""),
11019
+ activateTime: (f = msg.getActivateTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
11020
+ };
11021
+
11022
+ if (includeInstance) {
11023
+ obj.$jspbMessageInstance = msg;
11024
+ }
11025
+ return obj;
11026
+ };
11027
+ }
11028
+
11029
+
11030
+ /**
11031
+ * Deserializes binary data (in protobuf wire format).
11032
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
11033
+ * @return {!proto.gateway.web.v1.AITaskActivation}
11034
+ */
11035
+ proto.gateway.web.v1.AITaskActivation.deserializeBinary = function(bytes) {
11036
+ var reader = new jspb.BinaryReader(bytes);
11037
+ var msg = new proto.gateway.web.v1.AITaskActivation;
11038
+ return proto.gateway.web.v1.AITaskActivation.deserializeBinaryFromReader(msg, reader);
11039
+ };
11040
+
11041
+
11042
+ /**
11043
+ * Deserializes binary data (in protobuf wire format) from the
11044
+ * given reader into the given message object.
11045
+ * @param {!proto.gateway.web.v1.AITaskActivation} msg The message object to deserialize into.
11046
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11047
+ * @return {!proto.gateway.web.v1.AITaskActivation}
11048
+ */
11049
+ proto.gateway.web.v1.AITaskActivation.deserializeBinaryFromReader = function(msg, reader) {
11050
+ while (reader.nextField()) {
11051
+ if (reader.isEndGroup()) {
11052
+ break;
11053
+ }
11054
+ var field = reader.getFieldNumber();
11055
+ switch (field) {
11056
+ case 1:
11057
+ var value = new proto.gateway.web.v1.AITaskRevision;
11058
+ reader.readMessage(value,proto.gateway.web.v1.AITaskRevision.deserializeBinaryFromReader);
11059
+ msg.setRevision(value);
11060
+ break;
11061
+ case 2:
11062
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11063
+ msg.setActivatedByUserId(value);
11064
+ break;
11065
+ case 3:
11066
+ var value = new google_protobuf_timestamp_pb.Timestamp;
11067
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
11068
+ msg.setActivateTime(value);
11069
+ break;
11070
+ default:
11071
+ reader.skipField();
11072
+ break;
11073
+ }
11074
+ }
11075
+ return msg;
11076
+ };
11077
+
11078
+
11079
+ /**
11080
+ * Serializes the message to binary data (in protobuf wire format).
11081
+ * @return {!Uint8Array}
11082
+ */
11083
+ proto.gateway.web.v1.AITaskActivation.prototype.serializeBinary = function() {
11084
+ var writer = new jspb.BinaryWriter();
11085
+ proto.gateway.web.v1.AITaskActivation.serializeBinaryToWriter(this, writer);
11086
+ return writer.getResultBuffer();
11087
+ };
11088
+
11089
+
11090
+ /**
11091
+ * Serializes the given message to binary data (in protobuf wire
11092
+ * format), writing to the given BinaryWriter.
11093
+ * @param {!proto.gateway.web.v1.AITaskActivation} message
11094
+ * @param {!jspb.BinaryWriter} writer
11095
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11096
+ */
11097
+ proto.gateway.web.v1.AITaskActivation.serializeBinaryToWriter = function(message, writer) {
11098
+ var f = undefined;
11099
+ f = message.getRevision();
11100
+ if (f != null) {
11101
+ writer.writeMessage(
11102
+ 1,
11103
+ f,
11104
+ proto.gateway.web.v1.AITaskRevision.serializeBinaryToWriter
11105
+ );
11106
+ }
11107
+ f = message.getActivatedByUserId();
11108
+ if (f.length > 0) {
11109
+ writer.writeString(
11110
+ 2,
11111
+ f
11112
+ );
11113
+ }
11114
+ f = message.getActivateTime();
11115
+ if (f != null) {
11116
+ writer.writeMessage(
11117
+ 3,
11118
+ f,
11119
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
11120
+ );
11121
+ }
11122
+ };
11123
+
11124
+
11125
+ /**
11126
+ * optional AITaskRevision revision = 1;
11127
+ * @return {?proto.gateway.web.v1.AITaskRevision}
11128
+ */
11129
+ proto.gateway.web.v1.AITaskActivation.prototype.getRevision = function() {
11130
+ return /** @type{?proto.gateway.web.v1.AITaskRevision} */ (
11131
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.AITaskRevision, 1));
11132
+ };
11133
+
11134
+
11135
+ /**
11136
+ * @param {?proto.gateway.web.v1.AITaskRevision|undefined} value
11137
+ * @return {!proto.gateway.web.v1.AITaskActivation} returns this
11138
+ */
11139
+ proto.gateway.web.v1.AITaskActivation.prototype.setRevision = function(value) {
11140
+ return jspb.Message.setWrapperField(this, 1, value);
11141
+ };
11142
+
11143
+
11144
+ /**
11145
+ * Clears the message field making it undefined.
11146
+ * @return {!proto.gateway.web.v1.AITaskActivation} returns this
11147
+ */
11148
+ proto.gateway.web.v1.AITaskActivation.prototype.clearRevision = function() {
11149
+ return this.setRevision(undefined);
11150
+ };
11151
+
11152
+
11153
+ /**
11154
+ * Returns whether this field is set.
11155
+ * @return {boolean}
11156
+ */
11157
+ proto.gateway.web.v1.AITaskActivation.prototype.hasRevision = function() {
11158
+ return jspb.Message.getField(this, 1) != null;
11159
+ };
11160
+
11161
+
11162
+ /**
11163
+ * optional string activated_by_user_id = 2;
11164
+ * @return {string}
11165
+ */
11166
+ proto.gateway.web.v1.AITaskActivation.prototype.getActivatedByUserId = function() {
11167
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
11168
+ };
11169
+
11170
+
11171
+ /**
11172
+ * @param {string} value
11173
+ * @return {!proto.gateway.web.v1.AITaskActivation} returns this
11174
+ */
11175
+ proto.gateway.web.v1.AITaskActivation.prototype.setActivatedByUserId = function(value) {
11176
+ return jspb.Message.setProto3StringField(this, 2, value);
11177
+ };
11178
+
11179
+
11180
+ /**
11181
+ * optional google.protobuf.Timestamp activate_time = 3;
11182
+ * @return {?proto.google.protobuf.Timestamp}
11183
+ */
11184
+ proto.gateway.web.v1.AITaskActivation.prototype.getActivateTime = function() {
11185
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
11186
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
11187
+ };
11188
+
11189
+
11190
+ /**
11191
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
11192
+ * @return {!proto.gateway.web.v1.AITaskActivation} returns this
11193
+ */
11194
+ proto.gateway.web.v1.AITaskActivation.prototype.setActivateTime = function(value) {
11195
+ return jspb.Message.setWrapperField(this, 3, value);
11196
+ };
11197
+
11198
+
11199
+ /**
11200
+ * Clears the message field making it undefined.
11201
+ * @return {!proto.gateway.web.v1.AITaskActivation} returns this
11202
+ */
11203
+ proto.gateway.web.v1.AITaskActivation.prototype.clearActivateTime = function() {
11204
+ return this.setActivateTime(undefined);
11205
+ };
11206
+
11207
+
11208
+ /**
11209
+ * Returns whether this field is set.
11210
+ * @return {boolean}
11211
+ */
11212
+ proto.gateway.web.v1.AITaskActivation.prototype.hasActivateTime = function() {
11213
+ return jspb.Message.getField(this, 3) != null;
11214
+ };
11215
+
11216
+
11217
+
11218
+
11219
+
11220
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11221
+ /**
11222
+ * Creates an object representation of this proto.
11223
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11224
+ * Optional fields that are not set will be set to undefined.
11225
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11226
+ * For the list of reserved names please see:
11227
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11228
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11229
+ * JSPB instance for transitional soy proto support:
11230
+ * http://goto/soy-param-migration
11231
+ * @return {!Object}
11232
+ */
11233
+ proto.gateway.web.v1.AITaskRevision.prototype.toObject = function(opt_includeInstance) {
11234
+ return proto.gateway.web.v1.AITaskRevision.toObject(opt_includeInstance, this);
11235
+ };
11236
+
11237
+
11238
+ /**
11239
+ * Static version of the {@see toObject} method.
11240
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11241
+ * the JSPB instance for transitional soy proto support:
11242
+ * http://goto/soy-param-migration
11243
+ * @param {!proto.gateway.web.v1.AITaskRevision} msg The msg instance to transform.
11244
+ * @return {!Object}
11245
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11246
+ */
11247
+ proto.gateway.web.v1.AITaskRevision.toObject = function(includeInstance, msg) {
11248
+ var f, obj = {
11249
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
11250
+ task: jspb.Message.getFieldWithDefault(msg, 2, 0),
11251
+ number: jspb.Message.getFieldWithDefault(msg, 3, 0),
11252
+ model: jspb.Message.getFieldWithDefault(msg, 4, ""),
11253
+ instruction: jspb.Message.getFieldWithDefault(msg, 5, ""),
11254
+ note: jspb.Message.getFieldWithDefault(msg, 6, ""),
11255
+ createdByUserId: jspb.Message.getFieldWithDefault(msg, 7, ""),
11256
+ createTime: (f = msg.getCreateTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
11257
+ };
11258
+
11259
+ if (includeInstance) {
11260
+ obj.$jspbMessageInstance = msg;
11261
+ }
11262
+ return obj;
11263
+ };
11264
+ }
11265
+
11266
+
11267
+ /**
11268
+ * Deserializes binary data (in protobuf wire format).
11269
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
11270
+ * @return {!proto.gateway.web.v1.AITaskRevision}
11271
+ */
11272
+ proto.gateway.web.v1.AITaskRevision.deserializeBinary = function(bytes) {
11273
+ var reader = new jspb.BinaryReader(bytes);
11274
+ var msg = new proto.gateway.web.v1.AITaskRevision;
11275
+ return proto.gateway.web.v1.AITaskRevision.deserializeBinaryFromReader(msg, reader);
11276
+ };
11277
+
11278
+
11279
+ /**
11280
+ * Deserializes binary data (in protobuf wire format) from the
11281
+ * given reader into the given message object.
11282
+ * @param {!proto.gateway.web.v1.AITaskRevision} msg The message object to deserialize into.
11283
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11284
+ * @return {!proto.gateway.web.v1.AITaskRevision}
11285
+ */
11286
+ proto.gateway.web.v1.AITaskRevision.deserializeBinaryFromReader = function(msg, reader) {
11287
+ while (reader.nextField()) {
11288
+ if (reader.isEndGroup()) {
11289
+ break;
11290
+ }
11291
+ var field = reader.getFieldNumber();
11292
+ switch (field) {
11293
+ case 1:
11294
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11295
+ msg.setId(value);
11296
+ break;
11297
+ case 2:
11298
+ var value = /** @type {!proto.gateway.web.v1.AITask} */ (reader.readEnum());
11299
+ msg.setTask(value);
11300
+ break;
11301
+ case 3:
11302
+ var value = /** @type {number} */ (reader.readInt32());
11303
+ msg.setNumber(value);
11304
+ break;
11305
+ case 4:
11306
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11307
+ msg.setModel(value);
11308
+ break;
11309
+ case 5:
11310
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11311
+ msg.setInstruction(value);
11312
+ break;
11313
+ case 6:
11314
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11315
+ msg.setNote(value);
11316
+ break;
11317
+ case 7:
11318
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11319
+ msg.setCreatedByUserId(value);
11320
+ break;
11321
+ case 8:
11322
+ var value = new google_protobuf_timestamp_pb.Timestamp;
11323
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
11324
+ msg.setCreateTime(value);
11325
+ break;
11326
+ default:
11327
+ reader.skipField();
11328
+ break;
11329
+ }
11330
+ }
11331
+ return msg;
11332
+ };
11333
+
11334
+
11335
+ /**
11336
+ * Serializes the message to binary data (in protobuf wire format).
11337
+ * @return {!Uint8Array}
11338
+ */
11339
+ proto.gateway.web.v1.AITaskRevision.prototype.serializeBinary = function() {
11340
+ var writer = new jspb.BinaryWriter();
11341
+ proto.gateway.web.v1.AITaskRevision.serializeBinaryToWriter(this, writer);
11342
+ return writer.getResultBuffer();
11343
+ };
11344
+
11345
+
11346
+ /**
11347
+ * Serializes the given message to binary data (in protobuf wire
11348
+ * format), writing to the given BinaryWriter.
11349
+ * @param {!proto.gateway.web.v1.AITaskRevision} message
11350
+ * @param {!jspb.BinaryWriter} writer
11351
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11352
+ */
11353
+ proto.gateway.web.v1.AITaskRevision.serializeBinaryToWriter = function(message, writer) {
11354
+ var f = undefined;
11355
+ f = message.getId();
11356
+ if (f.length > 0) {
11357
+ writer.writeString(
11358
+ 1,
11359
+ f
11360
+ );
11361
+ }
11362
+ f = message.getTask();
11363
+ if (f !== 0.0) {
11364
+ writer.writeEnum(
11365
+ 2,
11366
+ f
11367
+ );
11368
+ }
11369
+ f = message.getNumber();
11370
+ if (f !== 0) {
11371
+ writer.writeInt32(
11372
+ 3,
11373
+ f
11374
+ );
11375
+ }
11376
+ f = message.getModel();
11377
+ if (f.length > 0) {
11378
+ writer.writeString(
11379
+ 4,
11380
+ f
11381
+ );
11382
+ }
11383
+ f = message.getInstruction();
11384
+ if (f.length > 0) {
11385
+ writer.writeString(
11386
+ 5,
11387
+ f
11388
+ );
11389
+ }
11390
+ f = message.getNote();
11391
+ if (f.length > 0) {
11392
+ writer.writeString(
11393
+ 6,
11394
+ f
11395
+ );
11396
+ }
11397
+ f = message.getCreatedByUserId();
11398
+ if (f.length > 0) {
11399
+ writer.writeString(
11400
+ 7,
11401
+ f
11402
+ );
11403
+ }
11404
+ f = message.getCreateTime();
11405
+ if (f != null) {
11406
+ writer.writeMessage(
11407
+ 8,
11408
+ f,
11409
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
11410
+ );
11411
+ }
11412
+ };
11413
+
11414
+
11415
+ /**
11416
+ * optional string id = 1;
11417
+ * @return {string}
11418
+ */
11419
+ proto.gateway.web.v1.AITaskRevision.prototype.getId = function() {
11420
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
11421
+ };
11422
+
11423
+
11424
+ /**
11425
+ * @param {string} value
11426
+ * @return {!proto.gateway.web.v1.AITaskRevision} returns this
11427
+ */
11428
+ proto.gateway.web.v1.AITaskRevision.prototype.setId = function(value) {
11429
+ return jspb.Message.setProto3StringField(this, 1, value);
11430
+ };
11431
+
11432
+
11433
+ /**
11434
+ * optional AITask task = 2;
11435
+ * @return {!proto.gateway.web.v1.AITask}
11436
+ */
11437
+ proto.gateway.web.v1.AITaskRevision.prototype.getTask = function() {
11438
+ return /** @type {!proto.gateway.web.v1.AITask} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
11439
+ };
11440
+
11441
+
11442
+ /**
11443
+ * @param {!proto.gateway.web.v1.AITask} value
11444
+ * @return {!proto.gateway.web.v1.AITaskRevision} returns this
11445
+ */
11446
+ proto.gateway.web.v1.AITaskRevision.prototype.setTask = function(value) {
11447
+ return jspb.Message.setProto3EnumField(this, 2, value);
11448
+ };
11449
+
11450
+
11451
+ /**
11452
+ * optional int32 number = 3;
11453
+ * @return {number}
11454
+ */
11455
+ proto.gateway.web.v1.AITaskRevision.prototype.getNumber = function() {
11456
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
11457
+ };
11458
+
11459
+
11460
+ /**
11461
+ * @param {number} value
11462
+ * @return {!proto.gateway.web.v1.AITaskRevision} returns this
11463
+ */
11464
+ proto.gateway.web.v1.AITaskRevision.prototype.setNumber = function(value) {
11465
+ return jspb.Message.setProto3IntField(this, 3, value);
11466
+ };
11467
+
11468
+
11469
+ /**
11470
+ * optional string model = 4;
11471
+ * @return {string}
11472
+ */
11473
+ proto.gateway.web.v1.AITaskRevision.prototype.getModel = function() {
11474
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
11475
+ };
11476
+
11477
+
11478
+ /**
11479
+ * @param {string} value
11480
+ * @return {!proto.gateway.web.v1.AITaskRevision} returns this
11481
+ */
11482
+ proto.gateway.web.v1.AITaskRevision.prototype.setModel = function(value) {
11483
+ return jspb.Message.setProto3StringField(this, 4, value);
11484
+ };
11485
+
11486
+
11487
+ /**
11488
+ * optional string instruction = 5;
11489
+ * @return {string}
11490
+ */
11491
+ proto.gateway.web.v1.AITaskRevision.prototype.getInstruction = function() {
11492
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
11493
+ };
11494
+
11495
+
11496
+ /**
11497
+ * @param {string} value
11498
+ * @return {!proto.gateway.web.v1.AITaskRevision} returns this
11499
+ */
11500
+ proto.gateway.web.v1.AITaskRevision.prototype.setInstruction = function(value) {
11501
+ return jspb.Message.setProto3StringField(this, 5, value);
11502
+ };
11503
+
11504
+
11505
+ /**
11506
+ * optional string note = 6;
11507
+ * @return {string}
11508
+ */
11509
+ proto.gateway.web.v1.AITaskRevision.prototype.getNote = function() {
11510
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
11511
+ };
11512
+
11513
+
11514
+ /**
11515
+ * @param {string} value
11516
+ * @return {!proto.gateway.web.v1.AITaskRevision} returns this
11517
+ */
11518
+ proto.gateway.web.v1.AITaskRevision.prototype.setNote = function(value) {
11519
+ return jspb.Message.setProto3StringField(this, 6, value);
11520
+ };
11521
+
11522
+
11523
+ /**
11524
+ * optional string created_by_user_id = 7;
11525
+ * @return {string}
11526
+ */
11527
+ proto.gateway.web.v1.AITaskRevision.prototype.getCreatedByUserId = function() {
11528
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
11529
+ };
11530
+
11531
+
11532
+ /**
11533
+ * @param {string} value
11534
+ * @return {!proto.gateway.web.v1.AITaskRevision} returns this
11535
+ */
11536
+ proto.gateway.web.v1.AITaskRevision.prototype.setCreatedByUserId = function(value) {
11537
+ return jspb.Message.setProto3StringField(this, 7, value);
11538
+ };
11539
+
11540
+
11541
+ /**
11542
+ * optional google.protobuf.Timestamp create_time = 8;
11543
+ * @return {?proto.google.protobuf.Timestamp}
11544
+ */
11545
+ proto.gateway.web.v1.AITaskRevision.prototype.getCreateTime = function() {
11546
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
11547
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8));
11548
+ };
11549
+
11550
+
11551
+ /**
11552
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
11553
+ * @return {!proto.gateway.web.v1.AITaskRevision} returns this
11554
+ */
11555
+ proto.gateway.web.v1.AITaskRevision.prototype.setCreateTime = function(value) {
11556
+ return jspb.Message.setWrapperField(this, 8, value);
11557
+ };
11558
+
11559
+
11560
+ /**
11561
+ * Clears the message field making it undefined.
11562
+ * @return {!proto.gateway.web.v1.AITaskRevision} returns this
11563
+ */
11564
+ proto.gateway.web.v1.AITaskRevision.prototype.clearCreateTime = function() {
11565
+ return this.setCreateTime(undefined);
11566
+ };
11567
+
11568
+
11569
+ /**
11570
+ * Returns whether this field is set.
11571
+ * @return {boolean}
11572
+ */
11573
+ proto.gateway.web.v1.AITaskRevision.prototype.hasCreateTime = function() {
11574
+ return jspb.Message.getField(this, 8) != null;
11575
+ };
11576
+
11577
+
11578
+
11579
+
11580
+
11581
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11582
+ /**
11583
+ * Creates an object representation of this proto.
11584
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11585
+ * Optional fields that are not set will be set to undefined.
11586
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11587
+ * For the list of reserved names please see:
11588
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11589
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11590
+ * JSPB instance for transitional soy proto support:
11591
+ * http://goto/soy-param-migration
11592
+ * @return {!Object}
11593
+ */
11594
+ proto.gateway.web.v1.ListAITaskRevisionsRequest.prototype.toObject = function(opt_includeInstance) {
11595
+ return proto.gateway.web.v1.ListAITaskRevisionsRequest.toObject(opt_includeInstance, this);
11596
+ };
11597
+
11598
+
11599
+ /**
11600
+ * Static version of the {@see toObject} method.
11601
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11602
+ * the JSPB instance for transitional soy proto support:
11603
+ * http://goto/soy-param-migration
11604
+ * @param {!proto.gateway.web.v1.ListAITaskRevisionsRequest} msg The msg instance to transform.
11605
+ * @return {!Object}
11606
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11607
+ */
11608
+ proto.gateway.web.v1.ListAITaskRevisionsRequest.toObject = function(includeInstance, msg) {
11609
+ var f, obj = {
11610
+ task: jspb.Message.getFieldWithDefault(msg, 1, 0),
11611
+ pageSize: jspb.Message.getFieldWithDefault(msg, 2, 0),
11612
+ pageToken: jspb.Message.getFieldWithDefault(msg, 3, "")
11613
+ };
11614
+
11615
+ if (includeInstance) {
11616
+ obj.$jspbMessageInstance = msg;
11617
+ }
11618
+ return obj;
11619
+ };
11620
+ }
11621
+
11622
+
11623
+ /**
11624
+ * Deserializes binary data (in protobuf wire format).
11625
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
11626
+ * @return {!proto.gateway.web.v1.ListAITaskRevisionsRequest}
11627
+ */
11628
+ proto.gateway.web.v1.ListAITaskRevisionsRequest.deserializeBinary = function(bytes) {
11629
+ var reader = new jspb.BinaryReader(bytes);
11630
+ var msg = new proto.gateway.web.v1.ListAITaskRevisionsRequest;
11631
+ return proto.gateway.web.v1.ListAITaskRevisionsRequest.deserializeBinaryFromReader(msg, reader);
11632
+ };
11633
+
11634
+
11635
+ /**
11636
+ * Deserializes binary data (in protobuf wire format) from the
11637
+ * given reader into the given message object.
11638
+ * @param {!proto.gateway.web.v1.ListAITaskRevisionsRequest} msg The message object to deserialize into.
11639
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11640
+ * @return {!proto.gateway.web.v1.ListAITaskRevisionsRequest}
11641
+ */
11642
+ proto.gateway.web.v1.ListAITaskRevisionsRequest.deserializeBinaryFromReader = function(msg, reader) {
11643
+ while (reader.nextField()) {
11644
+ if (reader.isEndGroup()) {
11645
+ break;
11646
+ }
11647
+ var field = reader.getFieldNumber();
11648
+ switch (field) {
11649
+ case 1:
11650
+ var value = /** @type {!proto.gateway.web.v1.AITask} */ (reader.readEnum());
11651
+ msg.setTask(value);
11652
+ break;
11653
+ case 2:
11654
+ var value = /** @type {number} */ (reader.readInt32());
11655
+ msg.setPageSize(value);
11656
+ break;
11657
+ case 3:
11658
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11659
+ msg.setPageToken(value);
11660
+ break;
11661
+ default:
11662
+ reader.skipField();
11663
+ break;
11664
+ }
11665
+ }
11666
+ return msg;
11667
+ };
11668
+
11669
+
11670
+ /**
11671
+ * Serializes the message to binary data (in protobuf wire format).
11672
+ * @return {!Uint8Array}
11673
+ */
11674
+ proto.gateway.web.v1.ListAITaskRevisionsRequest.prototype.serializeBinary = function() {
11675
+ var writer = new jspb.BinaryWriter();
11676
+ proto.gateway.web.v1.ListAITaskRevisionsRequest.serializeBinaryToWriter(this, writer);
11677
+ return writer.getResultBuffer();
11678
+ };
11679
+
11680
+
11681
+ /**
11682
+ * Serializes the given message to binary data (in protobuf wire
11683
+ * format), writing to the given BinaryWriter.
11684
+ * @param {!proto.gateway.web.v1.ListAITaskRevisionsRequest} message
11685
+ * @param {!jspb.BinaryWriter} writer
11686
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11687
+ */
11688
+ proto.gateway.web.v1.ListAITaskRevisionsRequest.serializeBinaryToWriter = function(message, writer) {
11689
+ var f = undefined;
11690
+ f = message.getTask();
11691
+ if (f !== 0.0) {
11692
+ writer.writeEnum(
11693
+ 1,
11694
+ f
11695
+ );
11696
+ }
11697
+ f = message.getPageSize();
11698
+ if (f !== 0) {
11699
+ writer.writeInt32(
11700
+ 2,
11701
+ f
11702
+ );
11703
+ }
11704
+ f = message.getPageToken();
11705
+ if (f.length > 0) {
11706
+ writer.writeString(
11707
+ 3,
11708
+ f
11709
+ );
11710
+ }
11711
+ };
11712
+
11713
+
11714
+ /**
11715
+ * optional AITask task = 1;
11716
+ * @return {!proto.gateway.web.v1.AITask}
11717
+ */
11718
+ proto.gateway.web.v1.ListAITaskRevisionsRequest.prototype.getTask = function() {
11719
+ return /** @type {!proto.gateway.web.v1.AITask} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
11720
+ };
11721
+
11722
+
11723
+ /**
11724
+ * @param {!proto.gateway.web.v1.AITask} value
11725
+ * @return {!proto.gateway.web.v1.ListAITaskRevisionsRequest} returns this
11726
+ */
11727
+ proto.gateway.web.v1.ListAITaskRevisionsRequest.prototype.setTask = function(value) {
11728
+ return jspb.Message.setProto3EnumField(this, 1, value);
11729
+ };
11730
+
11731
+
11732
+ /**
11733
+ * optional int32 page_size = 2;
11734
+ * @return {number}
11735
+ */
11736
+ proto.gateway.web.v1.ListAITaskRevisionsRequest.prototype.getPageSize = function() {
11737
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
11738
+ };
11739
+
11740
+
11741
+ /**
11742
+ * @param {number} value
11743
+ * @return {!proto.gateway.web.v1.ListAITaskRevisionsRequest} returns this
11744
+ */
11745
+ proto.gateway.web.v1.ListAITaskRevisionsRequest.prototype.setPageSize = function(value) {
11746
+ return jspb.Message.setProto3IntField(this, 2, value);
11747
+ };
11748
+
11749
+
11750
+ /**
11751
+ * optional string page_token = 3;
11752
+ * @return {string}
11753
+ */
11754
+ proto.gateway.web.v1.ListAITaskRevisionsRequest.prototype.getPageToken = function() {
11755
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
11756
+ };
11757
+
11758
+
11759
+ /**
11760
+ * @param {string} value
11761
+ * @return {!proto.gateway.web.v1.ListAITaskRevisionsRequest} returns this
11762
+ */
11763
+ proto.gateway.web.v1.ListAITaskRevisionsRequest.prototype.setPageToken = function(value) {
11764
+ return jspb.Message.setProto3StringField(this, 3, value);
11765
+ };
11766
+
11767
+
11768
+
11769
+ /**
11770
+ * List of repeated fields within this message type.
11771
+ * @private {!Array<number>}
11772
+ * @const
11773
+ */
11774
+ proto.gateway.web.v1.ListAITaskRevisionsResponse.repeatedFields_ = [2];
11775
+
11776
+
11777
+
11778
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11779
+ /**
11780
+ * Creates an object representation of this proto.
11781
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11782
+ * Optional fields that are not set will be set to undefined.
11783
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11784
+ * For the list of reserved names please see:
11785
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11786
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11787
+ * JSPB instance for transitional soy proto support:
11788
+ * http://goto/soy-param-migration
11789
+ * @return {!Object}
11790
+ */
11791
+ proto.gateway.web.v1.ListAITaskRevisionsResponse.prototype.toObject = function(opt_includeInstance) {
11792
+ return proto.gateway.web.v1.ListAITaskRevisionsResponse.toObject(opt_includeInstance, this);
11793
+ };
11794
+
11795
+
11796
+ /**
11797
+ * Static version of the {@see toObject} method.
11798
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11799
+ * the JSPB instance for transitional soy proto support:
11800
+ * http://goto/soy-param-migration
11801
+ * @param {!proto.gateway.web.v1.ListAITaskRevisionsResponse} msg The msg instance to transform.
11802
+ * @return {!Object}
11803
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11804
+ */
11805
+ proto.gateway.web.v1.ListAITaskRevisionsResponse.toObject = function(includeInstance, msg) {
11806
+ var f, obj = {
11807
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
11808
+ revisionsList: jspb.Message.toObjectList(msg.getRevisionsList(),
11809
+ proto.gateway.web.v1.AITaskRevision.toObject, includeInstance),
11810
+ nextPageToken: jspb.Message.getFieldWithDefault(msg, 3, "")
11811
+ };
11812
+
11813
+ if (includeInstance) {
11814
+ obj.$jspbMessageInstance = msg;
11815
+ }
11816
+ return obj;
11817
+ };
11818
+ }
11819
+
11820
+
11821
+ /**
11822
+ * Deserializes binary data (in protobuf wire format).
11823
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
11824
+ * @return {!proto.gateway.web.v1.ListAITaskRevisionsResponse}
11825
+ */
11826
+ proto.gateway.web.v1.ListAITaskRevisionsResponse.deserializeBinary = function(bytes) {
11827
+ var reader = new jspb.BinaryReader(bytes);
11828
+ var msg = new proto.gateway.web.v1.ListAITaskRevisionsResponse;
11829
+ return proto.gateway.web.v1.ListAITaskRevisionsResponse.deserializeBinaryFromReader(msg, reader);
11830
+ };
11831
+
11832
+
11833
+ /**
11834
+ * Deserializes binary data (in protobuf wire format) from the
11835
+ * given reader into the given message object.
11836
+ * @param {!proto.gateway.web.v1.ListAITaskRevisionsResponse} msg The message object to deserialize into.
11837
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11838
+ * @return {!proto.gateway.web.v1.ListAITaskRevisionsResponse}
11839
+ */
11840
+ proto.gateway.web.v1.ListAITaskRevisionsResponse.deserializeBinaryFromReader = function(msg, reader) {
11841
+ while (reader.nextField()) {
11842
+ if (reader.isEndGroup()) {
11843
+ break;
11844
+ }
11845
+ var field = reader.getFieldNumber();
11846
+ switch (field) {
11847
+ case 1:
11848
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
11849
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
11850
+ msg.setStatus(value);
11851
+ break;
11852
+ case 2:
11853
+ var value = new proto.gateway.web.v1.AITaskRevision;
11854
+ reader.readMessage(value,proto.gateway.web.v1.AITaskRevision.deserializeBinaryFromReader);
11855
+ msg.addRevisions(value);
11856
+ break;
11857
+ case 3:
11858
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11859
+ msg.setNextPageToken(value);
11860
+ break;
11861
+ default:
11862
+ reader.skipField();
11863
+ break;
11864
+ }
11865
+ }
11866
+ return msg;
11867
+ };
11868
+
11869
+
11870
+ /**
11871
+ * Serializes the message to binary data (in protobuf wire format).
11872
+ * @return {!Uint8Array}
11873
+ */
11874
+ proto.gateway.web.v1.ListAITaskRevisionsResponse.prototype.serializeBinary = function() {
11875
+ var writer = new jspb.BinaryWriter();
11876
+ proto.gateway.web.v1.ListAITaskRevisionsResponse.serializeBinaryToWriter(this, writer);
11877
+ return writer.getResultBuffer();
11878
+ };
11879
+
11880
+
11881
+ /**
11882
+ * Serializes the given message to binary data (in protobuf wire
11883
+ * format), writing to the given BinaryWriter.
11884
+ * @param {!proto.gateway.web.v1.ListAITaskRevisionsResponse} message
11885
+ * @param {!jspb.BinaryWriter} writer
11886
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11887
+ */
11888
+ proto.gateway.web.v1.ListAITaskRevisionsResponse.serializeBinaryToWriter = function(message, writer) {
11889
+ var f = undefined;
11890
+ f = message.getStatus();
11891
+ if (f != null) {
11892
+ writer.writeMessage(
11893
+ 1,
11894
+ f,
11895
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
11896
+ );
11897
+ }
11898
+ f = message.getRevisionsList();
11899
+ if (f.length > 0) {
11900
+ writer.writeRepeatedMessage(
11901
+ 2,
11902
+ f,
11903
+ proto.gateway.web.v1.AITaskRevision.serializeBinaryToWriter
11904
+ );
11905
+ }
11906
+ f = message.getNextPageToken();
11907
+ if (f.length > 0) {
11908
+ writer.writeString(
11909
+ 3,
11910
+ f
11911
+ );
11912
+ }
11913
+ };
11914
+
11915
+
11916
+ /**
11917
+ * optional gateway.common.v1.ResponseStatus status = 1;
11918
+ * @return {?proto.gateway.common.v1.ResponseStatus}
11919
+ */
11920
+ proto.gateway.web.v1.ListAITaskRevisionsResponse.prototype.getStatus = function() {
11921
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
11922
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
11923
+ };
11924
+
11925
+
11926
+ /**
11927
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
11928
+ * @return {!proto.gateway.web.v1.ListAITaskRevisionsResponse} returns this
11929
+ */
11930
+ proto.gateway.web.v1.ListAITaskRevisionsResponse.prototype.setStatus = function(value) {
11931
+ return jspb.Message.setWrapperField(this, 1, value);
11932
+ };
11933
+
11934
+
11935
+ /**
11936
+ * Clears the message field making it undefined.
11937
+ * @return {!proto.gateway.web.v1.ListAITaskRevisionsResponse} returns this
11938
+ */
11939
+ proto.gateway.web.v1.ListAITaskRevisionsResponse.prototype.clearStatus = function() {
11940
+ return this.setStatus(undefined);
11941
+ };
11942
+
11943
+
11944
+ /**
11945
+ * Returns whether this field is set.
11946
+ * @return {boolean}
11947
+ */
11948
+ proto.gateway.web.v1.ListAITaskRevisionsResponse.prototype.hasStatus = function() {
11949
+ return jspb.Message.getField(this, 1) != null;
11950
+ };
11951
+
11952
+
11953
+ /**
11954
+ * repeated AITaskRevision revisions = 2;
11955
+ * @return {!Array<!proto.gateway.web.v1.AITaskRevision>}
11956
+ */
11957
+ proto.gateway.web.v1.ListAITaskRevisionsResponse.prototype.getRevisionsList = function() {
11958
+ return /** @type{!Array<!proto.gateway.web.v1.AITaskRevision>} */ (
11959
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.AITaskRevision, 2));
11960
+ };
11961
+
11962
+
11963
+ /**
11964
+ * @param {!Array<!proto.gateway.web.v1.AITaskRevision>} value
11965
+ * @return {!proto.gateway.web.v1.ListAITaskRevisionsResponse} returns this
11966
+ */
11967
+ proto.gateway.web.v1.ListAITaskRevisionsResponse.prototype.setRevisionsList = function(value) {
11968
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
11969
+ };
11970
+
11971
+
11972
+ /**
11973
+ * @param {!proto.gateway.web.v1.AITaskRevision=} opt_value
11974
+ * @param {number=} opt_index
11975
+ * @return {!proto.gateway.web.v1.AITaskRevision}
11976
+ */
11977
+ proto.gateway.web.v1.ListAITaskRevisionsResponse.prototype.addRevisions = function(opt_value, opt_index) {
11978
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.AITaskRevision, opt_index);
11979
+ };
11980
+
11981
+
11982
+ /**
11983
+ * Clears the list making it empty but non-null.
11984
+ * @return {!proto.gateway.web.v1.ListAITaskRevisionsResponse} returns this
11985
+ */
11986
+ proto.gateway.web.v1.ListAITaskRevisionsResponse.prototype.clearRevisionsList = function() {
11987
+ return this.setRevisionsList([]);
11988
+ };
11989
+
11990
+
11991
+ /**
11992
+ * optional string next_page_token = 3;
11993
+ * @return {string}
11994
+ */
11995
+ proto.gateway.web.v1.ListAITaskRevisionsResponse.prototype.getNextPageToken = function() {
11996
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
11997
+ };
11998
+
11999
+
12000
+ /**
12001
+ * @param {string} value
12002
+ * @return {!proto.gateway.web.v1.ListAITaskRevisionsResponse} returns this
12003
+ */
12004
+ proto.gateway.web.v1.ListAITaskRevisionsResponse.prototype.setNextPageToken = function(value) {
12005
+ return jspb.Message.setProto3StringField(this, 3, value);
12006
+ };
12007
+
12008
+
12009
+
12010
+
12011
+
12012
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12013
+ /**
12014
+ * Creates an object representation of this proto.
12015
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
12016
+ * Optional fields that are not set will be set to undefined.
12017
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12018
+ * For the list of reserved names please see:
12019
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12020
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12021
+ * JSPB instance for transitional soy proto support:
12022
+ * http://goto/soy-param-migration
12023
+ * @return {!Object}
12024
+ */
12025
+ proto.gateway.web.v1.CreateAITaskRevisionRequest.prototype.toObject = function(opt_includeInstance) {
12026
+ return proto.gateway.web.v1.CreateAITaskRevisionRequest.toObject(opt_includeInstance, this);
12027
+ };
12028
+
12029
+
12030
+ /**
12031
+ * Static version of the {@see toObject} method.
12032
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12033
+ * the JSPB instance for transitional soy proto support:
12034
+ * http://goto/soy-param-migration
12035
+ * @param {!proto.gateway.web.v1.CreateAITaskRevisionRequest} msg The msg instance to transform.
12036
+ * @return {!Object}
12037
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12038
+ */
12039
+ proto.gateway.web.v1.CreateAITaskRevisionRequest.toObject = function(includeInstance, msg) {
12040
+ var f, obj = {
12041
+ task: jspb.Message.getFieldWithDefault(msg, 1, 0),
12042
+ model: jspb.Message.getFieldWithDefault(msg, 2, ""),
12043
+ instruction: jspb.Message.getFieldWithDefault(msg, 3, ""),
12044
+ note: jspb.Message.getFieldWithDefault(msg, 4, "")
12045
+ };
12046
+
12047
+ if (includeInstance) {
12048
+ obj.$jspbMessageInstance = msg;
12049
+ }
12050
+ return obj;
12051
+ };
12052
+ }
12053
+
12054
+
12055
+ /**
12056
+ * Deserializes binary data (in protobuf wire format).
12057
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
12058
+ * @return {!proto.gateway.web.v1.CreateAITaskRevisionRequest}
12059
+ */
12060
+ proto.gateway.web.v1.CreateAITaskRevisionRequest.deserializeBinary = function(bytes) {
12061
+ var reader = new jspb.BinaryReader(bytes);
12062
+ var msg = new proto.gateway.web.v1.CreateAITaskRevisionRequest;
12063
+ return proto.gateway.web.v1.CreateAITaskRevisionRequest.deserializeBinaryFromReader(msg, reader);
12064
+ };
12065
+
12066
+
12067
+ /**
12068
+ * Deserializes binary data (in protobuf wire format) from the
12069
+ * given reader into the given message object.
12070
+ * @param {!proto.gateway.web.v1.CreateAITaskRevisionRequest} msg The message object to deserialize into.
12071
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12072
+ * @return {!proto.gateway.web.v1.CreateAITaskRevisionRequest}
12073
+ */
12074
+ proto.gateway.web.v1.CreateAITaskRevisionRequest.deserializeBinaryFromReader = function(msg, reader) {
12075
+ while (reader.nextField()) {
12076
+ if (reader.isEndGroup()) {
12077
+ break;
12078
+ }
12079
+ var field = reader.getFieldNumber();
12080
+ switch (field) {
12081
+ case 1:
12082
+ var value = /** @type {!proto.gateway.web.v1.AITask} */ (reader.readEnum());
12083
+ msg.setTask(value);
12084
+ break;
12085
+ case 2:
12086
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
12087
+ msg.setModel(value);
12088
+ break;
12089
+ case 3:
12090
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
12091
+ msg.setInstruction(value);
12092
+ break;
12093
+ case 4:
12094
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
12095
+ msg.setNote(value);
12096
+ break;
12097
+ default:
12098
+ reader.skipField();
12099
+ break;
12100
+ }
12101
+ }
12102
+ return msg;
12103
+ };
12104
+
12105
+
12106
+ /**
12107
+ * Serializes the message to binary data (in protobuf wire format).
12108
+ * @return {!Uint8Array}
12109
+ */
12110
+ proto.gateway.web.v1.CreateAITaskRevisionRequest.prototype.serializeBinary = function() {
12111
+ var writer = new jspb.BinaryWriter();
12112
+ proto.gateway.web.v1.CreateAITaskRevisionRequest.serializeBinaryToWriter(this, writer);
12113
+ return writer.getResultBuffer();
12114
+ };
12115
+
12116
+
12117
+ /**
12118
+ * Serializes the given message to binary data (in protobuf wire
12119
+ * format), writing to the given BinaryWriter.
12120
+ * @param {!proto.gateway.web.v1.CreateAITaskRevisionRequest} message
12121
+ * @param {!jspb.BinaryWriter} writer
12122
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12123
+ */
12124
+ proto.gateway.web.v1.CreateAITaskRevisionRequest.serializeBinaryToWriter = function(message, writer) {
12125
+ var f = undefined;
12126
+ f = message.getTask();
12127
+ if (f !== 0.0) {
12128
+ writer.writeEnum(
12129
+ 1,
12130
+ f
12131
+ );
12132
+ }
12133
+ f = message.getModel();
12134
+ if (f.length > 0) {
12135
+ writer.writeString(
12136
+ 2,
12137
+ f
12138
+ );
12139
+ }
12140
+ f = message.getInstruction();
12141
+ if (f.length > 0) {
12142
+ writer.writeString(
12143
+ 3,
12144
+ f
12145
+ );
12146
+ }
12147
+ f = message.getNote();
12148
+ if (f.length > 0) {
12149
+ writer.writeString(
12150
+ 4,
12151
+ f
12152
+ );
12153
+ }
12154
+ };
12155
+
12156
+
12157
+ /**
12158
+ * optional AITask task = 1;
12159
+ * @return {!proto.gateway.web.v1.AITask}
12160
+ */
12161
+ proto.gateway.web.v1.CreateAITaskRevisionRequest.prototype.getTask = function() {
12162
+ return /** @type {!proto.gateway.web.v1.AITask} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
12163
+ };
12164
+
12165
+
12166
+ /**
12167
+ * @param {!proto.gateway.web.v1.AITask} value
12168
+ * @return {!proto.gateway.web.v1.CreateAITaskRevisionRequest} returns this
12169
+ */
12170
+ proto.gateway.web.v1.CreateAITaskRevisionRequest.prototype.setTask = function(value) {
12171
+ return jspb.Message.setProto3EnumField(this, 1, value);
12172
+ };
12173
+
12174
+
12175
+ /**
12176
+ * optional string model = 2;
12177
+ * @return {string}
12178
+ */
12179
+ proto.gateway.web.v1.CreateAITaskRevisionRequest.prototype.getModel = function() {
12180
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
12181
+ };
12182
+
12183
+
12184
+ /**
12185
+ * @param {string} value
12186
+ * @return {!proto.gateway.web.v1.CreateAITaskRevisionRequest} returns this
12187
+ */
12188
+ proto.gateway.web.v1.CreateAITaskRevisionRequest.prototype.setModel = function(value) {
12189
+ return jspb.Message.setProto3StringField(this, 2, value);
12190
+ };
12191
+
12192
+
12193
+ /**
12194
+ * optional string instruction = 3;
12195
+ * @return {string}
12196
+ */
12197
+ proto.gateway.web.v1.CreateAITaskRevisionRequest.prototype.getInstruction = function() {
12198
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
12199
+ };
12200
+
12201
+
12202
+ /**
12203
+ * @param {string} value
12204
+ * @return {!proto.gateway.web.v1.CreateAITaskRevisionRequest} returns this
12205
+ */
12206
+ proto.gateway.web.v1.CreateAITaskRevisionRequest.prototype.setInstruction = function(value) {
12207
+ return jspb.Message.setProto3StringField(this, 3, value);
12208
+ };
12209
+
12210
+
12211
+ /**
12212
+ * optional string note = 4;
12213
+ * @return {string}
12214
+ */
12215
+ proto.gateway.web.v1.CreateAITaskRevisionRequest.prototype.getNote = function() {
12216
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
12217
+ };
12218
+
12219
+
12220
+ /**
12221
+ * @param {string} value
12222
+ * @return {!proto.gateway.web.v1.CreateAITaskRevisionRequest} returns this
12223
+ */
12224
+ proto.gateway.web.v1.CreateAITaskRevisionRequest.prototype.setNote = function(value) {
12225
+ return jspb.Message.setProto3StringField(this, 4, value);
12226
+ };
12227
+
12228
+
12229
+
12230
+
12231
+
12232
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12233
+ /**
12234
+ * Creates an object representation of this proto.
12235
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
12236
+ * Optional fields that are not set will be set to undefined.
12237
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12238
+ * For the list of reserved names please see:
12239
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12240
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12241
+ * JSPB instance for transitional soy proto support:
12242
+ * http://goto/soy-param-migration
12243
+ * @return {!Object}
12244
+ */
12245
+ proto.gateway.web.v1.CreateAITaskRevisionResponse.prototype.toObject = function(opt_includeInstance) {
12246
+ return proto.gateway.web.v1.CreateAITaskRevisionResponse.toObject(opt_includeInstance, this);
12247
+ };
12248
+
12249
+
12250
+ /**
12251
+ * Static version of the {@see toObject} method.
12252
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12253
+ * the JSPB instance for transitional soy proto support:
12254
+ * http://goto/soy-param-migration
12255
+ * @param {!proto.gateway.web.v1.CreateAITaskRevisionResponse} msg The msg instance to transform.
12256
+ * @return {!Object}
12257
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12258
+ */
12259
+ proto.gateway.web.v1.CreateAITaskRevisionResponse.toObject = function(includeInstance, msg) {
12260
+ var f, obj = {
12261
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
12262
+ revision: (f = msg.getRevision()) && proto.gateway.web.v1.AITaskRevision.toObject(includeInstance, f)
12263
+ };
12264
+
12265
+ if (includeInstance) {
12266
+ obj.$jspbMessageInstance = msg;
12267
+ }
12268
+ return obj;
12269
+ };
12270
+ }
12271
+
12272
+
12273
+ /**
12274
+ * Deserializes binary data (in protobuf wire format).
12275
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
12276
+ * @return {!proto.gateway.web.v1.CreateAITaskRevisionResponse}
12277
+ */
12278
+ proto.gateway.web.v1.CreateAITaskRevisionResponse.deserializeBinary = function(bytes) {
12279
+ var reader = new jspb.BinaryReader(bytes);
12280
+ var msg = new proto.gateway.web.v1.CreateAITaskRevisionResponse;
12281
+ return proto.gateway.web.v1.CreateAITaskRevisionResponse.deserializeBinaryFromReader(msg, reader);
12282
+ };
12283
+
12284
+
12285
+ /**
12286
+ * Deserializes binary data (in protobuf wire format) from the
12287
+ * given reader into the given message object.
12288
+ * @param {!proto.gateway.web.v1.CreateAITaskRevisionResponse} msg The message object to deserialize into.
12289
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12290
+ * @return {!proto.gateway.web.v1.CreateAITaskRevisionResponse}
12291
+ */
12292
+ proto.gateway.web.v1.CreateAITaskRevisionResponse.deserializeBinaryFromReader = function(msg, reader) {
12293
+ while (reader.nextField()) {
12294
+ if (reader.isEndGroup()) {
12295
+ break;
12296
+ }
12297
+ var field = reader.getFieldNumber();
12298
+ switch (field) {
12299
+ case 1:
12300
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
12301
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
12302
+ msg.setStatus(value);
12303
+ break;
12304
+ case 2:
12305
+ var value = new proto.gateway.web.v1.AITaskRevision;
12306
+ reader.readMessage(value,proto.gateway.web.v1.AITaskRevision.deserializeBinaryFromReader);
12307
+ msg.setRevision(value);
12308
+ break;
12309
+ default:
12310
+ reader.skipField();
12311
+ break;
12312
+ }
12313
+ }
12314
+ return msg;
12315
+ };
12316
+
12317
+
12318
+ /**
12319
+ * Serializes the message to binary data (in protobuf wire format).
12320
+ * @return {!Uint8Array}
12321
+ */
12322
+ proto.gateway.web.v1.CreateAITaskRevisionResponse.prototype.serializeBinary = function() {
12323
+ var writer = new jspb.BinaryWriter();
12324
+ proto.gateway.web.v1.CreateAITaskRevisionResponse.serializeBinaryToWriter(this, writer);
12325
+ return writer.getResultBuffer();
12326
+ };
12327
+
12328
+
12329
+ /**
12330
+ * Serializes the given message to binary data (in protobuf wire
12331
+ * format), writing to the given BinaryWriter.
12332
+ * @param {!proto.gateway.web.v1.CreateAITaskRevisionResponse} message
12333
+ * @param {!jspb.BinaryWriter} writer
12334
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12335
+ */
12336
+ proto.gateway.web.v1.CreateAITaskRevisionResponse.serializeBinaryToWriter = function(message, writer) {
12337
+ var f = undefined;
12338
+ f = message.getStatus();
12339
+ if (f != null) {
12340
+ writer.writeMessage(
12341
+ 1,
12342
+ f,
12343
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
12344
+ );
12345
+ }
12346
+ f = message.getRevision();
12347
+ if (f != null) {
12348
+ writer.writeMessage(
12349
+ 2,
12350
+ f,
12351
+ proto.gateway.web.v1.AITaskRevision.serializeBinaryToWriter
12352
+ );
12353
+ }
12354
+ };
12355
+
12356
+
12357
+ /**
12358
+ * optional gateway.common.v1.ResponseStatus status = 1;
12359
+ * @return {?proto.gateway.common.v1.ResponseStatus}
12360
+ */
12361
+ proto.gateway.web.v1.CreateAITaskRevisionResponse.prototype.getStatus = function() {
12362
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
12363
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
12364
+ };
12365
+
12366
+
12367
+ /**
12368
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
12369
+ * @return {!proto.gateway.web.v1.CreateAITaskRevisionResponse} returns this
12370
+ */
12371
+ proto.gateway.web.v1.CreateAITaskRevisionResponse.prototype.setStatus = function(value) {
12372
+ return jspb.Message.setWrapperField(this, 1, value);
12373
+ };
12374
+
12375
+
12376
+ /**
12377
+ * Clears the message field making it undefined.
12378
+ * @return {!proto.gateway.web.v1.CreateAITaskRevisionResponse} returns this
12379
+ */
12380
+ proto.gateway.web.v1.CreateAITaskRevisionResponse.prototype.clearStatus = function() {
12381
+ return this.setStatus(undefined);
12382
+ };
12383
+
12384
+
12385
+ /**
12386
+ * Returns whether this field is set.
12387
+ * @return {boolean}
12388
+ */
12389
+ proto.gateway.web.v1.CreateAITaskRevisionResponse.prototype.hasStatus = function() {
12390
+ return jspb.Message.getField(this, 1) != null;
12391
+ };
12392
+
12393
+
12394
+ /**
12395
+ * optional AITaskRevision revision = 2;
12396
+ * @return {?proto.gateway.web.v1.AITaskRevision}
12397
+ */
12398
+ proto.gateway.web.v1.CreateAITaskRevisionResponse.prototype.getRevision = function() {
12399
+ return /** @type{?proto.gateway.web.v1.AITaskRevision} */ (
12400
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.AITaskRevision, 2));
12401
+ };
12402
+
12403
+
12404
+ /**
12405
+ * @param {?proto.gateway.web.v1.AITaskRevision|undefined} value
12406
+ * @return {!proto.gateway.web.v1.CreateAITaskRevisionResponse} returns this
12407
+ */
12408
+ proto.gateway.web.v1.CreateAITaskRevisionResponse.prototype.setRevision = function(value) {
12409
+ return jspb.Message.setWrapperField(this, 2, value);
12410
+ };
12411
+
12412
+
12413
+ /**
12414
+ * Clears the message field making it undefined.
12415
+ * @return {!proto.gateway.web.v1.CreateAITaskRevisionResponse} returns this
12416
+ */
12417
+ proto.gateway.web.v1.CreateAITaskRevisionResponse.prototype.clearRevision = function() {
12418
+ return this.setRevision(undefined);
12419
+ };
12420
+
12421
+
12422
+ /**
12423
+ * Returns whether this field is set.
12424
+ * @return {boolean}
12425
+ */
12426
+ proto.gateway.web.v1.CreateAITaskRevisionResponse.prototype.hasRevision = function() {
12427
+ return jspb.Message.getField(this, 2) != null;
12428
+ };
12429
+
12430
+
12431
+
12432
+
12433
+
12434
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12435
+ /**
12436
+ * Creates an object representation of this proto.
12437
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
12438
+ * Optional fields that are not set will be set to undefined.
12439
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12440
+ * For the list of reserved names please see:
12441
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12442
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12443
+ * JSPB instance for transitional soy proto support:
12444
+ * http://goto/soy-param-migration
12445
+ * @return {!Object}
12446
+ */
12447
+ proto.gateway.web.v1.ActivateAITaskRevisionRequest.prototype.toObject = function(opt_includeInstance) {
12448
+ return proto.gateway.web.v1.ActivateAITaskRevisionRequest.toObject(opt_includeInstance, this);
12449
+ };
12450
+
12451
+
12452
+ /**
12453
+ * Static version of the {@see toObject} method.
12454
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12455
+ * the JSPB instance for transitional soy proto support:
12456
+ * http://goto/soy-param-migration
12457
+ * @param {!proto.gateway.web.v1.ActivateAITaskRevisionRequest} msg The msg instance to transform.
12458
+ * @return {!Object}
12459
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12460
+ */
12461
+ proto.gateway.web.v1.ActivateAITaskRevisionRequest.toObject = function(includeInstance, msg) {
12462
+ var f, obj = {
12463
+ task: jspb.Message.getFieldWithDefault(msg, 1, 0),
12464
+ revisionId: jspb.Message.getFieldWithDefault(msg, 2, "")
12465
+ };
12466
+
12467
+ if (includeInstance) {
12468
+ obj.$jspbMessageInstance = msg;
12469
+ }
12470
+ return obj;
12471
+ };
12472
+ }
12473
+
12474
+
12475
+ /**
12476
+ * Deserializes binary data (in protobuf wire format).
12477
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
12478
+ * @return {!proto.gateway.web.v1.ActivateAITaskRevisionRequest}
12479
+ */
12480
+ proto.gateway.web.v1.ActivateAITaskRevisionRequest.deserializeBinary = function(bytes) {
12481
+ var reader = new jspb.BinaryReader(bytes);
12482
+ var msg = new proto.gateway.web.v1.ActivateAITaskRevisionRequest;
12483
+ return proto.gateway.web.v1.ActivateAITaskRevisionRequest.deserializeBinaryFromReader(msg, reader);
12484
+ };
12485
+
12486
+
12487
+ /**
12488
+ * Deserializes binary data (in protobuf wire format) from the
12489
+ * given reader into the given message object.
12490
+ * @param {!proto.gateway.web.v1.ActivateAITaskRevisionRequest} msg The message object to deserialize into.
12491
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12492
+ * @return {!proto.gateway.web.v1.ActivateAITaskRevisionRequest}
12493
+ */
12494
+ proto.gateway.web.v1.ActivateAITaskRevisionRequest.deserializeBinaryFromReader = function(msg, reader) {
12495
+ while (reader.nextField()) {
12496
+ if (reader.isEndGroup()) {
12497
+ break;
12498
+ }
12499
+ var field = reader.getFieldNumber();
12500
+ switch (field) {
12501
+ case 1:
12502
+ var value = /** @type {!proto.gateway.web.v1.AITask} */ (reader.readEnum());
12503
+ msg.setTask(value);
12504
+ break;
12505
+ case 2:
12506
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
12507
+ msg.setRevisionId(value);
12508
+ break;
12509
+ default:
12510
+ reader.skipField();
12511
+ break;
12512
+ }
12513
+ }
12514
+ return msg;
12515
+ };
12516
+
12517
+
12518
+ /**
12519
+ * Serializes the message to binary data (in protobuf wire format).
12520
+ * @return {!Uint8Array}
12521
+ */
12522
+ proto.gateway.web.v1.ActivateAITaskRevisionRequest.prototype.serializeBinary = function() {
12523
+ var writer = new jspb.BinaryWriter();
12524
+ proto.gateway.web.v1.ActivateAITaskRevisionRequest.serializeBinaryToWriter(this, writer);
12525
+ return writer.getResultBuffer();
12526
+ };
12527
+
12528
+
12529
+ /**
12530
+ * Serializes the given message to binary data (in protobuf wire
12531
+ * format), writing to the given BinaryWriter.
12532
+ * @param {!proto.gateway.web.v1.ActivateAITaskRevisionRequest} message
12533
+ * @param {!jspb.BinaryWriter} writer
12534
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12535
+ */
12536
+ proto.gateway.web.v1.ActivateAITaskRevisionRequest.serializeBinaryToWriter = function(message, writer) {
12537
+ var f = undefined;
12538
+ f = message.getTask();
12539
+ if (f !== 0.0) {
12540
+ writer.writeEnum(
12541
+ 1,
12542
+ f
12543
+ );
12544
+ }
12545
+ f = message.getRevisionId();
12546
+ if (f.length > 0) {
12547
+ writer.writeString(
12548
+ 2,
12549
+ f
12550
+ );
12551
+ }
12552
+ };
12553
+
12554
+
12555
+ /**
12556
+ * optional AITask task = 1;
12557
+ * @return {!proto.gateway.web.v1.AITask}
12558
+ */
12559
+ proto.gateway.web.v1.ActivateAITaskRevisionRequest.prototype.getTask = function() {
12560
+ return /** @type {!proto.gateway.web.v1.AITask} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
12561
+ };
12562
+
12563
+
12564
+ /**
12565
+ * @param {!proto.gateway.web.v1.AITask} value
12566
+ * @return {!proto.gateway.web.v1.ActivateAITaskRevisionRequest} returns this
12567
+ */
12568
+ proto.gateway.web.v1.ActivateAITaskRevisionRequest.prototype.setTask = function(value) {
12569
+ return jspb.Message.setProto3EnumField(this, 1, value);
12570
+ };
12571
+
12572
+
12573
+ /**
12574
+ * optional string revision_id = 2;
12575
+ * @return {string}
12576
+ */
12577
+ proto.gateway.web.v1.ActivateAITaskRevisionRequest.prototype.getRevisionId = function() {
12578
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
12579
+ };
12580
+
12581
+
12582
+ /**
12583
+ * @param {string} value
12584
+ * @return {!proto.gateway.web.v1.ActivateAITaskRevisionRequest} returns this
12585
+ */
12586
+ proto.gateway.web.v1.ActivateAITaskRevisionRequest.prototype.setRevisionId = function(value) {
12587
+ return jspb.Message.setProto3StringField(this, 2, value);
12588
+ };
12589
+
12590
+
12591
+
12592
+
12593
+
12594
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12595
+ /**
12596
+ * Creates an object representation of this proto.
12597
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
12598
+ * Optional fields that are not set will be set to undefined.
12599
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12600
+ * For the list of reserved names please see:
12601
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12602
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12603
+ * JSPB instance for transitional soy proto support:
12604
+ * http://goto/soy-param-migration
12605
+ * @return {!Object}
12606
+ */
12607
+ proto.gateway.web.v1.ActivateAITaskRevisionResponse.prototype.toObject = function(opt_includeInstance) {
12608
+ return proto.gateway.web.v1.ActivateAITaskRevisionResponse.toObject(opt_includeInstance, this);
12609
+ };
12610
+
12611
+
12612
+ /**
12613
+ * Static version of the {@see toObject} method.
12614
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12615
+ * the JSPB instance for transitional soy proto support:
12616
+ * http://goto/soy-param-migration
12617
+ * @param {!proto.gateway.web.v1.ActivateAITaskRevisionResponse} msg The msg instance to transform.
12618
+ * @return {!Object}
12619
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12620
+ */
12621
+ proto.gateway.web.v1.ActivateAITaskRevisionResponse.toObject = function(includeInstance, msg) {
12622
+ var f, obj = {
12623
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
12624
+ activation: (f = msg.getActivation()) && proto.gateway.web.v1.AITaskActivation.toObject(includeInstance, f)
12625
+ };
12626
+
12627
+ if (includeInstance) {
12628
+ obj.$jspbMessageInstance = msg;
12629
+ }
12630
+ return obj;
12631
+ };
12632
+ }
12633
+
12634
+
12635
+ /**
12636
+ * Deserializes binary data (in protobuf wire format).
12637
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
12638
+ * @return {!proto.gateway.web.v1.ActivateAITaskRevisionResponse}
12639
+ */
12640
+ proto.gateway.web.v1.ActivateAITaskRevisionResponse.deserializeBinary = function(bytes) {
12641
+ var reader = new jspb.BinaryReader(bytes);
12642
+ var msg = new proto.gateway.web.v1.ActivateAITaskRevisionResponse;
12643
+ return proto.gateway.web.v1.ActivateAITaskRevisionResponse.deserializeBinaryFromReader(msg, reader);
12644
+ };
12645
+
12646
+
12647
+ /**
12648
+ * Deserializes binary data (in protobuf wire format) from the
12649
+ * given reader into the given message object.
12650
+ * @param {!proto.gateway.web.v1.ActivateAITaskRevisionResponse} msg The message object to deserialize into.
12651
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12652
+ * @return {!proto.gateway.web.v1.ActivateAITaskRevisionResponse}
12653
+ */
12654
+ proto.gateway.web.v1.ActivateAITaskRevisionResponse.deserializeBinaryFromReader = function(msg, reader) {
12655
+ while (reader.nextField()) {
12656
+ if (reader.isEndGroup()) {
12657
+ break;
12658
+ }
12659
+ var field = reader.getFieldNumber();
12660
+ switch (field) {
12661
+ case 1:
12662
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
12663
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
12664
+ msg.setStatus(value);
12665
+ break;
12666
+ case 2:
12667
+ var value = new proto.gateway.web.v1.AITaskActivation;
12668
+ reader.readMessage(value,proto.gateway.web.v1.AITaskActivation.deserializeBinaryFromReader);
12669
+ msg.setActivation(value);
12670
+ break;
12671
+ default:
12672
+ reader.skipField();
12673
+ break;
12674
+ }
12675
+ }
12676
+ return msg;
12677
+ };
12678
+
12679
+
12680
+ /**
12681
+ * Serializes the message to binary data (in protobuf wire format).
12682
+ * @return {!Uint8Array}
12683
+ */
12684
+ proto.gateway.web.v1.ActivateAITaskRevisionResponse.prototype.serializeBinary = function() {
12685
+ var writer = new jspb.BinaryWriter();
12686
+ proto.gateway.web.v1.ActivateAITaskRevisionResponse.serializeBinaryToWriter(this, writer);
12687
+ return writer.getResultBuffer();
12688
+ };
12689
+
12690
+
12691
+ /**
12692
+ * Serializes the given message to binary data (in protobuf wire
12693
+ * format), writing to the given BinaryWriter.
12694
+ * @param {!proto.gateway.web.v1.ActivateAITaskRevisionResponse} message
12695
+ * @param {!jspb.BinaryWriter} writer
12696
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12697
+ */
12698
+ proto.gateway.web.v1.ActivateAITaskRevisionResponse.serializeBinaryToWriter = function(message, writer) {
12699
+ var f = undefined;
12700
+ f = message.getStatus();
12701
+ if (f != null) {
12702
+ writer.writeMessage(
12703
+ 1,
12704
+ f,
12705
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
12706
+ );
12707
+ }
12708
+ f = message.getActivation();
12709
+ if (f != null) {
12710
+ writer.writeMessage(
12711
+ 2,
12712
+ f,
12713
+ proto.gateway.web.v1.AITaskActivation.serializeBinaryToWriter
12714
+ );
12715
+ }
12716
+ };
12717
+
12718
+
12719
+ /**
12720
+ * optional gateway.common.v1.ResponseStatus status = 1;
12721
+ * @return {?proto.gateway.common.v1.ResponseStatus}
12722
+ */
12723
+ proto.gateway.web.v1.ActivateAITaskRevisionResponse.prototype.getStatus = function() {
12724
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
12725
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
12726
+ };
12727
+
12728
+
12729
+ /**
12730
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
12731
+ * @return {!proto.gateway.web.v1.ActivateAITaskRevisionResponse} returns this
12732
+ */
12733
+ proto.gateway.web.v1.ActivateAITaskRevisionResponse.prototype.setStatus = function(value) {
12734
+ return jspb.Message.setWrapperField(this, 1, value);
12735
+ };
12736
+
12737
+
12738
+ /**
12739
+ * Clears the message field making it undefined.
12740
+ * @return {!proto.gateway.web.v1.ActivateAITaskRevisionResponse} returns this
12741
+ */
12742
+ proto.gateway.web.v1.ActivateAITaskRevisionResponse.prototype.clearStatus = function() {
12743
+ return this.setStatus(undefined);
12744
+ };
12745
+
12746
+
12747
+ /**
12748
+ * Returns whether this field is set.
12749
+ * @return {boolean}
12750
+ */
12751
+ proto.gateway.web.v1.ActivateAITaskRevisionResponse.prototype.hasStatus = function() {
12752
+ return jspb.Message.getField(this, 1) != null;
12753
+ };
12754
+
12755
+
12756
+ /**
12757
+ * optional AITaskActivation activation = 2;
12758
+ * @return {?proto.gateway.web.v1.AITaskActivation}
12759
+ */
12760
+ proto.gateway.web.v1.ActivateAITaskRevisionResponse.prototype.getActivation = function() {
12761
+ return /** @type{?proto.gateway.web.v1.AITaskActivation} */ (
12762
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.AITaskActivation, 2));
12763
+ };
12764
+
12765
+
12766
+ /**
12767
+ * @param {?proto.gateway.web.v1.AITaskActivation|undefined} value
12768
+ * @return {!proto.gateway.web.v1.ActivateAITaskRevisionResponse} returns this
12769
+ */
12770
+ proto.gateway.web.v1.ActivateAITaskRevisionResponse.prototype.setActivation = function(value) {
12771
+ return jspb.Message.setWrapperField(this, 2, value);
12772
+ };
12773
+
12774
+
12775
+ /**
12776
+ * Clears the message field making it undefined.
12777
+ * @return {!proto.gateway.web.v1.ActivateAITaskRevisionResponse} returns this
12778
+ */
12779
+ proto.gateway.web.v1.ActivateAITaskRevisionResponse.prototype.clearActivation = function() {
12780
+ return this.setActivation(undefined);
12781
+ };
12782
+
12783
+
12784
+ /**
12785
+ * Returns whether this field is set.
12786
+ * @return {boolean}
12787
+ */
12788
+ proto.gateway.web.v1.ActivateAITaskRevisionResponse.prototype.hasActivation = function() {
12789
+ return jspb.Message.getField(this, 2) != null;
12790
+ };
12791
+
12792
+
12793
+
12794
+
12795
+
12796
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12797
+ /**
12798
+ * Creates an object representation of this proto.
12799
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
12800
+ * Optional fields that are not set will be set to undefined.
12801
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12802
+ * For the list of reserved names please see:
12803
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12804
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12805
+ * JSPB instance for transitional soy proto support:
12806
+ * http://goto/soy-param-migration
12807
+ * @return {!Object}
12808
+ */
12809
+ proto.gateway.web.v1.DeactivateAITaskRevisionRequest.prototype.toObject = function(opt_includeInstance) {
12810
+ return proto.gateway.web.v1.DeactivateAITaskRevisionRequest.toObject(opt_includeInstance, this);
12811
+ };
12812
+
12813
+
12814
+ /**
12815
+ * Static version of the {@see toObject} method.
12816
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12817
+ * the JSPB instance for transitional soy proto support:
12818
+ * http://goto/soy-param-migration
12819
+ * @param {!proto.gateway.web.v1.DeactivateAITaskRevisionRequest} msg The msg instance to transform.
12820
+ * @return {!Object}
12821
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12822
+ */
12823
+ proto.gateway.web.v1.DeactivateAITaskRevisionRequest.toObject = function(includeInstance, msg) {
12824
+ var f, obj = {
12825
+ task: jspb.Message.getFieldWithDefault(msg, 1, 0)
12826
+ };
12827
+
12828
+ if (includeInstance) {
12829
+ obj.$jspbMessageInstance = msg;
12830
+ }
12831
+ return obj;
12832
+ };
12833
+ }
12834
+
12835
+
12836
+ /**
12837
+ * Deserializes binary data (in protobuf wire format).
12838
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
12839
+ * @return {!proto.gateway.web.v1.DeactivateAITaskRevisionRequest}
12840
+ */
12841
+ proto.gateway.web.v1.DeactivateAITaskRevisionRequest.deserializeBinary = function(bytes) {
12842
+ var reader = new jspb.BinaryReader(bytes);
12843
+ var msg = new proto.gateway.web.v1.DeactivateAITaskRevisionRequest;
12844
+ return proto.gateway.web.v1.DeactivateAITaskRevisionRequest.deserializeBinaryFromReader(msg, reader);
12845
+ };
12846
+
12847
+
12848
+ /**
12849
+ * Deserializes binary data (in protobuf wire format) from the
12850
+ * given reader into the given message object.
12851
+ * @param {!proto.gateway.web.v1.DeactivateAITaskRevisionRequest} msg The message object to deserialize into.
12852
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12853
+ * @return {!proto.gateway.web.v1.DeactivateAITaskRevisionRequest}
12854
+ */
12855
+ proto.gateway.web.v1.DeactivateAITaskRevisionRequest.deserializeBinaryFromReader = function(msg, reader) {
12856
+ while (reader.nextField()) {
12857
+ if (reader.isEndGroup()) {
12858
+ break;
12859
+ }
12860
+ var field = reader.getFieldNumber();
12861
+ switch (field) {
12862
+ case 1:
12863
+ var value = /** @type {!proto.gateway.web.v1.AITask} */ (reader.readEnum());
12864
+ msg.setTask(value);
12865
+ break;
12866
+ default:
12867
+ reader.skipField();
12868
+ break;
12869
+ }
12870
+ }
12871
+ return msg;
12872
+ };
12873
+
12874
+
12875
+ /**
12876
+ * Serializes the message to binary data (in protobuf wire format).
12877
+ * @return {!Uint8Array}
12878
+ */
12879
+ proto.gateway.web.v1.DeactivateAITaskRevisionRequest.prototype.serializeBinary = function() {
12880
+ var writer = new jspb.BinaryWriter();
12881
+ proto.gateway.web.v1.DeactivateAITaskRevisionRequest.serializeBinaryToWriter(this, writer);
12882
+ return writer.getResultBuffer();
12883
+ };
12884
+
12885
+
12886
+ /**
12887
+ * Serializes the given message to binary data (in protobuf wire
12888
+ * format), writing to the given BinaryWriter.
12889
+ * @param {!proto.gateway.web.v1.DeactivateAITaskRevisionRequest} message
12890
+ * @param {!jspb.BinaryWriter} writer
12891
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12892
+ */
12893
+ proto.gateway.web.v1.DeactivateAITaskRevisionRequest.serializeBinaryToWriter = function(message, writer) {
12894
+ var f = undefined;
12895
+ f = message.getTask();
12896
+ if (f !== 0.0) {
12897
+ writer.writeEnum(
12898
+ 1,
12899
+ f
12900
+ );
12901
+ }
12902
+ };
12903
+
12904
+
12905
+ /**
12906
+ * optional AITask task = 1;
12907
+ * @return {!proto.gateway.web.v1.AITask}
12908
+ */
12909
+ proto.gateway.web.v1.DeactivateAITaskRevisionRequest.prototype.getTask = function() {
12910
+ return /** @type {!proto.gateway.web.v1.AITask} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
12911
+ };
12912
+
12913
+
12914
+ /**
12915
+ * @param {!proto.gateway.web.v1.AITask} value
12916
+ * @return {!proto.gateway.web.v1.DeactivateAITaskRevisionRequest} returns this
12917
+ */
12918
+ proto.gateway.web.v1.DeactivateAITaskRevisionRequest.prototype.setTask = function(value) {
12919
+ return jspb.Message.setProto3EnumField(this, 1, value);
12920
+ };
12921
+
12922
+
12923
+
12924
+
12925
+
12926
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12927
+ /**
12928
+ * Creates an object representation of this proto.
12929
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
12930
+ * Optional fields that are not set will be set to undefined.
12931
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12932
+ * For the list of reserved names please see:
12933
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12934
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12935
+ * JSPB instance for transitional soy proto support:
12936
+ * http://goto/soy-param-migration
12937
+ * @return {!Object}
12938
+ */
12939
+ proto.gateway.web.v1.DeactivateAITaskRevisionResponse.prototype.toObject = function(opt_includeInstance) {
12940
+ return proto.gateway.web.v1.DeactivateAITaskRevisionResponse.toObject(opt_includeInstance, this);
12941
+ };
12942
+
12943
+
12944
+ /**
12945
+ * Static version of the {@see toObject} method.
12946
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12947
+ * the JSPB instance for transitional soy proto support:
12948
+ * http://goto/soy-param-migration
12949
+ * @param {!proto.gateway.web.v1.DeactivateAITaskRevisionResponse} msg The msg instance to transform.
12950
+ * @return {!Object}
12951
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12952
+ */
12953
+ proto.gateway.web.v1.DeactivateAITaskRevisionResponse.toObject = function(includeInstance, msg) {
12954
+ var f, obj = {
12955
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f)
12956
+ };
12957
+
12958
+ if (includeInstance) {
12959
+ obj.$jspbMessageInstance = msg;
12960
+ }
12961
+ return obj;
12962
+ };
12963
+ }
12964
+
12965
+
12966
+ /**
12967
+ * Deserializes binary data (in protobuf wire format).
12968
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
12969
+ * @return {!proto.gateway.web.v1.DeactivateAITaskRevisionResponse}
12970
+ */
12971
+ proto.gateway.web.v1.DeactivateAITaskRevisionResponse.deserializeBinary = function(bytes) {
12972
+ var reader = new jspb.BinaryReader(bytes);
12973
+ var msg = new proto.gateway.web.v1.DeactivateAITaskRevisionResponse;
12974
+ return proto.gateway.web.v1.DeactivateAITaskRevisionResponse.deserializeBinaryFromReader(msg, reader);
12975
+ };
12976
+
12977
+
12978
+ /**
12979
+ * Deserializes binary data (in protobuf wire format) from the
12980
+ * given reader into the given message object.
12981
+ * @param {!proto.gateway.web.v1.DeactivateAITaskRevisionResponse} msg The message object to deserialize into.
12982
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12983
+ * @return {!proto.gateway.web.v1.DeactivateAITaskRevisionResponse}
12984
+ */
12985
+ proto.gateway.web.v1.DeactivateAITaskRevisionResponse.deserializeBinaryFromReader = function(msg, reader) {
12986
+ while (reader.nextField()) {
12987
+ if (reader.isEndGroup()) {
12988
+ break;
12989
+ }
12990
+ var field = reader.getFieldNumber();
12991
+ switch (field) {
12992
+ case 1:
12993
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
12994
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
12995
+ msg.setStatus(value);
12996
+ break;
12997
+ default:
12998
+ reader.skipField();
12999
+ break;
13000
+ }
13001
+ }
13002
+ return msg;
13003
+ };
13004
+
13005
+
13006
+ /**
13007
+ * Serializes the message to binary data (in protobuf wire format).
13008
+ * @return {!Uint8Array}
13009
+ */
13010
+ proto.gateway.web.v1.DeactivateAITaskRevisionResponse.prototype.serializeBinary = function() {
13011
+ var writer = new jspb.BinaryWriter();
13012
+ proto.gateway.web.v1.DeactivateAITaskRevisionResponse.serializeBinaryToWriter(this, writer);
13013
+ return writer.getResultBuffer();
13014
+ };
13015
+
13016
+
13017
+ /**
13018
+ * Serializes the given message to binary data (in protobuf wire
13019
+ * format), writing to the given BinaryWriter.
13020
+ * @param {!proto.gateway.web.v1.DeactivateAITaskRevisionResponse} message
13021
+ * @param {!jspb.BinaryWriter} writer
13022
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13023
+ */
13024
+ proto.gateway.web.v1.DeactivateAITaskRevisionResponse.serializeBinaryToWriter = function(message, writer) {
13025
+ var f = undefined;
13026
+ f = message.getStatus();
13027
+ if (f != null) {
13028
+ writer.writeMessage(
13029
+ 1,
13030
+ f,
13031
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
13032
+ );
13033
+ }
13034
+ };
13035
+
13036
+
13037
+ /**
13038
+ * optional gateway.common.v1.ResponseStatus status = 1;
13039
+ * @return {?proto.gateway.common.v1.ResponseStatus}
13040
+ */
13041
+ proto.gateway.web.v1.DeactivateAITaskRevisionResponse.prototype.getStatus = function() {
13042
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
13043
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
13044
+ };
13045
+
13046
+
13047
+ /**
13048
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
13049
+ * @return {!proto.gateway.web.v1.DeactivateAITaskRevisionResponse} returns this
13050
+ */
13051
+ proto.gateway.web.v1.DeactivateAITaskRevisionResponse.prototype.setStatus = function(value) {
13052
+ return jspb.Message.setWrapperField(this, 1, value);
13053
+ };
13054
+
13055
+
13056
+ /**
13057
+ * Clears the message field making it undefined.
13058
+ * @return {!proto.gateway.web.v1.DeactivateAITaskRevisionResponse} returns this
13059
+ */
13060
+ proto.gateway.web.v1.DeactivateAITaskRevisionResponse.prototype.clearStatus = function() {
13061
+ return this.setStatus(undefined);
13062
+ };
13063
+
13064
+
13065
+ /**
13066
+ * Returns whether this field is set.
13067
+ * @return {boolean}
13068
+ */
13069
+ proto.gateway.web.v1.DeactivateAITaskRevisionResponse.prototype.hasStatus = function() {
13070
+ return jspb.Message.getField(this, 1) != null;
13071
+ };
13072
+
13073
+
13074
+ /**
13075
+ * @enum {number}
13076
+ */
13077
+ proto.gateway.web.v1.AdminUsageDimension = {
13078
+ ADMIN_USAGE_DIMENSION_UNSPECIFIED: 0,
13079
+ ADMIN_USAGE_DIMENSION_ORGANIZATION: 1,
13080
+ ADMIN_USAGE_DIMENSION_PRINCIPAL: 2,
13081
+ ADMIN_USAGE_DIMENSION_SOURCE: 3,
13082
+ ADMIN_USAGE_DIMENSION_MODEL: 4,
13083
+ ADMIN_USAGE_DIMENSION_DAY: 5
13084
+ };
13085
+
13086
+ /**
13087
+ * @enum {number}
10069
13088
  */
10070
13089
  proto.gateway.web.v1.AdminUsageGroupSort = {
10071
13090
  ADMIN_USAGE_GROUP_SORT_UNSPECIFIED: 0,
@@ -10075,4 +13094,13 @@ proto.gateway.web.v1.AdminUsageGroupSort = {
10075
13094
  ADMIN_USAGE_GROUP_SORT_GROUP_ASC: 4
10076
13095
  };
10077
13096
 
13097
+ /**
13098
+ * @enum {number}
13099
+ */
13100
+ proto.gateway.web.v1.AITask = {
13101
+ AI_TASK_UNSPECIFIED: 0,
13102
+ AI_TASK_SESSION_INSIGHT: 1,
13103
+ AI_TASK_PROJECT_INSIGHT: 2
13104
+ };
13105
+
10078
13106
  goog.object.extend(exports, proto.gateway.web.v1);