Ejemplo n.º 1
0
 public com.xinqihd.sns.gameserver.proto.XinqiGoodsInfo.GoodsInfo.Builder addGoodsInfoBuilder(
     int index) {
   return getGoodsInfoFieldBuilder()
       .addBuilder(
           index,
           com.xinqihd.sns.gameserver.proto.XinqiGoodsInfo.GoodsInfo.getDefaultInstance());
 }
Ejemplo 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 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;
         }
     }
   }
 }