mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-02-06 09:40:07 +00:00
e89e6244e0
Temporarily remove go.mod, since we can't generate an accurate one until the corresponding v1 change is submitted. Change-Id: I1e1ad97f2b455e33f61ffaeb8676289795e47e72 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/177000 Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
42 lines
792 B
Protocol Buffer
42 lines
792 B
Protocol Buffer
// Copyright 2018 The Go 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 = "proto2";
|
|
|
|
// COMMENT: package goproto.protoc.comments;
|
|
package goproto.protoc.comments;
|
|
|
|
option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/comments";
|
|
|
|
// COMMENT: Message1
|
|
message Message1 {
|
|
// COMMENT: Message1A
|
|
message Message1A {
|
|
}
|
|
|
|
// COMMENT: Message1B
|
|
message Message1B {
|
|
}
|
|
|
|
// COMMENT: Field1A
|
|
optional string Field1A = 1;
|
|
|
|
// COMMENT: Oneof1A
|
|
oneof Oneof1a {
|
|
// COMMENT: Oneof1AField1
|
|
string Oneof1AField1 = 2;
|
|
}
|
|
}
|
|
|
|
// COMMENT: Message2
|
|
message Message2 {
|
|
// COMMENT: Message2A
|
|
message Message2A {
|
|
}
|
|
|
|
// COMMENT: Message2B
|
|
message Message2B {
|
|
}
|
|
}
|