| 1 | package Google::Cloud::Discoveryengine::V1beta::Document::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 'Document', | ||
| 11 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Document::Document']; | ||
| 12 | |||
| 13 | coerce 'Document', | ||
| 14 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Document::Document'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedDocument', | ||
| 17 | as ArrayRef[Document()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedDocument', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Document::Document'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringDocument', | ||
| 23 | as HashRef[Document()]; | ||
| 24 | |||
| 25 | declare 'Content', | ||
| 26 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Document::Document::Content']; | ||
| 27 | |||
| 28 | coerce 'Content', | ||
| 29 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Document::Document::Content'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedContent', | ||
| 32 | as ArrayRef[Content()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedContent', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Document::Document::Content'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringContent', | ||
| 38 | as HashRef[Content()]; | ||
| 39 | |||
| 40 | declare 'AclInfo', | ||
| 41 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Document::Document::AclInfo']; | ||
| 42 | |||
| 43 | coerce 'AclInfo', | ||
| 44 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Document::Document::AclInfo'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedAclInfo', | ||
| 47 | as ArrayRef[AclInfo()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedAclInfo', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Document::Document::AclInfo'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringAclInfo', | ||
| 53 | as HashRef[AclInfo()]; | ||
| 54 | |||
| 55 | declare 'AccessRestriction', | ||
| 56 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Document::Document::AclInfo::AccessRestriction']; | ||
| 57 | |||
| 58 | coerce 'AccessRestriction', | ||
| 59 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Document::Document::AclInfo::AccessRestriction'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedAccessRestriction', | ||
| 62 | as ArrayRef[AccessRestriction()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedAccessRestriction', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Document::Document::AclInfo::AccessRestriction'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringAccessRestriction', | ||
| 68 | as HashRef[AccessRestriction()]; | ||
| 69 | |||
| 70 | declare 'IndexStatus', | ||
| 71 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Document::Document::IndexStatus']; | ||
| 72 | |||
| 73 | coerce 'IndexStatus', | ||
| 74 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Document::Document::IndexStatus'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedIndexStatus', | ||
| 77 | as ArrayRef[IndexStatus()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedIndexStatus', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Document::Document::IndexStatus'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringIndexStatus', | ||
| 83 | as HashRef[IndexStatus()]; | ||
| 84 | |||
| 85 | 1; | ||
| 86 | |||
| 87 | __END__ |