| 1 | package Google::Cloud::Discoveryengine::V1alpha::SearchTuningService::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 'ListCustomModelsRequest', | ||
| 11 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::SearchTuningService::ListCustomModelsRequest']; | ||
| 12 | |||
| 13 | coerce 'ListCustomModelsRequest', | ||
| 14 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::SearchTuningService::ListCustomModelsRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedListCustomModelsRequest', | ||
| 17 | as ArrayRef[ListCustomModelsRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedListCustomModelsRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::SearchTuningService::ListCustomModelsRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringListCustomModelsRequest', | ||
| 23 | as HashRef[ListCustomModelsRequest()]; | ||
| 24 | |||
| 25 | declare 'ListCustomModelsResponse', | ||
| 26 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::SearchTuningService::ListCustomModelsResponse']; | ||
| 27 | |||
| 28 | coerce 'ListCustomModelsResponse', | ||
| 29 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::SearchTuningService::ListCustomModelsResponse'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedListCustomModelsResponse', | ||
| 32 | as ArrayRef[ListCustomModelsResponse()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedListCustomModelsResponse', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::SearchTuningService::ListCustomModelsResponse'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringListCustomModelsResponse', | ||
| 38 | as HashRef[ListCustomModelsResponse()]; | ||
| 39 | |||
| 40 | declare 'TrainCustomModelRequest', | ||
| 41 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::SearchTuningService::TrainCustomModelRequest']; | ||
| 42 | |||
| 43 | coerce 'TrainCustomModelRequest', | ||
| 44 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::SearchTuningService::TrainCustomModelRequest'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedTrainCustomModelRequest', | ||
| 47 | as ArrayRef[TrainCustomModelRequest()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedTrainCustomModelRequest', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::SearchTuningService::TrainCustomModelRequest'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringTrainCustomModelRequest', | ||
| 53 | as HashRef[TrainCustomModelRequest()]; | ||
| 54 | |||
| 55 | declare 'GcsTrainingInput', | ||
| 56 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::SearchTuningService::TrainCustomModelRequest::GcsTrainingInput']; | ||
| 57 | |||
| 58 | coerce 'GcsTrainingInput', | ||
| 59 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::SearchTuningService::TrainCustomModelRequest::GcsTrainingInput'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedGcsTrainingInput', | ||
| 62 | as ArrayRef[GcsTrainingInput()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedGcsTrainingInput', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::SearchTuningService::TrainCustomModelRequest::GcsTrainingInput'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringGcsTrainingInput', | ||
| 68 | as HashRef[GcsTrainingInput()]; | ||
| 69 | |||
| 70 | declare 'TrainCustomModelResponse', | ||
| 71 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::SearchTuningService::TrainCustomModelResponse']; | ||
| 72 | |||
| 73 | coerce 'TrainCustomModelResponse', | ||
| 74 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::SearchTuningService::TrainCustomModelResponse'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedTrainCustomModelResponse', | ||
| 77 | as ArrayRef[TrainCustomModelResponse()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedTrainCustomModelResponse', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::SearchTuningService::TrainCustomModelResponse'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringTrainCustomModelResponse', | ||
| 83 | as HashRef[TrainCustomModelResponse()]; | ||
| 84 | |||
| 85 | declare 'MetricsEntry', | ||
| 86 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::SearchTuningService::TrainCustomModelResponse::MetricsEntry']; | ||
| 87 | |||
| 88 | coerce 'MetricsEntry', | ||
| 89 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::SearchTuningService::TrainCustomModelResponse::MetricsEntry'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedMetricsEntry', | ||
| 92 | as ArrayRef[MetricsEntry()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedMetricsEntry', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::SearchTuningService::TrainCustomModelResponse::MetricsEntry'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringMetricsEntry', | ||
| 98 | as HashRef[MetricsEntry()]; | ||
| 99 | |||
| 100 | declare 'TrainCustomModelMetadata', | ||
| 101 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::SearchTuningService::TrainCustomModelMetadata']; | ||
| 102 | |||
| 103 | coerce 'TrainCustomModelMetadata', | ||
| 104 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::SearchTuningService::TrainCustomModelMetadata'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedTrainCustomModelMetadata', | ||
| 107 | as ArrayRef[TrainCustomModelMetadata()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedTrainCustomModelMetadata', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::SearchTuningService::TrainCustomModelMetadata'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringTrainCustomModelMetadata', | ||
| 113 | as HashRef[TrainCustomModelMetadata()]; | ||
| 114 | |||
| 115 | 1; | ||
| 116 | |||
| 117 | __END__ |