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