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 = "proto3"; 10 11package protobuf.kotlin.generator; 12 13option java_package = "com.google.protobuf.kotlin.generator.in"; 14 15message EvilNamesProto3 { 16 bool initialized = 1; 17 bool has_foo = 2; 18 string Bar = 3; 19 bool is_initialized = 4; 20 21 oneof camelCase { 22 string fooBar = 5; 23 } 24 25 repeated string ALL_CAPS = 7; 26 map<int32, bool> ALL_CAPS_MAP = 8; 27 28 bool has_underbar_preceding_numeric_1foo = 9; 29 bool has_underbar_preceding_numeric_42bar = 10; 30 bool has_underbar_preceding_numeric_123foo42bar_baz = 11; 31 32 repeated string extension = 12; 33 34 string class = 13; 35 double int = 14; 36 bool long = 15; 37 int64 boolean = 16; 38 string sealed = 17; 39 float interface = 18; 40 int32 in = 19; 41 string object = 20; 42 string cached_size = 21; 43 bool serialized_size = 22; 44 string value = 23; 45 int64 index = 24; 46 repeated string values = 25; 47 repeated string new_values = 26; 48 bool builder = 27; 49 map<int32, int32> k = 28; 50 map<string, string> v = 29; 51 map<string, int32> key = 30; 52 map<int32, string> map = 31; 53 map<string, int32> pairs = 32; 54 55 string _leading_underscore = 33; 56 oneof _leading_underscore_oneof { 57 int32 option = 34; 58 } 59 60 optional string DEPRECATED_foo = 35; 61 optional string ID = 36; 62 optional string a_b_notification = 37; 63 optional string __DEPRECATED_Bar = 38; 64 optional string not_DEPRECATED_foo = 39; 65} 66 67message HardKeywordsAllTypesProto3 { 68 message NestedMessage { 69 optional int32 while = 1; 70 } 71 72 enum NestedEnum { 73 ZERO = 0; 74 FOO = 1; 75 BAR = 2; 76 } 77 78 optional int32 as = 1; 79 optional string in = 2; 80 optional NestedEnum break = 3; 81 map<int32, int32> continue = 4; 82 optional NestedMessage do = 5; 83 84 repeated int32 else = 6; 85 repeated string for = 7; 86 repeated NestedEnum fun = 8; 87 repeated NestedMessage if = 9; 88} 89 90message Class {} 91