public cn.klzhong.samples.proto.hello.Hello.HelloRequest build() { cn.klzhong.samples.proto.hello.Hello.HelloRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public Builder mergeFrom(cn.klzhong.samples.proto.hello.Hello.HelloRequest other) { if (other == cn.klzhong.samples.proto.hello.Hello.HelloRequest.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasMsg()) { bitField0_ |= 0x00000002; msg_ = other.msg_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public cn.klzhong.samples.proto.hello.Hello.HelloRequest buildPartial() { cn.klzhong.samples.proto.hello.Hello.HelloRequest result = new cn.klzhong.samples.proto.hello.Hello.HelloRequest(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.msg_ = msg_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public cn.klzhong.samples.proto.hello.Hello.HelloRequest getDefaultInstanceForType() { return cn.klzhong.samples.proto.hello.Hello.HelloRequest.getDefaultInstance(); }