protobuf-go/cmd/protoc-gen-go/testdata/nopackage/nopackage.proto
Damien Neil 21f62f4d53 reflect/prototype: fix name resolution when file has no package name
A .proto source file with no 'package' statement may still contain
references to descriptors within the file.

Change-Id: I86e942c9c06e5a2915e9722162e0455ffa9ba2ab
Reviewed-on: https://go-review.googlesource.com/c/140899
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2018-10-16 16:16:46 +00:00

17 lines
356 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";
// File contains no 'package' statement.
enum Enum {
ZERO = 0;
}
message Message {
optional string string_field = 1;
optional Enum enum_field = 2 [default=ZERO];
}