blob: 6fa802f4bfea1ebc099a95451a9b017fb29b5d58 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: infra/libs/bqschema/tabledef/table_def.proto
package tabledef
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// 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
type Type int32
const (
Type_STRING Type = 0
Type_BYTES Type = 1
Type_INTEGER Type = 2
Type_FLOAT Type = 3
Type_BOOLEAN Type = 4
Type_TIMESTAMP Type = 5
Type_RECORD Type = 6
Type_DATE Type = 7
Type_TIME Type = 8
Type_DATETIME Type = 9
)
var Type_name = map[int32]string{
0: "STRING",
1: "BYTES",
2: "INTEGER",
3: "FLOAT",
4: "BOOLEAN",
5: "TIMESTAMP",
6: "RECORD",
7: "DATE",
8: "TIME",
9: "DATETIME",
}
var Type_value = map[string]int32{
"STRING": 0,
"BYTES": 1,
"INTEGER": 2,
"FLOAT": 3,
"BOOLEAN": 4,
"TIMESTAMP": 5,
"RECORD": 6,
"DATE": 7,
"TIME": 8,
"DATETIME": 9,
}
func (x Type) String() string {
return proto.EnumName(Type_name, int32(x))
}
func (Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_39066d2eb00de675, []int{0}
}
type TableDef struct {
// Name of the dataset.
DatasetId string `protobuf:"bytes,1,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"`
// Name of the table.
TableId string `protobuf:"bytes,2,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
// Human-readable name of the table. (optional)
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
// Human-readable description of the table. (optional)
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
Fields []*FieldSchema `protobuf:"bytes,5,rep,name=fields,proto3" json:"fields,omitempty"`
// Whether to partition the table by day.
PartitionTable bool `protobuf:"varint,6,opt,name=partition_table,json=partitionTable,proto3" json:"partition_table,omitempty"`
// The lifetime for each partition. If zero, partitions do not expire.
// Ignored if partition_table is false. (optional)
PartitionExpirationSeconds int64 `protobuf:"varint,7,opt,name=partition_expiration_seconds,json=partitionExpirationSeconds,proto3" json:"partition_expiration_seconds,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TableDef) Reset() { *m = TableDef{} }
func (m *TableDef) String() string { return proto.CompactTextString(m) }
func (*TableDef) ProtoMessage() {}
func (*TableDef) Descriptor() ([]byte, []int) {
return fileDescriptor_39066d2eb00de675, []int{0}
}
func (m *TableDef) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TableDef.Unmarshal(m, b)
}
func (m *TableDef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TableDef.Marshal(b, m, deterministic)
}
func (m *TableDef) XXX_Merge(src proto.Message) {
xxx_messageInfo_TableDef.Merge(m, src)
}
func (m *TableDef) XXX_Size() int {
return xxx_messageInfo_TableDef.Size(m)
}
func (m *TableDef) XXX_DiscardUnknown() {
xxx_messageInfo_TableDef.DiscardUnknown(m)
}
var xxx_messageInfo_TableDef proto.InternalMessageInfo
func (m *TableDef) GetDatasetId() string {
if m != nil {
return m.DatasetId
}
return ""
}
func (m *TableDef) GetTableId() string {
if m != nil {
return m.TableId
}
return ""
}
func (m *TableDef) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *TableDef) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *TableDef) GetFields() []*FieldSchema {
if m != nil {
return m.Fields
}
return nil
}
func (m *TableDef) GetPartitionTable() bool {
if m != nil {
return m.PartitionTable
}
return false
}
func (m *TableDef) GetPartitionExpirationSeconds() int64 {
if m != nil {
return m.PartitionExpirationSeconds
}
return 0
}
type FieldSchema struct {
// Name of the field/column.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Human-readable description of the field. (optional)
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
IsRepeated bool `protobuf:"varint,3,opt,name=is_repeated,json=isRepeated,proto3" json:"is_repeated,omitempty"`
IsRequired bool `protobuf:"varint,4,opt,name=is_required,json=isRequired,proto3" json:"is_required,omitempty"`
Type Type `protobuf:"varint,5,opt,name=type,proto3,enum=tabledef.Type" json:"type,omitempty"`
Schema []*FieldSchema `protobuf:"bytes,6,rep,name=schema,proto3" json:"schema,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FieldSchema) Reset() { *m = FieldSchema{} }
func (m *FieldSchema) String() string { return proto.CompactTextString(m) }
func (*FieldSchema) ProtoMessage() {}
func (*FieldSchema) Descriptor() ([]byte, []int) {
return fileDescriptor_39066d2eb00de675, []int{1}
}
func (m *FieldSchema) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FieldSchema.Unmarshal(m, b)
}
func (m *FieldSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FieldSchema.Marshal(b, m, deterministic)
}
func (m *FieldSchema) XXX_Merge(src proto.Message) {
xxx_messageInfo_FieldSchema.Merge(m, src)
}
func (m *FieldSchema) XXX_Size() int {
return xxx_messageInfo_FieldSchema.Size(m)
}
func (m *FieldSchema) XXX_DiscardUnknown() {
xxx_messageInfo_FieldSchema.DiscardUnknown(m)
}
var xxx_messageInfo_FieldSchema proto.InternalMessageInfo
func (m *FieldSchema) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *FieldSchema) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *FieldSchema) GetIsRepeated() bool {
if m != nil {
return m.IsRepeated
}
return false
}
func (m *FieldSchema) GetIsRequired() bool {
if m != nil {
return m.IsRequired
}
return false
}
func (m *FieldSchema) GetType() Type {
if m != nil {
return m.Type
}
return Type_STRING
}
func (m *FieldSchema) GetSchema() []*FieldSchema {
if m != nil {
return m.Schema
}
return nil
}
func init() {
proto.RegisterEnum("tabledef.Type", Type_name, Type_value)
proto.RegisterType((*TableDef)(nil), "tabledef.TableDef")
proto.RegisterType((*FieldSchema)(nil), "tabledef.FieldSchema")
}
func init() {
proto.RegisterFile("infra/libs/bqschema/tabledef/table_def.proto", fileDescriptor_39066d2eb00de675)
}
var fileDescriptor_39066d2eb00de675 = []byte{
// 424 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0x51, 0x8b, 0xd3, 0x40,
0x10, 0xc7, 0x4d, 0x9b, 0xa6, 0xc9, 0x44, 0xeb, 0xb2, 0x20, 0x44, 0x51, 0x0c, 0x7d, 0x31, 0x88,
0xb6, 0x70, 0x7e, 0x01, 0x7b, 0x36, 0x77, 0x04, 0xee, 0x5a, 0xd9, 0xec, 0x8b, 0x4f, 0x65, 0xdb,
0x9d, 0xe0, 0x42, 0xaf, 0xcd, 0x65, 0x57, 0xf0, 0x9e, 0xfc, 0x12, 0x7e, 0x38, 0x3f, 0x8e, 0xec,
0x26, 0x97, 0x2b, 0x88, 0xf7, 0x36, 0xf3, 0x9b, 0xdf, 0x94, 0x9d, 0x7f, 0x03, 0x1f, 0xd4, 0xa1,
0x6a, 0xc4, 0x7c, 0xaf, 0xb6, 0x7a, 0xbe, 0xbd, 0xd5, 0xbb, 0xef, 0x78, 0x23, 0xe6, 0x46, 0x6c,
0xf7, 0x28, 0xb1, 0x6a, 0x8b, 0x8d, 0xc4, 0x6a, 0x56, 0x37, 0x47, 0x73, 0xa4, 0xe1, 0xfd, 0x64,
0xfa, 0x7b, 0x00, 0x21, 0xb7, 0xcd, 0x12, 0x2b, 0xfa, 0x06, 0x40, 0x0a, 0x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