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