| 1 | package Google::Cloud::Discoveryengine::V1::ServingConfig::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 'ServingConfig', | ||
| 11 | as InstanceOf['Google::Cloud::Discoveryengine::V1::ServingConfig::ServingConfig']; | ||
| 12 | |||
| 13 | coerce 'ServingConfig', | ||
| 14 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::ServingConfig::ServingConfig'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedServingConfig', | ||
| 17 | as ArrayRef[ServingConfig()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedServingConfig', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::ServingConfig::ServingConfig'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringServingConfig', | ||
| 23 | as HashRef[ServingConfig()]; | ||
| 24 | |||
| 25 | declare 'MediaConfig', | ||
| 26 | as InstanceOf['Google::Cloud::Discoveryengine::V1::ServingConfig::ServingConfig::MediaConfig']; | ||
| 27 | |||
| 28 | coerce 'MediaConfig', | ||
| 29 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::ServingConfig::ServingConfig::MediaConfig'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedMediaConfig', | ||
| 32 | as ArrayRef[MediaConfig()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedMediaConfig', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::ServingConfig::ServingConfig::MediaConfig'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringMediaConfig', | ||
| 38 | as HashRef[MediaConfig()]; | ||
| 39 | |||
| 40 | declare 'GenericConfig', | ||
| 41 | as InstanceOf['Google::Cloud::Discoveryengine::V1::ServingConfig::ServingConfig::GenericConfig']; | ||
| 42 | |||
| 43 | coerce 'GenericConfig', | ||
| 44 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::ServingConfig::ServingConfig::GenericConfig'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedGenericConfig', | ||
| 47 | as ArrayRef[GenericConfig()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedGenericConfig', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::ServingConfig::ServingConfig::GenericConfig'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringGenericConfig', | ||
| 53 | as HashRef[GenericConfig()]; | ||
| 54 | |||
| 55 | declare 'AnswerGenerationSpec', | ||
| 56 | as InstanceOf['Google::Cloud::Discoveryengine::V1::ServingConfig::AnswerGenerationSpec']; | ||
| 57 | |||
| 58 | coerce 'AnswerGenerationSpec', | ||
| 59 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::ServingConfig::AnswerGenerationSpec'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedAnswerGenerationSpec', | ||
| 62 | as ArrayRef[AnswerGenerationSpec()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedAnswerGenerationSpec', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::ServingConfig::AnswerGenerationSpec'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringAnswerGenerationSpec', | ||
| 68 | as HashRef[AnswerGenerationSpec()]; | ||
| 69 | |||
| 70 | declare 'UserDefinedClassifierSpec', | ||
| 71 | as InstanceOf['Google::Cloud::Discoveryengine::V1::ServingConfig::AnswerGenerationSpec::UserDefinedClassifierSpec']; | ||
| 72 | |||
| 73 | coerce 'UserDefinedClassifierSpec', | ||
| 74 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::ServingConfig::AnswerGenerationSpec::UserDefinedClassifierSpec'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedUserDefinedClassifierSpec', | ||
| 77 | as ArrayRef[UserDefinedClassifierSpec()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedUserDefinedClassifierSpec', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::ServingConfig::AnswerGenerationSpec::UserDefinedClassifierSpec'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringUserDefinedClassifierSpec', | ||
| 83 | as HashRef[UserDefinedClassifierSpec()]; | ||
| 84 | |||
| 85 | 1; | ||
| 86 | |||
| 87 | __END__ |