Ejemplo n.º 1
0
 public Builder mergeFrom(
     jp.go.nict.langrid.client.protobuf.proto.TranslationProtos.TranslateRequest other) {
   if (other
       == jp.go.nict.langrid.client.protobuf.proto.TranslationProtos.TranslateRequest
           .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.hasSourceLang()) {
     setSourceLang(other.getSourceLang());
   }
   if (other.hasTargetLang()) {
     setTargetLang(other.getTargetLang());
   }
   if (other.hasSource()) {
     setSource(other.getSource());
   }
   this.mergeUnknownFields(other.getUnknownFields());
   return this;
 }
Ejemplo n.º 2
0
 public Builder setTargetLang(java.lang.String value) {
   if (value == null) {
     throw new NullPointerException();
   }
   result.hasTargetLang = true;
   result.targetLang_ = value;
   return this;
 }
Ejemplo n.º 3
0
 public Builder clearTargetLang() {
   result.hasTargetLang = false;
   result.targetLang_ = getDefaultInstance().getTargetLang();
   return this;
 }
Ejemplo n.º 4
0
 // required string targetLang = 3;
 public boolean hasTargetLang() {
   return result.hasTargetLang();
 }