1// Protocol Buffers - Google's data interchange format 2// Copyright 2008 Google Inc. All rights reserved. 3// https://developers.google.com/protocol-buffers/ 4// 5// Redistribution and use in source and binary forms, with or without 6// modification, are permitted provided that the following conditions are 7// met: 8// 9// * Redistributions of source code must retain the above copyright 10// notice, this list of conditions and the following disclaimer. 11// * Redistributions in binary form must reproduce the above 12// copyright notice, this list of conditions and the following disclaimer 13// in the documentation and/or other materials provided with the 14// distribution. 15// * Neither the name of Google Inc. nor the names of its 16// contributors may be used to endorse or promote products derived from 17// this software without specific prior written permission. 18// 19// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 31// Benchmark messages for proto3. 32 33syntax = "proto3"; 34 35package benchmarks.proto3; 36option java_package = "com.google.protobuf.benchmarks"; 37 38// This is the default, but we specify it here explicitly. 39option optimize_for = SPEED; 40 41option cc_enable_arenas = true; 42 43message GoogleMessage1 { 44 string field1 = 1; 45 string field9 = 9; 46 string field18 = 18; 47 bool field80 = 80; 48 bool field81 = 81; 49 int32 field2 = 2; 50 int32 field3 = 3; 51 int32 field280 = 280; 52 int32 field6 = 6; 53 int64 field22 = 22; 54 string field4 = 4; 55 repeated fixed64 field5 = 5; 56 bool field59 = 59; 57 string field7 = 7; 58 int32 field16 = 16; 59 int32 field130 = 130; 60 bool field12 = 12; 61 bool field17 = 17; 62 bool field13 = 13; 63 bool field14 = 14; 64 int32 field104 = 104; 65 int32 field100 = 100; 66 int32 field101 = 101; 67 string field102 = 102; 68 string field103 = 103; 69 int32 field29 = 29; 70 bool field30 = 30; 71 int32 field60 = 60; 72 int32 field271 = 271; 73 int32 field272 = 272; 74 int32 field150 = 150; 75 int32 field23 = 23; 76 bool field24 = 24; 77 int32 field25 = 25; 78 GoogleMessage1SubMessage field15 = 15; 79 bool field78 = 78; 80 int32 field67 = 67; 81 int32 field68 = 68; 82 int32 field128 = 128; 83 string field129 = 129; 84 int32 field131 = 131; 85} 86 87message GoogleMessage1SubMessage { 88 int32 field1 = 1; 89 int32 field2 = 2; 90 int32 field3 = 3; 91 string field15 = 15; 92 bool field12 = 12; 93 int64 field13 = 13; 94 int64 field14 = 14; 95 int32 field16 = 16; 96 int32 field19 = 19; 97 bool field20 = 20; 98 bool field28 = 28; 99 fixed64 field21 = 21; 100 int32 field22 = 22; 101 bool field23 = 23; 102 bool field206 = 206; 103 fixed32 field203 = 203; 104 int32 field204 = 204; 105 string field205 = 205; 106 uint64 field207 = 207; 107 uint64 field300 = 300; 108} 109