@java.lang.Override public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getItemCount() > 0) { hash = (37 * hash) + ITEM_FIELD_NUMBER; hash = (53 * hash) + getItemList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); return hash; }
public org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex buildPartial() { org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex result = new org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex(this); int from_bitField0_ = bitField0_; if (itemBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { item_ = java.util.Collections.unmodifiableList(item_); bitField0_ = (bitField0_ & ~0x00000001); } result.item_ = item_; } else { result.item_ = itemBuilder_.build(); } onBuilt(); return result; }
public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex other) { if (other == org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.getDefaultInstance()) return this; if (itemBuilder_ == null) { if (!other.item_.isEmpty()) { this.mergeUnknownFields(other.getUnknownFields()); return this;
public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex other) { if (other == org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.getDefaultInstance()) return this; if (itemBuilder_ == null) { if (!other.item_.isEmpty()) { this.mergeUnknownFields(other.getUnknownFields()); return this;
public Builder toBuilder() { return newBuilder(this); }
public Builder toBuilder() { return newBuilder(this); }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex prototype) {
public org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex buildPartial() { org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex result = new org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex(this); int from_bitField0_ = bitField0_; if (itemBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { item_ = java.util.Collections.unmodifiableList(item_); bitField0_ = (bitField0_ & ~0x00000001); } result.item_ = item_; } else { result.item_ = itemBuilder_.build(); } onBuilt(); 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.GitCache.CachedObjectIndex)) { return super.equals(obj); } org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex other = (org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex) obj; boolean result = true; result = result && getItemList() .equals(other.getItemList()); 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.GitCache.CachedObjectIndex)) { return super.equals(obj); } org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex other = (org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex) obj; boolean result = true; result = result && getItemList() .equals(other.getItemList()); result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
private Collection<ObjectInfo> decode(byte[] value) throws InvalidProtocolBufferException { CachedObjectIndex cacheEntry = CachedObjectIndex.parseFrom(value); int sz = cacheEntry.getItemCount(); ObjectInfo[] r = new ObjectInfo[sz]; for (int i = 0; i < sz; i++) { CachedObjectIndex.Item item = cacheEntry.getItem(i); r[i] = new ObjectInfo( ChunkKey.fromString(item.getChunkKey()), item.getTime(), item.getObjectInfo()); } return Arrays.asList(r); }
private Collection<ObjectInfo> decode(byte[] value) throws InvalidProtocolBufferException { CachedObjectIndex cacheEntry = CachedObjectIndex.parseFrom(value); int sz = cacheEntry.getItemCount(); ObjectInfo[] r = new ObjectInfo[sz]; for (int i = 0; i < sz; i++) { CachedObjectIndex.Item item = cacheEntry.getItem(i); r[i] = new ObjectInfo( ChunkKey.fromString(item.getChunkKey()), item.getTime(), item.getObjectInfo()); } return Arrays.asList(r); }
private byte[] encode(List<ObjectInfo> items) { CachedObjectIndex.Builder b; b = CachedObjectIndex.newBuilder(); for (ObjectInfo info : items) { CachedObjectIndex.Item.Builder i = b.addItemBuilder(); i.setChunkKey(info.getChunkKey().asString()); i.setObjectInfo(info.getData()); if (0 < info.getTime()) i.setTime(info.getTime()); } return b.build().toByteArray(); } });
private byte[] encode(List<ObjectInfo> items) { CachedObjectIndex.Builder b; b = CachedObjectIndex.newBuilder(); for (ObjectInfo info : items) { CachedObjectIndex.Item.Builder i = b.addItemBuilder(); i.setChunkKey(info.getChunkKey().asString()); i.setObjectInfo(info.getData()); if (0 < info.getTime()) i.setTime(info.getTime()); } return b.build().toByteArray(); } });
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex prototype) {
public org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex getDefaultInstanceForType() { return org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.getDefaultInstance(); }
public static org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex parseDelimitedFrom(
public static org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex parseFrom(java.io.InputStream input)
public static org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex parseFrom(
public static org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex parseDelimitedFrom(java.io.InputStream input)