Example #1
0
 public com.gary.netty.protobuf.ResultPro.Result build() {
   com.gary.netty.protobuf.ResultPro.Result result = buildPartial();
   if (!result.isInitialized()) {
     throw newUninitializedMessageException(result);
   }
   return result;
 }
Example #2
0
 public Builder mergeFrom(com.gary.netty.protobuf.ResultPro.Result other) {
   if (other == com.gary.netty.protobuf.ResultPro.Result.getDefaultInstance()) return this;
   if (other.hasCode()) {
     setCode(other.getCode());
   }
   if (other.hasMsg()) {
     bitField0_ |= 0x00000002;
     msg_ = other.msg_;
     onChanged();
   }
   this.mergeUnknownFields(other.getUnknownFields());
   return this;
 }
Example #3
0
 public com.gary.netty.protobuf.ResultPro.Result buildPartial() {
   com.gary.netty.protobuf.ResultPro.Result result =
       new com.gary.netty.protobuf.ResultPro.Result(this);
   int from_bitField0_ = bitField0_;
   int to_bitField0_ = 0;
   if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
     to_bitField0_ |= 0x00000001;
   }
   result.code_ = code_;
   if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
     to_bitField0_ |= 0x00000002;
   }
   result.msg_ = msg_;
   result.bitField0_ = to_bitField0_;
   onBuilt();
   return result;
 }
Example #4
0
 public com.gary.netty.protobuf.ResultPro.Result getDefaultInstanceForType() {
   return com.gary.netty.protobuf.ResultPro.Result.getDefaultInstance();
 }