@miradorlabs/web-grpc 3.23.0 → 3.25.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.
@@ -30,11 +30,16 @@ goog.object.extend(proto, proto_gateway_web_v1_trace_gateway_pb);
30
30
  goog.exportSymbol('proto.gateway.web.v1.AIContentPart', null, global);
31
31
  goog.exportSymbol('proto.gateway.web.v1.AIEntitlementRole', null, global);
32
32
  goog.exportSymbol('proto.gateway.web.v1.AIFacilityCostBreakdown', null, global);
33
+ goog.exportSymbol('proto.gateway.web.v1.AIFileBranchRef', null, global);
33
34
  goog.exportSymbol('proto.gateway.web.v1.AIFileConfidence', null, global);
35
+ goog.exportSymbol('proto.gateway.web.v1.AIFileDirectory', null, global);
36
+ goog.exportSymbol('proto.gateway.web.v1.AIFileDirectoryRef', null, global);
34
37
  goog.exportSymbol('proto.gateway.web.v1.AIFileFilter', null, global);
35
38
  goog.exportSymbol('proto.gateway.web.v1.AIFileGroupBy', null, global);
36
39
  goog.exportSymbol('proto.gateway.web.v1.AIFileLifecycle', null, global);
37
40
  goog.exportSymbol('proto.gateway.web.v1.AIFileRow', null, global);
41
+ goog.exportSymbol('proto.gateway.web.v1.AIFileSort', null, global);
42
+ goog.exportSymbol('proto.gateway.web.v1.AIFileStateCount', null, global);
38
43
  goog.exportSymbol('proto.gateway.web.v1.AIFileTier', null, global);
39
44
  goog.exportSymbol('proto.gateway.web.v1.AIFundingMode', null, global);
40
45
  goog.exportSymbol('proto.gateway.web.v1.AIGitAction', null, global);
@@ -85,6 +90,8 @@ goog.exportSymbol('proto.gateway.web.v1.GitActivitySummary', null, global);
85
90
  goog.exportSymbol('proto.gateway.web.v1.GitActivitySummaryBucket', null, global);
86
91
  goog.exportSymbol('proto.gateway.web.v1.GitActivitySummaryGroup', null, global);
87
92
  goog.exportSymbol('proto.gateway.web.v1.GitActivitySummaryRequest', null, global);
93
+ goog.exportSymbol('proto.gateway.web.v1.ListFileDirectoriesRequest', null, global);
94
+ goog.exportSymbol('proto.gateway.web.v1.ListFileDirectoriesResponse', null, global);
88
95
  goog.exportSymbol('proto.gateway.web.v1.ListFilesRequest', null, global);
89
96
  goog.exportSymbol('proto.gateway.web.v1.ListFilesResponse', null, global);
90
97
  goog.exportSymbol('proto.gateway.web.v1.ListGitActivitiesRequest', null, global);
@@ -1844,6 +1851,48 @@ if (goog.DEBUG && !COMPILED) {
1844
1851
  */
1845
1852
  proto.gateway.web.v1.AIFileFilter.displayName = 'proto.gateway.web.v1.AIFileFilter';
1846
1853
  }
1854
+ /**
1855
+ * Generated by JsPbCodeGenerator.
1856
+ * @param {Array=} opt_data Optional initial data array, typically from a
1857
+ * server response, or constructed directly in Javascript. The array is used
1858
+ * in place and becomes part of the constructed object. It is not cloned.
1859
+ * If no data is provided, the constructed object will be empty, but still
1860
+ * valid.
1861
+ * @extends {jspb.Message}
1862
+ * @constructor
1863
+ */
1864
+ proto.gateway.web.v1.AIFileDirectoryRef = function(opt_data) {
1865
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1866
+ };
1867
+ goog.inherits(proto.gateway.web.v1.AIFileDirectoryRef, jspb.Message);
1868
+ if (goog.DEBUG && !COMPILED) {
1869
+ /**
1870
+ * @public
1871
+ * @override
1872
+ */
1873
+ proto.gateway.web.v1.AIFileDirectoryRef.displayName = 'proto.gateway.web.v1.AIFileDirectoryRef';
1874
+ }
1875
+ /**
1876
+ * Generated by JsPbCodeGenerator.
1877
+ * @param {Array=} opt_data Optional initial data array, typically from a
1878
+ * server response, or constructed directly in Javascript. The array is used
1879
+ * in place and becomes part of the constructed object. It is not cloned.
1880
+ * If no data is provided, the constructed object will be empty, but still
1881
+ * valid.
1882
+ * @extends {jspb.Message}
1883
+ * @constructor
1884
+ */
1885
+ proto.gateway.web.v1.AIFileBranchRef = function(opt_data) {
1886
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1887
+ };
1888
+ goog.inherits(proto.gateway.web.v1.AIFileBranchRef, jspb.Message);
1889
+ if (goog.DEBUG && !COMPILED) {
1890
+ /**
1891
+ * @public
1892
+ * @override
1893
+ */
1894
+ proto.gateway.web.v1.AIFileBranchRef.displayName = 'proto.gateway.web.v1.AIFileBranchRef';
1895
+ }
1847
1896
  /**
1848
1897
  * Generated by JsPbCodeGenerator.
1849
1898
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1907,6 +1956,90 @@ if (goog.DEBUG && !COMPILED) {
1907
1956
  */
1908
1957
  proto.gateway.web.v1.AIFileRow.displayName = 'proto.gateway.web.v1.AIFileRow';
1909
1958
  }
1959
+ /**
1960
+ * Generated by JsPbCodeGenerator.
1961
+ * @param {Array=} opt_data Optional initial data array, typically from a
1962
+ * server response, or constructed directly in Javascript. The array is used
1963
+ * in place and becomes part of the constructed object. It is not cloned.
1964
+ * If no data is provided, the constructed object will be empty, but still
1965
+ * valid.
1966
+ * @extends {jspb.Message}
1967
+ * @constructor
1968
+ */
1969
+ proto.gateway.web.v1.ListFileDirectoriesRequest = function(opt_data) {
1970
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1971
+ };
1972
+ goog.inherits(proto.gateway.web.v1.ListFileDirectoriesRequest, jspb.Message);
1973
+ if (goog.DEBUG && !COMPILED) {
1974
+ /**
1975
+ * @public
1976
+ * @override
1977
+ */
1978
+ proto.gateway.web.v1.ListFileDirectoriesRequest.displayName = 'proto.gateway.web.v1.ListFileDirectoriesRequest';
1979
+ }
1980
+ /**
1981
+ * Generated by JsPbCodeGenerator.
1982
+ * @param {Array=} opt_data Optional initial data array, typically from a
1983
+ * server response, or constructed directly in Javascript. The array is used
1984
+ * in place and becomes part of the constructed object. It is not cloned.
1985
+ * If no data is provided, the constructed object will be empty, but still
1986
+ * valid.
1987
+ * @extends {jspb.Message}
1988
+ * @constructor
1989
+ */
1990
+ proto.gateway.web.v1.ListFileDirectoriesResponse = function(opt_data) {
1991
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ListFileDirectoriesResponse.repeatedFields_, null);
1992
+ };
1993
+ goog.inherits(proto.gateway.web.v1.ListFileDirectoriesResponse, jspb.Message);
1994
+ if (goog.DEBUG && !COMPILED) {
1995
+ /**
1996
+ * @public
1997
+ * @override
1998
+ */
1999
+ proto.gateway.web.v1.ListFileDirectoriesResponse.displayName = 'proto.gateway.web.v1.ListFileDirectoriesResponse';
2000
+ }
2001
+ /**
2002
+ * Generated by JsPbCodeGenerator.
2003
+ * @param {Array=} opt_data Optional initial data array, typically from a
2004
+ * server response, or constructed directly in Javascript. The array is used
2005
+ * in place and becomes part of the constructed object. It is not cloned.
2006
+ * If no data is provided, the constructed object will be empty, but still
2007
+ * valid.
2008
+ * @extends {jspb.Message}
2009
+ * @constructor
2010
+ */
2011
+ proto.gateway.web.v1.AIFileDirectory = function(opt_data) {
2012
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.AIFileDirectory.repeatedFields_, null);
2013
+ };
2014
+ goog.inherits(proto.gateway.web.v1.AIFileDirectory, jspb.Message);
2015
+ if (goog.DEBUG && !COMPILED) {
2016
+ /**
2017
+ * @public
2018
+ * @override
2019
+ */
2020
+ proto.gateway.web.v1.AIFileDirectory.displayName = 'proto.gateway.web.v1.AIFileDirectory';
2021
+ }
2022
+ /**
2023
+ * Generated by JsPbCodeGenerator.
2024
+ * @param {Array=} opt_data Optional initial data array, typically from a
2025
+ * server response, or constructed directly in Javascript. The array is used
2026
+ * in place and becomes part of the constructed object. It is not cloned.
2027
+ * If no data is provided, the constructed object will be empty, but still
2028
+ * valid.
2029
+ * @extends {jspb.Message}
2030
+ * @constructor
2031
+ */
2032
+ proto.gateway.web.v1.AIFileStateCount = function(opt_data) {
2033
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2034
+ };
2035
+ goog.inherits(proto.gateway.web.v1.AIFileStateCount, jspb.Message);
2036
+ if (goog.DEBUG && !COMPILED) {
2037
+ /**
2038
+ * @public
2039
+ * @override
2040
+ */
2041
+ proto.gateway.web.v1.AIFileStateCount.displayName = 'proto.gateway.web.v1.AIFileStateCount';
2042
+ }
1910
2043
  /**
1911
2044
  * Generated by JsPbCodeGenerator.
1912
2045
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -12237,7 +12370,8 @@ proto.gateway.web.v1.StreamGitActivitiesRequest.toObject = function(includeInsta
12237
12370
  var f, obj = {
12238
12371
  organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
12239
12372
  projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
12240
- filter: (f = msg.getFilter()) && proto.gateway.web.v1.AIGitActivityFilter.toObject(includeInstance, f)
12373
+ filter: (f = msg.getFilter()) && proto.gateway.web.v1.AIGitActivityFilter.toObject(includeInstance, f),
12374
+ pageSize: jspb.Message.getFieldWithDefault(msg, 4, 0)
12241
12375
  };
12242
12376
 
12243
12377
  if (includeInstance) {
@@ -12287,6 +12421,10 @@ proto.gateway.web.v1.StreamGitActivitiesRequest.deserializeBinaryFromReader = fu
12287
12421
  reader.readMessage(value,proto.gateway.web.v1.AIGitActivityFilter.deserializeBinaryFromReader);
12288
12422
  msg.setFilter(value);
12289
12423
  break;
12424
+ case 4:
12425
+ var value = /** @type {number} */ (reader.readInt32());
12426
+ msg.setPageSize(value);
12427
+ break;
12290
12428
  default:
12291
12429
  reader.skipField();
12292
12430
  break;
@@ -12338,6 +12476,13 @@ proto.gateway.web.v1.StreamGitActivitiesRequest.serializeBinaryToWriter = functi
12338
12476
  proto.gateway.web.v1.AIGitActivityFilter.serializeBinaryToWriter
12339
12477
  );
12340
12478
  }
12479
+ f = message.getPageSize();
12480
+ if (f !== 0) {
12481
+ writer.writeInt32(
12482
+ 4,
12483
+ f
12484
+ );
12485
+ }
12341
12486
  };
12342
12487
 
12343
12488
 
@@ -12414,6 +12559,24 @@ proto.gateway.web.v1.StreamGitActivitiesRequest.prototype.hasFilter = function()
12414
12559
  };
12415
12560
 
12416
12561
 
12562
+ /**
12563
+ * optional int32 page_size = 4;
12564
+ * @return {number}
12565
+ */
12566
+ proto.gateway.web.v1.StreamGitActivitiesRequest.prototype.getPageSize = function() {
12567
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
12568
+ };
12569
+
12570
+
12571
+ /**
12572
+ * @param {number} value
12573
+ * @return {!proto.gateway.web.v1.StreamGitActivitiesRequest} returns this
12574
+ */
12575
+ proto.gateway.web.v1.StreamGitActivitiesRequest.prototype.setPageSize = function(value) {
12576
+ return jspb.Message.setProto3IntField(this, 4, value);
12577
+ };
12578
+
12579
+
12417
12580
 
12418
12581
  /**
12419
12582
  * Oneof group definitions for this message. Each group defines the field
@@ -28662,7 +28825,7 @@ proto.gateway.web.v1.AISessionRef.prototype.setSessionId = function(value) {
28662
28825
  * @private {!Array<number>}
28663
28826
  * @const
28664
28827
  */
28665
- proto.gateway.web.v1.AIFileFilter.repeatedFields_ = [1,2,3,4,5];
28828
+ proto.gateway.web.v1.AIFileFilter.repeatedFields_ = [1,2,3,4,5,10,11,12];
28666
28829
 
28667
28830
 
28668
28831
 
