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());
         onChanged();
         return this;
       default:
         {
           if (!parseUnknownField(
               input, unknownFields,
               extensionRegistry, tag)) {
             this.setUnknownFields(unknownFields.build());
             onChanged();
             return this;
           }
           break;
         }
       case 8:
         {
           bitField0_ |= 0x00000001;
           metalGive_ = input.readInt32();
           break;
         }
     }
   }
 }
Exemplo n.º 2
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());
         onChanged();
         return this;
       default:
         {
           if (!parseUnknownField(
               input, unknownFields,
               extensionRegistry, tag)) {
             this.setUnknownFields(unknownFields.build());
             onChanged();
             return this;
           }
           break;
         }
       case 10:
         {
           com.example.tutorial.Test.test.Builder subBuilder =
               com.example.tutorial.Test.test.newBuilder();
           input.readMessage(subBuilder, extensionRegistry);
           addT(subBuilder.buildPartial());
           break;
         }
     }
   }
 }
 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:
         {
           setKey(input.readBytes());
           break;
         }
       case 18:
         {
           setValue(input.readBytes());
           break;
         }
     }
   }
 }
Exemplo n.º 4
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 8:
         {
           setX(input.readUInt32());
           break;
         }
       case 16:
         {
           setY(input.readUInt32());
           break;
         }
       case 24:
         {
           int rawValue = input.readEnum();
           com.opera.core.systems.scope.protos.SystemInputProtos.MouseInfo.MouseButton value =
               com.opera.core.systems.scope.protos.SystemInputProtos.MouseInfo.MouseButton
                   .valueOf(rawValue);
           if (value == null) {
             unknownFields.mergeVarintField(3, rawValue);
           } else {
             setButton(value);
           }
           break;
         }
       case 32:
         {
           setNumClicks(input.readUInt32());
           break;
         }
       case 40:
         {
           setModifier(input.readUInt32());
           break;
         }
     }
   }
 }
Exemplo n.º 5
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());
         onChanged();
         return this;
       default:
         {
           if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
             this.setUnknownFields(unknownFields.build());
             onChanged();
             return this;
           }
           break;
         }
       case 10:
         {
           bitField0_ |= 0x00000001;
           restVersion_ = input.readBytes();
           break;
         }
       case 18:
         {
           bitField0_ |= 0x00000002;
           jvmVersion_ = input.readBytes();
           break;
         }
       case 26:
         {
           bitField0_ |= 0x00000004;
           osVersion_ = input.readBytes();
           break;
         }
       case 34:
         {
           bitField0_ |= 0x00000008;
           serverVersion_ = input.readBytes();
           break;
         }
       case 42:
         {
           bitField0_ |= 0x00000010;
           jerseyVersion_ = input.readBytes();
           break;
         }
     }
   }
 }
 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:
         {
           setAuthor(input.readString());
           break;
         }
       case 18:
         {
           org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder subBuilder =
               org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder();
           if (hasResultingVersion()) {
             subBuilder.mergeFrom(getResultingVersion());
           }
           input.readMessage(subBuilder, extensionRegistry);
           setResultingVersion(subBuilder.buildPartial());
           break;
         }
       case 24:
         {
           setApplicationTimestamp(input.readInt64());
           break;
         }
       case 34:
         {
           org.waveprotocol.wave.federation.Proto.ProtocolWaveletOperation.Builder subBuilder =
               org.waveprotocol.wave.federation.Proto.ProtocolWaveletOperation.newBuilder();
           input.readMessage(subBuilder, extensionRegistry);
           addOperation(subBuilder.buildPartial());
           break;
         }
     }
   }
 }
Exemplo n.º 7
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;
         }
     }
   }
 }
 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());
         onChanged();
         return this;
       default:
         {
           if (!parseUnknownField(
               input, unknownFields,
               extensionRegistry, tag)) {
             this.setUnknownFields(unknownFields.build());
             onChanged();
             return this;
           }
           break;
         }
       case 10:
         {
           ensureTaskIdsIsMutable();
           taskIds_.add(input.readBytes());
           break;
         }
       case 16:
         {
           ensureStepIsMutable();
           step_.add(input.readInt32());
           break;
         }
       case 18:
         {
           int length = input.readRawVarint32();
           int limit = input.pushLimit(length);
           while (input.getBytesUntilLimit() > 0) {
             addStep(input.readInt32());
           }
           input.popLimit(limit);
           break;
         }
     }
   }
 }
 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());
         onChanged();
         return this;
       default:
         {
           if (!parseUnknownField(
               input, unknownFields,
               extensionRegistry, tag)) {
             this.setUnknownFields(unknownFields.build());
             onChanged();
             return this;
           }
           break;
         }
       case 8:
         {
           bitField0_ |= 0x00000001;
           type_ = input.readInt32();
           break;
         }
       case 16:
         {
           bitField0_ |= 0x00000002;
           gender_ = input.readInt32();
           break;
         }
       case 26:
         {
           com.xinqihd.sns.gameserver.proto.XinqiGoodsInfo.GoodsInfo.Builder subBuilder =
               com.xinqihd.sns.gameserver.proto.XinqiGoodsInfo.GoodsInfo.newBuilder();
           input.readMessage(subBuilder, extensionRegistry);
           addGoodsInfo(subBuilder.buildPartial());
           break;
         }
     }
   }
 }
 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 8:
         {
           setCallbackId(input.readSInt32());
           break;
         }
       case 16:
         {
           setOpCode(input.readInt32());
           break;
         }
       case 26:
         {
           com.alachisoft.tayzgrid.common.protobuf.DSUpdatedCallbackResultProtocol
                   .DSUpdatedCallbackResult.Builder
               subBuilder =
                   com.alachisoft.tayzgrid.common.protobuf.DSUpdatedCallbackResultProtocol
                       .DSUpdatedCallbackResult.newBuilder();
           input.readMessage(subBuilder, extensionRegistry);
           addResult(subBuilder.buildPartial());
           break;
         }
     }
   }
 }
 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 8:
         {
           setRequestId(input.readInt64());
           break;
         }
       case 18:
         {
           setCacheId(input.readString());
           break;
         }
       case 24:
         {
           setIsRunning(input.readBool());
           break;
         }
       case 32:
         {
           setIsDotnetClient(input.readBool());
           break;
         }
     }
   }
 }
Exemplo n.º 12
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 8:
         {
           setRequestID(input.readUInt32());
           break;
         }
       case 16:
         {
           setWindowID(input.readUInt32());
           break;
         }
       case 26:
         {
           setTime(input.readString());
           break;
         }
       case 34:
         {
           setHeader(input.readString());
           break;
         }
     }
   }
 }
