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/collection.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 card for presenting a collection of options to select from. 39type Collection struct { 40 state protoimpl.MessageState 41 sizeCache protoimpl.SizeCache 42 unknownFields protoimpl.UnknownFields 43 44 // Title of the collection. Optional. 45 Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` 46 // Subtitle of the collection. Optional. 47 Subtitle string `protobuf:"bytes,2,opt,name=subtitle,proto3" json:"subtitle,omitempty"` 48 // min: 2 max: 10 49 Items []*Collection_CollectionItem `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"` 50 // How the image backgrounds of collection items will be filled. Optional. 51 ImageFill Image_ImageFill `protobuf:"varint,4,opt,name=image_fill,json=imageFill,proto3,enum=google.actions.sdk.v2.conversation.Image_ImageFill" json:"image_fill,omitempty"` 52} 53 54func (x *Collection) Reset() { 55 *x = Collection{} 56 if protoimpl.UnsafeEnabled { 57 mi := &file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_msgTypes[0] 58 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 59 ms.StoreMessageInfo(mi) 60 } 61} 62 63func (x *Collection) String() string { 64 return protoimpl.X.MessageStringOf(x) 65} 66 67func (*Collection) ProtoMessage() {} 68 69func (x *Collection) ProtoReflect() protoreflect.Message { 70 mi := &file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_msgTypes[0] 71 if protoimpl.UnsafeEnabled && x != nil { 72 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 73 if ms.LoadMessageInfo() == nil { 74 ms.StoreMessageInfo(mi) 75 } 76 return ms 77 } 78 return mi.MessageOf(x) 79} 80 81// Deprecated: Use Collection.ProtoReflect.Descriptor instead. 82func (*Collection) Descriptor() ([]byte, []int) { 83 return file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_rawDescGZIP(), []int{0} 84} 85 86func (x *Collection) GetTitle() string { 87 if x != nil { 88 return x.Title 89 } 90 return "" 91} 92 93func (x *Collection) GetSubtitle() string { 94 if x != nil { 95 return x.Subtitle 96 } 97 return "" 98} 99 100func (x *Collection) GetItems() []*Collection_CollectionItem { 101 if x != nil { 102 return x.Items 103 } 104 return nil 105} 106 107func (x *Collection) GetImageFill() Image_ImageFill { 108 if x != nil { 109 return x.ImageFill 110 } 111 return Image_UNSPECIFIED 112} 113 114// An item in the collection 115type Collection_CollectionItem struct { 116 state protoimpl.MessageState 117 sizeCache protoimpl.SizeCache 118 unknownFields protoimpl.UnknownFields 119 120 // Required. The NLU key that matches the entry key name in the associated 121 // Type. 122 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 123} 124 125func (x *Collection_CollectionItem) Reset() { 126 *x = Collection_CollectionItem{} 127 if protoimpl.UnsafeEnabled { 128 mi := &file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_msgTypes[1] 129 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 130 ms.StoreMessageInfo(mi) 131 } 132} 133 134func (x *Collection_CollectionItem) String() string { 135 return protoimpl.X.MessageStringOf(x) 136} 137 138func (*Collection_CollectionItem) ProtoMessage() {} 139 140func (x *Collection_CollectionItem) ProtoReflect() protoreflect.Message { 141 mi := &file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_msgTypes[1] 142 if protoimpl.UnsafeEnabled && x != nil { 143 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 144 if ms.LoadMessageInfo() == nil { 145 ms.StoreMessageInfo(mi) 146 } 147 return ms 148 } 149 return mi.MessageOf(x) 150} 151 152// Deprecated: Use Collection_CollectionItem.ProtoReflect.Descriptor instead. 153func (*Collection_CollectionItem) Descriptor() ([]byte, []int) { 154 return file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_rawDescGZIP(), []int{0, 0} 155} 156 157func (x *Collection_CollectionItem) GetKey() string { 158 if x != nil { 159 return x.Key 160 } 161 return "" 162} 163 164var File_google_actions_sdk_v2_conversation_prompt_content_collection_proto protoreflect.FileDescriptor 165 166var file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_rawDesc = []byte{ 167 0x0a, 0x42, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 168 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 169 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 170 0x65, 0x6e, 0x74, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 171 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 172 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76, 173 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x3d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 174 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 175 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 176 0x6d, 0x70, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2f, 0x69, 0x6d, 0x61, 0x67, 177 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8b, 0x02, 0x0a, 0x0a, 0x43, 0x6f, 0x6c, 0x6c, 178 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 179 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 180 0x73, 0x75, 0x62, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 181 0x73, 0x75, 0x62, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x53, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 182 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 183 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 184 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x6f, 0x6c, 185 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 186 0x6f, 0x6e, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x52, 0x0a, 187 0x0a, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 188 0x0e, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 189 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 190 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x49, 0x6d, 0x61, 191 0x67, 0x65, 0x46, 0x69, 0x6c, 0x6c, 0x52, 0x09, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x46, 0x69, 0x6c, 192 0x6c, 0x1a, 0x22, 0x0a, 0x0e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 193 0x74, 0x65, 0x6d, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 194 0x52, 0x03, 0x6b, 0x65, 0x79, 0x42, 0x8b, 0x01, 0x0a, 0x26, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 195 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 196 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 197 0x42, 0x0f, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 198 0x6f, 0x50, 0x01, 0x5a, 0x4e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 199 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 200 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 201 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 202 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3b, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 203 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 204} 205 206var ( 207 file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_rawDescOnce sync.Once 208 file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_rawDescData = file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_rawDesc 209) 210 211func file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_rawDescGZIP() []byte { 212 file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_rawDescOnce.Do(func() { 213 file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_rawDescData) 214 }) 215 return file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_rawDescData 216} 217 218var file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 219var file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_goTypes = []interface{}{ 220 (*Collection)(nil), // 0: google.actions.sdk.v2.conversation.Collection 221 (*Collection_CollectionItem)(nil), // 1: google.actions.sdk.v2.conversation.Collection.CollectionItem 222 (Image_ImageFill)(0), // 2: google.actions.sdk.v2.conversation.Image.ImageFill 223} 224var file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_depIdxs = []int32{ 225 1, // 0: google.actions.sdk.v2.conversation.Collection.items:type_name -> google.actions.sdk.v2.conversation.Collection.CollectionItem 226 2, // 1: google.actions.sdk.v2.conversation.Collection.image_fill:type_name -> google.actions.sdk.v2.conversation.Image.ImageFill 227 2, // [2:2] is the sub-list for method output_type 228 2, // [2:2] is the sub-list for method input_type 229 2, // [2:2] is the sub-list for extension type_name 230 2, // [2:2] is the sub-list for extension extendee 231 0, // [0:2] is the sub-list for field type_name 232} 233 234func init() { file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_init() } 235func file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_init() { 236 if File_google_actions_sdk_v2_conversation_prompt_content_collection_proto != nil { 237 return 238 } 239 file_google_actions_sdk_v2_conversation_prompt_content_image_proto_init() 240 if !protoimpl.UnsafeEnabled { 241 file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 242 switch v := v.(*Collection); i { 243 case 0: 244 return &v.state 245 case 1: 246 return &v.sizeCache 247 case 2: 248 return &v.unknownFields 249 default: 250 return nil 251 } 252 } 253 file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 254 switch v := v.(*Collection_CollectionItem); i { 255 case 0: 256 return &v.state 257 case 1: 258 return &v.sizeCache 259 case 2: 260 return &v.unknownFields 261 default: 262 return nil 263 } 264 } 265 } 266 type x struct{} 267 out := protoimpl.TypeBuilder{ 268 File: protoimpl.DescBuilder{ 269 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 270 RawDescriptor: file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_rawDesc, 271 NumEnums: 0, 272 NumMessages: 2, 273 NumExtensions: 0, 274 NumServices: 0, 275 }, 276 GoTypes: file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_goTypes, 277 DependencyIndexes: file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_depIdxs, 278 MessageInfos: file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_msgTypes, 279 }.Build() 280 File_google_actions_sdk_v2_conversation_prompt_content_collection_proto = out.File 281 file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_rawDesc = nil 282 file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_goTypes = nil 283 file_google_actions_sdk_v2_conversation_prompt_content_collection_proto_depIdxs = nil 284} 285