コード例 #1
0
 public com.xinqihd.sns.gameserver.proto.XinqiPropData.PropData.Builder addPropsBuilder(
     int index) {
   return getPropsFieldBuilder()
       .addBuilder(
           index,
           com.xinqihd.sns.gameserver.proto.XinqiPropData.PropData.getDefaultInstance());
 }
コード例 #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 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;
         }
     }
   }
 }