mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-26 09:35:33 +00:00
f68f17085a
Add a missing syntax and package statement. Change-Id: I3c95aa055ad84fa0bbb2bbdd341b51df9359f499 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/217759 Reviewed-by: Joe Tsai <joetsai@google.com>
71 lines
939 B
Protocol Buffer
71 lines
939 B
Protocol Buffer
// Copyright 2020 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";
|
|
|
|
package goproto.proto.testrequired;
|
|
|
|
message Int32 {
|
|
required int32 v = 1;
|
|
}
|
|
|
|
message Int64 {
|
|
required int64 v = 1;
|
|
}
|
|
|
|
message Uint32 {
|
|
required uint32 v = 1;
|
|
}
|
|
|
|
message Uint64 {
|
|
required uint64 v = 1;
|
|
}
|
|
|
|
message Sint32 {
|
|
required sint32 v = 1;
|
|
}
|
|
|
|
message Sint64 {
|
|
required sint64 v = 1;
|
|
}
|
|
|
|
message Fixed32 {
|
|
required fixed32 v = 1;
|
|
}
|
|
|
|
message Fixed64 {
|
|
required fixed64 v = 1;
|
|
}
|
|
|
|
message Float {
|
|
required float v = 1;
|
|
}
|
|
|
|
message Double {
|
|
required double v = 1;
|
|
}
|
|
|
|
message Bool {
|
|
required bool v = 1;
|
|
}
|
|
|
|
message String {
|
|
required string v = 1;
|
|
}
|
|
|
|
message Bytes {
|
|
required bytes v = 1;
|
|
}
|
|
|
|
message Message {
|
|
message M {}
|
|
required M v = 1;
|
|
}
|
|
|
|
message Group {
|
|
required group Group = 1 {
|
|
optional int32 v = 1;
|
|
}
|
|
}
|