public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, state_); } for (int i = 0; i < functionDesc_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, functionDesc_.get(i)); } 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.writeMessage(1, state_); } for (int i = 0; i < functionDesc_.size(); i++) { output.writeMessage(2, functionDesc_.get(i)); } getUnknownFields().writeTo(output); }
this.mergeUnknownFields(other.getUnknownFields()); return this;
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.tajo.catalog.proto.CatalogProtos.GetFunctionsResponse)) { return super.equals(obj); } org.apache.tajo.catalog.proto.CatalogProtos.GetFunctionsResponse other = (org.apache.tajo.catalog.proto.CatalogProtos.GetFunctionsResponse) obj; boolean result = true; result = result && (hasState() == other.hasState()); if (hasState()) { result = result && getState() .equals(other.getState()); } result = result && getFunctionDescList() .equals(other.getFunctionDescList()); 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 (hasState()) { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + getState().hashCode(); } if (getFunctionDescCount() > 0) { hash = (37 * hash) + FUNCTIONDESC_FIELD_NUMBER; hash = (53 * hash) + getFunctionDescList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }