@miradorlabs/web-grpc 3.24.0 → 3.26.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
@@ -4140,7 +4273,7 @@ proto.gateway.web.v1.SessionPagination.prototype.setTotalPages = function(value)
4140
4273
  * @private {!Array<number>}
4141
4274
  * @const
4142
4275
  */
4143
- proto.gateway.web.v1.AISessionSummary.repeatedFields_ = [13,14,20,21,26,27,28,29,31,32];
4276
+ proto.gateway.web.v1.AISessionSummary.repeatedFields_ = [13,14,20,21,26,27,28,29,31,32,35];
4144
4277
 
4145
4278
 
4146
4279
 
@@ -4205,6 +4338,7 @@ accountIdsList: (f = jspb.Message.getRepeatedField(msg, 29)) == null ? undefined
4205
4338
  observer: jspb.Message.getFieldWithDefault(msg, 30, ""),
4206
4339
  clientsList: (f = jspb.Message.getRepeatedField(msg, 31)) == null ? undefined : f,
4207
4340
  clientVersionsList: (f = jspb.Message.getRepeatedField(msg, 32)) == null ? undefined : f,
4341
+ termaVersionsList: (f = jspb.Message.getRepeatedField(msg, 35)) == null ? undefined : f,
4208
4342
  title: jspb.Message.getFieldWithDefault(msg, 33, ""),
4209
4343
  recap: jspb.Message.getFieldWithDefault(msg, 34, "")
4210
4344
  };
@@ -4374,6 +4508,10 @@ proto.gateway.web.v1.AISessionSummary.deserializeBinaryFromReader = function(msg
4374
4508
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
4375
4509
  msg.addClientVersions(value);
4376
4510
  break;
4511
+ case 35:
4512
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4513
+ msg.addTermaVersions(value);
4514
+ break;
4377
4515
  case 33:
4378
4516
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
4379
4517
  msg.setTitle(value);
@@ -4638,6 +4776,13 @@ proto.gateway.web.v1.AISessionSummary.serializeBinaryToWriter = function(message
4638
4776
  f
4639
4777
  );
4640
4778
  }
4779
+ f = message.getTermaVersionsList();
4780
+ if (f.length > 0) {
4781
+ writer.writeRepeatedString(
4782
+ 35,
4783
+ f
4784
+ );
4785
+ }
4641
4786
  f = message.getTitle();
4642
4787
  if (f.length > 0) {
4643
4788
  writer.writeString(
@@ -5478,6 +5623,43 @@ proto.gateway.web.v1.AISessionSummary.prototype.clearClientVersionsList = functi
5478
5623
  };
5479
5624
 
5480
5625
 
5626
+ /**
5627
+ * repeated string terma_versions = 35;
5628
+ * @return {!Array<string>}
5629
+ */
5630
+ proto.gateway.web.v1.AISessionSummary.prototype.getTermaVersionsList = function() {
5631
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 35));
5632
+ };
5633
+
5634
+
5635
+ /**
5636
+ * @param {!Array<string>} value
5637
+ * @return {!proto.gateway.web.v1.AISessionSummary} returns this
5638
+ */
5639
+ proto.gateway.web.v1.AISessionSummary.prototype.setTermaVersionsList = function(value) {
5640
+ return jspb.Message.setField(this, 35, value || []);
5641
+ };
5642
+
5643
+
5644
+ /**
5645
+ * @param {string} value
5646
+ * @param {number=} opt_index
5647
+ * @return {!proto.gateway.web.v1.AISessionSummary} returns this
5648
+ */
5649
+ proto.gateway.web.v1.AISessionSummary.prototype.addTermaVersions = function(value, opt_index) {
5650
+ return jspb.Message.addToRepeatedField(this, 35, value, opt_index);
5651
+ };
5652
+
5653
+
5654
+ /**
5655
+ * Clears the list making it empty but non-null.
5656
+ * @return {!proto.gateway.web.v1.AISessionSummary} returns this
5657
+ */
5658
+ proto.gateway.web.v1.AISessionSummary.prototype.clearTermaVersionsList = function() {
5659
+ return this.setTermaVersionsList([]);
5660
+ };
5661
+
5662
+
5481
5663
  /**
5482
5664
  * optional string title = 33;
5483
5665
  * @return {string}
@@ -12237,7 +12419,8 @@ proto.gateway.web.v1.StreamGitActivitiesRequest.toObject = function(includeInsta
12237
12419
  var f, obj = {
12238
12420
  organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
12239
12421
  projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
12240
- filter: (f = msg.getFilter()) && proto.gateway.web.v1.AIGitActivityFilter.toObject(includeInstance, f)
12422
+ filter: (f = msg.getFilter()) && proto.gateway.web.v1.AIGitActivityFilter.toObject(includeInstance, f),
12423
+ pageSize: jspb.Message.getFieldWithDefault(msg, 4, 0)
12241
12424
  };
12242
12425
 
12243
12426
  if (includeInstance) {
@@ -12287,6 +12470,10 @@ proto.gateway.web.v1.StreamGitActivitiesRequest.deserializeBinaryFromReader = fu
12287
12470
  reader.readMessage(value,proto.gateway.web.v1.AIGitActivityFilter.deserializeBinaryFromReader);
12288
12471
  msg.setFilter(value);
12289
12472
  break;
12473
+ case 4:
12474
+ var value = /** @type {number} */ (reader.readInt32());
12475
+ msg.setPageSize(value);
12476
+ break;
12290
12477
  default:
12291
12478
  reader.skipField();
12292
12479
  break;
@@ -12338,6 +12525,13 @@ proto.gateway.web.v1.StreamGitActivitiesRequest.serializeBinaryToWriter = functi
12338
12525
  proto.gateway.web.v1.AIGitActivityFilter.serializeBinaryToWriter
12339
12526
  );
12340
12527
  }
12528
+ f = message.getPageSize();
12529
+ if (f !== 0) {
12530
+ writer.writeInt32(
12531
+ 4,
12532
+ f
12533
+ );
12534
+ }
12341
12535
  };
12342
12536
 
12343
12537
 
@@ -12414,6 +12608,24 @@ proto.gateway.web.v1.StreamGitActivitiesRequest.prototype.hasFilter = function()
12414
12608
  };
12415
12609
 
12416
12610
 
12611
+ /**
12612
+ * optional int32 page_size = 4;
12613
+ * @return {number}
12614
+ */
12615
+ proto.gateway.web.v1.StreamGitActivitiesRequest.prototype.getPageSize = function() {
12616
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
12617
+ };
12618
+
12619
+
12620
+ /**
12621
+ * @param {number} value
12622
+ * @return {!proto.gateway.web.v1.StreamGitActivitiesRequest} returns this
12623
+ */
12624
+ proto.gateway.web.v1.StreamGitActivitiesRequest.prototype.setPageSize = function(value) {
12625
+ return jspb.Message.setProto3IntField(this, 4, value);
12626
+ };
12627
+
12628
+
12417
12629
 
12418
12630
  /**
12419
12631
  * Oneof group definitions for this message. Each group defines the field
@@ -28662,7 +28874,7 @@ proto.gateway.web.v1.AISessionRef.prototype.setSessionId = function(value) {
28662
28874
  * @private {!Array<number>}
28663
28875
  * @const
28664
28876
  */
28665
- proto.gateway.web.v1.AIFileFilter.repeatedFields_ = [1,2,3,4,5];
28877
+ proto.gateway.web.v1.AIFileFilter.repeatedFields_ = [1,2,3,4,5,10,11,12];
28666
28878
 
28667
28879
 
28668
28880
 
@@ -28704,7 +28916,12 @@ sessionsList: jspb.Message.toObjectList(msg.getSessionsList(),
28704
28916
  minAge: (f = msg.getMinAge()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f),
28705
28917
  activeAfter: (f = msg.getActiveAfter()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
28706
28918
  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)
28919
+ abandonedHorizon: (f = msg.getAbandonedHorizon()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f),
28920
+ pathsList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f,
28921
+ directoriesList: jspb.Message.toObjectList(msg.getDirectoriesList(),
28922
+ proto.gateway.web.v1.AIFileDirectoryRef.toObject, includeInstance),
28923
+ branchesList: jspb.Message.toObjectList(msg.getBranchesList(),
28924
+ proto.gateway.web.v1.AIFileBranchRef.toObject, includeInstance)
28708
28925
  };
28709
28926
 
28710
28927
  if (includeInstance) {
@@ -28780,6 +28997,20 @@ proto.gateway.web.v1.AIFileFilter.deserializeBinaryFromReader = function(msg, re
28780
28997
  reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
28781
28998
  msg.setAbandonedHorizon(value);
28782
28999
  break;
29000
+ case 10:
29001
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
29002
+ msg.addPaths(value);
29003
+ break;
29004
+ case 11:
29005
+ var value = new proto.gateway.web.v1.AIFileDirectoryRef;
29006
+ reader.readMessage(value,proto.gateway.web.v1.AIFileDirectoryRef.deserializeBinaryFromReader);
29007
+ msg.addDirectories(value);
29008
+ break;
29009
+ case 12:
29010
+ var value = new proto.gateway.web.v1.AIFileBranchRef;
29011
+ reader.readMessage(value,proto.gateway.web.v1.AIFileBranchRef.deserializeBinaryFromReader);
29012
+ msg.addBranches(value);
29013
+ break;
28783
29014
  default:
28784
29015
  reader.skipField();
28785
29016
  break;
@@ -28877,6 +29108,29 @@ proto.gateway.web.v1.AIFileFilter.serializeBinaryToWriter = function(message, wr
28877
29108
  google_protobuf_duration_pb.Duration.serializeBinaryToWriter
28878
29109
  );
28879
29110
  }
29111
+ f = message.getPathsList();
29112
+ if (f.length > 0) {
29113
+ writer.writeRepeatedString(
29114
+ 10,
29115
+ f
29116
+ );
29117
+ }
29118
+ f = message.getDirectoriesList();
29119
+ if (f.length > 0) {
29120
+ writer.writeRepeatedMessage(
29121
+ 11,
29122
+ f,
29123
+ proto.gateway.web.v1.AIFileDirectoryRef.serializeBinaryToWriter
29124
+ );
29125
+ }
29126
+ f = message.getBranchesList();
29127
+ if (f.length > 0) {
29128
+ writer.writeRepeatedMessage(
29129
+ 12,
29130
+ f,
29131
+ proto.gateway.web.v1.AIFileBranchRef.serializeBinaryToWriter
29132
+ );
29133
+ }
28880
29134
  };
28881
29135
 
28882
29136
 
@@ -29214,6 +29468,119 @@ proto.gateway.web.v1.AIFileFilter.prototype.hasAbandonedHorizon = function() {
29214
29468
  };
29215
29469
 
29216
29470
 
29471
+ /**
29472
+ * repeated string paths = 10;
29473
+ * @return {!Array<string>}
29474
+ */
29475
+ proto.gateway.web.v1.AIFileFilter.prototype.getPathsList = function() {
29476
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 10));
29477
+ };
29478
+
29479
+
29480
+ /**
29481
+ * @param {!Array<string>} value
29482
+ * @return {!proto.gateway.web.v1.AIFileFilter} returns this
29483
+ */
29484
+ proto.gateway.web.v1.AIFileFilter.prototype.setPathsList = function(value) {
29485
+ return jspb.Message.setField(this, 10, value || []);
29486
+ };
29487
+
29488
+
29489
+ /**
29490
+ * @param {string} value
29491
+ * @param {number=} opt_index
29492
+ * @return {!proto.gateway.web.v1.AIFileFilter} returns this
29493
+ */
29494
+ proto.gateway.web.v1.AIFileFilter.prototype.addPaths = function(value, opt_index) {
29495
+ return jspb.Message.addToRepeatedField(this, 10, value, opt_index);
29496
+ };
29497
+
29498
+
29499
+ /**
29500
+ * Clears the list making it empty but non-null.
29501
+ * @return {!proto.gateway.web.v1.AIFileFilter} returns this
29502
+ */
29503
+ proto.gateway.web.v1.AIFileFilter.prototype.clearPathsList = function() {
29504
+ return this.setPathsList([]);
29505
+ };
29506
+
29507
+
29508
+ /**
29509
+ * repeated AIFileDirectoryRef directories = 11;
29510
+ * @return {!Array<!proto.gateway.web.v1.AIFileDirectoryRef>}
29511
+ */
29512
+ proto.gateway.web.v1.AIFileFilter.prototype.getDirectoriesList = function() {
29513
+ return /** @type{!Array<!proto.gateway.web.v1.AIFileDirectoryRef>} */ (
29514
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.AIFileDirectoryRef, 11));
29515
+ };
29516
+
29517
+
29518
+ /**
29519
+ * @param {!Array<!proto.gateway.web.v1.AIFileDirectoryRef>} value
29520
+ * @return {!proto.gateway.web.v1.AIFileFilter} returns this
29521
+ */
29522
+ proto.gateway.web.v1.AIFileFilter.prototype.setDirectoriesList = function(value) {
29523
+ return jspb.Message.setRepeatedWrapperField(this, 11, value);
29524
+ };
29525
+
29526
+
29527
+ /**
29528
+ * @param {!proto.gateway.web.v1.AIFileDirectoryRef=} opt_value
29529
+ * @param {number=} opt_index
29530
+ * @return {!proto.gateway.web.v1.AIFileDirectoryRef}
29531
+ */
29532
+ proto.gateway.web.v1.AIFileFilter.prototype.addDirectories = function(opt_value, opt_index) {
29533
+ return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.gateway.web.v1.AIFileDirectoryRef, opt_index);
29534
+ };
29535
+
29536
+
29537
+ /**
29538
+ * Clears the list making it empty but non-null.
29539
+ * @return {!proto.gateway.web.v1.AIFileFilter} returns this
29540
+ */
29541
+ proto.gateway.web.v1.AIFileFilter.prototype.clearDirectoriesList = function() {
29542
+ return this.setDirectoriesList([]);
29543
+ };
29544
+
29545
+
29546
+ /**
29547
+ * repeated AIFileBranchRef branches = 12;
29548
+ * @return {!Array<!proto.gateway.web.v1.AIFileBranchRef>}
29549
+ */
29550
+ proto.gateway.web.v1.AIFileFilter.prototype.getBranchesList = function() {
29551
+ return /** @type{!Array<!proto.gateway.web.v1.AIFileBranchRef>} */ (
29552
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.AIFileBranchRef, 12));
29553
+ };
29554
+
29555
+
29556
+ /**
29557
+ * @param {!Array<!proto.gateway.web.v1.AIFileBranchRef>} value
29558
+ * @return {!proto.gateway.web.v1.AIFileFilter} returns this
29559
+ */
29560
+ proto.gateway.web.v1.AIFileFilter.prototype.setBranchesList = function(value) {
29561
+ return jspb.Message.setRepeatedWrapperField(this, 12, value);
29562
+ };
29563
+
29564
+
29565
+ /**
29566
+ * @param {!proto.gateway.web.v1.AIFileBranchRef=} opt_value
29567
+ * @param {number=} opt_index
29568
+ * @return {!proto.gateway.web.v1.AIFileBranchRef}
29569
+ */
29570
+ proto.gateway.web.v1.AIFileFilter.prototype.addBranches = function(opt_value, opt_index) {
29571
+ return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.gateway.web.v1.AIFileBranchRef, opt_index);
29572
+ };
29573
+
29574
+
29575
+ /**
29576
+ * Clears the list making it empty but non-null.
29577
+ * @return {!proto.gateway.web.v1.AIFileFilter} returns this
29578
+ */
29579
+ proto.gateway.web.v1.AIFileFilter.prototype.clearBranchesList = function() {
29580
+ return this.setBranchesList([]);
29581
+ };
29582
+
29583
+
29217
29584
 
29218
29585
 
29219
29586
 
@@ -29230,8 +29597,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
29230
29597
  * http://goto/soy-param-migration
29231
29598
  * @return {!Object}
29232
29599
  */
