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: matthewtoia@google.com (Matt Toia) 9 10syntax = "proto2"; 11 12package google.protobuf.python.internal; 13 14enum Factory1Enum { 15 FACTORY_1_VALUE_0 = 0; 16 FACTORY_1_VALUE_1 = 1; 17} 18 19message Factory1Message { 20 optional Factory1Enum factory_1_enum = 1; 21 enum NestedFactory1Enum { 22 NESTED_FACTORY_1_VALUE_0 = 0; 23 NESTED_FACTORY_1_VALUE_1 = 1; 24 } 25 optional NestedFactory1Enum nested_factory_1_enum = 2; 26 message NestedFactory1Message { 27 optional string value = 1; 28 } 29 optional NestedFactory1Message nested_factory_1_message = 3; 30 optional int32 scalar_value = 4; 31 repeated string list_value = 5; 32 map<string, string> map_field = 6; 33 34 extensions 1000 to max; 35} 36 37message Factory1MethodRequest { 38 optional string argument = 1; 39} 40 41message Factory1MethodResponse { 42 optional string result = 1; 43} 44 45service Factory1Service { 46 // Dummy method for this dummy service. 47 rpc Factory1Method(Factory1MethodRequest) returns (Factory1MethodResponse) {} 48} 49