diff options
author | Carl Mastrangelo <notcarl@google.com> | 2017-01-30 15:22:40 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-30 15:22:40 -0800 |
commit | 237a65ebfc64f8046aae9ef019b967c40027d7d5 (patch) | |
tree | 3f79ad87c045a1a60f75bfa75e8b7f8a261b3545 /testing-proto | |
parent | e08034cde033bb5cd4a2df1adbf06af67ce7da15 (diff) | |
download | grpc-grpc-java-237a65ebfc64f8046aae9ef019b967c40027d7d5.tar.gz |
core: make ServiceDescriptor use the Builder pattern
Diffstat (limited to 'testing-proto')
4 files changed, 24 insertions, 24 deletions
diff --git a/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/MetricsServiceGrpc.java b/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/MetricsServiceGrpc.java index 4ad608024..3bf0ddca9 100644 --- a/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/MetricsServiceGrpc.java +++ b/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/MetricsServiceGrpc.java @@ -286,11 +286,11 @@ public class MetricsServiceGrpc { synchronized (MetricsServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = new io.grpc.ServiceDescriptor( - SERVICE_NAME, - new MetricsServiceDescriptorSupplier(), - METHOD_GET_ALL_GAUGES, - METHOD_GET_GAUGE); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new MetricsServiceDescriptorSupplier()) + .addMethod(METHOD_GET_ALL_GAUGES) + .addMethod(METHOD_GET_GAUGE) + .build(); } } } diff --git a/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/ReconnectServiceGrpc.java b/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/ReconnectServiceGrpc.java index a92abcae8..ec088a76c 100644 --- a/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/ReconnectServiceGrpc.java +++ b/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/ReconnectServiceGrpc.java @@ -284,11 +284,11 @@ public class ReconnectServiceGrpc { synchronized (ReconnectServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = new io.grpc.ServiceDescriptor( - SERVICE_NAME, - new ReconnectServiceDescriptorSupplier(), - METHOD_START, - METHOD_STOP); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ReconnectServiceDescriptorSupplier()) + .addMethod(METHOD_START) + .addMethod(METHOD_STOP) + .build(); } } } diff --git a/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/TestServiceGrpc.java b/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/TestServiceGrpc.java index 4ebd5d96d..aee416bd4 100644 --- a/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/TestServiceGrpc.java +++ b/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/TestServiceGrpc.java @@ -571,16 +571,16 @@ public class TestServiceGrpc { synchronized (TestServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = new io.grpc.ServiceDescriptor( - SERVICE_NAME, - new TestServiceDescriptorSupplier(), - METHOD_EMPTY_CALL, - METHOD_UNARY_CALL, - METHOD_STREAMING_OUTPUT_CALL, - METHOD_STREAMING_INPUT_CALL, - METHOD_FULL_DUPLEX_CALL, - METHOD_HALF_DUPLEX_CALL, - METHOD_UNIMPLEMENTED_CALL); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TestServiceDescriptorSupplier()) + .addMethod(METHOD_EMPTY_CALL) + .addMethod(METHOD_UNARY_CALL) + .addMethod(METHOD_STREAMING_OUTPUT_CALL) + .addMethod(METHOD_STREAMING_INPUT_CALL) + .addMethod(METHOD_FULL_DUPLEX_CALL) + .addMethod(METHOD_HALF_DUPLEX_CALL) + .addMethod(METHOD_UNIMPLEMENTED_CALL) + .build(); } } } diff --git a/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/UnimplementedServiceGrpc.java b/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/UnimplementedServiceGrpc.java index e6c6a987e..e77568a78 100644 --- a/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/UnimplementedServiceGrpc.java +++ b/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/UnimplementedServiceGrpc.java @@ -250,10 +250,10 @@ public class UnimplementedServiceGrpc { synchronized (UnimplementedServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = new io.grpc.ServiceDescriptor( - SERVICE_NAME, - new UnimplementedServiceDescriptorSupplier(), - METHOD_UNIMPLEMENTED_CALL); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new UnimplementedServiceDescriptorSupplier()) + .addMethod(METHOD_UNIMPLEMENTED_CALL) + .build(); } } } |