1// Copyright 2019 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// Messages in this file are used to test wire encoding order. 6 7syntax = "proto2"; 8 9package goproto.proto.order; 10 11option go_package = "google.golang.org/protobuf/internal/testprotos/order"; 12 13message Message { 14 optional string field_2 = 2; 15 optional string field_1 = 1; 16 17 oneof oneof_1 { 18 string field_10 = 10; 19 } 20 21 extensions 30 to 40; 22 23 optional string field_20 = 20; 24} 25 26extend Message { 27 optional string field_30 = 30; 28 optional string field_31 = 31; 29 optional string field_32 = 32; 30} 31