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// Author: kenton@google.com (Kenton Varda) 9// Based on original Protocol Buffers design by 10// Sanjay Ghemawat, Jeff Dean, and others. 11// 12// A proto file which imports a proto file that uses optimize_for = CODE_SIZE. 13 14syntax = "proto2"; 15 16package protobuf_unittest; 17 18import "google/protobuf/unittest_optimize_for.proto"; 19 20// We optimize for speed here, but we are importing a proto that is optimized 21// for code size. 22option optimize_for = SPEED; 23 24message TestEmbedOptimizedForSize { 25 // Test that embedding a message which has optimize_for = CODE_SIZE into 26 // one optimized for speed works. 27 optional TestOptimizedForSize optional_message = 1; 28 repeated TestOptimizedForSize repeated_message = 2; 29} 30