public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < edge_.size(); i++) { output.writeBytes(1, edge_.getByteString(i)); } for (int i = 0; i < sequential_.size(); i++) { output.writeBytes(2, sequential_.getByteString(i)); } getUnknownFields().writeTo(output); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < edge_.size(); i++) { output.writeBytes(1, edge_.getByteString(i)); } for (int i = 0; i < sequential_.size(); i++) { output.writeBytes(2, sequential_.getByteString(i)); } getUnknownFields().writeTo(output); }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < edge_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(edge_.getByteString(i)); } size += dataSize; size += 1 * getEdgeList().size(); } { int dataSize = 0; for (int i = 0; i < sequential_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(sequential_.getByteString(i)); } size += dataSize; size += 1 * getSequentialList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint other) { if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.getDefaultInstance()) return this; if (!other.edge_.isEmpty()) { if (edge_.isEmpty()) { edge_ = other.edge_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEdgeIsMutable(); edge_.addAll(other.edge_); } onChanged(); } if (!other.sequential_.isEmpty()) { if (sequential_.isEmpty()) { sequential_ = other.sequential_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSequentialIsMutable(); sequential_.addAll(other.sequential_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < edge_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(edge_.getByteString(i)); } size += dataSize; size += 1 * getEdgeList().size(); } { int dataSize = 0; for (int i = 0; i < sequential_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(sequential_.getByteString(i)); } size += dataSize; size += 1 * getSequentialList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint other) { if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.getDefaultInstance()) return this; if (!other.edge_.isEmpty()) { if (edge_.isEmpty()) { edge_ = other.edge_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEdgeIsMutable(); edge_.addAll(other.edge_); } onChanged(); } if (!other.sequential_.isEmpty()) { if (sequential_.isEmpty()) { sequential_ = other.sequential_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSequentialIsMutable(); sequential_.addAll(other.sequential_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
@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.ChunkMeta.PrefetchHint)) { return super.equals(obj); } org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint other = (org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint) obj; boolean result = true; result = result && getEdgeList() .equals(other.getEdgeList()); result = result && getSequentialList() .equals(other.getSequentialList()); 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.ChunkMeta.PrefetchHint)) { return super.equals(obj); } org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint other = (org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint) obj; boolean result = true; result = result && getEdgeList() .equals(other.getEdgeList()); result = result && getSequentialList() .equals(other.getSequentialList()); result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getEdgeCount() > 0) { hash = (37 * hash) + EDGE_FIELD_NUMBER; hash = (53 * hash) + getEdgeList().hashCode(); } if (getSequentialCount() > 0) { hash = (37 * hash) + SEQUENTIAL_FIELD_NUMBER; hash = (53 * hash) + getSequentialList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); return hash; }
@java.lang.Override public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getEdgeCount() > 0) { hash = (37 * hash) + EDGE_FIELD_NUMBER; hash = (53 * hash) + getEdgeList().hashCode(); } if (getSequentialCount() > 0) { hash = (37 * hash) + SEQUENTIAL_FIELD_NUMBER; hash = (53 * hash) + getSequentialList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); return hash; }