@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasAge()) { hash = (37 * hash) + AGE_FIELD_NUMBER; hash = (53 * hash) + getAge(); } if (hasAddr()) { hash = (37 * hash) + ADDR_FIELD_NUMBER; hash = (53 * hash) + getAddr().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, age_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getAddrBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, age_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getAddrBytes()); } getUnknownFields().writeTo(output); }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.tajo.util.TestProtos.TestMessageProto)) { return super.equals(obj); } org.apache.tajo.util.TestProtos.TestMessageProto other = (org.apache.tajo.util.TestProtos.TestMessageProto) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && (hasAge() == other.hasAge()); if (hasAge()) { result = result && (getAge() == other.getAge()); } result = result && (hasAddr() == other.hasAddr()); if (hasAddr()) { result = result && getAddr() .equals(other.getAddr()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.tajo.util.TestProtos.TestMessageProto)) { return super.equals(obj); } org.apache.tajo.util.TestProtos.TestMessageProto other = (org.apache.tajo.util.TestProtos.TestMessageProto) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && (hasAge() == other.hasAge()); if (hasAge()) { result = result && (getAge() == other.getAge()); } result = result && (hasAddr() == other.hasAddr()); if (hasAddr()) { result = result && getAddr() .equals(other.getAddr()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasAge()) { hash = (37 * hash) + AGE_FIELD_NUMBER; hash = (53 * hash) + getAge(); } if (hasAddr()) { hash = (37 * hash) + ADDR_FIELD_NUMBER; hash = (53 * hash) + getAddr().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
public org.apache.tajo.util.TestProtos.TestMessageProto buildPartial() { org.apache.tajo.util.TestProtos.TestMessageProto result = new org.apache.tajo.util.TestProtos.TestMessageProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.age_ = age_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.addr_ = addr_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public org.apache.tajo.util.TestProtos.TestMessageProto buildPartial() { org.apache.tajo.util.TestProtos.TestMessageProto result = new org.apache.tajo.util.TestProtos.TestMessageProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.age_ = age_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.addr_ = addr_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, age_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getAddrBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public Builder mergeFrom(org.apache.tajo.util.TestProtos.TestMessageProto other) { if (other == org.apache.tajo.util.TestProtos.TestMessageProto.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasAge()) { setAge(other.getAge()); } if (other.hasAddr()) { bitField0_ |= 0x00000004; addr_ = other.addr_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.apache.tajo.util.TestProtos.TestMessageProto other) { if (other == org.apache.tajo.util.TestProtos.TestMessageProto.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasAge()) { setAge(other.getAge()); } if (other.hasAddr()) { bitField0_ |= 0x00000004; addr_ = other.addr_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public org.apache.tajo.util.TestProtos.TestMessageProto getDefaultInstanceForType() { return org.apache.tajo.util.TestProtos.TestMessageProto.getDefaultInstance(); }
public org.apache.tajo.util.TestProtos.TestMessageProto getDefaultInstanceForType() { return org.apache.tajo.util.TestProtos.TestMessageProto.getDefaultInstance(); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, age_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getAddrBytes()); } getUnknownFields().writeTo(output); }
/** * <code>required string name = 1;</code> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * <code>required string addr = 3;</code> */ public Builder clearAddr() { bitField0_ = (bitField0_ & ~0x00000004); addr_ = getDefaultInstance().getAddr(); onChanged(); return this; } /**
/** * <code>required string addr = 3;</code> */ public Builder clearAddr() { bitField0_ = (bitField0_ & ~0x00000004); addr_ = getDefaultInstance().getAddr(); onChanged(); return this; } /**
/** * <code>required string name = 1;</code> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /**