blob: ac00d8adba2c888575dbd21958023861794d72f9 [file] [log] [blame]
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file is used to test the yamlpb package.
syntax = "proto3";
package yamlpb;
option go_package = "src/yamlpb";
enum TestEnum {
VAL0 = 0;
VAL1 = 1;
}
message NestedTestMessage {
uint32 uint32_v = 1;
}
message OtherNestedTestMessage {
string string_v = 1;
}
message TestMessage {
uint32 uint32_v = 1;
float float_v = 2;
string string_v = 3;
bool bool_v = 4;
TestEnum enum_v = 5;
NestedTestMessage nested_v = 6;
repeated uint32 uint32_r = 7;
repeated NestedTestMessage nested_r = 8;
oneof nested_oneof {
NestedTestMessage first_oneof = 9;
OtherNestedTestMessage second_oneof = 10;
}
}