github.com/binkynet/BinkyNet@v1.12.1-0.20240421190447-da4e34c20be0/dart/lib/discovery.pb.dart (about)

     1  ///
     2  //  Generated code. Do not modify.
     3  //  source: discovery.proto
     4  //
     5  // @dart = 2.12
     6  // ignore_for_file: annotate_overrides,camel_case_types,constant_identifier_names,directives_ordering,library_prefixes,non_constant_identifier_names,prefer_final_fields,return_of_invalid_type,unnecessary_const,unnecessary_import,unnecessary_this,unused_import,unused_shown_name
     7  
     8  import 'dart:core' as $core;
     9  
    10  import 'package:protobuf/protobuf.dart' as $pb;
    11  
    12  class ServiceInfo extends $pb.GeneratedMessage {
    13    static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ServiceInfo', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'binkynet.v1'), createEmptyInstance: create)
    14      ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'apiVersion')
    15      ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'version')
    16      ..a<$core.int>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'apiPort', $pb.PbFieldType.O3)
    17      ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'apiAddress')
    18      ..aOB(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'secure')
    19      ..hasRequiredFields = false
    20    ;
    21  
    22    ServiceInfo._() : super();
    23    factory ServiceInfo({
    24      $core.String? apiVersion,
    25      $core.String? version,
    26      $core.int? apiPort,
    27      $core.String? apiAddress,
    28      $core.bool? secure,
    29    }) {
    30      final _result = create();
    31      if (apiVersion != null) {
    32        _result.apiVersion = apiVersion;
    33      }
    34      if (version != null) {
    35        _result.version = version;
    36      }
    37      if (apiPort != null) {
    38        _result.apiPort = apiPort;
    39      }
    40      if (apiAddress != null) {
    41        _result.apiAddress = apiAddress;
    42      }
    43      if (secure != null) {
    44        _result.secure = secure;
    45      }
    46      return _result;
    47    }
    48    factory ServiceInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
    49    factory ServiceInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
    50    @$core.Deprecated(
    51    'Using this can add significant overhead to your binary. '
    52    'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
    53    'Will be removed in next major version')
    54    ServiceInfo clone() => ServiceInfo()..mergeFromMessage(this);
    55    @$core.Deprecated(
    56    'Using this can add significant overhead to your binary. '
    57    'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
    58    'Will be removed in next major version')
    59    ServiceInfo copyWith(void Function(ServiceInfo) updates) => super.copyWith((message) => updates(message as ServiceInfo)) as ServiceInfo; // ignore: deprecated_member_use
    60    $pb.BuilderInfo get info_ => _i;
    61    @$core.pragma('dart2js:noInline')
    62    static ServiceInfo create() => ServiceInfo._();
    63    ServiceInfo createEmptyInstance() => create();
    64    static $pb.PbList<ServiceInfo> createRepeated() => $pb.PbList<ServiceInfo>();
    65    @$core.pragma('dart2js:noInline')
    66    static ServiceInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ServiceInfo>(create);
    67    static ServiceInfo? _defaultInstance;
    68  
    69    @$pb.TagNumber(1)
    70    $core.String get apiVersion => $_getSZ(0);
    71    @$pb.TagNumber(1)
    72    set apiVersion($core.String v) { $_setString(0, v); }
    73    @$pb.TagNumber(1)
    74    $core.bool hasApiVersion() => $_has(0);
    75    @$pb.TagNumber(1)
    76    void clearApiVersion() => clearField(1);
    77  
    78    @$pb.TagNumber(2)
    79    $core.String get version => $_getSZ(1);
    80    @$pb.TagNumber(2)
    81    set version($core.String v) { $_setString(1, v); }
    82    @$pb.TagNumber(2)
    83    $core.bool hasVersion() => $_has(1);
    84    @$pb.TagNumber(2)
    85    void clearVersion() => clearField(2);
    86  
    87    @$pb.TagNumber(3)
    88    $core.int get apiPort => $_getIZ(2);
    89    @$pb.TagNumber(3)
    90    set apiPort($core.int v) { $_setSignedInt32(2, v); }
    91    @$pb.TagNumber(3)
    92    $core.bool hasApiPort() => $_has(2);
    93    @$pb.TagNumber(3)
    94    void clearApiPort() => clearField(3);
    95  
    96    @$pb.TagNumber(4)
    97    $core.String get apiAddress => $_getSZ(3);
    98    @$pb.TagNumber(4)
    99    set apiAddress($core.String v) { $_setString(3, v); }
   100    @$pb.TagNumber(4)
   101    $core.bool hasApiAddress() => $_has(3);
   102    @$pb.TagNumber(4)
   103    void clearApiAddress() => clearField(4);
   104  
   105    @$pb.TagNumber(5)
   106    $core.bool get secure => $_getBF(4);
   107    @$pb.TagNumber(5)
   108    set secure($core.bool v) { $_setBool(4, v); }
   109    @$pb.TagNumber(5)
   110    $core.bool hasSecure() => $_has(4);
   111    @$pb.TagNumber(5)
   112    void clearSecure() => clearField(5);
   113  }
   114