| 1 | package Google::Ai::Generativelanguage::V1beta::CacheService::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 'ListCachedContentsRequest', | ||
| 11 | as InstanceOf['Google::Ai::Generativelanguage::V1beta::CacheService::ListCachedContentsRequest']; | ||
| 12 | |||
| 13 | coerce 'ListCachedContentsRequest', | ||
| 14 | from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::CacheService::ListCachedContentsRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedListCachedContentsRequest', | ||
| 17 | as ArrayRef[ListCachedContentsRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedListCachedContentsRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::CacheService::ListCachedContentsRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringListCachedContentsRequest', | ||
| 23 | as HashRef[ListCachedContentsRequest()]; | ||
| 24 | |||
| 25 | declare 'ListCachedContentsResponse', | ||
| 26 | as InstanceOf['Google::Ai::Generativelanguage::V1beta::CacheService::ListCachedContentsResponse']; | ||
| 27 | |||
| 28 | coerce 'ListCachedContentsResponse', | ||
| 29 | from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::CacheService::ListCachedContentsResponse'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedListCachedContentsResponse', | ||
| 32 | as ArrayRef[ListCachedContentsResponse()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedListCachedContentsResponse', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::CacheService::ListCachedContentsResponse'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringListCachedContentsResponse', | ||
| 38 | as HashRef[ListCachedContentsResponse()]; | ||
| 39 | |||
| 40 | declare 'CreateCachedContentRequest', | ||
| 41 | as InstanceOf['Google::Ai::Generativelanguage::V1beta::CacheService::CreateCachedContentRequest']; | ||
| 42 | |||
| 43 | coerce 'CreateCachedContentRequest', | ||
| 44 | from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::CacheService::CreateCachedContentRequest'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedCreateCachedContentRequest', | ||
| 47 | as ArrayRef[CreateCachedContentRequest()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedCreateCachedContentRequest', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::CacheService::CreateCachedContentRequest'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringCreateCachedContentRequest', | ||
| 53 | as HashRef[CreateCachedContentRequest()]; | ||
| 54 | |||
| 55 | declare 'GetCachedContentRequest', | ||
| 56 | as InstanceOf['Google::Ai::Generativelanguage::V1beta::CacheService::GetCachedContentRequest']; | ||
| 57 | |||
| 58 | coerce 'GetCachedContentRequest', | ||
| 59 | from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::CacheService::GetCachedContentRequest'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedGetCachedContentRequest', | ||
| 62 | as ArrayRef[GetCachedContentRequest()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedGetCachedContentRequest', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::CacheService::GetCachedContentRequest'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringGetCachedContentRequest', | ||
| 68 | as HashRef[GetCachedContentRequest()]; | ||
| 69 | |||
| 70 | declare 'UpdateCachedContentRequest', | ||
| 71 | as InstanceOf['Google::Ai::Generativelanguage::V1beta::CacheService::UpdateCachedContentRequest']; | ||
| 72 | |||
| 73 | coerce 'UpdateCachedContentRequest', | ||
| 74 | from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::CacheService::UpdateCachedContentRequest'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedUpdateCachedContentRequest', | ||
| 77 | as ArrayRef[UpdateCachedContentRequest()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedUpdateCachedContentRequest', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::CacheService::UpdateCachedContentRequest'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringUpdateCachedContentRequest', | ||
| 83 | as HashRef[UpdateCachedContentRequest()]; | ||
| 84 | |||
| 85 | declare 'DeleteCachedContentRequest', | ||
| 86 | as InstanceOf['Google::Ai::Generativelanguage::V1beta::CacheService::DeleteCachedContentRequest']; | ||
| 87 | |||
| 88 | coerce 'DeleteCachedContentRequest', | ||
| 89 | from HashRef, via { 'Google::Ai::Generativelanguage::V1beta::CacheService::DeleteCachedContentRequest'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedDeleteCachedContentRequest', | ||
| 92 | as ArrayRef[DeleteCachedContentRequest()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedDeleteCachedContentRequest', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta::CacheService::DeleteCachedContentRequest'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringDeleteCachedContentRequest', | ||
| 98 | as HashRef[DeleteCachedContentRequest()]; | ||
| 99 | |||
| 100 | 1; | ||
| 101 | |||
| 102 | __END__ |