Beispiel #1
0
 public final boolean isInitialized() {
   if (!hasSourceLang) return false;
   if (!hasTargetLang) return false;
   if (!hasSource) return false;
   for (jp.go.nict.langrid.client.protobuf.proto.CommonProtos.Header element :
       getHeadersList()) {
     if (!element.isInitialized()) return false;
   }
   return true;
 }
Beispiel #2
0
 public final boolean isInitialized() {
   for (jp.go.nict.langrid.client.protobuf.proto.CommonProtos.Header element :
       getHeadersList()) {
     if (!element.isInitialized()) return false;
   }
   if (hasFault()) {
     if (!getFault().isInitialized()) return false;
   }
   return true;
 }
Beispiel #3
0
 public Builder mergeFrom(
     com.google.protobuf.CodedInputStream input,
     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     throws java.io.IOException {
   com.google.protobuf.UnknownFieldSet.Builder unknownFields =
       com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields());
   while (true) {
     int tag = input.readTag();
     switch (tag) {
       case 0:
         this.setUnknownFields(unknownFields.build());
         return this;
       default:
         {
           if (!parseUnknownField(
               input, unknownFields,
               extensionRegistry, tag)) {
             this.setUnknownFields(unknownFields.build());
             return this;
           }
           break;
         }
       case 10:
         {
           jp.go.nict.langrid.client.protobuf.proto.CommonProtos.Header.Builder subBuilder =
               jp.go.nict.langrid.client.protobuf.proto.CommonProtos.Header.newBuilder();
           input.readMessage(subBuilder, extensionRegistry);
           addHeaders(subBuilder.buildPartial());
           break;
         }
       case 18:
         {
           jp.go.nict.langrid.client.protobuf.proto.CommonProtos.Fault.Builder subBuilder =
               jp.go.nict.langrid.client.protobuf.proto.CommonProtos.Fault.newBuilder();
           if (hasFault()) {
             subBuilder.mergeFrom(getFault());
           }
           input.readMessage(subBuilder, extensionRegistry);
           setFault(subBuilder.buildPartial());
           break;
         }
       case 26:
         {
           setResult(input.readString());
           break;
         }
     }
   }
 }