V1beta/Conversation/Types.pm untested

filter: Statementstmt 0.0% 0 / 95 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 100 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::V1beta::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::V1beta::Conversation::Conversation'];
12  
13 coerce 'Conversation',
14 from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Conversation::Conversation'->new($_) };
15  
16 declare 'RepeatedConversation',
17 as ArrayRef[Conversation()];
18  
19 coerce 'RepeatedConversation',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::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::V1beta::Conversation::Reply'];
30  
31 coerce 'Reply',
32 from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Conversation::Reply'->new($_) };
33  
34 declare 'RepeatedReply',
35 as ArrayRef[Reply()];
36  
37 coerce 'RepeatedReply',
38 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Conversation::Reply'->new($_) } @$_ ] };
39  
40 declare 'MapStringReply',
41 as HashRef[Reply()];
42  
43 declare 'Reference',
44 as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Conversation::Reply::Reference'];
45  
46 coerce 'Reference',
47 from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Conversation::Reply::Reference'->new($_) };
48  
49 declare 'RepeatedReference',
50 as ArrayRef[Reference()];
51  
52 coerce 'RepeatedReference',
53 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Conversation::Reply::Reference'->new($_) } @$_ ] };
54  
55 declare 'MapStringReference',
56 as HashRef[Reference()];
57  
58 declare 'ConversationContext',
59 as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Conversation::ConversationContext'];
60  
61 coerce 'ConversationContext',
62 from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Conversation::ConversationContext'->new($_) };
63  
64 declare 'RepeatedConversationContext',
65 as ArrayRef[ConversationContext()];
66  
67 coerce 'RepeatedConversationContext',
68 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Conversation::ConversationContext'->new($_) } @$_ ] };
69  
70 declare 'MapStringConversationContext',
71 as HashRef[ConversationContext()];
72  
73 declare 'TextInput',
74 as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Conversation::TextInput'];
75  
76 coerce 'TextInput',
77 from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Conversation::TextInput'->new($_) };
78  
79 declare 'RepeatedTextInput',
80 as ArrayRef[TextInput()];
81  
82 coerce 'RepeatedTextInput',
83 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Conversation::TextInput'->new($_) } @$_ ] };
84  
85 declare 'MapStringTextInput',
86 as HashRef[TextInput()];
87  
88 declare 'ConversationMessage',
89 as InstanceOf['Google::Cloud::Discoveryengine::V1beta::Conversation::ConversationMessage'];
90  
91 coerce 'ConversationMessage',
92 from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::Conversation::ConversationMessage'->new($_) };
93  
94 declare 'RepeatedConversationMessage',
95 as ArrayRef[ConversationMessage()];
96  
97 coerce 'RepeatedConversationMessage',
98 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::Conversation::ConversationMessage'->new($_) } @$_ ] };
99  
100 declare 'MapStringConversationMessage',
101 as HashRef[ConversationMessage()];
102  
103 1;
104  
105 __END__