| 1 | package Google::Ai::Generativelanguage::V1beta3::TextService::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 'GenerateTextRequest', | ||
| 11 | as InstanceOf['Google::Ai::Generativelanguage::V1beta3::TextService::GenerateTextRequest']; | ||
| 12 | |||
| 13 | coerce 'GenerateTextRequest', | ||
| 14 | from HashRef, via { 'Google::Ai::Generativelanguage::V1beta3::TextService::GenerateTextRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedGenerateTextRequest', | ||
| 17 | as ArrayRef[GenerateTextRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedGenerateTextRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta3::TextService::GenerateTextRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringGenerateTextRequest', | ||
| 23 | as HashRef[GenerateTextRequest()]; | ||
| 24 | |||
| 25 | declare 'GenerateTextResponse', | ||
| 26 | as InstanceOf['Google::Ai::Generativelanguage::V1beta3::TextService::GenerateTextResponse']; | ||
| 27 | |||
| 28 | coerce 'GenerateTextResponse', | ||
| 29 | from HashRef, via { 'Google::Ai::Generativelanguage::V1beta3::TextService::GenerateTextResponse'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedGenerateTextResponse', | ||
| 32 | as ArrayRef[GenerateTextResponse()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedGenerateTextResponse', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta3::TextService::GenerateTextResponse'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringGenerateTextResponse', | ||
| 38 | as HashRef[GenerateTextResponse()]; | ||
| 39 | |||
| 40 | declare 'TextPrompt', | ||
| 41 | as InstanceOf['Google::Ai::Generativelanguage::V1beta3::TextService::TextPrompt']; | ||
| 42 | |||
| 43 | coerce 'TextPrompt', | ||
| 44 | from HashRef, via { 'Google::Ai::Generativelanguage::V1beta3::TextService::TextPrompt'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedTextPrompt', | ||
| 47 | as ArrayRef[TextPrompt()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedTextPrompt', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta3::TextService::TextPrompt'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringTextPrompt', | ||
| 53 | as HashRef[TextPrompt()]; | ||
| 54 | |||
| 55 | declare 'TextCompletion', | ||
| 56 | as InstanceOf['Google::Ai::Generativelanguage::V1beta3::TextService::TextCompletion']; | ||
| 57 | |||
| 58 | coerce 'TextCompletion', | ||
| 59 | from HashRef, via { 'Google::Ai::Generativelanguage::V1beta3::TextService::TextCompletion'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedTextCompletion', | ||
| 62 | as ArrayRef[TextCompletion()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedTextCompletion', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta3::TextService::TextCompletion'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringTextCompletion', | ||
| 68 | as HashRef[TextCompletion()]; | ||
| 69 | |||
| 70 | declare 'EmbedTextRequest', | ||
| 71 | as InstanceOf['Google::Ai::Generativelanguage::V1beta3::TextService::EmbedTextRequest']; | ||
| 72 | |||
| 73 | coerce 'EmbedTextRequest', | ||
| 74 | from HashRef, via { 'Google::Ai::Generativelanguage::V1beta3::TextService::EmbedTextRequest'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedEmbedTextRequest', | ||
| 77 | as ArrayRef[EmbedTextRequest()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedEmbedTextRequest', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta3::TextService::EmbedTextRequest'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringEmbedTextRequest', | ||
| 83 | as HashRef[EmbedTextRequest()]; | ||
| 84 | |||
| 85 | declare 'EmbedTextResponse', | ||
| 86 | as InstanceOf['Google::Ai::Generativelanguage::V1beta3::TextService::EmbedTextResponse']; | ||
| 87 | |||
| 88 | coerce 'EmbedTextResponse', | ||
| 89 | from HashRef, via { 'Google::Ai::Generativelanguage::V1beta3::TextService::EmbedTextResponse'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedEmbedTextResponse', | ||
| 92 | as ArrayRef[EmbedTextResponse()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedEmbedTextResponse', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta3::TextService::EmbedTextResponse'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringEmbedTextResponse', | ||
| 98 | as HashRef[EmbedTextResponse()]; | ||
| 99 | |||
| 100 | declare 'BatchEmbedTextRequest', | ||
| 101 | as InstanceOf['Google::Ai::Generativelanguage::V1beta3::TextService::BatchEmbedTextRequest']; | ||
| 102 | |||
| 103 | coerce 'BatchEmbedTextRequest', | ||
| 104 | from HashRef, via { 'Google::Ai::Generativelanguage::V1beta3::TextService::BatchEmbedTextRequest'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedBatchEmbedTextRequest', | ||
| 107 | as ArrayRef[BatchEmbedTextRequest()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedBatchEmbedTextRequest', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta3::TextService::BatchEmbedTextRequest'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringBatchEmbedTextRequest', | ||
| 113 | as HashRef[BatchEmbedTextRequest()]; | ||
| 114 | |||
| 115 | declare 'BatchEmbedTextResponse', | ||
| 116 | as InstanceOf['Google::Ai::Generativelanguage::V1beta3::TextService::BatchEmbedTextResponse']; | ||
| 117 | |||
| 118 | coerce 'BatchEmbedTextResponse', | ||
| 119 | from HashRef, via { 'Google::Ai::Generativelanguage::V1beta3::TextService::BatchEmbedTextResponse'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedBatchEmbedTextResponse', | ||
| 122 | as ArrayRef[BatchEmbedTextResponse()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedBatchEmbedTextResponse', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta3::TextService::BatchEmbedTextResponse'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringBatchEmbedTextResponse', | ||
| 128 | as HashRef[BatchEmbedTextResponse()]; | ||
| 129 | |||
| 130 | declare 'Embedding', | ||
| 131 | as InstanceOf['Google::Ai::Generativelanguage::V1beta3::TextService::Embedding']; | ||
| 132 | |||
| 133 | coerce 'Embedding', | ||
| 134 | from HashRef, via { 'Google::Ai::Generativelanguage::V1beta3::TextService::Embedding'->new($_) }; | ||
| 135 | |||
| 136 | declare 'RepeatedEmbedding', | ||
| 137 | as ArrayRef[Embedding()]; | ||
| 138 | |||
| 139 | coerce 'RepeatedEmbedding', | ||
| 140 | from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta3::TextService::Embedding'->new($_) } @$_ ] }; | ||
| 141 | |||
| 142 | declare 'MapStringEmbedding', | ||
| 143 | as HashRef[Embedding()]; | ||
| 144 | |||
| 145 | declare 'CountTextTokensRequest', | ||
| 146 | as InstanceOf['Google::Ai::Generativelanguage::V1beta3::TextService::CountTextTokensRequest']; | ||
| 147 | |||
| 148 | coerce 'CountTextTokensRequest', | ||
| 149 | from HashRef, via { 'Google::Ai::Generativelanguage::V1beta3::TextService::CountTextTokensRequest'->new($_) }; | ||
| 150 | |||
| 151 | declare 'RepeatedCountTextTokensRequest', | ||
| 152 | as ArrayRef[CountTextTokensRequest()]; | ||
| 153 | |||
| 154 | coerce 'RepeatedCountTextTokensRequest', | ||
| 155 | from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta3::TextService::CountTextTokensRequest'->new($_) } @$_ ] }; | ||
| 156 | |||
| 157 | declare 'MapStringCountTextTokensRequest', | ||
| 158 | as HashRef[CountTextTokensRequest()]; | ||
| 159 | |||
| 160 | declare 'CountTextTokensResponse', | ||
| 161 | as InstanceOf['Google::Ai::Generativelanguage::V1beta3::TextService::CountTextTokensResponse']; | ||
| 162 | |||
| 163 | coerce 'CountTextTokensResponse', | ||
| 164 | from HashRef, via { 'Google::Ai::Generativelanguage::V1beta3::TextService::CountTextTokensResponse'->new($_) }; | ||
| 165 | |||
| 166 | declare 'RepeatedCountTextTokensResponse', | ||
| 167 | as ArrayRef[CountTextTokensResponse()]; | ||
| 168 | |||
| 169 | coerce 'RepeatedCountTextTokensResponse', | ||
| 170 | from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1beta3::TextService::CountTextTokensResponse'->new($_) } @$_ ] }; | ||
| 171 | |||
| 172 | declare 'MapStringCountTextTokensResponse', | ||
| 173 | as HashRef[CountTextTokensResponse()]; | ||
| 174 | |||
| 175 | 1; | ||
| 176 | |||
| 177 | __END__ |