1// Copyright 2020 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        v3.12.2
19// source: google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto
20
21package datacatalog
22
23import (
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
32const (
33	// Verify that this generated code is sufficiently up-to-date.
34	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35	// Verify that runtime/protoimpl is sufficiently up-to-date.
36	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37)
38
39// Describes a Cloud Storage fileset entry.
40type GcsFilesetSpec struct {
41	state         protoimpl.MessageState
42	sizeCache     protoimpl.SizeCache
43	unknownFields protoimpl.UnknownFields
44
45	// Required. Patterns to identify a set of files in Google Cloud Storage.
46	// See [Cloud Storage
47	// documentation](https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames)
48	// for more information. Note that bucket wildcards are currently not
49	// supported.
50	//
51	// Examples of valid file_patterns:
52	//
53	//  * `gs://bucket_name/dir/*`: matches all files within `bucket_name/dir`
54	//                              directory.
55	//  * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
56	//                               spanning 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	//                              `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 provide more powerful matches, 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 contained in this
75	// 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
79func (x *GcsFilesetSpec) Reset() {
80	*x = GcsFilesetSpec{}
81	if protoimpl.UnsafeEnabled {
82		mi := &file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_msgTypes[0]
83		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
84		ms.StoreMessageInfo(mi)
85	}
86}
87
88func (x *GcsFilesetSpec) String() string {
89	return protoimpl.X.MessageStringOf(x)
90}
91
92func (*GcsFilesetSpec) ProtoMessage() {}
93
94func (x *GcsFilesetSpec) ProtoReflect() protoreflect.Message {
95	mi := &file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_msgTypes[0]
96	if protoimpl.UnsafeEnabled && x != nil {
97		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
98		if ms.LoadMessageInfo() == nil {
99			ms.StoreMessageInfo(mi)
100		}
101		return ms
102	}
103	return mi.MessageOf(x)
104}
105
106// Deprecated: Use GcsFilesetSpec.ProtoReflect.Descriptor instead.
107func (*GcsFilesetSpec) Descriptor() ([]byte, []int) {
108	return file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_rawDescGZIP(), []int{0}
109}
110
111func (x *GcsFilesetSpec) GetFilePatterns() []string {
112	if x != nil {
113		return x.FilePatterns
114	}
115	return nil
116}
117
118func (x *GcsFilesetSpec) GetSampleGcsFileSpecs() []*GcsFileSpec {
119	if x != nil {
120		return x.SampleGcsFileSpecs
121	}
122	return nil
123}
124
125// Specifications of a single file in Cloud Storage.
126type GcsFileSpec struct {
127	state         protoimpl.MessageState
128	sizeCache     protoimpl.SizeCache
129	unknownFields protoimpl.UnknownFields
130
131	// Required. The full file path. Example: `gs://bucket_name/a/b.txt`.
132	FilePath string `protobuf:"bytes,1,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
133	// Output only. Timestamps about the Cloud Storage file.
134	GcsTimestamps *SystemTimestamps `protobuf:"bytes,2,opt,name=gcs_timestamps,json=gcsTimestamps,proto3" json:"gcs_timestamps,omitempty"`
135	// Output only. The size of the file, in bytes.
136	SizeBytes int64 `protobuf:"varint,4,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
137}
138
139func (x *GcsFileSpec) Reset() {
140	*x = GcsFileSpec{}
141	if protoimpl.UnsafeEnabled {
142		mi := &file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_msgTypes[1]
143		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
144		ms.StoreMessageInfo(mi)
145	}
146}
147
148func (x *GcsFileSpec) String() string {
149	return protoimpl.X.MessageStringOf(x)
150}
151
152func (*GcsFileSpec) ProtoMessage() {}
153
154func (x *GcsFileSpec) ProtoReflect() protoreflect.Message {
155	mi := &file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_msgTypes[1]
156	if protoimpl.UnsafeEnabled && x != nil {
157		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
158		if ms.LoadMessageInfo() == nil {
159			ms.StoreMessageInfo(mi)
160		}
161		return ms
162	}
163	return mi.MessageOf(x)
164}
165
166// Deprecated: Use GcsFileSpec.ProtoReflect.Descriptor instead.
167func (*GcsFileSpec) Descriptor() ([]byte, []int) {
168	return file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_rawDescGZIP(), []int{1}
169}
170
171func (x *GcsFileSpec) GetFilePath() string {
172	if x != nil {
173		return x.FilePath
174	}
175	return ""
176}
177
178func (x *GcsFileSpec) GetGcsTimestamps() *SystemTimestamps {
179	if x != nil {
180		return x.GcsTimestamps
181	}
182	return nil
183}
184
185func (x *GcsFileSpec) GetSizeBytes() int64 {
186	if x != nil {
187		return x.SizeBytes
188	}
189	return 0
190}
191
192var File_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto protoreflect.FileDescriptor
193
194var file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_rawDesc = []byte{
195	0x0a, 0x37, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64,
196	0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74,
197	0x61, 0x31, 0x2f, 0x67, 0x63, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x73,
198	0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
199	0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61,
200	0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f,
201	0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65,
202	0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x31, 0x67, 0x6f,
203	0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x63,
204	0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74,
205	0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
206	0xa1, 0x01, 0x0a, 0x0e, 0x47, 0x63, 0x73, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x65, 0x74, 0x53, 0x70,
207	0x65, 0x63, 0x12, 0x28, 0x0a, 0x0d, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x74, 0x65,
208	0x72, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c,
209	0x66, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x73, 0x12, 0x65, 0x0a, 0x15,
210	0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x5f, 0x67, 0x63, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f,
211	0x73, 0x70, 0x65, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f,
212	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63,
213	0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47,
214	0x63, 0x73, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52,
215	0x12, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x47, 0x63, 0x73, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x70,
216	0x65, 0x63, 0x73, 0x22, 0xb3, 0x01, 0x0a, 0x0b, 0x47, 0x63, 0x73, 0x46, 0x69, 0x6c, 0x65, 0x53,
217	0x70, 0x65, 0x63, 0x12, 0x20, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68,
218	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x66, 0x69, 0x6c,
219	0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x5e, 0x0a, 0x0e, 0x67, 0x63, 0x73, 0x5f, 0x74, 0x69, 0x6d,
220	0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e,
221	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74,
222	0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
223	0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
224	0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x67, 0x63, 0x73, 0x54, 0x69, 0x6d, 0x65, 0x73,
225	0x74, 0x61, 0x6d, 0x70, 0x73, 0x12, 0x22, 0x0a, 0x0a, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x62, 0x79,
226	0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09,
227	0x73, 0x69, 0x7a, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x42, 0xe4, 0x01, 0x0a, 0x24, 0x63, 0x6f,
228	0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64,
229	0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
230	0x61, 0x31, 0x50, 0x01, 0x5a, 0x4b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c,
231	0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
232	0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75,
233	0x64, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2f, 0x76, 0x31,
234	0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f,
235	0x67, 0xf8, 0x01, 0x01, 0xaa, 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c,
236	0x6f, 0x75, 0x64, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e,
237	0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
238	0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x44, 0x61, 0x74, 0x61, 0x43, 0x61, 0x74, 0x61, 0x6c,
239	0x6f, 0x67, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x23, 0x47, 0x6f, 0x6f,
240	0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x44, 0x61, 0x74, 0x61,
241	0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
242	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
243}
244
245var (
246	file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_rawDescOnce sync.Once
247	file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_rawDescData = file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_rawDesc
248)
249
250func file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_rawDescGZIP() []byte {
251	file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_rawDescOnce.Do(func() {
252		file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_rawDescData)
253	})
254	return file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_rawDescData
255}
256
257var file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
258var file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_goTypes = []interface{}{
259	(*GcsFilesetSpec)(nil),   // 0: google.cloud.datacatalog.v1beta1.GcsFilesetSpec
260	(*GcsFileSpec)(nil),      // 1: google.cloud.datacatalog.v1beta1.GcsFileSpec
261	(*SystemTimestamps)(nil), // 2: google.cloud.datacatalog.v1beta1.SystemTimestamps
262}
263var file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_depIdxs = []int32{
264	1, // 0: google.cloud.datacatalog.v1beta1.GcsFilesetSpec.sample_gcs_file_specs:type_name -> google.cloud.datacatalog.v1beta1.GcsFileSpec
265	2, // 1: google.cloud.datacatalog.v1beta1.GcsFileSpec.gcs_timestamps:type_name -> google.cloud.datacatalog.v1beta1.SystemTimestamps
266	2, // [2:2] is the sub-list for method output_type
267	2, // [2:2] is the sub-list for method input_type
268	2, // [2:2] is the sub-list for extension type_name
269	2, // [2:2] is the sub-list for extension extendee
270	0, // [0:2] is the sub-list for field type_name
271}
272
273func init() { file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_init() }
274func file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_init() {
275	if File_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto != nil {
276		return
277	}
278	file_google_cloud_datacatalog_v1beta1_timestamps_proto_init()
279	if !protoimpl.UnsafeEnabled {
280		file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
281			switch v := v.(*GcsFilesetSpec); i {
282			case 0:
283				return &v.state
284			case 1:
285				return &v.sizeCache
286			case 2:
287				return &v.unknownFields
288			default:
289				return nil
290			}
291		}
292		file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
293			switch v := v.(*GcsFileSpec); i {
294			case 0:
295				return &v.state
296			case 1:
297				return &v.sizeCache
298			case 2:
299				return &v.unknownFields
300			default:
301				return nil
302			}
303		}
304	}
305	type x struct{}
306	out := protoimpl.TypeBuilder{
307		File: protoimpl.DescBuilder{
308			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
309			RawDescriptor: file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_rawDesc,
310			NumEnums:      0,
311			NumMessages:   2,
312			NumExtensions: 0,
313			NumServices:   0,
314		},
315		GoTypes:           file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_goTypes,
316		DependencyIndexes: file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_depIdxs,
317		MessageInfos:      file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_msgTypes,
318	}.Build()
319	File_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto = out.File
320	file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_rawDesc = nil
321	file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_goTypes = nil
322	file_google_cloud_datacatalog_v1beta1_gcs_fileset_spec_proto_depIdxs = nil
323}
324