Hi,
We already have a working environment for gRPC clients using the model and libs defined here :
https://github.com/grpc/grpc-php. However I am not certain if there is a documented way to either generate the protos defined in io/grpc or use them as is in php.
To further clarify,
I am hoping to do some thing like the below snippet in PHP
import io.grpc.health.v1.HealthCheckRequest;
import io.grpc.health.v1.HealthCheckResponse;
import io.grpc.health.v1.HealthGrpc;
import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
public class HealthcheckImplClient {
public static void main(String[] args) {
ManagedChannel ch = ManagedChannelBuilder.forAddress("localhost", 8012)
.usePlaintext()
.build();
HealthGrpc.HealthBlockingStub hclient = HealthGrpc.newBlockingStub(ch);
HealthCheckRequest req = HealthCheckRequest.newBuilder().build();
HealthCheckResponse resp = hclient.check(req);
System.out.println(resp.getStatus());
ch.shutdown();
}
}
Appreciate any help regarding this.
Thanks,
Deepak