| 1 | package Google::Cloud::Discoveryengine::V1alpha::DataStore::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 'DataStore', | ||
| 11 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::DataStore::DataStore']; | ||
| 12 | |||
| 13 | coerce 'DataStore', | ||
| 14 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::DataStore::DataStore'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedDataStore', | ||
| 17 | as ArrayRef[DataStore()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedDataStore', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::DataStore::DataStore'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringDataStore', | ||
| 23 | as HashRef[DataStore()]; | ||
| 24 | |||
| 25 | declare 'ContentConfig', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'LanguageInfo', | ||
| 29 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::DataStore::LanguageInfo']; | ||
| 30 | |||
| 31 | coerce 'LanguageInfo', | ||
| 32 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::DataStore::LanguageInfo'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedLanguageInfo', | ||
| 35 | as ArrayRef[LanguageInfo()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedLanguageInfo', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::DataStore::LanguageInfo'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringLanguageInfo', | ||
| 41 | as HashRef[LanguageInfo()]; | ||
| 42 | |||
| 43 | declare 'WorkspaceConfig', | ||
| 44 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::DataStore::WorkspaceConfig']; | ||
| 45 | |||
| 46 | coerce 'WorkspaceConfig', | ||
| 47 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::DataStore::WorkspaceConfig'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedWorkspaceConfig', | ||
| 50 | as ArrayRef[WorkspaceConfig()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedWorkspaceConfig', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::DataStore::WorkspaceConfig'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringWorkspaceConfig', | ||
| 56 | as HashRef[WorkspaceConfig()]; | ||
| 57 | |||
| 58 | declare 'Type', | ||
| 59 | as (Int | Str); | ||
| 60 | |||
| 61 | 1; | ||
| 62 | |||
| 63 | __END__ |