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<$7.Api>? apis,
$core.Iterable<$8.Type>? types,
$core.Iterable<$8.Enum>? enums,
$9.Documentation? documentation,
$10.Backend? backend,
$5.Http? http,
$11.Quota? quota,
$12.Authentication? authentication,
$13.Context? context,
$14.Usage? usage,
$core.Iterable<$15.Endpoint>? endpoints,
$16.UInt32Value? configVersion,
$17.Control? control,
$core.String? producerProjectId,
$core.Iterable<$18.LogDescriptor>? logs,
$core.Iterable<$19.MetricDescriptor>? metrics,
$core.Iterable<$20.MonitoredResourceDescriptor>? monitoredResources,
$21.Billing? billing,
$22.Logging? logging,
$23.Monitoring? monitoring,
$24.SystemParameters? systemParameters,
$core.String? id,
$25.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;
}