Updated
This commit is contained in:
Родитель
f76747f796
Коммит
9d309a1b66
|
@ -15,7 +15,7 @@
|
|||
syntax = "proto3";
|
||||
package gen_bq_schema;
|
||||
|
||||
option go_package = "protos";
|
||||
option go_package = "github.com/GoogleCloudPlatform/protoc-gen-bq-schema/protos";
|
||||
|
||||
import "google/protobuf/descriptor.proto";
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
syntax = "proto3";
|
||||
package gen_bq_schema;
|
||||
|
||||
option go_package = "protos";
|
||||
option go_package = "github.com/GoogleCloudPlatform/protoc-gen-bq-schema/protos";
|
||||
//option go_package = "protoc-gen-bq-schema/protos";
|
||||
|
||||
import "google/protobuf/descriptor.proto";
|
||||
|
||||
|
|
2
go.mod
2
go.mod
|
@ -5,5 +5,5 @@ go 1.15
|
|||
require (
|
||||
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
|
||||
github.com/golang/protobuf v1.4.2
|
||||
google.golang.org/protobuf v1.23.0
|
||||
google.golang.org/protobuf v1.25.0
|
||||
)
|
||||
|
|
50
go.sum
50
go.sum
|
@ -1,20 +1,68 @@
|
|||
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
|
||||
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
|
||||
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
|
||||
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
|
||||
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=
|
||||
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
|
||||
github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
|
||||
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
|
||||
github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
|
||||
github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
|
||||
github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
|
||||
github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
|
||||
github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
|
||||
github.com/golang/protobuf v1.4.2 h1:+Z5KGCizgyZCbGh1KZqA0fcLLkwbsjIzS4aV2v7wJX0=
|
||||
github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
|
||||
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
|
||||
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.0 h1:/QaMHBdZ26BB3SSst0Iwl10Epc+xhTquomWX0oZEB6w=
|
||||
github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
|
||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
|
||||
golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
|
||||
golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
||||
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
||||
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
|
||||
golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
||||
golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
|
||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
|
||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
|
||||
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
||||
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
|
||||
google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
|
||||
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
|
||||
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
|
||||
google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
|
||||
google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
|
||||
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
|
||||
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
|
||||
google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
|
||||
google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
|
||||
google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
|
||||
google.golang.org/protobuf v1.23.0 h1:4MY060fB1DLGMB/7MBTLnwQUY6+F09GEiz6SsrNqyzM=
|
||||
google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||
google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||
google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||
google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c=
|
||||
google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
|
||||
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
|
|
3
main.go
3
main.go
|
@ -20,7 +20,8 @@
|
|||
//
|
||||
|
||||
// Protobuf code for extensions are generated --
|
||||
//go:generate protoc --go_out=protos bq_table.proto bq_field.proto
|
||||
//go:generate protoc --go_out=. --go_opt=module=github.com/GoogleCloudPlatform/protoc-gen-bq-schema bq_table.proto bq_field.proto
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,29 +1,52 @@
|
|||
// Copyright 2014 Google Inc. All rights reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc v3.13.0
|
||||
// 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"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
// 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
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
// Message containing options related to BigQuery schema generation
|
||||
// and management via Protobuf.
|
||||
type BigQueryFieldOptions struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// 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"`
|
||||
|
@ -37,104 +60,188 @@ type BigQueryFieldOptions struct {
|
|||
// 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:"-"`
|
||||
Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
|
||||
}
|
||||
|
||||
func (m *BigQueryFieldOptions) Reset() { *m = BigQueryFieldOptions{} }
|
||||
func (m *BigQueryFieldOptions) String() string { return proto.CompactTextString(m) }
|
||||
func (*BigQueryFieldOptions) ProtoMessage() {}
|
||||
func (x *BigQueryFieldOptions) Reset() {
|
||||
*x = BigQueryFieldOptions{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_bq_field_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *BigQueryFieldOptions) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*BigQueryFieldOptions) ProtoMessage() {}
|
||||
|
||||
func (x *BigQueryFieldOptions) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_bq_field_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use BigQueryFieldOptions.ProtoReflect.Descriptor instead.
|
||||
func (*BigQueryFieldOptions) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ae058d98e8824d5b, []int{0}
|
||||
return file_bq_field_proto_rawDescGZIP(), []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
|
||||
func (x *BigQueryFieldOptions) GetRequire() bool {
|
||||
if x != nil {
|
||||
return x.Require
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *BigQueryFieldOptions) GetTypeOverride() string {
|
||||
if m != nil {
|
||||
return m.TypeOverride
|
||||
func (x *BigQueryFieldOptions) GetTypeOverride() string {
|
||||
if x != nil {
|
||||
return x.TypeOverride
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *BigQueryFieldOptions) GetIgnore() bool {
|
||||
if m != nil {
|
||||
return m.Ignore
|
||||
func (x *BigQueryFieldOptions) GetIgnore() bool {
|
||||
if x != nil {
|
||||
return x.Ignore
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *BigQueryFieldOptions) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
func (x *BigQueryFieldOptions) GetDescription() string {
|
||||
if x != nil {
|
||||
return x.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *BigQueryFieldOptions) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
func (x *BigQueryFieldOptions) GetName() string {
|
||||
if x != nil {
|
||||
return x.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",
|
||||
var file_bq_field_proto_extTypes = []protoimpl.ExtensionInfo{
|
||||
{
|
||||
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)
|
||||
// Extension fields to descriptor.FieldOptions.
|
||||
var (
|
||||
// BigQuery field schema generation options.
|
||||
//
|
||||
// optional gen_bq_schema.BigQueryFieldOptions bigquery = 1021;
|
||||
E_Bigquery = &file_bq_field_proto_extTypes[0]
|
||||
)
|
||||
|
||||
var File_bq_field_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_bq_field_proto_rawDesc = []byte{
|
||||
0x0a, 0x0e, 0x62, 0x71, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x12, 0x0d, 0x67, 0x65, 0x6e, 0x5f, 0x62, 0x71, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x1a,
|
||||
0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
|
||||
0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x22, 0xa3, 0x01, 0x0a, 0x14, 0x42, 0x69, 0x67, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x69,
|
||||
0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65,
|
||||
0x71, 0x75, 0x69, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, 0x71,
|
||||
0x75, 0x69, 0x72, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6f, 0x76, 0x65,
|
||||
0x72, 0x72, 0x69, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x74, 0x79, 0x70,
|
||||
0x65, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x67, 0x6e,
|
||||
0x6f, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x67, 0x6e, 0x6f, 0x72,
|
||||
0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,
|
||||
0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
|
||||
0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x3a, 0x5f, 0x0a, 0x08, 0x62, 0x69, 0x67, 0x71, 0x75,
|
||||
0x65, 0x72, 0x79, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f,
|
||||
0x6e, 0x73, 0x18, 0xfd, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x65, 0x6e, 0x5f,
|
||||
0x62, 0x71, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x42, 0x69, 0x67, 0x51, 0x75, 0x65,
|
||||
0x72, 0x79, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x08,
|
||||
0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68,
|
||||
0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x43, 0x6c, 0x6f,
|
||||
0x75, 0x64, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x62, 0x71, 0x2d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2f,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("bq_field.proto", fileDescriptor_ae058d98e8824d5b) }
|
||||
var (
|
||||
file_bq_field_proto_rawDescOnce sync.Once
|
||||
file_bq_field_proto_rawDescData = file_bq_field_proto_rawDesc
|
||||
)
|
||||
|
||||
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, 0x3a, 0xbf, 0xe9, 0xc8, 0xd5, 0x91, 0x93, 0xf7,
|
||||
0x62, 0x8c, 0x3e, 0x10, 0x83, 0xba, 0x8c, 0xee, 0x23, 0x92, 0x5a, 0x4c, 0x87, 0x0e, 0x48, 0x41,
|
||||
0x8d, 0xa2, 0xf5, 0x94, 0x92, 0x52, 0x8c, 0xc2, 0x7a, 0x0f, 0xea, 0x2a, 0x4a, 0xf1, 0xff, 0x6a,
|
||||
0x45, 0xea, 0xd0, 0x57, 0x5d, 0x49, 0xf9, 0x68, 0xfa, 0x51, 0x66, 0x18, 0x65, 0x4e, 0x7b, 0xab,
|
||||
0x9f, 0x89, 0x4e, 0xb2, 0xe9, 0xf3, 0xdc, 0xfc, 0xbb, 0x84, 0x39, 0xb7, 0x31, 0xff, 0x0b, 0x5d,
|
||||
0xa6, 0x1f, 0xe3, 0x18, 0x57, 0xbb, 0xfe, 0x7d, 0xf9, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x61, 0x63,
|
||||
0x93, 0x6b, 0x5a, 0x01, 0x00, 0x00,
|
||||
func file_bq_field_proto_rawDescGZIP() []byte {
|
||||
file_bq_field_proto_rawDescOnce.Do(func() {
|
||||
file_bq_field_proto_rawDescData = protoimpl.X.CompressGZIP(file_bq_field_proto_rawDescData)
|
||||
})
|
||||
return file_bq_field_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_bq_field_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_bq_field_proto_goTypes = []interface{}{
|
||||
(*BigQueryFieldOptions)(nil), // 0: gen_bq_schema.BigQueryFieldOptions
|
||||
(*descriptor.FieldOptions)(nil), // 1: google.protobuf.FieldOptions
|
||||
}
|
||||
var file_bq_field_proto_depIdxs = []int32{
|
||||
1, // 0: gen_bq_schema.bigquery:extendee -> google.protobuf.FieldOptions
|
||||
0, // 1: gen_bq_schema.bigquery:type_name -> gen_bq_schema.BigQueryFieldOptions
|
||||
2, // [2:2] is the sub-list for method output_type
|
||||
2, // [2:2] is the sub-list for method input_type
|
||||
1, // [1:2] is the sub-list for extension type_name
|
||||
0, // [0:1] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_bq_field_proto_init() }
|
||||
func file_bq_field_proto_init() {
|
||||
if File_bq_field_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_bq_field_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*BigQueryFieldOptions); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_bq_field_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 1,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_bq_field_proto_goTypes,
|
||||
DependencyIndexes: file_bq_field_proto_depIdxs,
|
||||
MessageInfos: file_bq_field_proto_msgTypes,
|
||||
ExtensionInfos: file_bq_field_proto_extTypes,
|
||||
}.Build()
|
||||
File_bq_field_proto = out.File
|
||||
file_bq_field_proto_rawDesc = nil
|
||||
file_bq_field_proto_goTypes = nil
|
||||
file_bq_field_proto_depIdxs = nil
|
||||
}
|
||||
|
|
|
@ -1,108 +1,217 @@
|
|||
// Copyright 2014 Google Inc. All rights reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc v3.13.0
|
||||
// source: bq_table.proto
|
||||
|
||||
package protos
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor"
|
||||
math "math"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
// 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
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
type BigQueryMessageOptions struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// Specifies a name of table in BigQuery for the message.
|
||||
//
|
||||
// If not blank, indicates the message is a type of record to be stored into BigQuery.
|
||||
TableName string `protobuf:"bytes,1,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
|
||||
// If true, BigQuery field names will default to a field's JSON name,
|
||||
// not its original/proto field name.
|
||||
UseJsonNames bool `protobuf:"varint,2,opt,name=use_json_names,json=useJsonNames,proto3" json:"use_json_names,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
UseJsonNames bool `protobuf:"varint,2,opt,name=use_json_names,json=useJsonNames,proto3" json:"use_json_names,omitempty"`
|
||||
}
|
||||
|
||||
func (m *BigQueryMessageOptions) Reset() { *m = BigQueryMessageOptions{} }
|
||||
func (m *BigQueryMessageOptions) String() string { return proto.CompactTextString(m) }
|
||||
func (*BigQueryMessageOptions) ProtoMessage() {}
|
||||
func (x *BigQueryMessageOptions) Reset() {
|
||||
*x = BigQueryMessageOptions{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_bq_table_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *BigQueryMessageOptions) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*BigQueryMessageOptions) ProtoMessage() {}
|
||||
|
||||
func (x *BigQueryMessageOptions) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_bq_table_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use BigQueryMessageOptions.ProtoReflect.Descriptor instead.
|
||||
func (*BigQueryMessageOptions) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_54f9c1df63ca9ac7, []int{0}
|
||||
return file_bq_table_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (m *BigQueryMessageOptions) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_BigQueryMessageOptions.Unmarshal(m, b)
|
||||
}
|
||||
func (m *BigQueryMessageOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_BigQueryMessageOptions.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *BigQueryMessageOptions) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_BigQueryMessageOptions.Merge(m, src)
|
||||
}
|
||||
func (m *BigQueryMessageOptions) XXX_Size() int {
|
||||
return xxx_messageInfo_BigQueryMessageOptions.Size(m)
|
||||
}
|
||||
func (m *BigQueryMessageOptions) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_BigQueryMessageOptions.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_BigQueryMessageOptions proto.InternalMessageInfo
|
||||
|
||||
func (m *BigQueryMessageOptions) GetTableName() string {
|
||||
if m != nil {
|
||||
return m.TableName
|
||||
func (x *BigQueryMessageOptions) GetTableName() string {
|
||||
if x != nil {
|
||||
return x.TableName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *BigQueryMessageOptions) GetUseJsonNames() bool {
|
||||
if m != nil {
|
||||
return m.UseJsonNames
|
||||
func (x *BigQueryMessageOptions) GetUseJsonNames() bool {
|
||||
if x != nil {
|
||||
return x.UseJsonNames
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
var E_BigqueryOpts = &proto.ExtensionDesc{
|
||||
ExtendedType: (*descriptor.MessageOptions)(nil),
|
||||
ExtensionType: (*BigQueryMessageOptions)(nil),
|
||||
Field: 1021,
|
||||
Name: "gen_bq_schema.bigquery_opts",
|
||||
Tag: "bytes,1021,opt,name=bigquery_opts",
|
||||
Filename: "bq_table.proto",
|
||||
var file_bq_table_proto_extTypes = []protoimpl.ExtensionInfo{
|
||||
{
|
||||
ExtendedType: (*descriptor.MessageOptions)(nil),
|
||||
ExtensionType: (*BigQueryMessageOptions)(nil),
|
||||
Field: 1021,
|
||||
Name: "gen_bq_schema.bigquery_opts",
|
||||
Tag: "bytes,1021,opt,name=bigquery_opts",
|
||||
Filename: "bq_table.proto",
|
||||
},
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*BigQueryMessageOptions)(nil), "gen_bq_schema.BigQueryMessageOptions")
|
||||
proto.RegisterExtension(E_BigqueryOpts)
|
||||
// Extension fields to descriptor.MessageOptions.
|
||||
var (
|
||||
// BigQuery message schema generation options.
|
||||
//
|
||||
// The field number is a globally unique id for this option, assigned by
|
||||
// protobuf-global-extension-registry@google.com
|
||||
//
|
||||
// optional gen_bq_schema.BigQueryMessageOptions bigquery_opts = 1021;
|
||||
E_BigqueryOpts = &file_bq_table_proto_extTypes[0]
|
||||
)
|
||||
|
||||
var File_bq_table_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_bq_table_proto_rawDesc = []byte{
|
||||
0x0a, 0x0e, 0x62, 0x71, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x12, 0x0d, 0x67, 0x65, 0x6e, 0x5f, 0x62, 0x71, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x1a,
|
||||
0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
|
||||
0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x22, 0x5d, 0x0a, 0x16, 0x42, 0x69, 0x67, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x65, 0x73,
|
||||
0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x74,
|
||||
0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x75, 0x73,
|
||||
0x65, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x08, 0x52, 0x0c, 0x75, 0x73, 0x65, 0x4a, 0x73, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73,
|
||||
0x3a, 0x6c, 0x0a, 0x0d, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x6f, 0x70, 0x74,
|
||||
0x73, 0x12, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f,
|
||||
0x6e, 0x73, 0x18, 0xfd, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x65, 0x6e, 0x5f,
|
||||
0x62, 0x71, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x42, 0x69, 0x67, 0x51, 0x75, 0x65,
|
||||
0x72, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
|
||||
0x52, 0x0c, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x70, 0x74, 0x73, 0x42, 0x3c,
|
||||
0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x6f, 0x6f,
|
||||
0x67, 0x6c, 0x65, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
|
||||
0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x62, 0x71, 0x2d, 0x73,
|
||||
0x63, 0x68, 0x65, 0x6d, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x62, 0x06, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("bq_table.proto", fileDescriptor_54f9c1df63ca9ac7) }
|
||||
var (
|
||||
file_bq_table_proto_rawDescOnce sync.Once
|
||||
file_bq_table_proto_rawDescData = file_bq_table_proto_rawDesc
|
||||
)
|
||||
|
||||
var fileDescriptor_54f9c1df63ca9ac7 = []byte{
|
||||
// 223 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x8f, 0xb1, 0x4b, 0x43, 0x31,
|
||||
0x10, 0x87, 0x89, 0x83, 0xb6, 0xb1, 0xed, 0x90, 0x41, 0x1e, 0x82, 0x18, 0x44, 0xe1, 0x4d, 0x29,
|
||||
0xe8, 0xe6, 0xd8, 0x51, 0xd0, 0xe2, 0x1b, 0x05, 0x09, 0x49, 0x3d, 0x63, 0xe4, 0xbd, 0x5c, 0x5e,
|
||||
0x2e, 0x19, 0xfc, 0xe3, 0x05, 0x69, 0x1e, 0x1d, 0x0a, 0x4e, 0x07, 0x77, 0xbf, 0xfb, 0xee, 0x3b,
|
||||
0xbe, 0xb2, 0xa3, 0xce, 0xc6, 0xf6, 0xa0, 0x62, 0xc2, 0x8c, 0x62, 0xe9, 0x20, 0x68, 0x3b, 0x6a,
|
||||
0xda, 0x7d, 0xc1, 0x60, 0x2e, 0xa5, 0x43, 0x74, 0x3d, 0xac, 0xeb, 0xd0, 0x96, 0xcf, 0xf5, 0x07,
|
||||
0xd0, 0x2e, 0xf9, 0x98, 0x31, 0x4d, 0x0b, 0x37, 0xef, 0xfc, 0x62, 0xe3, 0xdd, 0x6b, 0x81, 0xf4,
|
||||
0xf3, 0x0c, 0x44, 0xc6, 0xc1, 0x36, 0x66, 0x8f, 0x81, 0xc4, 0x15, 0xe7, 0x95, 0xac, 0x83, 0x19,
|
||||
0xa0, 0x61, 0x92, 0xb5, 0xf3, 0x6e, 0x5e, 0x3b, 0x2f, 0x66, 0x00, 0x71, 0xcb, 0x57, 0x85, 0x40,
|
||||
0x7f, 0x13, 0x86, 0x9a, 0xa0, 0xe6, 0x44, 0xb2, 0x76, 0xd6, 0x2d, 0x0a, 0xc1, 0x13, 0x61, 0xd8,
|
||||
0x87, 0xe8, 0xb1, 0xe7, 0x4b, 0xeb, 0xdd, 0xb8, 0xc7, 0x6b, 0x8c, 0x99, 0xc4, 0xb5, 0x9a, 0x94,
|
||||
0xd4, 0x41, 0x49, 0x1d, 0x9f, 0x6d, 0x7e, 0xcf, 0x24, 0x6b, 0xcf, 0xef, 0xef, 0xd4, 0xd1, 0x27,
|
||||
0xea, 0x7f, 0xc9, 0x6e, 0x71, 0xa0, 0x6f, 0x63, 0xa6, 0xcd, 0xec, 0xed, 0xb4, 0x62, 0xc9, 0x4e,
|
||||
0xf5, 0xe1, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x91, 0xcc, 0xd5, 0xaf, 0x20, 0x01, 0x00, 0x00,
|
||||
func file_bq_table_proto_rawDescGZIP() []byte {
|
||||
file_bq_table_proto_rawDescOnce.Do(func() {
|
||||
file_bq_table_proto_rawDescData = protoimpl.X.CompressGZIP(file_bq_table_proto_rawDescData)
|
||||
})
|
||||
return file_bq_table_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_bq_table_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_bq_table_proto_goTypes = []interface{}{
|
||||
(*BigQueryMessageOptions)(nil), // 0: gen_bq_schema.BigQueryMessageOptions
|
||||
(*descriptor.MessageOptions)(nil), // 1: google.protobuf.MessageOptions
|
||||
}
|
||||
var file_bq_table_proto_depIdxs = []int32{
|
||||
1, // 0: gen_bq_schema.bigquery_opts:extendee -> google.protobuf.MessageOptions
|
||||
0, // 1: gen_bq_schema.bigquery_opts:type_name -> gen_bq_schema.BigQueryMessageOptions
|
||||
2, // [2:2] is the sub-list for method output_type
|
||||
2, // [2:2] is the sub-list for method input_type
|
||||
1, // [1:2] is the sub-list for extension type_name
|
||||
0, // [0:1] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_bq_table_proto_init() }
|
||||
func file_bq_table_proto_init() {
|
||||
if File_bq_table_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_bq_table_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*BigQueryMessageOptions); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_bq_table_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 1,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_bq_table_proto_goTypes,
|
||||
DependencyIndexes: file_bq_table_proto_depIdxs,
|
||||
MessageInfos: file_bq_table_proto_msgTypes,
|
||||
ExtensionInfos: file_bq_table_proto_extTypes,
|
||||
}.Build()
|
||||
File_bq_table_proto = out.File
|
||||
file_bq_table_proto_rawDesc = nil
|
||||
file_bq_table_proto_goTypes = nil
|
||||
file_bq_table_proto_depIdxs = nil
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче