mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-17 01:12:51 +00:00
09f89d0246
Comment location and formatting matches previous generator. Change-Id: Id51489bb8ca6e6bbd2c7bc2129a7bc170e56ed44 Reviewed-on: https://go-review.googlesource.com/c/140617 Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
42 lines
795 B
Protocol Buffer
42 lines
795 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 = "github.com/golang/protobuf/v2/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 {
|
|
}
|
|
}
|