Skip to content

Commit bee3758

Browse files
committed
Support environment values
1 parent 85c30c3 commit bee3758

File tree

5 files changed

+103
-1
lines changed

5 files changed

+103
-1
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.4
2+
3+
Support environment values
4+
15
## 0.1.3
26

37
Add more param types

lib/protos/schema.pb.dart

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,75 @@ class AppConstantDebugData extends $pb.GeneratedMessage {
454454
void clearSearchReference() => clearField(3);
455455
}
456456

457+
class EnvironmentValueDebugData extends $pb.GeneratedMessage {
458+
static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'EnvironmentValueDebugData', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'schema'), createEmptyInstance: create)
459+
..m<$core.String, DebugDataField>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'values', entryClassName: 'EnvironmentValueDebugData.ValuesEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: DebugDataField.create, packageName: const $pb.PackageName('schema'))
460+
..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'link')
461+
..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'searchReference')
462+
..hasRequiredFields = false
463+
;
464+
465+
EnvironmentValueDebugData._() : super();
466+
factory EnvironmentValueDebugData({
467+
$core.Map<$core.String, DebugDataField>? values,
468+
$core.String? link,
469+
$core.String? searchReference,
470+
}) {
471+
final _result = create();
472+
if (values != null) {
473+
_result.values.addAll(values);
474+
}
475+
if (link != null) {
476+
_result.link = link;
477+
}
478+
if (searchReference != null) {
479+
_result.searchReference = searchReference;
480+
}
481+
return _result;
482+
}
483+
factory EnvironmentValueDebugData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
484+
factory EnvironmentValueDebugData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
485+
@$core.Deprecated(
486+
'Using this can add significant overhead to your binary. '
487+
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
488+
'Will be removed in next major version')
489+
EnvironmentValueDebugData clone() => EnvironmentValueDebugData()..mergeFromMessage(this);
490+
@$core.Deprecated(
491+
'Using this can add significant overhead to your binary. '
492+
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
493+
'Will be removed in next major version')
494+
EnvironmentValueDebugData copyWith(void Function(EnvironmentValueDebugData) updates) => super.copyWith((message) => updates(message as EnvironmentValueDebugData)) as EnvironmentValueDebugData; // ignore: deprecated_member_use
495+
$pb.BuilderInfo get info_ => _i;
496+
@$core.pragma('dart2js:noInline')
497+
static EnvironmentValueDebugData create() => EnvironmentValueDebugData._();
498+
EnvironmentValueDebugData createEmptyInstance() => create();
499+
static $pb.PbList<EnvironmentValueDebugData> createRepeated() => $pb.PbList<EnvironmentValueDebugData>();
500+
@$core.pragma('dart2js:noInline')
501+
static EnvironmentValueDebugData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<EnvironmentValueDebugData>(create);
502+
static EnvironmentValueDebugData? _defaultInstance;
503+
504+
@$pb.TagNumber(1)
505+
$core.Map<$core.String, DebugDataField> get values => $_getMap(0);
506+
507+
@$pb.TagNumber(2)
508+
$core.String get link => $_getSZ(1);
509+
@$pb.TagNumber(2)
510+
set link($core.String v) { $_setString(1, v); }
511+
@$pb.TagNumber(2)
512+
$core.bool hasLink() => $_has(1);
513+
@$pb.TagNumber(2)
514+
void clearLink() => clearField(2);
515+
516+
@$pb.TagNumber(3)
517+
$core.String get searchReference => $_getSZ(2);
518+
@$pb.TagNumber(3)
519+
set searchReference($core.String v) { $_setString(2, v); }
520+
@$pb.TagNumber(3)
521+
$core.bool hasSearchReference() => $_has(2);
522+
@$pb.TagNumber(3)
523+
void clearSearchReference() => clearField(3);
524+
}
525+
457526
class AuthenticatedUserDebugData extends $pb.GeneratedMessage {
458527
static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'AuthenticatedUserDebugData', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'schema'), createEmptyInstance: create)
459528
..m<$core.String, DebugDataField>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'values', entryClassName: 'AuthenticatedUserDebugData.ValuesEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: DebugDataField.create, packageName: const $pb.PackageName('schema'))

