@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } { int dataSize = 0; for (int i = 0; i < functions_.size(); i++) { dataSize += computeStringSizeNoTag(functions_.getRaw(i)); } size += dataSize; size += 1 * getFunctionsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (getFunctionsCount() > 0) { hash = (37 * hash) + FUNCTIONS_FIELD_NUMBER; hash = (53 * hash) + getFunctionsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } { int dataSize = 0; for (int i = 0; i < functions_.size(); i++) { dataSize += computeStringSizeNoTag(functions_.getRaw(i)); } size += dataSize; size += 1 * getFunctionsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } { int dataSize = 0; for (int i = 0; i < functions_.size(); i++) { dataSize += computeStringSizeNoTag(functions_.getRaw(i)); } size += dataSize; size += 1 * getFunctionsList().size(); } memoizedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (getFunctionsCount() > 0) { hash = (37 * hash) + FUNCTIONS_FIELD_NUMBER; hash = (53 * hash) + getFunctionsList().hashCode(); } hash = (29 * hash) + unknownFields.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.calcite.avatica.proto.Common.DatabaseProperty)) { return super.equals(obj); } org.apache.calcite.avatica.proto.Common.DatabaseProperty other = (org.apache.calcite.avatica.proto.Common.DatabaseProperty) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getFunctionsList() .equals(other.getFunctionsList()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.calcite.avatica.proto.Common.DatabaseProperty)) { return super.equals(obj); } org.apache.calcite.avatica.proto.Common.DatabaseProperty other = (org.apache.calcite.avatica.proto.Common.DatabaseProperty) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getFunctionsList() .equals(other.getFunctionsList()); result = result && unknownFields.equals(other.unknownFields); return result; }