mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-01 11:58:21 +00:00
daa4fad986
Enums, for historical reasons, are registered with the proto package under the name "<proto_package>.<go_type_name>". Don't include the dot if there is no package statement in the .proto source file. Change-Id: I6fb57d0803506668f60123a29fa06ae87fec523b Reviewed-on: https://go-review.googlesource.com/c/140657 Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
17 lines
341 B
Protocol Buffer
17 lines
341 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;
|
|
}
|