blob: 3f2eee4474b89e7bd66562bf96e80b3f3b86ddc1 [file] [log] [blame]
// Copyright 2017 The Fuchsia Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// This file is used to test the yamlpb package.
syntax = "proto3";
package yamlpb;
option go_package = "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;
}
}