Debian Codegraph @

datacatalog/apiv1beta1/datacatalogpb/gcs_fileset_spec.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.35.2
18 // protoc v4.25.7
19 // source: google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto
20
21 package datacatalogpb
22
23 import (
24 _ "google.golang.org/genproto/googleapis/api/annotations"
25 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
26 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
27 reflect "reflect"
28 sync "sync"
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 // Describes a Cloud Storage fileset entry.
39 type GcsFilesetSpec struct {
40 state protoimpl.MessageState
41 sizeCache protoimpl.SizeCache
42 unknownFields protoimpl.UnknownFields
43
44 // Required. Patterns to identify a set of files in Google Cloud Storage.
45 // See [Cloud Storage
46 // documentation](https://cloud.google.com/storage/docs/wildcards)
47 // for more information. Note that bucket wildcards are currently not
48 // supported.
49 //
50 // Examples of valid file_patterns:
51 //
52 // - `gs://bucket_name/dir/*`: matches all files within `bucket_name/dir`
53 // directory.
54 // - `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
55 // spanning all subdirectories.
56 // - `gs://bucket_name/file*`: matches files prefixed by `file` in
57 // `bucket_name`
58 // - `gs://bucket_name/??.txt`: matches files with two characters followed by
59 // `.txt` in `bucket_name`
60 // - `gs://bucket_name/[aeiou].txt`: matches files that contain a single
61 // vowel character followed by `.txt` in
62 // `bucket_name`
63 // - `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
64 // or `m` followed by `.txt` in `bucket_name`
65 // - `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
66 // `a/*/b` pattern, such as `a/c/b`, `a/d/b`
67 // - `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
68 //
69 // You can combine wildcards to provide more powerful matches, for example:
70 //
71 // - `gs://bucket_name/[a-m]??.j*g`
72 FilePatterns []string `protobuf:"bytes,1,rep,name=file_patterns,json=filePatterns,proto3" json:"file_patterns,omitempty"`
73 // Output only. Sample files contained in this fileset, not all files
74 // contained in this fileset are represented here.
75 SampleGcsFileSpecs []*GcsFileSpec `protobuf:"bytes,2,rep,name=sample_gcs_file_specs,json=sampleGcsFileSpecs,proto3" json:"sample_gcs_file_specs,omitempty"`
76 }
77
78 func (x *GcsFilesetSpec) Reset() {
79 *x = GcsFilesetSpec{}
80 mi := &file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_msgTypes[0]
81 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
82 ms.StoreMessageInfo(mi)
83 }
84
85 func (x *GcsFilesetSpec) String() string {
86 return protoimpl.X.MessageStringOf(x)
87 }
88
89 func (*GcsFilesetSpec) ProtoMessage() {}
90
91 func (x *GcsFilesetSpec) ProtoReflect() protoreflect.Message {
92 mi := &file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_msgTypes[0]
93 if x != nil {
94 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
95 if ms.LoadMessageInfo() == nil {
96 ms.StoreMessageInfo(mi)
97 }
98 return ms
99 }
100 return mi.MessageOf(x)
101 }
102
103 // Deprecated: Use GcsFilesetSpec.ProtoReflect.Descriptor instead.
104 func (*GcsFilesetSpec) Descriptor() ([]byte, []int) {
105 return file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_rawDescGZIP(), []int{0}
106 }
107
108 func (x *GcsFilesetSpec) GetFilePatterns() []string {
109 if x != nil {
110 return x.FilePatterns
111 }
112 return nil
113 }
114
115 func (x *GcsFilesetSpec) GetSampleGcsFileSpecs() []*GcsFileSpec {
116 if x != nil {
117 return x.SampleGcsFileSpecs
118 }
119 return nil
120 }
121
122 // Specifications of a single file in Cloud Storage.
123 type GcsFileSpec struct {
124 state protoimpl.MessageState
125 sizeCache protoimpl.SizeCache
126 unknownFields protoimpl.UnknownFields
127
128 // Required. The full file path. Example: `gs://bucket_name/a/b.txt`.
129 FilePath string `protobuf:"bytes,1,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
130 // Output only. Timestamps about the Cloud Storage file.
131 GcsTimestamps *SystemTimestamps `protobuf:"bytes,2,opt,name=gcs_timestamps,json=gcsTimestamps,proto3" json:"gcs_timestamps,omitempty"`
132 // Output only. The size of the file, in bytes.
133 SizeBytes int64 `protobuf:"varint,4,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
134 }
135
136 func (x *GcsFileSpec) Reset() {
137 *x = GcsFileSpec{}
138 mi := &file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_msgTypes[1]
139 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
140 ms.StoreMessageInfo(mi)
141 }
142
143 func (x *GcsFileSpec) String() string {
144 return protoimpl.X.MessageStringOf(x)
145 }
146
147 func (*GcsFileSpec) ProtoMessage() {}
148
149 func (x *GcsFileSpec) ProtoReflect() protoreflect.Message {
150 mi := &file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_msgTypes[1]
151 if x != nil {
152 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
153 if ms.LoadMessageInfo() == nil {
154 ms.StoreMessageInfo(mi)
155 }
156 return ms
157 }
158 return mi.MessageOf(x)
159 }
160
161 // Deprecated: Use GcsFileSpec.ProtoReflect.Descriptor instead.
162 func (*GcsFileSpec) Descriptor() ([]byte, []int) {
163 return file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_rawDescGZIP(), []int{1}
164 }
165
166 func (x *GcsFileSpec) GetFilePath() string {
167 if x != nil {
168 return x.FilePath
169 }
170 return ""
171 }
172
173 func (x *GcsFileSpec) GetGcsTimestamps() *SystemTimestamps {
174 if x != nil {
175 return x.GcsTimestamps
176 }
177 return nil
178 }
179
180 func (x *GcsFileSpec) GetSizeBytes() int64 {
181 if x != nil {
182 return x.SizeBytes
183 }
184 return 0
185 }
186
187 var File_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto protoreflect.FileDescriptor
188
189 var file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_rawDesc = []byte{
190 0x0a, 0x37, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64,
191 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74,
192 0x61, 0x31, 0x2f, 0x67, 0x63, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x73,
193 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
194 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61,
195 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f,
196 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65,
197 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x31, 0x67, 0x6f,
198 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x63,
199 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74,
200 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
201 0xa1, 0x01, 0x0a, 0x0e, 0x47, 0x63, 0x73, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x65, 0x74, 0x53, 0x70,
202 0x65, 0x63, 0x12, 0x28, 0x0a, 0x0d, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x74, 0x65,
203 0x72, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c,
204 0x66, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x73, 0x12, 0x65, 0x0a, 0x15,
205 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x5f, 0x67, 0x63, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f,
206 0x73, 0x70, 0x65, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f,
207 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63,
208 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47,
209 0x63, 0x73, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52,
210 0x12, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x47, 0x63, 0x73, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x70,
211 0x65, 0x63, 0x73, 0x22, 0xb3, 0x01, 0x0a, 0x0b, 0x47, 0x63, 0x73, 0x46, 0x69, 0x6c, 0x65, 0x53,
212 0x70, 0x65, 0x63, 0x12, 0x20, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68,
213 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x66, 0x69, 0x6c,
214 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x5e, 0x0a, 0x0e, 0x67, 0x63, 0x73, 0x5f, 0x74, 0x69, 0x6d,
215 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e,
216 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74,
217 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
218 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
219 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x67, 0x63, 0x73, 0x54, 0x69, 0x6d, 0x65, 0x73,
220 0x74, 0x61, 0x6d, 0x70, 0x73, 0x12, 0x22, 0x0a, 0x0a, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x62, 0x79,
221 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09,
222 0x73, 0x69, 0x7a, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x42, 0xdc, 0x01, 0x0a, 0x24, 0x63, 0x6f,
223 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64,
224 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
225 0x61, 0x31, 0x50, 0x01, 0x5a, 0x46, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
226 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61,
227 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
228 0x2f, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x70, 0x62, 0x3b, 0x64,
229 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x70, 0x62, 0xaa, 0x02, 0x20, 0x47,
230 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x44, 0x61, 0x74, 0x61,
231 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca,
232 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x44,
233 0x61, 0x74, 0x61, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74,
234 0x61, 0x31, 0xea, 0x02, 0x23, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f,
235 0x75, 0x64, 0x3a, 0x3a, 0x44, 0x61, 0x74, 0x61, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x3a,
236 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
237 }
238
239 var (
240 file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_rawDescOnce sync.Once
241 file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_rawDescData = file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_rawDesc
242 )
243
244 func file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_rawDescGZIP() []byte {
245 file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_rawDescOnce.Do(func() {
246 file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_rawDescData)
247 })
248 return file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_rawDescData
249 }
250
251 var file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
252 var file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_goTypes = []any{
253 (*GcsFilesetSpec)(nil), // 0: google.cloud.datacatalog.v1beta1.GcsFilesetSpec
254 (*GcsFileSpec)(nil), // 1: google.cloud.datacatalog.v1beta1.GcsFileSpec
255 (*SystemTimestamps)(nil), // 2: google.cloud.datacatalog.v1beta1.SystemTimestamps
256 }
257 var file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_depIdxs = []int32{
258 1, // 0: google.cloud.datacatalog.v1beta1.GcsFilesetSpec.sample_gcs_file_specs:type_name -> google.cloud.datacatalog.v1beta1.GcsFileSpec
259 2, // 1: google.cloud.datacatalog.v1beta1.GcsFileSpec.gcs_timestamps:type_name -> google.cloud.datacatalog.v1beta1.SystemTimestamps
260 2, // [2:2] is the sub-list for method output_type
261 2, // [2:2] is the sub-list for method input_type
262 2, // [2:2] is the sub-list for extension type_name
263 2, // [2:2] is the sub-list for extension extendee
264 0, // [0:2] is the sub-list for field type_name
265 }
266
267 func init() { file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_init() }
268 func file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_init() {
269 if File_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto != nil {
270 return
271 }
272 file_google_cloud_datacatalog_v1beta1_timestamps_proto_init()
273 type x struct{}
274 out := protoimpl.TypeBuilder{
275 File: protoimpl.DescBuilder{
276 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
277 RawDescriptor: file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_rawDesc,
278 NumEnums: 0,
279 NumMessages: 2,
280 NumExtensions: 0,
281 NumServices: 0,
282 },
283 GoTypes: file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_goTypes,
284 DependencyIndexes: file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_depIdxs,
285 MessageInfos: file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_msgTypes,
286 }.Build()
287 File_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto = out.File
288 file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_rawDesc = nil
289 file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_goTypes = nil
290 file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_depIdxs = nil
291 }