Skip to content

Commit da27dfb

Browse files
committed
Dart format
1 parent a816cb6 commit da27dfb

File tree

177 files changed

+13655
-6137
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+13655
-6137
lines changed

tfserving-flutter/codelab2/finished/lib/proto/generated/google/protobuf/any.pb.dart

Lines changed: 39 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -113,25 +113,34 @@ class Any extends $pb.GeneratedMessage with $mixin.AnyMixin {
113113
return $result;
114114
}
115115
Any._() : super();
116-
factory Any.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
117-
factory Any.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
116+
factory Any.fromBuffer($core.List<$core.int> i,
117+
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
118+
create()..mergeFromBuffer(i, r);
119+
factory Any.fromJson($core.String i,
120+
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
121+
create()..mergeFromJson(i, r);
118122

119-
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Any', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.AnyMixin.toProto3JsonHelper, fromProto3Json: $mixin.AnyMixin.fromProto3JsonHelper)
123+
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
124+
_omitMessageNames ? '' : 'Any',
125+
package:
126+
const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'),
127+
createEmptyInstance: create,
128+
toProto3Json: $mixin.AnyMixin.toProto3JsonHelper,
129+
fromProto3Json: $mixin.AnyMixin.fromProto3JsonHelper)
120130
..aOS(1, _omitFieldNames ? '' : 'typeUrl')
121-
..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'value', $pb.PbFieldType.OY)
122-
..hasRequiredFields = false
123-
;
131+
..a<$core.List<$core.int>>(
132+
2, _omitFieldNames ? '' : 'value', $pb.PbFieldType.OY)
133+
..hasRequiredFields = false;
124134

125-
@$core.Deprecated(
126-
'Using this can add significant overhead to your binary. '
127-
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
128-
'Will be removed in next major version')
135+
@$core.Deprecated('Using this can add significant overhead to your binary. '
136+
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
137+
'Will be removed in next major version')
129138
Any clone() => Any()..mergeFromMessage(this);
130-
@$core.Deprecated(
131-
'Using this can add significant overhead to your binary. '
132-
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
133-
'Will be removed in next major version')
134-
Any copyWith(void Function(Any) updates) => super.copyWith((message) => updates(message as Any)) as Any;
139+
@$core.Deprecated('Using this can add significant overhead to your binary. '
140+
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
141+
'Will be removed in next major version')
142+
Any copyWith(void Function(Any) updates) =>
143+
super.copyWith((message) => updates(message as Any)) as Any;
135144

136145
$pb.BuilderInfo get info_ => _i;
137146

@@ -140,7 +149,8 @@ class Any extends $pb.GeneratedMessage with $mixin.AnyMixin {
140149
Any createEmptyInstance() => create();
141150
static $pb.PbList<Any> createRepeated() => $pb.PbList<Any>();
142151
@$core.pragma('dart2js:noInline')
143-
static Any getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Any>(create);
152+
static Any getDefault() =>
153+
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Any>(create);
144154
static Any? _defaultInstance;
145155

146156
/// A URL/resource name that uniquely identifies the type of the serialized
@@ -173,7 +183,10 @@ class Any extends $pb.GeneratedMessage with $mixin.AnyMixin {
173183
@$pb.TagNumber(1)
174184
$core.String get typeUrl => $_getSZ(0);
175185
@$pb.TagNumber(1)
176-
set typeUrl($core.String v) { $_setString(0, v); }
186+
set typeUrl($core.String v) {
187+
$_setString(0, v);
188+
}
189+
177190
@$pb.TagNumber(1)
178191
$core.bool hasTypeUrl() => $_has(0);
179192
@$pb.TagNumber(1)
@@ -183,24 +196,27 @@ class Any extends $pb.GeneratedMessage with $mixin.AnyMixin {
183196
@$pb.TagNumber(2)
184197
$core.List<$core.int> get value => $_getN(1);
185198
@$pb.TagNumber(2)
186-
set value($core.List<$core.int> v) { $_setBytes(1, v); }
199+
set value($core.List<$core.int> v) {
200+
$_setBytes(1, v);
201+
}
202+
187203
@$pb.TagNumber(2)
188204
$core.bool hasValue() => $_has(1);
189205
@$pb.TagNumber(2)
190206
void clearValue() => $_clearField(2);
207+
191208
/// Creates a new [Any] encoding [message].
192209
///
193210
/// The [typeUrl] will be [typeUrlPrefix]/`fullName` where `fullName` is
194211
/// the fully qualified name of the type of [message].
195212
static Any pack($pb.GeneratedMessage message,
196-
{$core.String typeUrlPrefix = 'type.googleapis.com'}) {
213+
{$core.String typeUrlPrefix = 'type.googleapis.com'}) {
197214
final result = create();
198-
$mixin.AnyMixin.packIntoAny(result, message,
199-
typeUrlPrefix: typeUrlPrefix);
215+
$mixin.AnyMixin.packIntoAny(result, message, typeUrlPrefix: typeUrlPrefix);
200216
return result;
201217
}
202218
}
203219

204-
205220
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
206-
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
221+
const _omitMessageNames =
222+
$core.bool.fromEnvironment('protobuf.omit_message_names');

tfserving-flutter/codelab2/finished/lib/proto/generated/google/protobuf/any.pbenum.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@
88
// ignore_for_file: constant_identifier_names, library_prefixes
99
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
1010
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
11-

tfserving-flutter/codelab2/finished/lib/proto/generated/google/protobuf/any.pbjson.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,3 @@ const Any$json = {
2525
/// Descriptor for `Any`. Decode as a `google.protobuf.DescriptorProto`.
2626
final $typed_data.Uint8List anyDescriptor = $convert.base64Decode(
2727
'CgNBbnkSGQoIdHlwZV91cmwYASABKAlSB3R5cGVVcmwSFAoFdmFsdWUYAiABKAxSBXZhbHVl');
28-

0 commit comments

Comments
 (0)