1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package prompt
22
23 import (
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
32 const (
33
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39
40
41
42 type StaticImagePrompt_ImageFill int32
43
44 const (
45
46 StaticImagePrompt_UNSPECIFIED StaticImagePrompt_ImageFill = 0
47
48 StaticImagePrompt_GRAY StaticImagePrompt_ImageFill = 1
49
50 StaticImagePrompt_WHITE StaticImagePrompt_ImageFill = 2
51
52
53
54
55
56
57 StaticImagePrompt_CROPPED StaticImagePrompt_ImageFill = 3
58 )
59
60
61 var (
62 StaticImagePrompt_ImageFill_name = map[int32]string{
63 0: "UNSPECIFIED",
64 1: "GRAY",
65 2: "WHITE",
66 3: "CROPPED",
67 }
68 StaticImagePrompt_ImageFill_value = map[string]int32{
69 "UNSPECIFIED": 0,
70 "GRAY": 1,
71 "WHITE": 2,
72 "CROPPED": 3,
73 }
74 )
75
76 func (x StaticImagePrompt_ImageFill) Enum() *StaticImagePrompt_ImageFill {
77 p := new(StaticImagePrompt_ImageFill)
78 *p = x
79 return p
80 }
81
82 func (x StaticImagePrompt_ImageFill) String() string {
83 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
84 }
85
86 func (StaticImagePrompt_ImageFill) Descriptor() protoreflect.EnumDescriptor {
87 return file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_enumTypes[0].Descriptor()
88 }
89
90 func (StaticImagePrompt_ImageFill) Type() protoreflect.EnumType {
91 return &file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_enumTypes[0]
92 }
93
94 func (x StaticImagePrompt_ImageFill) Number() protoreflect.EnumNumber {
95 return protoreflect.EnumNumber(x)
96 }
97
98
99 func (StaticImagePrompt_ImageFill) EnumDescriptor() ([]byte, []int) {
100 return file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_rawDescGZIP(), []int{0, 0}
101 }
102
103
104 type StaticImagePrompt struct {
105 state protoimpl.MessageState
106 sizeCache protoimpl.SizeCache
107 unknownFields protoimpl.UnknownFields
108
109
110
111 Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
112
113
114 Alt string `protobuf:"bytes,2,opt,name=alt,proto3" json:"alt,omitempty"`
115
116 Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
117
118 Width int32 `protobuf:"varint,4,opt,name=width,proto3" json:"width,omitempty"`
119 }
120
121 func (x *StaticImagePrompt) Reset() {
122 *x = StaticImagePrompt{}
123 if protoimpl.UnsafeEnabled {
124 mi := &file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_msgTypes[0]
125 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
126 ms.StoreMessageInfo(mi)
127 }
128 }
129
130 func (x *StaticImagePrompt) String() string {
131 return protoimpl.X.MessageStringOf(x)
132 }
133
134 func (*StaticImagePrompt) ProtoMessage() {}
135
136 func (x *StaticImagePrompt) ProtoReflect() protoreflect.Message {
137 mi := &file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_msgTypes[0]
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
149 func (*StaticImagePrompt) Descriptor() ([]byte, []int) {
150 return file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_rawDescGZIP(), []int{0}
151 }
152
153 func (x *StaticImagePrompt) GetUrl() string {
154 if x != nil {
155 return x.Url
156 }
157 return ""
158 }
159
160 func (x *StaticImagePrompt) GetAlt() string {
161 if x != nil {
162 return x.Alt
163 }
164 return ""
165 }
166
167 func (x *StaticImagePrompt) GetHeight() int32 {
168 if x != nil {
169 return x.Height
170 }
171 return 0
172 }
173
174 func (x *StaticImagePrompt) GetWidth() int32 {
175 if x != nil {
176 return x.Width
177 }
178 return 0
179 }
180
181 var File_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto protoreflect.FileDescriptor
182
183 var file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_rawDesc = []byte{
184 0x0a, 0x4f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
185 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74,
186 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2f,
187 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x69,
188 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
189 0x6f, 0x12, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
190 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63,
191 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74,
192 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65,
193 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
194 0x6f, 0x22, 0xb9, 0x01, 0x0a, 0x11, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x49, 0x6d, 0x61, 0x67,
195 0x65, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x12, 0x15, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01,
196 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x15,
197 0x0a, 0x03, 0x61, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02,
198 0x52, 0x03, 0x61, 0x6c, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18,
199 0x03, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67,
200 0x68, 0x74, 0x12, 0x19, 0x0a, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28,
201 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x22, 0x3e, 0x0a,
202 0x09, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x46, 0x69, 0x6c, 0x6c, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e,
203 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x47,
204 0x52, 0x41, 0x59, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x57, 0x48, 0x49, 0x54, 0x45, 0x10, 0x02,
205 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x52, 0x4f, 0x50, 0x50, 0x45, 0x44, 0x10, 0x03, 0x42, 0xa2, 0x01,
206 0x0a, 0x31, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74,
207 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65,
208 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f,
209 0x6d, 0x70, 0x74, 0x42, 0x16, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x49, 0x6d, 0x61, 0x67, 0x65,
210 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x53, 0x67,
211 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67,
212 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
213 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b,
214 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d,
215 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x3b, 0x70, 0x72, 0x6f, 0x6d,
216 0x70, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
217 }
218
219 var (
220 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_rawDescOnce sync.Once
221 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_rawDescData = file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_rawDesc
222 )
223
224 func file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_rawDescGZIP() []byte {
225 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_rawDescOnce.Do(func() {
226 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_rawDescData)
227 })
228 return file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_rawDescData
229 }
230
231 var file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
232 var file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
233 var file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_goTypes = []interface{}{
234 (StaticImagePrompt_ImageFill)(0),
235 (*StaticImagePrompt)(nil),
236 }
237 var file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_depIdxs = []int32{
238 0,
239 0,
240 0,
241 0,
242 0,
243 }
244
245 func init() {
246 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_init()
247 }
248 func file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_init() {
249 if File_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto != nil {
250 return
251 }
252 if !protoimpl.UnsafeEnabled {
253 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
254 switch v := v.(*StaticImagePrompt); 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_interactionmodel_prompt_content_static_image_prompt_proto_rawDesc,
271 NumEnums: 1,
272 NumMessages: 1,
273 NumExtensions: 0,
274 NumServices: 0,
275 },
276 GoTypes: file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_goTypes,
277 DependencyIndexes: file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_depIdxs,
278 EnumInfos: file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_enumTypes,
279 MessageInfos: file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_msgTypes,
280 }.Build()
281 File_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto = out.File
282 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_rawDesc = nil
283 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_goTypes = nil
284 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_depIdxs = nil
285 }
286
View as plain text