* Copyright (c) Huawei Technologies Co., Ltd. 2023. All rights reserved.
* 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.
*/
syntax = "proto3";
option optimize_for = LITE_RUNTIME;
enum NUM {
ZERO = 0;
ONE = 1;
TWO = 2;
THREE = 3;
FOUR = 4;
}
message SubMessage {
int32 vint_int32 = 1;
int64 vint_int64 = 2;
uint32 vint_uint32 = 3;
uint64 vint_uint64 = 4;
}
message ExampleMessage {
int32 vint_int32 = 1;
int64 vint_int64 = 2;
uint32 vint_uint32 = 3;
uint64 vint_uint64 = 4;
sint32 vint_sint32 = 5;
sint64 vint_sint64 = 6;
bool vint_bool = 7;
NUM vint_enum = 8;
fixed64 I64_fixed64 = 11;
sfixed64 I64_sfixed64 = 12;
double I64_double = 13;
string LEN_string = 21;
bytes LEN_bytes = 22;
SubMessage LEN_sub = 23;
repeated int32 LEN_repeated_packed_signed_vint = 25;
repeated uint32 LEN_repeated_packed_unsigned_vint = 26;
repeated fixed64 LEN_repeated_packed_fixed = 27;
repeated SubMessage repeated_LEN_sub = 28;
fixed32 I32_fixed32 = 51;
sfixed32 I32_sfixed32 = 52;
float I32_float = 53;
oneof oneoffield {
fixed64 oneof_fixed64 = 61;
string oneof_string = 62;
SubMessage oneof_sub = 63;
}
repeated ExampleMessage repeated_Example = 100;
}