ModelRegistryRefreshRequest constructor

ModelRegistryRefreshRequest({
  1. bool? includeRemoteCatalog,
  2. bool? rescanLocal,
  3. bool? pruneOrphans,
  4. ModelQuery? query,
  5. String? catalogUri,
  6. bool? forceRefresh,
  7. bool? includeDownloadedState,
})

Implementation

factory ModelRegistryRefreshRequest({
  $core.bool? includeRemoteCatalog,
  $core.bool? rescanLocal,
  $core.bool? pruneOrphans,
  ModelQuery? query,
  $core.String? catalogUri,
  $core.bool? forceRefresh,
  $core.bool? includeDownloadedState,
}) {
  final result = create();
  if (includeRemoteCatalog != null)
    result.includeRemoteCatalog = includeRemoteCatalog;
  if (rescanLocal != null) result.rescanLocal = rescanLocal;
  if (pruneOrphans != null) result.pruneOrphans = pruneOrphans;
  if (query != null) result.query = query;
  if (catalogUri != null) result.catalogUri = catalogUri;
  if (forceRefresh != null) result.forceRefresh = forceRefresh;
  if (includeDownloadedState != null)
    result.includeDownloadedState = includeDownloadedState;
  return result;
}