29233
- proto.gateway.web.v1.ListFilesRequest.prototype.toObject = function(opt_includeInstance) {
29234
- return proto.gateway.web.v1.ListFilesRequest.toObject(opt_includeInstance, this);
29600
+ proto.gateway.web.v1.AIFileDirectoryRef.prototype.toObject = function(opt_includeInstance) {
29601
+ return proto.gateway.web.v1.AIFileDirectoryRef.toObject(opt_includeInstance, this);
29235
29602
  };
29236
29603
 
29237
29604
 
@@ -29240,17 +29607,14 @@ proto.gateway.web.v1.ListFilesRequest.prototype.toObject = function(opt_includeI
29240
29607
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
29241
29608
  * the JSPB instance for transitional soy proto support:
29242
29609
  * http://goto/soy-param-migration
29243
- * @param {!proto.gateway.web.v1.ListFilesRequest} msg The msg instance to transform.
29610
+ * @param {!proto.gateway.web.v1.AIFileDirectoryRef} msg The msg instance to transform.
29244
29611
  * @return {!Object}
29245
29612
  * @suppress {unusedLocalVariables} f is only used for nested messages
29246
29613
  */
29247
- proto.gateway.web.v1.ListFilesRequest.toObject = function(includeInstance, msg) {
29614
+ proto.gateway.web.v1.AIFileDirectoryRef.toObject = function(includeInstance, msg) {
29248
29615
  var f, obj = {
29249
- organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
29250
- projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
29251
- filter: (f = msg.getFilter()) && proto.gateway.web.v1.AIFileFilter.toObject(includeInstance, f),
29252
- pageSize: jspb.Message.getFieldWithDefault(msg, 4, 0),
29253
- pageToken: jspb.Message.getFieldWithDefault(msg, 5, "")
29616
+ repositoryKey: jspb.Message.getFieldWithDefault(msg, 1, ""),
29617
+ directory: jspb.Message.getFieldWithDefault(msg, 2, "")
29254
29618
  };
29255
29619
 
29256
29620
  if (includeInstance) {
@@ -29264,23 +29628,23 @@ pageToken: jspb.Message.getFieldWithDefault(msg, 5, "")
29264
29628
  /**
29265
29629
  * Deserializes binary data (in protobuf wire format).
29266
29630
  * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
29267
- * @return {!proto.gateway.web.v1.ListFilesRequest}
29631
+ * @return {!proto.gateway.web.v1.AIFileDirectoryRef}
29268
29632
  */
29269
- proto.gateway.web.v1.ListFilesRequest.deserializeBinary = function(bytes) {
29633
+ proto.gateway.web.v1.AIFileDirectoryRef.deserializeBinary = function(bytes) {
29270
29634
  var reader = new jspb.BinaryReader(bytes);
29271
- var msg = new proto.gateway.web.v1.ListFilesRequest;
29272
- return proto.gateway.web.v1.ListFilesRequest.deserializeBinaryFromReader(msg, reader);
29635
+ var msg = new proto.gateway.web.v1.AIFileDirectoryRef;
29636
+ return proto.gateway.web.v1.AIFileDirectoryRef.deserializeBinaryFromReader(msg, reader);
29273
29637
  };
29274
29638
 
29275
29639
 
29276
29640
  /**
29277
29641
  * Deserializes binary data (in protobuf wire format) from the
29278
29642
  * given reader into the given message object.
29279
- * @param {!proto.gateway.web.v1.ListFilesRequest} msg The message object to deserialize into.
29643
+ * @param {!proto.gateway.web.v1.AIFileDirectoryRef} msg The message object to deserialize into.
29280
29644
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
29281
- * @return {!proto.gateway.web.v1.ListFilesRequest}
29645
+ * @return {!proto.gateway.web.v1.AIFileDirectoryRef}
29282
29646
  */
29283
- proto.gateway.web.v1.ListFilesRequest.deserializeBinaryFromReader = function(msg, reader) {
29647
+ proto.gateway.web.v1.AIFileDirectoryRef.deserializeBinaryFromReader = function(msg, reader) {
29284
29648
  while (reader.nextField()) {
29285
29649
  if (reader.isEndGroup()) {
29286
29650
  break;
@@ -29289,24 +29653,11 @@ proto.gateway.web.v1.ListFilesRequest.deserializeBinaryFromReader = function(msg
29289
29653
  switch (field) {
29290
29654
  case 1:
29291
29655
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
29292
- msg.setOrganizationId(value);
29656
+ msg.setRepositoryKey(value);
29293
29657
  break;
29294
29658
  case 2:
29295
29659
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
29296
- msg.setProjectId(value);
29297
- break;
29298
- case 3:
29299
- var value = new proto.gateway.web.v1.AIFileFilter;
29300
- reader.readMessage(value,proto.gateway.web.v1.AIFileFilter.deserializeBinaryFromReader);
29301
- msg.setFilter(value);
29302
- break;
29303
- case 4:
29304
- var value = /** @type {number} */ (reader.readInt32());
29305
- msg.setPageSize(value);
29306
- break;
29307
- case 5:
29308
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
29309
- msg.setPageToken(value);
29660
+ msg.setDirectory(value);
29310
29661
  break;
29311
29662
  default:
29312
29663
  reader.skipField();
@@ -29321,9 +29672,9 @@ proto.gateway.web.v1.ListFilesRequest.deserializeBinaryFromReader = function(msg
29321
29672
  * Serializes the message to binary data (in protobuf wire format).
29322
29673
  * @return {!Uint8Array}
29323
29674
  */
29324
- proto.gateway.web.v1.ListFilesRequest.prototype.serializeBinary = function() {
29675
+ proto.gateway.web.v1.AIFileDirectoryRef.prototype.serializeBinary = function() {
29325
29676
  var writer = new jspb.BinaryWriter();
29326
- proto.gateway.web.v1.ListFilesRequest.serializeBinaryToWriter(this, writer);
29677
+ proto.gateway.web.v1.AIFileDirectoryRef.serializeBinaryToWriter(this, writer);
29327
29678
  return writer.getResultBuffer();
29328
29679
  };
29329
29680
 
@@ -29331,167 +29682,65 @@ proto.gateway.web.v1.ListFilesRequest.prototype.serializeBinary = function() {
29331
29682
  /**
29332
29683
  * Serializes the given message to binary data (in protobuf wire
29333
29684
  * format), writing to the given BinaryWriter.
29334
- * @param {!proto.gateway.web.v1.ListFilesRequest} message
29685
+ * @param {!proto.gateway.web.v1.AIFileDirectoryRef} message
29335
29686
  * @param {!jspb.BinaryWriter} writer
29336
29687
  * @suppress {unusedLocalVariables} f is only used for nested messages
29337
29688
  */
29338
- proto.gateway.web.v1.ListFilesRequest.serializeBinaryToWriter = function(message, writer) {
29689
+ proto.gateway.web.v1.AIFileDirectoryRef.serializeBinaryToWriter = function(message, writer) {
29339
29690
  var f = undefined;
29340
- f = message.getOrganizationId();
29691
+ f = message.getRepositoryKey();
29341
29692
  if (f.length > 0) {
29342
29693
  writer.writeString(
29343
29694
  1,
29344
29695
  f
29345
29696
  );
29346
29697
  }
29347
- f = message.getProjectId();
29698
+ f = message.getDirectory();
29348
29699
  if (f.length > 0) {
29349
29700
  writer.writeString(
29350
29701
  2,
29351
29702
  f
29352
29703
  );
29353
29704
  }
29354
- f = message.getFilter();
29355
- if (f != null) {
29356
- writer.writeMessage(
29357
- 3,
29358
- f,
29359
- proto.gateway.web.v1.AIFileFilter.serializeBinaryToWriter
29360
- );
29361
- }
29362
- f = message.getPageSize();
29363
- if (f !== 0) {
29364
- writer.writeInt32(
29365
- 4,
29366
- f
29367
- );
29368
- }
29369
- f = message.getPageToken();
29370
- if (f.length > 0) {
29371
- writer.writeString(
29372
- 5,
29373
- f
29374
- );
29375
- }
29376
29705
  };
29377
29706
 
29378
29707
 
29379
29708
  /**
29380
- * optional string organization_id = 1;
29709
+ * optional string repository_key = 1;
29381
29710
  * @return {string}
29382
29711
  */
29383
- proto.gateway.web.v1.ListFilesRequest.prototype.getOrganizationId = function() {
29712
+ proto.gateway.web.v1.AIFileDirectoryRef.prototype.getRepositoryKey = function() {
29384
29713
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
29385
29714
  };
29386
29715
 
29387
29716
 
29388
29717
  /**
29389
29718
  * @param {string} value
29390
- * @return {!proto.gateway.web.v1.ListFilesRequest} returns this
29719
+ * @return {!proto.gateway.web.v1.AIFileDirectoryRef} returns this
29391
29720
  */
29392
- proto.gateway.web.v1.ListFilesRequest.prototype.setOrganizationId = function(value) {
29721
+ proto.gateway.web.v1.AIFileDirectoryRef.prototype.setRepositoryKey = function(value) {
29393
29722
  return jspb.Message.setProto3StringField(this, 1, value);
29394
29723
  };
29395
29724
 
29396
29725
 
29397
29726
  /**
29398
- * optional string project_id = 2;
29727
+ * optional string directory = 2;
29399
29728
  * @return {string}
29400
29729
  */
29401
- proto.gateway.web.v1.ListFilesRequest.prototype.getProjectId = function() {
29730
+ proto.gateway.web.v1.AIFileDirectoryRef.prototype.getDirectory = function() {
29402
29731
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
29403
29732
  };
29404
29733
 
29405
29734
 
29406
29735
  /**
29407
29736
  * @param {string} value
29408
- * @return {!proto.gateway.web.v1.ListFilesRequest} returns this
29737
+ * @return {!proto.gateway.web.v1.AIFileDirectoryRef} returns this
29409
29738
  */
29410
- proto.gateway.web.v1.ListFilesRequest.prototype.setProjectId = function(value) {
29739
+ proto.gateway.web.v1.AIFileDirectoryRef.prototype.setDirectory = function(value) {
29411
29740
  return jspb.Message.setProto3StringField(this, 2, value);
29412
29741
  };
29413
29742
 
29414
29743
 
29415
- /**
29416
- * optional AIFileFilter filter = 3;
29417
- * @return {?proto.gateway.web.v1.AIFileFilter}
29418
- */
29419
- proto.gateway.web.v1.ListFilesRequest.prototype.getFilter = function() {
29420
- return /** @type{?proto.gateway.web.v1.AIFileFilter} */ (
29421
- jspb.Message.getWrapperField(this, proto.gateway.web.v1.AIFileFilter, 3));
29422
- };
29423
-
29424
-
29425
- /**
29426
- * @param {?proto.gateway.web.v1.AIFileFilter|undefined} value
29427
- * @return {!proto.gateway.web.v1.ListFilesRequest} returns this
29428
- */
29429
- proto.gateway.web.v1.ListFilesRequest.prototype.setFilter = function(value) {
29430
- return jspb.Message.setWrapperField(this, 3, value);
29431
- };
29432
-
29433
-
29434
- /**
29435
- * Clears the message field making it undefined.
29436
- * @return {!proto.gateway.web.v1.ListFilesRequest} returns this
29437
- */
29438
- proto.gateway.web.v1.ListFilesRequest.prototype.clearFilter = function() {
29439
- return this.setFilter(undefined);
29440
- };
29441
-
29442
-
29443
- /**
29444
- * Returns whether this field is set.
29445
- * @return {boolean}
29446
- */
29447
- proto.gateway.web.v1.ListFilesRequest.prototype.hasFilter = function() {
29448
- return jspb.Message.getField(this, 3) != null;
29449
- };
29450
-
29451
-
29452
- /**
29453
- * optional int32 page_size = 4;
29454
- * @return {number}
29455
- */
29456
- proto.gateway.web.v1.ListFilesRequest.prototype.getPageSize = function() {
29457
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
29458
- };
29459
-
29460
-
29461
- /**
29462
- * @param {number} value
29463
- * @return {!proto.gateway.web.v1.ListFilesRequest} returns this
29464
- */
29465
- proto.gateway.web.v1.ListFilesRequest.prototype.setPageSize = function(value) {
29466
- return jspb.Message.setProto3IntField(this, 4, value);
29467
- };
29468
-
29469
-
29470
- /**
29471
- * optional string page_token = 5;
29472
- * @return {string}
29473
- */
29474
- proto.gateway.web.v1.ListFilesRequest.prototype.getPageToken = function() {
29475
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
29476
- };
29477
-
29478
-
29479
- /**
29480
- * @param {string} value
29481
- * @return {!proto.gateway.web.v1.ListFilesRequest} returns this
29482
- */
29483
- proto.gateway.web.v1.ListFilesRequest.prototype.setPageToken = function(value) {
29484
- return jspb.Message.setProto3StringField(this, 5, value);
29485
- };
29486
-
29487
-
29488
-
29489
- /**
29490
- * List of repeated fields within this message type.
29491
- * @private {!Array<number>}
29492
- * @const
29493
- */
29494
- proto.gateway.web.v1.ListFilesResponse.repeatedFields_ = [2];
29495
29744
 
29496
29745
 
29497
29746
 
@@ -29508,8 +29757,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
29508
29757
  * http://goto/soy-param-migration
29509
29758
  * @return {!Object}
29510
29759
  */
29511
- proto.gateway.web.v1.ListFilesResponse.prototype.toObject = function(opt_includeInstance) {
29512
- return proto.gateway.web.v1.ListFilesResponse.toObject(opt_includeInstance, this);
29760
+ proto.gateway.web.v1.AIFileBranchRef.prototype.toObject = function(opt_includeInstance) {
29761
+ return proto.gateway.web.v1.AIFileBranchRef.toObject(opt_includeInstance, this);
29513
29762
  };
29514
29763
 
29515
29764
 
@@ -29518,16 +29767,14 @@ proto.gateway.web.v1.ListFilesResponse.prototype.toObject = function(opt_include
29518
29767
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
29519
29768
  * the JSPB instance for transitional soy proto support:
29520
29769
  * http://goto/soy-param-migration
29521
- * @param {!proto.gateway.web.v1.ListFilesResponse} msg The msg instance to transform.
29770
+ * @param {!proto.gateway.web.v1.AIFileBranchRef} msg The msg instance to transform.
29522
29771
  * @return {!Object}
29523
29772
  * @suppress {unusedLocalVariables} f is only used for nested messages
29524
29773
  */
29525
- proto.gateway.web.v1.ListFilesResponse.toObject = function(includeInstance, msg) {
29774
+ proto.gateway.web.v1.AIFileBranchRef.toObject = function(includeInstance, msg) {
29526
29775
  var f, obj = {
29527
- status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
29528
- filesList: jspb.Message.toObjectList(msg.getFilesList(),
29529
- proto.gateway.web.v1.AIFileRow.toObject, includeInstance),
29530
- nextPageToken: jspb.Message.getFieldWithDefault(msg, 3, "")
29776
+ repositoryKey: jspb.Message.getFieldWithDefault(msg, 1, ""),
29777
+ ref: jspb.Message.getFieldWithDefault(msg, 2, "")
29531
29778
  };
29532
29779
 
29533
29780
  if (includeInstance) {
@@ -29541,23 +29788,23 @@ nextPageToken: jspb.Message.getFieldWithDefault(msg, 3, "")
29541
29788
  /**
29542
29789
  * Deserializes binary data (in protobuf wire format).
29543
29790
  * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
29544
- * @return {!proto.gateway.web.v1.ListFilesResponse}
29791
+ * @return {!proto.gateway.web.v1.AIFileBranchRef}
29545
29792
  */
29546
- proto.gateway.web.v1.ListFilesResponse.deserializeBinary = function(bytes) {
29793
+ proto.gateway.web.v1.AIFileBranchRef.deserializeBinary = function(bytes) {
29547
29794
  var reader = new jspb.BinaryReader(bytes);
29548
- var msg = new proto.gateway.web.v1.ListFilesResponse;
29549
- return proto.gateway.web.v1.ListFilesResponse.deserializeBinaryFromReader(msg, reader);
29795
+ var msg = new proto.gateway.web.v1.AIFileBranchRef;
29796
+ return proto.gateway.web.v1.AIFileBranchRef.deserializeBinaryFromReader(msg, reader);
29550
29797
  };
29551
29798
 
29552
29799
 
29553
29800
  /**
29554
29801
  * Deserializes binary data (in protobuf wire format) from the
29555
29802
  * given reader into the given message object.
29556
- * @param {!proto.gateway.web.v1.ListFilesResponse} msg The message object to deserialize into.
29803
+ * @param {!proto.gateway.web.v1.AIFileBranchRef} msg The message object to deserialize into.
29557
29804
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
29558
- * @return {!proto.gateway.web.v1.ListFilesResponse}
29805
+ * @return {!proto.gateway.web.v1.AIFileBranchRef}
29559
29806
  */
29560
- proto.gateway.web.v1.ListFilesResponse.deserializeBinaryFromReader = function(msg, reader) {
29807
+ proto.gateway.web.v1.AIFileBranchRef.deserializeBinaryFromReader = function(msg, reader) {
29561
29808
  while (reader.nextField()) {
29562
29809
  if (reader.isEndGroup()) {
29563
29810
  break;
@@ -29565,18 +29812,12 @@ proto.gateway.web.v1.ListFilesResponse.deserializeBinaryFromReader = function(ms
29565
29812
  var field = reader.getFieldNumber();
29566
29813
  switch (field) {
29567
29814
  case 1:
29568
- var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
29569
- reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
29570
- msg.setStatus(value);
29815
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
29816
+ msg.setRepositoryKey(value);
29571
29817
  break;
29572
29818
  case 2:
29573
- var value = new proto.gateway.web.v1.AIFileRow;
29574
- reader.readMessage(value,proto.gateway.web.v1.AIFileRow.deserializeBinaryFromReader);
29575
- msg.addFiles(value);
29576
- break;
29577
- case 3:
29578
29819
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
29579
- msg.setNextPageToken(value);
29820
+ msg.setRef(value);
29580
29821
  break;
29581
29822
  default:
29582
29823
  reader.skipField();
@@ -29591,9 +29832,9 @@ proto.gateway.web.v1.ListFilesResponse.deserializeBinaryFromReader = function(ms
29591
29832
  * Serializes the message to binary data (in protobuf wire format).
29592
29833
  * @return {!Uint8Array}
29593
29834
  */
29594
- proto.gateway.web.v1.ListFilesResponse.prototype.serializeBinary = function() {
29835
+ proto.gateway.web.v1.AIFileBranchRef.prototype.serializeBinary = function() {
29595
29836
  var writer = new jspb.BinaryWriter();
29596
- proto.gateway.web.v1.ListFilesResponse.serializeBinaryToWriter(this, writer);
29837
+ proto.gateway.web.v1.AIFileBranchRef.serializeBinaryToWriter(this, writer);
29597
29838
  return writer.getResultBuffer();
29598
29839
  };
29599
29840
 
@@ -29601,32 +29842,23 @@ proto.gateway.web.v1.ListFilesResponse.prototype.serializeBinary = function() {
29601
29842
  /**
29602
29843
  * Serializes the given message to binary data (in protobuf wire
29603
29844
  * format), writing to the given BinaryWriter.
29604
- * @param {!proto.gateway.web.v1.ListFilesResponse} message
29845
+ * @param {!proto.gateway.web.v1.AIFileBranchRef} message
29605
29846
  * @param {!jspb.BinaryWriter} writer
29606
29847
  * @suppress {unusedLocalVariables} f is only used for nested messages
29607
29848
  */
29608
- proto.gateway.web.v1.ListFilesResponse.serializeBinaryToWriter = function(message, writer) {
29849
+ proto.gateway.web.v1.AIFileBranchRef.serializeBinaryToWriter = function(message, writer) {
29609
29850
  var f = undefined;
29610
- f = message.getStatus();
29611
- if (f != null) {
29612
- writer.writeMessage(
29613
- 1,
29614
- f,
29615
- proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
29616
- );
29617
- }
29618
- f = message.getFilesList();
29851
+ f = message.getRepositoryKey();
29619
29852
  if (f.length > 0) {
29620
- writer.writeRepeatedMessage(
29621
- 2,
29622
- f,
29623
- proto.gateway.web.v1.AIFileRow.serializeBinaryToWriter
29853
+ writer.writeString(
29854
+ 1,
29855
+ f
29624
29856
  );
29625
29857
  }
29626
- f = message.getNextPageToken();
29858
+ f = message.getRef();
29627
29859
  if (f.length > 0) {
29628
29860
  writer.writeString(
29629
- 3,
29861
+ 2,
29630
29862
  f
29631
29863
  );
29632
29864
  }
@@ -29634,46 +29866,531 @@ proto.gateway.web.v1.ListFilesResponse.serializeBinaryToWriter = function(messag
29634
29866
 
29635
29867
 
29636
29868
  /**
29637
- * optional gateway.common.v1.ResponseStatus status = 1;
29638
- * @return {?proto.gateway.common.v1.ResponseStatus}
29869
+ * optional string repository_key = 1;
29870
+ * @return {string}
29639
29871
  */
29640
- proto.gateway.web.v1.ListFilesResponse.prototype.getStatus = function() {
29641
- return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
29642
- jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
29872
+ proto.gateway.web.v1.AIFileBranchRef.prototype.getRepositoryKey = function() {
29873
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
29643
29874
  };
29644
29875
 
29645
29876
 
29646
29877
  /**
29647
- * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
29648
- * @return {!proto.gateway.web.v1.ListFilesResponse} returns this
29649
- */
29650
- proto.gateway.web.v1.ListFilesResponse.prototype.setStatus = function(value) {
29651
- return jspb.Message.setWrapperField(this, 1, value);
29878
+ * @param {string} value
29879
+ * @return {!proto.gateway.web.v1.AIFileBranchRef} returns this
29880
+ */
29881
+ proto.gateway.web.v1.AIFileBranchRef.prototype.setRepositoryKey = function(value) {
29882
+ return jspb.Message.setProto3StringField(this, 1, value);
29652
29883
  };
29653
29884
 
29654
29885
 
29655
29886
  /**
29656
- * Clears the message field making it undefined.
29657
- * @return {!proto.gateway.web.v1.ListFilesResponse} returns this
29887
+ * optional string ref = 2;
29888
+ * @return {string}
29658
29889
  */
29659
- proto.gateway.web.v1.ListFilesResponse.prototype.clearStatus = function() {
29660
- return this.setStatus(undefined);
29890
+ proto.gateway.web.v1.AIFileBranchRef.prototype.getRef = function() {
29891
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
29661
29892
  };
29662
29893
 
29663
29894
 
29664
29895
  /**
29665
- * Returns whether this field is set.
29666
- * @return {boolean}
29896
+ * @param {string} value
29897
+ * @return {!proto.gateway.web.v1.AIFileBranchRef} returns this
29667
29898
  */
29668
- proto.gateway.web.v1.ListFilesResponse.prototype.hasStatus = function() {
29669
- return jspb.Message.getField(this, 1) != null;
29899
+ proto.gateway.web.v1.AIFileBranchRef.prototype.setRef = function(value) {
29900
+ return jspb.Message.setProto3StringField(this, 2, value);
29670
29901
  };
29671
29902
 
29672
29903
 
29904
+
29905
+
29906
+
29907
+ if (jspb.Message.GENERATE_TO_OBJECT) {
29673
29908
  /**
29674
- * repeated AIFileRow files = 2;
29675
- * @return {!Array<!proto.gateway.web.v1.AIFileRow>}
29676
- */
29909
+ * Creates an object representation of this proto.
29910
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
29911
+ * Optional fields that are not set will be set to undefined.
29912
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
29913
+ * For the list of reserved names please see:
29914
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
29915
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
29916
+ * JSPB instance for transitional soy proto support:
29917
+ * http://goto/soy-param-migration
29918
+ * @return {!Object}
29919
+ */
29920
+ proto.gateway.web.v1.ListFilesRequest.prototype.toObject = function(opt_includeInstance) {
29921
+ return proto.gateway.web.v1.ListFilesRequest.toObject(opt_includeInstance, this);
29922
+ };
29923
+
29924
+
29925
+ /**
29926
+ * Static version of the {@see toObject} method.
29927
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
29928
+ * the JSPB instance for transitional soy proto support:
29929
+ * http://goto/soy-param-migration
29930
+ * @param {!proto.gateway.web.v1.ListFilesRequest} msg The msg instance to transform.
29931
+ * @return {!Object}
29932
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29933
+ */
29934
+ proto.gateway.web.v1.ListFilesRequest.toObject = function(includeInstance, msg) {
29935
+ var f, obj = {
29936
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
29937
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
29938
+ filter: (f = msg.getFilter()) && proto.gateway.web.v1.AIFileFilter.toObject(includeInstance, f),
29939
+ sort: jspb.Message.getFieldWithDefault(msg, 6, 0),
29940
+ pageSize: jspb.Message.getFieldWithDefault(msg, 4, 0),
29941
+ pageToken: jspb.Message.getFieldWithDefault(msg, 5, "")
29942
+ };
29943
+
29944
+ if (includeInstance) {
29945
+ obj.$jspbMessageInstance = msg;
29946
+ }
29947
+ return obj;
29948
+ };
29949
+ }
29950
+
29951
+
29952
+ /**
29953
+ * Deserializes binary data (in protobuf wire format).
29954
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
29955
+ * @return {!proto.gateway.web.v1.ListFilesRequest}
29956
+ */
29957
+ proto.gateway.web.v1.ListFilesRequest.deserializeBinary = function(bytes) {
29958
+ var reader = new jspb.BinaryReader(bytes);
29959
+ var msg = new proto.gateway.web.v1.ListFilesRequest;
29960
+ return proto.gateway.web.v1.ListFilesRequest.deserializeBinaryFromReader(msg, reader);
29961
+ };
29962
+
29963
+
29964
+ /**
29965
+ * Deserializes binary data (in protobuf wire format) from the
29966
+ * given reader into the given message object.
29967
+ * @param {!proto.gateway.web.v1.ListFilesRequest} msg The message object to deserialize into.
29968
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
29969
+ * @return {!proto.gateway.web.v1.ListFilesRequest}
29970
+ */
29971
+ proto.gateway.web.v1.ListFilesRequest.deserializeBinaryFromReader = function(msg, reader) {
29972
+ while (reader.nextField()) {
29973
+ if (reader.isEndGroup()) {
29974
+ break;
29975
+ }
29976
+ var field = reader.getFieldNumber();
29977
+ switch (field) {
29978
+ case 1:
29979
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
29980
+ msg.setOrganizationId(value);
29981
+ break;
29982
+ case 2:
29983
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
29984
+ msg.setProjectId(value);
29985
+ break;
29986
+ case 3:
29987
+ var value = new proto.gateway.web.v1.AIFileFilter;
29988
+ reader.readMessage(value,proto.gateway.web.v1.AIFileFilter.deserializeBinaryFromReader);
29989
+ msg.setFilter(value);
29990
+ break;
29991
+ case 6:
29992
+ var value = /** @type {!proto.gateway.web.v1.AIFileSort} */ (reader.readEnum());
29993
+ msg.setSort(value);
29994
+ break;
29995
+ case 4:
29996
+ var value = /** @type {number} */ (reader.readInt32());
29997
+ msg.setPageSize(value);
29998
+ break;
29999
+ case 5:
30000
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
30001
+ msg.setPageToken(value);
30002
+ break;
30003
+ default:
30004
+ reader.skipField();
30005
+ break;
30006
+ }
30007
+ }
30008
+ return msg;
30009
+ };
30010
+
30011
+
30012
+ /**
30013
+ * Serializes the message to binary data (in protobuf wire format).
30014
+ * @return {!Uint8Array}
30015
+ */
30016
+ proto.gateway.web.v1.ListFilesRequest.prototype.serializeBinary = function() {
30017
+ var writer = new jspb.BinaryWriter();
30018
+ proto.gateway.web.v1.ListFilesRequest.serializeBinaryToWriter(this, writer);
30019
+ return writer.getResultBuffer();
30020
+ };
30021
+
30022
+
30023
+ /**
30024
+ * Serializes the given message to binary data (in protobuf wire
30025
+ * format), writing to the given BinaryWriter.
30026
+ * @param {!proto.gateway.web.v1.ListFilesRequest} message
30027
+ * @param {!jspb.BinaryWriter} writer
30028
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30029
+ */
30030
+ proto.gateway.web.v1.ListFilesRequest.serializeBinaryToWriter = function(message, writer) {
30031
+ var f = undefined;
30032
+ f = message.getOrganizationId();
30033
+ if (f.length > 0) {
30034
+ writer.writeString(
30035
+ 1,
30036
+ f
30037
+ );
30038
+ }
30039
+ f = message.getProjectId();
30040
+ if (f.length > 0) {
30041
+ writer.writeString(
30042
+ 2,
30043
+ f
30044
+ );
30045
+ }
30046
+ f = message.getFilter();
30047
+ if (f != null) {
30048
+ writer.writeMessage(
30049
+ 3,
30050
+ f,
30051
+ proto.gateway.web.v1.AIFileFilter.serializeBinaryToWriter
30052
+ );
30053
+ }
30054
+ f = message.getSort();
30055
+ if (f !== 0.0) {
30056
+ writer.writeEnum(
30057
+ 6,
30058
+ f
30059
+ );
30060
+ }
30061
+ f = message.getPageSize();
30062
+ if (f !== 0) {
30063
+ writer.writeInt32(
30064
+ 4,
30065
+ f
30066
+ );
30067
+ }
30068
+ f = message.getPageToken();
30069
+ if (f.length > 0) {
30070
+ writer.writeString(
30071
+ 5,
30072
+ f
30073
+ );
30074
+ }
30075
+ };
30076
+
30077
+
30078
+ /**
30079
+ * optional string organization_id = 1;
30080
+ * @return {string}
30081
+ */
30082
+ proto.gateway.web.v1.ListFilesRequest.prototype.getOrganizationId = function() {
30083
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
30084
+ };
30085
+
30086
+
30087
+ /**
30088
+ * @param {string} value
30089
+ * @return {!proto.gateway.web.v1.ListFilesRequest} returns this
30090
+ */
30091
+ proto.gateway.web.v1.ListFilesRequest.prototype.setOrganizationId = function(value) {
30092
+ return jspb.Message.setProto3StringField(this, 1, value);
30093
+ };
30094
+
30095
+
30096
+ /**
30097
+ * optional string project_id = 2;
30098
+ * @return {string}
30099
+ */
30100
+ proto.gateway.web.v1.ListFilesRequest.prototype.getProjectId = function() {
30101
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
30102
+ };
30103
+
30104
+
30105
+ /**
30106
+ * @param {string} value
30107
+ * @return {!proto.gateway.web.v1.ListFilesRequest} returns this
30108
+ */
30109
+ proto.gateway.web.v1.ListFilesRequest.prototype.setProjectId = function(value) {
30110
+ return jspb.Message.setProto3StringField(this, 2, value);
30111
+ };
30112
+
30113
+
30114
+ /**
30115
+ * optional AIFileFilter filter = 3;
30116
+ * @return {?proto.gateway.web.v1.AIFileFilter}
30117
+ */
30118
+ proto.gateway.web.v1.ListFilesRequest.prototype.getFilter = function() {
30119
+ return /** @type{?proto.gateway.web.v1.AIFileFilter} */ (
30120
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.AIFileFilter, 3));
30121
+ };
30122
+
30123
+
30124
+ /**
30125
+ * @param {?proto.gateway.web.v1.AIFileFilter|undefined} value
30126
+ * @return {!proto.gateway.web.v1.ListFilesRequest} returns this
30127
+ */
30128
+ proto.gateway.web.v1.ListFilesRequest.prototype.setFilter = function(value) {
30129
+ return jspb.Message.setWrapperField(this, 3, value);
30130
+ };
30131
+
30132
+
30133
+ /**
30134
+ * Clears the message field making it undefined.
30135
+ * @return {!proto.gateway.web.v1.ListFilesRequest} returns this
30136
+ */
30137
+ proto.gateway.web.v1.ListFilesRequest.prototype.clearFilter = function() {
30138
+ return this.setFilter(undefined);
30139
+ };
30140
+
30141
+
30142
+ /**
30143
+ * Returns whether this field is set.
30144
+ * @return {boolean}
30145
+ */
30146
+ proto.gateway.web.v1.ListFilesRequest.prototype.hasFilter = function() {
30147
+ return jspb.Message.getField(this, 3) != null;
30148
+ };
30149
+
30150
+
30151
+ /**
30152
+ * optional AIFileSort sort = 6;
30153
+ * @return {!proto.gateway.web.v1.AIFileSort}
30154
+ */
30155
+ proto.gateway.web.v1.ListFilesRequest.prototype.getSort = function() {
30156
+ return /** @type {!proto.gateway.web.v1.AIFileSort} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
30157
+ };
30158
+
30159
+
30160
+ /**
30161
+ * @param {!proto.gateway.web.v1.AIFileSort} value
30162
+ * @return {!proto.gateway.web.v1.ListFilesRequest} returns this
30163
+ */
30164
+ proto.gateway.web.v1.ListFilesRequest.prototype.setSort = function(value) {
30165
+ return jspb.Message.setProto3EnumField(this, 6, value);
30166
+ };
30167
+
30168
+
30169
+ /**
30170
+ * optional int32 page_size = 4;
30171
+ * @return {number}
30172
+ */
30173
+ proto.gateway.web.v1.ListFilesRequest.prototype.getPageSize = function() {
30174
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
30175
+ };
30176
+
30177
+
30178
+ /**
30179
+ * @param {number} value
30180
+ * @return {!proto.gateway.web.v1.ListFilesRequest} returns this
30181
+ */
30182
+ proto.gateway.web.v1.ListFilesRequest.prototype.setPageSize = function(value) {
30183
+ return jspb.Message.setProto3IntField(this, 4, value);
30184
+ };
30185
+
30186
+
30187
+ /**
30188
+ * optional string page_token = 5;
30189
+ * @return {string}
30190
+ */
30191
+ proto.gateway.web.v1.ListFilesRequest.prototype.getPageToken = function() {
30192
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
30193
+ };
30194
+
30195
+
30196
+ /**
30197
+ * @param {string} value
30198
+ * @return {!proto.gateway.web.v1.ListFilesRequest} returns this
30199
+ */
30200
+ proto.gateway.web.v1.ListFilesRequest.prototype.setPageToken = function(value) {
30201
+ return jspb.Message.setProto3StringField(this, 5, value);
30202
+ };
30203
+
30204
+
30205
+
30206
+ /**
30207
+ * List of repeated fields within this message type.
30208
+ * @private {!Array<number>}
30209
+ * @const
30210
+ */
30211
+ proto.gateway.web.v1.ListFilesResponse.repeatedFields_ = [2];
30212
+
30213
+
30214
+
30215
+ if (jspb.Message.GENERATE_TO_OBJECT) {
30216
+ /**
30217
+ * Creates an object representation of this proto.
30218
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
30219
+ * Optional fields that are not set will be set to undefined.
30220
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
30221
+ * For the list of reserved names please see:
30222
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
30223
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
30224
+ * JSPB instance for transitional soy proto support:
30225
+ * http://goto/soy-param-migration
30226
+ * @return {!Object}
30227
+ */
30228
+ proto.gateway.web.v1.ListFilesResponse.prototype.toObject = function(opt_includeInstance) {
30229
+ return proto.gateway.web.v1.ListFilesResponse.toObject(opt_includeInstance, this);
30230
+ };
30231
+
30232
+
30233
+ /**
30234
+ * Static version of the {@see toObject} method.
30235
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
30236
+ * the JSPB instance for transitional soy proto support:
30237
+ * http://goto/soy-param-migration
30238
+ * @param {!proto.gateway.web.v1.ListFilesResponse} msg The msg instance to transform.
30239
+ * @return {!Object}
30240
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30241
+ */
30242
+ proto.gateway.web.v1.ListFilesResponse.toObject = function(includeInstance, msg) {
30243
+ var f, obj = {
30244
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
30245
+ filesList: jspb.Message.toObjectList(msg.getFilesList(),
30246
+ proto.gateway.web.v1.AIFileRow.toObject, includeInstance),
30247
+ nextPageToken: jspb.Message.getFieldWithDefault(msg, 3, "")
30248
+ };
30249
+
30250
+ if (includeInstance) {
30251
+ obj.$jspbMessageInstance = msg;
30252
+ }
30253
+ return obj;
30254
+ };
30255
+ }
30256
+
30257
+
30258
+ /**
30259
+ * Deserializes binary data (in protobuf wire format).
30260
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
30261
+ * @return {!proto.gateway.web.v1.ListFilesResponse}
30262
+ */
30263
+ proto.gateway.web.v1.ListFilesResponse.deserializeBinary = function(bytes) {
30264
+ var reader = new jspb.BinaryReader(bytes);
30265
+ var msg = new proto.gateway.web.v1.ListFilesResponse;
30266
+ return proto.gateway.web.v1.ListFilesResponse.deserializeBinaryFromReader(msg, reader);
30267
+ };
30268
+
30269
+
30270
+ /**
30271
+ * Deserializes binary data (in protobuf wire format) from the
30272
+ * given reader into the given message object.
30273
+ * @param {!proto.gateway.web.v1.ListFilesResponse} msg The message object to deserialize into.
30274
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
30275
+ * @return {!proto.gateway.web.v1.ListFilesResponse}
30276
+ */
30277
+ proto.gateway.web.v1.ListFilesResponse.deserializeBinaryFromReader = function(msg, reader) {
30278
+ while (reader.nextField()) {
30279
+ if (reader.isEndGroup()) {
30280
+ break;
30281
+ }
30282
+ var field = reader.getFieldNumber();
30283
+ switch (field) {
30284
+ case 1:
30285
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
30286
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
30287
+ msg.setStatus(value);
30288
+ break;
30289
+ case 2:
30290
+ var value = new proto.gateway.web.v1.AIFileRow;
30291
+ reader.readMessage(value,proto.gateway.web.v1.AIFileRow.deserializeBinaryFromReader);
30292
+ msg.addFiles(value);
30293
+ break;
30294
+ case 3:
30295
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
30296
+ msg.setNextPageToken(value);
30297
+ break;
30298
+ default:
30299
+ reader.skipField();
30300
+ break;
30301
+ }
30302
+ }
30303
+ return msg;
30304
+ };
30305
+
30306
+
30307
+ /**
30308
+ * Serializes the message to binary data (in protobuf wire format).
30309
+ * @return {!Uint8Array}
30310
+ */
30311
+ proto.gateway.web.v1.ListFilesResponse.prototype.serializeBinary = function() {
30312
+ var writer = new jspb.BinaryWriter();
30313
+ proto.gateway.web.v1.ListFilesResponse.serializeBinaryToWriter(this, writer);
30314
+ return writer.getResultBuffer();
30315
+ };
30316
+
30317
+
30318
+ /**
30319
+ * Serializes the given message to binary data (in protobuf wire
30320
+ * format), writing to the given BinaryWriter.
30321
+ * @param {!proto.gateway.web.v1.ListFilesResponse} message
30322
+ * @param {!jspb.BinaryWriter} writer
30323
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30324
+ */
30325
+ proto.gateway.web.v1.ListFilesResponse.serializeBinaryToWriter = function(message, writer) {
30326
+ var f = undefined;
30327
+ f = message.getStatus();
30328
+ if (f != null) {
30329
+ writer.writeMessage(
30330
+ 1,
30331
+ f,
30332
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
30333
+ );
30334
+ }
30335
+ f = message.getFilesList();
30336
+ if (f.length > 0) {
30337
+ writer.writeRepeatedMessage(
30338
+ 2,
30339
+ f,
30340
+ proto.gateway.web.v1.AIFileRow.serializeBinaryToWriter
30341
+ );
30342
+ }
30343
+ f = message.getNextPageToken();
30344
+ if (f.length > 0) {
30345
+ writer.writeString(
30346
+ 3,
30347
+ f
30348
+ );
30349
+ }
30350
+ };
30351
+
30352
+
30353
+ /**
30354
+ * optional gateway.common.v1.ResponseStatus status = 1;
30355
+ * @return {?proto.gateway.common.v1.ResponseStatus}
30356
+ */
30357
+ proto.gateway.web.v1.ListFilesResponse.prototype.getStatus = function() {
30358
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
30359
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
30360
+ };
30361
+
30362
+
30363
+ /**
30364
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
30365
+ * @return {!proto.gateway.web.v1.ListFilesResponse} returns this
30366
+ */
30367
+ proto.gateway.web.v1.ListFilesResponse.prototype.setStatus = function(value) {
30368
+ return jspb.Message.setWrapperField(this, 1, value);
30369
+ };
30370
+
30371
+
30372
+ /**
30373
+ * Clears the message field making it undefined.
30374
+ * @return {!proto.gateway.web.v1.ListFilesResponse} returns this
30375
+ */
30376
+ proto.gateway.web.v1.ListFilesResponse.prototype.clearStatus = function() {
30377
+ return this.setStatus(undefined);
30378
+ };
30379
+
30380
+
30381
+ /**
30382
+ * Returns whether this field is set.
30383
+ * @return {boolean}
30384
+ */
30385
+ proto.gateway.web.v1.ListFilesResponse.prototype.hasStatus = function() {
30386
+ return jspb.Message.getField(this, 1) != null;
30387
+ };
30388
+
30389
+
30390
+ /**
30391
+ * repeated AIFileRow files = 2;
30392
+ * @return {!Array<!proto.gateway.web.v1.AIFileRow>}
30393
+ */
29677
30394
  proto.gateway.web.v1.ListFilesResponse.prototype.getFilesList = function() {
29678
30395
  return /** @type{!Array<!proto.gateway.web.v1.AIFileRow>} */ (
29679
30396
  jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.AIFileRow, 2));
@@ -30645,6 +31362,988 @@ proto.gateway.web.v1.AIFileRow.prototype.setSubscriptionUnlandedCostUsd = functi
30645
31362
 
30646
31363
 
30647
31364
 
31365
+ if (jspb.Message.GENERATE_TO_OBJECT) {
31366
+ /**
31367
+ * Creates an object representation of this proto.
31368
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
31369
+ * Optional fields that are not set will be set to undefined.
31370
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
31371
+ * For the list of reserved names please see:
31372
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
31373
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
31374
+ * JSPB instance for transitional soy proto support:
31375
+ * http://goto/soy-param-migration
31376
+ * @return {!Object}
31377
+ */
31378
+ proto.gateway.web.v1.ListFileDirectoriesRequest.prototype.toObject = function(opt_includeInstance) {
31379
+ return proto.gateway.web.v1.ListFileDirectoriesRequest.toObject(opt_includeInstance, this);
31380
+ };
31381
+
31382
+
31383
+ /**
31384
+ * Static version of the {@see toObject} method.
31385
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
31386
+ * the JSPB instance for transitional soy proto support:
31387
+ * http://goto/soy-param-migration
31388
+ * @param {!proto.gateway.web.v1.ListFileDirectoriesRequest} msg The msg instance to transform.
31389
+ * @return {!Object}
31390
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31391
+ */
31392
+ proto.gateway.web.v1.ListFileDirectoriesRequest.toObject = function(includeInstance, msg) {
31393
+ var f, obj = {
31394
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
31395
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
31396
+ filter: (f = msg.getFilter()) && proto.gateway.web.v1.AIFileFilter.toObject(includeInstance, f)
31397
+ };
31398
+
31399
+ if (includeInstance) {
31400
+ obj.$jspbMessageInstance = msg;
31401
+ }
31402
+ return obj;
31403
+ };
31404
+ }
31405
+
31406
+
31407
+ /**
31408
+ * Deserializes binary data (in protobuf wire format).
31409
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
31410
+ * @return {!proto.gateway.web.v1.ListFileDirectoriesRequest}
31411
+ */
31412
+ proto.gateway.web.v1.ListFileDirectoriesRequest.deserializeBinary = function(bytes) {
31413
+ var reader = new jspb.BinaryReader(bytes);
31414
+ var msg = new proto.gateway.web.v1.ListFileDirectoriesRequest;
31415
+ return proto.gateway.web.v1.ListFileDirectoriesRequest.deserializeBinaryFromReader(msg, reader);
31416
+ };
31417
+
31418
+
31419
+ /**
31420
+ * Deserializes binary data (in protobuf wire format) from the
31421
+ * given reader into the given message object.
31422
+ * @param {!proto.gateway.web.v1.ListFileDirectoriesRequest} msg The message object to deserialize into.
31423
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
31424
+ * @return {!proto.gateway.web.v1.ListFileDirectoriesRequest}
31425
+ */
31426
+ proto.gateway.web.v1.ListFileDirectoriesRequest.deserializeBinaryFromReader = function(msg, reader) {
31427
+ while (reader.nextField()) {
31428
+ if (reader.isEndGroup()) {
31429
+ break;
31430
+ }
31431
+ var field = reader.getFieldNumber();
31432
+ switch (field) {
31433
+ case 1:
31434
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
31435
+ msg.setOrganizationId(value);
31436
+ break;
31437
+ case 2:
31438
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
31439
+ msg.setProjectId(value);
31440
+ break;
31441
+ case 3:
31442
+ var value = new proto.gateway.web.v1.AIFileFilter;
31443
+ reader.readMessage(value,proto.gateway.web.v1.AIFileFilter.deserializeBinaryFromReader);
31444
+ msg.setFilter(value);
31445
+ break;
31446
+ default:
31447
+ reader.skipField();
31448
+ break;
31449
+ }
31450
+ }
31451
+ return msg;
31452
+ };
31453
+
31454
+
31455
+ /**
31456
+ * Serializes the message to binary data (in protobuf wire format).
31457
+ * @return {!Uint8Array}
31458
+ */
31459
+ proto.gateway.web.v1.ListFileDirectoriesRequest.prototype.serializeBinary = function() {
31460
+ var writer = new jspb.BinaryWriter();
31461
+ proto.gateway.web.v1.ListFileDirectoriesRequest.serializeBinaryToWriter(this, writer);
31462
+ return writer.getResultBuffer();
31463
+ };
31464
+
31465
+
31466
+ /**
31467
+ * Serializes the given message to binary data (in protobuf wire
31468
+ * format), writing to the given BinaryWriter.
31469
+ * @param {!proto.gateway.web.v1.ListFileDirectoriesRequest} message
31470
+ * @param {!jspb.BinaryWriter} writer
31471
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31472
+ */
31473
+ proto.gateway.web.v1.ListFileDirectoriesRequest.serializeBinaryToWriter = function(message, writer) {
31474
+ var f = undefined;
31475
+ f = message.getOrganizationId();
31476
+ if (f.length > 0) {
31477
+ writer.writeString(
31478
+ 1,
31479
+ f
31480
+ );
31481
+ }
31482
+ f = message.getProjectId();
31483
+ if (f.length > 0) {
31484
+ writer.writeString(
31485
+ 2,
31486
+ f
31487
+ );
31488
+ }
31489
+ f = message.getFilter();
31490
+ if (f != null) {
31491
+ writer.writeMessage(
31492
+ 3,
31493
+ f,
31494
+ proto.gateway.web.v1.AIFileFilter.serializeBinaryToWriter
31495
+ );
31496
+ }
31497
+ };
31498
+
31499
+
31500
+ /**
31501
+ * optional string organization_id = 1;
31502
+ * @return {string}
31503
+ */
31504
+ proto.gateway.web.v1.ListFileDirectoriesRequest.prototype.getOrganizationId = function() {
31505
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
31506
+ };
31507
+
31508
+
31509
+ /**
31510
+ * @param {string} value
31511
+ * @return {!proto.gateway.web.v1.ListFileDirectoriesRequest} returns this
31512
+ */
31513
+ proto.gateway.web.v1.ListFileDirectoriesRequest.prototype.setOrganizationId = function(value) {
31514
+ return jspb.Message.setProto3StringField(this, 1, value);
31515
+ };
31516
+
31517
+
31518
+ /**
31519
+ * optional string project_id = 2;
31520
+ * @return {string}
31521
+ */
31522
+ proto.gateway.web.v1.ListFileDirectoriesRequest.prototype.getProjectId = function() {
31523
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
31524
+ };
31525
+
31526
+
31527
+ /**
31528
+ * @param {string} value
31529
+ * @return {!proto.gateway.web.v1.ListFileDirectoriesRequest} returns this
31530
+ */
31531
+ proto.gateway.web.v1.ListFileDirectoriesRequest.prototype.setProjectId = function(value) {
31532
+ return jspb.Message.setProto3StringField(this, 2, value);
31533
+ };
31534
+
31535
+
31536
+ /**
31537
+ * optional AIFileFilter filter = 3;
31538
+ * @return {?proto.gateway.web.v1.AIFileFilter}
31539
+ */
31540
+ proto.gateway.web.v1.ListFileDirectoriesRequest.prototype.getFilter = function() {
31541
+ return /** @type{?proto.gateway.web.v1.AIFileFilter} */ (
31542
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.AIFileFilter, 3));
31543
+ };
31544
+
31545
+
31546
+ /**
31547
+ * @param {?proto.gateway.web.v1.AIFileFilter|undefined} value
31548
+ * @return {!proto.gateway.web.v1.ListFileDirectoriesRequest} returns this
31549
+ */
31550
+ proto.gateway.web.v1.ListFileDirectoriesRequest.prototype.setFilter = function(value) {
31551
+ return jspb.Message.setWrapperField(this, 3, value);
31552
+ };
31553
+
31554
+
31555
+ /**
31556
+ * Clears the message field making it undefined.
31557
+ * @return {!proto.gateway.web.v1.ListFileDirectoriesRequest} returns this
31558
+ */
31559
+ proto.gateway.web.v1.ListFileDirectoriesRequest.prototype.clearFilter = function() {
31560
+ return this.setFilter(undefined);
31561
+ };
31562
+
31563
+
31564
+ /**
31565
+ * Returns whether this field is set.
31566
+ * @return {boolean}
31567
+ */
31568
+ proto.gateway.web.v1.ListFileDirectoriesRequest.prototype.hasFilter = function() {
31569
+ return jspb.Message.getField(this, 3) != null;
31570
+ };
31571
+
31572
+
31573
+
31574
+ /**
31575
+ * List of repeated fields within this message type.
31576
+ * @private {!Array<number>}
31577
+ * @const
31578
+ */
31579
+ proto.gateway.web.v1.ListFileDirectoriesResponse.repeatedFields_ = [2];
31580
+
31581
+
31582
+
31583
+ if (jspb.Message.GENERATE_TO_OBJECT) {
31584
+ /**
31585
+ * Creates an object representation of this proto.
31586
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
31587
+ * Optional fields that are not set will be set to undefined.
31588
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
31589
+ * For the list of reserved names please see:
31590
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
31591
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
31592
+ * JSPB instance for transitional soy proto support:
31593
+ * http://goto/soy-param-migration
31594
+ * @return {!Object}
31595
+ */
31596
+ proto.gateway.web.v1.ListFileDirectoriesResponse.prototype.toObject = function(opt_includeInstance) {
31597
+ return proto.gateway.web.v1.ListFileDirectoriesResponse.toObject(opt_includeInstance, this);
31598
+ };
31599
+
31600
+
31601
+ /**
31602
+ * Static version of the {@see toObject} method.
31603
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
31604
+ * the JSPB instance for transitional soy proto support:
31605
+ * http://goto/soy-param-migration
31606
+ * @param {!proto.gateway.web.v1.ListFileDirectoriesResponse} msg The msg instance to transform.
31607
+ * @return {!Object}
31608
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31609
+ */
31610
+ proto.gateway.web.v1.ListFileDirectoriesResponse.toObject = function(includeInstance, msg) {
31611
+ var f, obj = {
31612
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
31613
+ directoriesList: jspb.Message.toObjectList(msg.getDirectoriesList(),
31614
+ proto.gateway.web.v1.AIFileDirectory.toObject, includeInstance)
31615
+ };
31616
+
31617
+ if (includeInstance) {
31618
+ obj.$jspbMessageInstance = msg;
31619
+ }
31620
+ return obj;
31621
+ };
31622
+ }
31623
+
31624
+
31625
+ /**
31626
+ * Deserializes binary data (in protobuf wire format).
31627
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
31628
+ * @return {!proto.gateway.web.v1.ListFileDirectoriesResponse}
31629
+ */
31630
+ proto.gateway.web.v1.ListFileDirectoriesResponse.deserializeBinary = function(bytes) {
31631
+ var reader = new jspb.BinaryReader(bytes);
31632
+ var msg = new proto.gateway.web.v1.ListFileDirectoriesResponse;
31633
+ return proto.gateway.web.v1.ListFileDirectoriesResponse.deserializeBinaryFromReader(msg, reader);
31634
+ };
31635
+
31636
+
31637
+ /**
31638
+ * Deserializes binary data (in protobuf wire format) from the
31639
+ * given reader into the given message object.
31640
+ * @param {!proto.gateway.web.v1.ListFileDirectoriesResponse} msg The message object to deserialize into.
31641
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
31642
+ * @return {!proto.gateway.web.v1.ListFileDirectoriesResponse}
31643
+ */
31644
+ proto.gateway.web.v1.ListFileDirectoriesResponse.deserializeBinaryFromReader = function(msg, reader) {
31645
+ while (reader.nextField()) {
31646
+ if (reader.isEndGroup()) {
31647
+ break;
31648
+ }
31649
+ var field = reader.getFieldNumber();
31650
+ switch (field) {
31651
+ case 1:
31652
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
31653
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
31654
+ msg.setStatus(value);
31655
+ break;
31656
+ case 2:
31657
+ var value = new proto.gateway.web.v1.AIFileDirectory;
31658
+ reader.readMessage(value,proto.gateway.web.v1.AIFileDirectory.deserializeBinaryFromReader);
31659
+ msg.addDirectories(value);
31660
+ break;
31661
+ default:
31662
+ reader.skipField();
31663
+ break;
31664
+ }
31665
+ }
31666
+ return msg;
31667
+ };
31668
+
31669
+
31670
+ /**
31671
+ * Serializes the message to binary data (in protobuf wire format).
31672
+ * @return {!Uint8Array}
31673
+ */
31674
+ proto.gateway.web.v1.ListFileDirectoriesResponse.prototype.serializeBinary = function() {
31675
+ var writer = new jspb.BinaryWriter();
31676
+ proto.gateway.web.v1.ListFileDirectoriesResponse.serializeBinaryToWriter(this, writer);
31677
+ return writer.getResultBuffer();
31678
+ };
31679
+
31680
+
31681
+ /**
31682
+ * Serializes the given message to binary data (in protobuf wire
31683
+ * format), writing to the given BinaryWriter.
31684
+ * @param {!proto.gateway.web.v1.ListFileDirectoriesResponse} message
31685
+ * @param {!jspb.BinaryWriter} writer
31686
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31687
+ */
31688
+ proto.gateway.web.v1.ListFileDirectoriesResponse.serializeBinaryToWriter = function(message, writer) {
31689
+ var f = undefined;
31690
+ f = message.getStatus();
31691
+ if (f != null) {
31692
+ writer.writeMessage(
31693
+ 1,
31694
+ f,
31695
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
31696
+ );
31697
+ }
31698
+ f = message.getDirectoriesList();
31699
+ if (f.length > 0) {
31700
+ writer.writeRepeatedMessage(
31701
+ 2,
31702
+ f,
31703
+ proto.gateway.web.v1.AIFileDirectory.serializeBinaryToWriter
31704
+ );
31705
+ }
31706
+ };
31707
+
31708
+
31709
+ /**
31710
+ * optional gateway.common.v1.ResponseStatus status = 1;
31711
+ * @return {?proto.gateway.common.v1.ResponseStatus}
31712
+ */
31713
+ proto.gateway.web.v1.ListFileDirectoriesResponse.prototype.getStatus = function() {
31714
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
31715
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
31716
+ };
31717
+
31718
+
31719
+ /**
31720
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
31721
+ * @return {!proto.gateway.web.v1.ListFileDirectoriesResponse} returns this
31722
+ */
31723
+ proto.gateway.web.v1.ListFileDirectoriesResponse.prototype.setStatus = function(value) {
31724
+ return jspb.Message.setWrapperField(this, 1, value);
31725
+ };
31726
+
31727
+
31728
+ /**
31729
+ * Clears the message field making it undefined.
31730
+ * @return {!proto.gateway.web.v1.ListFileDirectoriesResponse} returns this
31731
+ */
31732
+ proto.gateway.web.v1.ListFileDirectoriesResponse.prototype.clearStatus = function() {
31733
+ return this.setStatus(undefined);
31734
+ };
31735
+
31736
+
31737
+ /**
31738
+ * Returns whether this field is set.
31739
+ * @return {boolean}
31740
+ */
31741
+ proto.gateway.web.v1.ListFileDirectoriesResponse.prototype.hasStatus = function() {
31742
+ return jspb.Message.getField(this, 1) != null;
31743
+ };
31744
+
31745
+
31746
+ /**
31747
+ * repeated AIFileDirectory directories = 2;
31748
+ * @return {!Array<!proto.gateway.web.v1.AIFileDirectory>}
31749
+ */
31750
+ proto.gateway.web.v1.ListFileDirectoriesResponse.prototype.getDirectoriesList = function() {
31751
+ return /** @type{!Array<!proto.gateway.web.v1.AIFileDirectory>} */ (
31752
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.AIFileDirectory, 2));
31753
+ };
31754
+
31755
+
31756
+ /**
31757
+ * @param {!Array<!proto.gateway.web.v1.AIFileDirectory>} value
31758
+ * @return {!proto.gateway.web.v1.ListFileDirectoriesResponse} returns this
31759
+ */
31760
+ proto.gateway.web.v1.ListFileDirectoriesResponse.prototype.setDirectoriesList = function(value) {
31761
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
31762
+ };
31763
+
31764
+
31765
+ /**
31766
+ * @param {!proto.gateway.web.v1.AIFileDirectory=} opt_value
31767
+ * @param {number=} opt_index
31768
+ * @return {!proto.gateway.web.v1.AIFileDirectory}
31769
+ */
31770
+ proto.gateway.web.v1.ListFileDirectoriesResponse.prototype.addDirectories = function(opt_value, opt_index) {
31771
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.AIFileDirectory, opt_index);
31772
+ };
31773
+
31774
+
31775
+ /**
31776
+ * Clears the list making it empty but non-null.
31777
+ * @return {!proto.gateway.web.v1.ListFileDirectoriesResponse} returns this
31778
+ */
31779
+ proto.gateway.web.v1.ListFileDirectoriesResponse.prototype.clearDirectoriesList = function() {
31780
+ return this.setDirectoriesList([]);
31781
+ };
31782
+
31783
+
31784
+
31785
+ /**
31786
+ * List of repeated fields within this message type.
31787
+ * @private {!Array<number>}
31788
+ * @const
31789
+ */
31790
+ proto.gateway.web.v1.AIFileDirectory.repeatedFields_ = [9];
31791
+
31792
+
31793
+
31794
+ if (jspb.Message.GENERATE_TO_OBJECT) {
31795
+ /**
31796
+ * Creates an object representation of this proto.
31797
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
31798
+ * Optional fields that are not set will be set to undefined.
31799
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
31800
+ * For the list of reserved names please see:
31801
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
31802
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
31803
+ * JSPB instance for transitional soy proto support:
31804
+ * http://goto/soy-param-migration
31805
+ * @return {!Object}
31806
+ */
31807
+ proto.gateway.web.v1.AIFileDirectory.prototype.toObject = function(opt_includeInstance) {
31808
+ return proto.gateway.web.v1.AIFileDirectory.toObject(opt_includeInstance, this);
31809
+ };
31810
+
31811
+
31812
+ /**
31813
+ * Static version of the {@see toObject} method.
31814
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
31815
+ * the JSPB instance for transitional soy proto support:
31816
+ * http://goto/soy-param-migration
31817
+ * @param {!proto.gateway.web.v1.AIFileDirectory} msg The msg instance to transform.
31818
+ * @return {!Object}
31819
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31820
+ */
31821
+ proto.gateway.web.v1.AIFileDirectory.toObject = function(includeInstance, msg) {
31822
+ var f, obj = {
31823
+ repositoryKey: jspb.Message.getFieldWithDefault(msg, 1, ""),
31824
+ directory: jspb.Message.getFieldWithDefault(msg, 2, ""),
31825
+ files: jspb.Message.getFieldWithDefault(msg, 3, 0),
31826
+ edits: jspb.Message.getFieldWithDefault(msg, 4, 0),
31827
+ sessions: jspb.Message.getFieldWithDefault(msg, 5, 0),
31828
+ unlandedCostUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
31829
+ subscriptionUnlandedCostUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
31830
+ unlandedOutputTokens: jspb.Message.getFieldWithDefault(msg, 8, 0),
31831
+ stateCountsList: jspb.Message.toObjectList(msg.getStateCountsList(),
31832
+ proto.gateway.web.v1.AIFileStateCount.toObject, includeInstance)
31833
+ };
31834
+
31835
+ if (includeInstance) {
31836
+ obj.$jspbMessageInstance = msg;
31837
+ }
31838
+ return obj;
31839
+ };
31840
+ }
31841
+
31842
+
31843
+ /**
31844
+ * Deserializes binary data (in protobuf wire format).
31845
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
31846
+ * @return {!proto.gateway.web.v1.AIFileDirectory}
31847
+ */
31848
+ proto.gateway.web.v1.AIFileDirectory.deserializeBinary = function(bytes) {
31849
+ var reader = new jspb.BinaryReader(bytes);
31850
+ var msg = new proto.gateway.web.v1.AIFileDirectory;
31851
+ return proto.gateway.web.v1.AIFileDirectory.deserializeBinaryFromReader(msg, reader);
31852
+ };
31853
+
31854
+
31855
+ /**
31856
+ * Deserializes binary data (in protobuf wire format) from the
31857
+ * given reader into the given message object.
31858
+ * @param {!proto.gateway.web.v1.AIFileDirectory} msg The message object to deserialize into.
31859
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
31860
+ * @return {!proto.gateway.web.v1.AIFileDirectory}
31861
+ */
31862
+ proto.gateway.web.v1.AIFileDirectory.deserializeBinaryFromReader = function(msg, reader) {
31863
+ while (reader.nextField()) {
31864
+ if (reader.isEndGroup()) {
31865
+ break;
31866
+ }
31867
+ var field = reader.getFieldNumber();
31868
+ switch (field) {
31869
+ case 1:
31870
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
31871
+ msg.setRepositoryKey(value);
31872
+ break;
31873
+ case 2:
31874
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
31875
+ msg.setDirectory(value);
31876
+ break;
31877
+ case 3:
31878
+ var value = /** @type {number} */ (reader.readUint64());
31879
+ msg.setFiles(value);
31880
+ break;
31881
+ case 4:
31882
+ var value = /** @type {number} */ (reader.readUint64());
31883
+ msg.setEdits(value);
31884
+ break;
31885
+ case 5:
31886
+ var value = /** @type {number} */ (reader.readUint64());
31887
+ msg.setSessions(value);
31888
+ break;
31889
+ case 6:
31890
+ var value = /** @type {number} */ (reader.readDouble());
31891
+ msg.setUnlandedCostUsd(value);
31892
+ break;
31893
+ case 7:
31894
+ var value = /** @type {number} */ (reader.readDouble());
31895
+ msg.setSubscriptionUnlandedCostUsd(value);
31896
+ break;
31897
+ case 8:
31898
+ var value = /** @type {number} */ (reader.readUint64());
31899
+ msg.setUnlandedOutputTokens(value);
31900
+ break;
31901
+ case 9:
31902
+ var value = new proto.gateway.web.v1.AIFileStateCount;
31903
+ reader.readMessage(value,proto.gateway.web.v1.AIFileStateCount.deserializeBinaryFromReader);
31904
+ msg.addStateCounts(value);
31905
+ break;
31906
+ default:
31907
+ reader.skipField();
31908
+ break;
31909
+ }
31910
+ }
31911
+ return msg;
31912
+ };
31913
+
31914
+
31915
+ /**
31916
+ * Serializes the message to binary data (in protobuf wire format).
31917
+ * @return {!Uint8Array}
31918
+ */
31919
+ proto.gateway.web.v1.AIFileDirectory.prototype.serializeBinary = function() {
31920
+ var writer = new jspb.BinaryWriter();
31921
+ proto.gateway.web.v1.AIFileDirectory.serializeBinaryToWriter(this, writer);
31922
+ return writer.getResultBuffer();
31923
+ };
31924
+
31925
+
31926
+ /**
31927
+ * Serializes the given message to binary data (in protobuf wire
31928
+ * format), writing to the given BinaryWriter.
31929
+ * @param {!proto.gateway.web.v1.AIFileDirectory} message
31930
+ * @param {!jspb.BinaryWriter} writer
31931
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31932
+ */
31933
+ proto.gateway.web.v1.AIFileDirectory.serializeBinaryToWriter = function(message, writer) {
31934
+ var f = undefined;
31935
+ f = message.getRepositoryKey();
31936
+ if (f.length > 0) {
31937
+ writer.writeString(
31938
+ 1,
31939
+ f
31940
+ );
31941
+ }
31942
+ f = message.getDirectory();
31943
+ if (f.length > 0) {
31944
+ writer.writeString(
31945
+ 2,
31946
+ f
31947
+ );
31948
+ }
31949
+ f = message.getFiles();
31950
+ if (f !== 0) {
31951
+ writer.writeUint64(
31952
+ 3,
31953
+ f
31954
+ );
31955
+ }
31956
+ f = message.getEdits();
31957
+ if (f !== 0) {
31958
+ writer.writeUint64(
31959
+ 4,
31960
+ f
31961
+ );
31962
+ }
31963
+ f = message.getSessions();
31964
+ if (f !== 0) {
31965
+ writer.writeUint64(
31966
+ 5,
31967
+ f
31968
+ );
31969
+ }
31970
+ f = message.getUnlandedCostUsd();
31971
+ if (f !== 0.0) {
31972
+ writer.writeDouble(
31973
+ 6,
31974
+ f
31975
+ );
31976
+ }
31977
+ f = message.getSubscriptionUnlandedCostUsd();
31978
+ if (f !== 0.0) {
31979
+ writer.writeDouble(
31980
+ 7,
31981
+ f
31982
+ );
31983
+ }
31984
+ f = message.getUnlandedOutputTokens();
31985
+ if (f !== 0) {
31986
+ writer.writeUint64(
31987
+ 8,
31988
+ f
31989
+ );
31990
+ }
31991
+ f = message.getStateCountsList();
31992
+ if (f.length > 0) {
31993
+ writer.writeRepeatedMessage(
31994
+ 9,
31995
+ f,
31996
+ proto.gateway.web.v1.AIFileStateCount.serializeBinaryToWriter
31997
+ );
31998
+ }
31999
+ };
32000
+
32001
+
32002
+ /**
32003
+ * optional string repository_key = 1;
32004
+ * @return {string}
32005
+ */
32006
+ proto.gateway.web.v1.AIFileDirectory.prototype.getRepositoryKey = function() {
32007
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
32008
+ };
32009
+
32010
+
32011
+ /**
32012
+ * @param {string} value
32013
+ * @return {!proto.gateway.web.v1.AIFileDirectory} returns this
32014
+ */
32015
+ proto.gateway.web.v1.AIFileDirectory.prototype.setRepositoryKey = function(value) {
32016
+ return jspb.Message.setProto3StringField(this, 1, value);
32017
+ };
32018
+
32019
+
32020
+ /**
32021
+ * optional string directory = 2;
32022
+ * @return {string}
32023
+ */
32024
+ proto.gateway.web.v1.AIFileDirectory.prototype.getDirectory = function() {
32025
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
32026
+ };
32027
+
32028
+
32029
+ /**
32030
+ * @param {string} value
32031
+ * @return {!proto.gateway.web.v1.AIFileDirectory} returns this
32032
+ */
32033
+ proto.gateway.web.v1.AIFileDirectory.prototype.setDirectory = function(value) {
32034
+ return jspb.Message.setProto3StringField(this, 2, value);
32035
+ };
32036
+
32037
+
32038
+ /**
32039
+ * optional uint64 files = 3;
32040
+ * @return {number}
32041
+ */
32042
+ proto.gateway.web.v1.AIFileDirectory.prototype.getFiles = function() {
32043
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
32044
+ };
32045
+
32046
+
32047
+ /**
32048
+ * @param {number} value
32049
+ * @return {!proto.gateway.web.v1.AIFileDirectory} returns this
32050
+ */
32051
+ proto.gateway.web.v1.AIFileDirectory.prototype.setFiles = function(value) {
32052
+ return jspb.Message.setProto3IntField(this, 3, value);
32053
+ };
32054
+
32055
+
32056
+ /**
32057
+ * optional uint64 edits = 4;
32058
+ * @return {number}
32059
+ */
32060
+ proto.gateway.web.v1.AIFileDirectory.prototype.getEdits = function() {
32061
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
32062
+ };
32063
+
32064
+
32065
+ /**
32066
+ * @param {number} value
32067
+ * @return {!proto.gateway.web.v1.AIFileDirectory} returns this
32068
+ */
32069
+ proto.gateway.web.v1.AIFileDirectory.prototype.setEdits = function(value) {
32070
+ return jspb.Message.setProto3IntField(this, 4, value);
32071
+ };
32072
+
32073
+
32074
+ /**
32075
+ * optional uint64 sessions = 5;
32076
+ * @return {number}
32077
+ */
32078
+ proto.gateway.web.v1.AIFileDirectory.prototype.getSessions = function() {
32079
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
32080
+ };
32081
+
32082
+
32083
+ /**
32084
+ * @param {number} value
32085
+ * @return {!proto.gateway.web.v1.AIFileDirectory} returns this
32086
+ */
32087
+ proto.gateway.web.v1.AIFileDirectory.prototype.setSessions = function(value) {
32088
+ return jspb.Message.setProto3IntField(this, 5, value);
32089
+ };
32090
+
32091
+
32092
+ /**
32093
+ * optional double unlanded_cost_usd = 6;
32094
+ * @return {number}
32095
+ */
32096
+ proto.gateway.web.v1.AIFileDirectory.prototype.getUnlandedCostUsd = function() {
32097
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
32098
+ };
32099
+
32100
+
32101
+ /**
32102
+ * @param {number} value
32103
+ * @return {!proto.gateway.web.v1.AIFileDirectory} returns this
32104
+ */
32105
+ proto.gateway.web.v1.AIFileDirectory.prototype.setUnlandedCostUsd = function(value) {
32106
+ return jspb.Message.setProto3FloatField(this, 6, value);
32107
+ };
32108
+
32109
+
32110
+ /**
32111
+ * optional double subscription_unlanded_cost_usd = 7;
32112
+ * @return {number}
32113
+ */
32114
+ proto.gateway.web.v1.AIFileDirectory.prototype.getSubscriptionUnlandedCostUsd = function() {
32115
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
32116
+ };
32117
+
32118
+
32119
+ /**
32120
+ * @param {number} value
32121
+ * @return {!proto.gateway.web.v1.AIFileDirectory} returns this
32122
+ */
32123
+ proto.gateway.web.v1.AIFileDirectory.prototype.setSubscriptionUnlandedCostUsd = function(value) {
32124
+ return jspb.Message.setProto3FloatField(this, 7, value);
32125
+ };
32126
+
32127
+
32128
+ /**
32129
+ * optional uint64 unlanded_output_tokens = 8;
32130
+ * @return {number}
32131
+ */
32132
+ proto.gateway.web.v1.AIFileDirectory.prototype.getUnlandedOutputTokens = function() {
32133
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
32134
+ };
32135
+
32136
+
32137
+ /**
32138
+ * @param {number} value
32139
+ * @return {!proto.gateway.web.v1.AIFileDirectory} returns this
32140
+ */
32141
+ proto.gateway.web.v1.AIFileDirectory.prototype.setUnlandedOutputTokens = function(value) {
32142
+ return jspb.Message.setProto3IntField(this, 8, value);
32143
+ };
32144
+
32145
+
32146
+ /**
32147
+ * repeated AIFileStateCount state_counts = 9;
32148
+ * @return {!Array<!proto.gateway.web.v1.AIFileStateCount>}
32149
+ */
32150
+ proto.gateway.web.v1.AIFileDirectory.prototype.getStateCountsList = function() {
32151
+ return /** @type{!Array<!proto.gateway.web.v1.AIFileStateCount>} */ (
32152
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.AIFileStateCount, 9));
32153
+ };
32154
+
32155
+
32156
+ /**
32157
+ * @param {!Array<!proto.gateway.web.v1.AIFileStateCount>} value
32158
+ * @return {!proto.gateway.web.v1.AIFileDirectory} returns this
32159
+ */
32160
+ proto.gateway.web.v1.AIFileDirectory.prototype.setStateCountsList = function(value) {
32161
+ return jspb.Message.setRepeatedWrapperField(this, 9, value);
32162
+ };
32163
+
32164
+
32165
+ /**
32166
+ * @param {!proto.gateway.web.v1.AIFileStateCount=} opt_value
32167
+ * @param {number=} opt_index
32168
+ * @return {!proto.gateway.web.v1.AIFileStateCount}
32169
+ */
32170
+ proto.gateway.web.v1.AIFileDirectory.prototype.addStateCounts = function(opt_value, opt_index) {
32171
+ return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.gateway.web.v1.AIFileStateCount, opt_index);
32172
+ };
32173
+
32174
+
32175
+ /**
32176
+ * Clears the list making it empty but non-null.
32177
+ * @return {!proto.gateway.web.v1.AIFileDirectory} returns this
32178
+ */
32179
+ proto.gateway.web.v1.AIFileDirectory.prototype.clearStateCountsList = function() {
32180
+ return this.setStateCountsList([]);
32181
+ };
32182
+
32183
+
32184
+
32185
+
32186
+
32187
+ if (jspb.Message.GENERATE_TO_OBJECT) {
32188
+ /**
32189
+ * Creates an object representation of this proto.
32190
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
32191
+ * Optional fields that are not set will be set to undefined.
32192
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
32193
+ * For the list of reserved names please see:
32194
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
32195
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
32196
+ * JSPB instance for transitional soy proto support:
32197
+ * http://goto/soy-param-migration
32198
+ * @return {!Object}
32199
+ */
32200
+ proto.gateway.web.v1.AIFileStateCount.prototype.toObject = function(opt_includeInstance) {
32201
+ return proto.gateway.web.v1.AIFileStateCount.toObject(opt_includeInstance, this);
32202
+ };
32203
+
32204
+
32205
+ /**
32206
+ * Static version of the {@see toObject} method.
32207
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
32208
+ * the JSPB instance for transitional soy proto support:
32209
+ * http://goto/soy-param-migration
32210
+ * @param {!proto.gateway.web.v1.AIFileStateCount} msg The msg instance to transform.
32211
+ * @return {!Object}
32212
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32213
+ */
32214
+ proto.gateway.web.v1.AIFileStateCount.toObject = function(includeInstance, msg) {
32215
+ var f, obj = {
32216
+ state: jspb.Message.getFieldWithDefault(msg, 1, 0),
32217
+ files: jspb.Message.getFieldWithDefault(msg, 2, 0)
32218
+ };
32219
+
32220
+ if (includeInstance) {
32221
+ obj.$jspbMessageInstance = msg;
32222
+ }
32223
+ return obj;
32224
+ };
32225
+ }
32226
+
32227
+
32228
+ /**
32229
+ * Deserializes binary data (in protobuf wire format).
32230
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
32231
+ * @return {!proto.gateway.web.v1.AIFileStateCount}
32232
+ */
32233
+ proto.gateway.web.v1.AIFileStateCount.deserializeBinary = function(bytes) {
32234
+ var reader = new jspb.BinaryReader(bytes);
32235
+ var msg = new proto.gateway.web.v1.AIFileStateCount;
32236
+ return proto.gateway.web.v1.AIFileStateCount.deserializeBinaryFromReader(msg, reader);
32237
+ };
32238
+
32239
+
32240
+ /**
32241
+ * Deserializes binary data (in protobuf wire format) from the
32242
+ * given reader into the given message object.
32243
+ * @param {!proto.gateway.web.v1.AIFileStateCount} msg The message object to deserialize into.
32244
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
32245
+ * @return {!proto.gateway.web.v1.AIFileStateCount}
32246
+ */
32247
+ proto.gateway.web.v1.AIFileStateCount.deserializeBinaryFromReader = function(msg, reader) {
32248
+ while (reader.nextField()) {
32249
+ if (reader.isEndGroup()) {
32250
+ break;
32251
+ }
32252
+ var field = reader.getFieldNumber();
32253
+ switch (field) {
32254
+ case 1:
32255
+ var value = /** @type {!proto.gateway.web.v1.AIFileLifecycle} */ (reader.readEnum());
32256
+ msg.setState(value);
32257
+ break;
32258
+ case 2:
32259
+ var value = /** @type {number} */ (reader.readUint64());
32260
+ msg.setFiles(value);
32261
+ break;
32262
+ default:
32263
+ reader.skipField();
32264
+ break;
32265
+ }
32266
+ }
32267
+ return msg;
32268
+ };
32269
+
32270
+
32271
+ /**
32272
+ * Serializes the message to binary data (in protobuf wire format).
32273
+ * @return {!Uint8Array}
32274
+ */
32275
+ proto.gateway.web.v1.AIFileStateCount.prototype.serializeBinary = function() {
32276
+ var writer = new jspb.BinaryWriter();
32277
+ proto.gateway.web.v1.AIFileStateCount.serializeBinaryToWriter(this, writer);
32278
+ return writer.getResultBuffer();
32279
+ };
32280
+
32281
+
32282
+ /**
32283
+ * Serializes the given message to binary data (in protobuf wire
32284
+ * format), writing to the given BinaryWriter.
32285
+ * @param {!proto.gateway.web.v1.AIFileStateCount} message
32286
+ * @param {!jspb.BinaryWriter} writer
32287
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32288
+ */
32289
+ proto.gateway.web.v1.AIFileStateCount.serializeBinaryToWriter = function(message, writer) {
32290
+ var f = undefined;
32291
+ f = message.getState();
32292
+ if (f !== 0.0) {
32293
+ writer.writeEnum(
32294
+ 1,
32295
+ f
32296
+ );
32297
+ }
32298
+ f = message.getFiles();
32299
+ if (f !== 0) {
32300
+ writer.writeUint64(
32301
+ 2,
32302
+ f
32303
+ );
32304
+ }
32305
+ };
32306
+
32307
+
32308
+ /**
32309
+ * optional AIFileLifecycle state = 1;
32310
+ * @return {!proto.gateway.web.v1.AIFileLifecycle}
32311
+ */
32312
+ proto.gateway.web.v1.AIFileStateCount.prototype.getState = function() {
32313
+ return /** @type {!proto.gateway.web.v1.AIFileLifecycle} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
32314
+ };
32315
+
32316
+
32317
+ /**
32318
+ * @param {!proto.gateway.web.v1.AIFileLifecycle} value
32319
+ * @return {!proto.gateway.web.v1.AIFileStateCount} returns this
32320
+ */
32321
+ proto.gateway.web.v1.AIFileStateCount.prototype.setState = function(value) {
32322
+ return jspb.Message.setProto3EnumField(this, 1, value);
32323
+ };
32324
+
32325
+
32326
+ /**
32327
+ * optional uint64 files = 2;
32328
+ * @return {number}
32329
+ */
32330
+ proto.gateway.web.v1.AIFileStateCount.prototype.getFiles = function() {
32331
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
32332
+ };
32333
+
32334
+
32335
+ /**
32336
+ * @param {number} value
32337
+ * @return {!proto.gateway.web.v1.AIFileStateCount} returns this
32338
+ */
32339
+ proto.gateway.web.v1.AIFileStateCount.prototype.setFiles = function(value) {
32340
+ return jspb.Message.setProto3IntField(this, 2, value);
32341
+ };
32342
+
32343
+
32344
+
32345
+
32346
+
30648
32347
  if (jspb.Message.GENERATE_TO_OBJECT) {
30649
32348
  /**
30650
32349
  * Creates an object representation of this proto.
@@ -36243,6 +37942,19 @@ proto.gateway.web.v1.AIFileConfidence = {
36243
37942
  AI_FILE_CONFIDENCE_INFERRED: 2
36244
37943
  };
36245
37944
 
37945
+ /**
37946
+ * @enum {number}
37947
+ */
37948
+ proto.gateway.web.v1.AIFileSort = {
37949
+ AI_FILE_SORT_UNSPECIFIED: 0,
37950
+ AI_FILE_SORT_UNLANDED_COST: 1,
37951
+ AI_FILE_SORT_NET_UNLANDED_COST: 2,
37952
+ AI_FILE_SORT_UNLANDED_OUTPUT_TOKENS: 3,
37953
+ AI_FILE_SORT_EDITS: 4,
37954
+ AI_FILE_SORT_SESSIONS: 5,
37955
+ AI_FILE_SORT_LAST_EDITED: 6
37956
+ };
37957
+
36246
37958
  /**
36247
37959
  * @enum {number}
36248
37960
  */