1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
|
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
import "google/protobuf/any.proto";
option go_package = "../util_message";
message ExampleMessage {
string field1 = 1;
}
message AllTheTypes {
string str = 1;
int32 int32 = 2;
int64 int64 = 3;
sint32 sint32 = 4;
sint64 sin64 = 5;
uint32 uint32 = 6;
uint64 uint64 = 7;
fixed32 fixed32 = 8;
fixed64 fixed64 = 9;
sfixed32 sfixed32 = 10;
bool bool = 11;
bytes bytes = 12;
double double = 13;
ExampleEnum enum = 14;
ExampleMessage message = 15;
oneof oneof {
string oneofstring = 16;
ExampleMessage oneofmessage = 17;
}
google.protobuf.Any any = 18;
map<int32, string> simple_map = 19;
map<string, ExampleMessage> complex_map = 20;
repeated string simple_list = 21;
repeated ExampleMessage complex_list = 22;
enum ExampleEnum {
OPTION_0 = 0;
OPTION_1 = 1;
}
}
message AllTheTypesNoAny {
string str = 1;
int32 int32 = 2;
int64 int64 = 3;
sint32 sint32 = 4;
sint64 sin64 = 5;
uint32 uint32 = 6;
uint64 uint64 = 7;
fixed32 fixed32 = 8;
fixed64 fixed64 = 9;
sfixed32 sfixed32 = 10;
bool bool = 11;
bytes bytes = 12;
double double = 13;
ExampleEnum enum = 14;
ExampleMessage message = 15;
oneof oneof {
string oneofstring = 16;
ExampleMessage oneofmessage = 17;
}
map<int32, string> simple_map = 19;
map<string, ExampleMessage> complex_map = 20;
repeated string simple_list = 21;
repeated ExampleMessage complex_list = 22;
enum ExampleEnum {
OPTION_0 = 0;
OPTION_1 = 1;
}
}
message SimpleNested {
repeated ExampleMessage simple_a = 1;
repeated ExampleMessage simple_b = 2;
}
message ComplexNested {
repeated AllTheTypesNoAny all_the_types_no_any_a = 1;
repeated AllTheTypesNoAny all_the_types_no_any_b = 2;
}
message DeepNested {
ComplexNested complex_nested = 1;
SimpleNested simple_nested = 2;
}
|