JobMetadata constructor

JobMetadata({
  1. SdkVersion? sdkVersion,
  2. Iterable<SpannerIODetails>? spannerDetails,
  3. Iterable<BigQueryIODetails>? bigqueryDetails,
  4. Iterable<BigTableIODetails>? bigTableDetails,
  5. Iterable<PubSubIODetails>? pubsubDetails,
  6. Iterable<FileIODetails>? fileDetails,
  7. Iterable<DatastoreIODetails>? datastoreDetails,
})

Implementation

factory JobMetadata({
  SdkVersion? sdkVersion,
  $core.Iterable<SpannerIODetails>? spannerDetails,
  $core.Iterable<BigQueryIODetails>? bigqueryDetails,
  $core.Iterable<BigTableIODetails>? bigTableDetails,
  $core.Iterable<PubSubIODetails>? pubsubDetails,
  $core.Iterable<FileIODetails>? fileDetails,
  $core.Iterable<DatastoreIODetails>? datastoreDetails,
}) {
  final $result = create();
  if (sdkVersion != null) {
    $result.sdkVersion = sdkVersion;
  }
  if (spannerDetails != null) {
    $result.spannerDetails.addAll(spannerDetails);
  }
  if (bigqueryDetails != null) {
    $result.bigqueryDetails.addAll(bigqueryDetails);
  }
  if (bigTableDetails != null) {
    $result.bigTableDetails.addAll(bigTableDetails);
  }
  if (pubsubDetails != null) {
    $result.pubsubDetails.addAll(pubsubDetails);
  }
  if (fileDetails != null) {
    $result.fileDetails.addAll(fileDetails);
  }
  if (datastoreDetails != null) {
    $result.datastoreDetails.addAll(datastoreDetails);
  }
  return $result;
}