| 1 | package Google::Cloud::Discoveryengine::V1beta::Common::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 'IndustryVertical', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'SolutionType', | ||
| 14 | as (Int | Str); | ||
| 15 | |||
| 16 | declare 'SearchUseCase', | ||
| 17 | as (Int | Str); | ||
| 18 | |||
| 19 | declare 'SearchTier', | ||
| 20 | as (Int | Str); | ||
| 21 | |||
| 22 | declare 'SearchAddOn', | ||
| 23 | as (Int | Str); | ||
| 24 | |||
| 25 | declare 'SubscriptionTier', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'SubscriptionTerm', | ||
| 29 | as (Int | Str); | ||
| 30 | |||
| 31 | declare 'Interval', | ||
| 32 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Common::Interval']; | ||
| 33 | |||
| 34 | coerce 'Interval', | ||
| 35 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Common::Interval'->new($_) }; | ||
| 36 | |||
| 37 | declare 'RepeatedInterval', | ||
| 38 | as ArrayRef[Interval()]; | ||
| 39 | |||
| 40 | coerce 'RepeatedInterval', | ||
| 41 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Common::Interval'->new($_) } @$_ ] }; | ||
| 42 | |||
| 43 | declare 'MapStringInterval', | ||
| 44 | as HashRef[Interval()]; | ||
| 45 | |||
| 46 | declare 'CustomAttribute', | ||
| 47 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Common::CustomAttribute']; | ||
| 48 | |||
| 49 | coerce 'CustomAttribute', | ||
| 50 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Common::CustomAttribute'->new($_) }; | ||
| 51 | |||
| 52 | declare 'RepeatedCustomAttribute', | ||
| 53 | as ArrayRef[CustomAttribute()]; | ||
| 54 | |||
| 55 | coerce 'RepeatedCustomAttribute', | ||
| 56 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Common::CustomAttribute'->new($_) } @$_ ] }; | ||
| 57 | |||
| 58 | declare 'MapStringCustomAttribute', | ||
| 59 | as HashRef[CustomAttribute()]; | ||
| 60 | |||
| 61 | declare 'UserInfo', | ||
| 62 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Common::UserInfo']; | ||
| 63 | |||
| 64 | coerce 'UserInfo', | ||
| 65 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Common::UserInfo'->new($_) }; | ||
| 66 | |||
| 67 | declare 'RepeatedUserInfo', | ||
| 68 | as ArrayRef[UserInfo()]; | ||
| 69 | |||
| 70 | coerce 'RepeatedUserInfo', | ||
| 71 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Common::UserInfo'->new($_) } @$_ ] }; | ||
| 72 | |||
| 73 | declare 'MapStringUserInfo', | ||
| 74 | as HashRef[UserInfo()]; | ||
| 75 | |||
| 76 | declare 'PreciseLocation', | ||
| 77 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Common::UserInfo::PreciseLocation']; | ||
| 78 | |||
| 79 | coerce 'PreciseLocation', | ||
| 80 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Common::UserInfo::PreciseLocation'->new($_) }; | ||
| 81 | |||
| 82 | declare 'RepeatedPreciseLocation', | ||
| 83 | as ArrayRef[PreciseLocation()]; | ||
| 84 | |||
| 85 | coerce 'RepeatedPreciseLocation', | ||
| 86 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Common::UserInfo::PreciseLocation'->new($_) } @$_ ] }; | ||
| 87 | |||
| 88 | declare 'MapStringPreciseLocation', | ||
| 89 | as HashRef[PreciseLocation()]; | ||
| 90 | |||
| 91 | declare 'EmbeddingConfig', | ||
| 92 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Common::EmbeddingConfig']; | ||
| 93 | |||
| 94 | coerce 'EmbeddingConfig', | ||
| 95 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Common::EmbeddingConfig'->new($_) }; | ||
| 96 | |||
| 97 | declare 'RepeatedEmbeddingConfig', | ||
| 98 | as ArrayRef[EmbeddingConfig()]; | ||
| 99 | |||
| 100 | coerce 'RepeatedEmbeddingConfig', | ||
| 101 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Common::EmbeddingConfig'->new($_) } @$_ ] }; | ||
| 102 | |||
| 103 | declare 'MapStringEmbeddingConfig', | ||
| 104 | as HashRef[EmbeddingConfig()]; | ||
| 105 | |||
| 106 | declare 'DoubleList', | ||
| 107 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Common::DoubleList']; | ||
| 108 | |||
| 109 | coerce 'DoubleList', | ||
| 110 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Common::DoubleList'->new($_) }; | ||
| 111 | |||
| 112 | declare 'RepeatedDoubleList', | ||
| 113 | as ArrayRef[DoubleList()]; | ||
| 114 | |||
| 115 | coerce 'RepeatedDoubleList', | ||
| 116 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Common::DoubleList'->new($_) } @$_ ] }; | ||
| 117 | |||
| 118 | declare 'MapStringDoubleList', | ||
| 119 | as HashRef[DoubleList()]; | ||
| 120 | |||
| 121 | declare 'IdpConfig', | ||
| 122 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Common::IdpConfig']; | ||
| 123 | |||
| 124 | coerce 'IdpConfig', | ||
| 125 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Common::IdpConfig'->new($_) }; | ||
| 126 | |||
| 127 | declare 'RepeatedIdpConfig', | ||
| 128 | as ArrayRef[IdpConfig()]; | ||
| 129 | |||
| 130 | coerce 'RepeatedIdpConfig', | ||
| 131 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Common::IdpConfig'->new($_) } @$_ ] }; | ||
| 132 | |||
| 133 | declare 'MapStringIdpConfig', | ||
| 134 | as HashRef[IdpConfig()]; | ||
| 135 | |||
| 136 | declare 'IdpType', | ||
| 137 | as (Int | Str); | ||
| 138 | |||
| 139 | declare 'ExternalIdpConfig', | ||
| 140 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Common::IdpConfig::ExternalIdpConfig']; | ||
| 141 | |||
| 142 | coerce 'ExternalIdpConfig', | ||
| 143 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Common::IdpConfig::ExternalIdpConfig'->new($_) }; | ||
| 144 | |||
| 145 | declare 'RepeatedExternalIdpConfig', | ||
| 146 | as ArrayRef[ExternalIdpConfig()]; | ||
| 147 | |||
| 148 | coerce 'RepeatedExternalIdpConfig', | ||
| 149 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Common::IdpConfig::ExternalIdpConfig'->new($_) } @$_ ] }; | ||
| 150 | |||
| 151 | declare 'MapStringExternalIdpConfig', | ||
| 152 | as HashRef[ExternalIdpConfig()]; | ||
| 153 | |||
| 154 | declare 'Principal', | ||
| 155 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Common::Principal']; | ||
| 156 | |||
| 157 | coerce 'Principal', | ||
| 158 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Common::Principal'->new($_) }; | ||
| 159 | |||
| 160 | declare 'RepeatedPrincipal', | ||
| 161 | as ArrayRef[Principal()]; | ||
| 162 | |||
| 163 | coerce 'RepeatedPrincipal', | ||
| 164 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Common::Principal'->new($_) } @$_ ] }; | ||
| 165 | |||
| 166 | declare 'MapStringPrincipal', | ||
| 167 | as HashRef[Principal()]; | ||
| 168 | |||
| 169 | declare 'HealthcareFhirConfig', | ||
| 170 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Common::HealthcareFhirConfig']; | ||
| 171 | |||
| 172 | coerce 'HealthcareFhirConfig', | ||
| 173 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Common::HealthcareFhirConfig'->new($_) }; | ||
| 174 | |||
| 175 | declare 'RepeatedHealthcareFhirConfig', | ||
| 176 | as ArrayRef[HealthcareFhirConfig()]; | ||
| 177 | |||
| 178 | coerce 'RepeatedHealthcareFhirConfig', | ||
| 179 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Common::HealthcareFhirConfig'->new($_) } @$_ ] }; | ||
| 180 | |||
| 181 | declare 'MapStringHealthcareFhirConfig', | ||
| 182 | as HashRef[HealthcareFhirConfig()]; | ||
| 183 | |||
| 184 | declare 'SearchLinkPromotion', | ||
| 185 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Common::SearchLinkPromotion']; | ||
| 186 | |||
| 187 | coerce 'SearchLinkPromotion', | ||
| 188 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Common::SearchLinkPromotion'->new($_) }; | ||
| 189 | |||
| 190 | declare 'RepeatedSearchLinkPromotion', | ||
| 191 | as ArrayRef[SearchLinkPromotion()]; | ||
| 192 | |||
| 193 | coerce 'RepeatedSearchLinkPromotion', | ||
| 194 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Common::SearchLinkPromotion'->new($_) } @$_ ] }; | ||
| 195 | |||
| 196 | declare 'MapStringSearchLinkPromotion', | ||
| 197 | as HashRef[SearchLinkPromotion()]; | ||
| 198 | |||
| 199 | 1; | ||
| 200 | |||
| 201 | __END__ |