Debian Codegraph @

datacatalog/apiv1beta1/datacatalogpb/schema.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/schema.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 // Represents a schema (e.g. BigQuery, GoogleSQL, Avro schema).
39 type Schema struct {
40 state protoimpl.MessageState
41 sizeCache protoimpl.SizeCache
42 unknownFields protoimpl.UnknownFields
43
44 // Required. Schema of columns. A maximum of 10,000 columns and sub-columns
45 // can be specified.
46 Columns []*ColumnSchema `protobuf:"bytes,2,rep,name=columns,proto3" json:"columns,omitempty"`
47 }
48
49 func (x *Schema) Reset() {
50 *x = Schema{}
51 mi := &file_google_cloud_datacatalog_v1beta1_schema_proto_msgTypes[0]
52 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
53 ms.StoreMessageInfo(mi)
54 }
55
56 func (x *Schema) String() string {
57 return protoimpl.X.MessageStringOf(x)
58 }
59
60 func (*Schema) ProtoMessage() {}
61
62 func (x *Schema) ProtoReflect() protoreflect.Message {
63 mi := &file_google_cloud_datacatalog_v1beta1_schema_proto_msgTypes[0]
64 if x != nil {
65 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
66 if ms.LoadMessageInfo() == nil {
67 ms.StoreMessageInfo(mi)
68 }
69 return ms
70 }
71 return mi.MessageOf(x)
72 }
73
74 // Deprecated: Use Schema.ProtoReflect.Descriptor instead.
75 func (*Schema) Descriptor() ([]byte, []int) {
76 return file_google_cloud_datacatalog_v1beta1_schema_proto_rawDescGZIP(), []int{0}
77 }
78
79 func (x *Schema) GetColumns() []*ColumnSchema {
80 if x != nil {
81 return x.Columns
82 }
83 return nil
84 }
85
86 // Representation of a column within a schema. Columns could be nested inside
87 // other columns.
88 type ColumnSchema struct {
89 state protoimpl.MessageState
90 sizeCache protoimpl.SizeCache
91 unknownFields protoimpl.UnknownFields
92
93 // Required. Name of the column.
94 Column string `protobuf:"bytes,6,opt,name=column,proto3" json:"column,omitempty"`
95 // Required. Type of the column.
96 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
97 // Optional. Description of the column. Default value is an empty string.
98 Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
99 // Optional. A column's mode indicates whether the values in this column are
100 // required, nullable, etc. Only `NULLABLE`, `REQUIRED` and `REPEATED` are
101 // supported. Default mode is `NULLABLE`.
102 Mode string `protobuf:"bytes,3,opt,name=mode,proto3" json:"mode,omitempty"`
103 // Optional. Schema of sub-columns. A column can have zero or more
104 // sub-columns.
105 Subcolumns []*ColumnSchema `protobuf:"bytes,7,rep,name=subcolumns,proto3" json:"subcolumns,omitempty"`
106 }
107
108 func (x *ColumnSchema) Reset() {
109 *x = ColumnSchema{}
110 mi := &file_google_cloud_datacatalog_v1beta1_schema_proto_msgTypes[1]
111 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
112 ms.StoreMessageInfo(mi)
113 }
114
115 func (x *ColumnSchema) String() string {
116 return protoimpl.X.MessageStringOf(x)
117 }
118
119 func (*ColumnSchema) ProtoMessage() {}
120
121 func (x *ColumnSchema) ProtoReflect() protoreflect.Message {
122 mi := &file_google_cloud_datacatalog_v1beta1_schema_proto_msgTypes[1]
123 if x != nil {
124 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
125 if ms.LoadMessageInfo() == nil {
126 ms.StoreMessageInfo(mi)
127 }
128 return ms
129 }
130 return mi.MessageOf(x)
131 }
132
133 // Deprecated: Use ColumnSchema.ProtoReflect.Descriptor instead.
134 func (*ColumnSchema) Descriptor() ([]byte, []int) {
135 return file_google_cloud_datacatalog_v1beta1_schema_proto_rawDescGZIP(), []int{1}
136 }
137
138 func (x *ColumnSchema) GetColumn() string {
139 if x != nil {
140 return x.Column
141 }
142 return ""
143 }
144
145 func (x *ColumnSchema) GetType() string {
146 if x != nil {
147 return x.Type
148 }
149 return ""
150 }
151
152 func (x *ColumnSchema) GetDescription() string {
153 if x != nil {
154 return x.Description
155 }
156 return ""
157 }
158
159 func (x *ColumnSchema) GetMode() string {
160 if x != nil {
161 return x.Mode
162 }
163 return ""
164 }
165
166 func (x *ColumnSchema) GetSubcolumns() []*ColumnSchema {
167 if x != nil {
168 return x.Subcolumns
169 }
170 return nil
171 }
172
173 var File_google_cloud_datacatalog_v1beta1_schema_proto protoreflect.FileDescriptor
174
175 var file_google_cloud_datacatalog_v1beta1_schema_proto_rawDesc = []byte{
176 0x0a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64,
177 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74,
178 0x61, 0x31, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
179 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61,
180 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
181 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69,
182 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f,
183 0x74, 0x6f, 0x22, 0x57, 0x0a, 0x06, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x4d, 0x0a, 0x07,
184 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e,
185 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74,
186 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
187 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x03, 0xe0,
188 0x41, 0x02, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0xd9, 0x01, 0x0a, 0x0c,
189 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1b, 0x0a, 0x06,
190 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,
191 0x02, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x17, 0x0a, 0x04, 0x74, 0x79, 0x70,
192 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x74, 0x79,
193 0x70, 0x65, 0x12, 0x25, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
194 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x64, 0x65,
195 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x04, 0x6d, 0x6f, 0x64,
196 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x04, 0x6d, 0x6f,
197 0x64, 0x65, 0x12, 0x53, 0x0a, 0x0a, 0x73, 0x75, 0x62, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73,
198 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
199 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f,
200 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
201 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0a, 0x73, 0x75, 0x62,
202 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x42, 0xdc, 0x01, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e,
203 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74,
204 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
205 0x50, 0x01, 0x5a, 0x46, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
206 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61,
207 0x6c, 0x6f, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x64,
208 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x70, 0x62, 0x3b, 0x64, 0x61, 0x74,
209 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x70, 0x62, 0xaa, 0x02, 0x20, 0x47, 0x6f, 0x6f,
210 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x61,
211 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x20,
212 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x44, 0x61, 0x74,
213 0x61, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
214 0xea, 0x02, 0x23, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64,
215 0x3a, 0x3a, 0x44, 0x61, 0x74, 0x61, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x3a, 0x3a, 0x56,
216 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
217 }
218
219 var (
220 file_google_cloud_datacatalog_v1beta1_schema_proto_rawDescOnce sync.Once
221 file_google_cloud_datacatalog_v1beta1_schema_proto_rawDescData = file_google_cloud_datacatalog_v1beta1_schema_proto_rawDesc
222 )
223
224 func file_google_cloud_datacatalog_v1beta1_schema_proto_rawDescGZIP() []byte {
225 file_google_cloud_datacatalog_v1beta1_schema_proto_rawDescOnce.Do(func() {
226 file_google_cloud_datacatalog_v1beta1_schema_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_datacatalog_v1beta1_schema_proto_rawDescData)
227 })
228 return file_google_cloud_datacatalog_v1beta1_schema_proto_rawDescData
229 }
230
231 var file_google_cloud_datacatalog_v1beta1_schema_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
232 var file_google_cloud_datacatalog_v1beta1_schema_proto_goTypes = []any{
233 (*Schema)(nil), // 0: google.cloud.datacatalog.v1beta1.Schema
234 (*ColumnSchema)(nil), // 1: google.cloud.datacatalog.v1beta1.ColumnSchema
235 }
236 var file_google_cloud_datacatalog_v1beta1_schema_proto_depIdxs = []int32{
237 1, // 0: google.cloud.datacatalog.v1beta1.Schema.columns:type_name -> google.cloud.datacatalog.v1beta1.ColumnSchema
238 1, // 1: google.cloud.datacatalog.v1beta1.ColumnSchema.subcolumns:type_name -> google.cloud.datacatalog.v1beta1.ColumnSchema
239 2, // [2:2] is the sub-list for method output_type
240 2, // [2:2] is the sub-list for method input_type
241 2, // [2:2] is the sub-list for extension type_name
242 2, // [2:2] is the sub-list for extension extendee
243 0, // [0:2] is the sub-list for field type_name
244 }
245
246 func init() { file_google_cloud_datacatalog_v1beta1_schema_proto_init() }
247 func file_google_cloud_datacatalog_v1beta1_schema_proto_init() {
248 if File_google_cloud_datacatalog_v1beta1_schema_proto != nil {
249 return
250 }
251 type x struct{}
252 out := protoimpl.TypeBuilder{
253 File: protoimpl.DescBuilder{
254 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
255 RawDescriptor: file_google_cloud_datacatalog_v1beta1_schema_proto_rawDesc,
256 NumEnums: 0,
257 NumMessages: 2,
258 NumExtensions: 0,
259 NumServices: 0,
260 },
261 GoTypes: file_google_cloud_datacatalog_v1beta1_schema_proto_goTypes,
262 DependencyIndexes: file_google_cloud_datacatalog_v1beta1_schema_proto_depIdxs,
263 MessageInfos: file_google_cloud_datacatalog_v1beta1_schema_proto_msgTypes,
264 }.Build()
265 File_google_cloud_datacatalog_v1beta1_schema_proto = out.File
266 file_google_cloud_datacatalog_v1beta1_schema_proto_rawDesc = nil
267 file_google_cloud_datacatalog_v1beta1_schema_proto_goTypes = nil
268 file_google_cloud_datacatalog_v1beta1_schema_proto_depIdxs = nil
269 }