Exemplo n.º 13
0
 @SuppressWarnings("unused")
 private SubscribeResp(
     com.google.protobuf.CodedInputStream input,
     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     throws com.google.protobuf.InvalidProtocolBufferException {
   initFields();
   int mutable_bitField0_ = 0;
   com.google.protobuf.UnknownFieldSet.Builder unknownFields =
       com.google.protobuf.UnknownFieldSet.newBuilder();
   try {
     boolean done = false;
     while (!done) {
       int tag = input.readTag();
       switch (tag) {
         case 0:
           done = true;
           break;
         default:
           {
             if (!parseUnknownField(
                 input, unknownFields,
                 extensionRegistry, tag)) {
               done = true;
             }
             break;
           }
         case 8:
           {
             bitField0_ |= 0x00000001;
             subReqId_ = input.readInt32();
             break;
           }
         case 16:
           {
             bitField0_ |= 0x00000002;
             respCode_ = input.readInt32();
             break;
           }
         case 26:
           {
             bitField0_ |= 0x00000004;
             desc_ = input.readBytes();
             break;
           }
       }
     }
   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
     throw e.setUnfinishedMessage(this);
   } catch (java.io.IOException e) {
     throw new com.google.protobuf.InvalidProtocolBufferException(e.getMessage())
         .setUnfinishedMessage(this);
   } finally {
     this.unknownFields = unknownFields.build();
     makeExtensionsImmutable();
   }
 }
Exemplo n.º 14
0
 private DeleteAssetResponse(
     com.google.protobuf.CodedInputStream input,
     com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
   this();
   int mutable_bitField0_ = 0;
   com.google.protobuf.UnknownFieldSet.Builder unknownFields =
       com.google.protobuf.UnknownFieldSet.newBuilder();
   try {
     boolean done = false;
     while (!done) {
       int tag = input.readTag();
       switch (tag) {
         case 0:
           done = true;
           break;
         default:
           {
             if (!parseUnknownField(
                 input, unknownFields,
                 extensionRegistry, tag)) {
               done = true;
             }
             break;
           }
         case 10:
           {
             com.google.protobuf.ByteString bs = input.readBytes();
             bitField0_ |= 0x00000001;
             uid_ = bs;
             break;
           }
         case 18:
           {
             com.google.protobuf.ByteString bs = input.readBytes();
             bitField0_ |= 0x00000002;
             error_ = bs;
             break;
           }
       }
     }
   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
     throw new RuntimeException(e.setUnfinishedMessage(this));
   } catch (java.io.IOException e) {
     throw new RuntimeException(
         new com.google.protobuf.InvalidProtocolBufferException(e.getMessage())
             .setUnfinishedMessage(this));
   } finally {
     this.unknownFields = unknownFields.build();
     makeExtensionsImmutable();
   }
 }
Exemplo n.º 15
0
 private ScriptedProvider(
     com.google.protobuf.CodedInputStream input,
     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     throws com.google.protobuf.InvalidProtocolBufferException {
   initFields();
   int mutable_bitField0_ = 0;
   com.google.protobuf.UnknownFieldSet.Builder unknownFields =
       com.google.protobuf.UnknownFieldSet.newBuilder();
   try {
     boolean done = false;
     while (!done) {
       int tag = input.readTag();
       switch (tag) {
         case 0:
           done = true;
           break;
         default:
           {
             if (!parseUnknownField(
                 input, unknownFields,
                 extensionRegistry, tag)) {
               done = true;
             }
             break;
           }
         case 8:
           {
             bitField0_ |= 0x00000001;
             active_ = input.readBool();
             break;
           }
         case 16:
           {
             bitField0_ |= 0x00000002;
             stopping_ = input.readBool();
             break;
           }
       }
     }
   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
     throw e.setUnfinishedMessage(this);
   } catch (java.io.IOException e) {
     throw new com.google.protobuf.InvalidProtocolBufferException(e.getMessage())
         .setUnfinishedMessage(this);
   } finally {
     this.unknownFields = unknownFields.build();
     makeExtensionsImmutable();
   }
 }
Exemplo n.º 16
0
 private static void handleUnknownFields(
     Record record, String fieldPath, DynamicMessage.Builder builder) throws IOException {
   String path = fieldPath.isEmpty() ? FORWARD_SLASH : fieldPath;
   String attribute =
       record.getHeader().getAttribute(ProtobufTypeUtil.PROTOBUF_UNKNOWN_FIELDS_PREFIX + path);
   if (attribute != null) {
     UnknownFieldSet.Builder unknownFieldBuilder = UnknownFieldSet.newBuilder();
     unknownFieldBuilder.mergeDelimitedFrom(
         new ByteArrayInputStream(
             org.apache.commons.codec.binary.Base64.decodeBase64(
                 attribute.getBytes(StandardCharsets.UTF_8))));
     UnknownFieldSet unknownFieldSet = unknownFieldBuilder.build();
     builder.setUnknownFields(unknownFieldSet);
   }
 }
 private EventFormat(
     com.google.protobuf.CodedInputStream input,
     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     throws com.google.protobuf.InvalidProtocolBufferException {
   initFields();
   int mutable_bitField0_ = 0;
   com.google.protobuf.UnknownFieldSet.Builder unknownFields =
       com.google.protobuf.UnknownFieldSet.newBuilder();
   try {
     boolean done = false;
     while (!done) {
       int tag = input.readTag();
       switch (tag) {
         case 0:
           done = true;
           break;
         default:
           {
             if (!parseUnknownField(
                 input, unknownFields,
                 extensionRegistry, tag)) {
               done = true;
             }
             break;
           }
         case 10:
           {
             bitField0_ |= 0x00000001;
             persistenceId_ = input.readBytes();
             break;
           }
         case 16:
           {
             bitField0_ |= 0x00000002;
             sequenceNr_ = input.readInt64();
             break;
           }
         case 26:
           {
             akka.persistence.kafka.journal.EventFormats.EventDataFormat.Builder subBuilder =
                 null;
             if (((bitField0_ & 0x00000004) == 0x00000004)) {
               subBuilder = data_.toBuilder();
             }
             data_ =
                 input.readMessage(
                     akka.persistence.kafka.journal.EventFormats.EventDataFormat.PARSER,
                     extensionRegistry);
             if (subBuilder != null) {
               subBuilder.mergeFrom(data_);
               data_ = subBuilder.buildPartial();
             }
             bitField0_ |= 0x00000004;
             break;
           }
       }
     }
   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
     throw e.setUnfinishedMessage(this);
   } catch (java.io.IOException e) {
     throw new com.google.protobuf.InvalidProtocolBufferException(e.getMessage())
         .setUnfinishedMessage(this);
   } finally {
     this.unknownFields = unknownFields.build();
     makeExtensionsImmutable();
   }
 }
Exemplo n.º 18
0
 private FileMeta(
     com.google.protobuf.CodedInputStream input,
     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     throws com.google.protobuf.InvalidProtocolBufferException {
   initFields();
   int mutable_bitField0_ = 0;
   com.google.protobuf.UnknownFieldSet.Builder unknownFields =
       com.google.protobuf.UnknownFieldSet.newBuilder();
   try {
     boolean done = false;
     while (!done) {
       int tag = input.readTag();
       switch (tag) {
         case 0:
           done = true;
           break;
         default:
           {
             if (!parseUnknownField(
                 input, unknownFields,
                 extensionRegistry, tag)) {
               done = true;
             }
             break;
           }
         case 10:
           {
             bitField0_ |= 0x00000001;
             fileId_ = input.readBytes();
             break;
           }
         case 18:
           {
             bitField0_ |= 0x00000002;
             fileName_ = input.readBytes();
             break;
           }
         case 24:
           {
             bitField0_ |= 0x00000004;
             fileSize_ = input.readInt64();
             break;
           }
         case 32:
           {
             bitField0_ |= 0x00000008;
             createTime_ = input.readInt64();
             break;
           }
         case 42:
           {
             bitField0_ |= 0x00000010;
             innerFileId_ = input.readBytes();
             break;
           }
       }
     }
   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
     throw e.setUnfinishedMessage(this);
   } catch (java.io.IOException e) {
     throw new com.google.protobuf.InvalidProtocolBufferException(e.getMessage())
         .setUnfinishedMessage(this);
   } finally {
     this.unknownFields = unknownFields.build();
     makeExtensionsImmutable();
   }
 }
Exemplo n.º 19
0
 private Keys(
     com.google.protobuf.CodedInputStream input,
     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     throws com.google.protobuf.InvalidProtocolBufferException {
   initFields();
   int mutable_bitField0_ = 0;
   com.google.protobuf.UnknownFieldSet.Builder unknownFields =
       com.google.protobuf.UnknownFieldSet.newBuilder();
   try {
     boolean done = false;
     while (!done) {
       int tag = input.readTag();
       switch (tag) {
         case 0:
           done = true;
           break;
         default:
           {
             if (!parseUnknownField(
                 input, unknownFields,
                 extensionRegistry, tag)) {
               done = true;
             }
             break;
           }
         case 8:
           {
             if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
               key_ = new java.util.ArrayList<java.lang.Integer>();
               mutable_bitField0_ |= 0x00000001;
             }
             key_.add(input.readInt32());
             break;
           }
         case 10:
           {
             int length = input.readRawVarint32();
             int limit = input.pushLimit(length);
             if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)
                 && input.getBytesUntilLimit() > 0) {
               key_ = new java.util.ArrayList<java.lang.Integer>();
               mutable_bitField0_ |= 0x00000001;
             }
             while (input.getBytesUntilLimit() > 0) {
               key_.add(input.readInt32());
             }
             input.popLimit(limit);
             break;
           }
       }
     }
   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
     throw e.setUnfinishedMessage(this);
   } catch (java.io.IOException e) {
     throw new com.google.protobuf.InvalidProtocolBufferException(e.getMessage())
         .setUnfinishedMessage(this);
   } finally {
     if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
       key_ = java.util.Collections.unmodifiableList(key_);
     }
     this.unknownFields = unknownFields.build();
     makeExtensionsImmutable();
   }
 }
Exemplo n.º 20
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());
         onChanged();
         return this;
       default:
         {
           if (!parseUnknownField(
               input, unknownFields,
               extensionRegistry, tag)) {
             this.setUnknownFields(unknownFields.build());
             onChanged();
             return this;
           }
           break;
         }
       case 8:
         {
           bitField0_ |= 0x00000001;
           dungeonID_ = input.readInt32();
           break;
         }
       case 16:
         {
           bitField0_ |= 0x00000002;
           levelReq_ = input.readInt32();
           break;
         }
       case 24:
         {
           ensureRoomsIsMutable();
           rooms_.add(input.readInt32());
           break;
         }
       case 26:
         {
           int length = input.readRawVarint32();
           int limit = input.pushLimit(length);
           while (input.getBytesUntilLimit() > 0) {
             addRooms(input.readInt32());
           }
           input.popLimit(limit);
           break;
         }
       case 34:
         {
           bitField0_ |= 0x00000008;
           name_ = input.readBytes();
           break;
         }
     }
   }
 }
