| 1 | package Google::Cloud::Contentwarehouse::V1::DocumentSchema::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 'DocumentSchema', | ||
| 11 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentSchema::DocumentSchema']; | ||
| 12 | |||
| 13 | coerce 'DocumentSchema', | ||
| 14 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentSchema::DocumentSchema'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedDocumentSchema', | ||
| 17 | as ArrayRef[DocumentSchema()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedDocumentSchema', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentSchema::DocumentSchema'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringDocumentSchema', | ||
| 23 | as HashRef[DocumentSchema()]; | ||
| 24 | |||
| 25 | declare 'PropertyDefinition', | ||
| 26 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentSchema::PropertyDefinition']; | ||
| 27 | |||
| 28 | coerce 'PropertyDefinition', | ||
| 29 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentSchema::PropertyDefinition'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedPropertyDefinition', | ||
| 32 | as ArrayRef[PropertyDefinition()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedPropertyDefinition', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentSchema::PropertyDefinition'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringPropertyDefinition', | ||
| 38 | as HashRef[PropertyDefinition()]; | ||
| 39 | |||
| 40 | declare 'RetrievalImportance', | ||
| 41 | as (Int | Str); | ||
| 42 | |||
| 43 | declare 'SchemaSource', | ||
| 44 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentSchema::PropertyDefinition::SchemaSource']; | ||
| 45 | |||
| 46 | coerce 'SchemaSource', | ||
| 47 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentSchema::PropertyDefinition::SchemaSource'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedSchemaSource', | ||
| 50 | as ArrayRef[SchemaSource()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedSchemaSource', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentSchema::PropertyDefinition::SchemaSource'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringSchemaSource', | ||
| 56 | as HashRef[SchemaSource()]; | ||
| 57 | |||
| 58 | declare 'IntegerTypeOptions', | ||
| 59 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentSchema::IntegerTypeOptions']; | ||
| 60 | |||
| 61 | coerce 'IntegerTypeOptions', | ||
| 62 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentSchema::IntegerTypeOptions'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedIntegerTypeOptions', | ||
| 65 | as ArrayRef[IntegerTypeOptions()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedIntegerTypeOptions', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentSchema::IntegerTypeOptions'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringIntegerTypeOptions', | ||
| 71 | as HashRef[IntegerTypeOptions()]; | ||
| 72 | |||
| 73 | declare 'FloatTypeOptions', | ||
| 74 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentSchema::FloatTypeOptions']; | ||
| 75 | |||
| 76 | coerce 'FloatTypeOptions', | ||
| 77 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentSchema::FloatTypeOptions'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedFloatTypeOptions', | ||
| 80 | as ArrayRef[FloatTypeOptions()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedFloatTypeOptions', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentSchema::FloatTypeOptions'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringFloatTypeOptions', | ||
| 86 | as HashRef[FloatTypeOptions()]; | ||
| 87 | |||
| 88 | declare 'TextTypeOptions', | ||
| 89 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentSchema::TextTypeOptions']; | ||
| 90 | |||
| 91 | coerce 'TextTypeOptions', | ||
| 92 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentSchema::TextTypeOptions'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedTextTypeOptions', | ||
| 95 | as ArrayRef[TextTypeOptions()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedTextTypeOptions', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentSchema::TextTypeOptions'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringTextTypeOptions', | ||
| 101 | as HashRef[TextTypeOptions()]; | ||
| 102 | |||
| 103 | declare 'DateTimeTypeOptions', | ||
| 104 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentSchema::DateTimeTypeOptions']; | ||
| 105 | |||
| 106 | coerce 'DateTimeTypeOptions', | ||
| 107 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentSchema::DateTimeTypeOptions'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedDateTimeTypeOptions', | ||
| 110 | as ArrayRef[DateTimeTypeOptions()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedDateTimeTypeOptions', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentSchema::DateTimeTypeOptions'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringDateTimeTypeOptions', | ||
| 116 | as HashRef[DateTimeTypeOptions()]; | ||
| 117 | |||
| 118 | declare 'MapTypeOptions', | ||
| 119 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentSchema::MapTypeOptions']; | ||
| 120 | |||
| 121 | coerce 'MapTypeOptions', | ||
| 122 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentSchema::MapTypeOptions'->new($_) }; | ||
| 123 | |||
| 124 | declare 'RepeatedMapTypeOptions', | ||
| 125 | as ArrayRef[MapTypeOptions()]; | ||
| 126 | |||
| 127 | coerce 'RepeatedMapTypeOptions', | ||
| 128 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentSchema::MapTypeOptions'->new($_) } @$_ ] }; | ||
| 129 | |||
| 130 | declare 'MapStringMapTypeOptions', | ||
| 131 | as HashRef[MapTypeOptions()]; | ||
| 132 | |||
| 133 | declare 'TimestampTypeOptions', | ||
| 134 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentSchema::TimestampTypeOptions']; | ||
| 135 | |||
| 136 | coerce 'TimestampTypeOptions', | ||
| 137 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentSchema::TimestampTypeOptions'->new($_) }; | ||
| 138 | |||
| 139 | declare 'RepeatedTimestampTypeOptions', | ||
| 140 | as ArrayRef[TimestampTypeOptions()]; | ||
| 141 | |||
| 142 | coerce 'RepeatedTimestampTypeOptions', | ||
| 143 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentSchema::TimestampTypeOptions'->new($_) } @$_ ] }; | ||
| 144 | |||
| 145 | declare 'MapStringTimestampTypeOptions', | ||
| 146 | as HashRef[TimestampTypeOptions()]; | ||
| 147 | |||
| 148 | declare 'PropertyTypeOptions', | ||
| 149 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentSchema::PropertyTypeOptions']; | ||
| 150 | |||
| 151 | coerce 'PropertyTypeOptions', | ||
| 152 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentSchema::PropertyTypeOptions'->new($_) }; | ||
| 153 | |||
| 154 | declare 'RepeatedPropertyTypeOptions', | ||
| 155 | as ArrayRef[PropertyTypeOptions()]; | ||
| 156 | |||
| 157 | coerce 'RepeatedPropertyTypeOptions', | ||
| 158 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentSchema::PropertyTypeOptions'->new($_) } @$_ ] }; | ||
| 159 | |||
| 160 | declare 'MapStringPropertyTypeOptions', | ||
| 161 | as HashRef[PropertyTypeOptions()]; | ||
| 162 | |||
| 163 | declare 'EnumTypeOptions', | ||
| 164 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentSchema::EnumTypeOptions']; | ||
| 165 | |||
| 166 | coerce 'EnumTypeOptions', | ||
| 167 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentSchema::EnumTypeOptions'->new($_) }; | ||
| 168 | |||
| 169 | declare 'RepeatedEnumTypeOptions', | ||
| 170 | as ArrayRef[EnumTypeOptions()]; | ||
| 171 | |||
| 172 | coerce 'RepeatedEnumTypeOptions', | ||
| 173 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentSchema::EnumTypeOptions'->new($_) } @$_ ] }; | ||
| 174 | |||
| 175 | declare 'MapStringEnumTypeOptions', | ||
| 176 | as HashRef[EnumTypeOptions()]; | ||
| 177 | |||
| 178 | 1; | ||
| 179 | |||
| 180 | __END__ |