Skip to content

Commit f9fbd8f

Browse files
committed
add search_reference
1 parent b0a5403 commit f9fbd8f

File tree

5 files changed

+114
-46
lines changed

5 files changed

+114
-46
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.1.1
2+
3+
Add search_reference for certain messages (for searching their usages within FF)
4+
15
## 0.1.0
26

37
Support backend query and generator variable in widget class data

lib/protos/schema.pb.dart

Lines changed: 87 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ class DebugDataField extends $pb.GeneratedMessage {
3333
..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serializedValue')
3434
..aOM<ListDebugDataField>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'listValue', subBuilder: ListDebugDataField.create)
3535
..aOM<MapDebugDataField>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapValue', subBuilder: MapDebugDataField.create)
36-
..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'link')
37-
..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'name')
38-
..aOB(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nullable')
39-
..aOB(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'hasField')
36+
..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'name')
37+
..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'link')
38+
..aOS(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'searchReference')
39+
..aOB(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nullable')
40+
..aOB(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'hasField')
4041
..hasRequiredFields = false
4142
;
4243

@@ -46,10 +47,11 @@ class DebugDataField extends $pb.GeneratedMessage {
4647
$core.String? serializedValue,
4748
ListDebugDataField? listValue,
4849
MapDebugDataField? mapValue,
49-
$core.String? link,
5050
$core.String? name,
51+
$core.String? link,
52+
$core.String? searchReference,
5153
$core.bool? nullable,
52-
$core.bool? hasField_8,
54+
$core.bool? hasField_9,
5355
}) {
5456
final _result = create();
5557
if (type != null) {
@@ -64,17 +66,20 @@ class DebugDataField extends $pb.GeneratedMessage {
6466
if (mapValue != null) {
6567
_result.mapValue = mapValue;
6668
}
69+
if (name != null) {
70+
_result.name = name;
71+
}
6772
if (link != null) {
6873
_result.link = link;
6974
}
70-
if (name != null) {
71-
_result.name = name;
75+
if (searchReference != null) {
76+
_result.searchReference = searchReference;
7277
}
7378
if (nullable != null) {
7479
_result.nullable = nullable;
7580
}
76-
if (hasField_8 != null) {
77-
_result.hasField_8 = hasField_8;
81+
if (hasField_9 != null) {
82+
_result.hasField_9 = hasField_9;
7883
}
7984
return _result;
8085
}
@@ -143,40 +148,49 @@ class DebugDataField extends $pb.GeneratedMessage {
143148
MapDebugDataField ensureMapValue() => $_ensure(3);
144149

145150
@$pb.TagNumber(5)
146-
$core.String get link => $_getSZ(4);
151+
$core.String get name => $_getSZ(4);
147152
@$pb.TagNumber(5)
148-
set link($core.String v) { $_setString(4, v); }
153+
set name($core.String v) { $_setString(4, v); }
149154
@$pb.TagNumber(5)
150-
$core.bool hasLink() => $_has(4);
155+
$core.bool hasName() => $_has(4);
151156
@$pb.TagNumber(5)
152-
void clearLink() => clearField(5);
157+
void clearName() => clearField(5);
153158

154159
@$pb.TagNumber(6)
155-
$core.String get name => $_getSZ(5);
160+
$core.String get link => $_getSZ(5);
156161
@$pb.TagNumber(6)
157-
set name($core.String v) { $_setString(5, v); }
162+
set link($core.String v) { $_setString(5, v); }
158163
@$pb.TagNumber(6)
159-
$core.bool hasName() => $_has(5);
164+
$core.bool hasLink() => $_has(5);
160165
@$pb.TagNumber(6)
161-
void clearName() => clearField(6);
166+
void clearLink() => clearField(6);
162167

163168
@$pb.TagNumber(7)
164-
$core.bool get nullable => $_getBF(6);
169+
$core.String get searchReference => $_getSZ(6);
165170
@$pb.TagNumber(7)
166-
set nullable($core.bool v) { $_setBool(6, v); }
171+
set searchReference($core.String v) { $_setString(6, v); }
167172
@$pb.TagNumber(7)
168-
$core.bool hasNullable() => $_has(6);
173+
$core.bool hasSearchReference() => $_has(6);
169174
@$pb.TagNumber(7)
170-
void clearNullable() => clearField(7);
175+
void clearSearchReference() => clearField(7);
171176

172177
@$pb.TagNumber(8)
173-
$core.bool get hasField_8 => $_getBF(7);
178+
$core.bool get nullable => $_getBF(7);
174179
@$pb.TagNumber(8)
175-
set hasField_8($core.bool v) { $_setBool(7, v); }
180+
set nullable($core.bool v) { $_setBool(7, v); }
176181
@$pb.TagNumber(8)
177-
$core.bool hasHasField_8() => $_has(7);
182+
$core.bool hasNullable() => $_has(7);
178183
@$pb.TagNumber(8)
179-
void clearHasField_8() => clearField(8);
184+
void clearNullable() => clearField(8);
185+
186+
@$pb.TagNumber(9)
187+
$core.bool get hasField_9 => $_getBF(8);
188+
@$pb.TagNumber(9)
189+
set hasField_9($core.bool v) { $_setBool(8, v); }
190+
@$pb.TagNumber(9)
191+
$core.bool hasHasField_9() => $_has(8);
192+
@$pb.TagNumber(9)
193+
void clearHasField_9() => clearField(9);
180194
}
181195

182196
class ListDebugDataField extends $pb.GeneratedMessage {
@@ -306,13 +320,15 @@ class AppStateDebugData extends $pb.GeneratedMessage {
306320
static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'AppStateDebugData', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'schema'), createEmptyInstance: create)
307321
..m<$core.String, DebugDataField>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'values', entryClassName: 'AppStateDebugData.ValuesEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: DebugDataField.create, packageName: const $pb.PackageName('schema'))
308322
..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'link')
323+
..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'searchReference')
309324
..hasRequiredFields = false
310325
;
311326

312327
AppStateDebugData._() : super();
313328
factory AppStateDebugData({
314329
$core.Map<$core.String, DebugDataField>? values,
315330
$core.String? link,
331+
$core.String? searchReference,
316332
}) {
317333
final _result = create();
318334
if (values != null) {
@@ -321,6 +337,9 @@ class AppStateDebugData extends $pb.GeneratedMessage {
321337
if (link != null) {
322338
_result.link = link;
323339
}
340+
if (searchReference != null) {
341+
_result.searchReference = searchReference;
342+
}
324343
return _result;
325344
}
326345
factory AppStateDebugData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
@@ -355,19 +374,30 @@ class AppStateDebugData extends $pb.GeneratedMessage {
355374
$core.bool hasLink() => $_has(1);
356375
@$pb.TagNumber(2)
357376
void clearLink() => clearField(2);
377+
378+
@$pb.TagNumber(3)
379+
$core.String get searchReference => $_getSZ(2);
380+
@$pb.TagNumber(3)
381+
set searchReference($core.String v) { $_setString(2, v); }
382+
@$pb.TagNumber(3)
383+
$core.bool hasSearchReference() => $_has(2);
384+
@$pb.TagNumber(3)
385+
void clearSearchReference() => clearField(3);
358386
}
359387

360388
class AppConstantDebugData extends $pb.GeneratedMessage {
361389
static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'AppConstantDebugData', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'schema'), createEmptyInstance: create)
362390
..m<$core.String, DebugDataField>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'values', entryClassName: 'AppConstantDebugData.ValuesEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: DebugDataField.create, packageName: const $pb.PackageName('schema'))
363391
..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'link')
392+
..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'searchReference')
364393
..hasRequiredFields = false
365394
;
366395

367396
AppConstantDebugData._() : super();
368397
factory AppConstantDebugData({
369398
$core.Map<$core.String, DebugDataField>? values,
370399
$core.String? link,
400+
$core.String? searchReference,
371401
}) {
372402
final _result = create();
373403
if (values != null) {
@@ -376,6 +406,9 @@ class AppConstantDebugData extends $pb.GeneratedMessage {
376406
if (link != null) {
377407
_result.link = link;
378408
}
409+
if (searchReference != null) {
410+
_result.searchReference = searchReference;
411+
}
379412
return _result;
380413
}
381414
factory AppConstantDebugData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
@@ -410,6 +443,15 @@ class AppConstantDebugData extends $pb.GeneratedMessage {
410443
$core.bool hasLink() => $_has(1);
411444
@$pb.TagNumber(2)
412445
void clearLink() => clearField(2);
446+
447+
@$pb.TagNumber(3)
448+
$core.String get searchReference => $_getSZ(2);
449+
@$pb.TagNumber(3)
450+
set searchReference($core.String v) { $_setString(2, v); }
451+
@$pb.TagNumber(3)
452+
$core.bool hasSearchReference() => $_has(2);
453+
@$pb.TagNumber(3)
454+
void clearSearchReference() => clearField(3);
413455
}
414456

415457
class AuthenticatedUserDebugData extends $pb.GeneratedMessage {
@@ -464,7 +506,8 @@ class WidgetClassDebugData extends $pb.GeneratedMessage {
464506
..m<$core.String, WidgetClassDebugData>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'componentStates', entryClassName: 'WidgetClassDebugData.ComponentStatesEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: WidgetClassDebugData.create, packageName: const $pb.PackageName('schema'))
465507
..m<$core.String, DynamicWidgetClassDebugData>(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'dynamicComponentStates', entryClassName: 'WidgetClassDebugData.DynamicComponentStatesEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: DynamicWidgetClassDebugData.create, packageName: const $pb.PackageName('schema'))
466508
..aOS(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'link')
467-
..aOS(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'widgetClassName')
509+
..aOS(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'searchReference')
510+
..aOS(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'widgetClassName')
468511
..hasRequiredFields = false
469512
;
470513

@@ -479,6 +522,7 @@ class WidgetClassDebugData extends $pb.GeneratedMessage {
479522
$core.Map<$core.String, WidgetClassDebugData>? componentStates,
480523
$core.Map<$core.String, DynamicWidgetClassDebugData>? dynamicComponentStates,
481524
$core.String? link,
525+
$core.String? searchReference,
482526
$core.String? widgetClassName,
483527
}) {
484528
final _result = create();
@@ -509,6 +553,9 @@ class WidgetClassDebugData extends $pb.GeneratedMessage {
509553
if (link != null) {
510554
_result.link = link;
511555
}
556+
if (searchReference != null) {
557+
_result.searchReference = searchReference;
558+
}
512559
if (widgetClassName != null) {
513560
_result.widgetClassName = widgetClassName;
514561
}
@@ -569,13 +616,22 @@ class WidgetClassDebugData extends $pb.GeneratedMessage {
569616
void clearLink() => clearField(9);
570617

571618
@$pb.TagNumber(10)
572-
$core.String get widgetClassName => $_getSZ(9);
619+
$core.String get searchReference => $_getSZ(9);
573620
@$pb.TagNumber(10)
574-
set widgetClassName($core.String v) { $_setString(9, v); }
621+
set searchReference($core.String v) { $_setString(9, v); }
575622
@$pb.TagNumber(10)
576-
$core.bool hasWidgetClassName() => $_has(9);
623+
$core.bool hasSearchReference() => $_has(9);
577624
@$pb.TagNumber(10)
578-
void clearWidgetClassName() => clearField(10);
625+
void clearSearchReference() => clearField(10);
626+
627+
@$pb.TagNumber(11)
628+
$core.String get widgetClassName => $_getSZ(10);
629+
@$pb.TagNumber(11)
630+
set widgetClassName($core.String v) { $_setString(10, v); }
631+
@$pb.TagNumber(11)
632+
$core.bool hasWidgetClassName() => $_has(10);
633+
@$pb.TagNumber(11)
634+
void clearWidgetClassName() => clearField(11);
579635
}
580636

581637
class DynamicWidgetClassDebugData extends $pb.GeneratedMessage {

0 commit comments

Comments
 (0)