1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package conversation
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 )
30
31 const (
32
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38
39 type UrlHint int32
40
41 const (
42
43 UrlHint_LINK_UNSPECIFIED UrlHint = 0
44
45
46 UrlHint_AMP UrlHint = 1
47 )
48
49
50 var (
51 UrlHint_name = map[int32]string{
52 0: "LINK_UNSPECIFIED",
53 1: "AMP",
54 }
55 UrlHint_value = map[string]int32{
56 "LINK_UNSPECIFIED": 0,
57 "AMP": 1,
58 }
59 )
60
61 func (x UrlHint) Enum() *UrlHint {
62 p := new(UrlHint)
63 *p = x
64 return p
65 }
66
67 func (x UrlHint) String() string {
68 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
69 }
70
71 func (UrlHint) Descriptor() protoreflect.EnumDescriptor {
72 return file_google_actions_sdk_v2_conversation_prompt_content_link_proto_enumTypes[0].Descriptor()
73 }
74
75 func (UrlHint) Type() protoreflect.EnumType {
76 return &file_google_actions_sdk_v2_conversation_prompt_content_link_proto_enumTypes[0]
77 }
78
79 func (x UrlHint) Number() protoreflect.EnumNumber {
80 return protoreflect.EnumNumber(x)
81 }
82
83
84 func (UrlHint) EnumDescriptor() ([]byte, []int) {
85 return file_google_actions_sdk_v2_conversation_prompt_content_link_proto_rawDescGZIP(), []int{0}
86 }
87
88
89 type Link struct {
90 state protoimpl.MessageState
91 sizeCache protoimpl.SizeCache
92 unknownFields protoimpl.UnknownFields
93
94
95 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
96
97 Open *OpenUrl `protobuf:"bytes,2,opt,name=open,proto3" json:"open,omitempty"`
98 }
99
100 func (x *Link) Reset() {
101 *x = Link{}
102 if protoimpl.UnsafeEnabled {
103 mi := &file_google_actions_sdk_v2_conversation_prompt_content_link_proto_msgTypes[0]
104 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
105 ms.StoreMessageInfo(mi)
106 }
107 }
108
109 func (x *Link) String() string {
110 return protoimpl.X.MessageStringOf(x)
111 }
112
113 func (*Link) ProtoMessage() {}
114
115 func (x *Link) ProtoReflect() protoreflect.Message {
116 mi := &file_google_actions_sdk_v2_conversation_prompt_content_link_proto_msgTypes[0]
117 if protoimpl.UnsafeEnabled && x != nil {
118 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
119 if ms.LoadMessageInfo() == nil {
120 ms.StoreMessageInfo(mi)
121 }
122 return ms
123 }
124 return mi.MessageOf(x)
125 }
126
127
128 func (*Link) Descriptor() ([]byte, []int) {
129 return file_google_actions_sdk_v2_conversation_prompt_content_link_proto_rawDescGZIP(), []int{0}
130 }
131
132 func (x *Link) GetName() string {
133 if x != nil {
134 return x.Name
135 }
136 return ""
137 }
138
139 func (x *Link) GetOpen() *OpenUrl {
140 if x != nil {
141 return x.Open
142 }
143 return nil
144 }
145
146
147 type OpenUrl struct {
148 state protoimpl.MessageState
149 sizeCache protoimpl.SizeCache
150 unknownFields protoimpl.UnknownFields
151
152
153
154 Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
155
156 Hint UrlHint `protobuf:"varint,2,opt,name=hint,proto3,enum=google.actions.sdk.v2.conversation.UrlHint" json:"hint,omitempty"`
157 }
158
159 func (x *OpenUrl) Reset() {
160 *x = OpenUrl{}
161 if protoimpl.UnsafeEnabled {
162 mi := &file_google_actions_sdk_v2_conversation_prompt_content_link_proto_msgTypes[1]
163 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
164 ms.StoreMessageInfo(mi)
165 }
166 }
167
168 func (x *OpenUrl) String() string {
169 return protoimpl.X.MessageStringOf(x)
170 }
171
172 func (*OpenUrl) ProtoMessage() {}
173
174 func (x *OpenUrl) ProtoReflect() protoreflect.Message {
175 mi := &file_google_actions_sdk_v2_conversation_prompt_content_link_proto_msgTypes[1]
176 if protoimpl.UnsafeEnabled && x != nil {
177 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
178 if ms.LoadMessageInfo() == nil {
179 ms.StoreMessageInfo(mi)
180 }
181 return ms
182 }
183 return mi.MessageOf(x)
184 }
185
186
187 func (*OpenUrl) Descriptor() ([]byte, []int) {
188 return file_google_actions_sdk_v2_conversation_prompt_content_link_proto_rawDescGZIP(), []int{1}
189 }
190
191 func (x *OpenUrl) GetUrl() string {
192 if x != nil {
193 return x.Url
194 }
195 return ""
196 }
197
198 func (x *OpenUrl) GetHint() UrlHint {
199 if x != nil {
200 return x.Hint
201 }
202 return UrlHint_LINK_UNSPECIFIED
203 }
204
205 var File_google_actions_sdk_v2_conversation_prompt_content_link_proto protoreflect.FileDescriptor
206
207 var file_google_actions_sdk_v2_conversation_prompt_content_link_proto_rawDesc = []byte{
208 0x0a, 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
209 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61,
210 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x74,
211 0x65, 0x6e, 0x74, 0x2f, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22,
212 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73,
213 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69,
214 0x6f, 0x6e, 0x22, 0x5b, 0x0a, 0x04, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
215 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3f,
216 0x0a, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67,
217 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64,
218 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f,
219 0x6e, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x55, 0x72, 0x6c, 0x52, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x22,
220 0x5c, 0x0a, 0x07, 0x4f, 0x70, 0x65, 0x6e, 0x55, 0x72, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72,
221 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x3f, 0x0a, 0x04,
222 0x68, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f,
223 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e,
224 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
225 0x55, 0x72, 0x6c, 0x48, 0x69, 0x6e, 0x74, 0x52, 0x04, 0x68, 0x69, 0x6e, 0x74, 0x2a, 0x28, 0x0a,
226 0x07, 0x55, 0x72, 0x6c, 0x48, 0x69, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x10, 0x4c, 0x49, 0x4e, 0x4b,
227 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07,
228 0x0a, 0x03, 0x41, 0x4d, 0x50, 0x10, 0x01, 0x42, 0x85, 0x01, 0x0a, 0x26, 0x63, 0x6f, 0x6d, 0x2e,
229 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73,
230 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69,
231 0x6f, 0x6e, 0x42, 0x09, 0x4c, 0x69, 0x6e, 0x6b, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
232 0x4e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
233 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67,
234 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73,
235 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69,
236 0x6f, 0x6e, 0x3b, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62,
237 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
238 }
239
240 var (
241 file_google_actions_sdk_v2_conversation_prompt_content_link_proto_rawDescOnce sync.Once
242 file_google_actions_sdk_v2_conversation_prompt_content_link_proto_rawDescData = file_google_actions_sdk_v2_conversation_prompt_content_link_proto_rawDesc
243 )
244
245 func file_google_actions_sdk_v2_conversation_prompt_content_link_proto_rawDescGZIP() []byte {
246 file_google_actions_sdk_v2_conversation_prompt_content_link_proto_rawDescOnce.Do(func() {
247 file_google_actions_sdk_v2_conversation_prompt_content_link_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_conversation_prompt_content_link_proto_rawDescData)
248 })
249 return file_google_actions_sdk_v2_conversation_prompt_content_link_proto_rawDescData
250 }
251
252 var file_google_actions_sdk_v2_conversation_prompt_content_link_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
253 var file_google_actions_sdk_v2_conversation_prompt_content_link_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
254 var file_google_actions_sdk_v2_conversation_prompt_content_link_proto_goTypes = []interface{}{
255 (UrlHint)(0),
256 (*Link)(nil),
257 (*OpenUrl)(nil),
258 }
259 var file_google_actions_sdk_v2_conversation_prompt_content_link_proto_depIdxs = []int32{
260 2,
261 0,
262 2,
263 2,
264 2,
265 2,
266 0,
267 }
268
269 func init() { file_google_actions_sdk_v2_conversation_prompt_content_link_proto_init() }
270 func file_google_actions_sdk_v2_conversation_prompt_content_link_proto_init() {
271 if File_google_actions_sdk_v2_conversation_prompt_content_link_proto != nil {
272 return
273 }
274 if !protoimpl.UnsafeEnabled {
275 file_google_actions_sdk_v2_conversation_prompt_content_link_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
276 switch v := v.(*Link); i {
277 case 0:
278 return &v.state
279 case 1:
280 return &v.sizeCache
281 case 2:
282 return &v.unknownFields
283 default:
284 return nil
285 }
286 }
287 file_google_actions_sdk_v2_conversation_prompt_content_link_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
288 switch v := v.(*OpenUrl); i {
289 case 0:
290 return &v.state
291 case 1:
292 return &v.sizeCache
293 case 2:
294 return &v.unknownFields
295 default:
296 return nil
297 }
298 }
299 }
300 type x struct{}
301 out := protoimpl.TypeBuilder{
302 File: protoimpl.DescBuilder{
303 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
304 RawDescriptor: file_google_actions_sdk_v2_conversation_prompt_content_link_proto_rawDesc,
305 NumEnums: 1,
306 NumMessages: 2,
307 NumExtensions: 0,
308 NumServices: 0,
309 },
310 GoTypes: file_google_actions_sdk_v2_conversation_prompt_content_link_proto_goTypes,
311 DependencyIndexes: file_google_actions_sdk_v2_conversation_prompt_content_link_proto_depIdxs,
312 EnumInfos: file_google_actions_sdk_v2_conversation_prompt_content_link_proto_enumTypes,
313 MessageInfos: file_google_actions_sdk_v2_conversation_prompt_content_link_proto_msgTypes,
314 }.Build()
315 File_google_actions_sdk_v2_conversation_prompt_content_link_proto = out.File
316 file_google_actions_sdk_v2_conversation_prompt_content_link_proto_rawDesc = nil
317 file_google_actions_sdk_v2_conversation_prompt_content_link_proto_goTypes = nil
318 file_google_actions_sdk_v2_conversation_prompt_content_link_proto_depIdxs = nil
319 }
320
View as plain text