Exemplo n.º 21
0
 private LogEntry(
     com.google.protobuf.CodedInputStream input,
     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     throws com.google.protobuf.InvalidProtocolBufferException {
   initFields();
   int mutable_bitField0_ = 0;
   com.google.protobuf.UnknownFieldSet.Builder unknownFields =
       com.google.protobuf.UnknownFieldSet.newBuilder();
   try {
     boolean done = false;
     while (!done) {
       int tag = input.readTag();
       switch (tag) {
         case 0:
           done = true;
           break;
         default:
           {
             if (!parseUnknownField(
                 input, unknownFields,
                 extensionRegistry, tag)) {
               done = true;
             }
             break;
           }
         case 8:
           {
             bitField0_ |= 0x00000001;
             storeId_ = input.readUInt64();
             break;
           }
         case 16:
           {
             int rawValue = input.readEnum();
             com.cloudata.blockstore.IscsiProto.LogAction value =
                 com.cloudata.blockstore.IscsiProto.LogAction.valueOf(rawValue);
             if (value == null) {
               unknownFields.mergeVarintField(2, rawValue);
             } else {
               bitField0_ |= 0x00000002;
               action_ = value;
             }
             break;
           }
         case 26:
           {
             bitField0_ |= 0x00000004;
             key_ = input.readBytes();
             break;
           }
         case 34:
           {
             bitField0_ |= 0x00000008;
             value_ = input.readBytes();
             break;
           }
         case 40:
           {
             bitField0_ |= 0x00000010;
             incrementBy_ = input.readInt64();
             break;
           }
       }
     }
   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
     throw e.setUnfinishedMessage(this);
   } catch (java.io.IOException e) {
     throw new com.google.protobuf.InvalidProtocolBufferException(e.getMessage())
         .setUnfinishedMessage(this);
   } finally {
     this.unknownFields = unknownFields.build();
     makeExtensionsImmutable();
   }
 }
 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());
         onChanged();
         return this;
       default:
         {
           if (!parseUnknownField(
               input, unknownFields,
               extensionRegistry, tag)) {
             this.setUnknownFields(unknownFields.build());
             onChanged();
             return this;
           }
           break;
         }
       case 8:
         {
           bitField0_ |= 0x00000001;
           keycode_ = input.readInt32();
           break;
         }
       case 16:
         {
           bitField0_ |= 0x00000002;
           saleDate_ = input.readInt32();
           break;
         }
       case 24:
         {
           bitField0_ |= 0x00000004;
           quantity_ = input.readInt32();
           break;
         }
       case 32:
         {
           bitField0_ |= 0x00000008;
           price_ = input.readInt64();
           break;
         }
       case 40:
         {
           int rawValue = input.readEnum();
           net.sf.RecordEditor.ProtoBuf.re.Test.Sales3.StoreSales6SDEnums.SaleType value =
               net.sf.RecordEditor.ProtoBuf.re.Test.Sales3.StoreSales6SDEnums.SaleType.valueOf(
                   rawValue);
           if (value == null) {
             unknownFields.mergeVarintField(5, rawValue);
           } else {
             bitField0_ |= 0x00000010;
             saleType_ = value;
           }
           break;
         }
       case 48:
         {
           int rawValue = input.readEnum();
           net.sf.RecordEditor.ProtoBuf.re.Test.Sales3.StoreSales6SDEnums.PaymentType value =
               net.sf.RecordEditor.ProtoBuf.re.Test.Sales3.StoreSales6SDEnums.PaymentType
                   .valueOf(rawValue);
           if (value == null) {
             unknownFields.mergeVarintField(6, rawValue);
           } else {
             bitField0_ |= 0x00000020;
             paymentType_ = value;
           }
           break;
         }
     }
   }
 }
