go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/common/bq/pb/options.proto (about) 1 // Copyright 2021 The LUCI Authors. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Defining extensions is supported in proto2 syntax only. 16 syntax = "proto2"; 17 18 package bqschema; 19 20 import "google/protobuf/descriptor.proto"; 21 22 option go_package = "go.chromium.org/luci/common/bq/pb"; 23 24 message FieldOptions { 25 // BigQuery field type to use for this field instead of the "guessed" one. 26 optional string bq_type = 1; 27 } 28 29 // Definition of field-level options understood by bqschemaupdater. 30 // 31 // Usage: 32 // 33 // import "go.chromium.org/luci/common/bq/pb/options.proto"; 34 // 35 // message { 36 // int64 timestamp = 1 [(bqschema.options).bq_type = "TIMESTAMP"]; 37 // } 38 extend google.protobuf.FieldOptions { 39 optional FieldOptions options = 74700; 40 }