lib/protos/schema.pbjson.dart

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,29 @@ const AppConstantDebugData_ValuesEntry$json = const {
186186

187187
/// Descriptor for `AppConstantDebugData`. Decode as a `google.protobuf.DescriptorProto`.
188188
final $typed_data.Uint8List appConstantDebugDataDescriptor = $convert.base64Decode('ChRBcHBDb25zdGFudERlYnVnRGF0YRJACgZ2YWx1ZXMYASADKAsyKC5zY2hlbWEuQXBwQ29uc3RhbnREZWJ1Z0RhdGEuVmFsdWVzRW50cnlSBnZhbHVlcxISCgRsaW5rGAIgASgJUgRsaW5rEikKEHNlYXJjaF9yZWZlcmVuY2UYAyABKAlSD3NlYXJjaFJlZmVyZW5jZRpRCgtWYWx1ZXNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIsCgV2YWx1ZRgCIAEoCzIWLnNjaGVtYS5EZWJ1Z0RhdGFGaWVsZFIFdmFsdWU6AjgB');
189+
@$core.Deprecated('Use environmentValueDebugDataDescriptor instead')
190+
const EnvironmentValueDebugData$json = const {
191+
'1': 'EnvironmentValueDebugData',
192+
'2': const [
193+
const {'1': 'values', '3': 1, '4': 3, '5': 11, '6': '.schema.EnvironmentValueDebugData.ValuesEntry', '10': 'values'},
194+
const {'1': 'link', '3': 2, '4': 1, '5': 9, '10': 'link'},
195+
const {'1': 'search_reference', '3': 3, '4': 1, '5': 9, '10': 'searchReference'},
196+
],
197+
'3': const [EnvironmentValueDebugData_ValuesEntry$json],
198+
};
199+
200+
@$core.Deprecated('Use environmentValueDebugDataDescriptor instead')
201+
const EnvironmentValueDebugData_ValuesEntry$json = const {
202+
'1': 'ValuesEntry',
203+
'2': const [
204+
const {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
205+
const {'1': 'value', '3': 2, '4': 1, '5': 11, '6': '.schema.DebugDataField', '10': 'value'},
206+
],
207+
'7': const {'7': true},
208+
};
209+
210+
/// Descriptor for `EnvironmentValueDebugData`. Decode as a `google.protobuf.DescriptorProto`.
211+
final $typed_data.Uint8List environmentValueDebugDataDescriptor = $convert.base64Decode('ChlFbnZpcm9ubWVudFZhbHVlRGVidWdEYXRhEkUKBnZhbHVlcxgBIAMoCzItLnNjaGVtYS5FbnZpcm9ubWVudFZhbHVlRGVidWdEYXRhLlZhbHVlc0VudHJ5UgZ2YWx1ZXMSEgoEbGluaxgCIAEoCVIEbGluaxIpChBzZWFyY2hfcmVmZXJlbmNlGAMgASgJUg9zZWFyY2hSZWZlcmVuY2UaUQoLVmFsdWVzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSLAoFdmFsdWUYAiABKAsyFi5zY2hlbWEuRGVidWdEYXRhRmllbGRSBXZhbHVlOgI4AQ==');
189212
@$core.Deprecated('Use authenticatedUserDebugDataDescriptor instead')
190213
const AuthenticatedUserDebugData$json = const {
191214
'1': 'AuthenticatedUserDebugData',

protos/schema.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ message AppConstantDebugData {
6565
string search_reference = 3;
6666
}
6767

68+
message EnvironmentValueDebugData {
69+
map<string, DebugDataField> values = 1;
70+
string link = 2;
71+
string search_reference = 3;
72+
}
73+
6874
message AuthenticatedUserDebugData {
6975
map<string, DebugDataField> values = 1;
7076
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: debug_panel_proto
22
description: "A Flutter package that specify the proto schema for debugging FlutterFlow projects."
3-
version: 0.1.3
3+
version: 0.1.4
44
homepage:
55

66
environment:

0 commit comments

Comments
 (0)