public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, startIndex_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, count_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, userPayload_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, version_); } 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.writeInt32(1, startIndex_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, count_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, userPayload_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, version_); } getUnknownFields().writeTo(output); }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasStartIndex()) { hash = (37 * hash) + START_INDEX_FIELD_NUMBER; hash = (53 * hash) + getStartIndex(); } if (hasCount()) { hash = (37 * hash) + COUNT_FIELD_NUMBER; hash = (53 * hash) + getCount(); } if (hasUserPayload()) { hash = (37 * hash) + USER_PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getUserPayload().hashCode(); } if (hasVersion()) { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
getUnknownFields().equals(other.getUnknownFields()); return result;
public Builder mergeFrom(org.apache.tez.runtime.api.events.EventProtos.CompositeEventProto other) { if (other == org.apache.tez.runtime.api.events.EventProtos.CompositeEventProto.getDefaultInstance()) return this; if (other.hasStartIndex()) { setStartIndex(other.getStartIndex()); } if (other.hasCount()) { setCount(other.getCount()); } if (other.hasUserPayload()) { setUserPayload(other.getUserPayload()); } if (other.hasVersion()) { setVersion(other.getVersion()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }