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 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
|
file {
name: "google/protobuf/empty.proto"
package: "google.protobuf"
message_type {
name: "Empty"
}
options {
java_package: "com.google.protobuf"
java_outer_classname: "EmptyProto"
java_multiple_files: true
go_package: "github.com/golang/protobuf/ptypes/empty"
cc_enable_arenas: true
objc_class_prefix: "GPB"
csharp_namespace: "Google.Protobuf.WellKnownTypes"
}
syntax: "proto3"
}
file {
name: "google/protobuf/timestamp.proto"
package: "google.protobuf"
message_type {
name: "Timestamp"
field {
name: "seconds"
number: 1
label: LABEL_OPTIONAL
type: TYPE_INT64
json_name: "seconds"
}
field {
name: "nanos"
number: 2
label: LABEL_OPTIONAL
type: TYPE_INT32
json_name: "nanos"
}
}
options {
java_package: "com.google.protobuf"
java_outer_classname: "TimestampProto"
java_multiple_files: true
go_package: "github.com/golang/protobuf/ptypes/timestamp"
cc_enable_arenas: true
objc_class_prefix: "GPB"
csharp_namespace: "Google.Protobuf.WellKnownTypes"
}
syntax: "proto3"
}
file {
name: "github.com/containerd/protobuild/examples/bar/bar.proto"
package: "protobuild.example.bar"
dependency: "google/protobuf/empty.proto"
dependency: "google/protobuf/timestamp.proto"
message_type {
name: "DoRequest"
field {
name: "timestamp"
number: 3
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".google.protobuf.Timestamp"
json_name: "timestamp"
}
}
service {
name: "Bar"
method {
name: "Do"
input_type: ".protobuild.example.bar.DoRequest"
output_type: ".google.protobuf.Empty"
}
}
options {
go_package: "github.com/containerd/protobuild/examples/bar/;bar"
}
syntax: "proto3"
}
file {
name: "github.com/containerd/protobuild/examples/foo/foo.proto"
package: "protobuild.example.foo"
dependency: "google/protobuf/empty.proto"
dependency: "google/protobuf/timestamp.proto"
message_type {
name: "DoRequest"
field {
name: "timestamp"
number: 3
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".google.protobuf.Timestamp"
json_name: "timestamp"
}
}
service {
name: "Foo"
method {
name: "Do"
input_type: ".protobuild.example.foo.DoRequest"
output_type: ".google.protobuf.Empty"
}
}
options {
go_package: "github.com/containerd/protobuild/examples/foo/;foo"
}
syntax: "proto3"
}
file {
name: "github.com/containerd/protobuild/examples/nogrpc/nogrpc.proto"
package: "protobuild.example.nogrpc"
dependency: "google/protobuf/timestamp.proto"
message_type {
name: "Thing"
field {
name: "timestamp"
number: 3
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".google.protobuf.Timestamp"
json_name: "timestamp"
}
}
options {
go_package: "github.com/containerd/protobuild/examples/nogrpc/;nogrpc"
}
syntax: "proto3"
}
|