Exemplo n.º 23
0
 private HelloResponse(
     com.google.protobuf.CodedInputStream input,
     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     throws com.google.protobuf.InvalidProtocolBufferException {
   initFields();
   int mutable_bitField0_ = 0;
   com.google.protobuf.UnknownFieldSet.Builder unknownFields =
       com.google.protobuf.UnknownFieldSet.newBuilder();
   try {
     boolean done = false;
     while (!done) {
       int tag = input.readTag();
       switch (tag) {
         case 0:
           done = true;
           break;
         default:
           {
             if (!parseUnknownField(
                 input, unknownFields,
                 extensionRegistry, tag)) {
               done = true;
             }
             break;
           }
         case 8:
           {
             int rawValue = input.readEnum();
             cn.klzhong.samples.proto.hello.Hello.HelloResponse.ErrorCode value =
                 cn.klzhong.samples.proto.hello.Hello.HelloResponse.ErrorCode.valueOf(rawValue);
             if (value == null) {
               unknownFields.mergeVarintField(1, rawValue);
             } else {
               bitField0_ |= 0x00000001;
               errCode_ = value;
             }
             break;
           }
         case 18:
           {
             com.google.protobuf.ByteString bs = input.readBytes();
             bitField0_ |= 0x00000002;
             errMsg_ = bs;
             break;
           }
         case 26:
           {
             com.google.protobuf.ByteString bs = input.readBytes();
             bitField0_ |= 0x00000004;
             result_ = bs;
             break;
           }
       }
     }
   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
     throw e.setUnfinishedMessage(this);
   } catch (java.io.IOException e) {
     throw new com.google.protobuf.InvalidProtocolBufferException(e.getMessage())
         .setUnfinishedMessage(this);
   } finally {
     this.unknownFields = unknownFields.build();
     makeExtensionsImmutable();
   }
 }
Exemplo n.º 24
0
 private Request(
     com.google.protobuf.CodedInputStream input,
     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     throws com.google.protobuf.InvalidProtocolBufferException {
   initFields();
   int mutable_bitField0_ = 0;
   com.google.protobuf.UnknownFieldSet.Builder unknownFields =
       com.google.protobuf.UnknownFieldSet.newBuilder();
   try {
     boolean done = false;
     while (!done) {
       int tag = input.readTag();
       switch (tag) {
         case 0:
           done = true;
           break;
         default:
           {
             if (!parseUnknownField(
                 input, unknownFields,
                 extensionRegistry, tag)) {
               done = true;
             }
             break;
           }
         case 10:
           {
             bitField0_ |= 0x00000001;
             id_ = input.readBytes();
             break;
           }
         case 18:
           {
             bitField0_ |= 0x00000002;
             op_ = input.readBytes();
             break;
           }
         case 26:
           {
             bitField0_ |= 0x00000004;
             cp_ = input.readBytes();
             break;
           }
         case 32:
           {
             bitField0_ |= 0x00000008;
             timeout_ = input.readInt32();
             break;
           }
         case 42:
           {
             bitField0_ |= 0x00000010;
             message_ = input.readBytes();
             break;
           }
         case 56:
           {
             int rawValue = input.readEnum();
             com.crovate.message.ProtoBuffRequest.Request.RequestType value =
                 com.crovate.message.ProtoBuffRequest.Request.RequestType.valueOf(rawValue);
             if (value == null) {
               unknownFields.mergeVarintField(7, rawValue);
             } else {
               bitField0_ |= 0x00000020;
               type_ = value;
             }
             break;
           }
       }
     }
   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
     throw e.setUnfinishedMessage(this);
   } catch (java.io.IOException e) {
     throw new com.google.protobuf.InvalidProtocolBufferException(e.getMessage())
         .setUnfinishedMessage(this);
   } finally {
     this.unknownFields = unknownFields.build();
     makeExtensionsImmutable();
   }
 }
Exemplo n.º 25
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());
         onChanged();
         return this;
       default:
         {
           if (!parseUnknownField(
               input, unknownFields,
               extensionRegistry, tag)) {
             this.setUnknownFields(unknownFields.build());
             onChanged();
             return this;
           }
           break;
         }
       case 10:
         {
           ensureUserIdIsMutable();
           userId_.add(input.readBytes());
           break;
         }
       case 16:
         {
           ensureDeadIsMutable();
           dead_.add(input.readBool());
           break;
         }
       case 18:
         {
           int length = input.readRawVarint32();
           int limit = input.pushLimit(length);
           while (input.getBytesUntilLimit() > 0) {
             addDead(input.readBool());
           }
           input.popLimit(limit);
           break;
         }
       case 24:
         {
           ensureAttackCountsIsMutable();
           attackCounts_.add(input.readInt32());
           break;
         }
       case 26:
         {
           int length = input.readRawVarint32();
           int limit = input.pushLimit(length);
           while (input.getBytesUntilLimit() > 0) {
             addAttackCounts(input.readInt32());
           }
           input.popLimit(limit);
           break;
         }
       case 32:
         {
           ensureHitCountsIsMutable();
           hitCounts_.add(input.readInt32());
           break;
         }
       case 34:
         {
           int length = input.readRawVarint32();
           int limit = input.pushLimit(length);
           while (input.getBytesUntilLimit() > 0) {
             addHitCounts(input.readInt32());
           }
           input.popLimit(limit);
           break;
         }
       case 40:
         {
           ensureDamageIsMutable();
           damage_.add(input.readInt32());
           break;
         }
       case 42:
         {
           int length = input.readRawVarint32();
           int limit = input.pushLimit(length);
           while (input.getBytesUntilLimit() > 0) {
             addDamage(input.readInt32());
           }
           input.popLimit(limit);
           break;
         }
       case 48:
         {
           ensureKillCountsIsMutable();
           killCounts_.add(input.readInt32());
           break;
         }
       case 50:
         {
           int length = input.readRawVarint32();
           int limit = input.pushLimit(length);
           while (input.getBytesUntilLimit() > 0) {
             addKillCounts(input.readInt32());
           }
           input.popLimit(limit);
           break;
         }
       case 56:
         {
           ensureUserToolsIsMutable();
           userTools_.add(input.readInt32());
           break;
         }
       case 58:
         {
           int length = input.readRawVarint32();
           int limit = input.pushLimit(length);
           while (input.getBytesUntilLimit() > 0) {
             addUserTools(input.readInt32());
           }
           input.popLimit(limit);
           break;
         }
       case 64:
         {
           ensureUseSkillIsMutable();
           useSkill_.add(input.readInt32());
           break;
         }
       case 66:
         {
           int length = input.readRawVarint32();
           int limit = input.pushLimit(length);
           while (input.getBytesUntilLimit() > 0) {
             addUseSkill(input.readInt32());
           }
           input.popLimit(limit);
           break;
         }
     }
   }
 }
Exemplo n.º 26
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());
         onChanged();
         return this;
       default:
         {
           if (!parseUnknownField(
               input, unknownFields,
               extensionRegistry, tag)) {
             this.setUnknownFields(unknownFields.build());
             onChanged();
             return this;
           }
           break;
         }
       case 8:
         {
           bitField0_ |= 0x00000001;
           type_ = input.readInt32();
           break;
         }
       case 16:
         {
           ensureArgsIsMutable();
           args_.add(input.readInt32());
           break;
         }
       case 18:
         {
           int length = input.readRawVarint32();
           int limit = input.pushLimit(length);
           while (input.getBytesUntilLimit() > 0) {
             addArgs(input.readInt32());
           }
           input.popLimit(limit);
           break;
         }
       case 26:
         {
           com.xinqihd.sns.gameserver.proto.XinqiPropData.PropData.Builder subBuilder =
               com.xinqihd.sns.gameserver.proto.XinqiPropData.PropData.newBuilder();
           input.readMessage(subBuilder, extensionRegistry);
           addProps(subBuilder.buildPartial());
           break;
         }
       case 34:
         {
           com.xinqihd.sns.gameserver.proto.XinqiUserInfo.UserInfo.Builder subBuilder =
               com.xinqihd.sns.gameserver.proto.XinqiUserInfo.UserInfo.newBuilder();
           input.readMessage(subBuilder, extensionRegistry);
           addUserinfos(subBuilder.buildPartial());
           break;
         }
       case 42:
         {
           bitField0_ |= 0x00000010;
           message_ = input.readBytes();
           break;
         }
     }
   }
 }
Exemplo n.º 27
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());
         onChanged();
         return this;
       default:
         {
           if (!parseUnknownField(
               input, unknownFields,
               extensionRegistry, tag)) {
             this.setUnknownFields(unknownFields.build());
             onChanged();
             return this;
           }
           break;
         }
       case 8:
         {
           bitField0_ |= 0x00000001;
           chatChannel_ = input.readInt32();
           break;
         }
       case 18:
         {
           bitField0_ |= 0x00000002;
           fromId_ = input.readBytes();
           break;
         }
       case 26:
         {
           bitField0_ |= 0x00000004;
           toId_ = input.readBytes();
           break;
         }
       case 34:
         {
           bitField0_ |= 0x00000008;
           name_ = input.readBytes();
           break;
         }
       case 42:
         {
           bitField0_ |= 0x00000010;
           groupId_ = input.readBytes();
           break;
         }
       case 50:
         {
           bitField0_ |= 0x00000020;
           message_ = input.readBytes();
           break;
         }
     }
   }
 }
Exemplo n.º 28
0
 private PGuidePosts(
     com.google.protobuf.CodedInputStream input,
     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     throws com.google.protobuf.InvalidProtocolBufferException {
   initFields();
   int mutable_bitField0_ = 0;
   com.google.protobuf.UnknownFieldSet.Builder unknownFields =
       com.google.protobuf.UnknownFieldSet.newBuilder();
   try {
     boolean done = false;
     while (!done) {
       int tag = input.readTag();
       switch (tag) {
         case 0:
           done = true;
           break;
         default:
           {
             if (!parseUnknownField(
                 input, unknownFields,
                 extensionRegistry, tag)) {
               done = true;
             }
             break;
           }
         case 10:
           {
             if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
               guidePosts_ = new java.util.ArrayList<com.google.protobuf.ByteString>();
               mutable_bitField0_ |= 0x00000001;
             }
             guidePosts_.add(input.readBytes());
             break;
           }
         case 16:
           {
             bitField0_ |= 0x00000001;
             byteCount_ = input.readInt64();
             break;
           }
         case 24:
           {
             bitField0_ |= 0x00000002;
             rowCount_ = input.readInt64();
             break;
           }
       }
     }
   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
     throw e.setUnfinishedMessage(this);
   } catch (java.io.IOException e) {
     throw new com.google.protobuf.InvalidProtocolBufferException(e.getMessage())
         .setUnfinishedMessage(this);
   } finally {
     if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
       guidePosts_ = java.util.Collections.unmodifiableList(guidePosts_);
     }
     this.unknownFields = unknownFields.build();
     makeExtensionsImmutable();
   }
 }
Exemplo n.º 29
0
 private JsTypeRenderSpec(
     com.google.protobuf.CodedInputStream input,
     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     throws com.google.protobuf.InvalidProtocolBufferException {
   initFields();
   int mutable_bitField0_ = 0;
   com.google.protobuf.UnknownFieldSet.Builder unknownFields =
       com.google.protobuf.UnknownFieldSet.newBuilder();
   try {
     boolean done = false;
     while (!done) {
       int tag = input.readTag();
       switch (tag) {
         case 0:
           done = true;
           break;
         default:
           {
             if (!parseUnknownField(
                 input, unknownFields,
                 extensionRegistry, tag)) {
               done = true;
             }
             break;
           }
         case 10:
           {
             if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
               type_ = new java.util.ArrayList<com.github.jsdossier.proto.JsType>();
               mutable_bitField0_ |= 0x00000001;
             }
             type_.add(
                 input.readMessage(com.github.jsdossier.proto.JsType.PARSER, extensionRegistry));
             break;
           }
         case 18:
           {
             com.github.jsdossier.proto.Resources.Builder subBuilder = null;
             if (((bitField0_ & 0x00000001) == 0x00000001)) {
               subBuilder = resources_.toBuilder();
             }
             resources_ =
                 input.readMessage(com.github.jsdossier.proto.Resources.PARSER, extensionRegistry);
             if (subBuilder != null) {
               subBuilder.mergeFrom(resources_);
               resources_ = subBuilder.buildPartial();
             }
             bitField0_ |= 0x00000001;
             break;
           }
         case 26:
           {
             com.github.jsdossier.proto.Index.Builder subBuilder = null;
             if (((bitField0_ & 0x00000002) == 0x00000002)) {
               subBuilder = index_.toBuilder();
             }
             index_ =
                 input.readMessage(com.github.jsdossier.proto.Index.PARSER, extensionRegistry);
             if (subBuilder != null) {
               subBuilder.mergeFrom(index_);
               index_ = subBuilder.buildPartial();
             }
             bitField0_ |= 0x00000002;
             break;
           }
       }
     }
   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
     throw e.setUnfinishedMessage(this);
   } catch (java.io.IOException e) {
     throw new com.google.protobuf.InvalidProtocolBufferException(e.getMessage())
         .setUnfinishedMessage(this);
   } finally {
     if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
       type_ = java.util.Collections.unmodifiableList(type_);
     }
     this.unknownFields = unknownFields.build();
     makeExtensionsImmutable();
   }
 }
 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());
         onChanged();
         return this;
       default:
         {
           if (!parseUnknownField(
               input, unknownFields,
               extensionRegistry, tag)) {
             this.setUnknownFields(unknownFields.build());
             onChanged();
             return this;
           }
           break;
         }
       case 8:
         {
           bitField0_ |= 0x00000001;
           hideHat_ = input.readBool();
           break;
         }
       case 16:
         {
           bitField0_ |= 0x00000002;
           hideGlass_ = input.readBool();
           break;
         }
       case 24:
         {
           bitField0_ |= 0x00000004;
           hideSuit_ = input.readBool();
           break;
         }
       case 32:
         {
           bitField0_ |= 0x00000008;
           leadFinished_ = input.readBool();
           break;
         }
       case 40:
         {
           bitField0_ |= 0x00000010;
           musicSwitch_ = input.readBool();
           break;
         }
       case 48:
         {
           bitField0_ |= 0x00000020;
           effectSwitch_ = input.readBool();
           break;
         }
       case 56:
         {
           bitField0_ |= 0x00000040;
           musicVolume_ = input.readInt32();
           break;
         }
       case 64:
         {
           bitField0_ |= 0x00000080;
           effectVolume_ = input.readInt32();
           break;
         }
     }
   }
 }