public Builder mergeFrom(com.example.grpc.HelloRequest other) { if (other == com.example.grpc.HelloRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getAge() != 0L) { setAge(other.getAge()); } if (!other.hobbies_.isEmpty()) { if (hobbies_.isEmpty()) { hobbies_ = other.hobbies_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureHobbiesIsMutable(); hobbies_.addAll(other.hobbies_); } onChanged(); } internalGetMutableBagOfTricks().mergeFrom( other.internalGetBagOfTricks()); if (other.sentiment_ != 0) { setSentimentValue(other.getSentimentValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder mergeFrom(com.example.grpc.HelloRequest other) { if (other == com.example.grpc.HelloRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getAge() != 0) { setAge(other.getAge()); } if (!other.hobbies_.isEmpty()) { if (hobbies_.isEmpty()) { hobbies_ = other.hobbies_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureHobbiesIsMutable(); hobbies_.addAll(other.hobbies_); } onChanged(); } internalGetMutableBagOfTricks().mergeFrom( other.internalGetBagOfTricks()); if (other.sentiment_ != 0) { setSentimentValue(other.getSentimentValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder mergeFrom(com.example.grpc.HelloRequest other) { if (other == com.example.grpc.HelloRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getAge() != 0L) { setAge(other.getAge()); } if (!other.hobbies_.isEmpty()) { if (hobbies_.isEmpty()) { hobbies_ = other.hobbies_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureHobbiesIsMutable(); hobbies_.addAll(other.hobbies_); } onChanged(); } internalGetMutableBagOfTricks().mergeFrom( other.internalGetBagOfTricks()); if (other.sentiment_ != 0) { setSentimentValue(other.getSentimentValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }