Service constructor
Service({
- String? name,
- String? title,
- Iterable<
Api> ? apis, - Iterable<
Type> ? types, - Iterable<
Enum> ? enums, - Documentation? documentation,
- Backend? backend,
- Http? http,
- Quota? quota,
- Authentication? authentication,
- Context? context,
- Usage? usage,
- Iterable<
Endpoint> ? endpoints, - UInt32Value? configVersion,
- Control? control,
- String? producerProjectId,
- Iterable<
LogDescriptor> ? logs, - Iterable<
MetricDescriptor> ? metrics, - Iterable<
MonitoredResourceDescriptor> ? monitoredResources, - Billing? billing,
- Logging? logging,
- Monitoring? monitoring,
- SystemParameters? systemParameters,
- String? id,
- SourceInfo? sourceInfo,
Implementation
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,
$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) 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;
}