mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2024-12-28 18:25:46 +00:00
21f62f4d53
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>
17 lines
356 B
Protocol Buffer
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];
|
|
}
|