@Override public GetCountersResponseProto getCounters(RpcController controller, GetCountersRequestProto proto) throws ServiceException { GetCountersRequest request = new GetCountersRequestPBImpl(proto); try { GetCountersResponse response = real.getCounters(request); return ((GetCountersResponsePBImpl)response).getProto(); } catch (IOException e) { throw new ServiceException(e); } }
public GetCountersResponsePBImpl() { builder = GetCountersResponseProto.newBuilder(); }
public GetCountersResponsePBImpl(GetCountersResponseProto proto) { this.proto = proto; viaProto = true; }
public GetCountersResponseProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
private void maybeInitBuilder() { if (viaProto || builder == null) { builder = GetCountersResponseProto.newBuilder(proto); } viaProto = false; }