blob: c409b6b0d1af3f6f20b012af4c1b091a2829dfca [file]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/datacatalog/v1/schema.proto
package datacatalog
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Represents a schema (e.g. BigQuery, GoogleSQL, Avro schema).
type Schema struct {
// Required. Schema of columns. A maximum of 10,000 columns and sub-columns can be
// specified.
Columns []*ColumnSchema `protobuf:"bytes,2,rep,name=columns,proto3" json:"columns,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Schema) Reset() { *m = Schema{} }
func (m *Schema) String() string { return proto.CompactTextString(m) }
func (*Schema) ProtoMessage() {}
func (*Schema) Descriptor() ([]byte, []int) {
return fileDescriptor_c85321006f215ea0, []int{0}
}
func (m *Schema) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Schema.Unmarshal(m, b)
}
func (m *Schema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Schema.Marshal(b, m, deterministic)
}
func (m *Schema) XXX_Merge(src proto.Message) {
xxx_messageInfo_Schema.Merge(m, src)
}
func (m *Schema) XXX_Size() int {
return xxx_messageInfo_Schema.Size(m)
}
func (m *Schema) XXX_DiscardUnknown() {
xxx_messageInfo_Schema.DiscardUnknown(m)
}
var xxx_messageInfo_Schema proto.InternalMessageInfo
func (m *Schema) GetColumns() []*ColumnSchema {
if m != nil {
return m.Columns
}
return nil
}
// Representation of a column within a schema. Columns could be nested inside
// other columns.
type ColumnSchema struct {
// Required. Name of the column.
Column string `protobuf:"bytes,6,opt,name=column,proto3" json:"column,omitempty"`
// Required. Type of the column.
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
// Optional. Description of the column. Default value is an empty string.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Optional. A column's mode indicates whether the values in this column are required,
// nullable, etc. Only `NULLABLE`, `REQUIRED` and `REPEATED` are supported.
// Default mode is `NULLABLE`.
Mode string `protobuf:"bytes,3,opt,name=mode,proto3" json:"mode,omitempty"`
// Optional. Schema of sub-columns. A column can have zero or more sub-columns.
Subcolumns []*ColumnSchema `protobuf:"bytes,7,rep,name=subcolumns,proto3" json:"subcolumns,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ColumnSchema) Reset() { *m = ColumnSchema{} }
func (m *ColumnSchema) String() string { return proto.CompactTextString(m) }
func (*ColumnSchema) ProtoMessage() {}
func (*ColumnSchema) Descriptor() ([]byte, []int) {
return fileDescriptor_c85321006f215ea0, []int{1}
}
func (m *ColumnSchema) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ColumnSchema.Unmarshal(m, b)
}
func (m *ColumnSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ColumnSchema.Marshal(b, m, deterministic)
}
func (m *ColumnSchema) XXX_Merge(src proto.Message) {
xxx_messageInfo_ColumnSchema.Merge(m, src)
}
func (m *ColumnSchema) XXX_Size() int {
return xxx_messageInfo_ColumnSchema.Size(m)
}
func (m *ColumnSchema) XXX_DiscardUnknown() {
xxx_messageInfo_ColumnSchema.DiscardUnknown(m)
}
var xxx_messageInfo_ColumnSchema proto.InternalMessageInfo
func (m *ColumnSchema) GetColumn() string {
if m != nil {
return m.Column
}
return ""
}
func (m *ColumnSchema) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *ColumnSchema) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *ColumnSchema) GetMode() string {
if m != nil {
return m.Mode
}
return ""
}
func (m *ColumnSchema) GetSubcolumns() []*ColumnSchema {
if m != nil {
return m.Subcolumns
}
return nil
}
func init() {
proto.RegisterType((*Schema)(nil), "google.cloud.datacatalog.v1.Schema")
proto.RegisterType((*ColumnSchema)(nil), "google.cloud.datacatalog.v1.ColumnSchema")
}
func init() {
proto.RegisterFile("google/cloud/datacatalog/v1/schema.proto", fileDescriptor_c85321006f215ea0)
}
var fileDescriptor_c85321006f215ea0 = []byte{
// 327 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x91, 0xc1, 0x4a, 0xc3, 0x30,
0x1c, 0xc6, 0x49, 0x27, 0x1d, 0x66, 0x9e, 0x7a, 0xb1, 0x38, 0x70, 0x63, 0x20, 0xcc, 0x4b, 0x42,
0xf5, 0x56, 0x4f, 0x6e, 0xa2, 0x9e, 0x44, 0x2a, 0xec, 0x20, 0x03, 0xc9, 0xda, 0x98, 0x05, 0xd2,
0xfe, 0x4b, 0x9b, 0x15, 0x7c, 0x25, 0x1f, 0x45, 0xaf, 0x3e, 0x80, 0x67, 0x9f, 0xc0, 0xa3, 0x98,
0xb4, 0x2c, 0x07, 0xd9, 0xc1, 0x63, 0xbe, 0xdf, 0xf7, 0x7d, 0xff, 0xfc, 0x13, 0x3c, 0x15, 0x00,
0x42, 0x71, 0x9a, 0x2a, 0xd8, 0x64, 0x34, 0x63, 0x9a, 0xa5, 0x4c, 0x33, 0x05, 0x82, 0x36, 0x11,
0xad, 0xd3, 0x35, 0xcf, 0x19, 0x29, 0x2b, 0xd0, 0x10, 0x0c, 0xad, 0x93, 0x18, 0x27, 0x71, 0x9c,
0xa4, 0x89, 0x8e, 0x46, 0x6d, 0x0d, 0x2b, 0x25, 0x7d, 0x96, 0x5c, 0x65, 0x4f, 0x2b, 0xbe, 0x66,
0x8d, 0x84, 0x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