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/simple.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// Represents a simple prompt to be send to a user.
39type Simple struct {
40	state         protoimpl.MessageState
41	sizeCache     protoimpl.SizeCache
42	unknownFields protoimpl.UnknownFields
43
44	// Optional. Represents the speech to be spoken to the user. Can be SSML or
45	// text to speech.
46	// If the "override" field in the containing prompt is "true", the speech
47	// defined in this field replaces the previous Simple prompt's speech.
48	Speech string `protobuf:"bytes,1,opt,name=speech,proto3" json:"speech,omitempty"`
49	// Optional text to display in the chat bubble. If not given, a display
50	// rendering of the speech field above will be used. Limited to 640
51	// chars.
52	// If the "override" field in the containing prompt is "true", the text
53	// defined in this field replaces to the previous Simple prompt's text.
54	Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
55}
56
57func (x *Simple) Reset() {
58	*x = Simple{}
59	if protoimpl.UnsafeEnabled {
60		mi := &file_google_actions_sdk_v2_conversation_prompt_simple_proto_msgTypes[0]
61		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
62		ms.StoreMessageInfo(mi)
63	}
64}
65
66func (x *Simple) String() string {
67	return protoimpl.X.MessageStringOf(x)
68}
69
70func (*Simple) ProtoMessage() {}
71
72func (x *Simple) ProtoReflect() protoreflect.Message {
73	mi := &file_google_actions_sdk_v2_conversation_prompt_simple_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 Simple.ProtoReflect.Descriptor instead.
85func (*Simple) Descriptor() ([]byte, []int) {
86	return file_google_actions_sdk_v2_conversation_prompt_simple_proto_rawDescGZIP(), []int{0}
87}
88
89func (x *Simple) GetSpeech() string {
90	if x != nil {
91		return x.Speech
92	}
93	return ""
94}
95
96func (x *Simple) GetText() string {
97	if x != nil {
98		return x.Text
99	}
100	return ""
101}
102
103var File_google_actions_sdk_v2_conversation_prompt_simple_proto protoreflect.FileDescriptor
104
105var file_google_actions_sdk_v2_conversation_prompt_simple_proto_rawDesc = []byte{
106	0x0a, 0x36, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
107	0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61,
108	0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2f, 0x73, 0x69, 0x6d, 0x70,
109	0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
110	0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e,
111	0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x34, 0x0a, 0x06,
112	0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68,
113	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x12, 0x12,
114	0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65,
115	0x78, 0x74, 0x42, 0x87, 0x01, 0x0a, 0x26, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
116	0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32,
117	0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0b, 0x53,
118	0x69, 0x6d, 0x70, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4e, 0x67, 0x6f,
119	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f,
120	0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
121	0x70, 0x69, 0x73, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f,
122	0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3b,
123	0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72,
124	0x6f, 0x74, 0x6f, 0x33,
125}
126
127var (
128	file_google_actions_sdk_v2_conversation_prompt_simple_proto_rawDescOnce sync.Once
129	file_google_actions_sdk_v2_conversation_prompt_simple_proto_rawDescData = file_google_actions_sdk_v2_conversation_prompt_simple_proto_rawDesc
130)
131
132func file_google_actions_sdk_v2_conversation_prompt_simple_proto_rawDescGZIP() []byte {
133	file_google_actions_sdk_v2_conversation_prompt_simple_proto_rawDescOnce.Do(func() {
134		file_google_actions_sdk_v2_conversation_prompt_simple_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_conversation_prompt_simple_proto_rawDescData)
135	})
136	return file_google_actions_sdk_v2_conversation_prompt_simple_proto_rawDescData
137}
138
139var file_google_actions_sdk_v2_conversation_prompt_simple_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
140var file_google_actions_sdk_v2_conversation_prompt_simple_proto_goTypes = []interface{}{
141	(*Simple)(nil), // 0: google.actions.sdk.v2.conversation.Simple
142}
143var file_google_actions_sdk_v2_conversation_prompt_simple_proto_depIdxs = []int32{
144	0, // [0:0] is the sub-list for method output_type
145	0, // [0:0] is the sub-list for method input_type
146	0, // [0:0] is the sub-list for extension type_name
147	0, // [0:0] is the sub-list for extension extendee
148	0, // [0:0] is the sub-list for field type_name
149}
150
151func init() { file_google_actions_sdk_v2_conversation_prompt_simple_proto_init() }
152func file_google_actions_sdk_v2_conversation_prompt_simple_proto_init() {
153	if File_google_actions_sdk_v2_conversation_prompt_simple_proto != nil {
154		return
155	}
156	if !protoimpl.UnsafeEnabled {
157		file_google_actions_sdk_v2_conversation_prompt_simple_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
158			switch v := v.(*Simple); i {
159			case 0:
160				return &v.state
161			case 1:
162				return &v.sizeCache
163			case 2:
164				return &v.unknownFields
165			default:
166				return nil
167			}
168		}
169	}
170	type x struct{}
171	out := protoimpl.TypeBuilder{
172		File: protoimpl.DescBuilder{
173			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
174			RawDescriptor: file_google_actions_sdk_v2_conversation_prompt_simple_proto_rawDesc,
175			NumEnums:      0,
176			NumMessages:   1,
177			NumExtensions: 0,
178			NumServices:   0,
179		},
180		GoTypes:           file_google_actions_sdk_v2_conversation_prompt_simple_proto_goTypes,
181		DependencyIndexes: file_google_actions_sdk_v2_conversation_prompt_simple_proto_depIdxs,
182		MessageInfos:      file_google_actions_sdk_v2_conversation_prompt_simple_proto_msgTypes,
183	}.Build()
184	File_google_actions_sdk_v2_conversation_prompt_simple_proto = out.File
185	file_google_actions_sdk_v2_conversation_prompt_simple_proto_rawDesc = nil
186	file_google_actions_sdk_v2_conversation_prompt_simple_proto_goTypes = nil
187	file_google_actions_sdk_v2_conversation_prompt_simple_proto_depIdxs = nil
188}
189