1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/cloud/datacatalog/v1beta1/table_spec.proto 3 4package datacatalog 5 6import ( 7 fmt "fmt" 8 math "math" 9 10 proto "github.com/golang/protobuf/proto" 11 _ "google.golang.org/genproto/googleapis/api/annotations" 12) 13 14// Reference imports to suppress errors if they are not otherwise used. 15var _ = proto.Marshal 16var _ = fmt.Errorf 17var _ = math.Inf 18 19// This is a compile-time assertion to ensure that this generated file 20// is compatible with the proto package it is being compiled against. 21// A compilation error at this line likely means your copy of the 22// proto package needs to be updated. 23const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 24 25// Table source type. 26type TableSourceType int32 27 28const ( 29 // Default unknown type. 30 TableSourceType_TABLE_SOURCE_TYPE_UNSPECIFIED TableSourceType = 0 31 // Table view. 32 TableSourceType_BIGQUERY_VIEW TableSourceType = 2 33 // BigQuery native table. 34 TableSourceType_BIGQUERY_TABLE TableSourceType = 5 35) 36 37var TableSourceType_name = map[int32]string{ 38 0: "TABLE_SOURCE_TYPE_UNSPECIFIED", 39 2: "BIGQUERY_VIEW", 40 5: "BIGQUERY_TABLE", 41} 42 43var TableSourceType_value = map[string]int32{ 44 "TABLE_SOURCE_TYPE_UNSPECIFIED": 0, 45 "BIGQUERY_VIEW": 2, 46 "BIGQUERY_TABLE": 5, 47} 48 49func (x TableSourceType) String() string { 50 return proto.EnumName(TableSourceType_name, int32(x)) 51} 52 53func (TableSourceType) EnumDescriptor() ([]byte, []int) { 54 return fileDescriptor_2effb41fca72136b, []int{0} 55} 56 57// Describes a BigQuery table. 58type BigQueryTableSpec struct { 59 // Output only. The table source type. 60 TableSourceType TableSourceType `protobuf:"varint,1,opt,name=table_source_type,json=tableSourceType,proto3,enum=google.cloud.datacatalog.v1beta1.TableSourceType" json:"table_source_type,omitempty"` 61 // Output only. 62 // 63 // Types that are valid to be assigned to TypeSpec: 64 // *BigQueryTableSpec_ViewSpec 65 // *BigQueryTableSpec_TableSpec 66 TypeSpec isBigQueryTableSpec_TypeSpec `protobuf_oneof:"type_spec"` 67 XXX_NoUnkeyedLiteral struct{} `json:"-"` 68 XXX_unrecognized []byte `json:"-"` 69 XXX_sizecache int32 `json:"-"` 70} 71 72func (m *BigQueryTableSpec) Reset() { *m = BigQueryTableSpec{} } 73func (m *BigQueryTableSpec) String() string { return proto.CompactTextString(m) } 74func (*BigQueryTableSpec) ProtoMessage() {} 75func (*BigQueryTableSpec) Descriptor() ([]byte, []int) { 76 return fileDescriptor_2effb41fca72136b, []int{0} 77} 78 79func (m *BigQueryTableSpec) XXX_Unmarshal(b []byte) error { 80 return xxx_messageInfo_BigQueryTableSpec.Unmarshal(m, b) 81} 82func (m *BigQueryTableSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 83 return xxx_messageInfo_BigQueryTableSpec.Marshal(b, m, deterministic) 84} 85func (m *BigQueryTableSpec) XXX_Merge(src proto.Message) { 86 xxx_messageInfo_BigQueryTableSpec.Merge(m, src) 87} 88func (m *BigQueryTableSpec) XXX_Size() int { 89 return xxx_messageInfo_BigQueryTableSpec.Size(m) 90} 91func (m *BigQueryTableSpec) XXX_DiscardUnknown() { 92 xxx_messageInfo_BigQueryTableSpec.DiscardUnknown(m) 93} 94 95var xxx_messageInfo_BigQueryTableSpec proto.InternalMessageInfo 96 97func (m *BigQueryTableSpec) GetTableSourceType() TableSourceType { 98 if m != nil { 99 return m.TableSourceType 100 } 101 return TableSourceType_TABLE_SOURCE_TYPE_UNSPECIFIED 102} 103 104type isBigQueryTableSpec_TypeSpec interface { 105 isBigQueryTableSpec_TypeSpec() 106} 107 108type BigQueryTableSpec_ViewSpec struct { 109 ViewSpec *ViewSpec `protobuf:"bytes,2,opt,name=view_spec,json=viewSpec,proto3,oneof"` 110} 111 112type BigQueryTableSpec_TableSpec struct { 113 TableSpec *TableSpec `protobuf:"bytes,3,opt,name=table_spec,json=tableSpec,proto3,oneof"` 114} 115 116func (*BigQueryTableSpec_ViewSpec) isBigQueryTableSpec_TypeSpec() {} 117 118func (*BigQueryTableSpec_TableSpec) isBigQueryTableSpec_TypeSpec() {} 119 120func (m *BigQueryTableSpec) GetTypeSpec() isBigQueryTableSpec_TypeSpec { 121 if m != nil { 122 return m.TypeSpec 123 } 124 return nil 125} 126 127func (m *BigQueryTableSpec) GetViewSpec() *ViewSpec { 128 if x, ok := m.GetTypeSpec().(*BigQueryTableSpec_ViewSpec); ok { 129 return x.ViewSpec 130 } 131 return nil 132} 133 134func (m *BigQueryTableSpec) GetTableSpec() *TableSpec { 135 if x, ok := m.GetTypeSpec().(*BigQueryTableSpec_TableSpec); ok { 136 return x.TableSpec 137 } 138 return nil 139} 140 141// XXX_OneofWrappers is for the internal use of the proto package. 142func (*BigQueryTableSpec) XXX_OneofWrappers() []interface{} { 143 return []interface{}{ 144 (*BigQueryTableSpec_ViewSpec)(nil), 145 (*BigQueryTableSpec_TableSpec)(nil), 146 } 147} 148 149// Table view specification. 150type ViewSpec struct { 151 // Output only. The query that defines the table view. 152 ViewQuery string `protobuf:"bytes,1,opt,name=view_query,json=viewQuery,proto3" json:"view_query,omitempty"` 153 XXX_NoUnkeyedLiteral struct{} `json:"-"` 154 XXX_unrecognized []byte `json:"-"` 155 XXX_sizecache int32 `json:"-"` 156} 157 158func (m *ViewSpec) Reset() { *m = ViewSpec{} } 159func (m *ViewSpec) String() string { return proto.CompactTextString(m) } 160func (*ViewSpec) ProtoMessage() {} 161func (*ViewSpec) Descriptor() ([]byte, []int) { 162 return fileDescriptor_2effb41fca72136b, []int{1} 163} 164 165func (m *ViewSpec) XXX_Unmarshal(b []byte) error { 166 return xxx_messageInfo_ViewSpec.Unmarshal(m, b) 167} 168func (m *ViewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 169 return xxx_messageInfo_ViewSpec.Marshal(b, m, deterministic) 170} 171func (m *ViewSpec) XXX_Merge(src proto.Message) { 172 xxx_messageInfo_ViewSpec.Merge(m, src) 173} 174func (m *ViewSpec) XXX_Size() int { 175 return xxx_messageInfo_ViewSpec.Size(m) 176} 177func (m *ViewSpec) XXX_DiscardUnknown() { 178 xxx_messageInfo_ViewSpec.DiscardUnknown(m) 179} 180 181var xxx_messageInfo_ViewSpec proto.InternalMessageInfo 182 183func (m *ViewSpec) GetViewQuery() string { 184 if m != nil { 185 return m.ViewQuery 186 } 187 return "" 188} 189 190// Normal BigQuery table spec. 191type TableSpec struct { 192 // Output only. If the table is a dated shard, i.e., with name pattern `[prefix]YYYYMMDD`, 193 // `grouped_entry` is the Data Catalog resource name of the date sharded 194 // grouped entry, for example, 195 // `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`. 196 // Otherwise, `grouped_entry` is empty. 197 GroupedEntry string `protobuf:"bytes,1,opt,name=grouped_entry,json=groupedEntry,proto3" json:"grouped_entry,omitempty"` 198 XXX_NoUnkeyedLiteral struct{} `json:"-"` 199 XXX_unrecognized []byte `json:"-"` 200 XXX_sizecache int32 `json:"-"` 201} 202 203func (m *TableSpec) Reset() { *m = TableSpec{} } 204func (m *TableSpec) String() string { return proto.CompactTextString(m) } 205func (*TableSpec) ProtoMessage() {} 206func (*TableSpec) Descriptor() ([]byte, []int) { 207 return fileDescriptor_2effb41fca72136b, []int{2} 208} 209 210func (m *TableSpec) XXX_Unmarshal(b []byte) error { 211 return xxx_messageInfo_TableSpec.Unmarshal(m, b) 212} 213func (m *TableSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 214 return xxx_messageInfo_TableSpec.Marshal(b, m, deterministic) 215} 216func (m *TableSpec) XXX_Merge(src proto.Message) { 217 xxx_messageInfo_TableSpec.Merge(m, src) 218} 219func (m *TableSpec) XXX_Size() int { 220 return xxx_messageInfo_TableSpec.Size(m) 221} 222func (m *TableSpec) XXX_DiscardUnknown() { 223 xxx_messageInfo_TableSpec.DiscardUnknown(m) 224} 225 226var xxx_messageInfo_TableSpec proto.InternalMessageInfo 227 228func (m *TableSpec) GetGroupedEntry() string { 229 if m != nil { 230 return m.GroupedEntry 231 } 232 return "" 233} 234 235// Spec for a group of BigQuery tables with name pattern `[prefix]YYYYMMDD`. 236// Context: 237// https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding 238type BigQueryDateShardedSpec struct { 239 // Output only. The Data Catalog resource name of the dataset entry the current table 240 // belongs to, for example, 241 // `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`. 242 Dataset string `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` 243 // Output only. The table name prefix of the shards. The name of any given shard is 244 // `[table_prefix]YYYYMMDD`, for example, for shard `MyTable20180101`, the 245 // `table_prefix` is `MyTable`. 246 TablePrefix string `protobuf:"bytes,2,opt,name=table_prefix,json=tablePrefix,proto3" json:"table_prefix,omitempty"` 247 // Output only. Total number of shards. 248 ShardCount int64 `protobuf:"varint,3,opt,name=shard_count,json=shardCount,proto3" json:"shard_count,omitempty"` 249 XXX_NoUnkeyedLiteral struct{} `json:"-"` 250 XXX_unrecognized []byte `json:"-"` 251 XXX_sizecache int32 `json:"-"` 252} 253 254func (m *BigQueryDateShardedSpec) Reset() { *m = BigQueryDateShardedSpec{} } 255func (m *BigQueryDateShardedSpec) String() string { return proto.CompactTextString(m) } 256func (*BigQueryDateShardedSpec) ProtoMessage() {} 257func (*BigQueryDateShardedSpec) Descriptor() ([]byte, []int) { 258 return fileDescriptor_2effb41fca72136b, []int{3} 259} 260 261func (m *BigQueryDateShardedSpec) XXX_Unmarshal(b []byte) error { 262 return xxx_messageInfo_BigQueryDateShardedSpec.Unmarshal(m, b) 263} 264func (m *BigQueryDateShardedSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 265 return xxx_messageInfo_BigQueryDateShardedSpec.Marshal(b, m, deterministic) 266} 267func (m *BigQueryDateShardedSpec) XXX_Merge(src proto.Message) { 268 xxx_messageInfo_BigQueryDateShardedSpec.Merge(m, src) 269} 270func (m *BigQueryDateShardedSpec) XXX_Size() int { 271 return xxx_messageInfo_BigQueryDateShardedSpec.Size(m) 272} 273func (m *BigQueryDateShardedSpec) XXX_DiscardUnknown() { 274 xxx_messageInfo_BigQueryDateShardedSpec.DiscardUnknown(m) 275} 276 277var xxx_messageInfo_BigQueryDateShardedSpec proto.InternalMessageInfo 278 279func (m *BigQueryDateShardedSpec) GetDataset() string { 280 if m != nil { 281 return m.Dataset 282 } 283 return "" 284} 285 286func (m *BigQueryDateShardedSpec) GetTablePrefix() string { 287 if m != nil { 288 return m.TablePrefix 289 } 290 return "" 291} 292 293func (m *BigQueryDateShardedSpec) GetShardCount() int64 { 294 if m != nil { 295 return m.ShardCount 296 } 297 return 0 298} 299 300func init() { 301 proto.RegisterEnum("google.cloud.datacatalog.v1beta1.TableSourceType", TableSourceType_name, TableSourceType_value) 302 proto.RegisterType((*BigQueryTableSpec)(nil), "google.cloud.datacatalog.v1beta1.BigQueryTableSpec") 303 proto.RegisterType((*ViewSpec)(nil), "google.cloud.datacatalog.v1beta1.ViewSpec") 304 proto.RegisterType((*TableSpec)(nil), "google.cloud.datacatalog.v1beta1.TableSpec") 305 proto.RegisterType((*BigQueryDateShardedSpec)(nil), "google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec") 306} 307 308func init() { 309 proto.RegisterFile("google/cloud/datacatalog/v1beta1/table_spec.proto", fileDescriptor_2effb41fca72136b) 310} 311 312var fileDescriptor_2effb41fca72136b = []byte{ 313 // 502 bytes of a gzipped FileDescriptorProto 314 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x4d, 0x6f, 0xd3, 0x40, 315 0x10, 0xad, 0x6b, 0x01, 0xf5, 0xa4, 0x1f, 0xc9, 0x5e, 0x08, 0x95, 0x10, 0xc1, 0xaa, 0x50, 0x54, 316 0x24, 0x5b, 0x29, 0x47, 0x4e, 0x71, 0x6a, 0xc0, 0xa2, 0x40, 0xea, 0x24, 0x45, 0x2d, 0x07, 0x6b, 317 0x6d, 0x4f, 0x5d, 0x4b, 0x6e, 0xd6, 0xd8, 0xeb, 0xb4, 0xf9, 0x31, 0xfc, 0x02, 0xfe, 0x54, 0x7f, 318 0x06, 0xe2, 0x84, 0x3c, 0x76, 0x9a, 0x80, 0x84, 0x02, 0x37, 0xef, 0xdb, 0x79, 0x6f, 0xde, 0xbc, 319 0x59, 0x43, 0x2f, 0x12, 0x22, 0x4a, 0xd0, 0x0c, 0x12, 0x51, 0x84, 0x66, 0xc8, 0x25, 0x0f, 0xb8, 320 0xe4, 0x89, 0x88, 0xcc, 0x59, 0xcf, 0x47, 0xc9, 0x7b, 0xa6, 0xe4, 0x7e, 0x82, 0x5e, 0x9e, 0x62, 321 0x60, 0xa4, 0x99, 0x90, 0x82, 0x75, 0x2a, 0x8a, 0x41, 0x14, 0x63, 0x85, 0x62, 0xd4, 0x94, 0xfd, 322 0x67, 0xb5, 0x28, 0x4f, 0x63, 0xf3, 0x32, 0xc6, 0x24, 0xf4, 0x7c, 0xbc, 0xe2, 0xb3, 0x58, 0x64, 323 0x95, 0xc4, 0xfe, 0x93, 0x95, 0x82, 0x0c, 0x73, 0x51, 0x64, 0x01, 0x56, 0x57, 0xfa, 0xb7, 0x4d, 324 0x68, 0x59, 0x71, 0x74, 0x5a, 0x60, 0x36, 0x1f, 0x97, 0xad, 0x47, 0x29, 0x06, 0xcc, 0x87, 0x56, 325 0xed, 0x83, 0x6a, 0x3d, 0x39, 0x4f, 0xb1, 0xad, 0x74, 0x94, 0xee, 0xee, 0x51, 0xcf, 0x58, 0xe7, 326 0xc7, 0xa8, 0x74, 0x88, 0x39, 0x9e, 0xa7, 0x68, 0xa9, 0x77, 0x7d, 0xd5, 0xdd, 0x93, 0xbf, 0xa3, 327 0xcc, 0x01, 0x6d, 0x16, 0xe3, 0x0d, 0x8d, 0xda, 0xde, 0xec, 0x28, 0xdd, 0xc6, 0xd1, 0xe1, 0x7a, 328 0xed, 0xb3, 0x18, 0x6f, 0x4a, 0x8b, 0xef, 0x36, 0xdc, 0xad, 0x59, 0xfd, 0xcd, 0x4e, 0x00, 0x96, 329 0xb1, 0xb5, 0x55, 0xd2, 0x7a, 0xf9, 0xaf, 0x3e, 0x2b, 0x31, 0x4d, 0x2e, 0x0e, 0x56, 0x03, 0xb4, 330 0x72, 0x5e, 0x12, 0xd3, 0x0d, 0xd8, 0x5a, 0xb4, 0x64, 0x3a, 0x00, 0x39, 0xfe, 0x5a, 0x86, 0x45, 331 0x71, 0x68, 0xd5, 0x6c, 0x34, 0x08, 0x45, 0xa8, 0x5f, 0x80, 0xb6, 0x8c, 0xf1, 0x03, 0xec, 0x44, 332 0x99, 0x28, 0x52, 0x0c, 0x3d, 0x9c, 0xca, 0x7b, 0x4e, 0xf7, 0xae, 0xaf, 0xfe, 0xec, 0xeb, 0xd0, 333 0x59, 0x35, 0x55, 0xb9, 0xe5, 0x69, 0x9c, 0x1b, 0x81, 0xb8, 0x36, 0xed, 0xb2, 0xde, 0xdd, 0xae, 334 0xe9, 0x74, 0xd2, 0xbf, 0x2b, 0xf0, 0x78, 0xb1, 0xab, 0x63, 0x2e, 0x71, 0x74, 0xc5, 0xb3, 0x10, 335 0x43, 0x6a, 0x65, 0xc1, 0xa3, 0x52, 0x2d, 0x47, 0xf9, 0xdf, 0x4d, 0x16, 0x44, 0xf6, 0x02, 0xb6, 336 0xab, 0x18, 0xd3, 0x0c, 0x2f, 0xe3, 0x5b, 0x5a, 0x4a, 0x3d, 0x61, 0x83, 0x2e, 0x86, 0x84, 0xb3, 337 0x03, 0x68, 0xe4, 0x65, 0x6b, 0x2f, 0x10, 0xc5, 0x54, 0x52, 0xde, 0x6a, 0x55, 0x06, 0x84, 0x0f, 338 0x4a, 0xf8, 0xf0, 0x0b, 0xec, 0xfd, 0xf1, 0x10, 0xd8, 0x73, 0x78, 0x3a, 0xee, 0x5b, 0x27, 0xb6, 339 0x37, 0xfa, 0x34, 0x71, 0x07, 0xb6, 0x37, 0x3e, 0x1f, 0xda, 0xde, 0xe4, 0xe3, 0x68, 0x68, 0x0f, 340 0x9c, 0x37, 0x8e, 0x7d, 0xdc, 0xdc, 0x60, 0x2d, 0xd8, 0xb1, 0x9c, 0xb7, 0xa7, 0x13, 0xdb, 0x3d, 341 0xf7, 0xce, 0x1c, 0xfb, 0x73, 0x73, 0x93, 0x31, 0xd8, 0xbd, 0x87, 0x88, 0xde, 0x7c, 0x60, 0xdd, 342 0xc2, 0x41, 0x20, 0xae, 0xd7, 0xae, 0x78, 0xa8, 0x5c, 0xbc, 0xaf, 0x6b, 0x22, 0x91, 0xf0, 0x69, 343 0x64, 0x88, 0x2c, 0x32, 0x23, 0x9c, 0xd2, 0xe3, 0x37, 0x97, 0x71, 0xfc, 0xfd, 0x87, 0x7c, 0xbd, 344 0x82, 0xfd, 0x50, 0x14, 0xff, 0x21, 0x51, 0x5f, 0xfd, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x62, 0x56, 345 0xff, 0xcd, 0xca, 0x03, 0x00, 0x00, 346} 347