blob: c39a60c3d9632ced240705a29b74a0ef74c67258 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
syntax = "proto3";
package bigquery;
import "google/protobuf/duration.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/struct.proto";
import "google/protobuf/timestamp.proto";
message TestMessage {
string str = 1;
repeated string strs = 2;
int64 num = 3;
repeated int64 nums = 4;
E e = 5;
repeated E es = 6;
NestedMessage nested = 7;
repeated NestedMessage nesteds = 8;
google.protobuf.Empty empty = 9;
repeated google.protobuf.Empty empties = 10;
google.protobuf.Struct struct = 11;
repeated google.protobuf.Struct structs = 12;
google.protobuf.Timestamp timestamp = 13;
repeated google.protobuf.Timestamp timestamps = 14;
// This field is not included in BQ row if it does not have nums,
// i.e. we don't send empty arrays.
RepeatedContainer repeated_container = 15;
google.protobuf.Duration duration = 16;
map<string, E> enum_map = 17;
map<string, int32> scalar_map = 18;
map<string, NestedMessage> message_map = 19;
}
message NestedMessage {
int64 num = 1;
string str = 2;
}
message RepeatedContainer {
repeated int64 nums = 1;
}
enum E {
E0 = 0;
E1 = 1;
E2 = 2;
}
message EmptyContainer {
google.protobuf.Empty empty = 1;
}