| 1 | package Google::Cloud::Discoveryengine::V1beta::CustomTuningModel::Types; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use Type::Library -base; | ||
| 7 | use Type::Utils -all; | ||
| 8 | use Types::Standard -types; | ||
| 9 | |||
| 10 | declare 'CustomTuningModel', | ||
| 11 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::CustomTuningModel::CustomTuningModel']; | ||
| 12 | |||
| 13 | coerce 'CustomTuningModel', | ||
| 14 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::CustomTuningModel::CustomTuningModel'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedCustomTuningModel', | ||
| 17 | as ArrayRef[CustomTuningModel()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedCustomTuningModel', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::CustomTuningModel::CustomTuningModel'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringCustomTuningModel', | ||
| 23 | as HashRef[CustomTuningModel()]; | ||
| 24 | |||
| 25 | declare 'ModelState', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'MetricsEntry', | ||
| 29 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::CustomTuningModel::CustomTuningModel::MetricsEntry']; | ||
| 30 | |||
| 31 | coerce 'MetricsEntry', | ||
| 32 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::CustomTuningModel::CustomTuningModel::MetricsEntry'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedMetricsEntry', | ||
| 35 | as ArrayRef[MetricsEntry()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedMetricsEntry', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::CustomTuningModel::CustomTuningModel::MetricsEntry'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringMetricsEntry', | ||
| 41 | as HashRef[MetricsEntry()]; | ||
| 42 | |||
| 43 | 1; | ||
| 44 | |||
| 45 | __END__ |