...
1// Copyright 2021 Google LLC
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// https://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
15syntax = "proto3";
16package testdata;
17option go_package = "cloud.google.com/go/bigquery/storage/managedwriter/testdata";
18
19import "google/protobuf/wrappers.proto";
20
21// SimpleMessageProto3 represents a simple message that transmits a string and int64 value.
22message SimpleMessageProto3 {
23 // name is a simple scalar string.
24 string name = 1;
25 // value is a simple int64 value.
26 google.protobuf.Int64Value value = 2;
27}
28
29
30message GithubArchiveEntityProto3 {
31 google.protobuf.Int64Value id = 1;
32 google.protobuf.StringValue login = 2;
33 google.protobuf.StringValue gravatar_id = 3;
34 google.protobuf.StringValue avatar_url = 4;
35 google.protobuf.StringValue url = 5;
36}
37
38message GithubArchiveRepoProto3 {
39 google.protobuf.Int64Value id = 1;
40 google.protobuf.StringValue name = 2;
41 google.protobuf.StringValue url = 3;
42}
43
44// GithubArchiveMessageProto3 is the proto3 version of github archive row.
45message GithubArchiveMessageProto3 {
46 google.protobuf.StringValue type = 1;
47 google.protobuf.BoolValue public = 2;
48 google.protobuf.StringValue payload = 3;
49 GithubArchiveRepoProto3 repo = 4;
50 GithubArchiveEntityProto3 actor = 5;
51 GithubArchiveEntityProto3 org = 6;
52 google.protobuf.Int64Value created_at = 7;
53 google.protobuf.StringValue id = 8;
54 google.protobuf.StringValue other = 9;
55}
56
57message SimpleMessageProto3WithOptional {
58 // name is a simple scalar string.
59 string name = 1;
60 // value is an int64 value with optional presence.
61 optional int64 value = 2;
62}
View as plain text