stub,compiler: Rollback Abstract{Future,Blocking,Async}Stub (#6317)

rollback of #6304 & #6196
This commit is contained in:
Jihun Cho 2019-10-22 13:27:30 -07:00 committed by GitHub
parent f2d0f87d2e
commit 2eb3f8c34e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
41 changed files with 946 additions and 1909 deletions

View File

@ -62,14 +62,7 @@ public final class HandshakerServiceGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static HandshakerServiceStub newStub(io.grpc.Channel channel) { public static HandshakerServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<HandshakerServiceStub> factory = return new HandshakerServiceStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<HandshakerServiceStub>() {
@java.lang.Override
public HandshakerServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new HandshakerServiceStub(channel, callOptions);
}
};
return HandshakerServiceStub.newStub(factory, channel);
} }
/** /**
@ -77,14 +70,7 @@ public final class HandshakerServiceGrpc {
*/ */
public static HandshakerServiceBlockingStub newBlockingStub( public static HandshakerServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<HandshakerServiceBlockingStub> factory = return new HandshakerServiceBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<HandshakerServiceBlockingStub>() {
@java.lang.Override
public HandshakerServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new HandshakerServiceBlockingStub(channel, callOptions);
}
};
return HandshakerServiceBlockingStub.newStub(factory, channel);
} }
/** /**
@ -92,14 +78,7 @@ public final class HandshakerServiceGrpc {
*/ */
public static HandshakerServiceFutureStub newFutureStub( public static HandshakerServiceFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<HandshakerServiceFutureStub> factory = return new HandshakerServiceFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<HandshakerServiceFutureStub>() {
@java.lang.Override
public HandshakerServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new HandshakerServiceFutureStub(channel, callOptions);
}
};
return HandshakerServiceFutureStub.newStub(factory, channel);
} }
/** /**
@ -136,15 +115,19 @@ public final class HandshakerServiceGrpc {
/** /**
*/ */
public static final class HandshakerServiceStub extends io.grpc.stub.AbstractAsyncStub<HandshakerServiceStub> { public static final class HandshakerServiceStub extends io.grpc.stub.AbstractStub<HandshakerServiceStub> {
private HandshakerServiceStub( private HandshakerServiceStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private HandshakerServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected HandshakerServiceStub build( protected HandshakerServiceStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new HandshakerServiceStub(channel, callOptions); return new HandshakerServiceStub(channel, callOptions);
} }
@ -167,30 +150,38 @@ public final class HandshakerServiceGrpc {
/** /**
*/ */
public static final class HandshakerServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<HandshakerServiceBlockingStub> { public static final class HandshakerServiceBlockingStub extends io.grpc.stub.AbstractStub<HandshakerServiceBlockingStub> {
private HandshakerServiceBlockingStub( private HandshakerServiceBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private HandshakerServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected HandshakerServiceBlockingStub build( protected HandshakerServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new HandshakerServiceBlockingStub(channel, callOptions); return new HandshakerServiceBlockingStub(channel, callOptions);
} }
} }
/** /**
*/ */
public static final class HandshakerServiceFutureStub extends io.grpc.stub.AbstractFutureStub<HandshakerServiceFutureStub> { public static final class HandshakerServiceFutureStub extends io.grpc.stub.AbstractStub<HandshakerServiceFutureStub> {
private HandshakerServiceFutureStub( private HandshakerServiceFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private HandshakerServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected HandshakerServiceFutureStub build( protected HandshakerServiceFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new HandshakerServiceFutureStub(channel, callOptions); return new HandshakerServiceFutureStub(channel, callOptions);
} }
} }

View File

@ -186,14 +186,7 @@ public final class BenchmarkServiceGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static BenchmarkServiceStub newStub(io.grpc.Channel channel) { public static BenchmarkServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<BenchmarkServiceStub> factory = return new BenchmarkServiceStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<BenchmarkServiceStub>() {
@java.lang.Override
public BenchmarkServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new BenchmarkServiceStub(channel, callOptions);
}
};
return BenchmarkServiceStub.newStub(factory, channel);
} }
/** /**
@ -201,14 +194,7 @@ public final class BenchmarkServiceGrpc {
*/ */
public static BenchmarkServiceBlockingStub newBlockingStub( public static BenchmarkServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<BenchmarkServiceBlockingStub> factory = return new BenchmarkServiceBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<BenchmarkServiceBlockingStub>() {
@java.lang.Override
public BenchmarkServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new BenchmarkServiceBlockingStub(channel, callOptions);
}
};
return BenchmarkServiceBlockingStub.newStub(factory, channel);
} }
/** /**
@ -216,14 +202,7 @@ public final class BenchmarkServiceGrpc {
*/ */
public static BenchmarkServiceFutureStub newFutureStub( public static BenchmarkServiceFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<BenchmarkServiceFutureStub> factory = return new BenchmarkServiceFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<BenchmarkServiceFutureStub>() {
@java.lang.Override
public BenchmarkServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new BenchmarkServiceFutureStub(channel, callOptions);
}
};
return BenchmarkServiceFutureStub.newStub(factory, channel);
} }
/** /**
@ -329,15 +308,19 @@ public final class BenchmarkServiceGrpc {
/** /**
*/ */
public static final class BenchmarkServiceStub extends io.grpc.stub.AbstractAsyncStub<BenchmarkServiceStub> { public static final class BenchmarkServiceStub extends io.grpc.stub.AbstractStub<BenchmarkServiceStub> {
private BenchmarkServiceStub( private BenchmarkServiceStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private BenchmarkServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected BenchmarkServiceStub build( protected BenchmarkServiceStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new BenchmarkServiceStub(channel, callOptions); return new BenchmarkServiceStub(channel, callOptions);
} }
@ -405,15 +388,19 @@ public final class BenchmarkServiceGrpc {
/** /**
*/ */
public static final class BenchmarkServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<BenchmarkServiceBlockingStub> { public static final class BenchmarkServiceBlockingStub extends io.grpc.stub.AbstractStub<BenchmarkServiceBlockingStub> {
private BenchmarkServiceBlockingStub( private BenchmarkServiceBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private BenchmarkServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected BenchmarkServiceBlockingStub build( protected BenchmarkServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new BenchmarkServiceBlockingStub(channel, callOptions); return new BenchmarkServiceBlockingStub(channel, callOptions);
} }
@ -443,15 +430,19 @@ public final class BenchmarkServiceGrpc {
/** /**
*/ */
public static final class BenchmarkServiceFutureStub extends io.grpc.stub.AbstractFutureStub<BenchmarkServiceFutureStub> { public static final class BenchmarkServiceFutureStub extends io.grpc.stub.AbstractStub<BenchmarkServiceFutureStub> {
private BenchmarkServiceFutureStub( private BenchmarkServiceFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private BenchmarkServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected BenchmarkServiceFutureStub build( protected BenchmarkServiceFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new BenchmarkServiceFutureStub(channel, callOptions); return new BenchmarkServiceFutureStub(channel, callOptions);
} }

View File

@ -62,14 +62,7 @@ public final class ReportQpsScenarioServiceGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static ReportQpsScenarioServiceStub newStub(io.grpc.Channel channel) { public static ReportQpsScenarioServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<ReportQpsScenarioServiceStub> factory = return new ReportQpsScenarioServiceStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<ReportQpsScenarioServiceStub>() {
@java.lang.Override
public ReportQpsScenarioServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ReportQpsScenarioServiceStub(channel, callOptions);
}
};
return ReportQpsScenarioServiceStub.newStub(factory, channel);
} }
/** /**
@ -77,14 +70,7 @@ public final class ReportQpsScenarioServiceGrpc {
*/ */
public static ReportQpsScenarioServiceBlockingStub newBlockingStub( public static ReportQpsScenarioServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<ReportQpsScenarioServiceBlockingStub> factory = return new ReportQpsScenarioServiceBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<ReportQpsScenarioServiceBlockingStub>() {
@java.lang.Override
public ReportQpsScenarioServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ReportQpsScenarioServiceBlockingStub(channel, callOptions);
}
};
return ReportQpsScenarioServiceBlockingStub.newStub(factory, channel);
} }
/** /**
@ -92,14 +78,7 @@ public final class ReportQpsScenarioServiceGrpc {
*/ */
public static ReportQpsScenarioServiceFutureStub newFutureStub( public static ReportQpsScenarioServiceFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<ReportQpsScenarioServiceFutureStub> factory = return new ReportQpsScenarioServiceFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<ReportQpsScenarioServiceFutureStub>() {
@java.lang.Override
public ReportQpsScenarioServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ReportQpsScenarioServiceFutureStub(channel, callOptions);
}
};
return ReportQpsScenarioServiceFutureStub.newStub(factory, channel);
} }
/** /**
@ -131,15 +110,19 @@ public final class ReportQpsScenarioServiceGrpc {
/** /**
*/ */
public static final class ReportQpsScenarioServiceStub extends io.grpc.stub.AbstractAsyncStub<ReportQpsScenarioServiceStub> { public static final class ReportQpsScenarioServiceStub extends io.grpc.stub.AbstractStub<ReportQpsScenarioServiceStub> {
private ReportQpsScenarioServiceStub( private ReportQpsScenarioServiceStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private ReportQpsScenarioServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected ReportQpsScenarioServiceStub build( protected ReportQpsScenarioServiceStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new ReportQpsScenarioServiceStub(channel, callOptions); return new ReportQpsScenarioServiceStub(channel, callOptions);
} }
@ -157,15 +140,19 @@ public final class ReportQpsScenarioServiceGrpc {
/** /**
*/ */
public static final class ReportQpsScenarioServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<ReportQpsScenarioServiceBlockingStub> { public static final class ReportQpsScenarioServiceBlockingStub extends io.grpc.stub.AbstractStub<ReportQpsScenarioServiceBlockingStub> {
private ReportQpsScenarioServiceBlockingStub( private ReportQpsScenarioServiceBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private ReportQpsScenarioServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected ReportQpsScenarioServiceBlockingStub build( protected ReportQpsScenarioServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new ReportQpsScenarioServiceBlockingStub(channel, callOptions); return new ReportQpsScenarioServiceBlockingStub(channel, callOptions);
} }
@ -182,15 +169,19 @@ public final class ReportQpsScenarioServiceGrpc {
/** /**
*/ */
public static final class ReportQpsScenarioServiceFutureStub extends io.grpc.stub.AbstractFutureStub<ReportQpsScenarioServiceFutureStub> { public static final class ReportQpsScenarioServiceFutureStub extends io.grpc.stub.AbstractStub<ReportQpsScenarioServiceFutureStub> {
private ReportQpsScenarioServiceFutureStub( private ReportQpsScenarioServiceFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private ReportQpsScenarioServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected ReportQpsScenarioServiceFutureStub build( protected ReportQpsScenarioServiceFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new ReportQpsScenarioServiceFutureStub(channel, callOptions); return new ReportQpsScenarioServiceFutureStub(channel, callOptions);
} }

View File

@ -155,14 +155,7 @@ public final class WorkerServiceGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static WorkerServiceStub newStub(io.grpc.Channel channel) { public static WorkerServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<WorkerServiceStub> factory = return new WorkerServiceStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<WorkerServiceStub>() {
@java.lang.Override
public WorkerServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new WorkerServiceStub(channel, callOptions);
}
};
return WorkerServiceStub.newStub(factory, channel);
} }
/** /**
@ -170,14 +163,7 @@ public final class WorkerServiceGrpc {
*/ */
public static WorkerServiceBlockingStub newBlockingStub( public static WorkerServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<WorkerServiceBlockingStub> factory = return new WorkerServiceBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<WorkerServiceBlockingStub>() {
@java.lang.Override
public WorkerServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new WorkerServiceBlockingStub(channel, callOptions);
}
};
return WorkerServiceBlockingStub.newStub(factory, channel);
} }
/** /**
@ -185,14 +171,7 @@ public final class WorkerServiceGrpc {
*/ */
public static WorkerServiceFutureStub newFutureStub( public static WorkerServiceFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<WorkerServiceFutureStub> factory = return new WorkerServiceFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<WorkerServiceFutureStub>() {
@java.lang.Override
public WorkerServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new WorkerServiceFutureStub(channel, callOptions);
}
};
return WorkerServiceFutureStub.newStub(factory, channel);
} }
/** /**
@ -285,15 +264,19 @@ public final class WorkerServiceGrpc {
/** /**
*/ */
public static final class WorkerServiceStub extends io.grpc.stub.AbstractAsyncStub<WorkerServiceStub> { public static final class WorkerServiceStub extends io.grpc.stub.AbstractStub<WorkerServiceStub> {
private WorkerServiceStub( private WorkerServiceStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private WorkerServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected WorkerServiceStub build( protected WorkerServiceStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new WorkerServiceStub(channel, callOptions); return new WorkerServiceStub(channel, callOptions);
} }
@ -354,15 +337,19 @@ public final class WorkerServiceGrpc {
/** /**
*/ */
public static final class WorkerServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<WorkerServiceBlockingStub> { public static final class WorkerServiceBlockingStub extends io.grpc.stub.AbstractStub<WorkerServiceBlockingStub> {
private WorkerServiceBlockingStub( private WorkerServiceBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private WorkerServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected WorkerServiceBlockingStub build( protected WorkerServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new WorkerServiceBlockingStub(channel, callOptions); return new WorkerServiceBlockingStub(channel, callOptions);
} }
@ -389,15 +376,19 @@ public final class WorkerServiceGrpc {
/** /**
*/ */
public static final class WorkerServiceFutureStub extends io.grpc.stub.AbstractFutureStub<WorkerServiceFutureStub> { public static final class WorkerServiceFutureStub extends io.grpc.stub.AbstractStub<WorkerServiceFutureStub> {
private WorkerServiceFutureStub( private WorkerServiceFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private WorkerServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected WorkerServiceFutureStub build( protected WorkerServiceFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new WorkerServiceFutureStub(channel, callOptions); return new WorkerServiceFutureStub(channel, callOptions);
} }

View File

@ -489,37 +489,6 @@ static void PrintBindServiceMethodBody(const ServiceDescriptor* service,
std::map<string, string>* vars, std::map<string, string>* vars,
Printer* p); Printer* p);
// Prints a StubFactory for given service / stub type.
static void PrintStubFactory(
const ServiceDescriptor* service,
std::map<string, string>* vars,
Printer* p, StubType type) {
string stub_type_name;
switch (type) {
case ASYNC_CLIENT_IMPL:
stub_type_name = "";
break;
case FUTURE_CLIENT_IMPL:
stub_type_name = "Future";
break;
case BLOCKING_CLIENT_IMPL:
stub_type_name = "Blocking";
break;
default:
GRPC_CODEGEN_FAIL << "Cannot generate StubFactory for StubType: " << type;
}
(*vars)["stub_full_name"] = (*vars)["service_name"] + stub_type_name + "Stub";
p->Print(
*vars,
"$StubFactory$<$stub_full_name$> factory =\n"
" new $StubFactory$<$stub_full_name$>() {\n"
" @$Override$\n"
" public $stub_full_name$ newStub($Channel$ channel, $CallOptions$ callOptions) {\n"
" return new $stub_full_name$(channel, callOptions);\n"
" }\n"
" };\n");
}
// Prints a client interface or implementation class, or a server interface. // Prints a client interface or implementation class, or a server interface.
static void PrintStub( static void PrintStub(
const ServiceDescriptor* service, const ServiceDescriptor* service,
@ -530,7 +499,6 @@ static void PrintStub(
(*vars)["abstract_name"] = service_name + "ImplBase"; (*vars)["abstract_name"] = service_name + "ImplBase";
string stub_name = service_name; string stub_name = service_name;
string client_name = service_name; string client_name = service_name;
string stub_base_class_name = "AbstractStub";
CallType call_type; CallType call_type;
bool impl_base = false; bool impl_base = false;
bool interface = false; bool interface = false;
@ -542,7 +510,6 @@ static void PrintStub(
case ASYNC_CLIENT_IMPL: case ASYNC_CLIENT_IMPL:
call_type = ASYNC_CALL; call_type = ASYNC_CALL;
stub_name += "Stub"; stub_name += "Stub";
stub_base_class_name = "AbstractAsyncStub";
break; break;
case BLOCKING_CLIENT_INTERFACE: case BLOCKING_CLIENT_INTERFACE:
interface = true; interface = true;
@ -551,7 +518,6 @@ static void PrintStub(
call_type = BLOCKING_CALL; call_type = BLOCKING_CALL;
stub_name += "BlockingStub"; stub_name += "BlockingStub";
client_name += "BlockingClient"; client_name += "BlockingClient";
stub_base_class_name = "AbstractBlockingStub";
break; break;
case FUTURE_CLIENT_INTERFACE: case FUTURE_CLIENT_INTERFACE:
interface = true; interface = true;
@ -560,20 +526,16 @@ static void PrintStub(
call_type = FUTURE_CALL; call_type = FUTURE_CALL;
stub_name += "FutureStub"; stub_name += "FutureStub";
client_name += "FutureClient"; client_name += "FutureClient";
stub_base_class_name = "AbstractFutureStub";
break; break;
case ASYNC_INTERFACE: case ASYNC_INTERFACE:
call_type = ASYNC_CALL; call_type = ASYNC_CALL;
interface = true; interface = true;
stub_name += "Stub";
stub_base_class_name = "AbstractAsyncStub";
break; break;
default: default:
GRPC_CODEGEN_FAIL << "Cannot determine class name for StubType: " << type; GRPC_CODEGEN_FAIL << "Cannot determine class name for StubType: " << type;
} }
(*vars)["stub_name"] = stub_name; (*vars)["stub_name"] = stub_name;
(*vars)["client_name"] = client_name; (*vars)["client_name"] = client_name;
(*vars)["stub_base_class_name"] = (*vars)[stub_base_class_name];
// Class head // Class head
if (!interface) { if (!interface) {
@ -587,13 +549,11 @@ static void PrintStub(
if (impl_base) { if (impl_base) {
p->Print( p->Print(
*vars, *vars,
"public static abstract class $abstract_name$" "public static abstract class $abstract_name$ implements $BindableService$ {\n");
" implements $BindableService$ {\n");
} else { } else {
p->Print( p->Print(
*vars, *vars,
"public static final class $stub_name$" "public static final class $stub_name$ extends $AbstractStub$<$stub_name$> {\n");
" extends $stub_base_class_name$<$stub_name$> {\n");
} }
p->Indent(); p->Indent();
@ -601,9 +561,15 @@ static void PrintStub(
if (!impl_base && !interface) { if (!impl_base && !interface) {
p->Print( p->Print(
*vars, *vars,
"private $stub_name$(\n" "private $stub_name$($Channel$ channel) {\n");
" $Channel$ channel, $CallOptions$ callOptions) {" p->Indent();
"\n"); p->Print("super(channel);\n");
p->Outdent();
p->Print("}\n\n");
p->Print(
*vars,
"private $stub_name$($Channel$ channel,\n"
" $CallOptions$ callOptions) {\n");
p->Indent(); p->Indent();
p->Print("super(channel, callOptions);\n"); p->Print("super(channel, callOptions);\n");
p->Outdent(); p->Outdent();
@ -611,9 +577,8 @@ static void PrintStub(
p->Print( p->Print(
*vars, *vars,
"@$Override$\n" "@$Override$\n"
"protected $stub_name$ build(\n" "protected $stub_name$ build($Channel$ channel,\n"
" $Channel$ channel, $CallOptions$ callOptions) {" " $CallOptions$ callOptions) {\n");
"\n");
p->Indent(); p->Indent();
p->Print( p->Print(
*vars, *vars,
@ -1111,8 +1076,9 @@ static void PrintService(const ServiceDescriptor* service,
*vars, *vars,
"public static $service_name$Stub newStub($Channel$ channel) {\n"); "public static $service_name$Stub newStub($Channel$ channel) {\n");
p->Indent(); p->Indent();
PrintStubFactory(service, vars, p, ASYNC_CLIENT_IMPL); p->Print(
p->Print(*vars, "return $service_name$Stub.newStub(factory, channel);\n"); *vars,
"return new $service_name$Stub(channel);\n");
p->Outdent(); p->Outdent();
p->Print("}\n\n"); p->Print("}\n\n");
@ -1124,10 +1090,9 @@ static void PrintService(const ServiceDescriptor* service,
"public static $service_name$BlockingStub newBlockingStub(\n" "public static $service_name$BlockingStub newBlockingStub(\n"
" $Channel$ channel) {\n"); " $Channel$ channel) {\n");
p->Indent(); p->Indent();
PrintStubFactory(service, vars, p, BLOCKING_CLIENT_IMPL);
p->Print( p->Print(
*vars, *vars,
"return $service_name$BlockingStub.newStub(factory, channel);\n"); "return new $service_name$BlockingStub(channel);\n");
p->Outdent(); p->Outdent();
p->Print("}\n\n"); p->Print("}\n\n");
@ -1139,10 +1104,9 @@ static void PrintService(const ServiceDescriptor* service,
"public static $service_name$FutureStub newFutureStub(\n" "public static $service_name$FutureStub newFutureStub(\n"
" $Channel$ channel) {\n"); " $Channel$ channel) {\n");
p->Indent(); p->Indent();
PrintStubFactory(service, vars, p, FUTURE_CLIENT_IMPL);
p->Print( p->Print(
*vars, *vars,
"return $service_name$FutureStub.newStub(factory, channel);\n"); "return new $service_name$FutureStub(channel);\n");
p->Outdent(); p->Outdent();
p->Print("}\n\n"); p->Print("}\n\n");
@ -1216,10 +1180,6 @@ void GenerateService(const ServiceDescriptor* service,
vars["ProtoMethodDescriptorSupplier"] = vars["ProtoMethodDescriptorSupplier"] =
"io.grpc.protobuf.ProtoMethodDescriptorSupplier"; "io.grpc.protobuf.ProtoMethodDescriptorSupplier";
vars["AbstractStub"] = "io.grpc.stub.AbstractStub"; vars["AbstractStub"] = "io.grpc.stub.AbstractStub";
vars["AbstractAsyncStub"] = "io.grpc.stub.AbstractAsyncStub";
vars["AbstractFutureStub"] = "io.grpc.stub.AbstractFutureStub";
vars["AbstractBlockingStub"] = "io.grpc.stub.AbstractBlockingStub";
vars["StubFactory"] = "io.grpc.stub.AbstractStub.StubFactory";
vars["RpcMethod"] = "io.grpc.stub.annotations.RpcMethod"; vars["RpcMethod"] = "io.grpc.stub.annotations.RpcMethod";
vars["MethodDescriptor"] = "io.grpc.MethodDescriptor"; vars["MethodDescriptor"] = "io.grpc.MethodDescriptor";
vars["StreamObserver"] = "io.grpc.stub.StreamObserver"; vars["StreamObserver"] = "io.grpc.stub.StreamObserver";

View File

@ -66,14 +66,7 @@ public final class TestDeprecatedServiceGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static TestDeprecatedServiceStub newStub(io.grpc.Channel channel) { public static TestDeprecatedServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<TestDeprecatedServiceStub> factory = return new TestDeprecatedServiceStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<TestDeprecatedServiceStub>() {
@java.lang.Override
public TestDeprecatedServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TestDeprecatedServiceStub(channel, callOptions);
}
};
return TestDeprecatedServiceStub.newStub(factory, channel);
} }
/** /**
@ -81,14 +74,7 @@ public final class TestDeprecatedServiceGrpc {
*/ */
public static TestDeprecatedServiceBlockingStub newBlockingStub( public static TestDeprecatedServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<TestDeprecatedServiceBlockingStub> factory = return new TestDeprecatedServiceBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<TestDeprecatedServiceBlockingStub>() {
@java.lang.Override
public TestDeprecatedServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TestDeprecatedServiceBlockingStub(channel, callOptions);
}
};
return TestDeprecatedServiceBlockingStub.newStub(factory, channel);
} }
/** /**
@ -96,14 +82,7 @@ public final class TestDeprecatedServiceGrpc {
*/ */
public static TestDeprecatedServiceFutureStub newFutureStub( public static TestDeprecatedServiceFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<TestDeprecatedServiceFutureStub> factory = return new TestDeprecatedServiceFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<TestDeprecatedServiceFutureStub>() {
@java.lang.Override
public TestDeprecatedServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TestDeprecatedServiceFutureStub(channel, callOptions);
}
};
return TestDeprecatedServiceFutureStub.newStub(factory, channel);
} }
/** /**
@ -144,15 +123,19 @@ public final class TestDeprecatedServiceGrpc {
* </pre> * </pre>
*/ */
@java.lang.Deprecated @java.lang.Deprecated
public static final class TestDeprecatedServiceStub extends io.grpc.stub.AbstractAsyncStub<TestDeprecatedServiceStub> { public static final class TestDeprecatedServiceStub extends io.grpc.stub.AbstractStub<TestDeprecatedServiceStub> {
private TestDeprecatedServiceStub( private TestDeprecatedServiceStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private TestDeprecatedServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected TestDeprecatedServiceStub build( protected TestDeprecatedServiceStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new TestDeprecatedServiceStub(channel, callOptions); return new TestDeprecatedServiceStub(channel, callOptions);
} }
@ -175,15 +158,19 @@ public final class TestDeprecatedServiceGrpc {
* </pre> * </pre>
*/ */
@java.lang.Deprecated @java.lang.Deprecated
public static final class TestDeprecatedServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<TestDeprecatedServiceBlockingStub> { public static final class TestDeprecatedServiceBlockingStub extends io.grpc.stub.AbstractStub<TestDeprecatedServiceBlockingStub> {
private TestDeprecatedServiceBlockingStub( private TestDeprecatedServiceBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private TestDeprecatedServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected TestDeprecatedServiceBlockingStub build( protected TestDeprecatedServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new TestDeprecatedServiceBlockingStub(channel, callOptions); return new TestDeprecatedServiceBlockingStub(channel, callOptions);
} }
@ -205,15 +192,19 @@ public final class TestDeprecatedServiceGrpc {
* </pre> * </pre>
*/ */
@java.lang.Deprecated @java.lang.Deprecated
public static final class TestDeprecatedServiceFutureStub extends io.grpc.stub.AbstractFutureStub<TestDeprecatedServiceFutureStub> { public static final class TestDeprecatedServiceFutureStub extends io.grpc.stub.AbstractStub<TestDeprecatedServiceFutureStub> {
private TestDeprecatedServiceFutureStub( private TestDeprecatedServiceFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private TestDeprecatedServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected TestDeprecatedServiceFutureStub build( protected TestDeprecatedServiceFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new TestDeprecatedServiceFutureStub(channel, callOptions); return new TestDeprecatedServiceFutureStub(channel, callOptions);
} }

View File

@ -284,14 +284,7 @@ public final class TestServiceGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static TestServiceStub newStub(io.grpc.Channel channel) { public static TestServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<TestServiceStub> factory = return new TestServiceStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<TestServiceStub>() {
@java.lang.Override
public TestServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TestServiceStub(channel, callOptions);
}
};
return TestServiceStub.newStub(factory, channel);
} }
/** /**
@ -299,14 +292,7 @@ public final class TestServiceGrpc {
*/ */
public static TestServiceBlockingStub newBlockingStub( public static TestServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<TestServiceBlockingStub> factory = return new TestServiceBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<TestServiceBlockingStub>() {
@java.lang.Override
public TestServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TestServiceBlockingStub(channel, callOptions);
}
};
return TestServiceBlockingStub.newStub(factory, channel);
} }
/** /**
@ -314,14 +300,7 @@ public final class TestServiceGrpc {
*/ */
public static TestServiceFutureStub newFutureStub( public static TestServiceFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<TestServiceFutureStub> factory = return new TestServiceFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<TestServiceFutureStub>() {
@java.lang.Override
public TestServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TestServiceFutureStub(channel, callOptions);
}
};
return TestServiceFutureStub.newStub(factory, channel);
} }
/** /**
@ -487,15 +466,19 @@ public final class TestServiceGrpc {
* Test service that supports all call types. * Test service that supports all call types.
* </pre> * </pre>
*/ */
public static final class TestServiceStub extends io.grpc.stub.AbstractAsyncStub<TestServiceStub> { public static final class TestServiceStub extends io.grpc.stub.AbstractStub<TestServiceStub> {
private TestServiceStub( private TestServiceStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private TestServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected TestServiceStub build( protected TestServiceStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new TestServiceStub(channel, callOptions); return new TestServiceStub(channel, callOptions);
} }
@ -602,15 +585,19 @@ public final class TestServiceGrpc {
* Test service that supports all call types. * Test service that supports all call types.
* </pre> * </pre>
*/ */
public static final class TestServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<TestServiceBlockingStub> { public static final class TestServiceBlockingStub extends io.grpc.stub.AbstractStub<TestServiceBlockingStub> {
private TestServiceBlockingStub( private TestServiceBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private TestServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected TestServiceBlockingStub build( protected TestServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new TestServiceBlockingStub(channel, callOptions); return new TestServiceBlockingStub(channel, callOptions);
} }
@ -663,15 +650,19 @@ public final class TestServiceGrpc {
* Test service that supports all call types. * Test service that supports all call types.
* </pre> * </pre>
*/ */
public static final class TestServiceFutureStub extends io.grpc.stub.AbstractFutureStub<TestServiceFutureStub> { public static final class TestServiceFutureStub extends io.grpc.stub.AbstractStub<TestServiceFutureStub> {
private TestServiceFutureStub( private TestServiceFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private TestServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected TestServiceFutureStub build( protected TestServiceFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new TestServiceFutureStub(channel, callOptions); return new TestServiceFutureStub(channel, callOptions);
} }

View File

@ -65,14 +65,7 @@ public final class TestDeprecatedServiceGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static TestDeprecatedServiceStub newStub(io.grpc.Channel channel) { public static TestDeprecatedServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<TestDeprecatedServiceStub> factory = return new TestDeprecatedServiceStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<TestDeprecatedServiceStub>() {
@java.lang.Override
public TestDeprecatedServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TestDeprecatedServiceStub(channel, callOptions);
}
};
return TestDeprecatedServiceStub.newStub(factory, channel);
} }
/** /**
@ -80,14 +73,7 @@ public final class TestDeprecatedServiceGrpc {
*/ */
public static TestDeprecatedServiceBlockingStub newBlockingStub( public static TestDeprecatedServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<TestDeprecatedServiceBlockingStub> factory = return new TestDeprecatedServiceBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<TestDeprecatedServiceBlockingStub>() {
@java.lang.Override
public TestDeprecatedServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TestDeprecatedServiceBlockingStub(channel, callOptions);
}
};
return TestDeprecatedServiceBlockingStub.newStub(factory, channel);
} }
/** /**
@ -95,14 +81,7 @@ public final class TestDeprecatedServiceGrpc {
*/ */
public static TestDeprecatedServiceFutureStub newFutureStub( public static TestDeprecatedServiceFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<TestDeprecatedServiceFutureStub> factory = return new TestDeprecatedServiceFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<TestDeprecatedServiceFutureStub>() {
@java.lang.Override
public TestDeprecatedServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TestDeprecatedServiceFutureStub(channel, callOptions);
}
};
return TestDeprecatedServiceFutureStub.newStub(factory, channel);
} }
/** /**
@ -143,15 +122,19 @@ public final class TestDeprecatedServiceGrpc {
* </pre> * </pre>
*/ */
@java.lang.Deprecated @java.lang.Deprecated
public static final class TestDeprecatedServiceStub extends io.grpc.stub.AbstractAsyncStub<TestDeprecatedServiceStub> { public static final class TestDeprecatedServiceStub extends io.grpc.stub.AbstractStub<TestDeprecatedServiceStub> {
private TestDeprecatedServiceStub( private TestDeprecatedServiceStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private TestDeprecatedServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected TestDeprecatedServiceStub build( protected TestDeprecatedServiceStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new TestDeprecatedServiceStub(channel, callOptions); return new TestDeprecatedServiceStub(channel, callOptions);
} }
@ -174,15 +157,19 @@ public final class TestDeprecatedServiceGrpc {
* </pre> * </pre>
*/ */
@java.lang.Deprecated @java.lang.Deprecated
public static final class TestDeprecatedServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<TestDeprecatedServiceBlockingStub> { public static final class TestDeprecatedServiceBlockingStub extends io.grpc.stub.AbstractStub<TestDeprecatedServiceBlockingStub> {
private TestDeprecatedServiceBlockingStub( private TestDeprecatedServiceBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private TestDeprecatedServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected TestDeprecatedServiceBlockingStub build( protected TestDeprecatedServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new TestDeprecatedServiceBlockingStub(channel, callOptions); return new TestDeprecatedServiceBlockingStub(channel, callOptions);
} }
@ -204,15 +191,19 @@ public final class TestDeprecatedServiceGrpc {
* </pre> * </pre>
*/ */
@java.lang.Deprecated @java.lang.Deprecated
public static final class TestDeprecatedServiceFutureStub extends io.grpc.stub.AbstractFutureStub<TestDeprecatedServiceFutureStub> { public static final class TestDeprecatedServiceFutureStub extends io.grpc.stub.AbstractStub<TestDeprecatedServiceFutureStub> {
private TestDeprecatedServiceFutureStub( private TestDeprecatedServiceFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private TestDeprecatedServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected TestDeprecatedServiceFutureStub build( protected TestDeprecatedServiceFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new TestDeprecatedServiceFutureStub(channel, callOptions); return new TestDeprecatedServiceFutureStub(channel, callOptions);
} }

View File

@ -276,14 +276,7 @@ public final class TestServiceGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static TestServiceStub newStub(io.grpc.Channel channel) { public static TestServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<TestServiceStub> factory = return new TestServiceStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<TestServiceStub>() {
@java.lang.Override
public TestServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TestServiceStub(channel, callOptions);
}
};
return TestServiceStub.newStub(factory, channel);
} }
/** /**
@ -291,14 +284,7 @@ public final class TestServiceGrpc {
*/ */
public static TestServiceBlockingStub newBlockingStub( public static TestServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<TestServiceBlockingStub> factory = return new TestServiceBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<TestServiceBlockingStub>() {
@java.lang.Override
public TestServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TestServiceBlockingStub(channel, callOptions);
}
};
return TestServiceBlockingStub.newStub(factory, channel);
} }
/** /**
@ -306,14 +292,7 @@ public final class TestServiceGrpc {
*/ */
public static TestServiceFutureStub newFutureStub( public static TestServiceFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<TestServiceFutureStub> factory = return new TestServiceFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<TestServiceFutureStub>() {
@java.lang.Override
public TestServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TestServiceFutureStub(channel, callOptions);
}
};
return TestServiceFutureStub.newStub(factory, channel);
} }
/** /**
@ -479,15 +458,19 @@ public final class TestServiceGrpc {
* Test service that supports all call types. * Test service that supports all call types.
* </pre> * </pre>
*/ */
public static final class TestServiceStub extends io.grpc.stub.AbstractAsyncStub<TestServiceStub> { public static final class TestServiceStub extends io.grpc.stub.AbstractStub<TestServiceStub> {
private TestServiceStub( private TestServiceStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private TestServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected TestServiceStub build( protected TestServiceStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new TestServiceStub(channel, callOptions); return new TestServiceStub(channel, callOptions);
} }
@ -594,15 +577,19 @@ public final class TestServiceGrpc {
* Test service that supports all call types. * Test service that supports all call types.
* </pre> * </pre>
*/ */
public static final class TestServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<TestServiceBlockingStub> { public static final class TestServiceBlockingStub extends io.grpc.stub.AbstractStub<TestServiceBlockingStub> {
private TestServiceBlockingStub( private TestServiceBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private TestServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected TestServiceBlockingStub build( protected TestServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new TestServiceBlockingStub(channel, callOptions); return new TestServiceBlockingStub(channel, callOptions);
} }
@ -655,15 +642,19 @@ public final class TestServiceGrpc {
* Test service that supports all call types. * Test service that supports all call types.
* </pre> * </pre>
*/ */
public static final class TestServiceFutureStub extends io.grpc.stub.AbstractFutureStub<TestServiceFutureStub> { public static final class TestServiceFutureStub extends io.grpc.stub.AbstractStub<TestServiceFutureStub> {
private TestServiceFutureStub( private TestServiceFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private TestServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected TestServiceFutureStub build( protected TestServiceFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new TestServiceFutureStub(channel, callOptions); return new TestServiceFutureStub(channel, callOptions);
} }

View File

@ -62,14 +62,7 @@ public final class LoadBalancerGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static LoadBalancerStub newStub(io.grpc.Channel channel) { public static LoadBalancerStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<LoadBalancerStub> factory = return new LoadBalancerStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<LoadBalancerStub>() {
@java.lang.Override
public LoadBalancerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new LoadBalancerStub(channel, callOptions);
}
};
return LoadBalancerStub.newStub(factory, channel);
} }
/** /**
@ -77,14 +70,7 @@ public final class LoadBalancerGrpc {
*/ */
public static LoadBalancerBlockingStub newBlockingStub( public static LoadBalancerBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<LoadBalancerBlockingStub> factory = return new LoadBalancerBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<LoadBalancerBlockingStub>() {
@java.lang.Override
public LoadBalancerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new LoadBalancerBlockingStub(channel, callOptions);
}
};
return LoadBalancerBlockingStub.newStub(factory, channel);
} }
/** /**
@ -92,14 +78,7 @@ public final class LoadBalancerGrpc {
*/ */
public static LoadBalancerFutureStub newFutureStub( public static LoadBalancerFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<LoadBalancerFutureStub> factory = return new LoadBalancerFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<LoadBalancerFutureStub>() {
@java.lang.Override
public LoadBalancerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new LoadBalancerFutureStub(channel, callOptions);
}
};
return LoadBalancerFutureStub.newStub(factory, channel);
} }
/** /**
@ -131,15 +110,19 @@ public final class LoadBalancerGrpc {
/** /**
*/ */
public static final class LoadBalancerStub extends io.grpc.stub.AbstractAsyncStub<LoadBalancerStub> { public static final class LoadBalancerStub extends io.grpc.stub.AbstractStub<LoadBalancerStub> {
private LoadBalancerStub( private LoadBalancerStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private LoadBalancerStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected LoadBalancerStub build( protected LoadBalancerStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new LoadBalancerStub(channel, callOptions); return new LoadBalancerStub(channel, callOptions);
} }
@ -157,30 +140,38 @@ public final class LoadBalancerGrpc {
/** /**
*/ */
public static final class LoadBalancerBlockingStub extends io.grpc.stub.AbstractBlockingStub<LoadBalancerBlockingStub> { public static final class LoadBalancerBlockingStub extends io.grpc.stub.AbstractStub<LoadBalancerBlockingStub> {
private LoadBalancerBlockingStub( private LoadBalancerBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private LoadBalancerBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected LoadBalancerBlockingStub build( protected LoadBalancerBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new LoadBalancerBlockingStub(channel, callOptions); return new LoadBalancerBlockingStub(channel, callOptions);
} }
} }
/** /**
*/ */
public static final class LoadBalancerFutureStub extends io.grpc.stub.AbstractFutureStub<LoadBalancerFutureStub> { public static final class LoadBalancerFutureStub extends io.grpc.stub.AbstractStub<LoadBalancerFutureStub> {
private LoadBalancerFutureStub( private LoadBalancerFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private LoadBalancerFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected LoadBalancerFutureStub build( protected LoadBalancerFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new LoadBalancerFutureStub(channel, callOptions); return new LoadBalancerFutureStub(channel, callOptions);
} }
} }

View File

@ -93,14 +93,7 @@ public final class MetricsServiceGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static MetricsServiceStub newStub(io.grpc.Channel channel) { public static MetricsServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<MetricsServiceStub> factory = return new MetricsServiceStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<MetricsServiceStub>() {
@java.lang.Override
public MetricsServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new MetricsServiceStub(channel, callOptions);
}
};
return MetricsServiceStub.newStub(factory, channel);
} }
/** /**
@ -108,14 +101,7 @@ public final class MetricsServiceGrpc {
*/ */
public static MetricsServiceBlockingStub newBlockingStub( public static MetricsServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<MetricsServiceBlockingStub> factory = return new MetricsServiceBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<MetricsServiceBlockingStub>() {
@java.lang.Override
public MetricsServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new MetricsServiceBlockingStub(channel, callOptions);
}
};
return MetricsServiceBlockingStub.newStub(factory, channel);
} }
/** /**
@ -123,14 +109,7 @@ public final class MetricsServiceGrpc {
*/ */
public static MetricsServiceFutureStub newFutureStub( public static MetricsServiceFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<MetricsServiceFutureStub> factory = return new MetricsServiceFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<MetricsServiceFutureStub>() {
@java.lang.Override
public MetricsServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new MetricsServiceFutureStub(channel, callOptions);
}
};
return MetricsServiceFutureStub.newStub(factory, channel);
} }
/** /**
@ -180,15 +159,19 @@ public final class MetricsServiceGrpc {
/** /**
*/ */
public static final class MetricsServiceStub extends io.grpc.stub.AbstractAsyncStub<MetricsServiceStub> { public static final class MetricsServiceStub extends io.grpc.stub.AbstractStub<MetricsServiceStub> {
private MetricsServiceStub( private MetricsServiceStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private MetricsServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected MetricsServiceStub build( protected MetricsServiceStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new MetricsServiceStub(channel, callOptions); return new MetricsServiceStub(channel, callOptions);
} }
@ -218,15 +201,19 @@ public final class MetricsServiceGrpc {
/** /**
*/ */
public static final class MetricsServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<MetricsServiceBlockingStub> { public static final class MetricsServiceBlockingStub extends io.grpc.stub.AbstractStub<MetricsServiceBlockingStub> {
private MetricsServiceBlockingStub( private MetricsServiceBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private MetricsServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected MetricsServiceBlockingStub build( protected MetricsServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new MetricsServiceBlockingStub(channel, callOptions); return new MetricsServiceBlockingStub(channel, callOptions);
} }
@ -255,15 +242,19 @@ public final class MetricsServiceGrpc {
/** /**
*/ */
public static final class MetricsServiceFutureStub extends io.grpc.stub.AbstractFutureStub<MetricsServiceFutureStub> { public static final class MetricsServiceFutureStub extends io.grpc.stub.AbstractStub<MetricsServiceFutureStub> {
private MetricsServiceFutureStub( private MetricsServiceFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private MetricsServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected MetricsServiceFutureStub build( protected MetricsServiceFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new MetricsServiceFutureStub(channel, callOptions); return new MetricsServiceFutureStub(channel, callOptions);
} }

View File

@ -96,14 +96,7 @@ public final class ReconnectServiceGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static ReconnectServiceStub newStub(io.grpc.Channel channel) { public static ReconnectServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<ReconnectServiceStub> factory = return new ReconnectServiceStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<ReconnectServiceStub>() {
@java.lang.Override
public ReconnectServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ReconnectServiceStub(channel, callOptions);
}
};
return ReconnectServiceStub.newStub(factory, channel);
} }
/** /**
@ -111,14 +104,7 @@ public final class ReconnectServiceGrpc {
*/ */
public static ReconnectServiceBlockingStub newBlockingStub( public static ReconnectServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<ReconnectServiceBlockingStub> factory = return new ReconnectServiceBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<ReconnectServiceBlockingStub>() {
@java.lang.Override
public ReconnectServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ReconnectServiceBlockingStub(channel, callOptions);
}
};
return ReconnectServiceBlockingStub.newStub(factory, channel);
} }
/** /**
@ -126,14 +112,7 @@ public final class ReconnectServiceGrpc {
*/ */
public static ReconnectServiceFutureStub newFutureStub( public static ReconnectServiceFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<ReconnectServiceFutureStub> factory = return new ReconnectServiceFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<ReconnectServiceFutureStub>() {
@java.lang.Override
public ReconnectServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ReconnectServiceFutureStub(channel, callOptions);
}
};
return ReconnectServiceFutureStub.newStub(factory, channel);
} }
/** /**
@ -182,15 +161,19 @@ public final class ReconnectServiceGrpc {
* A service used to control reconnect server. * A service used to control reconnect server.
* </pre> * </pre>
*/ */
public static final class ReconnectServiceStub extends io.grpc.stub.AbstractAsyncStub<ReconnectServiceStub> { public static final class ReconnectServiceStub extends io.grpc.stub.AbstractStub<ReconnectServiceStub> {
private ReconnectServiceStub( private ReconnectServiceStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private ReconnectServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected ReconnectServiceStub build( protected ReconnectServiceStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new ReconnectServiceStub(channel, callOptions); return new ReconnectServiceStub(channel, callOptions);
} }
@ -216,15 +199,19 @@ public final class ReconnectServiceGrpc {
* A service used to control reconnect server. * A service used to control reconnect server.
* </pre> * </pre>
*/ */
public static final class ReconnectServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<ReconnectServiceBlockingStub> { public static final class ReconnectServiceBlockingStub extends io.grpc.stub.AbstractStub<ReconnectServiceBlockingStub> {
private ReconnectServiceBlockingStub( private ReconnectServiceBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private ReconnectServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected ReconnectServiceBlockingStub build( protected ReconnectServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new ReconnectServiceBlockingStub(channel, callOptions); return new ReconnectServiceBlockingStub(channel, callOptions);
} }
@ -248,15 +235,19 @@ public final class ReconnectServiceGrpc {
* A service used to control reconnect server. * A service used to control reconnect server.
* </pre> * </pre>
*/ */
public static final class ReconnectServiceFutureStub extends io.grpc.stub.AbstractFutureStub<ReconnectServiceFutureStub> { public static final class ReconnectServiceFutureStub extends io.grpc.stub.AbstractStub<ReconnectServiceFutureStub> {
private ReconnectServiceFutureStub( private ReconnectServiceFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private ReconnectServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected ReconnectServiceFutureStub build( protected ReconnectServiceFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new ReconnectServiceFutureStub(channel, callOptions); return new ReconnectServiceFutureStub(channel, callOptions);
} }

View File

@ -283,14 +283,7 @@ public final class TestServiceGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static TestServiceStub newStub(io.grpc.Channel channel) { public static TestServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<TestServiceStub> factory = return new TestServiceStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<TestServiceStub>() {
@java.lang.Override
public TestServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TestServiceStub(channel, callOptions);
}
};
return TestServiceStub.newStub(factory, channel);
} }
/** /**
@ -298,14 +291,7 @@ public final class TestServiceGrpc {
*/ */
public static TestServiceBlockingStub newBlockingStub( public static TestServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<TestServiceBlockingStub> factory = return new TestServiceBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<TestServiceBlockingStub>() {
@java.lang.Override
public TestServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TestServiceBlockingStub(channel, callOptions);
}
};
return TestServiceBlockingStub.newStub(factory, channel);
} }
/** /**
@ -313,14 +299,7 @@ public final class TestServiceGrpc {
*/ */
public static TestServiceFutureStub newFutureStub( public static TestServiceFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<TestServiceFutureStub> factory = return new TestServiceFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<TestServiceFutureStub>() {
@java.lang.Override
public TestServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TestServiceFutureStub(channel, callOptions);
}
};
return TestServiceFutureStub.newStub(factory, channel);
} }
/** /**
@ -489,15 +468,19 @@ public final class TestServiceGrpc {
* performance with various types of payload. * performance with various types of payload.
* </pre> * </pre>
*/ */
public static final class TestServiceStub extends io.grpc.stub.AbstractAsyncStub<TestServiceStub> { public static final class TestServiceStub extends io.grpc.stub.AbstractStub<TestServiceStub> {
private TestServiceStub( private TestServiceStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private TestServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected TestServiceStub build( protected TestServiceStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new TestServiceStub(channel, callOptions); return new TestServiceStub(channel, callOptions);
} }
@ -606,15 +589,19 @@ public final class TestServiceGrpc {
* performance with various types of payload. * performance with various types of payload.
* </pre> * </pre>
*/ */
public static final class TestServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<TestServiceBlockingStub> { public static final class TestServiceBlockingStub extends io.grpc.stub.AbstractStub<TestServiceBlockingStub> {
private TestServiceBlockingStub( private TestServiceBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private TestServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected TestServiceBlockingStub build( protected TestServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new TestServiceBlockingStub(channel, callOptions); return new TestServiceBlockingStub(channel, callOptions);
} }
@ -680,15 +667,19 @@ public final class TestServiceGrpc {
* performance with various types of payload. * performance with various types of payload.
* </pre> * </pre>
*/ */
public static final class TestServiceFutureStub extends io.grpc.stub.AbstractFutureStub<TestServiceFutureStub> { public static final class TestServiceFutureStub extends io.grpc.stub.AbstractStub<TestServiceFutureStub> {
private TestServiceFutureStub( private TestServiceFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private TestServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected TestServiceFutureStub build( protected TestServiceFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new TestServiceFutureStub(channel, callOptions); return new TestServiceFutureStub(channel, callOptions);
} }

View File

@ -66,14 +66,7 @@ public final class UnimplementedServiceGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static UnimplementedServiceStub newStub(io.grpc.Channel channel) { public static UnimplementedServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<UnimplementedServiceStub> factory = return new UnimplementedServiceStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<UnimplementedServiceStub>() {
@java.lang.Override
public UnimplementedServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new UnimplementedServiceStub(channel, callOptions);
}
};
return UnimplementedServiceStub.newStub(factory, channel);
} }
/** /**
@ -81,14 +74,7 @@ public final class UnimplementedServiceGrpc {
*/ */
public static UnimplementedServiceBlockingStub newBlockingStub( public static UnimplementedServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<UnimplementedServiceBlockingStub> factory = return new UnimplementedServiceBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<UnimplementedServiceBlockingStub>() {
@java.lang.Override
public UnimplementedServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new UnimplementedServiceBlockingStub(channel, callOptions);
}
};
return UnimplementedServiceBlockingStub.newStub(factory, channel);
} }
/** /**
@ -96,14 +82,7 @@ public final class UnimplementedServiceGrpc {
*/ */
public static UnimplementedServiceFutureStub newFutureStub( public static UnimplementedServiceFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<UnimplementedServiceFutureStub> factory = return new UnimplementedServiceFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<UnimplementedServiceFutureStub>() {
@java.lang.Override
public UnimplementedServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new UnimplementedServiceFutureStub(channel, callOptions);
}
};
return UnimplementedServiceFutureStub.newStub(factory, channel);
} }
/** /**
@ -143,15 +122,19 @@ public final class UnimplementedServiceGrpc {
* that case. * that case.
* </pre> * </pre>
*/ */
public static final class UnimplementedServiceStub extends io.grpc.stub.AbstractAsyncStub<UnimplementedServiceStub> { public static final class UnimplementedServiceStub extends io.grpc.stub.AbstractStub<UnimplementedServiceStub> {
private UnimplementedServiceStub( private UnimplementedServiceStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private UnimplementedServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected UnimplementedServiceStub build( protected UnimplementedServiceStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new UnimplementedServiceStub(channel, callOptions); return new UnimplementedServiceStub(channel, callOptions);
} }
@ -173,15 +156,19 @@ public final class UnimplementedServiceGrpc {
* that case. * that case.
* </pre> * </pre>
*/ */
public static final class UnimplementedServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<UnimplementedServiceBlockingStub> { public static final class UnimplementedServiceBlockingStub extends io.grpc.stub.AbstractStub<UnimplementedServiceBlockingStub> {
private UnimplementedServiceBlockingStub( private UnimplementedServiceBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private UnimplementedServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected UnimplementedServiceBlockingStub build( protected UnimplementedServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new UnimplementedServiceBlockingStub(channel, callOptions); return new UnimplementedServiceBlockingStub(channel, callOptions);
} }
@ -202,15 +189,19 @@ public final class UnimplementedServiceGrpc {
* that case. * that case.
* </pre> * </pre>
*/ */
public static final class UnimplementedServiceFutureStub extends io.grpc.stub.AbstractFutureStub<UnimplementedServiceFutureStub> { public static final class UnimplementedServiceFutureStub extends io.grpc.stub.AbstractStub<UnimplementedServiceFutureStub> {
private UnimplementedServiceFutureStub( private UnimplementedServiceFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private UnimplementedServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected UnimplementedServiceFutureStub build( protected UnimplementedServiceFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new UnimplementedServiceFutureStub(channel, callOptions); return new UnimplementedServiceFutureStub(channel, callOptions);
} }

View File

@ -252,14 +252,7 @@ public final class ChannelzGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static ChannelzStub newStub(io.grpc.Channel channel) { public static ChannelzStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<ChannelzStub> factory = return new ChannelzStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<ChannelzStub>() {
@java.lang.Override
public ChannelzStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ChannelzStub(channel, callOptions);
}
};
return ChannelzStub.newStub(factory, channel);
} }
/** /**
@ -267,14 +260,7 @@ public final class ChannelzGrpc {
*/ */
public static ChannelzBlockingStub newBlockingStub( public static ChannelzBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<ChannelzBlockingStub> factory = return new ChannelzBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<ChannelzBlockingStub>() {
@java.lang.Override
public ChannelzBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ChannelzBlockingStub(channel, callOptions);
}
};
return ChannelzBlockingStub.newStub(factory, channel);
} }
/** /**
@ -282,14 +268,7 @@ public final class ChannelzGrpc {
*/ */
public static ChannelzFutureStub newFutureStub( public static ChannelzFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<ChannelzFutureStub> factory = return new ChannelzFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<ChannelzFutureStub>() {
@java.lang.Override
public ChannelzFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ChannelzFutureStub(channel, callOptions);
}
};
return ChannelzFutureStub.newStub(factory, channel);
} }
/** /**
@ -432,15 +411,19 @@ public final class ChannelzGrpc {
* information. * information.
* </pre> * </pre>
*/ */
public static final class ChannelzStub extends io.grpc.stub.AbstractAsyncStub<ChannelzStub> { public static final class ChannelzStub extends io.grpc.stub.AbstractStub<ChannelzStub> {
private ChannelzStub( private ChannelzStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private ChannelzStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected ChannelzStub build( protected ChannelzStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new ChannelzStub(channel, callOptions); return new ChannelzStub(channel, callOptions);
} }
@ -529,15 +512,19 @@ public final class ChannelzGrpc {
* information. * information.
* </pre> * </pre>
*/ */
public static final class ChannelzBlockingStub extends io.grpc.stub.AbstractBlockingStub<ChannelzBlockingStub> { public static final class ChannelzBlockingStub extends io.grpc.stub.AbstractStub<ChannelzBlockingStub> {
private ChannelzBlockingStub( private ChannelzBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private ChannelzBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected ChannelzBlockingStub build( protected ChannelzBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new ChannelzBlockingStub(channel, callOptions); return new ChannelzBlockingStub(channel, callOptions);
} }
@ -619,15 +606,19 @@ public final class ChannelzGrpc {
* information. * information.
* </pre> * </pre>
*/ */
public static final class ChannelzFutureStub extends io.grpc.stub.AbstractFutureStub<ChannelzFutureStub> { public static final class ChannelzFutureStub extends io.grpc.stub.AbstractStub<ChannelzFutureStub> {
private ChannelzFutureStub( private ChannelzFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private ChannelzFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected ChannelzFutureStub build( protected ChannelzFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new ChannelzFutureStub(channel, callOptions); return new ChannelzFutureStub(channel, callOptions);
} }

View File

@ -93,14 +93,7 @@ public final class HealthGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static HealthStub newStub(io.grpc.Channel channel) { public static HealthStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<HealthStub> factory = return new HealthStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<HealthStub>() {
@java.lang.Override
public HealthStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new HealthStub(channel, callOptions);
}
};
return HealthStub.newStub(factory, channel);
} }
/** /**
@ -108,14 +101,7 @@ public final class HealthGrpc {
*/ */
public static HealthBlockingStub newBlockingStub( public static HealthBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<HealthBlockingStub> factory = return new HealthBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<HealthBlockingStub>() {
@java.lang.Override
public HealthBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new HealthBlockingStub(channel, callOptions);
}
};
return HealthBlockingStub.newStub(factory, channel);
} }
/** /**
@ -123,14 +109,7 @@ public final class HealthGrpc {
*/ */
public static HealthFutureStub newFutureStub( public static HealthFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<HealthFutureStub> factory = return new HealthFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<HealthFutureStub>() {
@java.lang.Override
public HealthFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new HealthFutureStub(channel, callOptions);
}
};
return HealthFutureStub.newStub(factory, channel);
} }
/** /**
@ -192,15 +171,19 @@ public final class HealthGrpc {
/** /**
*/ */
public static final class HealthStub extends io.grpc.stub.AbstractAsyncStub<HealthStub> { public static final class HealthStub extends io.grpc.stub.AbstractStub<HealthStub> {
private HealthStub( private HealthStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private HealthStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected HealthStub build( protected HealthStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new HealthStub(channel, callOptions); return new HealthStub(channel, callOptions);
} }
@ -242,15 +225,19 @@ public final class HealthGrpc {
/** /**
*/ */
public static final class HealthBlockingStub extends io.grpc.stub.AbstractBlockingStub<HealthBlockingStub> { public static final class HealthBlockingStub extends io.grpc.stub.AbstractStub<HealthBlockingStub> {
private HealthBlockingStub( private HealthBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private HealthBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected HealthBlockingStub build( protected HealthBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new HealthBlockingStub(channel, callOptions); return new HealthBlockingStub(channel, callOptions);
} }
@ -291,15 +278,19 @@ public final class HealthGrpc {
/** /**
*/ */
public static final class HealthFutureStub extends io.grpc.stub.AbstractFutureStub<HealthFutureStub> { public static final class HealthFutureStub extends io.grpc.stub.AbstractStub<HealthFutureStub> {
private HealthFutureStub( private HealthFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private HealthFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected HealthFutureStub build( protected HealthFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new HealthFutureStub(channel, callOptions); return new HealthFutureStub(channel, callOptions);
} }

View File

@ -62,14 +62,7 @@ public final class ServerReflectionGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static ServerReflectionStub newStub(io.grpc.Channel channel) { public static ServerReflectionStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<ServerReflectionStub> factory = return new ServerReflectionStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<ServerReflectionStub>() {
@java.lang.Override
public ServerReflectionStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ServerReflectionStub(channel, callOptions);
}
};
return ServerReflectionStub.newStub(factory, channel);
} }
/** /**
@ -77,14 +70,7 @@ public final class ServerReflectionGrpc {
*/ */
public static ServerReflectionBlockingStub newBlockingStub( public static ServerReflectionBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<ServerReflectionBlockingStub> factory = return new ServerReflectionBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<ServerReflectionBlockingStub>() {
@java.lang.Override
public ServerReflectionBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ServerReflectionBlockingStub(channel, callOptions);
}
};
return ServerReflectionBlockingStub.newStub(factory, channel);
} }
/** /**
@ -92,14 +78,7 @@ public final class ServerReflectionGrpc {
*/ */
public static ServerReflectionFutureStub newFutureStub( public static ServerReflectionFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<ServerReflectionFutureStub> factory = return new ServerReflectionFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<ServerReflectionFutureStub>() {
@java.lang.Override
public ServerReflectionFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ServerReflectionFutureStub(channel, callOptions);
}
};
return ServerReflectionFutureStub.newStub(factory, channel);
} }
/** /**
@ -132,15 +111,19 @@ public final class ServerReflectionGrpc {
/** /**
*/ */
public static final class ServerReflectionStub extends io.grpc.stub.AbstractAsyncStub<ServerReflectionStub> { public static final class ServerReflectionStub extends io.grpc.stub.AbstractStub<ServerReflectionStub> {
private ServerReflectionStub( private ServerReflectionStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private ServerReflectionStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected ServerReflectionStub build( protected ServerReflectionStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new ServerReflectionStub(channel, callOptions); return new ServerReflectionStub(channel, callOptions);
} }
@ -159,30 +142,38 @@ public final class ServerReflectionGrpc {
/** /**
*/ */
public static final class ServerReflectionBlockingStub extends io.grpc.stub.AbstractBlockingStub<ServerReflectionBlockingStub> { public static final class ServerReflectionBlockingStub extends io.grpc.stub.AbstractStub<ServerReflectionBlockingStub> {
private ServerReflectionBlockingStub( private ServerReflectionBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private ServerReflectionBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected ServerReflectionBlockingStub build( protected ServerReflectionBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new ServerReflectionBlockingStub(channel, callOptions); return new ServerReflectionBlockingStub(channel, callOptions);
} }
} }
/** /**
*/ */
public static final class ServerReflectionFutureStub extends io.grpc.stub.AbstractFutureStub<ServerReflectionFutureStub> { public static final class ServerReflectionFutureStub extends io.grpc.stub.AbstractStub<ServerReflectionFutureStub> {
private ServerReflectionFutureStub( private ServerReflectionFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private ServerReflectionFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected ServerReflectionFutureStub build( protected ServerReflectionFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new ServerReflectionFutureStub(channel, callOptions); return new ServerReflectionFutureStub(channel, callOptions);
} }
} }

View File

@ -65,14 +65,7 @@ public final class AnotherDynamicServiceGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static AnotherDynamicServiceStub newStub(io.grpc.Channel channel) { public static AnotherDynamicServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<AnotherDynamicServiceStub> factory = return new AnotherDynamicServiceStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<AnotherDynamicServiceStub>() {
@java.lang.Override
public AnotherDynamicServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AnotherDynamicServiceStub(channel, callOptions);
}
};
return AnotherDynamicServiceStub.newStub(factory, channel);
} }
/** /**
@ -80,14 +73,7 @@ public final class AnotherDynamicServiceGrpc {
*/ */
public static AnotherDynamicServiceBlockingStub newBlockingStub( public static AnotherDynamicServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<AnotherDynamicServiceBlockingStub> factory = return new AnotherDynamicServiceBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<AnotherDynamicServiceBlockingStub>() {
@java.lang.Override
public AnotherDynamicServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AnotherDynamicServiceBlockingStub(channel, callOptions);
}
};
return AnotherDynamicServiceBlockingStub.newStub(factory, channel);
} }
/** /**
@ -95,14 +81,7 @@ public final class AnotherDynamicServiceGrpc {
*/ */
public static AnotherDynamicServiceFutureStub newFutureStub( public static AnotherDynamicServiceFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<AnotherDynamicServiceFutureStub> factory = return new AnotherDynamicServiceFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<AnotherDynamicServiceFutureStub>() {
@java.lang.Override
public AnotherDynamicServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AnotherDynamicServiceFutureStub(channel, callOptions);
}
};
return AnotherDynamicServiceFutureStub.newStub(factory, channel);
} }
/** /**
@ -140,15 +119,19 @@ public final class AnotherDynamicServiceGrpc {
* AnotherDynamicService * AnotherDynamicService
* </pre> * </pre>
*/ */
public static final class AnotherDynamicServiceStub extends io.grpc.stub.AbstractAsyncStub<AnotherDynamicServiceStub> { public static final class AnotherDynamicServiceStub extends io.grpc.stub.AbstractStub<AnotherDynamicServiceStub> {
private AnotherDynamicServiceStub( private AnotherDynamicServiceStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private AnotherDynamicServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected AnotherDynamicServiceStub build( protected AnotherDynamicServiceStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new AnotherDynamicServiceStub(channel, callOptions); return new AnotherDynamicServiceStub(channel, callOptions);
} }
@ -169,15 +152,19 @@ public final class AnotherDynamicServiceGrpc {
* AnotherDynamicService * AnotherDynamicService
* </pre> * </pre>
*/ */
public static final class AnotherDynamicServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<AnotherDynamicServiceBlockingStub> { public static final class AnotherDynamicServiceBlockingStub extends io.grpc.stub.AbstractStub<AnotherDynamicServiceBlockingStub> {
private AnotherDynamicServiceBlockingStub( private AnotherDynamicServiceBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private AnotherDynamicServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected AnotherDynamicServiceBlockingStub build( protected AnotherDynamicServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new AnotherDynamicServiceBlockingStub(channel, callOptions); return new AnotherDynamicServiceBlockingStub(channel, callOptions);
} }
@ -197,15 +184,19 @@ public final class AnotherDynamicServiceGrpc {
* AnotherDynamicService * AnotherDynamicService
* </pre> * </pre>
*/ */
public static final class AnotherDynamicServiceFutureStub extends io.grpc.stub.AbstractFutureStub<AnotherDynamicServiceFutureStub> { public static final class AnotherDynamicServiceFutureStub extends io.grpc.stub.AbstractStub<AnotherDynamicServiceFutureStub> {
private AnotherDynamicServiceFutureStub( private AnotherDynamicServiceFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private AnotherDynamicServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected AnotherDynamicServiceFutureStub build( protected AnotherDynamicServiceFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new AnotherDynamicServiceFutureStub(channel, callOptions); return new AnotherDynamicServiceFutureStub(channel, callOptions);
} }

View File

@ -65,14 +65,7 @@ public final class DynamicServiceGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static DynamicServiceStub newStub(io.grpc.Channel channel) { public static DynamicServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<DynamicServiceStub> factory = return new DynamicServiceStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<DynamicServiceStub>() {
@java.lang.Override
public DynamicServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DynamicServiceStub(channel, callOptions);
}
};
return DynamicServiceStub.newStub(factory, channel);
} }
/** /**
@ -80,14 +73,7 @@ public final class DynamicServiceGrpc {
*/ */
public static DynamicServiceBlockingStub newBlockingStub( public static DynamicServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<DynamicServiceBlockingStub> factory = return new DynamicServiceBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<DynamicServiceBlockingStub>() {
@java.lang.Override
public DynamicServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DynamicServiceBlockingStub(channel, callOptions);
}
};
return DynamicServiceBlockingStub.newStub(factory, channel);
} }
/** /**
@ -95,14 +81,7 @@ public final class DynamicServiceGrpc {
*/ */
public static DynamicServiceFutureStub newFutureStub( public static DynamicServiceFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<DynamicServiceFutureStub> factory = return new DynamicServiceFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<DynamicServiceFutureStub>() {
@java.lang.Override
public DynamicServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DynamicServiceFutureStub(channel, callOptions);
}
};
return DynamicServiceFutureStub.newStub(factory, channel);
} }
/** /**
@ -140,15 +119,19 @@ public final class DynamicServiceGrpc {
* A DynamicService * A DynamicService
* </pre> * </pre>
*/ */
public static final class DynamicServiceStub extends io.grpc.stub.AbstractAsyncStub<DynamicServiceStub> { public static final class DynamicServiceStub extends io.grpc.stub.AbstractStub<DynamicServiceStub> {
private DynamicServiceStub( private DynamicServiceStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private DynamicServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected DynamicServiceStub build( protected DynamicServiceStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new DynamicServiceStub(channel, callOptions); return new DynamicServiceStub(channel, callOptions);
} }
@ -169,15 +152,19 @@ public final class DynamicServiceGrpc {
* A DynamicService * A DynamicService
* </pre> * </pre>
*/ */
public static final class DynamicServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<DynamicServiceBlockingStub> { public static final class DynamicServiceBlockingStub extends io.grpc.stub.AbstractStub<DynamicServiceBlockingStub> {
private DynamicServiceBlockingStub( private DynamicServiceBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private DynamicServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected DynamicServiceBlockingStub build( protected DynamicServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new DynamicServiceBlockingStub(channel, callOptions); return new DynamicServiceBlockingStub(channel, callOptions);
} }
@ -197,15 +184,19 @@ public final class DynamicServiceGrpc {
* A DynamicService * A DynamicService
* </pre> * </pre>
*/ */
public static final class DynamicServiceFutureStub extends io.grpc.stub.AbstractFutureStub<DynamicServiceFutureStub> { public static final class DynamicServiceFutureStub extends io.grpc.stub.AbstractStub<DynamicServiceFutureStub> {
private DynamicServiceFutureStub( private DynamicServiceFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private DynamicServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected DynamicServiceFutureStub build( protected DynamicServiceFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new DynamicServiceFutureStub(channel, callOptions); return new DynamicServiceFutureStub(channel, callOptions);
} }

View File

@ -62,14 +62,7 @@ public final class ReflectableServiceGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static ReflectableServiceStub newStub(io.grpc.Channel channel) { public static ReflectableServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<ReflectableServiceStub> factory = return new ReflectableServiceStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<ReflectableServiceStub>() {
@java.lang.Override
public ReflectableServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ReflectableServiceStub(channel, callOptions);
}
};
return ReflectableServiceStub.newStub(factory, channel);
} }
/** /**
@ -77,14 +70,7 @@ public final class ReflectableServiceGrpc {
*/ */
public static ReflectableServiceBlockingStub newBlockingStub( public static ReflectableServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<ReflectableServiceBlockingStub> factory = return new ReflectableServiceBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<ReflectableServiceBlockingStub>() {
@java.lang.Override
public ReflectableServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ReflectableServiceBlockingStub(channel, callOptions);
}
};
return ReflectableServiceBlockingStub.newStub(factory, channel);
} }
/** /**
@ -92,14 +78,7 @@ public final class ReflectableServiceGrpc {
*/ */
public static ReflectableServiceFutureStub newFutureStub( public static ReflectableServiceFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<ReflectableServiceFutureStub> factory = return new ReflectableServiceFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<ReflectableServiceFutureStub>() {
@java.lang.Override
public ReflectableServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ReflectableServiceFutureStub(channel, callOptions);
}
};
return ReflectableServiceFutureStub.newStub(factory, channel);
} }
/** /**
@ -128,15 +107,19 @@ public final class ReflectableServiceGrpc {
/** /**
*/ */
public static final class ReflectableServiceStub extends io.grpc.stub.AbstractAsyncStub<ReflectableServiceStub> { public static final class ReflectableServiceStub extends io.grpc.stub.AbstractStub<ReflectableServiceStub> {
private ReflectableServiceStub( private ReflectableServiceStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private ReflectableServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected ReflectableServiceStub build( protected ReflectableServiceStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new ReflectableServiceStub(channel, callOptions); return new ReflectableServiceStub(channel, callOptions);
} }
@ -151,15 +134,19 @@ public final class ReflectableServiceGrpc {
/** /**
*/ */
public static final class ReflectableServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<ReflectableServiceBlockingStub> { public static final class ReflectableServiceBlockingStub extends io.grpc.stub.AbstractStub<ReflectableServiceBlockingStub> {
private ReflectableServiceBlockingStub( private ReflectableServiceBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private ReflectableServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected ReflectableServiceBlockingStub build( protected ReflectableServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new ReflectableServiceBlockingStub(channel, callOptions); return new ReflectableServiceBlockingStub(channel, callOptions);
} }
@ -173,15 +160,19 @@ public final class ReflectableServiceGrpc {
/** /**
*/ */
public static final class ReflectableServiceFutureStub extends io.grpc.stub.AbstractFutureStub<ReflectableServiceFutureStub> { public static final class ReflectableServiceFutureStub extends io.grpc.stub.AbstractStub<ReflectableServiceFutureStub> {
private ReflectableServiceFutureStub( private ReflectableServiceFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private ReflectableServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected ReflectableServiceFutureStub build( protected ReflectableServiceFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new ReflectableServiceFutureStub(channel, callOptions); return new ReflectableServiceFutureStub(channel, callOptions);
} }

View File

@ -1,69 +0,0 @@
/*
* Copyright 2019 The gRPC Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.grpc.stub;
import io.grpc.CallOptions;
import io.grpc.Channel;
import io.grpc.stub.ClientCalls.StubType;
import javax.annotation.CheckReturnValue;
import javax.annotation.concurrent.ThreadSafe;
/**
* Stub implementations for async stubs.
*
* <p>DO NOT MOCK: Customizing options doesn't work properly in mocks. Use InProcessChannelBuilder
* to create a real channel suitable for testing. It is also possible to mock Channel instead.
*
* @since 1.25.0
*/
@ThreadSafe
@CheckReturnValue
public abstract class AbstractAsyncStub<S extends AbstractAsyncStub<S>> extends AbstractStub<S> {
protected AbstractAsyncStub(Channel channel, CallOptions callOptions) {
super(channel, callOptions);
}
/**
* Returns a new async stub with the given channel for the provided method configurations.
*
* @since 1.25.0
* @param factory the factory to create an async stub
* @param channel the channel that this stub will use to do communications
*/
public static <T extends AbstractStub<T>> T newStub(
StubFactory<T> factory, Channel channel) {
return newStub(factory, channel, CallOptions.DEFAULT);
}
/**
* Returns a new async stub with the given channel for the provided method configurations.
*
* @since 1.25.0
* @param factory the factory to create an async stub
* @param channel the channel that this stub will use to do communications
* @param callOptions the runtime call options to be applied to every call on this stub
*/
public static <T extends AbstractStub<T>> T newStub(
StubFactory<T> factory, Channel channel, CallOptions callOptions) {
T stub = factory.newStub(
channel, callOptions.withOption(ClientCalls.STUB_TYPE_OPTION, StubType.ASYNC));
assert stub instanceof AbstractAsyncStub
: String.format("Expected AbstractAsyncStub, but got %s.", stub.getClass());
return stub;
}
}

View File

@ -1,70 +0,0 @@
/*
* Copyright 2019 The gRPC Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.grpc.stub;
import io.grpc.CallOptions;
import io.grpc.Channel;
import io.grpc.stub.ClientCalls.StubType;
import javax.annotation.CheckReturnValue;
import javax.annotation.concurrent.ThreadSafe;
/**
* Stub implementations for blocking stubs.
*
* <p>DO NOT MOCK: Customizing options doesn't work properly in mocks. Use InProcessChannelBuilder
* to create a real channel suitable for testing. It is also possible to mock Channel instead.
*
* @since 1.25.0
*/
@ThreadSafe
@CheckReturnValue
public abstract class AbstractBlockingStub<S extends AbstractBlockingStub<S>>
extends AbstractStub<S> {
protected AbstractBlockingStub(Channel channel, CallOptions callOptions) {
super(channel, callOptions);
}
/**
* Returns a new blocking stub with the given channel for the provided method configurations.
*
* @since 1.25.0
* @param factory the factory to create a blocking stub
* @param channel the channel that this stub will use to do communications
*/
public static <T extends AbstractStub<T>> T newStub(
StubFactory<T> factory, Channel channel) {
return newStub(factory, channel, CallOptions.DEFAULT);
}
/**
* Returns a new blocking stub with the given channel for the provided method configurations.
*
* @since 1.25.0
* @param factory the factory to create a blocking stub
* @param channel the channel that this stub will use to do communications
* @param callOptions the runtime call options to be applied to every call on this stub
*/
public static <T extends AbstractStub<T>> T newStub(
StubFactory<T> factory, Channel channel, CallOptions callOptions) {
T stub = factory.newStub(
channel, callOptions.withOption(ClientCalls.STUB_TYPE_OPTION, StubType.BLOCKING));
assert stub instanceof AbstractBlockingStub
: String.format("Expected AbstractBlockingStub, but got %s.", stub.getClass());
return stub;
}
}

View File

@ -1,70 +0,0 @@
/*
* Copyright 2019 The gRPC Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.grpc.stub;
import io.grpc.CallOptions;
import io.grpc.Channel;
import io.grpc.stub.ClientCalls.StubType;
import javax.annotation.CheckReturnValue;
import javax.annotation.concurrent.ThreadSafe;
/**
* Stub implementations for future stubs.
*
* <p>DO NOT MOCK: Customizing options doesn't work properly in mocks. Use InProcessChannelBuilder
* to create a real channel suitable for testing. It is also possible to mock Channel instead.
*
* @since 1.25.0
*/
@ThreadSafe
@CheckReturnValue
public abstract class AbstractFutureStub<S extends AbstractFutureStub<S>> extends AbstractStub<S> {
protected AbstractFutureStub(Channel channel, CallOptions callOptions) {
super(channel, callOptions);
}
/**
* Returns a new future stub with the given channel for the provided method configurations.
*
* @since 1.25.0
* @param factory the factory to create a future stub
* @param channel the channel that this stub will use to do communications
*/
public static <T extends AbstractStub<T>> T newStub(
StubFactory<T> factory, Channel channel) {
return newStub(factory, channel, CallOptions.DEFAULT);
}
/**
* Returns a new future stub with the given channel for the provided method configurations.
*
* @since 1.25.0
* @param factory the factory to create a future stub
* @param channel the channel that this stub will use to do communications
* @param callOptions the runtime call options to be applied to every call on this stub
* @return a future stub
*/
public static <T extends AbstractStub<T>> T newStub(
StubFactory<T> factory, Channel channel, CallOptions callOptions) {
T stub = factory.newStub(
channel, callOptions.withOption(ClientCalls.STUB_TYPE_OPTION, StubType.FUTURE));
assert stub instanceof AbstractFutureStub
: String.format("Expected AbstractFutureStub, but got %s.", stub.getClass());
return stub;
}
}

View File

@ -101,31 +101,6 @@ public abstract class AbstractStub<S extends AbstractStub<S>> {
*/ */
protected abstract S build(Channel channel, CallOptions callOptions); protected abstract S build(Channel channel, CallOptions callOptions);
/**
* Returns a new stub with the given channel for the provided method configurations.
*
* @since 1.25.0
* @param factory the factory to create a stub
* @param channel the channel that this stub will use to do communications
*/
public static <T extends AbstractStub<T>> T newStub(
StubFactory<T> factory, Channel channel) {
return newStub(factory, channel, CallOptions.DEFAULT);
}
/**
* Returns a new stub with the given channel for the provided method configurations.
*
* @since 1.25.0
* @param factory the factory to create a stub
* @param channel the channel that this stub will use to do communications
* @param callOptions the runtime call options to be applied to every call on this stub
*/
public static <T extends AbstractStub<T>> T newStub(
StubFactory<T> factory, Channel channel, CallOptions callOptions) {
return factory.newStub(channel, callOptions);
}
/** /**
* Returns a new stub with an absolute deadline. * Returns a new stub with an absolute deadline.
* *
@ -249,13 +224,4 @@ public abstract class AbstractStub<S extends AbstractStub<S>> {
public final S withMaxOutboundMessageSize(int maxSize) { public final S withMaxOutboundMessageSize(int maxSize) {
return build(channel, callOptions.withMaxOutboundMessageSize(maxSize)); return build(channel, callOptions.withMaxOutboundMessageSize(maxSize));
} }
/**
* A factory class for stub.
*
* @since 1.25.0
*/
public interface StubFactory<T extends AbstractStub<T>> {
T newStub(Channel channel, CallOptions callOptions);
}
} }

View File

@ -729,14 +729,4 @@ public final class ClientCalls {
LockSupport.unpark(waiter); // no-op if null LockSupport.unpark(waiter); // no-op if null
} }
} }
enum StubType {
BLOCKING, FUTURE, ASYNC
}
/**
* Internal {@link CallOptions.Key} to indicate stub types.
*/
static final CallOptions.Key<StubType> STUB_TYPE_OPTION =
CallOptions.Key.create("internal-stub-type");
} }

View File

@ -1,61 +0,0 @@
/*
* Copyright 2019 The gRPC Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.grpc.stub;
import io.grpc.CallOptions;
import io.grpc.Internal;
/**
* Internal {@link ClientCalls} accessor. This is intended for usage internal to the gRPC
* team. If you *really* think you need to use this, contact the gRPC team first.
*/
@Internal
public final class InternalClientCalls {
/** Internal accessor for {@link ClientCalls#STUB_TYPE_OPTION}. */
public static CallOptions.Key<ClientCalls.StubType> getStubTypeOption() {
return ClientCalls.STUB_TYPE_OPTION;
}
/** Returns {@link StubType} from call options. */
public static StubType getStubType(CallOptions callOptions) {
return StubType.of(callOptions.getOption(ClientCalls.STUB_TYPE_OPTION));
}
/** Companion enum for internal enum {@link ClientCalls.StubType}. */
public enum StubType {
BLOCKING(ClientCalls.StubType.BLOCKING),
ASYNC(ClientCalls.StubType.ASYNC),
FUTURE(ClientCalls.StubType.FUTURE);
private final ClientCalls.StubType internalType;
StubType(ClientCalls.StubType internalType) {
this.internalType = internalType;
}
/** Returns companion enum value of passed internal enum equivalent. */
public static StubType of(ClientCalls.StubType internal) {
for (StubType value : StubType.values()) {
if (value.internalType == internal) {
return value;
}
}
throw new AssertionError("Unknown StubType: " + internal.name());
}
}
}

View File

@ -1,97 +0,0 @@
/*
* Copyright 2019 The gRPC Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.grpc.stub;
import static com.google.common.truth.Truth.assertThat;
import static org.junit.Assert.fail;
import io.grpc.CallOptions;
import io.grpc.Channel;
import io.grpc.stub.AbstractAsyncStubTest.NoopAsyncStub;
import io.grpc.stub.AbstractBlockingStubTest.NoopBlockingStub;
import io.grpc.stub.AbstractFutureStubTest.NoopFutureStub;
import io.grpc.stub.AbstractStub.StubFactory;
import io.grpc.stub.ClientCalls.StubType;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
@RunWith(JUnit4.class)
public class AbstractAsyncStubTest extends BaseAbstractStubTest<NoopAsyncStub> {
@Override
NoopAsyncStub create(Channel channel, CallOptions callOptions) {
return new NoopAsyncStub(channel, callOptions);
}
@Test
public void defaultCallOptions() {
NoopAsyncStub stub = NoopAsyncStub.newStub(new StubFactory<NoopAsyncStub>() {
@Override
public NoopAsyncStub newStub(Channel channel, CallOptions callOptions) {
return create(channel, callOptions);
}
}, channel, CallOptions.DEFAULT);
assertThat(stub.getCallOptions().getOption(ClientCalls.STUB_TYPE_OPTION))
.isEqualTo(StubType.ASYNC);
}
@Test
@SuppressWarnings("AssertionFailureIgnored")
public void newStub_futureStub_throwsException() {
try {
NoopFutureStub unused = NoopAsyncStub.newStub(new StubFactory<NoopFutureStub>() {
@Override
public NoopFutureStub newStub(Channel channel, CallOptions callOptions) {
return new NoopFutureStub(channel, callOptions);
}
}, channel, CallOptions.DEFAULT);
fail("should not reach here");
} catch (AssertionError e) {
assertThat(e).hasMessageThat().startsWith("Expected AbstractAsyncStub");
}
}
@Test
@SuppressWarnings("AssertionFailureIgnored")
public void newStub_blockingStub_throwsException() {
try {
NoopBlockingStub unused = NoopAsyncStub.newStub(new StubFactory<NoopBlockingStub>() {
@Override
public NoopBlockingStub newStub(Channel channel, CallOptions callOptions) {
return new NoopBlockingStub(channel, callOptions);
}
}, channel, CallOptions.DEFAULT);
fail("should not reach here");
} catch (AssertionError e) {
assertThat(e).hasMessageThat().startsWith("Expected AbstractAsyncStub");
}
}
static class NoopAsyncStub extends AbstractAsyncStub<NoopAsyncStub> {
NoopAsyncStub(Channel channel, CallOptions options) {
super(channel, options);
}
@Override
protected NoopAsyncStub build(Channel channel, CallOptions callOptions) {
return new NoopAsyncStub(channel, callOptions);
}
}
}

View File

@ -1,97 +0,0 @@
/*
* Copyright 2019 The gRPC Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.grpc.stub;
import static com.google.common.truth.Truth.assertThat;
import static org.junit.Assert.fail;
import io.grpc.CallOptions;
import io.grpc.Channel;
import io.grpc.stub.AbstractAsyncStubTest.NoopAsyncStub;
import io.grpc.stub.AbstractBlockingStubTest.NoopBlockingStub;
import io.grpc.stub.AbstractFutureStubTest.NoopFutureStub;
import io.grpc.stub.AbstractStub.StubFactory;
import io.grpc.stub.ClientCalls.StubType;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
@RunWith(JUnit4.class)
public class AbstractBlockingStubTest extends BaseAbstractStubTest<NoopBlockingStub> {
@Override
NoopBlockingStub create(Channel channel, CallOptions callOptions) {
return new NoopBlockingStub(channel, callOptions);
}
@Test
public void defaultCallOptions() {
NoopBlockingStub stub = NoopBlockingStub.newStub(new StubFactory<NoopBlockingStub>() {
@Override
public NoopBlockingStub newStub(Channel channel, CallOptions callOptions) {
return create(channel, callOptions);
}
}, channel, CallOptions.DEFAULT);
assertThat(stub.getCallOptions().getOption(ClientCalls.STUB_TYPE_OPTION))
.isEqualTo(StubType.BLOCKING);
}
@Test
@SuppressWarnings("AssertionFailureIgnored")
public void newStub_asyncStub_throwsException() {
try {
NoopAsyncStub unused = NoopBlockingStub.newStub(new StubFactory<NoopAsyncStub>() {
@Override
public NoopAsyncStub newStub(Channel channel, CallOptions callOptions) {
return new NoopAsyncStub(channel, callOptions);
}
}, channel, CallOptions.DEFAULT);
fail("should not reach here");
} catch (AssertionError e) {
assertThat(e).hasMessageThat().startsWith("Expected AbstractBlockingStub");
}
}
@Test
@SuppressWarnings("AssertionFailureIgnored")
public void newStub_futureStub_throwsException() {
try {
NoopFutureStub unused = NoopBlockingStub.newStub(new StubFactory<NoopFutureStub>() {
@Override
public NoopFutureStub newStub(Channel channel, CallOptions callOptions) {
return new NoopFutureStub(channel, callOptions);
}
}, channel, CallOptions.DEFAULT);
fail("should not reach here");
} catch (AssertionError e) {
assertThat(e).hasMessageThat().startsWith("Expected AbstractBlockingStub");
}
}
static class NoopBlockingStub extends AbstractBlockingStub<NoopBlockingStub> {
NoopBlockingStub(Channel channel, CallOptions options) {
super(channel, options);
}
@Override
protected NoopBlockingStub build(Channel channel, CallOptions callOptions) {
return new NoopBlockingStub(channel, callOptions);
}
}
}

View File

@ -1,97 +0,0 @@
/*
* Copyright 2019 The gRPC Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.grpc.stub;
import static com.google.common.truth.Truth.assertThat;
import static org.junit.Assert.fail;
import io.grpc.CallOptions;
import io.grpc.Channel;
import io.grpc.stub.AbstractAsyncStubTest.NoopAsyncStub;
import io.grpc.stub.AbstractBlockingStubTest.NoopBlockingStub;
import io.grpc.stub.AbstractFutureStubTest.NoopFutureStub;
import io.grpc.stub.AbstractStub.StubFactory;
import io.grpc.stub.ClientCalls.StubType;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
@RunWith(JUnit4.class)
public class AbstractFutureStubTest extends BaseAbstractStubTest<NoopFutureStub> {
@Override
NoopFutureStub create(Channel channel, CallOptions callOptions) {
return new NoopFutureStub(channel, callOptions);
}
@Test
public void defaultCallOptions() {
NoopFutureStub stub = NoopFutureStub.newStub(new StubFactory<NoopFutureStub>() {
@Override
public NoopFutureStub newStub(Channel channel, CallOptions callOptions) {
return create(channel, callOptions);
}
}, channel, CallOptions.DEFAULT);
assertThat(stub.getCallOptions().getOption(ClientCalls.STUB_TYPE_OPTION))
.isEqualTo(StubType.FUTURE);
}
@Test
@SuppressWarnings("AssertionFailureIgnored")
public void newStub_asyncStub_throwsException() {
try {
NoopAsyncStub unused = NoopFutureStub.newStub(new StubFactory<NoopAsyncStub>() {
@Override
public NoopAsyncStub newStub(Channel channel, CallOptions callOptions) {
return new NoopAsyncStub(channel, callOptions);
}
}, channel, CallOptions.DEFAULT);
fail("should not reach here");
} catch (AssertionError e) {
assertThat(e).hasMessageThat().startsWith("Expected AbstractFutureStub");
}
}
@Test
@SuppressWarnings("AssertionFailureIgnored")
public void newStub_blockingStub_throwsException() {
try {
NoopBlockingStub unused = NoopFutureStub.newStub(new StubFactory<NoopBlockingStub>() {
@Override
public NoopBlockingStub newStub(Channel channel, CallOptions callOptions) {
return new NoopBlockingStub(channel, callOptions);
}
}, channel, CallOptions.DEFAULT);
fail("should not reach here");
} catch (AssertionError e) {
assertThat(e).hasMessageThat().startsWith("Expected AbstractFutureStub");
}
}
static class NoopFutureStub extends AbstractFutureStub<NoopFutureStub> {
NoopFutureStub(Channel channel, CallOptions options) {
super(channel, options);
}
@Override
protected NoopFutureStub build(Channel channel, CallOptions callOptions) {
return new NoopFutureStub(channel, callOptions);
}
}
}

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2019 The gRPC Authors * Copyright 2016 The gRPC Authors
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,39 +16,65 @@
package io.grpc.stub; package io.grpc.stub;
import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.mock;
import io.grpc.CallOptions; import io.grpc.CallOptions;
import io.grpc.Channel; import io.grpc.Channel;
import io.grpc.stub.AbstractStub.StubFactory; import java.util.concurrent.Executor;
import io.grpc.stub.AbstractStubTest.NoopStub; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.junit.runners.JUnit4; import org.junit.runners.JUnit4;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
@RunWith(JUnit4.class) @RunWith(JUnit4.class)
public class AbstractStubTest extends BaseAbstractStubTest<NoopStub> { public class AbstractStubTest {
@Override @Mock
NoopStub create(Channel channel, CallOptions callOptions) { Channel channel;
return new NoopStub(channel, callOptions);
@Before
public void setup() {
MockitoAnnotations.initMocks(this);
} }
@Test @Test(expected = NullPointerException.class)
public void defaultCallOptions() { public void channelMustNotBeNull() {
NoopStub stub = NoopStub.newStub(new StubFactory<NoopStub>() { new NoopStub(null);
@Override
public NoopStub newStub(Channel channel, CallOptions callOptions) {
return create(channel, callOptions);
} }
}, channel, CallOptions.DEFAULT);
assertThat(stub.getCallOptions().getOption(ClientCalls.STUB_TYPE_OPTION)) @Test(expected = NullPointerException.class)
.isNull(); public void callOptionsMustNotBeNull() {
new NoopStub(channel, null);
}
@Test(expected = NullPointerException.class)
public void channelMustNotBeNull2() {
new NoopStub(null, CallOptions.DEFAULT);
}
@Test()
public void withWaitForReady() {
NoopStub stub = new NoopStub(channel);
CallOptions callOptions = stub.getCallOptions();
assertFalse(callOptions.isWaitForReady());
stub = stub.withWaitForReady();
callOptions = stub.getCallOptions();
assertTrue(callOptions.isWaitForReady());
} }
class NoopStub extends AbstractStub<NoopStub> { class NoopStub extends AbstractStub<NoopStub> {
NoopStub(Channel channel) {
super(channel);
}
NoopStub(Channel channel, CallOptions options) { NoopStub(Channel channel, CallOptions options) {
super(channel, options); super(channel, options);
} }
@ -58,5 +84,18 @@ public class AbstractStubTest extends BaseAbstractStubTest<NoopStub> {
return new NoopStub(channel, callOptions); return new NoopStub(channel, callOptions);
} }
} }
}
@Test
public void withExecutor() {
NoopStub stub = new NoopStub(channel);
CallOptions callOptions = stub.getCallOptions();
assertNull(callOptions.getExecutor());
Executor executor = mock(Executor.class);
stub = stub.withExecutor(executor);
callOptions = stub.getCallOptions();
assertEquals(callOptions.getExecutor(), executor);
}
}

View File

@ -1,96 +0,0 @@
/*
* Copyright 2016 The gRPC Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.grpc.stub;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.mockito.Mockito.mock;
import io.grpc.CallOptions;
import io.grpc.Channel;
import java.util.concurrent.Executor;
import javax.annotation.Nullable;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
/** Standard unit tests for AbstractStub and its subclasses. */
abstract class BaseAbstractStubTest<T extends AbstractStub<T>> {
@Mock
Channel channel;
@Before
public void setup() {
MockitoAnnotations.initMocks(this);
}
T create(Channel channel) {
return create(channel, CallOptions.DEFAULT);
}
abstract T create(@Nullable Channel channel, @Nullable CallOptions callOptions);
@Test
public void callOptionsMustNotBeNull() {
try {
create(channel, null);
fail("NullPointerException expected");
} catch (NullPointerException npe) {
// expected
}
}
@Test
public void channelMustNotBeNull2() {
try {
create(null, CallOptions.DEFAULT);
fail("NullPointerException expected");
} catch (NullPointerException npe) {
// expected
}
}
@Test
public void withWaitForReady() {
T stub = create(channel);
CallOptions callOptions = stub.getCallOptions();
assertFalse(callOptions.isWaitForReady());
stub = stub.withWaitForReady();
callOptions = stub.getCallOptions();
assertTrue(callOptions.isWaitForReady());
}
@Test
public void withExecutor() {
T stub = create(channel);
CallOptions callOptions = stub.getCallOptions();
assertNull(callOptions.getExecutor());
Executor executor = mock(Executor.class);
stub = stub.withExecutor(executor);
callOptions = stub.getCallOptions();
assertEquals(callOptions.getExecutor(), executor);
}
}

View File

@ -158,14 +158,7 @@ public final class SimpleServiceGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static SimpleServiceStub newStub(io.grpc.Channel channel) { public static SimpleServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<SimpleServiceStub> factory = return new SimpleServiceStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<SimpleServiceStub>() {
@java.lang.Override
public SimpleServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SimpleServiceStub(channel, callOptions);
}
};
return SimpleServiceStub.newStub(factory, channel);
} }
/** /**
@ -173,14 +166,7 @@ public final class SimpleServiceGrpc {
*/ */
public static SimpleServiceBlockingStub newBlockingStub( public static SimpleServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<SimpleServiceBlockingStub> factory = return new SimpleServiceBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<SimpleServiceBlockingStub>() {
@java.lang.Override
public SimpleServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SimpleServiceBlockingStub(channel, callOptions);
}
};
return SimpleServiceBlockingStub.newStub(factory, channel);
} }
/** /**
@ -188,14 +174,7 @@ public final class SimpleServiceGrpc {
*/ */
public static SimpleServiceFutureStub newFutureStub( public static SimpleServiceFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<SimpleServiceFutureStub> factory = return new SimpleServiceFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<SimpleServiceFutureStub>() {
@java.lang.Override
public SimpleServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SimpleServiceFutureStub(channel, callOptions);
}
};
return SimpleServiceFutureStub.newStub(factory, channel);
} }
/** /**
@ -284,15 +263,19 @@ public final class SimpleServiceGrpc {
* A simple service for test. * A simple service for test.
* </pre> * </pre>
*/ */
public static final class SimpleServiceStub extends io.grpc.stub.AbstractAsyncStub<SimpleServiceStub> { public static final class SimpleServiceStub extends io.grpc.stub.AbstractStub<SimpleServiceStub> {
private SimpleServiceStub( private SimpleServiceStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private SimpleServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected SimpleServiceStub build( protected SimpleServiceStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new SimpleServiceStub(channel, callOptions); return new SimpleServiceStub(channel, callOptions);
} }
@ -346,15 +329,19 @@ public final class SimpleServiceGrpc {
* A simple service for test. * A simple service for test.
* </pre> * </pre>
*/ */
public static final class SimpleServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<SimpleServiceBlockingStub> { public static final class SimpleServiceBlockingStub extends io.grpc.stub.AbstractStub<SimpleServiceBlockingStub> {
private SimpleServiceBlockingStub( private SimpleServiceBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private SimpleServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected SimpleServiceBlockingStub build( protected SimpleServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new SimpleServiceBlockingStub(channel, callOptions); return new SimpleServiceBlockingStub(channel, callOptions);
} }
@ -385,15 +372,19 @@ public final class SimpleServiceGrpc {
* A simple service for test. * A simple service for test.
* </pre> * </pre>
*/ */
public static final class SimpleServiceFutureStub extends io.grpc.stub.AbstractFutureStub<SimpleServiceFutureStub> { public static final class SimpleServiceFutureStub extends io.grpc.stub.AbstractStub<SimpleServiceFutureStub> {
private SimpleServiceFutureStub( private SimpleServiceFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private SimpleServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected SimpleServiceFutureStub build( protected SimpleServiceFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new SimpleServiceFutureStub(channel, callOptions); return new SimpleServiceFutureStub(channel, callOptions);
} }

View File

@ -72,14 +72,7 @@ public final class OpenRcaServiceGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static OpenRcaServiceStub newStub(io.grpc.Channel channel) { public static OpenRcaServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<OpenRcaServiceStub> factory = return new OpenRcaServiceStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<OpenRcaServiceStub>() {
@java.lang.Override
public OpenRcaServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new OpenRcaServiceStub(channel, callOptions);
}
};
return OpenRcaServiceStub.newStub(factory, channel);
} }
/** /**
@ -87,14 +80,7 @@ public final class OpenRcaServiceGrpc {
*/ */
public static OpenRcaServiceBlockingStub newBlockingStub( public static OpenRcaServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<OpenRcaServiceBlockingStub> factory = return new OpenRcaServiceBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<OpenRcaServiceBlockingStub>() {
@java.lang.Override
public OpenRcaServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new OpenRcaServiceBlockingStub(channel, callOptions);
}
};
return OpenRcaServiceBlockingStub.newStub(factory, channel);
} }
/** /**
@ -102,14 +88,7 @@ public final class OpenRcaServiceGrpc {
*/ */
public static OpenRcaServiceFutureStub newFutureStub( public static OpenRcaServiceFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<OpenRcaServiceFutureStub> factory = return new OpenRcaServiceFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<OpenRcaServiceFutureStub>() {
@java.lang.Override
public OpenRcaServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new OpenRcaServiceFutureStub(channel, callOptions);
}
};
return OpenRcaServiceFutureStub.newStub(factory, channel);
} }
/** /**
@ -158,15 +137,19 @@ public final class OpenRcaServiceGrpc {
* a new call to change backend reporting frequency. * a new call to change backend reporting frequency.
* </pre> * </pre>
*/ */
public static final class OpenRcaServiceStub extends io.grpc.stub.AbstractAsyncStub<OpenRcaServiceStub> { public static final class OpenRcaServiceStub extends io.grpc.stub.AbstractStub<OpenRcaServiceStub> {
private OpenRcaServiceStub( private OpenRcaServiceStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private OpenRcaServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected OpenRcaServiceStub build( protected OpenRcaServiceStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new OpenRcaServiceStub(channel, callOptions); return new OpenRcaServiceStub(channel, callOptions);
} }
@ -191,15 +174,19 @@ public final class OpenRcaServiceGrpc {
* a new call to change backend reporting frequency. * a new call to change backend reporting frequency.
* </pre> * </pre>
*/ */
public static final class OpenRcaServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<OpenRcaServiceBlockingStub> { public static final class OpenRcaServiceBlockingStub extends io.grpc.stub.AbstractStub<OpenRcaServiceBlockingStub> {
private OpenRcaServiceBlockingStub( private OpenRcaServiceBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private OpenRcaServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected OpenRcaServiceBlockingStub build( protected OpenRcaServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new OpenRcaServiceBlockingStub(channel, callOptions); return new OpenRcaServiceBlockingStub(channel, callOptions);
} }
@ -224,15 +211,19 @@ public final class OpenRcaServiceGrpc {
* a new call to change backend reporting frequency. * a new call to change backend reporting frequency.
* </pre> * </pre>
*/ */
public static final class OpenRcaServiceFutureStub extends io.grpc.stub.AbstractFutureStub<OpenRcaServiceFutureStub> { public static final class OpenRcaServiceFutureStub extends io.grpc.stub.AbstractStub<OpenRcaServiceFutureStub> {
private OpenRcaServiceFutureStub( private OpenRcaServiceFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private OpenRcaServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected OpenRcaServiceFutureStub build( protected OpenRcaServiceFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new OpenRcaServiceFutureStub(channel, callOptions); return new OpenRcaServiceFutureStub(channel, callOptions);
} }
} }

View File

@ -127,14 +127,7 @@ public final class ClusterDiscoveryServiceGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static ClusterDiscoveryServiceStub newStub(io.grpc.Channel channel) { public static ClusterDiscoveryServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<ClusterDiscoveryServiceStub> factory = return new ClusterDiscoveryServiceStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<ClusterDiscoveryServiceStub>() {
@java.lang.Override
public ClusterDiscoveryServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ClusterDiscoveryServiceStub(channel, callOptions);
}
};
return ClusterDiscoveryServiceStub.newStub(factory, channel);
} }
/** /**
@ -142,14 +135,7 @@ public final class ClusterDiscoveryServiceGrpc {
*/ */
public static ClusterDiscoveryServiceBlockingStub newBlockingStub( public static ClusterDiscoveryServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<ClusterDiscoveryServiceBlockingStub> factory = return new ClusterDiscoveryServiceBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<ClusterDiscoveryServiceBlockingStub>() {
@java.lang.Override
public ClusterDiscoveryServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ClusterDiscoveryServiceBlockingStub(channel, callOptions);
}
};
return ClusterDiscoveryServiceBlockingStub.newStub(factory, channel);
} }
/** /**
@ -157,14 +143,7 @@ public final class ClusterDiscoveryServiceGrpc {
*/ */
public static ClusterDiscoveryServiceFutureStub newFutureStub( public static ClusterDiscoveryServiceFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<ClusterDiscoveryServiceFutureStub> factory = return new ClusterDiscoveryServiceFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<ClusterDiscoveryServiceFutureStub>() {
@java.lang.Override
public ClusterDiscoveryServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ClusterDiscoveryServiceFutureStub(channel, callOptions);
}
};
return ClusterDiscoveryServiceFutureStub.newStub(factory, channel);
} }
/** /**
@ -227,15 +206,19 @@ public final class ClusterDiscoveryServiceGrpc {
* Return list of all clusters this proxy will load balance to. * Return list of all clusters this proxy will load balance to.
* </pre> * </pre>
*/ */
public static final class ClusterDiscoveryServiceStub extends io.grpc.stub.AbstractAsyncStub<ClusterDiscoveryServiceStub> { public static final class ClusterDiscoveryServiceStub extends io.grpc.stub.AbstractStub<ClusterDiscoveryServiceStub> {
private ClusterDiscoveryServiceStub( private ClusterDiscoveryServiceStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private ClusterDiscoveryServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected ClusterDiscoveryServiceStub build( protected ClusterDiscoveryServiceStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new ClusterDiscoveryServiceStub(channel, callOptions); return new ClusterDiscoveryServiceStub(channel, callOptions);
} }
@ -269,15 +252,19 @@ public final class ClusterDiscoveryServiceGrpc {
* Return list of all clusters this proxy will load balance to. * Return list of all clusters this proxy will load balance to.
* </pre> * </pre>
*/ */
public static final class ClusterDiscoveryServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<ClusterDiscoveryServiceBlockingStub> { public static final class ClusterDiscoveryServiceBlockingStub extends io.grpc.stub.AbstractStub<ClusterDiscoveryServiceBlockingStub> {
private ClusterDiscoveryServiceBlockingStub( private ClusterDiscoveryServiceBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private ClusterDiscoveryServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected ClusterDiscoveryServiceBlockingStub build( protected ClusterDiscoveryServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new ClusterDiscoveryServiceBlockingStub(channel, callOptions); return new ClusterDiscoveryServiceBlockingStub(channel, callOptions);
} }
@ -294,15 +281,19 @@ public final class ClusterDiscoveryServiceGrpc {
* Return list of all clusters this proxy will load balance to. * Return list of all clusters this proxy will load balance to.
* </pre> * </pre>
*/ */
public static final class ClusterDiscoveryServiceFutureStub extends io.grpc.stub.AbstractFutureStub<ClusterDiscoveryServiceFutureStub> { public static final class ClusterDiscoveryServiceFutureStub extends io.grpc.stub.AbstractStub<ClusterDiscoveryServiceFutureStub> {
private ClusterDiscoveryServiceFutureStub( private ClusterDiscoveryServiceFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private ClusterDiscoveryServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected ClusterDiscoveryServiceFutureStub build( protected ClusterDiscoveryServiceFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new ClusterDiscoveryServiceFutureStub(channel, callOptions); return new ClusterDiscoveryServiceFutureStub(channel, callOptions);
} }

View File

@ -124,14 +124,7 @@ public final class EndpointDiscoveryServiceGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static EndpointDiscoveryServiceStub newStub(io.grpc.Channel channel) { public static EndpointDiscoveryServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<EndpointDiscoveryServiceStub> factory = return new EndpointDiscoveryServiceStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<EndpointDiscoveryServiceStub>() {
@java.lang.Override
public EndpointDiscoveryServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new EndpointDiscoveryServiceStub(channel, callOptions);
}
};
return EndpointDiscoveryServiceStub.newStub(factory, channel);
} }
/** /**
@ -139,14 +132,7 @@ public final class EndpointDiscoveryServiceGrpc {
*/ */
public static EndpointDiscoveryServiceBlockingStub newBlockingStub( public static EndpointDiscoveryServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<EndpointDiscoveryServiceBlockingStub> factory = return new EndpointDiscoveryServiceBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<EndpointDiscoveryServiceBlockingStub>() {
@java.lang.Override
public EndpointDiscoveryServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new EndpointDiscoveryServiceBlockingStub(channel, callOptions);
}
};
return EndpointDiscoveryServiceBlockingStub.newStub(factory, channel);
} }
/** /**
@ -154,14 +140,7 @@ public final class EndpointDiscoveryServiceGrpc {
*/ */
public static EndpointDiscoveryServiceFutureStub newFutureStub( public static EndpointDiscoveryServiceFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<EndpointDiscoveryServiceFutureStub> factory = return new EndpointDiscoveryServiceFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<EndpointDiscoveryServiceFutureStub>() {
@java.lang.Override
public EndpointDiscoveryServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new EndpointDiscoveryServiceFutureStub(channel, callOptions);
}
};
return EndpointDiscoveryServiceFutureStub.newStub(factory, channel);
} }
/** /**
@ -222,15 +201,19 @@ public final class EndpointDiscoveryServiceGrpc {
/** /**
*/ */
public static final class EndpointDiscoveryServiceStub extends io.grpc.stub.AbstractAsyncStub<EndpointDiscoveryServiceStub> { public static final class EndpointDiscoveryServiceStub extends io.grpc.stub.AbstractStub<EndpointDiscoveryServiceStub> {
private EndpointDiscoveryServiceStub( private EndpointDiscoveryServiceStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private EndpointDiscoveryServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected EndpointDiscoveryServiceStub build( protected EndpointDiscoveryServiceStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new EndpointDiscoveryServiceStub(channel, callOptions); return new EndpointDiscoveryServiceStub(channel, callOptions);
} }
@ -265,15 +248,19 @@ public final class EndpointDiscoveryServiceGrpc {
/** /**
*/ */
public static final class EndpointDiscoveryServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<EndpointDiscoveryServiceBlockingStub> { public static final class EndpointDiscoveryServiceBlockingStub extends io.grpc.stub.AbstractStub<EndpointDiscoveryServiceBlockingStub> {
private EndpointDiscoveryServiceBlockingStub( private EndpointDiscoveryServiceBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private EndpointDiscoveryServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected EndpointDiscoveryServiceBlockingStub build( protected EndpointDiscoveryServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new EndpointDiscoveryServiceBlockingStub(channel, callOptions); return new EndpointDiscoveryServiceBlockingStub(channel, callOptions);
} }
@ -287,15 +274,19 @@ public final class EndpointDiscoveryServiceGrpc {
/** /**
*/ */
public static final class EndpointDiscoveryServiceFutureStub extends io.grpc.stub.AbstractFutureStub<EndpointDiscoveryServiceFutureStub> { public static final class EndpointDiscoveryServiceFutureStub extends io.grpc.stub.AbstractStub<EndpointDiscoveryServiceFutureStub> {
private EndpointDiscoveryServiceFutureStub( private EndpointDiscoveryServiceFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private EndpointDiscoveryServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected EndpointDiscoveryServiceFutureStub build( protected EndpointDiscoveryServiceFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new EndpointDiscoveryServiceFutureStub(channel, callOptions); return new EndpointDiscoveryServiceFutureStub(channel, callOptions);
} }

View File

@ -130,14 +130,7 @@ public final class ListenerDiscoveryServiceGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static ListenerDiscoveryServiceStub newStub(io.grpc.Channel channel) { public static ListenerDiscoveryServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<ListenerDiscoveryServiceStub> factory = return new ListenerDiscoveryServiceStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<ListenerDiscoveryServiceStub>() {
@java.lang.Override
public ListenerDiscoveryServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ListenerDiscoveryServiceStub(channel, callOptions);
}
};
return ListenerDiscoveryServiceStub.newStub(factory, channel);
} }
/** /**
@ -145,14 +138,7 @@ public final class ListenerDiscoveryServiceGrpc {
*/ */
public static ListenerDiscoveryServiceBlockingStub newBlockingStub( public static ListenerDiscoveryServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<ListenerDiscoveryServiceBlockingStub> factory = return new ListenerDiscoveryServiceBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<ListenerDiscoveryServiceBlockingStub>() {
@java.lang.Override
public ListenerDiscoveryServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ListenerDiscoveryServiceBlockingStub(channel, callOptions);
}
};
return ListenerDiscoveryServiceBlockingStub.newStub(factory, channel);
} }
/** /**
@ -160,14 +146,7 @@ public final class ListenerDiscoveryServiceGrpc {
*/ */
public static ListenerDiscoveryServiceFutureStub newFutureStub( public static ListenerDiscoveryServiceFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<ListenerDiscoveryServiceFutureStub> factory = return new ListenerDiscoveryServiceFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<ListenerDiscoveryServiceFutureStub>() {
@java.lang.Override
public ListenerDiscoveryServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ListenerDiscoveryServiceFutureStub(channel, callOptions);
}
};
return ListenerDiscoveryServiceFutureStub.newStub(factory, channel);
} }
/** /**
@ -236,15 +215,19 @@ public final class ListenerDiscoveryServiceGrpc {
* allowed to drain from listeners that are no longer present. * allowed to drain from listeners that are no longer present.
* </pre> * </pre>
*/ */
public static final class ListenerDiscoveryServiceStub extends io.grpc.stub.AbstractAsyncStub<ListenerDiscoveryServiceStub> { public static final class ListenerDiscoveryServiceStub extends io.grpc.stub.AbstractStub<ListenerDiscoveryServiceStub> {
private ListenerDiscoveryServiceStub( private ListenerDiscoveryServiceStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private ListenerDiscoveryServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected ListenerDiscoveryServiceStub build( protected ListenerDiscoveryServiceStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new ListenerDiscoveryServiceStub(channel, callOptions); return new ListenerDiscoveryServiceStub(channel, callOptions);
} }
@ -281,15 +264,19 @@ public final class ListenerDiscoveryServiceGrpc {
* allowed to drain from listeners that are no longer present. * allowed to drain from listeners that are no longer present.
* </pre> * </pre>
*/ */
public static final class ListenerDiscoveryServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<ListenerDiscoveryServiceBlockingStub> { public static final class ListenerDiscoveryServiceBlockingStub extends io.grpc.stub.AbstractStub<ListenerDiscoveryServiceBlockingStub> {
private ListenerDiscoveryServiceBlockingStub( private ListenerDiscoveryServiceBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private ListenerDiscoveryServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected ListenerDiscoveryServiceBlockingStub build( protected ListenerDiscoveryServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new ListenerDiscoveryServiceBlockingStub(channel, callOptions); return new ListenerDiscoveryServiceBlockingStub(channel, callOptions);
} }
@ -309,15 +296,19 @@ public final class ListenerDiscoveryServiceGrpc {
* allowed to drain from listeners that are no longer present. * allowed to drain from listeners that are no longer present.
* </pre> * </pre>
*/ */
public static final class ListenerDiscoveryServiceFutureStub extends io.grpc.stub.AbstractFutureStub<ListenerDiscoveryServiceFutureStub> { public static final class ListenerDiscoveryServiceFutureStub extends io.grpc.stub.AbstractStub<ListenerDiscoveryServiceFutureStub> {
private ListenerDiscoveryServiceFutureStub( private ListenerDiscoveryServiceFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private ListenerDiscoveryServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected ListenerDiscoveryServiceFutureStub build( protected ListenerDiscoveryServiceFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new ListenerDiscoveryServiceFutureStub(channel, callOptions); return new ListenerDiscoveryServiceFutureStub(channel, callOptions);
} }

View File

@ -131,14 +131,7 @@ public final class RouteDiscoveryServiceGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static RouteDiscoveryServiceStub newStub(io.grpc.Channel channel) { public static RouteDiscoveryServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<RouteDiscoveryServiceStub> factory = return new RouteDiscoveryServiceStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<RouteDiscoveryServiceStub>() {
@java.lang.Override
public RouteDiscoveryServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new RouteDiscoveryServiceStub(channel, callOptions);
}
};
return RouteDiscoveryServiceStub.newStub(factory, channel);
} }
/** /**
@ -146,14 +139,7 @@ public final class RouteDiscoveryServiceGrpc {
*/ */
public static RouteDiscoveryServiceBlockingStub newBlockingStub( public static RouteDiscoveryServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<RouteDiscoveryServiceBlockingStub> factory = return new RouteDiscoveryServiceBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<RouteDiscoveryServiceBlockingStub>() {
@java.lang.Override
public RouteDiscoveryServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new RouteDiscoveryServiceBlockingStub(channel, callOptions);
}
};
return RouteDiscoveryServiceBlockingStub.newStub(factory, channel);
} }
/** /**
@ -161,14 +147,7 @@ public final class RouteDiscoveryServiceGrpc {
*/ */
public static RouteDiscoveryServiceFutureStub newFutureStub( public static RouteDiscoveryServiceFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<RouteDiscoveryServiceFutureStub> factory = return new RouteDiscoveryServiceFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<RouteDiscoveryServiceFutureStub>() {
@java.lang.Override
public RouteDiscoveryServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new RouteDiscoveryServiceFutureStub(channel, callOptions);
}
};
return RouteDiscoveryServiceFutureStub.newStub(factory, channel);
} }
/** /**
@ -239,15 +218,19 @@ public final class RouteDiscoveryServiceGrpc {
* a route table via this identifier. * a route table via this identifier.
* </pre> * </pre>
*/ */
public static final class RouteDiscoveryServiceStub extends io.grpc.stub.AbstractAsyncStub<RouteDiscoveryServiceStub> { public static final class RouteDiscoveryServiceStub extends io.grpc.stub.AbstractStub<RouteDiscoveryServiceStub> {
private RouteDiscoveryServiceStub( private RouteDiscoveryServiceStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private RouteDiscoveryServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected RouteDiscoveryServiceStub build( protected RouteDiscoveryServiceStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new RouteDiscoveryServiceStub(channel, callOptions); return new RouteDiscoveryServiceStub(channel, callOptions);
} }
@ -285,15 +268,19 @@ public final class RouteDiscoveryServiceGrpc {
* a route table via this identifier. * a route table via this identifier.
* </pre> * </pre>
*/ */
public static final class RouteDiscoveryServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<RouteDiscoveryServiceBlockingStub> { public static final class RouteDiscoveryServiceBlockingStub extends io.grpc.stub.AbstractStub<RouteDiscoveryServiceBlockingStub> {
private RouteDiscoveryServiceBlockingStub( private RouteDiscoveryServiceBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private RouteDiscoveryServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected RouteDiscoveryServiceBlockingStub build( protected RouteDiscoveryServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new RouteDiscoveryServiceBlockingStub(channel, callOptions); return new RouteDiscoveryServiceBlockingStub(channel, callOptions);
} }
@ -314,15 +301,19 @@ public final class RouteDiscoveryServiceGrpc {
* a route table via this identifier. * a route table via this identifier.
* </pre> * </pre>
*/ */
public static final class RouteDiscoveryServiceFutureStub extends io.grpc.stub.AbstractFutureStub<RouteDiscoveryServiceFutureStub> { public static final class RouteDiscoveryServiceFutureStub extends io.grpc.stub.AbstractStub<RouteDiscoveryServiceFutureStub> {
private RouteDiscoveryServiceFutureStub( private RouteDiscoveryServiceFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private RouteDiscoveryServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected RouteDiscoveryServiceFutureStub build( protected RouteDiscoveryServiceFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new RouteDiscoveryServiceFutureStub(channel, callOptions); return new RouteDiscoveryServiceFutureStub(channel, callOptions);
} }

View File

@ -135,14 +135,7 @@ public final class ScopedRoutesDiscoveryServiceGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static ScopedRoutesDiscoveryServiceStub newStub(io.grpc.Channel channel) { public static ScopedRoutesDiscoveryServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<ScopedRoutesDiscoveryServiceStub> factory = return new ScopedRoutesDiscoveryServiceStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<ScopedRoutesDiscoveryServiceStub>() {
@java.lang.Override
public ScopedRoutesDiscoveryServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ScopedRoutesDiscoveryServiceStub(channel, callOptions);
}
};
return ScopedRoutesDiscoveryServiceStub.newStub(factory, channel);
} }
/** /**
@ -150,14 +143,7 @@ public final class ScopedRoutesDiscoveryServiceGrpc {
*/ */
public static ScopedRoutesDiscoveryServiceBlockingStub newBlockingStub( public static ScopedRoutesDiscoveryServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<ScopedRoutesDiscoveryServiceBlockingStub> factory = return new ScopedRoutesDiscoveryServiceBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<ScopedRoutesDiscoveryServiceBlockingStub>() {
@java.lang.Override
public ScopedRoutesDiscoveryServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ScopedRoutesDiscoveryServiceBlockingStub(channel, callOptions);
}
};
return ScopedRoutesDiscoveryServiceBlockingStub.newStub(factory, channel);
} }
/** /**
@ -165,14 +151,7 @@ public final class ScopedRoutesDiscoveryServiceGrpc {
*/ */
public static ScopedRoutesDiscoveryServiceFutureStub newFutureStub( public static ScopedRoutesDiscoveryServiceFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<ScopedRoutesDiscoveryServiceFutureStub> factory = return new ScopedRoutesDiscoveryServiceFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<ScopedRoutesDiscoveryServiceFutureStub>() {
@java.lang.Override
public ScopedRoutesDiscoveryServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ScopedRoutesDiscoveryServiceFutureStub(channel, callOptions);
}
};
return ScopedRoutesDiscoveryServiceFutureStub.newStub(factory, channel);
} }
/** /**
@ -251,15 +230,19 @@ public final class ScopedRoutesDiscoveryServiceGrpc {
* HTTP request. * HTTP request.
* </pre> * </pre>
*/ */
public static final class ScopedRoutesDiscoveryServiceStub extends io.grpc.stub.AbstractAsyncStub<ScopedRoutesDiscoveryServiceStub> { public static final class ScopedRoutesDiscoveryServiceStub extends io.grpc.stub.AbstractStub<ScopedRoutesDiscoveryServiceStub> {
private ScopedRoutesDiscoveryServiceStub( private ScopedRoutesDiscoveryServiceStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private ScopedRoutesDiscoveryServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected ScopedRoutesDiscoveryServiceStub build( protected ScopedRoutesDiscoveryServiceStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new ScopedRoutesDiscoveryServiceStub(channel, callOptions); return new ScopedRoutesDiscoveryServiceStub(channel, callOptions);
} }
@ -301,15 +284,19 @@ public final class ScopedRoutesDiscoveryServiceGrpc {
* HTTP request. * HTTP request.
* </pre> * </pre>
*/ */
public static final class ScopedRoutesDiscoveryServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<ScopedRoutesDiscoveryServiceBlockingStub> { public static final class ScopedRoutesDiscoveryServiceBlockingStub extends io.grpc.stub.AbstractStub<ScopedRoutesDiscoveryServiceBlockingStub> {
private ScopedRoutesDiscoveryServiceBlockingStub( private ScopedRoutesDiscoveryServiceBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private ScopedRoutesDiscoveryServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected ScopedRoutesDiscoveryServiceBlockingStub build( protected ScopedRoutesDiscoveryServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new ScopedRoutesDiscoveryServiceBlockingStub(channel, callOptions); return new ScopedRoutesDiscoveryServiceBlockingStub(channel, callOptions);
} }
@ -334,15 +321,19 @@ public final class ScopedRoutesDiscoveryServiceGrpc {
* HTTP request. * HTTP request.
* </pre> * </pre>
*/ */
public static final class ScopedRoutesDiscoveryServiceFutureStub extends io.grpc.stub.AbstractFutureStub<ScopedRoutesDiscoveryServiceFutureStub> { public static final class ScopedRoutesDiscoveryServiceFutureStub extends io.grpc.stub.AbstractStub<ScopedRoutesDiscoveryServiceFutureStub> {
private ScopedRoutesDiscoveryServiceFutureStub( private ScopedRoutesDiscoveryServiceFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private ScopedRoutesDiscoveryServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected ScopedRoutesDiscoveryServiceFutureStub build( protected ScopedRoutesDiscoveryServiceFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new ScopedRoutesDiscoveryServiceFutureStub(channel, callOptions); return new ScopedRoutesDiscoveryServiceFutureStub(channel, callOptions);
} }

View File

@ -74,14 +74,7 @@ public final class VirtualHostDiscoveryServiceGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static VirtualHostDiscoveryServiceStub newStub(io.grpc.Channel channel) { public static VirtualHostDiscoveryServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<VirtualHostDiscoveryServiceStub> factory = return new VirtualHostDiscoveryServiceStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<VirtualHostDiscoveryServiceStub>() {
@java.lang.Override
public VirtualHostDiscoveryServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new VirtualHostDiscoveryServiceStub(channel, callOptions);
}
};
return VirtualHostDiscoveryServiceStub.newStub(factory, channel);
} }
/** /**
@ -89,14 +82,7 @@ public final class VirtualHostDiscoveryServiceGrpc {
*/ */
public static VirtualHostDiscoveryServiceBlockingStub newBlockingStub( public static VirtualHostDiscoveryServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<VirtualHostDiscoveryServiceBlockingStub> factory = return new VirtualHostDiscoveryServiceBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<VirtualHostDiscoveryServiceBlockingStub>() {
@java.lang.Override
public VirtualHostDiscoveryServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new VirtualHostDiscoveryServiceBlockingStub(channel, callOptions);
}
};
return VirtualHostDiscoveryServiceBlockingStub.newStub(factory, channel);
} }
/** /**
@ -104,14 +90,7 @@ public final class VirtualHostDiscoveryServiceGrpc {
*/ */
public static VirtualHostDiscoveryServiceFutureStub newFutureStub( public static VirtualHostDiscoveryServiceFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<VirtualHostDiscoveryServiceFutureStub> factory = return new VirtualHostDiscoveryServiceFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<VirtualHostDiscoveryServiceFutureStub>() {
@java.lang.Override
public VirtualHostDiscoveryServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new VirtualHostDiscoveryServiceFutureStub(channel, callOptions);
}
};
return VirtualHostDiscoveryServiceFutureStub.newStub(factory, channel);
} }
/** /**
@ -164,15 +143,19 @@ public final class VirtualHostDiscoveryServiceGrpc {
* from the routing table associated with the RouteConfiguration. * from the routing table associated with the RouteConfiguration.
* </pre> * </pre>
*/ */
public static final class VirtualHostDiscoveryServiceStub extends io.grpc.stub.AbstractAsyncStub<VirtualHostDiscoveryServiceStub> { public static final class VirtualHostDiscoveryServiceStub extends io.grpc.stub.AbstractStub<VirtualHostDiscoveryServiceStub> {
private VirtualHostDiscoveryServiceStub( private VirtualHostDiscoveryServiceStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private VirtualHostDiscoveryServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected VirtualHostDiscoveryServiceStub build( protected VirtualHostDiscoveryServiceStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new VirtualHostDiscoveryServiceStub(channel, callOptions); return new VirtualHostDiscoveryServiceStub(channel, callOptions);
} }
@ -199,15 +182,19 @@ public final class VirtualHostDiscoveryServiceGrpc {
* from the routing table associated with the RouteConfiguration. * from the routing table associated with the RouteConfiguration.
* </pre> * </pre>
*/ */
public static final class VirtualHostDiscoveryServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<VirtualHostDiscoveryServiceBlockingStub> { public static final class VirtualHostDiscoveryServiceBlockingStub extends io.grpc.stub.AbstractStub<VirtualHostDiscoveryServiceBlockingStub> {
private VirtualHostDiscoveryServiceBlockingStub( private VirtualHostDiscoveryServiceBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private VirtualHostDiscoveryServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected VirtualHostDiscoveryServiceBlockingStub build( protected VirtualHostDiscoveryServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new VirtualHostDiscoveryServiceBlockingStub(channel, callOptions); return new VirtualHostDiscoveryServiceBlockingStub(channel, callOptions);
} }
} }
@ -226,15 +213,19 @@ public final class VirtualHostDiscoveryServiceGrpc {
* from the routing table associated with the RouteConfiguration. * from the routing table associated with the RouteConfiguration.
* </pre> * </pre>
*/ */
public static final class VirtualHostDiscoveryServiceFutureStub extends io.grpc.stub.AbstractFutureStub<VirtualHostDiscoveryServiceFutureStub> { public static final class VirtualHostDiscoveryServiceFutureStub extends io.grpc.stub.AbstractStub<VirtualHostDiscoveryServiceFutureStub> {
private VirtualHostDiscoveryServiceFutureStub( private VirtualHostDiscoveryServiceFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private VirtualHostDiscoveryServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected VirtualHostDiscoveryServiceFutureStub build( protected VirtualHostDiscoveryServiceFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new VirtualHostDiscoveryServiceFutureStub(channel, callOptions); return new VirtualHostDiscoveryServiceFutureStub(channel, callOptions);
} }
} }

View File

@ -101,14 +101,7 @@ public final class AggregatedDiscoveryServiceGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static AggregatedDiscoveryServiceStub newStub(io.grpc.Channel channel) { public static AggregatedDiscoveryServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<AggregatedDiscoveryServiceStub> factory = return new AggregatedDiscoveryServiceStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<AggregatedDiscoveryServiceStub>() {
@java.lang.Override
public AggregatedDiscoveryServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AggregatedDiscoveryServiceStub(channel, callOptions);
}
};
return AggregatedDiscoveryServiceStub.newStub(factory, channel);
} }
/** /**
@ -116,14 +109,7 @@ public final class AggregatedDiscoveryServiceGrpc {
*/ */
public static AggregatedDiscoveryServiceBlockingStub newBlockingStub( public static AggregatedDiscoveryServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<AggregatedDiscoveryServiceBlockingStub> factory = return new AggregatedDiscoveryServiceBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<AggregatedDiscoveryServiceBlockingStub>() {
@java.lang.Override
public AggregatedDiscoveryServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AggregatedDiscoveryServiceBlockingStub(channel, callOptions);
}
};
return AggregatedDiscoveryServiceBlockingStub.newStub(factory, channel);
} }
/** /**
@ -131,14 +117,7 @@ public final class AggregatedDiscoveryServiceGrpc {
*/ */
public static AggregatedDiscoveryServiceFutureStub newFutureStub( public static AggregatedDiscoveryServiceFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<AggregatedDiscoveryServiceFutureStub> factory = return new AggregatedDiscoveryServiceFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<AggregatedDiscoveryServiceFutureStub>() {
@java.lang.Override
public AggregatedDiscoveryServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AggregatedDiscoveryServiceFutureStub(channel, callOptions);
}
};
return AggregatedDiscoveryServiceFutureStub.newStub(factory, channel);
} }
/** /**
@ -200,15 +179,19 @@ public final class AggregatedDiscoveryServiceGrpc {
* the multiplexed singleton APIs at the Envoy instance and management server. * the multiplexed singleton APIs at the Envoy instance and management server.
* </pre> * </pre>
*/ */
public static final class AggregatedDiscoveryServiceStub extends io.grpc.stub.AbstractAsyncStub<AggregatedDiscoveryServiceStub> { public static final class AggregatedDiscoveryServiceStub extends io.grpc.stub.AbstractStub<AggregatedDiscoveryServiceStub> {
private AggregatedDiscoveryServiceStub( private AggregatedDiscoveryServiceStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private AggregatedDiscoveryServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected AggregatedDiscoveryServiceStub build( protected AggregatedDiscoveryServiceStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new AggregatedDiscoveryServiceStub(channel, callOptions); return new AggregatedDiscoveryServiceStub(channel, callOptions);
} }
@ -242,15 +225,19 @@ public final class AggregatedDiscoveryServiceGrpc {
* the multiplexed singleton APIs at the Envoy instance and management server. * the multiplexed singleton APIs at the Envoy instance and management server.
* </pre> * </pre>
*/ */
public static final class AggregatedDiscoveryServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<AggregatedDiscoveryServiceBlockingStub> { public static final class AggregatedDiscoveryServiceBlockingStub extends io.grpc.stub.AbstractStub<AggregatedDiscoveryServiceBlockingStub> {
private AggregatedDiscoveryServiceBlockingStub( private AggregatedDiscoveryServiceBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private AggregatedDiscoveryServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected AggregatedDiscoveryServiceBlockingStub build( protected AggregatedDiscoveryServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new AggregatedDiscoveryServiceBlockingStub(channel, callOptions); return new AggregatedDiscoveryServiceBlockingStub(channel, callOptions);
} }
} }
@ -265,15 +252,19 @@ public final class AggregatedDiscoveryServiceGrpc {
* the multiplexed singleton APIs at the Envoy instance and management server. * the multiplexed singleton APIs at the Envoy instance and management server.
* </pre> * </pre>
*/ */
public static final class AggregatedDiscoveryServiceFutureStub extends io.grpc.stub.AbstractFutureStub<AggregatedDiscoveryServiceFutureStub> { public static final class AggregatedDiscoveryServiceFutureStub extends io.grpc.stub.AbstractStub<AggregatedDiscoveryServiceFutureStub> {
private AggregatedDiscoveryServiceFutureStub( private AggregatedDiscoveryServiceFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private AggregatedDiscoveryServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected AggregatedDiscoveryServiceFutureStub build( protected AggregatedDiscoveryServiceFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new AggregatedDiscoveryServiceFutureStub(channel, callOptions); return new AggregatedDiscoveryServiceFutureStub(channel, callOptions);
} }
} }

View File

@ -62,14 +62,7 @@ public final class LoadReportingServiceGrpc {
* Creates a new async stub that supports all call types for the service * Creates a new async stub that supports all call types for the service
*/ */
public static LoadReportingServiceStub newStub(io.grpc.Channel channel) { public static LoadReportingServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<LoadReportingServiceStub> factory = return new LoadReportingServiceStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<LoadReportingServiceStub>() {
@java.lang.Override
public LoadReportingServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new LoadReportingServiceStub(channel, callOptions);
}
};
return LoadReportingServiceStub.newStub(factory, channel);
} }
/** /**
@ -77,14 +70,7 @@ public final class LoadReportingServiceGrpc {
*/ */
public static LoadReportingServiceBlockingStub newBlockingStub( public static LoadReportingServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<LoadReportingServiceBlockingStub> factory = return new LoadReportingServiceBlockingStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<LoadReportingServiceBlockingStub>() {
@java.lang.Override
public LoadReportingServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new LoadReportingServiceBlockingStub(channel, callOptions);
}
};
return LoadReportingServiceBlockingStub.newStub(factory, channel);
} }
/** /**
@ -92,14 +78,7 @@ public final class LoadReportingServiceGrpc {
*/ */
public static LoadReportingServiceFutureStub newFutureStub( public static LoadReportingServiceFutureStub newFutureStub(
io.grpc.Channel channel) { io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<LoadReportingServiceFutureStub> factory = return new LoadReportingServiceFutureStub(channel);
new io.grpc.stub.AbstractStub.StubFactory<LoadReportingServiceFutureStub>() {
@java.lang.Override
public LoadReportingServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new LoadReportingServiceFutureStub(channel, callOptions);
}
};
return LoadReportingServiceFutureStub.newStub(factory, channel);
} }
/** /**
@ -157,15 +136,19 @@ public final class LoadReportingServiceGrpc {
/** /**
*/ */
public static final class LoadReportingServiceStub extends io.grpc.stub.AbstractAsyncStub<LoadReportingServiceStub> { public static final class LoadReportingServiceStub extends io.grpc.stub.AbstractStub<LoadReportingServiceStub> {
private LoadReportingServiceStub( private LoadReportingServiceStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private LoadReportingServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected LoadReportingServiceStub build( protected LoadReportingServiceStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new LoadReportingServiceStub(channel, callOptions); return new LoadReportingServiceStub(channel, callOptions);
} }
@ -209,30 +192,38 @@ public final class LoadReportingServiceGrpc {
/** /**
*/ */
public static final class LoadReportingServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<LoadReportingServiceBlockingStub> { public static final class LoadReportingServiceBlockingStub extends io.grpc.stub.AbstractStub<LoadReportingServiceBlockingStub> {
private LoadReportingServiceBlockingStub( private LoadReportingServiceBlockingStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private LoadReportingServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected LoadReportingServiceBlockingStub build( protected LoadReportingServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new LoadReportingServiceBlockingStub(channel, callOptions); return new LoadReportingServiceBlockingStub(channel, callOptions);
} }
} }
/** /**
*/ */
public static final class LoadReportingServiceFutureStub extends io.grpc.stub.AbstractFutureStub<LoadReportingServiceFutureStub> { public static final class LoadReportingServiceFutureStub extends io.grpc.stub.AbstractStub<LoadReportingServiceFutureStub> {
private LoadReportingServiceFutureStub( private LoadReportingServiceFutureStub(io.grpc.Channel channel) {
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel);
}
private LoadReportingServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions); super(channel, callOptions);
} }
@java.lang.Override @java.lang.Override
protected LoadReportingServiceFutureStub build( protected LoadReportingServiceFutureStub build(io.grpc.Channel channel,
io.grpc.Channel channel, io.grpc.CallOptions callOptions) { io.grpc.CallOptions callOptions) {
return new LoadReportingServiceFutureStub(channel, callOptions); return new LoadReportingServiceFutureStub(channel, callOptions);
} }
} }