@Override public GetDiagnosticsResponseProto getDiagnostics(RpcController controller, GetDiagnosticsRequestProto proto) throws ServiceException { GetDiagnosticsRequest request = new GetDiagnosticsRequestPBImpl(proto); try { GetDiagnosticsResponse response = real.getDiagnostics(request); return ((GetDiagnosticsResponsePBImpl)response).getProto(); } catch (IOException e) { throw new ServiceException(e); } }
@Override public GetDiagnosticsResponse getDiagnostics(GetDiagnosticsRequest request) throws IOException { GetDiagnosticsRequestProto requestProto = ((GetDiagnosticsRequestPBImpl)request).getProto(); try { return new GetDiagnosticsResponsePBImpl(proxy.getDiagnostics(null, requestProto)); } catch (ServiceException e) { throw unwrapAndThrowException(e); } }
public GetDiagnosticsRequestPBImpl() { builder = GetDiagnosticsRequestProto.newBuilder(); }
public GetDiagnosticsRequestPBImpl(GetDiagnosticsRequestProto proto) { this.proto = proto; viaProto = true; }
public GetDiagnosticsRequestProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
private void maybeInitBuilder() { if (viaProto || builder == null) { builder = GetDiagnosticsRequestProto.newBuilder(proto); } viaProto = false; }