forked from GoogleCloudPlatform/protoc-gen-bq-schema
/
bq_field.pb.go
140 lines (123 loc) · 5.47 KB
/
bq_field.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: bq_field.proto
package protos
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor"
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
// Message containing options related to BigQuery schema generation
// and management via Protobuf.
type BigQueryFieldOptions struct {
// Flag to specify that a field should be marked as 'REQUIRED' when
// used to generate schema for BigQuery.
Require bool `protobuf:"varint,1,opt,name=require,proto3" json:"require,omitempty"`
// Optionally override whatever type is resolved by the schema
// generator. This is useful, for example, to store epoch timestamps
// with the underlying 'TIMESTAMP' type, when normally, they would
// be structured as 'INTEGER' fields.
TypeOverride string `protobuf:"bytes,2,opt,name=type_override,json=typeOverride,proto3" json:"type_override,omitempty"`
// Optionally omit a field from BigQuery schema.
Ignore bool `protobuf:"varint,3,opt,name=ignore,proto3" json:"ignore,omitempty"`
// Set the description for a field in BigQuery schema.
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
// Customize the name of the field in the BigQuery schema.
Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BigQueryFieldOptions) Reset() { *m = BigQueryFieldOptions{} }
func (m *BigQueryFieldOptions) String() string { return proto.CompactTextString(m) }
func (*BigQueryFieldOptions) ProtoMessage() {}
func (*BigQueryFieldOptions) Descriptor() ([]byte, []int) {
return fileDescriptor_ae058d98e8824d5b, []int{0}
}
func (m *BigQueryFieldOptions) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BigQueryFieldOptions.Unmarshal(m, b)
}
func (m *BigQueryFieldOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BigQueryFieldOptions.Marshal(b, m, deterministic)
}
func (m *BigQueryFieldOptions) XXX_Merge(src proto.Message) {
xxx_messageInfo_BigQueryFieldOptions.Merge(m, src)
}
func (m *BigQueryFieldOptions) XXX_Size() int {
return xxx_messageInfo_BigQueryFieldOptions.Size(m)
}
func (m *BigQueryFieldOptions) XXX_DiscardUnknown() {
xxx_messageInfo_BigQueryFieldOptions.DiscardUnknown(m)
}
var xxx_messageInfo_BigQueryFieldOptions proto.InternalMessageInfo
func (m *BigQueryFieldOptions) GetRequire() bool {
if m != nil {
return m.Require
}
return false
}
func (m *BigQueryFieldOptions) GetTypeOverride() string {
if m != nil {
return m.TypeOverride
}
return ""
}
func (m *BigQueryFieldOptions) GetIgnore() bool {
if m != nil {
return m.Ignore
}
return false
}
func (m *BigQueryFieldOptions) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *BigQueryFieldOptions) GetName() string {
if m != nil {
return m.Name
}
return ""
}
var E_Bigquery = &proto.ExtensionDesc{
ExtendedType: (*descriptor.FieldOptions)(nil),
ExtensionType: (*BigQueryFieldOptions)(nil),
Field: 1021,
Name: "gen_bq_schema.bigquery",
Tag: "bytes,1021,opt,name=bigquery",
Filename: "bq_field.proto",
}
func init() {
proto.RegisterType((*BigQueryFieldOptions)(nil), "gen_bq_schema.BigQueryFieldOptions")
proto.RegisterExtension(E_Bigquery)
}
func init() { proto.RegisterFile("bq_field.proto", fileDescriptor_ae058d98e8824d5b) }
var fileDescriptor_ae058d98e8824d5b = []byte{
// 246 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x50, 0xc1, 0x4a, 0xc3, 0x40,
0x14, 0x24, 0x5a, 0xdb, 0xb8, 0xb5, 0x1e, 0x16, 0x91, 0x45, 0x10, 0x16, 0x7b, 0xc9, 0x69, 0x0b,
0x7a, 0xf3, 0xd8, 0x83, 0xd7, 0x62, 0x8e, 0x5e, 0x96, 0x6e, 0xf3, 0xba, 0x3e, 0x68, 0xf7, 0x25,
0x2f, 0x89, 0xd0, 0xef, 0xf1, 0x3b, 0x05, 0xc9, 0xa6, 0x91, 0x0a, 0x3d, 0xed, 0xce, 0x0c, 0x33,
0xcc, 0x3c, 0x71, 0xeb, 0x2a, 0xbb, 0x45, 0xd8, 0x15, 0xa6, 0x64, 0x6a, 0x48, 0xce, 0x3c, 0x04,
0xeb, 0x2a, 0x5b, 0x6f, 0x3e, 0x61, 0xbf, 0x7e, 0xd0, 0x9e, 0xc8, 0xef, 0x60, 0x11, 0x45, 0xd7,
0x6e, 0x17, 0x05, 0xd4, 0x1b, 0xc6, 0xb2, 0x21, 0xee, 0x0d, 0x4f, 0xdf, 0x89, 0xb8, 0x5b, 0xa2,
0x7f, 0x6f, 0x81, 0x0f, 0x6f, 0x5d, 0xd0, 0xaa, 0x6c, 0x90, 0x42, 0x2d, 0x95, 0x98, 0x30, 0x54,
0x2d, 0x32, 0xa8, 0x44, 0x27, 0x59, 0x9a, 0x0f, 0x50, 0xce, 0xc5, 0xac, 0x39, 0x94, 0x60, 0xe9,
0x0b, 0x98, 0xb1, 0x00, 0x75, 0xa1, 0x93, 0xec, 0x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