| // |
| // Generated code. Do not modify. |
| // source: doc_comments.proto |
| // |
| // @dart = 2.12 |
| |
| // ignore_for_file: annotate_overrides, camel_case_types, comment_references |
| // ignore_for_file: constant_identifier_names, library_prefixes |
| // ignore_for_file: non_constant_identifier_names, prefer_final_fields |
| // ignore_for_file: unnecessary_import, unnecessary_this, unused_import |
| |
| import 'dart:async' as $async; |
| import 'dart:core' as $core; |
| |
| import 'package:protobuf/protobuf.dart' as $pb; |
| |
| export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; |
| |
| export 'doc_comments.pbenum.dart'; |
| |
| /// This is a message. |
| class HelloRequest extends $pb.GeneratedMessage { |
| factory HelloRequest() => create(); |
| HelloRequest._() : super(); |
| factory HelloRequest.fromBuffer($core.List<$core.int> i, |
| [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => |
| create()..mergeFromBuffer(i, r); |
| factory HelloRequest.fromJson($core.String i, |
| [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => |
| create()..mergeFromJson(i, r); |
| |
| static final $pb.BuilderInfo _i = $pb.BuilderInfo( |
| _omitMessageNames ? '' : 'HelloRequest', |
| package: const $pb.PackageName(_omitMessageNames ? '' : 'service1'), |
| createEmptyInstance: create) |
| ..aOS(1, _omitFieldNames ? '' : 'name') |
| ..hasRequiredFields = false; |
| |
| @$core.Deprecated('Using this can add significant overhead to your binary. ' |
| 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' |
| 'Will be removed in next major version') |
| HelloRequest clone() => HelloRequest()..mergeFromMessage(this); |
| @$core.Deprecated('Using this can add significant overhead to your binary. ' |
| 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' |
| 'Will be removed in next major version') |
| HelloRequest copyWith(void Function(HelloRequest) updates) => |
| super.copyWith((message) => updates(message as HelloRequest)) |
| as HelloRequest; |
| |
| $pb.BuilderInfo get info_ => _i; |
| |
| @$core.pragma('dart2js:noInline') |
| static HelloRequest create() => HelloRequest._(); |
| HelloRequest createEmptyInstance() => create(); |
| static $pb.PbList<HelloRequest> createRepeated() => |
| $pb.PbList<HelloRequest>(); |
| @$core.pragma('dart2js:noInline') |
| static HelloRequest getDefault() => _defaultInstance ??= |
| $pb.GeneratedMessage.$_defaultFor<HelloRequest>(create); |
| static HelloRequest? _defaultInstance; |
| |
| /// This is a message field. |
| @$pb.TagNumber(1) |
| $core.String get name => $_getSZ(0); |
| @$pb.TagNumber(1) |
| set name($core.String v) { |
| $_setString(0, v); |
| } |
| |
| @$pb.TagNumber(1) |
| $core.bool hasName() => $_has(0); |
| @$pb.TagNumber(1) |
| void clearName() => $_clearField(1); |
| } |
| |
| class HelloReply extends $pb.GeneratedMessage { |
| factory HelloReply() => create(); |
| HelloReply._() : super(); |
| factory HelloReply.fromBuffer($core.List<$core.int> i, |
| [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => |
| create()..mergeFromBuffer(i, r); |
| factory HelloReply.fromJson($core.String i, |
| [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => |
| create()..mergeFromJson(i, r); |
| |
| static final $pb.BuilderInfo _i = $pb.BuilderInfo( |
| _omitMessageNames ? '' : 'HelloReply', |
| package: const $pb.PackageName(_omitMessageNames ? '' : 'service1'), |
| createEmptyInstance: create) |
| ..aOS(1, _omitFieldNames ? '' : 'message') |
| ..hasRequiredFields = false; |
| |
| @$core.Deprecated('Using this can add significant overhead to your binary. ' |
| 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' |
| 'Will be removed in next major version') |
| HelloReply clone() => HelloReply()..mergeFromMessage(this); |
| @$core.Deprecated('Using this can add significant overhead to your binary. ' |
| 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' |
| 'Will be removed in next major version') |
| HelloReply copyWith(void Function(HelloReply) updates) => |
| super.copyWith((message) => updates(message as HelloReply)) as HelloReply; |
| |
| $pb.BuilderInfo get info_ => _i; |
| |
| @$core.pragma('dart2js:noInline') |
| static HelloReply create() => HelloReply._(); |
| HelloReply createEmptyInstance() => create(); |
| static $pb.PbList<HelloReply> createRepeated() => $pb.PbList<HelloReply>(); |
| @$core.pragma('dart2js:noInline') |
| static HelloReply getDefault() => _defaultInstance ??= |
| $pb.GeneratedMessage.$_defaultFor<HelloReply>(create); |
| static HelloReply? _defaultInstance; |
| |
| @$pb.TagNumber(1) |
| $core.String get message => $_getSZ(0); |
| @$pb.TagNumber(1) |
| set message($core.String v) { |
| $_setString(0, v); |
| } |
| |
| @$pb.TagNumber(1) |
| $core.bool hasMessage() => $_has(0); |
| @$pb.TagNumber(1) |
| void clearMessage() => $_clearField(1); |
| } |
| |
| /// This is a service. |
| class GreeterApi { |
| $pb.RpcClient _client; |
| GreeterApi(this._client); |
| |
| /// This is a service method. |
| $async.Future<HelloReply> sayHello( |
| $pb.ClientContext? ctx, HelloRequest request) => |
| _client.invoke<HelloReply>( |
| ctx, 'Greeter', 'SayHello', request, HelloReply()); |
| } |
| |
| const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); |
| const _omitMessageNames = |
| $core.bool.fromEnvironment('protobuf.omit_message_names'); |