Skip to content

Commit

Permalink
Updated generated code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralph Gasser committed Oct 9, 2019
1 parent 212deac commit 30ccb04
Show file tree
Hide file tree
Showing 5 changed files with 2,069 additions and 1,356 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ public final class CottonDDLGrpc {

private CottonDDLGrpc() {}

public static final String SERVICE_NAME = "CottonDDL";
public static final String SERVICE_NAME = "ch.unibas.dmi.dbis.cottontail.grpc.CottonDDL";

// Static method descriptors that strictly reflect the proto.
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static final io.grpc.MethodDescriptor<com.google.protobuf.Empty,
public static final io.grpc.MethodDescriptor<ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Empty,
ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Schema> METHOD_LIST_SCHEMAS =
io.grpc.MethodDescriptor.<com.google.protobuf.Empty, ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Schema>newBuilder()
io.grpc.MethodDescriptor.<ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Empty, ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Schema>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(generateFullMethodName(
"CottonDDL", "ListSchemas"))
"ch.unibas.dmi.dbis.cottontail.grpc.CottonDDL", "ListSchemas"))
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Empty.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Schema.getDefaultInstance()))
.setSchemaDescriptor(new CottonDDLMethodDescriptorSupplier("ListSchemas"))
Expand All @@ -46,7 +46,7 @@ private CottonDDLGrpc() {}
io.grpc.MethodDescriptor.<ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Schema, ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.SuccessStatus>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"CottonDDL", "CreateSchema"))
"ch.unibas.dmi.dbis.cottontail.grpc.CottonDDL", "CreateSchema"))
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Schema.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
Expand All @@ -59,7 +59,7 @@ private CottonDDLGrpc() {}
io.grpc.MethodDescriptor.<ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Schema, ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.SuccessStatus>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"CottonDDL", "DropSchema"))
"ch.unibas.dmi.dbis.cottontail.grpc.CottonDDL", "DropSchema"))
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Schema.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
Expand All @@ -72,7 +72,7 @@ private CottonDDLGrpc() {}
io.grpc.MethodDescriptor.<ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Schema, ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Entity>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(generateFullMethodName(
"CottonDDL", "ListEntities"))
"ch.unibas.dmi.dbis.cottontail.grpc.CottonDDL", "ListEntities"))
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Schema.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
Expand All @@ -85,7 +85,7 @@ private CottonDDLGrpc() {}
io.grpc.MethodDescriptor.<ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.CreateEntityMessage, ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.SuccessStatus>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"CottonDDL", "CreateEntity"))
"ch.unibas.dmi.dbis.cottontail.grpc.CottonDDL", "CreateEntity"))
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.CreateEntityMessage.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
Expand All @@ -98,7 +98,7 @@ private CottonDDLGrpc() {}
io.grpc.MethodDescriptor.<ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Entity, ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.SuccessStatus>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"CottonDDL", "DropEntity"))
"ch.unibas.dmi.dbis.cottontail.grpc.CottonDDL", "DropEntity"))
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Entity.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
Expand All @@ -111,7 +111,7 @@ private CottonDDLGrpc() {}
io.grpc.MethodDescriptor.<ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.CreateIndexMessage, ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.SuccessStatus>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"CottonDDL", "CreateIndex"))
"ch.unibas.dmi.dbis.cottontail.grpc.CottonDDL", "CreateIndex"))
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.CreateIndexMessage.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
Expand All @@ -124,7 +124,7 @@ private CottonDDLGrpc() {}
io.grpc.MethodDescriptor.<ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.DropIndexMessage, ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.SuccessStatus>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"CottonDDL", "DropIndex"))
"ch.unibas.dmi.dbis.cottontail.grpc.CottonDDL", "DropIndex"))
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.DropIndexMessage.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
Expand All @@ -137,7 +137,7 @@ private CottonDDLGrpc() {}
io.grpc.MethodDescriptor.<ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.RebuildIndexMessage, ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.SuccessStatus>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"CottonDDL", "RebuildIndex"))
"ch.unibas.dmi.dbis.cottontail.grpc.CottonDDL", "RebuildIndex"))
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.RebuildIndexMessage.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
Expand All @@ -150,7 +150,7 @@ private CottonDDLGrpc() {}
io.grpc.MethodDescriptor.<ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Entity, ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.SuccessStatus>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"CottonDDL", "OptimizeEntity"))
"ch.unibas.dmi.dbis.cottontail.grpc.CottonDDL", "OptimizeEntity"))
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Entity.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
Expand All @@ -163,7 +163,7 @@ private CottonDDLGrpc() {}
io.grpc.MethodDescriptor.<ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Entity, ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.SuccessStatus>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"CottonDDL", "TruncateEntity"))
"ch.unibas.dmi.dbis.cottontail.grpc.CottonDDL", "TruncateEntity"))
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Entity.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
Expand Down Expand Up @@ -203,7 +203,7 @@ public static abstract class CottonDDLImplBase implements io.grpc.BindableServic
* Handling DB schemas.
* </pre>
*/
public void listSchemas(com.google.protobuf.Empty request,
public void listSchemas(ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Empty request,
io.grpc.stub.StreamObserver<ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Schema> responseObserver) {
asyncUnimplementedUnaryCall(METHOD_LIST_SCHEMAS, responseObserver);
}
Expand Down Expand Up @@ -290,7 +290,7 @@ public void truncateEntity(ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Ent
METHOD_LIST_SCHEMAS,
asyncServerStreamingCall(
new MethodHandlers<
com.google.protobuf.Empty,
ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Empty,
ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Schema>(
this, METHODID_LIST_SCHEMAS)))
.addMethod(
Expand Down Expand Up @@ -390,7 +390,7 @@ protected CottonDDLStub build(io.grpc.Channel channel,
* Handling DB schemas.
* </pre>
*/
public void listSchemas(com.google.protobuf.Empty request,
public void listSchemas(ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Empty request,
io.grpc.stub.StreamObserver<ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Schema> responseObserver) {
asyncServerStreamingCall(
getChannel().newCall(METHOD_LIST_SCHEMAS, getCallOptions()), request, responseObserver);
Expand Down Expand Up @@ -507,7 +507,7 @@ protected CottonDDLBlockingStub build(io.grpc.Channel channel,
* </pre>
*/
public java.util.Iterator<ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Schema> listSchemas(
com.google.protobuf.Empty request) {
ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Empty request) {
return blockingServerStreamingCall(
getChannel(), METHOD_LIST_SCHEMAS, getCallOptions(), request);
}
Expand Down Expand Up @@ -714,7 +714,7 @@ private static final class MethodHandlers<Req, Resp> implements
public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
switch (methodId) {
case METHODID_LIST_SCHEMAS:
serviceImpl.listSchemas((com.google.protobuf.Empty) request,
serviceImpl.listSchemas((ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Empty) request,
(io.grpc.stub.StreamObserver<ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Schema>) responseObserver);
break;
case METHODID_CREATE_SCHEMA:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public final class CottonDMLGrpc {

private CottonDMLGrpc() {}

public static final String SERVICE_NAME = "CottonDML";
public static final String SERVICE_NAME = "ch.unibas.dmi.dbis.cottontail.grpc.CottonDML";

// Static method descriptors that strictly reflect the proto.
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
Expand All @@ -33,7 +33,7 @@ private CottonDMLGrpc() {}
io.grpc.MethodDescriptor.<ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.InsertMessage, ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.InsertStatus>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"CottonDML", "Insert"))
"ch.unibas.dmi.dbis.cottontail.grpc.CottonDML", "Insert"))
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.InsertMessage.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
Expand All @@ -46,7 +46,7 @@ private CottonDMLGrpc() {}
io.grpc.MethodDescriptor.<ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.InsertMessage, ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.InsertStatus>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
.setFullMethodName(generateFullMethodName(
"CottonDML", "InsertStream"))
"ch.unibas.dmi.dbis.cottontail.grpc.CottonDML", "InsertStream"))
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.InsertMessage.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public final class CottonDQLGrpc {

private CottonDQLGrpc() {}

public static final String SERVICE_NAME = "CottonDQL";
public static final String SERVICE_NAME = "ch.unibas.dmi.dbis.cottontail.grpc.CottonDQL";

// Static method descriptors that strictly reflect the proto.
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
Expand All @@ -33,7 +33,7 @@ private CottonDQLGrpc() {}
io.grpc.MethodDescriptor.<ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.QueryMessage, ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.QueryResponseMessage>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(generateFullMethodName(
"CottonDQL", "Query"))
"ch.unibas.dmi.dbis.cottontail.grpc.CottonDQL", "Query"))
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.QueryMessage.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
Expand All @@ -46,22 +46,22 @@ private CottonDQLGrpc() {}
io.grpc.MethodDescriptor.<ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.BatchedQueryMessage, ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.QueryResponseMessage>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(generateFullMethodName(
"CottonDQL", "BatchedQuery"))
"ch.unibas.dmi.dbis.cottontail.grpc.CottonDQL", "BatchedQuery"))
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.BatchedQueryMessage.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.QueryResponseMessage.getDefaultInstance()))
.setSchemaDescriptor(new CottonDQLMethodDescriptorSupplier("BatchedQuery"))
.build();
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static final io.grpc.MethodDescriptor<com.google.protobuf.Empty,
public static final io.grpc.MethodDescriptor<ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Empty,
ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.SuccessStatus> METHOD_PING =
io.grpc.MethodDescriptor.<com.google.protobuf.Empty, ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.SuccessStatus>newBuilder()
io.grpc.MethodDescriptor.<ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Empty, ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.SuccessStatus>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"CottonDQL", "Ping"))
"ch.unibas.dmi.dbis.cottontail.grpc.CottonDQL", "Ping"))
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Empty.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.SuccessStatus.getDefaultInstance()))
.setSchemaDescriptor(new CottonDQLMethodDescriptorSupplier("Ping"))
Expand Down Expand Up @@ -110,7 +110,7 @@ public void batchedQuery(ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Batch

/**
*/
public void ping(com.google.protobuf.Empty request,
public void ping(ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Empty request,
io.grpc.stub.StreamObserver<ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.SuccessStatus> responseObserver) {
asyncUnimplementedUnaryCall(METHOD_PING, responseObserver);
}
Expand All @@ -135,7 +135,7 @@ public void ping(com.google.protobuf.Empty request,
METHOD_PING,
asyncUnaryCall(
new MethodHandlers<
com.google.protobuf.Empty,
ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Empty,
ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.SuccessStatus>(
this, METHODID_PING)))
.build();
Expand Down Expand Up @@ -178,7 +178,7 @@ public void batchedQuery(ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Batch

/**
*/
public void ping(com.google.protobuf.Empty request,
public void ping(ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Empty request,
io.grpc.stub.StreamObserver<ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.SuccessStatus> responseObserver) {
asyncUnaryCall(
getChannel().newCall(METHOD_PING, getCallOptions()), request, responseObserver);
Expand Down Expand Up @@ -221,7 +221,7 @@ public java.util.Iterator<ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Quer

/**
*/
public ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.SuccessStatus ping(com.google.protobuf.Empty request) {
public ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.SuccessStatus ping(ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Empty request) {
return blockingUnaryCall(
getChannel(), METHOD_PING, getCallOptions(), request);
}
Expand All @@ -248,7 +248,7 @@ protected CottonDQLFutureStub build(io.grpc.Channel channel,
/**
*/
public com.google.common.util.concurrent.ListenableFuture<ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.SuccessStatus> ping(
com.google.protobuf.Empty request) {
ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Empty request) {
return futureUnaryCall(
getChannel().newCall(METHOD_PING, getCallOptions()), request);
}
Expand Down Expand Up @@ -284,7 +284,7 @@ public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserv
(io.grpc.stub.StreamObserver<ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.QueryResponseMessage>) responseObserver);
break;
case METHODID_PING:
serviceImpl.ping((com.google.protobuf.Empty) request,
serviceImpl.ping((ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.Empty) request,
(io.grpc.stub.StreamObserver<ch.unibas.dmi.dbis.cottontail.grpc.CottontailGrpc.SuccessStatus>) responseObserver);
break;
default:
Expand Down
Loading

0 comments on commit 30ccb04

Please sign in to comment.