V1/Conversation/Types.pm untested

filter: Statementstmt 0.0% 0 / 82 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 87 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Cloud::Discoveryengine::V1::Conversation::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 'Conversation',
11 as InstanceOf['Google::Cloud::Discoveryengine::V1::Conversation::Conversation'];
12  
13 coerce 'Conversation',
14 from HashRef, via { 'Google::Cloud::Discoveryengine::V1::Conversation::Conversation'->new($_) };
15  
16 declare 'RepeatedConversation',
17 as ArrayRef[Conversation()];
18  
19 coerce 'RepeatedConversation',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::Conversation::Conversation'->new($_) } @$_ ] };
21  
22 declare 'MapStringConversation',
23 as HashRef[Conversation()];
24  
25 declare 'State',
26 as (Int | Str);
27  
28 declare 'Reply',
29 as InstanceOf['Google::Cloud::Discoveryengine::V1::Conversation::Reply'];
30  
31 coerce 'Reply',
32 from HashRef, via { 'Google::Cloud::Discoveryengine::V1::Conversation::Reply'->new($_) };
33  
34 declare 'RepeatedReply',
35 as ArrayRef[Reply()];
36  
37 coerce 'RepeatedReply',
38 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::Conversation::Reply'->new($_) } @$_ ] };
39  
40 declare 'MapStringReply',
41 as HashRef[Reply()];
42  
43 declare 'ConversationContext',
44 as InstanceOf['Google::Cloud::Discoveryengine::V1::Conversation::ConversationContext'];
45  
46 coerce 'ConversationContext',
47 from HashRef, via { 'Google::Cloud::Discoveryengine::V1::Conversation::ConversationContext'->new($_) };
48  
49 declare 'RepeatedConversationContext',
50 as ArrayRef[ConversationContext()];
51  
52 coerce 'RepeatedConversationContext',
53 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::Conversation::ConversationContext'->new($_) } @$_ ] };
54  
55 declare 'MapStringConversationContext',
56 as HashRef[ConversationContext()];
57  
58 declare 'TextInput',
59 as InstanceOf['Google::Cloud::Discoveryengine::V1::Conversation::TextInput'];
60  
61 coerce 'TextInput',
62 from HashRef, via { 'Google::Cloud::Discoveryengine::V1::Conversation::TextInput'->new($_) };
63  
64 declare 'RepeatedTextInput',
65 as ArrayRef[TextInput()];
66  
67 coerce 'RepeatedTextInput',
68 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::Conversation::TextInput'->new($_) } @$_ ] };
69  
70 declare 'MapStringTextInput',
71 as HashRef[TextInput()];
72  
73 declare 'ConversationMessage',
74 as InstanceOf['Google::Cloud::Discoveryengine::V1::Conversation::ConversationMessage'];
75  
76 coerce 'ConversationMessage',
77 from HashRef, via { 'Google::Cloud::Discoveryengine::V1::Conversation::ConversationMessage'->new($_) };
78  
79 declare 'RepeatedConversationMessage',
80 as ArrayRef[ConversationMessage()];
81  
82 coerce 'RepeatedConversationMessage',
83 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::Conversation::ConversationMessage'->new($_) } @$_ ] };
84  
85 declare 'MapStringConversationMessage',
86 as HashRef[ConversationMessage()];
87  
88 1;
89  
90 __END__