| 1 | package Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::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 'CloudAIDocumentOption', | ||
| 11 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::CloudAIDocumentOption']; | ||
| 12 | |||
| 13 | coerce 'CloudAIDocumentOption', | ||
| 14 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::CloudAIDocumentOption'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedCloudAIDocumentOption', | ||
| 17 | as ArrayRef[CloudAIDocumentOption()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedCloudAIDocumentOption', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::CloudAIDocumentOption'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringCloudAIDocumentOption', | ||
| 23 | as HashRef[CloudAIDocumentOption()]; | ||
| 24 | |||
| 25 | declare 'CustomizedEntitiesPropertiesConversionsEntry', | ||
| 26 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::CloudAIDocumentOption::CustomizedEntitiesPropertiesConversionsEntry']; | ||
| 27 | |||
| 28 | coerce 'CustomizedEntitiesPropertiesConversionsEntry', | ||
| 29 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::CloudAIDocumentOption::CustomizedEntitiesPropertiesConversionsEntry'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedCustomizedEntitiesPropertiesConversionsEntry', | ||
| 32 | as ArrayRef[CustomizedEntitiesPropertiesConversionsEntry()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedCustomizedEntitiesPropertiesConversionsEntry', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::CloudAIDocumentOption::CustomizedEntitiesPropertiesConversionsEntry'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringCustomizedEntitiesPropertiesConversionsEntry', | ||
| 38 | as HashRef[CustomizedEntitiesPropertiesConversionsEntry()]; | ||
| 39 | |||
| 40 | declare 'CreateDocumentRequest', | ||
| 41 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::CreateDocumentRequest']; | ||
| 42 | |||
| 43 | coerce 'CreateDocumentRequest', | ||
| 44 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::CreateDocumentRequest'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedCreateDocumentRequest', | ||
| 47 | as ArrayRef[CreateDocumentRequest()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedCreateDocumentRequest', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::CreateDocumentRequest'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringCreateDocumentRequest', | ||
| 53 | as HashRef[CreateDocumentRequest()]; | ||
| 54 | |||
| 55 | declare 'GetDocumentRequest', | ||
| 56 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::GetDocumentRequest']; | ||
| 57 | |||
| 58 | coerce 'GetDocumentRequest', | ||
| 59 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::GetDocumentRequest'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedGetDocumentRequest', | ||
| 62 | as ArrayRef[GetDocumentRequest()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedGetDocumentRequest', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::GetDocumentRequest'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringGetDocumentRequest', | ||
| 68 | as HashRef[GetDocumentRequest()]; | ||
| 69 | |||
| 70 | declare 'UpdateDocumentRequest', | ||
| 71 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::UpdateDocumentRequest']; | ||
| 72 | |||
| 73 | coerce 'UpdateDocumentRequest', | ||
| 74 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::UpdateDocumentRequest'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedUpdateDocumentRequest', | ||
| 77 | as ArrayRef[UpdateDocumentRequest()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedUpdateDocumentRequest', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::UpdateDocumentRequest'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringUpdateDocumentRequest', | ||
| 83 | as HashRef[UpdateDocumentRequest()]; | ||
| 84 | |||
| 85 | declare 'DeleteDocumentRequest', | ||
| 86 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::DeleteDocumentRequest']; | ||
| 87 | |||
| 88 | coerce 'DeleteDocumentRequest', | ||
| 89 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::DeleteDocumentRequest'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedDeleteDocumentRequest', | ||
| 92 | as ArrayRef[DeleteDocumentRequest()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedDeleteDocumentRequest', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::DeleteDocumentRequest'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringDeleteDocumentRequest', | ||
| 98 | as HashRef[DeleteDocumentRequest()]; | ||
| 99 | |||
| 100 | declare 'SearchDocumentsRequest', | ||
| 101 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::SearchDocumentsRequest']; | ||
| 102 | |||
| 103 | coerce 'SearchDocumentsRequest', | ||
| 104 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::SearchDocumentsRequest'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedSearchDocumentsRequest', | ||
| 107 | as ArrayRef[SearchDocumentsRequest()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedSearchDocumentsRequest', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::SearchDocumentsRequest'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringSearchDocumentsRequest', | ||
| 113 | as HashRef[SearchDocumentsRequest()]; | ||
| 114 | |||
| 115 | declare 'TotalResultSize', | ||
| 116 | as (Int | Str); | ||
| 117 | |||
| 118 | declare 'LockDocumentRequest', | ||
| 119 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::LockDocumentRequest']; | ||
| 120 | |||
| 121 | coerce 'LockDocumentRequest', | ||
| 122 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::LockDocumentRequest'->new($_) }; | ||
| 123 | |||
| 124 | declare 'RepeatedLockDocumentRequest', | ||
| 125 | as ArrayRef[LockDocumentRequest()]; | ||
| 126 | |||
| 127 | coerce 'RepeatedLockDocumentRequest', | ||
| 128 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::LockDocumentRequest'->new($_) } @$_ ] }; | ||
| 129 | |||
| 130 | declare 'MapStringLockDocumentRequest', | ||
| 131 | as HashRef[LockDocumentRequest()]; | ||
| 132 | |||
| 133 | declare 'FetchAclRequest', | ||
| 134 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::FetchAclRequest']; | ||
| 135 | |||
| 136 | coerce 'FetchAclRequest', | ||
| 137 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::FetchAclRequest'->new($_) }; | ||
| 138 | |||
| 139 | declare 'RepeatedFetchAclRequest', | ||
| 140 | as ArrayRef[FetchAclRequest()]; | ||
| 141 | |||
| 142 | coerce 'RepeatedFetchAclRequest', | ||
| 143 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::FetchAclRequest'->new($_) } @$_ ] }; | ||
| 144 | |||
| 145 | declare 'MapStringFetchAclRequest', | ||
| 146 | as HashRef[FetchAclRequest()]; | ||
| 147 | |||
| 148 | declare 'SetAclRequest', | ||
| 149 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::SetAclRequest']; | ||
| 150 | |||
| 151 | coerce 'SetAclRequest', | ||
| 152 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::SetAclRequest'->new($_) }; | ||
| 153 | |||
| 154 | declare 'RepeatedSetAclRequest', | ||
| 155 | as ArrayRef[SetAclRequest()]; | ||
| 156 | |||
| 157 | coerce 'RepeatedSetAclRequest', | ||
| 158 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentServiceRequest::SetAclRequest'->new($_) } @$_ ] }; | ||
| 159 | |||
| 160 | declare 'MapStringSetAclRequest', | ||
| 161 | as HashRef[SetAclRequest()]; | ||
| 162 | |||
| 163 | 1; | ||
| 164 | |||
| 165 | __END__ |