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.25.0 18// protoc v3.13.0 19// source: google/actions/sdk/v2/conversation/prompt/content/list.proto 20 21package conversation 22 23import ( 24 reflect "reflect" 25 sync "sync" 26 27 proto "github.com/golang/protobuf/proto" 28 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 29 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 30) 31 32const ( 33 // Verify that this generated code is sufficiently up-to-date. 34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 35 // Verify that runtime/protoimpl is sufficiently up-to-date. 36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 37) 38 39// This is a compile-time assertion that a sufficiently up-to-date version 40// of the legacy proto package is being used. 41const _ = proto.ProtoPackageIsVersion4 42 43// A card for presenting a list of options to select from. 44type List struct { 45 state protoimpl.MessageState 46 sizeCache protoimpl.SizeCache 47 unknownFields protoimpl.UnknownFields 48 49 // Title of the list. Optional. 50 Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` 51 // Subtitle of the list. Optional. 52 Subtitle string `protobuf:"bytes,2,opt,name=subtitle,proto3" json:"subtitle,omitempty"` 53 // min: 2 max: 30 54 Items []*List_ListItem `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"` 55} 56 57func (x *List) Reset() { 58 *x = List{} 59 if protoimpl.UnsafeEnabled { 60 mi := &file_google_actions_sdk_v2_conversation_prompt_content_list_proto_msgTypes[0] 61 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 62 ms.StoreMessageInfo(mi) 63 } 64} 65 66func (x *List) String() string { 67 return protoimpl.X.MessageStringOf(x) 68} 69 70func (*List) ProtoMessage() {} 71 72func (x *List) ProtoReflect() protoreflect.Message { 73 mi := &file_google_actions_sdk_v2_conversation_prompt_content_list_proto_msgTypes[0] 74 if protoimpl.UnsafeEnabled && x != nil { 75 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 76 if ms.LoadMessageInfo() == nil { 77 ms.StoreMessageInfo(mi) 78 } 79 return ms 80 } 81 return mi.MessageOf(x) 82} 83 84// Deprecated: Use List.ProtoReflect.Descriptor instead. 85func (*List) Descriptor() ([]byte, []int) { 86 return file_google_actions_sdk_v2_conversation_prompt_content_list_proto_rawDescGZIP(), []int{0} 87} 88 89func (x *List) GetTitle() string { 90 if x != nil { 91 return x.Title 92 } 93 return "" 94} 95 96func (x *List) GetSubtitle() string { 97 if x != nil { 98 return x.Subtitle 99 } 100 return "" 101} 102 103func (x *List) GetItems() []*List_ListItem { 104 if x != nil { 105 return x.Items 106 } 107 return nil 108} 109 110// An item in the list 111type List_ListItem struct { 112 state protoimpl.MessageState 113 sizeCache protoimpl.SizeCache 114 unknownFields protoimpl.UnknownFields 115 116 // Required. The NLU key that matches the entry key name in the associated 117 // Type. 118 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 119} 120 121func (x *List_ListItem) Reset() { 122 *x = List_ListItem{} 123 if protoimpl.UnsafeEnabled { 124 mi := &file_google_actions_sdk_v2_conversation_prompt_content_list_proto_msgTypes[1] 125 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 126 ms.StoreMessageInfo(mi) 127 } 128} 129 130func (x *List_ListItem) String() string { 131 return protoimpl.X.MessageStringOf(x) 132} 133 134func (*List_ListItem) ProtoMessage() {} 135 136func (x *List_ListItem) ProtoReflect() protoreflect.Message { 137 mi := &file_google_actions_sdk_v2_conversation_prompt_content_list_proto_msgTypes[1] 138 if protoimpl.UnsafeEnabled && x != nil { 139 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 140 if ms.LoadMessageInfo() == nil { 141 ms.StoreMessageInfo(mi) 142 } 143 return ms 144 } 145 return mi.MessageOf(x) 146} 147 148// Deprecated: Use List_ListItem.ProtoReflect.Descriptor instead. 149func (*List_ListItem) Descriptor() ([]byte, []int) { 150 return file_google_actions_sdk_v2_conversation_prompt_content_list_proto_rawDescGZIP(), []int{0, 0} 151} 152 153func (x *List_ListItem) GetKey() string { 154 if x != nil { 155 return x.Key 156 } 157 return "" 158} 159 160var File_google_actions_sdk_v2_conversation_prompt_content_list_proto protoreflect.FileDescriptor 161 162var file_google_actions_sdk_v2_conversation_prompt_content_list_proto_rawDesc = []byte{ 163 0x0a, 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 164 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 165 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 166 0x65, 0x6e, 0x74, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22, 167 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 168 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 169 0x6f, 0x6e, 0x22, 0x9f, 0x01, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 170 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 171 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 172 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x75, 0x62, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x47, 0x0a, 173 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 174 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 175 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 176 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x52, 177 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x1a, 0x1c, 0x0a, 0x08, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x74, 178 0x65, 0x6d, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 179 0x03, 0x6b, 0x65, 0x79, 0x42, 0x85, 0x01, 0x0a, 0x26, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 180 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 181 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 182 0x09, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4e, 0x67, 0x6f, 183 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 184 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 185 0x70, 0x69, 0x73, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 186 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3b, 187 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 188 0x6f, 0x74, 0x6f, 0x33, 189} 190 191var ( 192 file_google_actions_sdk_v2_conversation_prompt_content_list_proto_rawDescOnce sync.Once 193 file_google_actions_sdk_v2_conversation_prompt_content_list_proto_rawDescData = file_google_actions_sdk_v2_conversation_prompt_content_list_proto_rawDesc 194) 195 196func file_google_actions_sdk_v2_conversation_prompt_content_list_proto_rawDescGZIP() []byte { 197 file_google_actions_sdk_v2_conversation_prompt_content_list_proto_rawDescOnce.Do(func() { 198 file_google_actions_sdk_v2_conversation_prompt_content_list_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_conversation_prompt_content_list_proto_rawDescData) 199 }) 200 return file_google_actions_sdk_v2_conversation_prompt_content_list_proto_rawDescData 201} 202 203var file_google_actions_sdk_v2_conversation_prompt_content_list_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 204var file_google_actions_sdk_v2_conversation_prompt_content_list_proto_goTypes = []interface{}{ 205 (*List)(nil), // 0: google.actions.sdk.v2.conversation.List 206 (*List_ListItem)(nil), // 1: google.actions.sdk.v2.conversation.List.ListItem 207} 208var file_google_actions_sdk_v2_conversation_prompt_content_list_proto_depIdxs = []int32{ 209 1, // 0: google.actions.sdk.v2.conversation.List.items:type_name -> google.actions.sdk.v2.conversation.List.ListItem 210 1, // [1:1] is the sub-list for method output_type 211 1, // [1:1] is the sub-list for method input_type 212 1, // [1:1] is the sub-list for extension type_name 213 1, // [1:1] is the sub-list for extension extendee 214 0, // [0:1] is the sub-list for field type_name 215} 216 217func init() { file_google_actions_sdk_v2_conversation_prompt_content_list_proto_init() } 218func file_google_actions_sdk_v2_conversation_prompt_content_list_proto_init() { 219 if File_google_actions_sdk_v2_conversation_prompt_content_list_proto != nil { 220 return 221 } 222 if !protoimpl.UnsafeEnabled { 223 file_google_actions_sdk_v2_conversation_prompt_content_list_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 224 switch v := v.(*List); i { 225 case 0: 226 return &v.state 227 case 1: 228 return &v.sizeCache 229 case 2: 230 return &v.unknownFields 231 default: 232 return nil 233 } 234 } 235 file_google_actions_sdk_v2_conversation_prompt_content_list_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 236 switch v := v.(*List_ListItem); i { 237 case 0: 238 return &v.state 239 case 1: 240 return &v.sizeCache 241 case 2: 242 return &v.unknownFields 243 default: 244 return nil 245 } 246 } 247 } 248 type x struct{} 249 out := protoimpl.TypeBuilder{ 250 File: protoimpl.DescBuilder{ 251 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 252 RawDescriptor: file_google_actions_sdk_v2_conversation_prompt_content_list_proto_rawDesc, 253 NumEnums: 0, 254 NumMessages: 2, 255 NumExtensions: 0, 256 NumServices: 0, 257 }, 258 GoTypes: file_google_actions_sdk_v2_conversation_prompt_content_list_proto_goTypes, 259 DependencyIndexes: file_google_actions_sdk_v2_conversation_prompt_content_list_proto_depIdxs, 260 MessageInfos: file_google_actions_sdk_v2_conversation_prompt_content_list_proto_msgTypes, 261 }.Build() 262 File_google_actions_sdk_v2_conversation_prompt_content_list_proto = out.File 263 file_google_actions_sdk_v2_conversation_prompt_content_list_proto_rawDesc = nil 264 file_google_actions_sdk_v2_conversation_prompt_content_list_proto_goTypes = nil 265 file_google_actions_sdk_v2_conversation_prompt_content_list_proto_depIdxs = nil 266} 267