mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-30 03:32:49 +00:00
929c287d2b
Change-Id: Idb92e34af7c5342e4c4478707eb99fcb824d7606 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/220350 Reviewed-by: Joe Tsai <joetsai@google.com>
31 lines
659 B
Protocol Buffer
31 lines
659 B
Protocol Buffer
// Copyright 2019 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.
|
|
|
|
// Messages in this file are used to test wire encoding order.
|
|
|
|
syntax = "proto2";
|
|
|
|
package goproto.proto.order;
|
|
|
|
option go_package = "google.golang.org/protobuf/internal/testprotos/order";
|
|
|
|
message Message {
|
|
optional string field_2 = 2;
|
|
optional string field_1 = 1;
|
|
|
|
oneof oneof_1 {
|
|
string field_10 = 10;
|
|
}
|
|
|
|
extensions 30 to 40;
|
|
|
|
optional string field_20 = 20;
|
|
}
|
|
|
|
extend Message {
|
|
optional string field_30 = 30;
|
|
optional string field_31 = 31;
|
|
optional string field_32 = 32;
|
|
}
|