mirror of https://github.com/grpc/grpc-java.git
Use more precise names for protobuf and nano
io.grpc.nano sort of seems like a "small" version of grpc-java. And io.grpc.proto could also mean multiple things. Using "protobuf" and "protobuf nano" gets us consistent names that are still understandable, predictable, and more similar to protobuf project itself.
This commit is contained in:
parent
e23f899491
commit
3666de4427
|
|
@ -95,7 +95,7 @@ static void PrintMethodFields(
|
||||||
" $Method$.create(\n"
|
" $Method$.create(\n"
|
||||||
" $MethodType$.$method_type$, \"$method_name$\",\n"
|
" $MethodType$.$method_type$, \"$method_name$\",\n"
|
||||||
" $NanoUtils$.<$input_type$>marshaller(\n"
|
" $NanoUtils$.<$input_type$>marshaller(\n"
|
||||||
" new io.grpc.nano.Parser<$input_type$>() {\n"
|
" new io.grpc.protobuf.nano.Parser<$input_type$>() {\n"
|
||||||
" @Override\n"
|
" @Override\n"
|
||||||
" public $input_type$ parse("
|
" public $input_type$ parse("
|
||||||
"$CodedInputByteBufferNano$ input) throws IOException {\n"
|
"$CodedInputByteBufferNano$ input) throws IOException {\n"
|
||||||
|
|
@ -103,7 +103,7 @@ static void PrintMethodFields(
|
||||||
" }\n"
|
" }\n"
|
||||||
" }),\n"
|
" }),\n"
|
||||||
" $NanoUtils$.<$output_type$>marshaller(\n"
|
" $NanoUtils$.<$output_type$>marshaller(\n"
|
||||||
" new io.grpc.nano.Parser<$output_type$>() {\n"
|
" new io.grpc.protobuf.nano.Parser<$output_type$>() {\n"
|
||||||
" @Override\n"
|
" @Override\n"
|
||||||
" public $output_type$ parse("
|
" public $output_type$ parse("
|
||||||
"$CodedInputByteBufferNano$ input) throws IOException {\n"
|
"$CodedInputByteBufferNano$ input) throws IOException {\n"
|
||||||
|
|
@ -662,8 +662,8 @@ void GenerateService(const ServiceDescriptor* service,
|
||||||
"io.grpc.stub.AbstractServiceDescriptor";
|
"io.grpc.stub.AbstractServiceDescriptor";
|
||||||
vars["ImmutableList"] = "com.google.common.collect.ImmutableList";
|
vars["ImmutableList"] = "com.google.common.collect.ImmutableList";
|
||||||
vars["MethodDescriptor"] = "io.grpc.MethodDescriptor";
|
vars["MethodDescriptor"] = "io.grpc.MethodDescriptor";
|
||||||
vars["ProtoUtils"] = "io.grpc.proto.ProtoUtils";
|
vars["ProtoUtils"] = "io.grpc.protobuf.ProtoUtils";
|
||||||
vars["NanoUtils"] = "io.grpc.nano.NanoUtils";
|
vars["NanoUtils"] = "io.grpc.protobuf.nano.NanoUtils";
|
||||||
vars["StreamObserver"] = "io.grpc.stub.StreamObserver";
|
vars["StreamObserver"] = "io.grpc.stub.StreamObserver";
|
||||||
vars["Iterator"] = "java.util.Iterator";
|
vars["Iterator"] = "java.util.Iterator";
|
||||||
vars["Map"] = "java.util.Map";
|
vars["Map"] = "java.util.Map";
|
||||||
|
|
|
||||||
|
|
@ -19,32 +19,32 @@ public class TestServiceGrpc {
|
||||||
io.grpc.testing.integration.Test.SimpleResponse> METHOD_UNARY_CALL =
|
io.grpc.testing.integration.Test.SimpleResponse> METHOD_UNARY_CALL =
|
||||||
io.grpc.stub.Method.create(
|
io.grpc.stub.Method.create(
|
||||||
io.grpc.MethodType.UNARY, "UnaryCall",
|
io.grpc.MethodType.UNARY, "UnaryCall",
|
||||||
io.grpc.proto.ProtoUtils.marshaller(io.grpc.testing.integration.Test.SimpleRequest.PARSER),
|
io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.SimpleRequest.PARSER),
|
||||||
io.grpc.proto.ProtoUtils.marshaller(io.grpc.testing.integration.Test.SimpleResponse.PARSER));
|
io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.SimpleResponse.PARSER));
|
||||||
private static final io.grpc.stub.Method<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
|
private static final io.grpc.stub.Method<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
|
||||||
io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_STREAMING_OUTPUT_CALL =
|
io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_STREAMING_OUTPUT_CALL =
|
||||||
io.grpc.stub.Method.create(
|
io.grpc.stub.Method.create(
|
||||||
io.grpc.MethodType.SERVER_STREAMING, "StreamingOutputCall",
|
io.grpc.MethodType.SERVER_STREAMING, "StreamingOutputCall",
|
||||||
io.grpc.proto.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallRequest.PARSER),
|
io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallRequest.PARSER),
|
||||||
io.grpc.proto.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallResponse.PARSER));
|
io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallResponse.PARSER));
|
||||||
private static final io.grpc.stub.Method<io.grpc.testing.integration.Test.StreamingInputCallRequest,
|
private static final io.grpc.stub.Method<io.grpc.testing.integration.Test.StreamingInputCallRequest,
|
||||||
io.grpc.testing.integration.Test.StreamingInputCallResponse> METHOD_STREAMING_INPUT_CALL =
|
io.grpc.testing.integration.Test.StreamingInputCallResponse> METHOD_STREAMING_INPUT_CALL =
|
||||||
io.grpc.stub.Method.create(
|
io.grpc.stub.Method.create(
|
||||||
io.grpc.MethodType.CLIENT_STREAMING, "StreamingInputCall",
|
io.grpc.MethodType.CLIENT_STREAMING, "StreamingInputCall",
|
||||||
io.grpc.proto.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingInputCallRequest.PARSER),
|
io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingInputCallRequest.PARSER),
|
||||||
io.grpc.proto.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingInputCallResponse.PARSER));
|
io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingInputCallResponse.PARSER));
|
||||||
private static final io.grpc.stub.Method<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
|
private static final io.grpc.stub.Method<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
|
||||||
io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_FULL_DUPLEX_CALL =
|
io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_FULL_DUPLEX_CALL =
|
||||||
io.grpc.stub.Method.create(
|
io.grpc.stub.Method.create(
|
||||||
io.grpc.MethodType.DUPLEX_STREAMING, "FullDuplexCall",
|
io.grpc.MethodType.DUPLEX_STREAMING, "FullDuplexCall",
|
||||||
io.grpc.proto.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallRequest.PARSER),
|
io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallRequest.PARSER),
|
||||||
io.grpc.proto.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallResponse.PARSER));
|
io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallResponse.PARSER));
|
||||||
private static final io.grpc.stub.Method<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
|
private static final io.grpc.stub.Method<io.grpc.testing.integration.Test.StreamingOutputCallRequest,
|
||||||
io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_HALF_DUPLEX_CALL =
|
io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_HALF_DUPLEX_CALL =
|
||||||
io.grpc.stub.Method.create(
|
io.grpc.stub.Method.create(
|
||||||
io.grpc.MethodType.DUPLEX_STREAMING, "HalfDuplexCall",
|
io.grpc.MethodType.DUPLEX_STREAMING, "HalfDuplexCall",
|
||||||
io.grpc.proto.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallRequest.PARSER),
|
io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallRequest.PARSER),
|
||||||
io.grpc.proto.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallResponse.PARSER));
|
io.grpc.protobuf.ProtoUtils.marshaller(io.grpc.testing.integration.Test.StreamingOutputCallResponse.PARSER));
|
||||||
|
|
||||||
public static TestServiceStub newStub(io.grpc.Channel channel) {
|
public static TestServiceStub newStub(io.grpc.Channel channel) {
|
||||||
return new TestServiceStub(channel, CONFIG);
|
return new TestServiceStub(channel, CONFIG);
|
||||||
|
|
|
||||||
|
|
@ -21,15 +21,15 @@ public class TestServiceGrpc {
|
||||||
io.grpc.testing.integration.Test.SimpleResponse> METHOD_UNARY_CALL =
|
io.grpc.testing.integration.Test.SimpleResponse> METHOD_UNARY_CALL =
|
||||||
io.grpc.stub.Method.create(
|
io.grpc.stub.Method.create(
|
||||||
io.grpc.MethodType.UNARY, "UnaryCall",
|
io.grpc.MethodType.UNARY, "UnaryCall",
|
||||||
io.grpc.nano.NanoUtils.<io.grpc.testing.integration.Test.SimpleRequest>marshaller(
|
io.grpc.protobuf.nano.NanoUtils.<io.grpc.testing.integration.Test.SimpleRequest>marshaller(
|
||||||
new io.grpc.nano.Parser<io.grpc.testing.integration.Test.SimpleRequest>() {
|
new io.grpc.protobuf.nano.Parser<io.grpc.testing.integration.Test.SimpleRequest>() {
|
||||||
@Override
|
@Override
|
||||||
public io.grpc.testing.integration.Test.SimpleRequest parse(com.google.protobuf.nano.CodedInputByteBufferNano input) throws IOException {
|
public io.grpc.testing.integration.Test.SimpleRequest parse(com.google.protobuf.nano.CodedInputByteBufferNano input) throws IOException {
|
||||||
return io.grpc.testing.integration.Test.SimpleRequest.parseFrom(input);
|
return io.grpc.testing.integration.Test.SimpleRequest.parseFrom(input);
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
io.grpc.nano.NanoUtils.<io.grpc.testing.integration.Test.SimpleResponse>marshaller(
|
io.grpc.protobuf.nano.NanoUtils.<io.grpc.testing.integration.Test.SimpleResponse>marshaller(
|
||||||
new io.grpc.nano.Parser<io.grpc.testing.integration.Test.SimpleResponse>() {
|
new io.grpc.protobuf.nano.Parser<io.grpc.testing.integration.Test.SimpleResponse>() {
|
||||||
@Override
|
@Override
|
||||||
public io.grpc.testing.integration.Test.SimpleResponse parse(com.google.protobuf.nano.CodedInputByteBufferNano input) throws IOException {
|
public io.grpc.testing.integration.Test.SimpleResponse parse(com.google.protobuf.nano.CodedInputByteBufferNano input) throws IOException {
|
||||||
return io.grpc.testing.integration.Test.SimpleResponse.parseFrom(input);
|
return io.grpc.testing.integration.Test.SimpleResponse.parseFrom(input);
|
||||||
|
|
@ -39,15 +39,15 @@ public class TestServiceGrpc {
|
||||||
io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_STREAMING_OUTPUT_CALL =
|
io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_STREAMING_OUTPUT_CALL =
|
||||||
io.grpc.stub.Method.create(
|
io.grpc.stub.Method.create(
|
||||||
io.grpc.MethodType.SERVER_STREAMING, "StreamingOutputCall",
|
io.grpc.MethodType.SERVER_STREAMING, "StreamingOutputCall",
|
||||||
io.grpc.nano.NanoUtils.<io.grpc.testing.integration.Test.StreamingOutputCallRequest>marshaller(
|
io.grpc.protobuf.nano.NanoUtils.<io.grpc.testing.integration.Test.StreamingOutputCallRequest>marshaller(
|
||||||
new io.grpc.nano.Parser<io.grpc.testing.integration.Test.StreamingOutputCallRequest>() {
|
new io.grpc.protobuf.nano.Parser<io.grpc.testing.integration.Test.StreamingOutputCallRequest>() {
|
||||||
@Override
|
@Override
|
||||||
public io.grpc.testing.integration.Test.StreamingOutputCallRequest parse(com.google.protobuf.nano.CodedInputByteBufferNano input) throws IOException {
|
public io.grpc.testing.integration.Test.StreamingOutputCallRequest parse(com.google.protobuf.nano.CodedInputByteBufferNano input) throws IOException {
|
||||||
return io.grpc.testing.integration.Test.StreamingOutputCallRequest.parseFrom(input);
|
return io.grpc.testing.integration.Test.StreamingOutputCallRequest.parseFrom(input);
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
io.grpc.nano.NanoUtils.<io.grpc.testing.integration.Test.StreamingOutputCallResponse>marshaller(
|
io.grpc.protobuf.nano.NanoUtils.<io.grpc.testing.integration.Test.StreamingOutputCallResponse>marshaller(
|
||||||
new io.grpc.nano.Parser<io.grpc.testing.integration.Test.StreamingOutputCallResponse>() {
|
new io.grpc.protobuf.nano.Parser<io.grpc.testing.integration.Test.StreamingOutputCallResponse>() {
|
||||||
@Override
|
@Override
|
||||||
public io.grpc.testing.integration.Test.StreamingOutputCallResponse parse(com.google.protobuf.nano.CodedInputByteBufferNano input) throws IOException {
|
public io.grpc.testing.integration.Test.StreamingOutputCallResponse parse(com.google.protobuf.nano.CodedInputByteBufferNano input) throws IOException {
|
||||||
return io.grpc.testing.integration.Test.StreamingOutputCallResponse.parseFrom(input);
|
return io.grpc.testing.integration.Test.StreamingOutputCallResponse.parseFrom(input);
|
||||||
|
|
@ -57,15 +57,15 @@ public class TestServiceGrpc {
|
||||||
io.grpc.testing.integration.Test.StreamingInputCallResponse> METHOD_STREAMING_INPUT_CALL =
|
io.grpc.testing.integration.Test.StreamingInputCallResponse> METHOD_STREAMING_INPUT_CALL =
|
||||||
io.grpc.stub.Method.create(
|
io.grpc.stub.Method.create(
|
||||||
io.grpc.MethodType.CLIENT_STREAMING, "StreamingInputCall",
|
io.grpc.MethodType.CLIENT_STREAMING, "StreamingInputCall",
|
||||||
io.grpc.nano.NanoUtils.<io.grpc.testing.integration.Test.StreamingInputCallRequest>marshaller(
|
io.grpc.protobuf.nano.NanoUtils.<io.grpc.testing.integration.Test.StreamingInputCallRequest>marshaller(
|
||||||
new io.grpc.nano.Parser<io.grpc.testing.integration.Test.StreamingInputCallRequest>() {
|
new io.grpc.protobuf.nano.Parser<io.grpc.testing.integration.Test.StreamingInputCallRequest>() {
|
||||||
@Override
|
@Override
|
||||||
public io.grpc.testing.integration.Test.StreamingInputCallRequest parse(com.google.protobuf.nano.CodedInputByteBufferNano input) throws IOException {
|
public io.grpc.testing.integration.Test.StreamingInputCallRequest parse(com.google.protobuf.nano.CodedInputByteBufferNano input) throws IOException {
|
||||||
return io.grpc.testing.integration.Test.StreamingInputCallRequest.parseFrom(input);
|
return io.grpc.testing.integration.Test.StreamingInputCallRequest.parseFrom(input);
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
io.grpc.nano.NanoUtils.<io.grpc.testing.integration.Test.StreamingInputCallResponse>marshaller(
|
io.grpc.protobuf.nano.NanoUtils.<io.grpc.testing.integration.Test.StreamingInputCallResponse>marshaller(
|
||||||
new io.grpc.nano.Parser<io.grpc.testing.integration.Test.StreamingInputCallResponse>() {
|
new io.grpc.protobuf.nano.Parser<io.grpc.testing.integration.Test.StreamingInputCallResponse>() {
|
||||||
@Override
|
@Override
|
||||||
public io.grpc.testing.integration.Test.StreamingInputCallResponse parse(com.google.protobuf.nano.CodedInputByteBufferNano input) throws IOException {
|
public io.grpc.testing.integration.Test.StreamingInputCallResponse parse(com.google.protobuf.nano.CodedInputByteBufferNano input) throws IOException {
|
||||||
return io.grpc.testing.integration.Test.StreamingInputCallResponse.parseFrom(input);
|
return io.grpc.testing.integration.Test.StreamingInputCallResponse.parseFrom(input);
|
||||||
|
|
@ -75,15 +75,15 @@ public class TestServiceGrpc {
|
||||||
io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_FULL_DUPLEX_CALL =
|
io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_FULL_DUPLEX_CALL =
|
||||||
io.grpc.stub.Method.create(
|
io.grpc.stub.Method.create(
|
||||||
io.grpc.MethodType.DUPLEX_STREAMING, "FullDuplexCall",
|
io.grpc.MethodType.DUPLEX_STREAMING, "FullDuplexCall",
|
||||||
io.grpc.nano.NanoUtils.<io.grpc.testing.integration.Test.StreamingOutputCallRequest>marshaller(
|
io.grpc.protobuf.nano.NanoUtils.<io.grpc.testing.integration.Test.StreamingOutputCallRequest>marshaller(
|
||||||
new io.grpc.nano.Parser<io.grpc.testing.integration.Test.StreamingOutputCallRequest>() {
|
new io.grpc.protobuf.nano.Parser<io.grpc.testing.integration.Test.StreamingOutputCallRequest>() {
|
||||||
@Override
|
@Override
|
||||||
public io.grpc.testing.integration.Test.StreamingOutputCallRequest parse(com.google.protobuf.nano.CodedInputByteBufferNano input) throws IOException {
|
public io.grpc.testing.integration.Test.StreamingOutputCallRequest parse(com.google.protobuf.nano.CodedInputByteBufferNano input) throws IOException {
|
||||||
return io.grpc.testing.integration.Test.StreamingOutputCallRequest.parseFrom(input);
|
return io.grpc.testing.integration.Test.StreamingOutputCallRequest.parseFrom(input);
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
io.grpc.nano.NanoUtils.<io.grpc.testing.integration.Test.StreamingOutputCallResponse>marshaller(
|
io.grpc.protobuf.nano.NanoUtils.<io.grpc.testing.integration.Test.StreamingOutputCallResponse>marshaller(
|
||||||
new io.grpc.nano.Parser<io.grpc.testing.integration.Test.StreamingOutputCallResponse>() {
|
new io.grpc.protobuf.nano.Parser<io.grpc.testing.integration.Test.StreamingOutputCallResponse>() {
|
||||||
@Override
|
@Override
|
||||||
public io.grpc.testing.integration.Test.StreamingOutputCallResponse parse(com.google.protobuf.nano.CodedInputByteBufferNano input) throws IOException {
|
public io.grpc.testing.integration.Test.StreamingOutputCallResponse parse(com.google.protobuf.nano.CodedInputByteBufferNano input) throws IOException {
|
||||||
return io.grpc.testing.integration.Test.StreamingOutputCallResponse.parseFrom(input);
|
return io.grpc.testing.integration.Test.StreamingOutputCallResponse.parseFrom(input);
|
||||||
|
|
@ -93,15 +93,15 @@ public class TestServiceGrpc {
|
||||||
io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_HALF_DUPLEX_CALL =
|
io.grpc.testing.integration.Test.StreamingOutputCallResponse> METHOD_HALF_DUPLEX_CALL =
|
||||||
io.grpc.stub.Method.create(
|
io.grpc.stub.Method.create(
|
||||||
io.grpc.MethodType.DUPLEX_STREAMING, "HalfDuplexCall",
|
io.grpc.MethodType.DUPLEX_STREAMING, "HalfDuplexCall",
|
||||||
io.grpc.nano.NanoUtils.<io.grpc.testing.integration.Test.StreamingOutputCallRequest>marshaller(
|
io.grpc.protobuf.nano.NanoUtils.<io.grpc.testing.integration.Test.StreamingOutputCallRequest>marshaller(
|
||||||
new io.grpc.nano.Parser<io.grpc.testing.integration.Test.StreamingOutputCallRequest>() {
|
new io.grpc.protobuf.nano.Parser<io.grpc.testing.integration.Test.StreamingOutputCallRequest>() {
|
||||||
@Override
|
@Override
|
||||||
public io.grpc.testing.integration.Test.StreamingOutputCallRequest parse(com.google.protobuf.nano.CodedInputByteBufferNano input) throws IOException {
|
public io.grpc.testing.integration.Test.StreamingOutputCallRequest parse(com.google.protobuf.nano.CodedInputByteBufferNano input) throws IOException {
|
||||||
return io.grpc.testing.integration.Test.StreamingOutputCallRequest.parseFrom(input);
|
return io.grpc.testing.integration.Test.StreamingOutputCallRequest.parseFrom(input);
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
io.grpc.nano.NanoUtils.<io.grpc.testing.integration.Test.StreamingOutputCallResponse>marshaller(
|
io.grpc.protobuf.nano.NanoUtils.<io.grpc.testing.integration.Test.StreamingOutputCallResponse>marshaller(
|
||||||
new io.grpc.nano.Parser<io.grpc.testing.integration.Test.StreamingOutputCallResponse>() {
|
new io.grpc.protobuf.nano.Parser<io.grpc.testing.integration.Test.StreamingOutputCallResponse>() {
|
||||||
@Override
|
@Override
|
||||||
public io.grpc.testing.integration.Test.StreamingOutputCallResponse parse(com.google.protobuf.nano.CodedInputByteBufferNano input) throws IOException {
|
public io.grpc.testing.integration.Test.StreamingOutputCallResponse parse(com.google.protobuf.nano.CodedInputByteBufferNano input) throws IOException {
|
||||||
return io.grpc.testing.integration.Test.StreamingOutputCallResponse.parseFrom(input);
|
return io.grpc.testing.integration.Test.StreamingOutputCallResponse.parseFrom(input);
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ import io.grpc.Metadata;
|
||||||
import io.grpc.ServerImpl;
|
import io.grpc.ServerImpl;
|
||||||
import io.grpc.ServerInterceptors;
|
import io.grpc.ServerInterceptors;
|
||||||
import io.grpc.Status;
|
import io.grpc.Status;
|
||||||
import io.grpc.proto.ProtoUtils;
|
import io.grpc.protobuf.ProtoUtils;
|
||||||
import io.grpc.stub.MetadataUtils;
|
import io.grpc.stub.MetadataUtils;
|
||||||
import io.grpc.stub.StreamObserver;
|
import io.grpc.stub.StreamObserver;
|
||||||
import io.grpc.stub.StreamRecorder;
|
import io.grpc.stub.StreamRecorder;
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ package io.grpc.testing.integration;
|
||||||
import com.google.protobuf.MessageLite;
|
import com.google.protobuf.MessageLite;
|
||||||
|
|
||||||
import io.grpc.Metadata;
|
import io.grpc.Metadata;
|
||||||
import io.grpc.proto.ProtoUtils;
|
import io.grpc.protobuf.ProtoUtils;
|
||||||
|
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
description = 'gRPC: Nano'
|
description = 'gRPC: Protobuf Nano'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':grpc-core'),
|
compile project(':grpc-core'),
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package io.grpc.nano;
|
package io.grpc.protobuf.nano;
|
||||||
|
|
||||||
import com.google.common.io.ByteStreams;
|
import com.google.common.io.ByteStreams;
|
||||||
import com.google.protobuf.nano.CodedOutputByteBufferNano;
|
import com.google.protobuf.nano.CodedOutputByteBufferNano;
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package io.grpc.nano;
|
package io.grpc.protobuf.nano;
|
||||||
|
|
||||||
import com.google.common.io.ByteStreams;
|
import com.google.common.io.ByteStreams;
|
||||||
import com.google.protobuf.nano.CodedInputByteBufferNano;
|
import com.google.protobuf.nano.CodedInputByteBufferNano;
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package io.grpc.nano;
|
package io.grpc.protobuf.nano;
|
||||||
|
|
||||||
import com.google.protobuf.nano.CodedInputByteBufferNano;
|
import com.google.protobuf.nano.CodedInputByteBufferNano;
|
||||||
import com.google.protobuf.nano.MessageNano;
|
import com.google.protobuf.nano.MessageNano;
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package io.grpc.proto;
|
package io.grpc.protobuf;
|
||||||
|
|
||||||
import com.google.common.io.ByteStreams;
|
import com.google.common.io.ByteStreams;
|
||||||
import com.google.protobuf.CodedOutputStream;
|
import com.google.protobuf.CodedOutputStream;
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package io.grpc.proto;
|
package io.grpc.protobuf;
|
||||||
|
|
||||||
import com.google.protobuf.InvalidProtocolBufferException;
|
import com.google.protobuf.InvalidProtocolBufferException;
|
||||||
import com.google.protobuf.Message;
|
import com.google.protobuf.Message;
|
||||||
|
|
@ -4,7 +4,7 @@ include ":grpc-stub"
|
||||||
include ":grpc-auth"
|
include ":grpc-auth"
|
||||||
include ":grpc-okhttp"
|
include ":grpc-okhttp"
|
||||||
include ":grpc-protobuf"
|
include ":grpc-protobuf"
|
||||||
include ":grpc-nano"
|
include ":grpc-protobuf-nano"
|
||||||
include ":grpc-netty"
|
include ":grpc-netty"
|
||||||
include ":grpc-testing"
|
include ":grpc-testing"
|
||||||
include ":grpc-compiler"
|
include ":grpc-compiler"
|
||||||
|
|
@ -18,7 +18,7 @@ project(':grpc-stub').projectDir = "$rootDir/stub" as File
|
||||||
project(':grpc-auth').projectDir = "$rootDir/auth" as File
|
project(':grpc-auth').projectDir = "$rootDir/auth" as File
|
||||||
project(':grpc-okhttp').projectDir = "$rootDir/okhttp" as File
|
project(':grpc-okhttp').projectDir = "$rootDir/okhttp" as File
|
||||||
project(':grpc-protobuf').projectDir = "$rootDir/protobuf" as File
|
project(':grpc-protobuf').projectDir = "$rootDir/protobuf" as File
|
||||||
project(':grpc-nano').projectDir = "$rootDir/nano" as File
|
project(':grpc-protobuf-nano').projectDir = "$rootDir/nano" as File
|
||||||
project(':grpc-netty').projectDir = "$rootDir/netty" as File
|
project(':grpc-netty').projectDir = "$rootDir/netty" as File
|
||||||
project(':grpc-testing').projectDir = "$rootDir/testing" as File
|
project(':grpc-testing').projectDir = "$rootDir/testing" as File
|
||||||
project(':grpc-compiler').projectDir = "$rootDir/compiler" as File
|
project(':grpc-compiler').projectDir = "$rootDir/compiler" as File
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue