@java.lang.Override public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasChunkKey()) { hash = (37 * hash) + CHUNK_KEY_FIELD_NUMBER; hash = (53 * hash) + getChunkKey().hashCode(); } if (hasObjectInfo()) { hash = (37 * hash) + OBJECT_INFO_FIELD_NUMBER; hash = (53 * hash) + getObjectInfo().hashCode(); } if (hasTime()) { hash = (37 * hash) + TIME_FIELD_NUMBER; hash = (53 * hash) + hashLong(getTime()); } hash = (29 * hash) + getUnknownFields().hashCode(); return hash; }
public org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item buildPartial() { org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item result = new org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.chunkKey_ = chunkKey_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (objectInfoBuilder_ == null) { result.objectInfo_ = objectInfo_; } else { result.objectInfo_ = objectInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.time_ = time_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getChunkKeyBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, objectInfo_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeFixed64Size(3, time_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
@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.Item)) { return super.equals(obj); } org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item other = (org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item) obj; boolean result = true; result = result && (hasChunkKey() == other.hasChunkKey()); if (hasChunkKey()) { result = result && getChunkKey() .equals(other.getChunkKey()); } result = result && (hasObjectInfo() == other.hasObjectInfo()); if (hasObjectInfo()) { result = result && getObjectInfo() .equals(other.getObjectInfo()); } result = result && (hasTime() == other.hasTime()); if (hasTime()) { result = result && (getTime() == other.getTime()); } 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.Item)) { return super.equals(obj); } org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item other = (org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item) obj; boolean result = true; result = result && (hasChunkKey() == other.hasChunkKey()); if (hasChunkKey()) { result = result && getChunkKey() .equals(other.getChunkKey()); } result = result && (hasObjectInfo() == other.hasObjectInfo()); if (hasObjectInfo()) { result = result && getObjectInfo() .equals(other.getObjectInfo()); } result = result && (hasTime() == other.hasTime()); if (hasTime()) { result = result && (getTime() == other.getTime()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item buildPartial() { org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item result = new org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.chunkKey_ = chunkKey_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (objectInfoBuilder_ == null) { result.objectInfo_ = objectInfo_; } else { result.objectInfo_ = objectInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.time_ = time_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasChunkKey()) { memoizedIsInitialized = 0; return false; } if (!hasObjectInfo()) { memoizedIsInitialized = 0; return false; } if (!getObjectInfo().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getChunkKeyBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, objectInfo_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeFixed64Size(3, time_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasChunkKey()) { memoizedIsInitialized = 0; return false; } if (!hasObjectInfo()) { memoizedIsInitialized = 0; return false; } if (!getObjectInfo().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; }
@java.lang.Override public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasChunkKey()) { hash = (37 * hash) + CHUNK_KEY_FIELD_NUMBER; hash = (53 * hash) + getChunkKey().hashCode(); } if (hasObjectInfo()) { hash = (37 * hash) + OBJECT_INFO_FIELD_NUMBER; hash = (53 * hash) + getObjectInfo().hashCode(); } if (hasTime()) { hash = (37 * hash) + TIME_FIELD_NUMBER; hash = (53 * hash) + hashLong(getTime()); } hash = (29 * hash) + getUnknownFields().hashCode(); return hash; }
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); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getChunkKeyBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, objectInfo_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeFixed64(3, time_); } getUnknownFields().writeTo(output); }
public org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item getDefaultInstanceForType() { return org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.getDefaultInstance(); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getChunkKeyBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, objectInfo_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeFixed64(3, time_); } getUnknownFields().writeTo(output); }
public org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item getDefaultInstanceForType() { return org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.getDefaultInstance(); }
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.getDescriptor(); }
public org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.Builder addItemBuilder( int index) { return getItemFieldBuilder().addBuilder( index, org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.getDefaultInstance()); } public java.util.List<org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.Builder>
public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item other) { if (other == org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.getDefaultInstance()) return this; if (other.hasChunkKey()) { setChunkKey(other.getChunkKey()); } if (other.hasObjectInfo()) { mergeObjectInfo(other.getObjectInfo()); } if (other.hasTime()) { setTime(other.getTime()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.getDescriptor(); }