|
| 1 | +// |
| 2 | +// Generated code. Do not modify. |
| 3 | +// source: deprecations.proto |
| 4 | +// |
| 5 | +// @dart = 2.12 |
| 6 | + |
| 7 | +// ignore_for_file: annotate_overrides, camel_case_types, comment_references |
| 8 | +// ignore_for_file: constant_identifier_names, library_prefixes |
| 9 | +// ignore_for_file: non_constant_identifier_names, prefer_final_fields |
| 10 | +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import |
| 11 | + |
| 12 | +import 'dart:async' as $async; |
| 13 | +import 'dart:core' as $core; |
| 14 | + |
| 15 | +import 'package:protobuf/protobuf.dart' as $pb; |
| 16 | + |
| 17 | +export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; |
| 18 | + |
| 19 | +export 'deprecations.pbenum.dart'; |
| 20 | + |
| 21 | +@$core.Deprecated('This message is deprecated') |
| 22 | +class HelloRequest extends $pb.GeneratedMessage { |
| 23 | + factory HelloRequest() => create(); |
| 24 | + HelloRequest._() : super(); |
| 25 | + factory HelloRequest.fromBuffer($core.List<$core.int> i, |
| 26 | + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => |
| 27 | + create()..mergeFromBuffer(i, r); |
| 28 | + factory HelloRequest.fromJson($core.String i, |
| 29 | + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => |
| 30 | + create()..mergeFromJson(i, r); |
| 31 | + |
| 32 | + static final $pb.BuilderInfo _i = $pb.BuilderInfo( |
| 33 | + _omitMessageNames ? '' : 'HelloRequest', |
| 34 | + package: const $pb.PackageName(_omitMessageNames ? '' : 'service2'), |
| 35 | + createEmptyInstance: create) |
| 36 | + ..aOS(1, _omitFieldNames ? '' : 'name') |
| 37 | + ..hasRequiredFields = false; |
| 38 | + |
| 39 | + @$core.Deprecated('Using this can add significant overhead to your binary. ' |
| 40 | + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' |
| 41 | + 'Will be removed in next major version') |
| 42 | + HelloRequest clone() => HelloRequest()..mergeFromMessage(this); |
| 43 | + @$core.Deprecated('Using this can add significant overhead to your binary. ' |
| 44 | + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' |
| 45 | + 'Will be removed in next major version') |
| 46 | + HelloRequest copyWith(void Function(HelloRequest) updates) => |
| 47 | + super.copyWith((message) => updates(message as HelloRequest)) |
| 48 | + as HelloRequest; |
| 49 | + |
| 50 | + $pb.BuilderInfo get info_ => _i; |
| 51 | + |
| 52 | + @$core.pragma('dart2js:noInline') |
| 53 | + static HelloRequest create() => HelloRequest._(); |
| 54 | + HelloRequest createEmptyInstance() => create(); |
| 55 | + static $pb.PbList<HelloRequest> createRepeated() => |
| 56 | + $pb.PbList<HelloRequest>(); |
| 57 | + @$core.pragma('dart2js:noInline') |
| 58 | + static HelloRequest getDefault() => _defaultInstance ??= |
| 59 | + $pb.GeneratedMessage.$_defaultFor<HelloRequest>(create); |
| 60 | + static HelloRequest? _defaultInstance; |
| 61 | + |
| 62 | + @$core.Deprecated('This field is deprecated.') |
| 63 | + @$pb.TagNumber(1) |
| 64 | + $core.String get name => $_getSZ(0); |
| 65 | + @$core.Deprecated('This field is deprecated.') |
| 66 | + @$pb.TagNumber(1) |
| 67 | + set name($core.String v) { |
| 68 | + $_setString(0, v); |
| 69 | + } |
| 70 | + |
| 71 | + @$core.Deprecated('This field is deprecated.') |
| 72 | + @$pb.TagNumber(1) |
| 73 | + $core.bool hasName() => $_has(0); |
| 74 | + @$core.Deprecated('This field is deprecated.') |
| 75 | + @$pb.TagNumber(1) |
| 76 | + void clearName() => clearField(1); |
| 77 | +} |
| 78 | + |
| 79 | +class HelloReply extends $pb.GeneratedMessage { |
| 80 | + factory HelloReply() => create(); |
| 81 | + HelloReply._() : super(); |
| 82 | + factory HelloReply.fromBuffer($core.List<$core.int> i, |
| 83 | + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => |
| 84 | + create()..mergeFromBuffer(i, r); |
| 85 | + factory HelloReply.fromJson($core.String i, |
| 86 | + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => |
| 87 | + create()..mergeFromJson(i, r); |
| 88 | + |
| 89 | + static final $pb.BuilderInfo _i = $pb.BuilderInfo( |
| 90 | + _omitMessageNames ? '' : 'HelloReply', |
| 91 | + package: const $pb.PackageName(_omitMessageNames ? '' : 'service2'), |
| 92 | + createEmptyInstance: create) |
| 93 | + ..aOS(1, _omitFieldNames ? '' : 'message') |
| 94 | + ..hasRequiredFields = false; |
| 95 | + |
| 96 | + @$core.Deprecated('Using this can add significant overhead to your binary. ' |
| 97 | + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' |
| 98 | + 'Will be removed in next major version') |
| 99 | + HelloReply clone() => HelloReply()..mergeFromMessage(this); |
| 100 | + @$core.Deprecated('Using this can add significant overhead to your binary. ' |
| 101 | + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' |
| 102 | + 'Will be removed in next major version') |
| 103 | + HelloReply copyWith(void Function(HelloReply) updates) => |
| 104 | + super.copyWith((message) => updates(message as HelloReply)) as HelloReply; |
| 105 | + |
| 106 | + $pb.BuilderInfo get info_ => _i; |
| 107 | + |
| 108 | + @$core.pragma('dart2js:noInline') |
| 109 | + static HelloReply create() => HelloReply._(); |
| 110 | + HelloReply createEmptyInstance() => create(); |
| 111 | + static $pb.PbList<HelloReply> createRepeated() => $pb.PbList<HelloReply>(); |
| 112 | + @$core.pragma('dart2js:noInline') |
| 113 | + static HelloReply getDefault() => _defaultInstance ??= |
| 114 | + $pb.GeneratedMessage.$_defaultFor<HelloReply>(create); |
| 115 | + static HelloReply? _defaultInstance; |
| 116 | + |
| 117 | + @$pb.TagNumber(1) |
| 118 | + $core.String get message => $_getSZ(0); |
| 119 | + @$pb.TagNumber(1) |
| 120 | + set message($core.String v) { |
| 121 | + $_setString(0, v); |
| 122 | + } |
| 123 | + |
| 124 | + @$pb.TagNumber(1) |
| 125 | + $core.bool hasMessage() => $_has(0); |
| 126 | + @$pb.TagNumber(1) |
| 127 | + void clearMessage() => clearField(1); |
| 128 | +} |
| 129 | + |
| 130 | +@$core.Deprecated('This service is deprecated') |
| 131 | +class GreeterApi { |
| 132 | + $pb.RpcClient _client; |
| 133 | + GreeterApi(this._client); |
| 134 | + |
| 135 | + @$core.Deprecated('This method is deprecated') |
| 136 | + $async.Future<HelloReply> sayHello( |
| 137 | + $pb.ClientContext? ctx, HelloRequest request) => |
| 138 | + _client.invoke<HelloReply>( |
| 139 | + ctx, 'Greeter', 'SayHello', request, HelloReply()); |
| 140 | +} |
| 141 | + |
| 142 | +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); |
| 143 | +const _omitMessageNames = |
| 144 | + $core.bool.fromEnvironment('protobuf.omit_message_names'); |
0 commit comments