| 1 | package Google::Cloud::Contentwarehouse::V1::DocumentService::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 'CreateDocumentResponse', | ||
| 11 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentService::CreateDocumentResponse']; | ||
| 12 | |||
| 13 | coerce 'CreateDocumentResponse', | ||
| 14 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentService::CreateDocumentResponse'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedCreateDocumentResponse', | ||
| 17 | as ArrayRef[CreateDocumentResponse()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedCreateDocumentResponse', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentService::CreateDocumentResponse'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringCreateDocumentResponse', | ||
| 23 | as HashRef[CreateDocumentResponse()]; | ||
| 24 | |||
| 25 | declare 'UpdateDocumentResponse', | ||
| 26 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentService::UpdateDocumentResponse']; | ||
| 27 | |||
| 28 | coerce 'UpdateDocumentResponse', | ||
| 29 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentService::UpdateDocumentResponse'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedUpdateDocumentResponse', | ||
| 32 | as ArrayRef[UpdateDocumentResponse()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedUpdateDocumentResponse', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentService::UpdateDocumentResponse'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringUpdateDocumentResponse', | ||
| 38 | as HashRef[UpdateDocumentResponse()]; | ||
| 39 | |||
| 40 | declare 'QAResult', | ||
| 41 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentService::QAResult']; | ||
| 42 | |||
| 43 | coerce 'QAResult', | ||
| 44 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentService::QAResult'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedQAResult', | ||
| 47 | as ArrayRef[QAResult()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedQAResult', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentService::QAResult'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringQAResult', | ||
| 53 | as HashRef[QAResult()]; | ||
| 54 | |||
| 55 | declare 'Highlight', | ||
| 56 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentService::QAResult::Highlight']; | ||
| 57 | |||
| 58 | coerce 'Highlight', | ||
| 59 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentService::QAResult::Highlight'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedHighlight', | ||
| 62 | as ArrayRef[Highlight()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedHighlight', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentService::QAResult::Highlight'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringHighlight', | ||
| 68 | as HashRef[Highlight()]; | ||
| 69 | |||
| 70 | declare 'SearchDocumentsResponse', | ||
| 71 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentService::SearchDocumentsResponse']; | ||
| 72 | |||
| 73 | coerce 'SearchDocumentsResponse', | ||
| 74 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentService::SearchDocumentsResponse'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedSearchDocumentsResponse', | ||
| 77 | as ArrayRef[SearchDocumentsResponse()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedSearchDocumentsResponse', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentService::SearchDocumentsResponse'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringSearchDocumentsResponse', | ||
| 83 | as HashRef[SearchDocumentsResponse()]; | ||
| 84 | |||
| 85 | declare 'MatchingDocument', | ||
| 86 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentService::SearchDocumentsResponse::MatchingDocument']; | ||
| 87 | |||
| 88 | coerce 'MatchingDocument', | ||
| 89 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentService::SearchDocumentsResponse::MatchingDocument'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedMatchingDocument', | ||
| 92 | as ArrayRef[MatchingDocument()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedMatchingDocument', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentService::SearchDocumentsResponse::MatchingDocument'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringMatchingDocument', | ||
| 98 | as HashRef[MatchingDocument()]; | ||
| 99 | |||
| 100 | declare 'FetchAclResponse', | ||
| 101 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentService::FetchAclResponse']; | ||
| 102 | |||
| 103 | coerce 'FetchAclResponse', | ||
| 104 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentService::FetchAclResponse'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedFetchAclResponse', | ||
| 107 | as ArrayRef[FetchAclResponse()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedFetchAclResponse', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentService::FetchAclResponse'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringFetchAclResponse', | ||
| 113 | as HashRef[FetchAclResponse()]; | ||
| 114 | |||
| 115 | declare 'SetAclResponse', | ||
| 116 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentService::SetAclResponse']; | ||
| 117 | |||
| 118 | coerce 'SetAclResponse', | ||
| 119 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentService::SetAclResponse'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedSetAclResponse', | ||
| 122 | as ArrayRef[SetAclResponse()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedSetAclResponse', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentService::SetAclResponse'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringSetAclResponse', | ||
| 128 | as HashRef[SetAclResponse()]; | ||
| 129 | |||
| 130 | 1; | ||
| 131 | |||
| 132 | __END__ |