Skip to content

Commit 88ed960

Browse files
committed
Run cargo xtask codegen.
1 parent d4bd830 commit 88ed960

File tree

11 files changed

+120
-73
lines changed

11 files changed

+120
-73
lines changed

health/src/proto/protobuf_v3/health.rs

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This file is generated by rust-protobuf 3.2.0. Do not edit
1+
// This file is generated by rust-protobuf 3.3.0. Do not edit
22
// @generated
33

44
// https://github.com/rust-lang/rust-clippy/issues/702
@@ -22,10 +22,10 @@
2222
2323
/// Generated files are compatible only with the same version
2424
/// of protobuf runtime.
25-
const _PROTOBUF_VERSION_CHECK: () = ::protobufv3::VERSION_3_2_0;
25+
const _PROTOBUF_VERSION_CHECK: () = ::protobufv3::VERSION_3_3_0;
2626

27-
#[derive(PartialEq,Clone,Default,Debug)]
2827
// @@protoc_insertion_point(message:grpc.health.v1.HealthCheckRequest)
28+
#[derive(PartialEq,Clone,Default,Debug)]
2929
pub struct HealthCheckRequest {
3030
// message fields
3131
// @@protoc_insertion_point(field:grpc.health.v1.HealthCheckRequest.service)
@@ -146,8 +146,8 @@ impl ::protobufv3::reflect::ProtobufValue for HealthCheckRequest {
146146
type RuntimeType = ::protobufv3::reflect::rt::RuntimeTypeMessage<Self>;
147147
}
148148

149-
#[derive(PartialEq,Clone,Default,Debug)]
150149
// @@protoc_insertion_point(message:grpc.health.v1.HealthCheckResponse)
150+
#[derive(PartialEq,Clone,Default,Debug)]
151151
pub struct HealthCheckResponse {
152152
// message fields
153153
// @@protoc_insertion_point(field:grpc.health.v1.HealthCheckResponse.status)
@@ -300,6 +300,16 @@ pub mod health_check_response {
300300
}
301301
}
302302

303+
fn from_str(str: &str) -> ::std::option::Option<ServingStatus> {
304+
match str {
305+
"Unknown" => ::std::option::Option::Some(ServingStatus::Unknown),
306+
"Serving" => ::std::option::Option::Some(ServingStatus::Serving),
307+
"NotServing" => ::std::option::Option::Some(ServingStatus::NotServing),
308+
"ServiceUnknown" => ::std::option::Option::Some(ServingStatus::ServiceUnknown),
309+
_ => ::std::option::Option::None
310+
}
311+
}
312+
303313
const VALUES: &'static [ServingStatus] = &[
304314
ServingStatus::Unknown,
305315
ServingStatus::Serving,

proto/src/proto/protobuf_v3/example/helloworld.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This file is generated by rust-protobuf 3.2.0. Do not edit
1+
// This file is generated by rust-protobuf 3.3.0. Do not edit
22
// @generated
33

44
// https://github.com/rust-lang/rust-clippy/issues/702
@@ -22,10 +22,10 @@
2222
2323
/// Generated files are compatible only with the same version
2424
/// of protobuf runtime.
25-
const _PROTOBUF_VERSION_CHECK: () = ::protobufv3::VERSION_3_2_0;
25+
const _PROTOBUF_VERSION_CHECK: () = ::protobufv3::VERSION_3_3_0;
2626

27-
#[derive(PartialEq,Clone,Default,Debug)]
2827
// @@protoc_insertion_point(message:helloworld.HelloRequest)
28+
#[derive(PartialEq,Clone,Default,Debug)]
2929
pub struct HelloRequest {
3030
// message fields
3131
// @@protoc_insertion_point(field:helloworld.HelloRequest.name)
@@ -146,8 +146,8 @@ impl ::protobufv3::reflect::ProtobufValue for HelloRequest {
146146
type RuntimeType = ::protobufv3::reflect::rt::RuntimeTypeMessage<Self>;
147147
}
148148

149-
#[derive(PartialEq,Clone,Default,Debug)]
150149
// @@protoc_insertion_point(message:helloworld.HelloReply)
150+
#[derive(PartialEq,Clone,Default,Debug)]
151151
pub struct HelloReply {
152152
// message fields
153153
// @@protoc_insertion_point(field:helloworld.HelloReply.message)

proto/src/proto/protobuf_v3/example/route_guide.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This file is generated by rust-protobuf 3.2.0. Do not edit
1+
// This file is generated by rust-protobuf 3.3.0. Do not edit
22
// @generated
33

44
// https://github.com/rust-lang/rust-clippy/issues/702
@@ -22,10 +22,10 @@
2222
2323
/// Generated files are compatible only with the same version
2424
/// of protobuf runtime.
25-
const _PROTOBUF_VERSION_CHECK: () = ::protobufv3::VERSION_3_2_0;
25+
const _PROTOBUF_VERSION_CHECK: () = ::protobufv3::VERSION_3_3_0;
2626

27-
#[derive(PartialEq,Clone,Default,Debug)]
2827
// @@protoc_insertion_point(message:routeguide.Point)
28+
#[derive(PartialEq,Clone,Default,Debug)]
2929
pub struct Point {
3030
// message fields
3131
// @@protoc_insertion_point(field:routeguide.Point.latitude)
@@ -164,8 +164,8 @@ impl ::protobufv3::reflect::ProtobufValue for Point {
164164
type RuntimeType = ::protobufv3::reflect::rt::RuntimeTypeMessage<Self>;
165165
}
166166

167-
#[derive(PartialEq,Clone,Default,Debug)]
168167
// @@protoc_insertion_point(message:routeguide.Rectangle)
168+
#[derive(PartialEq,Clone,Default,Debug)]
169169
pub struct Rectangle {
170170
// message fields
171171
// @@protoc_insertion_point(field:routeguide.Rectangle.lo)
@@ -306,8 +306,8 @@ impl ::protobufv3::reflect::ProtobufValue for Rectangle {
306306
type RuntimeType = ::protobufv3::reflect::rt::RuntimeTypeMessage<Self>;
307307
}
308308

309-
#[derive(PartialEq,Clone,Default,Debug)]
310309
// @@protoc_insertion_point(message:routeguide.Feature)
310+
#[derive(PartialEq,Clone,Default,Debug)]
311311
pub struct Feature {
312312
// message fields
313313
// @@protoc_insertion_point(field:routeguide.Feature.name)
@@ -447,8 +447,8 @@ impl ::protobufv3::reflect::ProtobufValue for Feature {
447447
type RuntimeType = ::protobufv3::reflect::rt::RuntimeTypeMessage<Self>;
448448
}
449449

450-
#[derive(PartialEq,Clone,Default,Debug)]
451450
// @@protoc_insertion_point(message:routeguide.RouteNote)
451+
#[derive(PartialEq,Clone,Default,Debug)]
452452
pub struct RouteNote {
453453
// message fields
454454
// @@protoc_insertion_point(field:routeguide.RouteNote.location)
@@ -588,8 +588,8 @@ impl ::protobufv3::reflect::ProtobufValue for RouteNote {
588588
type RuntimeType = ::protobufv3::reflect::rt::RuntimeTypeMessage<Self>;
589589
}
590590

591-
#[derive(PartialEq,Clone,Default,Debug)]
592591
// @@protoc_insertion_point(message:routeguide.RouteSummary)
592+
#[derive(PartialEq,Clone,Default,Debug)]
593593
pub struct RouteSummary {
594594
// message fields
595595
// @@protoc_insertion_point(field:routeguide.RouteSummary.point_count)

proto/src/proto/protobuf_v3/google/rpc/status.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This file is generated by rust-protobuf 3.2.0. Do not edit
1+
// This file is generated by rust-protobuf 3.3.0. Do not edit
22
// @generated
33

44
// https://github.com/rust-lang/rust-clippy/issues/702
@@ -22,10 +22,10 @@
2222
2323
/// Generated files are compatible only with the same version
2424
/// of protobuf runtime.
25-
const _PROTOBUF_VERSION_CHECK: () = ::protobufv3::VERSION_3_2_0;
25+
const _PROTOBUF_VERSION_CHECK: () = ::protobufv3::VERSION_3_3_0;
2626

27-
#[derive(PartialEq,Clone,Default,Debug)]
2827
// @@protoc_insertion_point(message:google.rpc.Status)
28+
#[derive(PartialEq,Clone,Default,Debug)]
2929
pub struct Status {
3030
// message fields
3131
// @@protoc_insertion_point(field:google.rpc.Status.code)

0 commit comments

Comments
 (0)