RegisterMultiFileModelRequest constructor

RegisterMultiFileModelRequest({
  1. String? id,
  2. String? name,
  3. InferenceFramework? framework,
  4. Iterable<ModelFileDescriptor>? files,
  5. ModelCategory? category,
  6. ModelFormat? format,
  7. Int64? memoryRequiredBytes,
  8. Int64? downloadSizeBytes,
  9. int? contextLength,
  10. bool? supportsThinking,
  11. bool? supportsLora,
  12. String? description,
  13. ModelSource? source,
})

Implementation

factory RegisterMultiFileModelRequest({
  $core.String? id,
  $core.String? name,
  InferenceFramework? framework,
  $core.Iterable<ModelFileDescriptor>? files,
  ModelCategory? category,
  ModelFormat? format,
  $fixnum.Int64? memoryRequiredBytes,
  $fixnum.Int64? downloadSizeBytes,
  $core.int? contextLength,
  $core.bool? supportsThinking,
  $core.bool? supportsLora,
  $core.String? description,
  ModelSource? source,
}) {
  final result = create();
  if (id != null) result.id = id;
  if (name != null) result.name = name;
  if (framework != null) result.framework = framework;
  if (files != null) result.files.addAll(files);
  if (category != null) result.category = category;
  if (format != null) result.format = format;
  if (memoryRequiredBytes != null)
    result.memoryRequiredBytes = memoryRequiredBytes;
  if (downloadSizeBytes != null) result.downloadSizeBytes = downloadSizeBytes;
  if (contextLength != null) result.contextLength = contextLength;
  if (supportsThinking != null) result.supportsThinking = supportsThinking;
  if (supportsLora != null) result.supportsLora = supportsLora;
  if (description != null) result.description = description;
  if (source != null) result.source = source;
  return result;
}