| 1 | package Google::Cloud::Discoveryengine::V1alpha::Engine::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 'Engine', | ||
| 11 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Engine::Engine']; | ||
| 12 | |||
| 13 | coerce 'Engine', | ||
| 14 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Engine::Engine'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedEngine', | ||
| 17 | as ArrayRef[Engine()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedEngine', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Engine::Engine'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringEngine', | ||
| 23 | as HashRef[Engine()]; | ||
| 24 | |||
| 25 | declare 'SearchEngineConfig', | ||
| 26 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Engine::Engine::SearchEngineConfig']; | ||
| 27 | |||
| 28 | coerce 'SearchEngineConfig', | ||
| 29 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Engine::Engine::SearchEngineConfig'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedSearchEngineConfig', | ||
| 32 | as ArrayRef[SearchEngineConfig()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedSearchEngineConfig', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Engine::Engine::SearchEngineConfig'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringSearchEngineConfig', | ||
| 38 | as HashRef[SearchEngineConfig()]; | ||
| 39 | |||
| 40 | declare 'SimilarDocumentsEngineConfig', | ||
| 41 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Engine::Engine::SimilarDocumentsEngineConfig']; | ||
| 42 | |||
| 43 | coerce 'SimilarDocumentsEngineConfig', | ||
| 44 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Engine::Engine::SimilarDocumentsEngineConfig'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedSimilarDocumentsEngineConfig', | ||
| 47 | as ArrayRef[SimilarDocumentsEngineConfig()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedSimilarDocumentsEngineConfig', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Engine::Engine::SimilarDocumentsEngineConfig'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringSimilarDocumentsEngineConfig', | ||
| 53 | as HashRef[SimilarDocumentsEngineConfig()]; | ||
| 54 | |||
| 55 | declare 'MediaRecommendationEngineConfig', | ||
| 56 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Engine::Engine::MediaRecommendationEngineConfig']; | ||
| 57 | |||
| 58 | coerce 'MediaRecommendationEngineConfig', | ||
| 59 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Engine::Engine::MediaRecommendationEngineConfig'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedMediaRecommendationEngineConfig', | ||
| 62 | as ArrayRef[MediaRecommendationEngineConfig()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedMediaRecommendationEngineConfig', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Engine::Engine::MediaRecommendationEngineConfig'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringMediaRecommendationEngineConfig', | ||
| 68 | as HashRef[MediaRecommendationEngineConfig()]; | ||
| 69 | |||
| 70 | declare 'TrainingState', | ||
| 71 | as (Int | Str); | ||
| 72 | |||
| 73 | declare 'OptimizationObjectiveConfig', | ||
| 74 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Engine::Engine::MediaRecommendationEngineConfig::OptimizationObjectiveConfig']; | ||
| 75 | |||
| 76 | coerce 'OptimizationObjectiveConfig', | ||
| 77 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Engine::Engine::MediaRecommendationEngineConfig::OptimizationObjectiveConfig'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedOptimizationObjectiveConfig', | ||
| 80 | as ArrayRef[OptimizationObjectiveConfig()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedOptimizationObjectiveConfig', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Engine::Engine::MediaRecommendationEngineConfig::OptimizationObjectiveConfig'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringOptimizationObjectiveConfig', | ||
| 86 | as HashRef[OptimizationObjectiveConfig()]; | ||
| 87 | |||
| 88 | declare 'ChatEngineConfig', | ||
| 89 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Engine::Engine::ChatEngineConfig']; | ||
| 90 | |||
| 91 | coerce 'ChatEngineConfig', | ||
| 92 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Engine::Engine::ChatEngineConfig'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedChatEngineConfig', | ||
| 95 | as ArrayRef[ChatEngineConfig()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedChatEngineConfig', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Engine::Engine::ChatEngineConfig'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringChatEngineConfig', | ||
| 101 | as HashRef[ChatEngineConfig()]; | ||
| 102 | |||
| 103 | declare 'AgentCreationConfig', | ||
| 104 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Engine::Engine::ChatEngineConfig::AgentCreationConfig']; | ||
| 105 | |||
| 106 | coerce 'AgentCreationConfig', | ||
| 107 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Engine::Engine::ChatEngineConfig::AgentCreationConfig'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedAgentCreationConfig', | ||
| 110 | as ArrayRef[AgentCreationConfig()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedAgentCreationConfig', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Engine::Engine::ChatEngineConfig::AgentCreationConfig'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringAgentCreationConfig', | ||
| 116 | as HashRef[AgentCreationConfig()]; | ||
| 117 | |||
| 118 | declare 'CommonConfig', | ||
| 119 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Engine::Engine::CommonConfig']; | ||
| 120 | |||
| 121 | coerce 'CommonConfig', | ||
| 122 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Engine::Engine::CommonConfig'->new($_) }; | ||
| 123 | |||
| 124 | declare 'RepeatedCommonConfig', | ||
| 125 | as ArrayRef[CommonConfig()]; | ||
| 126 | |||
| 127 | coerce 'RepeatedCommonConfig', | ||
| 128 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Engine::Engine::CommonConfig'->new($_) } @$_ ] }; | ||
| 129 | |||
| 130 | declare 'MapStringCommonConfig', | ||
| 131 | as HashRef[CommonConfig()]; | ||
| 132 | |||
| 133 | declare 'RecommendationMetadata', | ||
| 134 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Engine::Engine::RecommendationMetadata']; | ||
| 135 | |||
| 136 | coerce 'RecommendationMetadata', | ||
| 137 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Engine::Engine::RecommendationMetadata'->new($_) }; | ||
| 138 | |||
| 139 | declare 'RepeatedRecommendationMetadata', | ||
| 140 | as ArrayRef[RecommendationMetadata()]; | ||
| 141 | |||
| 142 | coerce 'RepeatedRecommendationMetadata', | ||
| 143 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Engine::Engine::RecommendationMetadata'->new($_) } @$_ ] }; | ||
| 144 | |||
| 145 | declare 'MapStringRecommendationMetadata', | ||
| 146 | as HashRef[RecommendationMetadata()]; | ||
| 147 | |||
| 148 | declare 'ServingState', | ||
| 149 | as (Int | Str); | ||
| 150 | |||
| 151 | declare 'DataState', | ||
| 152 | as (Int | Str); | ||
| 153 | |||
| 154 | declare 'ChatEngineMetadata', | ||
| 155 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Engine::Engine::ChatEngineMetadata']; | ||
| 156 | |||
| 157 | coerce 'ChatEngineMetadata', | ||
| 158 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Engine::Engine::ChatEngineMetadata'->new($_) }; | ||
| 159 | |||
| 160 | declare 'RepeatedChatEngineMetadata', | ||
| 161 | as ArrayRef[ChatEngineMetadata()]; | ||
| 162 | |||
| 163 | coerce 'RepeatedChatEngineMetadata', | ||
| 164 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Engine::Engine::ChatEngineMetadata'->new($_) } @$_ ] }; | ||
| 165 | |||
| 166 | declare 'MapStringChatEngineMetadata', | ||
| 167 | as HashRef[ChatEngineMetadata()]; | ||
| 168 | |||
| 169 | 1; | ||
| 170 | |||
| 171 | __END__ |