1// Protocol Buffers - Google's data interchange format 2// Copyright 2008 Google Inc. All rights reserved. 3// 4// Use of this source code is governed by a BSD-style 5// license that can be found in the LICENSE file or at 6// https://developers.google.com/open-source/licenses/bsd 7 8// LINT: LEGACY_NAMES 9syntax = "proto2"; 10 11package protobuf.kotlin.generator; 12 13option java_package = "in.com.google.protobuf.kotlin.generator"; 14option java_multiple_files = true; 15 16message EvilNamesProto2 { 17 optional bool initialized = 1; 18 optional bool has_foo = 2; 19 optional string Bar = 3; 20 optional bool is_initialized = 4; 21 22 oneof camelCase { 23 string fooBar = 5; 24 } 25 26 repeated string ALL_CAPS = 7; 27 map<int32, bool> ALL_CAPS_MAP = 8; 28 29 optional bool has_underbar_preceding_numeric_1foo = 9; 30 optional bool has_underbar_preceding_numeric_42bar = 13; 31 optional bool has_underbar_preceding_numeric_123foo42bar_baz = 14; 32 33 extensions 100 to max; 34 35 repeated string extension = 12; 36 repeated int32 class = 15; 37 optional double int = 16; 38 optional bool long = 17; 39 optional int64 boolean = 18; 40 optional string sealed = 19; 41 optional float interface = 20; 42 optional string object = 22; 43 optional string cached_size = 23; 44 optional bool serialized_size = 24; 45 optional string by = 25; 46 47 optional string DEPRECATED_foo = 26; 48 optional group DEPRECATED_NavigationImageRequested = 27 { 49 optional int32 DEPRECATED_FooBar = 28; 50 } 51 optional string __DEPRECATED_Bar = 29; 52 optional string ID = 30; 53 optional string a_b_notification = 31; 54 optional string not_DEPRECATED_foo = 32; 55} 56 57message List {} 58 59message HardKeywordsAllTypesProto2 { 60 message NestedMessage { 61 optional int32 while = 1; 62 } 63 64 enum NestedEnum { 65 FOO = 1; 66 BAR = 2; 67 } 68 69 optional int32 as = 1; 70 optional NestedEnum break = 3; 71 map<int32, int32> continue = 4; 72 optional NestedMessage do = 5; 73 74 repeated int32 else = 6; 75 repeated string for = 7; 76 repeated NestedEnum fun = 8; 77 repeated NestedMessage if = 9; 78} 79 80message Interface {} 81