| 1 |
file { |
| 2 |
name: "google/protobuf/empty.proto" |
| 3 |
package: "google.protobuf" |
| 4 |
message_type { |
| 5 |
name: "Empty" |
| 6 |
} |
| 7 |
options { |
| 8 |
java_package: "com.google.protobuf" |
| 9 |
java_outer_classname: "EmptyProto" |
| 10 |
java_multiple_files: true |
| 11 |
go_package: "github.com/golang/protobuf/ptypes/empty" |
| 12 |
cc_enable_arenas: true |
| 13 |
objc_class_prefix: "GPB" |
| 14 |
csharp_namespace: "Google.Protobuf.WellKnownTypes" |
| 15 |
} |
| 16 |
syntax: "proto3" |
| 17 |
} |
| 18 |
file { |
| 19 |
name: "google/protobuf/timestamp.proto" |
| 20 |
package: "google.protobuf" |
| 21 |
message_type { |
| 22 |
name: "Timestamp" |
| 23 |
field { |
| 24 |
name: "seconds" |
| 25 |
number: 1 |
| 26 |
label: LABEL_OPTIONAL |
| 27 |
type: TYPE_INT64 |
| 28 |
json_name: "seconds" |
| 29 |
} |
| 30 |
field { |
| 31 |
name: "nanos" |
| 32 |
number: 2 |
| 33 |
label: LABEL_OPTIONAL |
| 34 |
type: TYPE_INT32 |
| 35 |
json_name: "nanos" |
| 36 |
} |
| 37 |
} |
| 38 |
options { |
| 39 |
java_package: "com.google.protobuf" |
| 40 |
java_outer_classname: "TimestampProto" |
| 41 |
java_multiple_files: true |
| 42 |
go_package: "github.com/golang/protobuf/ptypes/timestamp" |
| 43 |
cc_enable_arenas: true |
| 44 |
objc_class_prefix: "GPB" |
| 45 |
csharp_namespace: "Google.Protobuf.WellKnownTypes" |
| 46 |
} |
| 47 |
syntax: "proto3" |
| 48 |
} |
| 49 |
file { |
| 50 |
name: "github.com/containerd/protobuild/examples/bar/bar.proto" |
| 51 |
package: "protobuild.example.bar" |
| 52 |
dependency: "google/protobuf/empty.proto" |
| 53 |
dependency: "google/protobuf/timestamp.proto" |
| 54 |
message_type { |
| 55 |
name: "DoRequest" |
| 56 |
field { |
| 57 |
name: "timestamp" |
| 58 |
number: 3 |
| 59 |
label: LABEL_OPTIONAL |
| 60 |
type: TYPE_MESSAGE |
| 61 |
type_name: ".google.protobuf.Timestamp" |
| 62 |
json_name: "timestamp" |
| 63 |
} |
| 64 |
} |
| 65 |
service { |
| 66 |
name: "Bar" |
| 67 |
method { |
| 68 |
name: "Do" |
| 69 |
input_type: ".protobuild.example.bar.DoRequest" |
| 70 |
output_type: ".google.protobuf.Empty" |
| 71 |
} |
| 72 |
} |
| 73 |
options { |
| 74 |
go_package: "github.com/containerd/protobuild/examples/bar/;bar" |
| 75 |
} |
| 76 |
syntax: "proto3" |
| 77 |
} |
| 78 |
file { |
| 79 |
name: "github.com/containerd/protobuild/examples/foo/foo.proto" |
| 80 |
package: "protobuild.example.foo" |
| 81 |
dependency: "google/protobuf/empty.proto" |
| 82 |
dependency: "google/protobuf/timestamp.proto" |
| 83 |
message_type { |
| 84 |
name: "DoRequest" |
| 85 |
field { |
| 86 |
name: "timestamp" |
| 87 |
number: 3 |
| 88 |
label: LABEL_OPTIONAL |
| 89 |
type: TYPE_MESSAGE |
| 90 |
type_name: ".google.protobuf.Timestamp" |
| 91 |
json_name: "timestamp" |
| 92 |
} |
| 93 |
} |
| 94 |
service { |
| 95 |
name: "Foo" |
| 96 |
method { |
| 97 |
name: "Do" |
| 98 |
input_type: ".protobuild.example.foo.DoRequest" |
| 99 |
output_type: ".google.protobuf.Empty" |
| 100 |
} |
| 101 |
} |
| 102 |
options { |
| 103 |
go_package: "github.com/containerd/protobuild/examples/foo/;foo" |
| 104 |
} |
| 105 |
syntax: "proto3" |
| 106 |
} |
| 107 |
file { |
| 108 |
name: "github.com/containerd/protobuild/examples/nogrpc/nogrpc.proto" |
| 109 |
package: "protobuild.example.nogrpc" |
| 110 |
dependency: "google/protobuf/timestamp.proto" |
| 111 |
message_type { |
| 112 |
name: "Thing" |
| 113 |
field { |
| 114 |
name: "timestamp" |
| 115 |
number: 3 |
| 116 |
label: LABEL_OPTIONAL |
| 117 |
type: TYPE_MESSAGE |
| 118 |
type_name: ".google.protobuf.Timestamp" |
| 119 |
json_name: "timestamp" |
| 120 |
} |
| 121 |
} |
| 122 |
options { |
| 123 |
go_package: "github.com/containerd/protobuild/examples/nogrpc/;nogrpc" |
| 124 |
} |
| 125 |
syntax: "proto3" |
| 126 |
} |