cmd/protoc-gen-go/testdata/nopackage/nopackage.proto
raw| 1 | // Copyright 2018 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | syntax = "proto2"; |
| 6 | |
| 7 | // File contains no 'package' statement. |
| 8 | |
| 9 | enum Enum { |
| 10 | ZERO = 0; |
| 11 | } |
| 12 | |
| 13 | message Message { |
| 14 | optional string string_field = 1; |
| 15 | optional Enum enum_field = 2 [default = ZERO]; |
| 16 | } |