| 1 | package Google::Cloud::Discoveryengine::V1alpha::ChunkService::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 'GetChunkRequest', | ||
| 11 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::ChunkService::GetChunkRequest']; | ||
| 12 | |||
| 13 | coerce 'GetChunkRequest', | ||
| 14 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::ChunkService::GetChunkRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedGetChunkRequest', | ||
| 17 | as ArrayRef[GetChunkRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedGetChunkRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::ChunkService::GetChunkRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringGetChunkRequest', | ||
| 23 | as HashRef[GetChunkRequest()]; | ||
| 24 | |||
| 25 | declare 'ListChunksRequest', | ||
| 26 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::ChunkService::ListChunksRequest']; | ||
| 27 | |||
| 28 | coerce 'ListChunksRequest', | ||
| 29 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::ChunkService::ListChunksRequest'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedListChunksRequest', | ||
| 32 | as ArrayRef[ListChunksRequest()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedListChunksRequest', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::ChunkService::ListChunksRequest'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringListChunksRequest', | ||
| 38 | as HashRef[ListChunksRequest()]; | ||
| 39 | |||
| 40 | declare 'ListChunksResponse', | ||
| 41 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::ChunkService::ListChunksResponse']; | ||
| 42 | |||
| 43 | coerce 'ListChunksResponse', | ||
| 44 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::ChunkService::ListChunksResponse'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedListChunksResponse', | ||
| 47 | as ArrayRef[ListChunksResponse()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedListChunksResponse', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::ChunkService::ListChunksResponse'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringListChunksResponse', | ||
| 53 | as HashRef[ListChunksResponse()]; | ||
| 54 | |||
| 55 | 1; | ||
| 56 | |||
| 57 | __END__ |