public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getApplicationIdStringBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, dagIndex_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, appAttemptNumber_); } 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, getApplicationIdStringBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, dagIndex_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, appAttemptNumber_); } getUnknownFields().writeTo(output); }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasApplicationIdString()) { hash = (37 * hash) + APPLICATION_ID_STRING_FIELD_NUMBER; hash = (53 * hash) + getApplicationIdString().hashCode(); } if (hasDagIndex()) { hash = (37 * hash) + DAG_INDEX_FIELD_NUMBER; hash = (53 * hash) + getDagIndex(); } if (hasAppAttemptNumber()) { hash = (37 * hash) + APP_ATTEMPT_NUMBER_FIELD_NUMBER; hash = (53 * hash) + getAppAttemptNumber(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.QueryIdentifierProto)) { return super.equals(obj); } org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.QueryIdentifierProto other = (org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.QueryIdentifierProto) obj; boolean result = true; result = result && (hasApplicationIdString() == other.hasApplicationIdString()); if (hasApplicationIdString()) { result = result && getApplicationIdString() .equals(other.getApplicationIdString()); } result = result && (hasDagIndex() == other.hasDagIndex()); if (hasDagIndex()) { result = result && (getDagIndex() == other.getDagIndex()); } result = result && (hasAppAttemptNumber() == other.hasAppAttemptNumber()); if (hasAppAttemptNumber()) { result = result && (getAppAttemptNumber() == other.getAppAttemptNumber()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public Builder mergeFrom(org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.QueryIdentifierProto other) { if (other == org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.QueryIdentifierProto.getDefaultInstance()) return this; if (other.hasApplicationIdString()) { bitField0_ |= 0x00000001; applicationIdString_ = other.applicationIdString_; onChanged(); } if (other.hasDagIndex()) { setDagIndex(other.getDagIndex()); } if (other.hasAppAttemptNumber()) { setAppAttemptNumber(other.getAppAttemptNumber()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }