Example #1
0
 public com.shsz.young.tut.protobuf.ProtoMsgs.ProtobufPOJO build() {
   com.shsz.young.tut.protobuf.ProtoMsgs.ProtobufPOJO result = buildPartial();
   if (!result.isInitialized()) {
     throw newUninitializedMessageException(result);
   }
   return result;
 }
Example #2
0
 private com.shsz.young.tut.protobuf.ProtoMsgs.ProtobufPOJO buildParsed()
     throws com.google.protobuf.InvalidProtocolBufferException {
   com.shsz.young.tut.protobuf.ProtoMsgs.ProtobufPOJO result = buildPartial();
   if (!result.isInitialized()) {
     throw newUninitializedMessageException(result).asInvalidProtocolBufferException();
   }
   return result;
 }
Example #3
0
 public com.shsz.young.tut.protobuf.ProtoMsgs.ProtobufPOJO buildPartial() {
   com.shsz.young.tut.protobuf.ProtoMsgs.ProtobufPOJO result =
       new com.shsz.young.tut.protobuf.ProtoMsgs.ProtobufPOJO(this);
   int from_bitField0_ = bitField0_;
   int to_bitField0_ = 0;
   if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
     to_bitField0_ |= 0x00000001;
   }
   result.id_ = id_;
   if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
     to_bitField0_ |= 0x00000002;
   }
   result.name_ = name_;
   if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
     to_bitField0_ |= 0x00000004;
   }
   result.status_ = status_;
   result.bitField0_ = to_bitField0_;
   onBuilt();
   return result;
 }
Example #4
0
 public Builder mergeFrom(com.shsz.young.tut.protobuf.ProtoMsgs.ProtobufPOJO other) {
   if (other == com.shsz.young.tut.protobuf.ProtoMsgs.ProtobufPOJO.getDefaultInstance())
     return this;
   if (other.hasId()) {
     setId(other.getId());
   }
   if (other.hasName()) {
     setName(other.getName());
   }
   if (other.hasStatus()) {
     setStatus(other.getStatus());
   }
   this.mergeUnknownFields(other.getUnknownFields());
   return this;
 }
Example #5
0
 public com.shsz.young.tut.protobuf.ProtoMsgs.ProtobufPOJO getDefaultInstanceForType() {
   return com.shsz.young.tut.protobuf.ProtoMsgs.ProtobufPOJO.getDefaultInstance();
 }
Example #6
0
 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
   return com.shsz.young.tut.protobuf.ProtoMsgs.ProtobufPOJO.getDescriptor();
 }