mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-02-04 12:39:49 +00:00
302cb325fb
MessageSets are a deprecated proto1 feature, long since superseded by extensions. Add disabled-by-default support behind flags.Proto1Legacy. Change-Id: I7d3ace07f3b0efd59673034f3dc633b908345a88 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/185538 Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
27 lines
645 B
Protocol Buffer
27 lines
645 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.
|
|
|
|
syntax = "proto2";
|
|
|
|
package goproto.proto.messageset;
|
|
|
|
option go_package = "google.golang.org/protobuf/internal/testprotos/messageset/msetextpb";
|
|
|
|
import "messageset/messagesetpb/message_set.proto";
|
|
|
|
message Ext1 {
|
|
extend MessageSet {
|
|
optional Ext1 message_set_extension = 1000;
|
|
}
|
|
optional int32 ext1_field1 = 1;
|
|
optional int32 ext1_field2 = 2;
|
|
}
|
|
|
|
message Ext2 {
|
|
extend MessageSet {
|
|
optional Ext2 message_set_extension = 1001;
|
|
}
|
|
optional int32 ext2_field1 = 1;
|
|
}
|