| 1 | package Google::Cloud::Discoveryengine::V1beta::Assistant::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 'Assistant', | ||
| 11 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant']; | ||
| 12 | |||
| 13 | coerce 'Assistant', | ||
| 14 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedAssistant', | ||
| 17 | as ArrayRef[Assistant()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedAssistant', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringAssistant', | ||
| 23 | as HashRef[Assistant()]; | ||
| 24 | |||
| 25 | declare 'WebGroundingType', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'GenerationConfig', | ||
| 29 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant::GenerationConfig']; | ||
| 30 | |||
| 31 | coerce 'GenerationConfig', | ||
| 32 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant::GenerationConfig'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedGenerationConfig', | ||
| 35 | as ArrayRef[GenerationConfig()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedGenerationConfig', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant::GenerationConfig'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringGenerationConfig', | ||
| 41 | as HashRef[GenerationConfig()]; | ||
| 42 | |||
| 43 | declare 'SystemInstruction', | ||
| 44 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant::GenerationConfig::SystemInstruction']; | ||
| 45 | |||
| 46 | coerce 'SystemInstruction', | ||
| 47 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant::GenerationConfig::SystemInstruction'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedSystemInstruction', | ||
| 50 | as ArrayRef[SystemInstruction()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedSystemInstruction', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant::GenerationConfig::SystemInstruction'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringSystemInstruction', | ||
| 56 | as HashRef[SystemInstruction()]; | ||
| 57 | |||
| 58 | declare 'ToolInfo', | ||
| 59 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant::ToolInfo']; | ||
| 60 | |||
| 61 | coerce 'ToolInfo', | ||
| 62 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant::ToolInfo'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedToolInfo', | ||
| 65 | as ArrayRef[ToolInfo()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedToolInfo', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant::ToolInfo'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringToolInfo', | ||
| 71 | as HashRef[ToolInfo()]; | ||
| 72 | |||
| 73 | declare 'ToolList', | ||
| 74 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant::ToolList']; | ||
| 75 | |||
| 76 | coerce 'ToolList', | ||
| 77 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant::ToolList'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedToolList', | ||
| 80 | as ArrayRef[ToolList()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedToolList', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant::ToolList'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringToolList', | ||
| 86 | as HashRef[ToolList()]; | ||
| 87 | |||
| 88 | declare 'CustomerPolicy', | ||
| 89 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant::CustomerPolicy']; | ||
| 90 | |||
| 91 | coerce 'CustomerPolicy', | ||
| 92 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant::CustomerPolicy'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedCustomerPolicy', | ||
| 95 | as ArrayRef[CustomerPolicy()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedCustomerPolicy', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant::CustomerPolicy'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringCustomerPolicy', | ||
| 101 | as HashRef[CustomerPolicy()]; | ||
| 102 | |||
| 103 | declare 'BannedPhrase', | ||
| 104 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant::CustomerPolicy::BannedPhrase']; | ||
| 105 | |||
| 106 | coerce 'BannedPhrase', | ||
| 107 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant::CustomerPolicy::BannedPhrase'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedBannedPhrase', | ||
| 110 | as ArrayRef[BannedPhrase()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedBannedPhrase', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant::CustomerPolicy::BannedPhrase'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringBannedPhrase', | ||
| 116 | as HashRef[BannedPhrase()]; | ||
| 117 | |||
| 118 | declare 'BannedPhraseMatchType', | ||
| 119 | as (Int | Str); | ||
| 120 | |||
| 121 | declare 'ModelArmorConfig', | ||
| 122 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant::CustomerPolicy::ModelArmorConfig']; | ||
| 123 | |||
| 124 | coerce 'ModelArmorConfig', | ||
| 125 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant::CustomerPolicy::ModelArmorConfig'->new($_) }; | ||
| 126 | |||
| 127 | declare 'RepeatedModelArmorConfig', | ||
| 128 | as ArrayRef[ModelArmorConfig()]; | ||
| 129 | |||
| 130 | coerce 'RepeatedModelArmorConfig', | ||
| 131 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant::CustomerPolicy::ModelArmorConfig'->new($_) } @$_ ] }; | ||
| 132 | |||
| 133 | declare 'MapStringModelArmorConfig', | ||
| 134 | as HashRef[ModelArmorConfig()]; | ||
| 135 | |||
| 136 | declare 'FailureMode', | ||
| 137 | as (Int | Str); | ||
| 138 | |||
| 139 | declare 'EnabledToolsEntry', | ||
| 140 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant::EnabledToolsEntry']; | ||
| 141 | |||
| 142 | coerce 'EnabledToolsEntry', | ||
| 143 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant::EnabledToolsEntry'->new($_) }; | ||
| 144 | |||
| 145 | declare 'RepeatedEnabledToolsEntry', | ||
| 146 | as ArrayRef[EnabledToolsEntry()]; | ||
| 147 | |||
| 148 | coerce 'RepeatedEnabledToolsEntry', | ||
| 149 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant::EnabledToolsEntry'->new($_) } @$_ ] }; | ||
| 150 | |||
| 151 | declare 'MapStringEnabledToolsEntry', | ||
| 152 | as HashRef[EnabledToolsEntry()]; | ||
| 153 | |||
| 154 | 1; | ||
| 155 | |||
| 156 | __END__ |