public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < objectName_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(objectName_.getByteString(i)); } size += dataSize; size += 1 * getObjectNameList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < objectName_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(objectName_.getByteString(i)); } size += dataSize; size += 1 * getObjectNameList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
@Override public Set<ObjectId> getTips() { if (tips == null) { tips = new HashSet<ObjectId>(); for (String idString : info.getTipList().getObjectNameList()) tips.add(ObjectId.fromString(idString)); tips = Collections.unmodifiableSet(tips); } return tips; }
@java.lang.Override public boolean equals(final Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList)) { return super.equals(obj); } org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList other = (org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList) obj; boolean result = true; result = result && getObjectNameList() .equals(other.getObjectNameList()); result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList)) { return super.equals(obj); } org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList other = (org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList) obj; boolean result = true; result = result && getObjectNameList() .equals(other.getObjectNameList()); result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getObjectNameCount() > 0) { hash = (37 * hash) + OBJECT_NAME_FIELD_NUMBER; hash = (53 * hash) + getObjectNameList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); return hash; }
@Override public Set<ObjectId> getTips() { if (tips == null) { tips = new HashSet<ObjectId>(); for (String idString : info.getTipList().getObjectNameList()) tips.add(ObjectId.fromString(idString)); tips = Collections.unmodifiableSet(tips); } return tips; }
@java.lang.Override public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getObjectNameCount() > 0) { hash = (37 * hash) + OBJECT_NAME_FIELD_NUMBER; hash = (53 * hash) + getObjectNameList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); return hash; }