Debian Codegraph @

datacatalog/apiv1/datacatalogpb/data_source.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/data_source.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 // Name of a service that stores the data.
39 type DataSource_Service int32
40
41 const (
42 // Default unknown service.
43 DataSource_SERVICE_UNSPECIFIED DataSource_Service = 0
44 // Google Cloud Storage service.
45 DataSource_CLOUD_STORAGE DataSource_Service = 1
46 // BigQuery service.
47 DataSource_BIGQUERY DataSource_Service = 2
48 )
49
50 // Enum value maps for DataSource_Service.
51 var (
52 DataSource_Service_name = map[int32]string{
53 0: "SERVICE_UNSPECIFIED",
54 1: "CLOUD_STORAGE",
55 2: "BIGQUERY",
56 }
57 DataSource_Service_value = map[string]int32{
58 "SERVICE_UNSPECIFIED": 0,
59 "CLOUD_STORAGE": 1,
60 "BIGQUERY": 2,
61 }
62 )
63
64 func (x DataSource_Service) Enum() *DataSource_Service {
65 p := new(DataSource_Service)
66 *p = x
67 return p
68 }
69
70 func (x DataSource_Service) String() string {
71 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
72 }
73
74 func (DataSource_Service) Descriptor() protoreflect.EnumDescriptor {
75 return file_google_cloud_datacatalog_v1_data_source_proto_enumTypes[0].Descriptor()
76 }
77
78 func (DataSource_Service) Type() protoreflect.EnumType {
79 return &file_google_cloud_datacatalog_v1_data_source_proto_enumTypes[0]
80 }
81
82 func (x DataSource_Service) Number() protoreflect.EnumNumber {
83 return protoreflect.EnumNumber(x)
84 }
85
86 // Deprecated: Use DataSource_Service.Descriptor instead.
87 func (DataSource_Service) EnumDescriptor() ([]byte, []int) {
88 return file_google_cloud_datacatalog_v1_data_source_proto_rawDescGZIP(), []int{0, 0}
89 }
90
91 // Physical location of an entry.
92 type DataSource struct {
93 state protoimpl.MessageState
94 sizeCache protoimpl.SizeCache
95 unknownFields protoimpl.UnknownFields
96
97 // Service that physically stores the data.
98 Service DataSource_Service `protobuf:"varint,1,opt,name=service,proto3,enum=google.cloud.datacatalog.v1.DataSource_Service" json:"service,omitempty"`
99 // Full name of a resource as defined by the service. For example:
100 //
101 // `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
102 Resource string `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
103 // Output only. Data Catalog entry name, if applicable.
104 SourceEntry string `protobuf:"bytes,3,opt,name=source_entry,json=sourceEntry,proto3" json:"source_entry,omitempty"`
105 // Types that are assignable to Properties:
106 //
107 // *DataSource_StorageProperties
108 Properties isDataSource_Properties `protobuf_oneof:"properties"`
109 }
110
111 func (x *DataSource) Reset() {
112 *x = DataSource{}
113 mi := &file_google_cloud_datacatalog_v1_data_source_proto_msgTypes[0]
114 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
115 ms.StoreMessageInfo(mi)
116 }
117
118 func (x *DataSource) String() string {
119 return protoimpl.X.MessageStringOf(x)
120 }
121
122 func (*DataSource) ProtoMessage() {}
123
124 func (x *DataSource) ProtoReflect() protoreflect.Message {
125 mi := &file_google_cloud_datacatalog_v1_data_source_proto_msgTypes[0]
126 if x != nil {
127 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
128 if ms.LoadMessageInfo() == nil {
129 ms.StoreMessageInfo(mi)
130 }
131 return ms
132 }
133 return mi.MessageOf(x)
134 }
135
136 // Deprecated: Use DataSource.ProtoReflect.Descriptor instead.
137 func (*DataSource) Descriptor() ([]byte, []int) {
138 return file_google_cloud_datacatalog_v1_data_source_proto_rawDescGZIP(), []int{0}
139 }
140
141 func (x *DataSource) GetService() DataSource_Service {
142 if x != nil {
143 return x.Service
144 }
145 return DataSource_SERVICE_UNSPECIFIED
146 }
147
148 func (x *DataSource) GetResource() string {
149 if x != nil {
150 return x.Resource
151 }
152 return ""
153 }
154
155 func (x *DataSource) GetSourceEntry() string {
156 if x != nil {
157 return x.SourceEntry
158 }
159 return ""
160 }
161
162 func (m *DataSource) GetProperties() isDataSource_Properties {
163 if m != nil {
164 return m.Properties
165 }
166 return nil
167 }
168
169 func (x *DataSource) GetStorageProperties() *StorageProperties {
170 if x, ok := x.GetProperties().(*DataSource_StorageProperties); ok {
171 return x.StorageProperties
172 }
173 return nil
174 }
175
176 type isDataSource_Properties interface {
177 isDataSource_Properties()
178 }
179
180 type DataSource_StorageProperties struct {
181 // Detailed properties of the underlying storage.
182 StorageProperties *StorageProperties `protobuf:"bytes,4,opt,name=storage_properties,json=storageProperties,proto3,oneof"`
183 }
184
185 func (*DataSource_StorageProperties) isDataSource_Properties() {}
186
187 // Details the properties of the underlying storage.
188 type StorageProperties struct {
189 state protoimpl.MessageState
190 sizeCache protoimpl.SizeCache
191 unknownFields protoimpl.UnknownFields
192
193 // Patterns to identify a set of files for this fileset.
194 //
195 // Examples of a valid `file_pattern`:
196 //
197 // - `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir`
198 // directory
199 // - `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir`
200 // and all subdirectories recursively
201 // - `gs://bucket_name/file*`: matches files prefixed by `file` in
202 // `bucket_name`
203 // - `gs://bucket_name/??.txt`: matches files with two characters followed by
204 // `.txt` in `bucket_name`
205 // - `gs://bucket_name/[aeiou].txt`: matches files that contain a single
206 // vowel character followed by `.txt` in
207 // `bucket_name`
208 // - `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
209 // or `m` followed by `.txt` in `bucket_name`
210 // - `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
211 // the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
212 // - `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
213 FilePattern []string `protobuf:"bytes,1,rep,name=file_pattern,json=filePattern,proto3" json:"file_pattern,omitempty"`
214 // File type in MIME format, for example, `text/plain`.
215 FileType string `protobuf:"bytes,2,opt,name=file_type,json=fileType,proto3" json:"file_type,omitempty"`
216 }
217
218 func (x *StorageProperties) Reset() {
219 *x = StorageProperties{}
220 mi := &file_google_cloud_datacatalog_v1_data_source_proto_msgTypes[1]
221 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
222 ms.StoreMessageInfo(mi)
223 }
224
225 func (x *StorageProperties) String() string {
226 return protoimpl.X.MessageStringOf(x)
227 }
228
229 func (*StorageProperties) ProtoMessage() {}
230
231 func (x *StorageProperties) ProtoReflect() protoreflect.Message {
232 mi := &file_google_cloud_datacatalog_v1_data_source_proto_msgTypes[1]
233 if x != nil {
234 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
235 if ms.LoadMessageInfo() == nil {
236 ms.StoreMessageInfo(mi)
237 }
238 return ms
239 }
240 return mi.MessageOf(x)
241 }
242
243 // Deprecated: Use StorageProperties.ProtoReflect.Descriptor instead.
244 func (*StorageProperties) Descriptor() ([]byte, []int) {
245 return file_google_cloud_datacatalog_v1_data_source_proto_rawDescGZIP(), []int{1}
246 }
247
248 func (x *StorageProperties) GetFilePattern() []string {
249 if x != nil {
250 return x.FilePattern
251 }
252 return nil
253 }
254
255 func (x *StorageProperties) GetFileType() string {
256 if x != nil {
257 return x.FileType
258 }
259 return ""
260 }
261
262 var File_google_cloud_datacatalog_v1_data_source_proto protoreflect.FileDescriptor
263
264 var file_google_cloud_datacatalog_v1_data_source_proto_rawDesc = []byte{
265 0x0a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64,
266 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x61,
267 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
268 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61,
269 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f,
270 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62,
271 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcf, 0x02,
272 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x49, 0x0a, 0x07,
273 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e,
274 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74,
275 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61,
276 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07,
277 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75,
278 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75,
279 0x72, 0x63, 0x65, 0x12, 0x26, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x65, 0x6e,
280 0x74, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b,
281 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x5f, 0x0a, 0x12, 0x73,
282 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65,
283 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
284 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c,
285 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f,
286 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x48, 0x00, 0x52, 0x11, 0x73, 0x74, 0x6f, 0x72, 0x61,
287 0x67, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x43, 0x0a, 0x07,
288 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x45, 0x52, 0x56, 0x49,
289 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,
290 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x4c, 0x4f, 0x55, 0x44, 0x5f, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47,
291 0x45, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x42, 0x49, 0x47, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10,
292 0x02, 0x42, 0x0c, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22,
293 0x53, 0x0a, 0x11, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72,
294 0x74, 0x69, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74,
295 0x74, 0x65, 0x72, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x66, 0x69, 0x6c, 0x65,
296 0x50, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f,
297 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65,
298 0x54, 0x79, 0x70, 0x65, 0x42, 0xd4, 0x01, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f,
299 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61,
300 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f,
301 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x41, 0x63, 0x6c, 0x6f,
302 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f,
303 0x2f, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2f, 0x61, 0x70, 0x69,
304 0x76, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x70, 0x62,
305 0x3b, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x70, 0x62, 0xaa, 0x02,
306 0x1b, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x44, 0x61,
307 0x74, 0x61, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1b, 0x47,
308 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x44, 0x61, 0x74, 0x61,
309 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1e, 0x47, 0x6f, 0x6f,
310 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x44, 0x61, 0x74, 0x61,
311 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,
312 0x74, 0x6f, 0x33,
313 }
314
315 var (
316 file_google_cloud_datacatalog_v1_data_source_proto_rawDescOnce sync.Once
317 file_google_cloud_datacatalog_v1_data_source_proto_rawDescData = file_google_cloud_datacatalog_v1_data_source_proto_rawDesc
318 )
319
320 func file_google_cloud_datacatalog_v1_data_source_proto_rawDescGZIP() []byte {
321 file_google_cloud_datacatalog_v1_data_source_proto_rawDescOnce.Do(func() {
322 file_google_cloud_datacatalog_v1_data_source_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_datacatalog_v1_data_source_proto_rawDescData)
323 })
324 return file_google_cloud_datacatalog_v1_data_source_proto_rawDescData
325 }
326
327 var file_google_cloud_datacatalog_v1_data_source_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
328 var file_google_cloud_datacatalog_v1_data_source_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
329 var file_google_cloud_datacatalog_v1_data_source_proto_goTypes = []any{
330 (DataSource_Service)(0), // 0: google.cloud.datacatalog.v1.DataSource.Service
331 (*DataSource)(nil), // 1: google.cloud.datacatalog.v1.DataSource
332 (*StorageProperties)(nil), // 2: google.cloud.datacatalog.v1.StorageProperties
333 }
334 var file_google_cloud_datacatalog_v1_data_source_proto_depIdxs = []int32{
335 0, // 0: google.cloud.datacatalog.v1.DataSource.service:type_name -> google.cloud.datacatalog.v1.DataSource.Service
336 2, // 1: google.cloud.datacatalog.v1.DataSource.storage_properties:type_name -> google.cloud.datacatalog.v1.StorageProperties
337 2, // [2:2] is the sub-list for method output_type
338 2, // [2:2] is the sub-list for method input_type
339 2, // [2:2] is the sub-list for extension type_name
340 2, // [2:2] is the sub-list for extension extendee
341 0, // [0:2] is the sub-list for field type_name
342 }
343
344 func init() { file_google_cloud_datacatalog_v1_data_source_proto_init() }
345 func file_google_cloud_datacatalog_v1_data_source_proto_init() {
346 if File_google_cloud_datacatalog_v1_data_source_proto != nil {
347 return
348 }
349 file_google_cloud_datacatalog_v1_data_source_proto_msgTypes[0].OneofWrappers = []any{
350 (*DataSource_StorageProperties)(nil),
351 }
352 type x struct{}
353 out := protoimpl.TypeBuilder{
354 File: protoimpl.DescBuilder{
355 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
356 RawDescriptor: file_google_cloud_datacatalog_v1_data_source_proto_rawDesc,
357 NumEnums: 1,
358 NumMessages: 2,
359 NumExtensions: 0,
360 NumServices: 0,
361 },
362 GoTypes: file_google_cloud_datacatalog_v1_data_source_proto_goTypes,
363 DependencyIndexes: file_google_cloud_datacatalog_v1_data_source_proto_depIdxs,
364 EnumInfos: file_google_cloud_datacatalog_v1_data_source_proto_enumTypes,
365 MessageInfos: file_google_cloud_datacatalog_v1_data_source_proto_msgTypes,
366 }.Build()
367 File_google_cloud_datacatalog_v1_data_source_proto = out.File
368 file_google_cloud_datacatalog_v1_data_source_proto_rawDesc = nil
369 file_google_cloud_datacatalog_v1_data_source_proto_goTypes = nil
370 file_google_cloud_datacatalog_v1_data_source_proto_depIdxs = nil
371 }