Beispiel #1
0
 public void translate(
     com.google.protobuf.RpcController controller,
     jp.go.nict.langrid.client.protobuf.proto.TranslationProtos.TranslateRequest request,
     com.google.protobuf.RpcCallback<
             jp.go.nict.langrid.client.protobuf.proto.TranslationProtos.TranslateResponse>
         done) {
   channel.callMethod(
       getDescriptor().getMethods().get(0),
       controller,
       request,
       jp.go.nict.langrid.client.protobuf.proto.TranslationProtos.TranslateResponse
           .getDefaultInstance(),
       com.google.protobuf.RpcUtil.generalizeCallback(
           done,
           jp.go.nict.langrid.client.protobuf.proto.TranslationProtos.TranslateResponse.class,
           jp.go.nict.langrid.client.protobuf.proto.TranslationProtos.TranslateResponse
               .getDefaultInstance()));
 }
Beispiel #2
0
 public jp.go.nict.langrid.client.protobuf.proto.TranslationProtos.TranslateResponse translate(
     com.google.protobuf.RpcController controller,
     jp.go.nict.langrid.client.protobuf.proto.TranslationProtos.TranslateRequest request)
     throws com.google.protobuf.ServiceException {
   return (jp.go.nict.langrid.client.protobuf.proto.TranslationProtos.TranslateResponse)
       channel.callBlockingMethod(
           getDescriptor().getMethods().get(0),
           controller,
           request,
           jp.go.nict.langrid.client.protobuf.proto.TranslationProtos.TranslateResponse
               .getDefaultInstance());
 }
Beispiel #3
0
 public final com.google.protobuf.Message getResponsePrototype(
     com.google.protobuf.Descriptors.MethodDescriptor method) {
   if (method.getService() != getDescriptor()) {
     throw new java.lang.IllegalArgumentException(
         "Service.getResponsePrototype() given method " + "descriptor for wrong service type.");
   }
   switch (method.getIndex()) {
     case 0:
       return jp.go.nict.langrid.client.protobuf.proto.TranslationProtos.TranslateResponse
           .getDefaultInstance();
     default:
       throw new java.lang.AssertionError("Can't get here.");
   }
 }
Beispiel #4
0
 public Builder mergeFrom(
     jp.go.nict.langrid.client.protobuf.proto.TranslationProtos.TranslateResponse other) {
   if (other
       == jp.go.nict.langrid.client.protobuf.proto.TranslationProtos.TranslateResponse
           .getDefaultInstance()) return this;
   if (!other.headers_.isEmpty()) {
     if (result.headers_.isEmpty()) {
       result.headers_ =
           new java.util.ArrayList<
               jp.go.nict.langrid.client.protobuf.proto.CommonProtos.Header>();
     }
     result.headers_.addAll(other.headers_);
   }
   if (other.hasFault()) {
     mergeFault(other.getFault());
   }
   if (other.hasResult()) {
     setResult(other.getResult());
   }
   this.mergeUnknownFields(other.getUnknownFields());
   return this;
 }
Beispiel #5
0
 public jp.go.nict.langrid.client.protobuf.proto.TranslationProtos.TranslateResponse
     getDefaultInstanceForType() {
   return jp.go.nict.langrid.client.protobuf.proto.TranslationProtos.TranslateResponse
       .getDefaultInstance();
 }