1// Copyright 2020 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Code generated by protoc-gen-go. DO NOT EDIT.
16// versions:
17// 	protoc-gen-go v1.26.0
18// 	protoc        v3.12.2
19// source: google/actions/sdk/v2/conversation/prompt/content/card.proto
20
21package conversation
22
23import (
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
31const (
32	// Verify that this generated code is sufficiently up-to-date.
33	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34	// Verify that runtime/protoimpl is sufficiently up-to-date.
35	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36)
37
38// A basic card for displaying some information, e.g. an image and/or text.
39type Card struct {
40	state         protoimpl.MessageState
41	sizeCache     protoimpl.SizeCache
42	unknownFields protoimpl.UnknownFields
43
44	// Overall title of the card.
45	// Optional.
46	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
47	// Optional.
48	Subtitle string `protobuf:"bytes,2,opt,name=subtitle,proto3" json:"subtitle,omitempty"`
49	// Body text of the card.
50	// Supports a limited set of markdown syntax for formatting.
51	// Required, unless image is present.
52	Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
53	// A hero image for the card. The height is fixed to 192dp.
54	// Optional.
55	Image *Image `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"`
56	// How the image background will be filled. Optional.
57	ImageFill Image_ImageFill `protobuf:"varint,5,opt,name=image_fill,json=imageFill,proto3,enum=google.actions.sdk.v2.conversation.Image_ImageFill" json:"image_fill,omitempty"`
58	// Button.
59	// Optional.
60	Button *Link `protobuf:"bytes,6,opt,name=button,proto3" json:"button,omitempty"`
61}
62
63func (x *Card) Reset() {
64	*x = Card{}
65	if protoimpl.UnsafeEnabled {
66		mi := &file_google_actions_sdk_v2_conversation_prompt_content_card_proto_msgTypes[0]
67		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
68		ms.StoreMessageInfo(mi)
69	}
70}
71
72func (x *Card) String() string {
73	return protoimpl.X.MessageStringOf(x)
74}
75
76func (*Card) ProtoMessage() {}
77
78func (x *Card) ProtoReflect() protoreflect.Message {
79	mi := &file_google_actions_sdk_v2_conversation_prompt_content_card_proto_msgTypes[0]
80	if protoimpl.UnsafeEnabled && x != nil {
81		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
82		if ms.LoadMessageInfo() == nil {
83			ms.StoreMessageInfo(mi)
84		}
85		return ms
86	}
87	return mi.MessageOf(x)
88}
89
90// Deprecated: Use Card.ProtoReflect.Descriptor instead.
91func (*Card) Descriptor() ([]byte, []int) {
92	return file_google_actions_sdk_v2_conversation_prompt_content_card_proto_rawDescGZIP(), []int{0}
93}
94
95func (x *Card) GetTitle() string {
96	if x != nil {
97		return x.Title
98	}
99	return ""
100}
101
102func (x *Card) GetSubtitle() string {
103	if x != nil {
104		return x.Subtitle
105	}
106	return ""
107}
108
109func (x *Card) GetText() string {
110	if x != nil {
111		return x.Text
112	}
113	return ""
114}
115
116func (x *Card) GetImage() *Image {
117	if x != nil {
118		return x.Image
119	}
120	return nil
121}
122
123func (x *Card) GetImageFill() Image_ImageFill {
124	if x != nil {
125		return x.ImageFill
126	}
127	return Image_UNSPECIFIED
128}
129
130func (x *Card) GetButton() *Link {
131	if x != nil {
132		return x.Button
133	}
134	return nil
135}
136
137var File_google_actions_sdk_v2_conversation_prompt_content_card_proto protoreflect.FileDescriptor
138
139var file_google_actions_sdk_v2_conversation_prompt_content_card_proto_rawDesc = []byte{
140	0x0a, 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
141	0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61,
142	0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x74,
143	0x65, 0x6e, 0x74, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22,
144	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73,
145	0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69,
146	0x6f, 0x6e, 0x1a, 0x3d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f,
147	0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72,
148	0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2f, 0x63, 0x6f,
149	0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
150	0x6f, 0x1a, 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
151	0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73,
152	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2f, 0x63, 0x6f, 0x6e,
153	0x74, 0x65, 0x6e, 0x74, 0x2f, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
154	0xa3, 0x02, 0x0a, 0x04, 0x43, 0x61, 0x72, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c,
155	0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1a,
156	0x0a, 0x08, 0x73, 0x75, 0x62, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
157	0x52, 0x08, 0x73, 0x75, 0x62, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65,
158	0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x3f,
159	0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e,
160	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73,
161	0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69,
162	0x6f, 0x6e, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12,
163	0x52, 0x0a, 0x0a, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x6c, 0x18, 0x05, 0x20,
164	0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74,
165	0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76,
166	0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x49,
167	0x6d, 0x61, 0x67, 0x65, 0x46, 0x69, 0x6c, 0x6c, 0x52, 0x09, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x46,
168	0x69, 0x6c, 0x6c, 0x12, 0x40, 0x0a, 0x06, 0x62, 0x75, 0x74, 0x74, 0x6f, 0x6e, 0x18, 0x06, 0x20,
169	0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74,
170	0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76,
171	0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x06, 0x62,
172	0x75, 0x74, 0x74, 0x6f, 0x6e, 0x42, 0x85, 0x01, 0x0a, 0x26, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f,
173	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b,
174	0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e,
175	0x42, 0x09, 0x43, 0x61, 0x72, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4e, 0x67,
176	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67,
177	0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
178	0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b,
179	0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e,
180	0x3b, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70,
181	0x72, 0x6f, 0x74, 0x6f, 0x33,
182}
183
184var (
185	file_google_actions_sdk_v2_conversation_prompt_content_card_proto_rawDescOnce sync.Once
186	file_google_actions_sdk_v2_conversation_prompt_content_card_proto_rawDescData = file_google_actions_sdk_v2_conversation_prompt_content_card_proto_rawDesc
187)
188
189func file_google_actions_sdk_v2_conversation_prompt_content_card_proto_rawDescGZIP() []byte {
190	file_google_actions_sdk_v2_conversation_prompt_content_card_proto_rawDescOnce.Do(func() {
191		file_google_actions_sdk_v2_conversation_prompt_content_card_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_conversation_prompt_content_card_proto_rawDescData)
192	})
193	return file_google_actions_sdk_v2_conversation_prompt_content_card_proto_rawDescData
194}
195
196var file_google_actions_sdk_v2_conversation_prompt_content_card_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
197var file_google_actions_sdk_v2_conversation_prompt_content_card_proto_goTypes = []interface{}{
198	(*Card)(nil),         // 0: google.actions.sdk.v2.conversation.Card
199	(*Image)(nil),        // 1: google.actions.sdk.v2.conversation.Image
200	(Image_ImageFill)(0), // 2: google.actions.sdk.v2.conversation.Image.ImageFill
201	(*Link)(nil),         // 3: google.actions.sdk.v2.conversation.Link
202}
203var file_google_actions_sdk_v2_conversation_prompt_content_card_proto_depIdxs = []int32{
204	1, // 0: google.actions.sdk.v2.conversation.Card.image:type_name -> google.actions.sdk.v2.conversation.Image
205	2, // 1: google.actions.sdk.v2.conversation.Card.image_fill:type_name -> google.actions.sdk.v2.conversation.Image.ImageFill
206	3, // 2: google.actions.sdk.v2.conversation.Card.button:type_name -> google.actions.sdk.v2.conversation.Link
207	3, // [3:3] is the sub-list for method output_type
208	3, // [3:3] is the sub-list for method input_type
209	3, // [3:3] is the sub-list for extension type_name
210	3, // [3:3] is the sub-list for extension extendee
211	0, // [0:3] is the sub-list for field type_name
212}
213
214func init() { file_google_actions_sdk_v2_conversation_prompt_content_card_proto_init() }
215func file_google_actions_sdk_v2_conversation_prompt_content_card_proto_init() {
216	if File_google_actions_sdk_v2_conversation_prompt_content_card_proto != nil {
217		return
218	}
219	file_google_actions_sdk_v2_conversation_prompt_content_image_proto_init()
220	file_google_actions_sdk_v2_conversation_prompt_content_link_proto_init()
221	if !protoimpl.UnsafeEnabled {
222		file_google_actions_sdk_v2_conversation_prompt_content_card_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
223			switch v := v.(*Card); i {
224			case 0:
225				return &v.state
226			case 1:
227				return &v.sizeCache
228			case 2:
229				return &v.unknownFields
230			default:
231				return nil
232			}
233		}
234	}
235	type x struct{}
236	out := protoimpl.TypeBuilder{
237		File: protoimpl.DescBuilder{
238			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
239			RawDescriptor: file_google_actions_sdk_v2_conversation_prompt_content_card_proto_rawDesc,
240			NumEnums:      0,
241			NumMessages:   1,
242			NumExtensions: 0,
243			NumServices:   0,
244		},
245		GoTypes:           file_google_actions_sdk_v2_conversation_prompt_content_card_proto_goTypes,
246		DependencyIndexes: file_google_actions_sdk_v2_conversation_prompt_content_card_proto_depIdxs,
247		MessageInfos:      file_google_actions_sdk_v2_conversation_prompt_content_card_proto_msgTypes,
248	}.Build()
249	File_google_actions_sdk_v2_conversation_prompt_content_card_proto = out.File
250	file_google_actions_sdk_v2_conversation_prompt_content_card_proto_rawDesc = nil
251	file_google_actions_sdk_v2_conversation_prompt_content_card_proto_goTypes = nil
252	file_google_actions_sdk_v2_conversation_prompt_content_card_proto_depIdxs = nil
253}
254