@@ -28704,7 +28867,12 @@ sessionsList: jspb.Message.toObjectList(msg.getSessionsList(),
28704
28867
  minAge: (f = msg.getMinAge()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f),
28705
28868
  activeAfter: (f = msg.getActiveAfter()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
28706
28869
  activeBefore: (f = msg.getActiveBefore()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
28707
- abandonedHorizon: (f = msg.getAbandonedHorizon()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f)
28870
+ abandonedHorizon: (f = msg.getAbandonedHorizon()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f),
28871
+ pathsList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f,
28872
+ directoriesList: jspb.Message.toObjectList(msg.getDirectoriesList(),
28873
+ proto.gateway.web.v1.AIFileDirectoryRef.toObject, includeInstance),
28874
+ branchesList: jspb.Message.toObjectList(msg.getBranchesList(),
28875
+ proto.gateway.web.v1.AIFileBranchRef.toObject, includeInstance)
28708
28876
  };
28709
28877
 
28710
28878
  if (includeInstance) {
@@ -28780,6 +28948,20 @@ proto.gateway.web.v1.AIFileFilter.deserializeBinaryFromReader = function(msg, re
28780
28948
  reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
28781
28949
  msg.setAbandonedHorizon(value);
28782
28950
  break;
28951
+ case 10:
28952
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
28953
+ msg.addPaths(value);
28954
+ break;
28955
+ case 11:
28956
+ var value = new proto.gateway.web.v1.AIFileDirectoryRef;
28957
+ reader.readMessage(value,proto.gateway.web.v1.AIFileDirectoryRef.deserializeBinaryFromReader);
28958
+ msg.addDirectories(value);
28959
+ break;
28960
+ case 12:
28961
+ var value = new proto.gateway.web.v1.AIFileBranchRef;
28962
+ reader.readMessage(value,proto.gateway.web.v1.AIFileBranchRef.deserializeBinaryFromReader);
28963
+ msg.addBranches(value);
28964
+ break;
28783
28965
  default:
28784
28966
  reader.skipField();
28785
28967
  break;
@@ -28877,6 +29059,29 @@ proto.gateway.web.v1.AIFileFilter.serializeBinaryToWriter = function(message, wr
28877
29059
  google_protobuf_duration_pb.Duration.serializeBinaryToWriter
28878
29060
  );
28879
29061
  }
29062
+ f = message.getPathsList();
29063
+ if (f.length > 0) {
29064
+ writer.writeRepeatedString(
29065
+ 10,
29066
+ f
29067
+ );
29068
+ }
29069
+ f = message.getDirectoriesList();
29070
+ if (f.length > 0) {
29071
+ writer.writeRepeatedMessage(
29072
+ 11,
29073
+ f,
29074
+ proto.gateway.web.v1.AIFileDirectoryRef.serializeBinaryToWriter
29075
+ );
29076
+ }
29077
+ f = message.getBranchesList();
29078
+ if (f.length > 0) {
29079
+ writer.writeRepeatedMessage(
29080
+ 12,
29081
+ f,
29082
+ proto.gateway.web.v1.AIFileBranchRef.serializeBinaryToWriter
29083
+ );
29084
+ }
28880
29085
  };
28881
29086
 
28882
29087
 
@@ -29214,6 +29419,439 @@ proto.gateway.web.v1.AIFileFilter.prototype.hasAbandonedHorizon = function() {
29214
29419
  };
29215
29420
 
29216
29421
 
29422
+ /**
29423
+ * repeated string paths = 10;
29424
+ * @return {!Array<string>}
29425
+ */
29426
+ proto.gateway.web.v1.AIFileFilter.prototype.getPathsList = function() {
29427
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 10));
29428
+ };
29429
+
29430
+
29431
+ /**
29432
+ * @param {!Array<string>} value
29433
+ * @return {!proto.gateway.web.v1.AIFileFilter} returns this
29434
+ */
29435
+ proto.gateway.web.v1.AIFileFilter.prototype.setPathsList = function(value) {
29436
+ return jspb.Message.setField(this, 10, value || []);
29437
+ };
29438
+
29439
+
29440
+ /**
29441
+ * @param {string} value
29442
+ * @param {number=} opt_index
29443
+ * @return {!proto.gateway.web.v1.AIFileFilter} returns this
29444
+ */
29445
+ proto.gateway.web.v1.AIFileFilter.prototype.addPaths = function(value, opt_index) {
29446
+ return jspb.Message.addToRepeatedField(this, 10, value, opt_index);
29447
+ };
29448
+
29449
+
29450
+ /**
29451
+ * Clears the list making it empty but non-null.
29452
+ * @return {!proto.gateway.web.v1.AIFileFilter} returns this
29453
+ */
29454
+ proto.gateway.web.v1.AIFileFilter.prototype.clearPathsList = function() {
29455
+ return this.setPathsList([]);
29456
+ };
29457
+
29458
+
29459
+ /**
29460
+ * repeated AIFileDirectoryRef directories = 11;
29461
+ * @return {!Array<!proto.gateway.web.v1.AIFileDirectoryRef>}
29462
+ */
29463
+ proto.gateway.web.v1.AIFileFilter.prototype.getDirectoriesList = function() {
29464
+ return /** @type{!Array<!proto.gateway.web.v1.AIFileDirectoryRef>} */ (
29465
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.AIFileDirectoryRef, 11));
29466
+ };
29467
+
29468
+
29469
+ /**
29470
+ * @param {!Array<!proto.gateway.web.v1.AIFileDirectoryRef>} value
29471
+ * @return {!proto.gateway.web.v1.AIFileFilter} returns this
29472
+ */
29473
+ proto.gateway.web.v1.AIFileFilter.prototype.setDirectoriesList = function(value) {
29474
+ return jspb.Message.setRepeatedWrapperField(this, 11, value);
29475
+ };
29476
+
29477
+
29478
+ /**
29479
+ * @param {!proto.gateway.web.v1.AIFileDirectoryRef=} opt_value
29480
+ * @param {number=} opt_index
29481
+ * @return {!proto.gateway.web.v1.AIFileDirectoryRef}
29482
+ */
29483
+ proto.gateway.web.v1.AIFileFilter.prototype.addDirectories = function(opt_value, opt_index) {
29484
+ return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.gateway.web.v1.AIFileDirectoryRef, opt_index);
29485
+ };
29486
+
29487
+
29488
+ /**
29489
+ * Clears the list making it empty but non-null.
29490
+ * @return {!proto.gateway.web.v1.AIFileFilter} returns this
29491
+ */
29492
+ proto.gateway.web.v1.AIFileFilter.prototype.clearDirectoriesList = function() {
29493
+ return this.setDirectoriesList([]);
29494
+ };
29495
+
29496
+
29497
+ /**
29498
+ * repeated AIFileBranchRef branches = 12;
29499
+ * @return {!Array<!proto.gateway.web.v1.AIFileBranchRef>}
29500
+ */
29501
+ proto.gateway.web.v1.AIFileFilter.prototype.getBranchesList = function() {
29502
+ return /** @type{!Array<!proto.gateway.web.v1.AIFileBranchRef>} */ (
29503
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.AIFileBranchRef, 12));
29504
+ };
29505
+
29506
+
29507
+ /**
29508
+ * @param {!Array<!proto.gateway.web.v1.AIFileBranchRef>} value
29509
+ * @return {!proto.gateway.web.v1.AIFileFilter} returns this
29510
+ */
29511
+ proto.gateway.web.v1.AIFileFilter.prototype.setBranchesList = function(value) {
29512
+ return jspb.Message.setRepeatedWrapperField(this, 12, value);
29513
+ };
29514
+
29515
+
29516
+ /**
29517
+ * @param {!proto.gateway.web.v1.AIFileBranchRef=} opt_value
29518
+ * @param {number=} opt_index
29519
+ * @return {!proto.gateway.web.v1.AIFileBranchRef}
29520
+ */
29521
+ proto.gateway.web.v1.AIFileFilter.prototype.addBranches = function(opt_value, opt_index) {
29522
+ return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.gateway.web.v1.AIFileBranchRef, opt_index);
29523
+ };
29524
+
29525
+
29526
+ /**
29527
+ * Clears the list making it empty but non-null.
29528
+ * @return {!proto.gateway.web.v1.AIFileFilter} returns this
29529
+ */
29530
+ proto.gateway.web.v1.AIFileFilter.prototype.clearBranchesList = function() {
29531
+ return this.setBranchesList([]);
29532
+ };
29533
+
29534
+
29535
+
29536
+
29537
+
29538
+ if (jspb.Message.GENERATE_TO_OBJECT) {
29539
+ /**
29540
+ * Creates an object representation of this proto.
29541
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
29542
+ * Optional fields that are not set will be set to undefined.
29543
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
29544
+ * For the list of reserved names please see:
29545
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
29546
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
29547
+ * JSPB instance for transitional soy proto support:
29548
+ * http://goto/soy-param-migration
29549
+ * @return {!Object}
29550
+ */
29551
+ proto.gateway.web.v1.AIFileDirectoryRef.prototype.toObject = function(opt_includeInstance) {
29552
+ return proto.gateway.web.v1.AIFileDirectoryRef.toObject(opt_includeInstance, this);
29553
+ };
29554
+
29555
+
29556
+ /**
29557
+ * Static version of the {@see toObject} method.
29558
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
29559
+ * the JSPB instance for transitional soy proto support:
29560
+ * http://goto/soy-param-migration
29561
+ * @param {!proto.gateway.web.v1.AIFileDirectoryRef} msg The msg instance to transform.
29562
+ * @return {!Object}
29563
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29564
+ */
29565
+ proto.gateway.web.v1.AIFileDirectoryRef.toObject = function(includeInstance, msg) {
29566
+ var f, obj = {
29567
+ repositoryKey: jspb.Message.getFieldWithDefault(msg, 1, ""),
29568
+ directory: jspb.Message.getFieldWithDefault(msg, 2, "")
29569
+ };
29570
+
29571
+ if (includeInstance) {
29572
+ obj.$jspbMessageInstance = msg;
29573
+ }
29574
+ return obj;
29575
+ };
29576
+ }
29577
+
29578
+
29579
+ /**
29580
+ * Deserializes binary data (in protobuf wire format).
29581
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
29582
+ * @return {!proto.gateway.web.v1.AIFileDirectoryRef}
29583
+ */
29584
+ proto.gateway.web.v1.AIFileDirectoryRef.deserializeBinary = function(bytes) {
29585
+ var reader = new jspb.BinaryReader(bytes);
29586
+ var msg = new proto.gateway.web.v1.AIFileDirectoryRef;
29587
+ return proto.gateway.web.v1.AIFileDirectoryRef.deserializeBinaryFromReader(msg, reader);
29588
+ };
29589
+
29590
+
29591
+ /**
29592
+ * Deserializes binary data (in protobuf wire format) from the
29593
+ * given reader into the given message object.
29594
+ * @param {!proto.gateway.web.v1.AIFileDirectoryRef} msg The message object to deserialize into.
29595
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
29596
+ * @return {!proto.gateway.web.v1.AIFileDirectoryRef}
29597
+ */
29598
+ proto.gateway.web.v1.AIFileDirectoryRef.deserializeBinaryFromReader = function(msg, reader) {
29599
+ while (reader.nextField()) {
29600
+ if (reader.isEndGroup()) {
29601
+ break;
29602
+ }
29603
+ var field = reader.getFieldNumber();
29604
+ switch (field) {
29605
+ case 1:
29606
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
29607
+ msg.setRepositoryKey(value);
29608
+ break;
29609
+ case 2:
29610
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
29611
+ msg.setDirectory(value);
29612
+ break;
29613
+ default:
29614
+ reader.skipField();
29615
+ break;
29616
+ }
29617
+ }
29618
+ return msg;
29619
+ };
29620
+
29621
+
29622
+ /**
29623
+ * Serializes the message to binary data (in protobuf wire format).
29624
+ * @return {!Uint8Array}
29625
+ */
29626
+ proto.gateway.web.v1.AIFileDirectoryRef.prototype.serializeBinary = function() {
29627
+ var writer = new jspb.BinaryWriter();
29628
+ proto.gateway.web.v1.AIFileDirectoryRef.serializeBinaryToWriter(this, writer);
29629
+ return writer.getResultBuffer();
29630
+ };
29631
+
29632
+
29633
+ /**
29634
+ * Serializes the given message to binary data (in protobuf wire
29635
+ * format), writing to the given BinaryWriter.
29636
+ * @param {!proto.gateway.web.v1.AIFileDirectoryRef} message
29637
+ * @param {!jspb.BinaryWriter} writer
29638
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29639
+ */
29640
+ proto.gateway.web.v1.AIFileDirectoryRef.serializeBinaryToWriter = function(message, writer) {
29641
+ var f = undefined;
29642
+ f = message.getRepositoryKey();
29643
+ if (f.length > 0) {
29644
+ writer.writeString(
29645
+ 1,
29646
+ f
29647
+ );
29648
+ }
29649
+ f = message.getDirectory();
29650
+ if (f.length > 0) {
29651
+ writer.writeString(
29652
+ 2,
29653
+ f
29654
+ );
29655
+ }
29656
+ };
29657
+
29658
+
29659
+ /**
29660
+ * optional string repository_key = 1;
29661
+ * @return {string}
29662
+ */
29663
+ proto.gateway.web.v1.AIFileDirectoryRef.prototype.getRepositoryKey = function() {
29664
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
29665
+ };
29666
+
29667
+
29668
+ /**
29669
+ * @param {string} value
29670
+ * @return {!proto.gateway.web.v1.AIFileDirectoryRef} returns this
29671
+ */
29672
+ proto.gateway.web.v1.AIFileDirectoryRef.prototype.setRepositoryKey = function(value) {
29673
+ return jspb.Message.setProto3StringField(this, 1, value);
29674
+ };
29675
+
29676
+
29677
+ /**
29678
+ * optional string directory = 2;
29679
+ * @return {string}
29680
+ */
29681
+ proto.gateway.web.v1.AIFileDirectoryRef.prototype.getDirectory = function() {
29682
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
29683
+ };
29684
+
29685
+
29686
+ /**
29687
+ * @param {string} value
29688
+ * @return {!proto.gateway.web.v1.AIFileDirectoryRef} returns this
29689
+ */
29690
+ proto.gateway.web.v1.AIFileDirectoryRef.prototype.setDirectory = function(value) {
29691
+ return jspb.Message.setProto3StringField(this, 2, value);
29692
+ };
29693
+
29694
+
29695
+
29696
+
29697
+
29698
+ if (jspb.Message.GENERATE_TO_OBJECT) {
29699
+ /**
29700
+ * Creates an object representation of this proto.
29701
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
29702
+ * Optional fields that are not set will be set to undefined.
29703
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
29704
+ * For the list of reserved names please see:
29705
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
29706
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
29707
+ * JSPB instance for transitional soy proto support:
29708
+ * http://goto/soy-param-migration
29709
+ * @return {!Object}
29710
+ */
29711
+ proto.gateway.web.v1.AIFileBranchRef.prototype.toObject = function(opt_includeInstance) {
29712
+ return proto.gateway.web.v1.AIFileBranchRef.toObject(opt_includeInstance, this);
29713
+ };
29714
+
29715
+
29716
+ /**
29717
+ * Static version of the {@see toObject} method.
29718
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
29719
+ * the JSPB instance for transitional soy proto support:
29720
+ * http://goto/soy-param-migration
29721
+ * @param {!proto.gateway.web.v1.AIFileBranchRef} msg The msg instance to transform.
29722
+ * @return {!Object}
29723
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29724
+ */
29725
+ proto.gateway.web.v1.AIFileBranchRef.toObject = function(includeInstance, msg) {
29726
+ var f, obj = {
29727
+ repositoryKey: jspb.Message.getFieldWithDefault(msg, 1, ""),
29728
+ ref: jspb.Message.getFieldWithDefault(msg, 2, "")
29729
+ };
29730
+
29731
+ if (includeInstance) {
29732
+ obj.$jspbMessageInstance = msg;
29733
+ }
29734
+ return obj;
29735
+ };
29736
+ }
29737
+
29738
+
29739
+ /**
29740
+ * Deserializes binary data (in protobuf wire format).
29741
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
29742
+ * @return {!proto.gateway.web.v1.AIFileBranchRef}
29743
+ */
29744
+ proto.gateway.web.v1.AIFileBranchRef.deserializeBinary = function(bytes) {
29745
+ var reader = new jspb.BinaryReader(bytes);
29746
+ var msg = new proto.gateway.web.v1.AIFileBranchRef;
29747
+ return proto.gateway.web.v1.AIFileBranchRef.deserializeBinaryFromReader(msg, reader);
29748
+ };
29749
+
29750
+
29751
+ /**
29752
+ * Deserializes binary data (in protobuf wire format) from the
29753
+ * given reader into the given message object.
29754
+ * @param {!proto.gateway.web.v1.AIFileBranchRef} msg The message object to deserialize into.
29755
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
29756
+ * @return {!proto.gateway.web.v1.AIFileBranchRef}
29757
+ */
29758
+ proto.gateway.web.v1.AIFileBranchRef.deserializeBinaryFromReader = function(msg, reader) {
29759
+ while (reader.nextField()) {
29760
+ if (reader.isEndGroup()) {
29761
+ break;
29762
+ }
29763
+ var field = reader.getFieldNumber();
29764
+ switch (field) {
29765
+ case 1:
29766
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
29767
+ msg.setRepositoryKey(value);
29768
+ break;
29769
+ case 2:
29770
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
29771
+ msg.setRef(value);
29772
+ break;
29773
+ default:
29774
+ reader.skipField();
29775
+ break;
29776
+ }
29777
+ }
29778
+ return msg;
29779
+ };
29780
+
29781
+
29782
+ /**
29783
+ * Serializes the message to binary data (in protobuf wire format).
29784
+ * @return {!Uint8Array}
29785
+ */
29786
+ proto.gateway.web.v1.AIFileBranchRef.prototype.serializeBinary = function() {
29787
+ var writer = new jspb.BinaryWriter();
29788
+ proto.gateway.web.v1.AIFileBranchRef.serializeBinaryToWriter(this, writer);
29789
+ return writer.getResultBuffer();
29790
+ };
29791
+
29792
+
29793
+ /**
29794
+ * Serializes the given message to binary data (in protobuf wire
29795
+ * format), writing to the given BinaryWriter.
29796
+ * @param {!proto.gateway.web.v1.AIFileBranchRef} message
29797
+ * @param {!jspb.BinaryWriter} writer
29798
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29799
+ */
29800
+ proto.gateway.web.v1.AIFileBranchRef.serializeBinaryToWriter = function(message, writer) {
29801
+ var f = undefined;
29802
+ f = message.getRepositoryKey();
29803
+ if (f.length > 0) {
29804
+ writer.writeString(
29805
+ 1,
29806
+ f
29807
+ );
29808
+ }
29809
+ f = message.getRef();
29810
+ if (f.length > 0) {
29811
+ writer.writeString(
29812
+ 2,
29813
+ f
29814
+ );
29815
+ }
29816
+ };
29817
+
29818
+
29819
+ /**
29820
+ * optional string repository_key = 1;
29821
+ * @return {string}
29822
+ */
29823
+ proto.gateway.web.v1.AIFileBranchRef.prototype.getRepositoryKey = function() {
29824
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
29825
+ };
29826
+
29827
+
29828
+ /**
29829
+ * @param {string} value
29830
+ * @return {!proto.gateway.web.v1.AIFileBranchRef} returns this
29831
+ */
29832
+ proto.gateway.web.v1.AIFileBranchRef.prototype.setRepositoryKey = function(value) {
29833
+ return jspb.Message.setProto3StringField(this, 1, value);
29834
+ };
29835
+
29836
+
29837
+ /**
29838
+ * optional string ref = 2;
29839
+ * @return {string}
29840
+ */
29841
+ proto.gateway.web.v1.AIFileBranchRef.prototype.getRef = function() {
29842
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
29843
+ };
29844
+
29845
+
29846
+ /**
29847
+ * @param {string} value
29848
+ * @return {!proto.gateway.web.v1.AIFileBranchRef} returns this
29849
+ */
29850
+ proto.gateway.web.v1.AIFileBranchRef.prototype.setRef = function(value) {
29851
+ return jspb.Message.setProto3StringField(this, 2, value);
29852
+ };
29853
+
29854
+
29217
29855
 
