| Index: third_party/protobuf/src/google/protobuf/util/internal/testdata/oneofs.proto
|
| diff --git a/third_party/protobuf/src/google/protobuf/util/internal/testdata/oneofs.proto b/third_party/protobuf/src/google/protobuf/util/internal/testdata/oneofs.proto
|
| index c37da08316650cc1e27cec2c5f1446b2ff111f33..5bc9fa084d1d1f6ff694edf60d6ed0682f085ee8 100644
|
| --- a/third_party/protobuf/src/google/protobuf/util/internal/testdata/oneofs.proto
|
| +++ b/third_party/protobuf/src/google/protobuf/util/internal/testdata/oneofs.proto
|
| @@ -28,7 +28,7 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -// Proto to test proto3 oneofs.
|
| +// Proto to test oneofs.
|
| syntax = "proto3";
|
|
|
| import "google/protobuf/any.proto";
|
| @@ -36,6 +36,7 @@ import "google/protobuf/struct.proto";
|
| import "google/protobuf/timestamp.proto";
|
|
|
| package google.protobuf.testing.oneofs;
|
| +option java_package = "com.google.protobuf.testing.oneofs";
|
|
|
| message OneOfsRequest {
|
| string value = 1;
|
| @@ -44,34 +45,24 @@ message OneOfsRequest {
|
| int32 int_data = 3;
|
| // Simple message
|
| Data message_data = 4;
|
| - MoreData more_data = 5;
|
| // Well known types
|
| - google.protobuf.Struct struct_data = 6;
|
| - google.protobuf.Value value_data = 7;
|
| - google.protobuf.ListValue list_value_data = 8;
|
| - google.protobuf.Timestamp ts_data = 9;
|
| + google.protobuf.Struct struct_data = 5;
|
| + google.protobuf.Value value_data = 6;
|
| + google.protobuf.ListValue list_value_data = 7;
|
| + google.protobuf.Timestamp ts_data = 8;
|
| }
|
| google.protobuf.Any any_data = 19;
|
| }
|
|
|
| -message RequestWithSimpleOneof {
|
| - string value = 1;
|
| - oneof data {
|
| - string str_data = 2;
|
| - int32 int_data = 3;
|
| - Data message_data = 4;
|
| - MoreData more_data = 5;
|
| - }
|
| -}
|
| -
|
| message Data {
|
| int32 data_value = 1;
|
| }
|
|
|
| -message MoreData {
|
| - string str_value = 1;
|
| -}
|
| -
|
| message Response {
|
| string value = 1;
|
| }
|
| +
|
| +service TestService {
|
| + // Test call.
|
| + rpc Call(OneOfsRequest) returns (Response);
|
| +}
|
|
|