factory Service()

in lib/src/grpc_api/dart/google/api/service.pb.dart [80:186]


  factory Service({
    $core.String? name,
    $core.String? title,
    $core.Iterable<$0.Api>? apis,
    $core.Iterable<$1.Type>? types,
    $core.Iterable<$1.Enum>? enums,
    $2.Documentation? documentation,
    $3.Backend? backend,
    $4.Http? http,
    $5.Quota? quota,
    $6.Authentication? authentication,
    $7.Context? context,
    $8.Usage? usage,
    $core.Iterable<$9.Endpoint>? endpoints,
    @$core.Deprecated('This field is deprecated.')
        $10.UInt32Value? configVersion,
    $11.Control? control,
    $core.String? producerProjectId,
    $core.Iterable<$12.LogDescriptor>? logs,
    $core.Iterable<$13.MetricDescriptor>? metrics,
    $core.Iterable<$14.MonitoredResourceDescriptor>? monitoredResources,
    $15.Billing? billing,
    $16.Logging? logging,
    $17.Monitoring? monitoring,
    $18.SystemParameters? systemParameters,
    $core.String? id,
    $19.SourceInfo? sourceInfo,
  }) {
    final _result = create();
    if (name != null) {
      _result.name = name;
    }
    if (title != null) {
      _result.title = title;
    }
    if (apis != null) {
      _result.apis.addAll(apis);
    }
    if (types != null) {
      _result.types.addAll(types);
    }
    if (enums != null) {
      _result.enums.addAll(enums);
    }
    if (documentation != null) {
      _result.documentation = documentation;
    }
    if (backend != null) {
      _result.backend = backend;
    }
    if (http != null) {
      _result.http = http;
    }
    if (quota != null) {
      _result.quota = quota;
    }
    if (authentication != null) {
      _result.authentication = authentication;
    }
    if (context != null) {
      _result.context = context;
    }
    if (usage != null) {
      _result.usage = usage;
    }
    if (endpoints != null) {
      _result.endpoints.addAll(endpoints);
    }
    if (configVersion != null) {
      // ignore: deprecated_member_use_from_same_package
      _result.configVersion = configVersion;
    }
    if (control != null) {
      _result.control = control;
    }
    if (producerProjectId != null) {
      _result.producerProjectId = producerProjectId;
    }
    if (logs != null) {
      _result.logs.addAll(logs);
    }
    if (metrics != null) {
      _result.metrics.addAll(metrics);
    }
    if (monitoredResources != null) {
      _result.monitoredResources.addAll(monitoredResources);
    }
    if (billing != null) {
      _result.billing = billing;
    }
    if (logging != null) {
      _result.logging = logging;
    }
    if (monitoring != null) {
      _result.monitoring = monitoring;
    }
    if (systemParameters != null) {
      _result.systemParameters = systemParameters;
    }
    if (id != null) {
      _result.id = id;
    }
    if (sourceInfo != null) {
      _result.sourceInfo = sourceInfo;
    }
    return _result;
  }