29218
29856
 
29219
29857
 
@@ -29249,6 +29887,7 @@ proto.gateway.web.v1.ListFilesRequest.toObject = function(includeInstance, msg)
29249
29887
  organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
29250
29888
  projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
29251
29889
  filter: (f = msg.getFilter()) && proto.gateway.web.v1.AIFileFilter.toObject(includeInstance, f),
29890
+ sort: jspb.Message.getFieldWithDefault(msg, 6, 0),
29252
29891
  pageSize: jspb.Message.getFieldWithDefault(msg, 4, 0),
29253
29892
  pageToken: jspb.Message.getFieldWithDefault(msg, 5, "")
29254
29893
  };
@@ -29300,6 +29939,10 @@ proto.gateway.web.v1.ListFilesRequest.deserializeBinaryFromReader = function(msg
29300
29939
  reader.readMessage(value,proto.gateway.web.v1.AIFileFilter.deserializeBinaryFromReader);
29301
29940
  msg.setFilter(value);
29302
29941
  break;
29942
+ case 6:
29943
+ var value = /** @type {!proto.gateway.web.v1.AIFileSort} */ (reader.readEnum());
29944
+ msg.setSort(value);
29945
+ break;
29303
29946
  case 4:
29304
29947
  var value = /** @type {number} */ (reader.readInt32());
29305
29948
  msg.setPageSize(value);
@@ -29359,6 +30002,13 @@ proto.gateway.web.v1.ListFilesRequest.serializeBinaryToWriter = function(message
29359
30002
  proto.gateway.web.v1.AIFileFilter.serializeBinaryToWriter
29360
30003
  );
29361
30004
  }
30005
+ f = message.getSort();
30006
+ if (f !== 0.0) {
30007
+ writer.writeEnum(
30008
+ 6,
30009
+ f
30010
+ );
30011
+ }
29362
30012
  f = message.getPageSize();
