Debian Codegraph @

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