Debian Codegraph @

googleapis/actions/sdk/v2/data_file.pb.go

raw
1 // Copyright 2025 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 v4.24.4
19 // source: google/actions/sdk/v2/data_file.proto
20
21 package sdk
22
23 import (
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
31 const (
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 // Wrapper for repeated data file. Repeated fields cannot exist in a oneof.
39 type DataFiles struct {
40 state protoimpl.MessageState
41 sizeCache protoimpl.SizeCache
42 unknownFields protoimpl.UnknownFields
43
44 // Multiple data files.
45 DataFiles []*DataFile `protobuf:"bytes,1,rep,name=data_files,json=dataFiles,proto3" json:"data_files,omitempty"`
46 }
47
48 func (x *DataFiles) Reset() {
49 *x = DataFiles{}
50 if protoimpl.UnsafeEnabled {
51 mi := &file_google_actions_sdk_v2_data_file_proto_msgTypes[0]
52 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
53 ms.StoreMessageInfo(mi)
54 }
55 }
56
57 func (x *DataFiles) String() string {
58 return protoimpl.X.MessageStringOf(x)
59 }
60
61 func (*DataFiles) ProtoMessage() {}
62
63 func (x *DataFiles) ProtoReflect() protoreflect.Message {
64 mi := &file_google_actions_sdk_v2_data_file_proto_msgTypes[0]
65 if protoimpl.UnsafeEnabled && x != nil {
66 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
67 if ms.LoadMessageInfo() == nil {
68 ms.StoreMessageInfo(mi)
69 }
70 return ms
71 }
72 return mi.MessageOf(x)
73 }
74
75 // Deprecated: Use DataFiles.ProtoReflect.Descriptor instead.
76 func (*DataFiles) Descriptor() ([]byte, []int) {
77 return file_google_actions_sdk_v2_data_file_proto_rawDescGZIP(), []int{0}
78 }
79
80 func (x *DataFiles) GetDataFiles() []*DataFile {
81 if x != nil {
82 return x.DataFiles
83 }
84 return nil
85 }
86
87 // Represents a single file which contains unstructured data. Examples include
88 // image files, audio files, and cloud function source code.
89 type DataFile struct {
90 state protoimpl.MessageState
91 sizeCache protoimpl.SizeCache
92 unknownFields protoimpl.UnknownFields
93
94 // Relative path of the data file from the project root in the SDK file
95 // structure.
96 // Allowed file paths:
97 // - Images: `resources/images/{multiple
98 // directories}?/{ImageName}.{extension}`
99 // - Audio: `resources/audio/{multiple
100 // directories}?/{AudioFileName}.{extension}`
101 // - Inline Cloud Function Code: `webhooks/{WebhookName}.zip`
102 //
103 // Allowed extensions:
104 // - Images: `png`, `jpg`, `jpeg`
105 // - Audio: `mp3`, `mpeg`
106 // - Inline Cloud Functions: `zip`
107 FilePath string `protobuf:"bytes,1,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
108 // Required. The content type of this asset. Example: `text/html`. The content
109 // type must comply with the specification
110 // (http://www.w3.org/Protocols/rfc1341/4_Content-Type.html).
111 // Cloud functions must be in zip format and the content type should
112 // be `application/zip;zip_type=cloud_function`. The zip_type parameter
113 // indicates that the zip is for a cloud function.
114 ContentType string `protobuf:"bytes,2,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
115 // Content of the data file. Examples would be raw bytes of images, audio
116 // files, or cloud function zip format.
117 // There is 10 MB strict limit on the payload size.
118 Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
119 }
120
121 func (x *DataFile) Reset() {
122 *x = DataFile{}
123 if protoimpl.UnsafeEnabled {
124 mi := &file_google_actions_sdk_v2_data_file_proto_msgTypes[1]
125 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
126 ms.StoreMessageInfo(mi)
127 }
128 }
129
130 func (x *DataFile) String() string {
131 return protoimpl.X.MessageStringOf(x)
132 }
133
134 func (*DataFile) ProtoMessage() {}
135
136 func (x *DataFile) ProtoReflect() protoreflect.Message {
137 mi := &file_google_actions_sdk_v2_data_file_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 DataFile.ProtoReflect.Descriptor instead.
149 func (*DataFile) Descriptor() ([]byte, []int) {
150 return file_google_actions_sdk_v2_data_file_proto_rawDescGZIP(), []int{1}
151 }
152
153 func (x *DataFile) GetFilePath() string {
154 if x != nil {
155 return x.FilePath
156 }
157 return ""
158 }
159
160 func (x *DataFile) GetContentType() string {
161 if x != nil {
162 return x.ContentType
163 }
164 return ""
165 }
166
167 func (x *DataFile) GetPayload() []byte {
168 if x != nil {
169 return x.Payload
170 }
171 return nil
172 }
173
174 var File_google_actions_sdk_v2_data_file_proto protoreflect.FileDescriptor
175
176 var file_google_actions_sdk_v2_data_file_proto_rawDesc = []byte{
177 0x0a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
178 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x66, 0x69, 0x6c,
179 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
180 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x22, 0x4b,
181 0x0a, 0x09, 0x44, 0x61, 0x74, 0x61, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x3e, 0x0a, 0x0a, 0x64,
182 0x61, 0x74, 0x61, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
183 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
184 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x46, 0x69, 0x6c, 0x65,
185 0x52, 0x09, 0x64, 0x61, 0x74, 0x61, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x22, 0x64, 0x0a, 0x08, 0x44,
186 0x61, 0x74, 0x61, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f,
187 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65,
188 0x50, 0x61, 0x74, 0x68, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f,
189 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74,
190 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f,
191 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61,
192 0x64, 0x42, 0x66, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
193 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x42, 0x0d,
194 0x44, 0x61, 0x74, 0x61, 0x46, 0x69, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
195 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
196 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67,
197 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73,
198 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x3b, 0x73, 0x64, 0x6b, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
199 0x33,
200 }
201
202 var (
203 file_google_actions_sdk_v2_data_file_proto_rawDescOnce sync.Once
204 file_google_actions_sdk_v2_data_file_proto_rawDescData = file_google_actions_sdk_v2_data_file_proto_rawDesc
205 )
206
207 func file_google_actions_sdk_v2_data_file_proto_rawDescGZIP() []byte {
208 file_google_actions_sdk_v2_data_file_proto_rawDescOnce.Do(func() {
209 file_google_actions_sdk_v2_data_file_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_data_file_proto_rawDescData)
210 })
211 return file_google_actions_sdk_v2_data_file_proto_rawDescData
212 }
213
214 var file_google_actions_sdk_v2_data_file_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
215 var file_google_actions_sdk_v2_data_file_proto_goTypes = []interface{}{
216 (*DataFiles)(nil), // 0: google.actions.sdk.v2.DataFiles
217 (*DataFile)(nil), // 1: google.actions.sdk.v2.DataFile
218 }
219 var file_google_actions_sdk_v2_data_file_proto_depIdxs = []int32{
220 1, // 0: google.actions.sdk.v2.DataFiles.data_files:type_name -> google.actions.sdk.v2.DataFile
221 1, // [1:1] is the sub-list for method output_type
222 1, // [1:1] is the sub-list for method input_type
223 1, // [1:1] is the sub-list for extension type_name
224 1, // [1:1] is the sub-list for extension extendee
225 0, // [0:1] is the sub-list for field type_name
226 }
227
228 func init() { file_google_actions_sdk_v2_data_file_proto_init() }
229 func file_google_actions_sdk_v2_data_file_proto_init() {
230 if File_google_actions_sdk_v2_data_file_proto != nil {
231 return
232 }
233 if !protoimpl.UnsafeEnabled {
234 file_google_actions_sdk_v2_data_file_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
235 switch v := v.(*DataFiles); i {
236 case 0:
237 return &v.state
238 case 1:
239 return &v.sizeCache
240 case 2:
241 return &v.unknownFields
242 default:
243 return nil
244 }
245 }
246 file_google_actions_sdk_v2_data_file_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
247 switch v := v.(*DataFile); i {
248 case 0:
249 return &v.state
250 case 1:
251 return &v.sizeCache
252 case 2:
253 return &v.unknownFields
254 default:
255 return nil
256 }
257 }
258 }
259 type x struct{}
260 out := protoimpl.TypeBuilder{
261 File: protoimpl.DescBuilder{
262 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
263 RawDescriptor: file_google_actions_sdk_v2_data_file_proto_rawDesc,
264 NumEnums: 0,
265 NumMessages: 2,
266 NumExtensions: 0,
267 NumServices: 0,
268 },
269 GoTypes: file_google_actions_sdk_v2_data_file_proto_goTypes,
270 DependencyIndexes: file_google_actions_sdk_v2_data_file_proto_depIdxs,
271 MessageInfos: file_google_actions_sdk_v2_data_file_proto_msgTypes,
272 }.Build()
273 File_google_actions_sdk_v2_data_file_proto = out.File
274 file_google_actions_sdk_v2_data_file_proto_rawDesc = nil
275 file_google_actions_sdk_v2_data_file_proto_goTypes = nil
276 file_google_actions_sdk_v2_data_file_proto_depIdxs = nil
277 }