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/interactionmodel/prompt/static_simple_prompt.proto 20 21package prompt 22 23import ( 24 reflect "reflect" 25 sync "sync" 26 27 _ "google.golang.org/genproto/googleapis/api/annotations" 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// Represents a simple prompt to be send to a user. 40type StaticSimplePrompt struct { 41 state protoimpl.MessageState 42 sizeCache protoimpl.SizeCache 43 unknownFields protoimpl.UnknownFields 44 45 // List of possible variants. 46 Variants []*StaticSimplePrompt_Variant `protobuf:"bytes,1,rep,name=variants,proto3" json:"variants,omitempty"` 47} 48 49func (x *StaticSimplePrompt) Reset() { 50 *x = StaticSimplePrompt{} 51 if protoimpl.UnsafeEnabled { 52 mi := &file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_msgTypes[0] 53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 54 ms.StoreMessageInfo(mi) 55 } 56} 57 58func (x *StaticSimplePrompt) String() string { 59 return protoimpl.X.MessageStringOf(x) 60} 61 62func (*StaticSimplePrompt) ProtoMessage() {} 63 64func (x *StaticSimplePrompt) ProtoReflect() protoreflect.Message { 65 mi := &file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_msgTypes[0] 66 if protoimpl.UnsafeEnabled && x != nil { 67 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 68 if ms.LoadMessageInfo() == nil { 69 ms.StoreMessageInfo(mi) 70 } 71 return ms 72 } 73 return mi.MessageOf(x) 74} 75 76// Deprecated: Use StaticSimplePrompt.ProtoReflect.Descriptor instead. 77func (*StaticSimplePrompt) Descriptor() ([]byte, []int) { 78 return file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_rawDescGZIP(), []int{0} 79} 80 81func (x *StaticSimplePrompt) GetVariants() []*StaticSimplePrompt_Variant { 82 if x != nil { 83 return x.Variants 84 } 85 return nil 86} 87 88// Represents a variant which is part of the simple prompt. 89type StaticSimplePrompt_Variant struct { 90 state protoimpl.MessageState 91 sizeCache protoimpl.SizeCache 92 unknownFields protoimpl.UnknownFields 93 94 // Optional. Represents the speech to be spoken to the user. Can be SSML or text to 95 // speech. 96 // By default, speech will be appended to previous Simple prompt's 97 // speech. If the `override` field in the containing prompt is `true` the 98 // speech defined in this field will override previous Simple prompt's 99 // speech. 100 Speech string `protobuf:"bytes,1,opt,name=speech,proto3" json:"speech,omitempty"` 101 // Optional. Text to display in the chat bubble. If not given, a display rendering of 102 // the speech field above will be used. Limited to 640 chars. 103 // By default, text will be appended to previous Simple prompt's text. 104 // If the `override` field in the containing prompt is `true` the text 105 // defined in this field will override previous Simple prompt's text. 106 Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` 107} 108 109func (x *StaticSimplePrompt_Variant) Reset() { 110 *x = StaticSimplePrompt_Variant{} 111 if protoimpl.UnsafeEnabled { 112 mi := &file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_msgTypes[1] 113 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 114 ms.StoreMessageInfo(mi) 115 } 116} 117 118func (x *StaticSimplePrompt_Variant) String() string { 119 return protoimpl.X.MessageStringOf(x) 120} 121 122func (*StaticSimplePrompt_Variant) ProtoMessage() {} 123 124func (x *StaticSimplePrompt_Variant) ProtoReflect() protoreflect.Message { 125 mi := &file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_msgTypes[1] 126 if protoimpl.UnsafeEnabled && x != nil { 127 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 128 if ms.LoadMessageInfo() == nil { 129 ms.StoreMessageInfo(mi) 130 } 131 return ms 132 } 133 return mi.MessageOf(x) 134} 135 136// Deprecated: Use StaticSimplePrompt_Variant.ProtoReflect.Descriptor instead. 137func (*StaticSimplePrompt_Variant) Descriptor() ([]byte, []int) { 138 return file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_rawDescGZIP(), []int{0, 0} 139} 140 141func (x *StaticSimplePrompt_Variant) GetSpeech() string { 142 if x != nil { 143 return x.Speech 144 } 145 return "" 146} 147 148func (x *StaticSimplePrompt_Variant) GetText() string { 149 if x != nil { 150 return x.Text 151 } 152 return "" 153} 154 155var File_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto protoreflect.FileDescriptor 156 157var file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_rawDesc = []byte{ 158 0x0a, 0x48, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 159 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 160 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2f, 161 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x5f, 0x70, 0x72, 162 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 163 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 164 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 165 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 166 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 167 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbc, 0x01, 0x0a, 0x12, 0x53, 168 0x74, 0x61, 0x74, 0x69, 0x63, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x6d, 0x70, 169 0x74, 0x12, 0x65, 0x0a, 0x08, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 170 0x03, 0x28, 0x0b, 0x32, 0x49, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 171 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 172 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 173 0x6d, 0x70, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 174 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x52, 0x08, 175 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x73, 0x1a, 0x3f, 0x0a, 0x07, 0x56, 0x61, 0x72, 0x69, 176 0x61, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x18, 0x01, 0x20, 177 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 178 0x12, 0x17, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 179 0xe0, 0x41, 0x01, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x42, 0xa3, 0x01, 0x0a, 0x31, 0x63, 0x6f, 180 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 181 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 182 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x42, 183 0x17, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x50, 0x72, 0x6f, 184 0x6d, 0x70, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x53, 0x67, 0x6f, 0x6f, 0x67, 185 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 186 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 187 0x73, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 188 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 189 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x3b, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x62, 190 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 191} 192 193var ( 194 file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_rawDescOnce sync.Once 195 file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_rawDescData = file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_rawDesc 196) 197 198func file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_rawDescGZIP() []byte { 199 file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_rawDescOnce.Do(func() { 200 file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_rawDescData) 201 }) 202 return file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_rawDescData 203} 204 205var file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 206var file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_goTypes = []interface{}{ 207 (*StaticSimplePrompt)(nil), // 0: google.actions.sdk.v2.interactionmodel.prompt.StaticSimplePrompt 208 (*StaticSimplePrompt_Variant)(nil), // 1: google.actions.sdk.v2.interactionmodel.prompt.StaticSimplePrompt.Variant 209} 210var file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_depIdxs = []int32{ 211 1, // 0: google.actions.sdk.v2.interactionmodel.prompt.StaticSimplePrompt.variants:type_name -> google.actions.sdk.v2.interactionmodel.prompt.StaticSimplePrompt.Variant 212 1, // [1:1] is the sub-list for method output_type 213 1, // [1:1] is the sub-list for method input_type 214 1, // [1:1] is the sub-list for extension type_name 215 1, // [1:1] is the sub-list for extension extendee 216 0, // [0:1] is the sub-list for field type_name 217} 218 219func init() { file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_init() } 220func file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_init() { 221 if File_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto != nil { 222 return 223 } 224 if !protoimpl.UnsafeEnabled { 225 file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 226 switch v := v.(*StaticSimplePrompt); i { 227 case 0: 228 return &v.state 229 case 1: 230 return &v.sizeCache 231 case 2: 232 return &v.unknownFields 233 default: 234 return nil 235 } 236 } 237 file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 238 switch v := v.(*StaticSimplePrompt_Variant); i { 239 case 0: 240 return &v.state 241 case 1: 242 return &v.sizeCache 243 case 2: 244 return &v.unknownFields 245 default: 246 return nil 247 } 248 } 249 } 250 type x struct{} 251 out := protoimpl.TypeBuilder{ 252 File: protoimpl.DescBuilder{ 253 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 254 RawDescriptor: file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_rawDesc, 255 NumEnums: 0, 256 NumMessages: 2, 257 NumExtensions: 0, 258 NumServices: 0, 259 }, 260 GoTypes: file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_goTypes, 261 DependencyIndexes: file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_depIdxs, 262 MessageInfos: file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_msgTypes, 263 }.Build() 264 File_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto = out.File 265 file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_rawDesc = nil 266 file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_goTypes = nil 267 file_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto_depIdxs = nil 268} 269