| 1 | package Google::Cloud::Discoveryengine::V1alpha::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 'FileOriginType', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'Interval', | ||
| 29 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Common::Interval']; | ||
| 30 | |||
| 31 | coerce 'Interval', | ||
| 32 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Common::Interval'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedInterval', | ||
| 35 | as ArrayRef[Interval()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedInterval', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Common::Interval'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringInterval', | ||
| 41 | as HashRef[Interval()]; | ||
| 42 | |||
| 43 | declare 'CustomAttribute', | ||
| 44 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Common::CustomAttribute']; | ||
| 45 | |||
| 46 | coerce 'CustomAttribute', | ||
| 47 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Common::CustomAttribute'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedCustomAttribute', | ||
| 50 | as ArrayRef[CustomAttribute()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedCustomAttribute', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Common::CustomAttribute'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringCustomAttribute', | ||
| 56 | as HashRef[CustomAttribute()]; | ||
| 57 | |||
| 58 | declare 'UserInfo', | ||
| 59 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Common::UserInfo']; | ||
| 60 | |||
| 61 | coerce 'UserInfo', | ||
| 62 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Common::UserInfo'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedUserInfo', | ||
| 65 | as ArrayRef[UserInfo()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedUserInfo', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Common::UserInfo'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringUserInfo', | ||
| 71 | as HashRef[UserInfo()]; | ||
| 72 | |||
| 73 | declare 'EmbeddingConfig', | ||
| 74 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Common::EmbeddingConfig']; | ||
| 75 | |||
| 76 | coerce 'EmbeddingConfig', | ||
| 77 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Common::EmbeddingConfig'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedEmbeddingConfig', | ||
| 80 | as ArrayRef[EmbeddingConfig()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedEmbeddingConfig', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Common::EmbeddingConfig'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringEmbeddingConfig', | ||
| 86 | as HashRef[EmbeddingConfig()]; | ||
| 87 | |||
| 88 | declare 'DoubleList', | ||
| 89 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Common::DoubleList']; | ||
| 90 | |||
| 91 | coerce 'DoubleList', | ||
| 92 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Common::DoubleList'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedDoubleList', | ||
| 95 | as ArrayRef[DoubleList()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedDoubleList', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Common::DoubleList'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringDoubleList', | ||
| 101 | as HashRef[DoubleList()]; | ||
| 102 | |||
| 103 | declare 'GuidedSearchSpec', | ||
| 104 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Common::GuidedSearchSpec']; | ||
| 105 | |||
| 106 | coerce 'GuidedSearchSpec', | ||
| 107 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Common::GuidedSearchSpec'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedGuidedSearchSpec', | ||
| 110 | as ArrayRef[GuidedSearchSpec()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedGuidedSearchSpec', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Common::GuidedSearchSpec'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringGuidedSearchSpec', | ||
| 116 | as HashRef[GuidedSearchSpec()]; | ||
| 117 | |||
| 118 | declare 'CustomFineTuningSpec', | ||
| 119 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Common::CustomFineTuningSpec']; | ||
| 120 | |||
| 121 | coerce 'CustomFineTuningSpec', | ||
| 122 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Common::CustomFineTuningSpec'->new($_) }; | ||
| 123 | |||
| 124 | declare 'RepeatedCustomFineTuningSpec', | ||
| 125 | as ArrayRef[CustomFineTuningSpec()]; | ||
| 126 | |||
| 127 | coerce 'RepeatedCustomFineTuningSpec', | ||
| 128 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Common::CustomFineTuningSpec'->new($_) } @$_ ] }; | ||
| 129 | |||
| 130 | declare 'MapStringCustomFineTuningSpec', | ||
| 131 | as HashRef[CustomFineTuningSpec()]; | ||
| 132 | |||
| 133 | declare 'IdpConfig', | ||
| 134 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Common::IdpConfig']; | ||
| 135 | |||
| 136 | coerce 'IdpConfig', | ||
| 137 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Common::IdpConfig'->new($_) }; | ||
| 138 | |||
| 139 | declare 'RepeatedIdpConfig', | ||
| 140 | as ArrayRef[IdpConfig()]; | ||
| 141 | |||
| 142 | coerce 'RepeatedIdpConfig', | ||
| 143 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Common::IdpConfig'->new($_) } @$_ ] }; | ||
| 144 | |||
| 145 | declare 'MapStringIdpConfig', | ||
| 146 | as HashRef[IdpConfig()]; | ||
| 147 | |||
| 148 | declare 'IdpType', | ||
| 149 | as (Int | Str); | ||
| 150 | |||
| 151 | declare 'ExternalIdpConfig', | ||
| 152 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Common::IdpConfig::ExternalIdpConfig']; | ||
| 153 | |||
| 154 | coerce 'ExternalIdpConfig', | ||
| 155 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Common::IdpConfig::ExternalIdpConfig'->new($_) }; | ||
| 156 | |||
| 157 | declare 'RepeatedExternalIdpConfig', | ||
| 158 | as ArrayRef[ExternalIdpConfig()]; | ||
| 159 | |||
| 160 | coerce 'RepeatedExternalIdpConfig', | ||
| 161 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Common::IdpConfig::ExternalIdpConfig'->new($_) } @$_ ] }; | ||
| 162 | |||
| 163 | declare 'MapStringExternalIdpConfig', | ||
| 164 | as HashRef[ExternalIdpConfig()]; | ||
| 165 | |||
| 166 | declare 'Principal', | ||
| 167 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Common::Principal']; | ||
| 168 | |||
| 169 | coerce 'Principal', | ||
| 170 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Common::Principal'->new($_) }; | ||
| 171 | |||
| 172 | declare 'RepeatedPrincipal', | ||
| 173 | as ArrayRef[Principal()]; | ||
| 174 | |||
| 175 | coerce 'RepeatedPrincipal', | ||
| 176 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Common::Principal'->new($_) } @$_ ] }; | ||
| 177 | |||
| 178 | declare 'MapStringPrincipal', | ||
| 179 | as HashRef[Principal()]; | ||
| 180 | |||
| 181 | 1; | ||
| 182 | |||
| 183 | __END__ |