29363
30013
  if (f !== 0) {
29364
30014
  writer.writeInt32(
@@ -29449,6 +30099,24 @@ proto.gateway.web.v1.ListFilesRequest.prototype.hasFilter = function() {
29449
30099
  };
29450
30100
 
29451
30101
 
30102
+ /**
30103
+ * optional AIFileSort sort = 6;
30104
+ * @return {!proto.gateway.web.v1.AIFileSort}
30105
+ */
30106
+ proto.gateway.web.v1.ListFilesRequest.prototype.getSort = function() {
30107
+ return /** @type {!proto.gateway.web.v1.AIFileSort} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
30108
+ };
30109
+
30110
+
30111
+ /**
30112
+ * @param {!proto.gateway.web.v1.AIFileSort} value
30113
+ * @return {!proto.gateway.web.v1.ListFilesRequest} returns this
30114
+ */
30115
+ proto.gateway.web.v1.ListFilesRequest.prototype.setSort = function(value) {
30116
+ return jspb.Message.setProto3EnumField(this, 6, value);
30117
+ };
30118
+
30119
+
29452
30120
  /**
29453
30121
  * optional int32 page_size = 4;
29454
30122
  * @return {number}
@@ -30645,6 +31313,988 @@ proto.gateway.web.v1.AIFileRow.prototype.setSubscriptionUnlandedCostUsd = functi
30645
31313
 
30646
31314
 
30647
31315
 
31316
+ if (jspb.Message.GENERATE_TO_OBJECT) {
31317
+ /**
31318
+ * Creates an object representation of this proto.
31319
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
31320
+ * Optional fields that are not set will be set to undefined.
31321
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
31322
+ * For the list of reserved names please see:
31323
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
31324
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
31325
+ * JSPB instance for transitional soy proto support:
31326
+ * http://goto/soy-param-migration
31327
+ * @return {!Object}
31328
+ */
31329
+ proto.gateway.web.v1.ListFileDirectoriesRequest.prototype.toObject = function(opt_includeInstance) {
31330
+ return proto.gateway.web.v1.ListFileDirectoriesRequest.toObject(opt_includeInstance, this);
31331
+ };
31332
+
31333
+
31334
+ /**
31335
+ * Static version of the {@see toObject} method.
31336
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
31337
+ * the JSPB instance for transitional soy proto support:
31338
+ * http://goto/soy-param-migration
31339
+ * @param {!proto.gateway.web.v1.ListFileDirectoriesRequest} msg The msg instance to transform.
31340
+ * @return {!Object}
31341
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31342
+ */
31343
+ proto.gateway.web.v1.ListFileDirectoriesRequest.toObject = function(includeInstance, msg) {
31344
+ var f, obj = {
31345
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
31346
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
31347
+ filter: (f = msg.getFilter()) && proto.gateway.web.v1.AIFileFilter.toObject(includeInstance, f)
31348
+ };
31349
+
31350
+ if (includeInstance) {
31351
+ obj.$jspbMessageInstance = msg;
31352
+ }
31353
+ return obj;
31354
+ };
31355
+ }
31356
+
31357
+
31358
+ /**
31359
+ * Deserializes binary data (in protobuf wire format).
31360
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
31361
+ * @return {!proto.gateway.web.v1.ListFileDirectoriesRequest}
31362
+ */
31363
+ proto.gateway.web.v1.ListFileDirectoriesRequest.deserializeBinary = function(bytes) {
31364
+ var reader = new jspb.BinaryReader(bytes);
31365
+ var msg = new proto.gateway.web.v1.ListFileDirectoriesRequest;
31366
+ return proto.gateway.web.v1.ListFileDirectoriesRequest.deserializeBinaryFromReader(msg, reader);
31367
+ };
31368
+
31369
+
31370
+ /**
31371
+ * Deserializes binary data (in protobuf wire format) from the
31372
+ * given reader into the given message object.
31373
+ * @param {!proto.gateway.web.v1.ListFileDirectoriesRequest} msg The message object to deserialize into.
31374
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
31375
+ * @return {!proto.gateway.web.v1.ListFileDirectoriesRequest}
31376
+ */
31377
+ proto.gateway.web.v1.ListFileDirectoriesRequest.deserializeBinaryFromReader = function(msg, reader) {
31378
+ while (reader.nextField()) {
31379
+ if (reader.isEndGroup()) {
31380
+ break;
31381
+ }
31382
+ var field = reader.getFieldNumber();
31383
+ switch (field) {
31384
+ case 1:
31385
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
31386
+ msg.setOrganizationId(value);
31387
+ break;
31388
+ case 2:
31389
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
31390
+ msg.setProjectId(value);
31391
+ break;
31392
+ case 3:
31393
+ var value = new proto.gateway.web.v1.AIFileFilter;
31394
+ reader.readMessage(value,proto.gateway.web.v1.AIFileFilter.deserializeBinaryFromReader);
31395
+ msg.setFilter(value);
31396
+ break;
31397
+ default:
31398
+ reader.skipField();
31399
+ break;
31400
+ }
31401
+ }
31402
+ return msg;
31403
+ };
31404
+
31405
+
31406
+ /**
31407
+ * Serializes the message to binary data (in protobuf wire format).
31408
+ * @return {!Uint8Array}
31409
+ */
31410
+ proto.gateway.web.v1.ListFileDirectoriesRequest.prototype.serializeBinary = function() {
31411
+ var writer = new jspb.BinaryWriter();
31412
+ proto.gateway.web.v1.ListFileDirectoriesRequest.serializeBinaryToWriter(this, writer);
31413
+ return writer.getResultBuffer();
31414
+ };
31415
+
31416
+
31417
+ /**
31418
+ * Serializes the given message to binary data (in protobuf wire
31419
+ * format), writing to the given BinaryWriter.
31420
+ * @param {!proto.gateway.web.v1.ListFileDirectoriesRequest} message
31421
+ * @param {!jspb.BinaryWriter} writer
31422
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31423
+ */
31424
+ proto.gateway.web.v1.ListFileDirectoriesRequest.serializeBinaryToWriter = function(message, writer) {
31425
+ var f = undefined;
31426
+ f = message.getOrganizationId();
31427
+ if (f.length > 0) {
31428
+ writer.writeString(
31429
+ 1,
31430
+ f
31431
+ );
31432
+ }
31433
+ f = message.getProjectId();
31434
+ if (f.length > 0) {
31435
+ writer.writeString(
31436
+ 2,
31437
+ f
31438
+ );
31439
+ }
31440
+ f = message.getFilter();
31441
+ if (f != null) {
31442
+ writer.writeMessage(
31443
+ 3,
31444
+ f,
31445
+ proto.gateway.web.v1.AIFileFilter.serializeBinaryToWriter
31446
+ );
31447
+ }
31448
+ };
31449
+
31450
+
31451
+ /**
31452
+ * optional string organization_id = 1;
31453
+ * @return {string}
31454
+ */
31455
+ proto.gateway.web.v1.ListFileDirectoriesRequest.prototype.getOrganizationId = function() {
31456
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
31457
+ };
31458
+
31459
+
31460
+ /**
31461
+ * @param {string} value
31462
+ * @return {!proto.gateway.web.v1.ListFileDirectoriesRequest} returns this
31463
+ */
31464
+ proto.gateway.web.v1.ListFileDirectoriesRequest.prototype.setOrganizationId = function(value) {
31465
+ return jspb.Message.setProto3StringField(this, 1, value);
31466
+ };
31467
+
31468
+
31469
+ /**
31470
+ * optional string project_id = 2;
31471
+ * @return {string}
31472
+ */
31473
+ proto.gateway.web.v1.ListFileDirectoriesRequest.prototype.getProjectId = function() {
31474
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
31475
+ };
31476
+
31477
+
31478
+ /**
31479
+ * @param {string} value
31480
+ * @return {!proto.gateway.web.v1.ListFileDirectoriesRequest} returns this
31481
+ */
31482
+ proto.gateway.web.v1.ListFileDirectoriesRequest.prototype.setProjectId = function(value) {
31483
+ return jspb.Message.setProto3StringField(this, 2, value);
31484
+ };
31485
+
31486
+
31487
+ /**
31488
+ * optional AIFileFilter filter = 3;
31489
+ * @return {?proto.gateway.web.v1.AIFileFilter}
31490
+ */
31491
+ proto.gateway.web.v1.ListFileDirectoriesRequest.prototype.getFilter = function() {
31492
+ return /** @type{?proto.gateway.web.v1.AIFileFilter} */ (
31493
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.AIFileFilter, 3));
31494
+ };
31495
+
31496
+
31497
+ /**
31498
+ * @param {?proto.gateway.web.v1.AIFileFilter|undefined} value
31499
+ * @return {!proto.gateway.web.v1.ListFileDirectoriesRequest} returns this
31500
+ */
31501
+ proto.gateway.web.v1.ListFileDirectoriesRequest.prototype.setFilter = function(value) {
31502
+ return jspb.Message.setWrapperField(this, 3, value);
31503
+ };
31504
+
31505
+
31506
+ /**
31507
+ * Clears the message field making it undefined.
31508
+ * @return {!proto.gateway.web.v1.ListFileDirectoriesRequest} returns this
31509
+ */
31510
+ proto.gateway.web.v1.ListFileDirectoriesRequest.prototype.clearFilter = function() {
31511
+ return this.setFilter(undefined);
31512
+ };
31513
+
31514
+
31515
+ /**
31516
+ * Returns whether this field is set.
31517
+ * @return {boolean}
31518
+ */
31519
+ proto.gateway.web.v1.ListFileDirectoriesRequest.prototype.hasFilter = function() {
31520
+ return jspb.Message.getField(this, 3) != null;
31521
+ };
31522
+
31523
+
31524
+
31525
+ /**
31526
+ * List of repeated fields within this message type.
31527
+ * @private {!Array<number>}
31528
+ * @const
31529
+ */
31530
+ proto.gateway.web.v1.ListFileDirectoriesResponse.repeatedFields_ = [2];
31531
+
31532
+
31533
+
31534
+ if (jspb.Message.GENERATE_TO_OBJECT) {
31535
+ /**
31536
+ * Creates an object representation of this proto.
31537
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
31538
+ * Optional fields that are not set will be set to undefined.
31539
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
31540
+ * For the list of reserved names please see:
31541
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
31542
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
31543
+ * JSPB instance for transitional soy proto support:
31544
+ * http://goto/soy-param-migration
31545
+ * @return {!Object}
31546
+ */
31547
+ proto.gateway.web.v1.ListFileDirectoriesResponse.prototype.toObject = function(opt_includeInstance) {
31548
+ return proto.gateway.web.v1.ListFileDirectoriesResponse.toObject(opt_includeInstance, this);
31549
+ };
31550
+
31551
+
31552
+ /**
31553
+ * Static version of the {@see toObject} method.
31554
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
31555
+ * the JSPB instance for transitional soy proto support:
31556
+ * http://goto/soy-param-migration
31557
+ * @param {!proto.gateway.web.v1.ListFileDirectoriesResponse} msg The msg instance to transform.
31558
+ * @return {!Object}
31559
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31560
+ */
31561
+ proto.gateway.web.v1.ListFileDirectoriesResponse.toObject = function(includeInstance, msg) {
31562
+ var f, obj = {
31563
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
31564
+ directoriesList: jspb.Message.toObjectList(msg.getDirectoriesList(),
31565
+ proto.gateway.web.v1.AIFileDirectory.toObject, includeInstance)
31566
+ };
31567
+
31568
+ if (includeInstance) {
31569
+ obj.$jspbMessageInstance = msg;
31570
+ }
31571
+ return obj;
31572
+ };
31573
+ }
31574
+
31575
+
31576
+ /**
31577
+ * Deserializes binary data (in protobuf wire format).
31578
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
31579
+ * @return {!proto.gateway.web.v1.ListFileDirectoriesResponse}
31580
+ */
31581
+ proto.gateway.web.v1.ListFileDirectoriesResponse.deserializeBinary = function(bytes) {
31582
+ var reader = new jspb.BinaryReader(bytes);
31583
+ var msg = new proto.gateway.web.v1.ListFileDirectoriesResponse;
31584
+ return proto.gateway.web.v1.ListFileDirectoriesResponse.deserializeBinaryFromReader(msg, reader);
31585
+ };
31586
+
31587
+
31588
+ /**
31589
+ * Deserializes binary data (in protobuf wire format) from the
31590
+ * given reader into the given message object.
31591
+ * @param {!proto.gateway.web.v1.ListFileDirectoriesResponse} msg The message object to deserialize into.
31592
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
31593
+ * @return {!proto.gateway.web.v1.ListFileDirectoriesResponse}
31594
+ */
31595
+ proto.gateway.web.v1.ListFileDirectoriesResponse.deserializeBinaryFromReader = function(msg, reader) {
31596
+ while (reader.nextField()) {
31597
+ if (reader.isEndGroup()) {
31598
+ break;
31599
+ }
31600
+ var field = reader.getFieldNumber();
31601
+ switch (field) {
31602
+ case 1:
31603
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
31604
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
31605
+ msg.setStatus(value);
31606
+ break;
31607
+ case 2:
31608
+ var value = new proto.gateway.web.v1.AIFileDirectory;
31609
+ reader.readMessage(value,proto.gateway.web.v1.AIFileDirectory.deserializeBinaryFromReader);
31610
+ msg.addDirectories(value);
31611
+ break;
31612
+ default:
31613
+ reader.skipField();
31614
+ break;
31615
+ }
31616
+ }
31617
+ return msg;
31618
+ };
31619
+
31620
+
31621
+ /**
31622
+ * Serializes the message to binary data (in protobuf wire format).
31623
+ * @return {!Uint8Array}
31624
+ */
31625
+ proto.gateway.web.v1.ListFileDirectoriesResponse.prototype.serializeBinary = function() {
31626
+ var writer = new jspb.BinaryWriter();
31627
+ proto.gateway.web.v1.ListFileDirectoriesResponse.serializeBinaryToWriter(this, writer);
31628
+ return writer.getResultBuffer();
31629
+ };
31630
+
31631
+
31632
+ /**
31633
+ * Serializes the given message to binary data (in protobuf wire
31634
+ * format), writing to the given BinaryWriter.
31635
+ * @param {!proto.gateway.web.v1.ListFileDirectoriesResponse} message
31636
+ * @param {!jspb.BinaryWriter} writer
31637
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31638
+ */
31639
+ proto.gateway.web.v1.ListFileDirectoriesResponse.serializeBinaryToWriter = function(message, writer) {
31640
+ var f = undefined;
31641
+ f = message.getStatus();
31642
+ if (f != null) {
31643
+ writer.writeMessage(
31644
+ 1,
31645
+ f,
31646
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
31647
+ );
31648
+ }
31649
+ f = message.getDirectoriesList();
31650
+ if (f.length > 0) {
31651
+ writer.writeRepeatedMessage(
31652
+ 2,
31653
+ f,
31654
+ proto.gateway.web.v1.AIFileDirectory.serializeBinaryToWriter
31655
+ );
31656
+ }
31657
+ };
31658
+
31659
+
31660
+ /**
31661
+ * optional gateway.common.v1.ResponseStatus status = 1;
31662
+ * @return {?proto.gateway.common.v1.ResponseStatus}
31663
+ */
31664
+ proto.gateway.web.v1.ListFileDirectoriesResponse.prototype.getStatus = function() {
31665
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
31666
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
31667
+ };
31668
+
31669
+
31670
+ /**
31671
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
31672
+ * @return {!proto.gateway.web.v1.ListFileDirectoriesResponse} returns this
31673
+ */
31674
+ proto.gateway.web.v1.ListFileDirectoriesResponse.prototype.setStatus = function(value) {
31675
+ return jspb.Message.setWrapperField(this, 1, value);
31676
+ };
31677
+
31678
+
31679
+ /**
31680
+ * Clears the message field making it undefined.
31681
+ * @return {!proto.gateway.web.v1.ListFileDirectoriesResponse} returns this
31682
+ */
31683
+ proto.gateway.web.v1.ListFileDirectoriesResponse.prototype.clearStatus = function() {
31684
+ return this.setStatus(undefined);
31685
+ };
31686
+
31687
+
31688
+ /**
31689
+ * Returns whether this field is set.
31690
+ * @return {boolean}
31691
+ */
31692
+ proto.gateway.web.v1.ListFileDirectoriesResponse.prototype.hasStatus = function() {
31693
+ return jspb.Message.getField(this, 1) != null;
31694
+ };
31695
+
31696
+
31697
+ /**
31698
+ * repeated AIFileDirectory directories = 2;
31699
+ * @return {!Array<!proto.gateway.web.v1.AIFileDirectory>}
31700
+ */
31701
+ proto.gateway.web.v1.ListFileDirectoriesResponse.prototype.getDirectoriesList = function() {
31702
+ return /** @type{!Array<!proto.gateway.web.v1.AIFileDirectory>} */ (
31703
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.AIFileDirectory, 2));
31704
+ };
31705
+
31706
+
31707
+ /**
31708
+ * @param {!Array<!proto.gateway.web.v1.AIFileDirectory>} value
31709
+ * @return {!proto.gateway.web.v1.ListFileDirectoriesResponse} returns this
31710
+ */
31711
+ proto.gateway.web.v1.ListFileDirectoriesResponse.prototype.setDirectoriesList = function(value) {
31712
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
31713
+ };
31714
+
31715
+
31716
+ /**
31717
+ * @param {!proto.gateway.web.v1.AIFileDirectory=} opt_value
31718
+ * @param {number=} opt_index
31719
+ * @return {!proto.gateway.web.v1.AIFileDirectory}
31720
+ */
31721
+ proto.gateway.web.v1.ListFileDirectoriesResponse.prototype.addDirectories = function(opt_value, opt_index) {
31722
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.AIFileDirectory, opt_index);
31723
+ };
31724
+
31725
+
31726
+ /**
31727
+ * Clears the list making it empty but non-null.
31728
+ * @return {!proto.gateway.web.v1.ListFileDirectoriesResponse} returns this
31729
+ */
31730
+ proto.gateway.web.v1.ListFileDirectoriesResponse.prototype.clearDirectoriesList = function() {
31731
+ return this.setDirectoriesList([]);
31732
+ };
31733
+
31734
+
31735
+
31736
+ /**
31737
+ * List of repeated fields within this message type.
31738
+ * @private {!Array<number>}
31739
+ * @const
31740
+ */
31741
+ proto.gateway.web.v1.AIFileDirectory.repeatedFields_ = [9];
31742
+
31743
+
31744
+
31745
+ if (jspb.Message.GENERATE_TO_OBJECT) {
31746
+ /**
31747
+ * Creates an object representation of this proto.
31748
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
31749
+ * Optional fields that are not set will be set to undefined.
31750
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
31751
+ * For the list of reserved names please see:
31752
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
31753
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
31754
+ * JSPB instance for transitional soy proto support:
31755
+ * http://goto/soy-param-migration
31756
+ * @return {!Object}
31757
+ */
31758
+ proto.gateway.web.v1.AIFileDirectory.prototype.toObject = function(opt_includeInstance) {
31759
+ return proto.gateway.web.v1.AIFileDirectory.toObject(opt_includeInstance, this);
31760
+ };
31761
+
31762
+
31763
+ /**
31764
+ * Static version of the {@see toObject} method.
31765
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
31766
+ * the JSPB instance for transitional soy proto support:
31767
+ * http://goto/soy-param-migration
31768
+ * @param {!proto.gateway.web.v1.AIFileDirectory} msg The msg instance to transform.
31769
+ * @return {!Object}
31770
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31771
+ */
31772
+ proto.gateway.web.v1.AIFileDirectory.toObject = function(includeInstance, msg) {
31773
+ var f, obj = {
31774
+ repositoryKey: jspb.Message.getFieldWithDefault(msg, 1, ""),
31775
+ directory: jspb.Message.getFieldWithDefault(msg, 2, ""),
31776
+ files: jspb.Message.getFieldWithDefault(msg, 3, 0),
31777
+ edits: jspb.Message.getFieldWithDefault(msg, 4, 0),
31778
+ sessions: jspb.Message.getFieldWithDefault(msg, 5, 0),
31779
+ unlandedCostUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
31780
+ subscriptionUnlandedCostUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
31781
+ unlandedOutputTokens: jspb.Message.getFieldWithDefault(msg, 8, 0),
31782
+ stateCountsList: jspb.Message.toObjectList(msg.getStateCountsList(),
31783
+ proto.gateway.web.v1.AIFileStateCount.toObject, includeInstance)
31784
+ };
31785
+
31786
+ if (includeInstance) {
31787
+ obj.$jspbMessageInstance = msg;
31788
+ }
31789
+ return obj;
31790
+ };
31791
+ }
31792
+
31793
+
31794
+ /**
31795
+ * Deserializes binary data (in protobuf wire format).
31796
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
31797
+ * @return {!proto.gateway.web.v1.AIFileDirectory}
31798
+ */
31799
+ proto.gateway.web.v1.AIFileDirectory.deserializeBinary = function(bytes) {
31800
+ var reader = new jspb.BinaryReader(bytes);
31801
+ var msg = new proto.gateway.web.v1.AIFileDirectory;
31802
+ return proto.gateway.web.v1.AIFileDirectory.deserializeBinaryFromReader(msg, reader);
31803
+ };
31804
+
31805
+
31806
+ /**
31807
+ * Deserializes binary data (in protobuf wire format) from the
31808
+ * given reader into the given message object.
31809
+ * @param {!proto.gateway.web.v1.AIFileDirectory} msg The message object to deserialize into.
31810
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
31811
+ * @return {!proto.gateway.web.v1.AIFileDirectory}
31812
+ */
31813
+ proto.gateway.web.v1.AIFileDirectory.deserializeBinaryFromReader = function(msg, reader) {
31814
+ while (reader.nextField()) {
31815
+ if (reader.isEndGroup()) {
31816
+ break;
31817
+ }
31818
+ var field = reader.getFieldNumber();
31819
+ switch (field) {
31820
+ case 1:
31821
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
31822
+ msg.setRepositoryKey(value);
31823
+ break;
31824
+ case 2:
31825
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
31826
+ msg.setDirectory(value);
31827
+ break;
31828
+ case 3:
31829
+ var value = /** @type {number} */ (reader.readUint64());
31830
+ msg.setFiles(value);
31831
+ break;
31832
+ case 4:
31833
+ var value = /** @type {number} */ (reader.readUint64());
31834
+ msg.setEdits(value);
31835
+ break;
31836
+ case 5:
31837
+ var value = /** @type {number} */ (reader.readUint64());
31838
+ msg.setSessions(value);
31839
+ break;
31840
+ case 6:
31841
+ var value = /** @type {number} */ (reader.readDouble());
31842
+ msg.setUnlandedCostUsd(value);
31843
+ break;
31844
+ case 7:
31845
+ var value = /** @type {number} */ (reader.readDouble());
31846
+ msg.setSubscriptionUnlandedCostUsd(value);
31847
+ break;
31848
+ case 8:
31849
+ var value = /** @type {number} */ (reader.readUint64());
31850
+ msg.setUnlandedOutputTokens(value);
31851
+ break;
31852
+ case 9:
31853
+ var value = new proto.gateway.web.v1.AIFileStateCount;
31854
+ reader.readMessage(value,proto.gateway.web.v1.AIFileStateCount.deserializeBinaryFromReader);
31855
+ msg.addStateCounts(value);
31856
+ break;
31857
+ default:
31858
+ reader.skipField();
31859
+ break;
31860
+ }
31861
+ }
31862
+ return msg;
31863
+ };
31864
+
31865
+
31866
+ /**
31867
+ * Serializes the message to binary data (in protobuf wire format).
31868
+ * @return {!Uint8Array}
31869
+ */
31870
+ proto.gateway.web.v1.AIFileDirectory.prototype.serializeBinary = function() {
31871
+ var writer = new jspb.BinaryWriter();
31872
+ proto.gateway.web.v1.AIFileDirectory.serializeBinaryToWriter(this, writer);
31873
+ return writer.getResultBuffer();
31874
+ };
31875
+
31876
+
31877
+ /**
31878
+ * Serializes the given message to binary data (in protobuf wire
31879
+ * format), writing to the given BinaryWriter.
31880
+ * @param {!proto.gateway.web.v1.AIFileDirectory} message
31881
+ * @param {!jspb.BinaryWriter} writer
31882
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31883
+ */
31884
+ proto.gateway.web.v1.AIFileDirectory.serializeBinaryToWriter = function(message, writer) {
31885
+ var f = undefined;
31886
+ f = message.getRepositoryKey();
31887
+ if (f.length > 0) {
31888
+ writer.writeString(
31889
+ 1,
31890
+ f
31891
+ );
31892
+ }
31893
+ f = message.getDirectory();
31894
+ if (f.length > 0) {
31895
+ writer.writeString(
31896
+ 2,
31897
+ f
31898
+ );
31899
+ }
31900
+ f = message.getFiles();
31901
+ if (f !== 0) {
31902
+ writer.writeUint64(
31903
+ 3,
31904
+ f
31905
+ );
31906
+ }
31907
+ f = message.getEdits();
31908
+ if (f !== 0) {
31909
+ writer.writeUint64(
31910
+ 4,
31911
+ f
31912
+ );
31913
+ }
31914
+ f = message.getSessions();
31915
+ if (f !== 0) {
31916
+ writer.writeUint64(
31917
+ 5,
31918
+ f
31919
+ );
31920
+ }
31921
+ f = message.getUnlandedCostUsd();
31922
+ if (f !== 0.0) {
31923
+ writer.writeDouble(
31924
+ 6,
31925
+ f
31926
+ );
31927
+ }
31928
+ f = message.getSubscriptionUnlandedCostUsd();
31929
+ if (f !== 0.0) {
31930
+ writer.writeDouble(
31931
+ 7,
31932
+ f
31933
+ );
31934
+ }
31935
+ f = message.getUnlandedOutputTokens();
31936
+ if (f !== 0) {
31937
+ writer.writeUint64(
31938
+ 8,
31939
+ f
31940
+ );
31941
+ }
31942
+ f = message.getStateCountsList();
31943
+ if (f.length > 0) {
31944
+ writer.writeRepeatedMessage(
31945
+ 9,
31946
+ f,
31947
+ proto.gateway.web.v1.AIFileStateCount.serializeBinaryToWriter
31948
+ );
31949
+ }
31950
+ };
31951
+
31952
+
31953
+ /**
31954
+ * optional string repository_key = 1;
31955
+ * @return {string}
31956
+ */
31957
+ proto.gateway.web.v1.AIFileDirectory.prototype.getRepositoryKey = function() {
31958
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
31959
+ };
31960
+
31961
+
31962
+ /**
31963
+ * @param {string} value
31964
+ * @return {!proto.gateway.web.v1.AIFileDirectory} returns this
31965
+ */
31966
+ proto.gateway.web.v1.AIFileDirectory.prototype.setRepositoryKey = function(value) {
31967
+ return jspb.Message.setProto3StringField(this, 1, value);
31968
+ };
31969
+
31970
+
31971
+ /**
31972
+ * optional string directory = 2;
31973
+ * @return {string}
31974
+ */
31975
+ proto.gateway.web.v1.AIFileDirectory.prototype.getDirectory = function() {
31976
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
31977
+ };
31978
+
31979
+
31980
+ /**
31981
+ * @param {string} value
31982
+ * @return {!proto.gateway.web.v1.AIFileDirectory} returns this
31983
+ */
31984
+ proto.gateway.web.v1.AIFileDirectory.prototype.setDirectory = function(value) {
31985
+ return jspb.Message.setProto3StringField(this, 2, value);
31986
+ };
31987
+
31988
+
31989
+ /**
31990
+ * optional uint64 files = 3;
31991
+ * @return {number}
31992
+ */
31993
+ proto.gateway.web.v1.AIFileDirectory.prototype.getFiles = function() {
31994
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
31995
+ };
31996
+
31997
+
31998
+ /**
31999
+ * @param {number} value
32000
+ * @return {!proto.gateway.web.v1.AIFileDirectory} returns this
32001
+ */
32002
+ proto.gateway.web.v1.AIFileDirectory.prototype.setFiles = function(value) {
32003
+ return jspb.Message.setProto3IntField(this, 3, value);
32004
+ };
32005
+
32006
+
32007
+ /**
32008
+ * optional uint64 edits = 4;
32009
+ * @return {number}
32010
+ */
32011
+ proto.gateway.web.v1.AIFileDirectory.prototype.getEdits = function() {
32012
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
32013
+ };
32014
+
32015
+
32016
+ /**
32017
+ * @param {number} value
32018
+ * @return {!proto.gateway.web.v1.AIFileDirectory} returns this
32019
+ */
32020
+ proto.gateway.web.v1.AIFileDirectory.prototype.setEdits = function(value) {
32021
+ return jspb.Message.setProto3IntField(this, 4, value);
32022
+ };
32023
+
32024
+
32025
+ /**
32026
+ * optional uint64 sessions = 5;
32027
+ * @return {number}
32028
+ */
32029
+ proto.gateway.web.v1.AIFileDirectory.prototype.getSessions = function() {
32030
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
32031
+ };
32032
+
32033
+
32034
+ /**
32035
+ * @param {number} value
32036
+ * @return {!proto.gateway.web.v1.AIFileDirectory} returns this
32037
+ */
32038
+ proto.gateway.web.v1.AIFileDirectory.prototype.setSessions = function(value) {
32039
+ return jspb.Message.setProto3IntField(this, 5, value);
32040
+ };
32041
+
32042
+
32043
+ /**
32044
+ * optional double unlanded_cost_usd = 6;
32045
+ * @return {number}
32046
+ */
32047
+ proto.gateway.web.v1.AIFileDirectory.prototype.getUnlandedCostUsd = function() {
32048
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
32049
+ };
32050
+
32051
+
32052
+ /**
32053
+ * @param {number} value
32054
+ * @return {!proto.gateway.web.v1.AIFileDirectory} returns this
32055
+ */
32056
+ proto.gateway.web.v1.AIFileDirectory.prototype.setUnlandedCostUsd = function(value) {
32057
+ return jspb.Message.setProto3FloatField(this, 6, value);
32058
+ };
32059
+
32060
+
32061
+ /**
32062
+ * optional double subscription_unlanded_cost_usd = 7;
32063
+ * @return {number}
32064
+ */
32065
+ proto.gateway.web.v1.AIFileDirectory.prototype.getSubscriptionUnlandedCostUsd = function() {
32066
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
32067
+ };
32068
+
32069
+
32070
+ /**
32071
+ * @param {number} value
32072
+ * @return {!proto.gateway.web.v1.AIFileDirectory} returns this
32073
+ */
32074
+ proto.gateway.web.v1.AIFileDirectory.prototype.setSubscriptionUnlandedCostUsd = function(value) {
32075
+ return jspb.Message.setProto3FloatField(this, 7, value);
32076
+ };
32077
+
32078
+
32079
+ /**
32080
+ * optional uint64 unlanded_output_tokens = 8;
32081
+ * @return {number}
32082
+ */
32083
+ proto.gateway.web.v1.AIFileDirectory.prototype.getUnlandedOutputTokens = function() {
32084
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
32085
+ };
32086
+
32087
+
32088
+ /**
32089
+ * @param {number} value
32090
+ * @return {!proto.gateway.web.v1.AIFileDirectory} returns this
32091
+ */
32092
+ proto.gateway.web.v1.AIFileDirectory.prototype.setUnlandedOutputTokens = function(value) {
32093
+ return jspb.Message.setProto3IntField(this, 8, value);
32094
+ };
32095
+
32096
+
32097
+ /**
32098
+ * repeated AIFileStateCount state_counts = 9;
32099
+ * @return {!Array<!proto.gateway.web.v1.AIFileStateCount>}
32100
+ */
32101
+ proto.gateway.web.v1.AIFileDirectory.prototype.getStateCountsList = function() {
32102
+ return /** @type{!Array<!proto.gateway.web.v1.AIFileStateCount>} */ (
32103
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.AIFileStateCount, 9));
32104
+ };
32105
+
32106
+
32107
+ /**
32108
+ * @param {!Array<!proto.gateway.web.v1.AIFileStateCount>} value
32109
+ * @return {!proto.gateway.web.v1.AIFileDirectory} returns this
32110
+ */
32111
+ proto.gateway.web.v1.AIFileDirectory.prototype.setStateCountsList = function(value) {
32112
+ return jspb.Message.setRepeatedWrapperField(this, 9, value);
32113
+ };
32114
+
32115
+
32116
+ /**
32117
+ * @param {!proto.gateway.web.v1.AIFileStateCount=} opt_value
32118
+ * @param {number=} opt_index
32119
+ * @return {!proto.gateway.web.v1.AIFileStateCount}
32120
+ */
32121
+ proto.gateway.web.v1.AIFileDirectory.prototype.addStateCounts = function(opt_value, opt_index) {
32122
+ return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.gateway.web.v1.AIFileStateCount, opt_index);
32123
+ };
32124
+
32125
+
32126
+ /**
32127
+ * Clears the list making it empty but non-null.
32128
+ * @return {!proto.gateway.web.v1.AIFileDirectory} returns this
32129
+ */
32130
+ proto.gateway.web.v1.AIFileDirectory.prototype.clearStateCountsList = function() {
32131
+ return this.setStateCountsList([]);
32132
+ };
32133
+
32134
+
32135
+
32136
+
32137
+
32138
+ if (jspb.Message.GENERATE_TO_OBJECT) {
32139
+ /**
32140
+ * Creates an object representation of this proto.
32141
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
32142
+ * Optional fields that are not set will be set to undefined.
32143
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
32144
+ * For the list of reserved names please see:
32145
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
32146
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
32147
+ * JSPB instance for transitional soy proto support:
32148
+ * http://goto/soy-param-migration
32149
+ * @return {!Object}
32150
+ */
32151
+ proto.gateway.web.v1.AIFileStateCount.prototype.toObject = function(opt_includeInstance) {
32152
+ return proto.gateway.web.v1.AIFileStateCount.toObject(opt_includeInstance, this);
32153
+ };
32154
+
32155
+
32156
+ /**
32157
+ * Static version of the {@see toObject} method.
32158
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
32159
+ * the JSPB instance for transitional soy proto support:
32160
+ * http://goto/soy-param-migration
32161
+ * @param {!proto.gateway.web.v1.AIFileStateCount} msg The msg instance to transform.
32162
+ * @return {!Object}
32163
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32164
+ */
32165
+ proto.gateway.web.v1.AIFileStateCount.toObject = function(includeInstance, msg) {
32166
+ var f, obj = {
32167
+ state: jspb.Message.getFieldWithDefault(msg, 1, 0),
32168
+ files: jspb.Message.getFieldWithDefault(msg, 2, 0)
32169
+ };
32170
+
32171
+ if (includeInstance) {
32172
+ obj.$jspbMessageInstance = msg;
32173
+ }
32174
+ return obj;
32175
+ };
32176
+ }
32177
+
32178
+
32179
+ /**
32180
+ * Deserializes binary data (in protobuf wire format).
32181
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
32182
+ * @return {!proto.gateway.web.v1.AIFileStateCount}
32183
+ */
32184
+ proto.gateway.web.v1.AIFileStateCount.deserializeBinary = function(bytes) {
32185
+ var reader = new jspb.BinaryReader(bytes);
32186
+ var msg = new proto.gateway.web.v1.AIFileStateCount;
32187
+ return proto.gateway.web.v1.AIFileStateCount.deserializeBinaryFromReader(msg, reader);
32188
+ };
32189
+
32190
+
32191
+ /**
32192
+ * Deserializes binary data (in protobuf wire format) from the
32193
+ * given reader into the given message object.
32194
+ * @param {!proto.gateway.web.v1.AIFileStateCount} msg The message object to deserialize into.
32195
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
32196
+ * @return {!proto.gateway.web.v1.AIFileStateCount}
32197
+ */
32198
+ proto.gateway.web.v1.AIFileStateCount.deserializeBinaryFromReader = function(msg, reader) {
32199
+ while (reader.nextField()) {
32200
+ if (reader.isEndGroup()) {
32201
+ break;
32202
+ }
32203
+ var field = reader.getFieldNumber();
32204
+ switch (field) {
32205
+ case 1:
32206
+ var value = /** @type {!proto.gateway.web.v1.AIFileLifecycle} */ (reader.readEnum());
32207
+ msg.setState(value);
32208
+ break;
32209
+ case 2:
32210
+ var value = /** @type {number} */ (reader.readUint64());
32211
+ msg.setFiles(value);
32212
+ break;
32213
+ default:
32214
+ reader.skipField();
32215
+ break;
32216
+ }
32217
+ }
32218
+ return msg;
32219
+ };
32220
+
32221
+
32222
+ /**
32223
+ * Serializes the message to binary data (in protobuf wire format).
32224
+ * @return {!Uint8Array}
32225
+ */
32226
+ proto.gateway.web.v1.AIFileStateCount.prototype.serializeBinary = function() {
32227
+ var writer = new jspb.BinaryWriter();
32228
+ proto.gateway.web.v1.AIFileStateCount.serializeBinaryToWriter(this, writer);
32229
+ return writer.getResultBuffer();
32230
+ };
32231
+
32232
+
32233
+ /**
32234
+ * Serializes the given message to binary data (in protobuf wire
32235
+ * format), writing to the given BinaryWriter.
32236
+ * @param {!proto.gateway.web.v1.AIFileStateCount} message
32237
+ * @param {!jspb.BinaryWriter} writer
32238
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32239
+ */
32240
+ proto.gateway.web.v1.AIFileStateCount.serializeBinaryToWriter = function(message, writer) {
32241
+ var f = undefined;
32242
+ f = message.getState();
32243
+ if (f !== 0.0) {
32244
+ writer.writeEnum(
32245
+ 1,
32246
+ f
32247
+ );
32248
+ }
32249
+ f = message.getFiles();
32250
+ if (f !== 0) {
32251
+ writer.writeUint64(
32252
+ 2,
32253
+ f
32254
+ );
32255
+ }
32256
+ };
32257
+
32258
+
32259
+ /**
32260
+ * optional AIFileLifecycle state = 1;
32261
+ * @return {!proto.gateway.web.v1.AIFileLifecycle}
32262
+ */
32263
+ proto.gateway.web.v1.AIFileStateCount.prototype.getState = function() {
32264
+ return /** @type {!proto.gateway.web.v1.AIFileLifecycle} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
32265
+ };
32266
+
32267
+
32268
+ /**
32269
+ * @param {!proto.gateway.web.v1.AIFileLifecycle} value
32270
+ * @return {!proto.gateway.web.v1.AIFileStateCount} returns this
32271
+ */
32272
+ proto.gateway.web.v1.AIFileStateCount.prototype.setState = function(value) {
32273
+ return jspb.Message.setProto3EnumField(this, 1, value);
32274
+ };
32275
+
32276
+
32277
+ /**
32278
+ * optional uint64 files = 2;
32279
+ * @return {number}
32280
+ */
32281
+ proto.gateway.web.v1.AIFileStateCount.prototype.getFiles = function() {
32282
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
32283
+ };
32284
+
32285
+
32286
+ /**
32287
+ * @param {number} value
32288
+ * @return {!proto.gateway.web.v1.AIFileStateCount} returns this
32289
+ */
32290
+ proto.gateway.web.v1.AIFileStateCount.prototype.setFiles = function(value) {
32291
+ return jspb.Message.setProto3IntField(this, 2, value);
32292
+ };
32293
+
32294
+
32295
+
32296
+
32297
+
30648
32298
  if (jspb.Message.GENERATE_TO_OBJECT) {
30649
32299
  /**
30650
32300
  * Creates an object representation of this proto.
@@ -36243,6 +37893,19 @@ proto.gateway.web.v1.AIFileConfidence = {
36243
37893
  AI_FILE_CONFIDENCE_INFERRED: 2
36244
37894
  };
36245
37895
 
37896
+ /**
37897
+ * @enum {number}
37898
+ */
37899
+ proto.gateway.web.v1.AIFileSort = {
37900
+ AI_FILE_SORT_UNSPECIFIED: 0,
37901
+ AI_FILE_SORT_UNLANDED_COST: 1,
37902
+ AI_FILE_SORT_NET_UNLANDED_COST: 2,
37903
+ AI_FILE_SORT_UNLANDED_OUTPUT_TOKENS: 3,
37904
+ AI_FILE_SORT_EDITS: 4,
37905
+ AI_FILE_SORT_SESSIONS: 5,
37906
+ AI_FILE_SORT_LAST_EDITED: 6
37907
+ };
37908
+
36246
37909
  /**
36247
37910
  * @enum {number}
36248
37911
  */