Exemplo n.º 1
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;
         }
     }
   }
 }
Exemplo n.º 2
0
 public Builder addHeaders(
     jp.go.nict.langrid.client.protobuf.proto.CommonProtos.Header.Builder builderForValue) {
   if (result.headers_.isEmpty()) {
     result.headers_ =
         new java.util.ArrayList<
             jp.go.nict.langrid.client.protobuf.proto.CommonProtos.Header>();
   }
   result.headers_.add(builderForValue.build());
   return this;
 }
Exemplo n.º 3
0
 public Builder setHeaders(
     int index,
     jp.go.nict.langrid.client.protobuf.proto.CommonProtos.Header.Builder builderForValue) {
   result.headers_.set(index, builderForValue.build());
   return this;
 }