1// Protocol Buffers - Google's data interchange format 2// Copyright 2015 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 8syntax = "proto2"; 9 10package objc.protobuf.tests.cycle; 11 12option objc_class_prefix = "Cycle"; 13 14// Cycles in the Message graph can cause problems for message class 15// initialization order. 16 17// You can't make a object graph that spans files, so this can only be done 18// within a single proto file. 19 20message Foo { 21 optional Foo a_foo = 1; 22 optional Bar a_bar = 2; 23 optional Baz a_baz = 3; 24} 25 26message Bar { 27 optional Bar a_bar = 1; 28 optional Baz a_baz = 2; 29 optional Foo a_foo = 3; 30} 31 32message Baz { 33 optional Baz a_baz = 1; 34 optional Foo a_foo = 2; 35 optional Bar a_bar = 3; 36} 37