| // Generated by the protocol buffer compiler. DO NOT EDIT! |
| // source: org/eclipse/jgit/storage/dht/git_cache.proto |
| |
| package org.eclipse.jgit.generated.storage.dht.proto; |
| |
| public final class GitCache { |
| private GitCache() {} |
| public static void registerAllExtensions( |
| com.google.protobuf.ExtensionRegistry registry) { |
| } |
| public interface CachedObjectIndexOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // repeated .org.eclipse.jgit.storage.dht.CachedObjectIndex.Item item = 1; |
| java.util.List<org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item> |
| getItemList(); |
| org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item getItem(int index); |
| int getItemCount(); |
| java.util.List<? extends org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.ItemOrBuilder> |
| getItemOrBuilderList(); |
| org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.ItemOrBuilder getItemOrBuilder( |
| int index); |
| } |
| public static final class CachedObjectIndex extends |
| com.google.protobuf.GeneratedMessage |
| implements CachedObjectIndexOrBuilder { |
| // Use CachedObjectIndex.newBuilder() to construct. |
| private CachedObjectIndex(Builder builder) { |
| super(builder); |
| } |
| private CachedObjectIndex(boolean noInit) {} |
| |
| private static final CachedObjectIndex defaultInstance; |
| public static CachedObjectIndex getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CachedObjectIndex getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.eclipse.jgit.generated.storage.dht.proto.GitCache.internal_static_org_eclipse_jgit_storage_dht_CachedObjectIndex_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.eclipse.jgit.generated.storage.dht.proto.GitCache.internal_static_org_eclipse_jgit_storage_dht_CachedObjectIndex_fieldAccessorTable; |
| } |
| |
| public interface ItemOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required string chunk_key = 1; |
| boolean hasChunkKey(); |
| String getChunkKey(); |
| |
| // required .org.eclipse.jgit.storage.dht.ObjectInfo object_info = 2; |
| boolean hasObjectInfo(); |
| org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo getObjectInfo(); |
| org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfoOrBuilder getObjectInfoOrBuilder(); |
| |
| // optional fixed64 time = 3; |
| boolean hasTime(); |
| long getTime(); |
| } |
| public static final class Item extends |
| com.google.protobuf.GeneratedMessage |
| implements ItemOrBuilder { |
| // Use Item.newBuilder() to construct. |
| private Item(Builder builder) { |
| super(builder); |
| } |
| private Item(boolean noInit) {} |
| |
| private static final Item defaultInstance; |
| public static Item getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public Item getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.eclipse.jgit.generated.storage.dht.proto.GitCache.internal_static_org_eclipse_jgit_storage_dht_CachedObjectIndex_Item_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.eclipse.jgit.generated.storage.dht.proto.GitCache.internal_static_org_eclipse_jgit_storage_dht_CachedObjectIndex_Item_fieldAccessorTable; |
| } |
| |
| private int bitField0_; |
| // required string chunk_key = 1; |
| public static final int CHUNK_KEY_FIELD_NUMBER = 1; |
| private Object chunkKey_; |
| public boolean hasChunkKey() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public String getChunkKey() { |
| Object ref = chunkKey_; |
| if (ref instanceof String) { |
| return (String) ref; |
| } else { |
| com.google.protobuf.ByteString bs = |
| (com.google.protobuf.ByteString) ref; |
| String s = bs.toStringUtf8(); |
| if (com.google.protobuf.Internal.isValidUtf8(bs)) { |
| chunkKey_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getChunkKeyBytes() { |
| Object ref = chunkKey_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| chunkKey_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // required .org.eclipse.jgit.storage.dht.ObjectInfo object_info = 2; |
| public static final int OBJECT_INFO_FIELD_NUMBER = 2; |
| private org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo objectInfo_; |
| public boolean hasObjectInfo() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo getObjectInfo() { |
| return objectInfo_; |
| } |
| public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfoOrBuilder getObjectInfoOrBuilder() { |
| return objectInfo_; |
| } |
| |
| // optional fixed64 time = 3; |
| public static final int TIME_FIELD_NUMBER = 3; |
| private long time_; |
| public boolean hasTime() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public long getTime() { |
| return time_; |
| } |
| |
| private void initFields() { |
| chunkKey_ = ""; |
| objectInfo_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.getDefaultInstance(); |
| time_ = 0L; |
| } |
| private byte memoizedIsInitialized = -1; |
| 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 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); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| 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 |
| protected Object writeReplace() throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @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 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 static org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item parseFrom( |
| com.google.protobuf.ByteString 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.Item parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item 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.Item parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item 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.Item 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.Item 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.Item parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.ItemOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.eclipse.jgit.generated.storage.dht.proto.GitCache.internal_static_org_eclipse_jgit_storage_dht_CachedObjectIndex_Item_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.eclipse.jgit.generated.storage.dht.proto.GitCache.internal_static_org_eclipse_jgit_storage_dht_CachedObjectIndex_Item_fieldAccessorTable; |
| } |
| |
| // Construct using org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| getObjectInfoFieldBuilder(); |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| chunkKey_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| if (objectInfoBuilder_ == null) { |
| objectInfo_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.getDefaultInstance(); |
| } else { |
| objectInfoBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000002); |
| time_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| 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 getDefaultInstanceForType() { |
| return org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.getDefaultInstance(); |
| } |
| |
| public org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item build() { |
| org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| 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 Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item) { |
| return mergeFrom((org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| 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 final boolean isInitialized() { |
| if (!hasChunkKey()) { |
| |
| return false; |
| } |
| if (!hasObjectInfo()) { |
| |
| return false; |
| } |
| if (!getObjectInfo().isInitialized()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| com.google.protobuf.UnknownFieldSet.Builder unknownFields = |
| com.google.protobuf.UnknownFieldSet.newBuilder( |
| this.getUnknownFields()); |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| chunkKey_ = input.readBytes(); |
| break; |
| } |
| case 18: { |
| org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.Builder subBuilder = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.newBuilder(); |
| if (hasObjectInfo()) { |
| subBuilder.mergeFrom(getObjectInfo()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setObjectInfo(subBuilder.buildPartial()); |
| break; |
| } |
| case 25: { |
| bitField0_ |= 0x00000004; |
| time_ = input.readFixed64(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required string chunk_key = 1; |
| private Object chunkKey_ = ""; |
| public boolean hasChunkKey() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public String getChunkKey() { |
| Object ref = chunkKey_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| chunkKey_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setChunkKey(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| chunkKey_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearChunkKey() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| chunkKey_ = getDefaultInstance().getChunkKey(); |
| onChanged(); |
| return this; |
| } |
| void setChunkKey(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000001; |
| chunkKey_ = value; |
| onChanged(); |
| } |
| |
| // required .org.eclipse.jgit.storage.dht.ObjectInfo object_info = 2; |
| private org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo objectInfo_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfoOrBuilder> objectInfoBuilder_; |
| public boolean hasObjectInfo() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo getObjectInfo() { |
| if (objectInfoBuilder_ == null) { |
| return objectInfo_; |
| } else { |
| return objectInfoBuilder_.getMessage(); |
| } |
| } |
| public Builder setObjectInfo(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo value) { |
| if (objectInfoBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| objectInfo_ = value; |
| onChanged(); |
| } else { |
| objectInfoBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000002; |
| return this; |
| } |
| public Builder setObjectInfo( |
| org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.Builder builderForValue) { |
| if (objectInfoBuilder_ == null) { |
| objectInfo_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| objectInfoBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000002; |
| return this; |
| } |
| public Builder mergeObjectInfo(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo value) { |
| if (objectInfoBuilder_ == null) { |
| if (((bitField0_ & 0x00000002) == 0x00000002) && |
| objectInfo_ != org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.getDefaultInstance()) { |
| objectInfo_ = |
| org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.newBuilder(objectInfo_).mergeFrom(value).buildPartial(); |
| } else { |
| objectInfo_ = value; |
| } |
| onChanged(); |
| } else { |
| objectInfoBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000002; |
| return this; |
| } |
| public Builder clearObjectInfo() { |
| if (objectInfoBuilder_ == null) { |
| objectInfo_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.getDefaultInstance(); |
| onChanged(); |
| } else { |
| objectInfoBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.Builder getObjectInfoBuilder() { |
| bitField0_ |= 0x00000002; |
| onChanged(); |
| return getObjectInfoFieldBuilder().getBuilder(); |
| } |
| public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfoOrBuilder getObjectInfoOrBuilder() { |
| if (objectInfoBuilder_ != null) { |
| return objectInfoBuilder_.getMessageOrBuilder(); |
| } else { |
| return objectInfo_; |
| } |
| } |
| private com.google.protobuf.SingleFieldBuilder< |
| org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfoOrBuilder> |
| getObjectInfoFieldBuilder() { |
| if (objectInfoBuilder_ == null) { |
| objectInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfoOrBuilder>( |
| objectInfo_, |
| getParentForChildren(), |
| isClean()); |
| objectInfo_ = null; |
| } |
| return objectInfoBuilder_; |
| } |
| |
| // optional fixed64 time = 3; |
| private long time_ ; |
| public boolean hasTime() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public long getTime() { |
| return time_; |
| } |
| public Builder setTime(long value) { |
| bitField0_ |= 0x00000004; |
| time_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearTime() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| time_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.eclipse.jgit.storage.dht.CachedObjectIndex.Item) |
| } |
| |
| static { |
| defaultInstance = new Item(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.eclipse.jgit.storage.dht.CachedObjectIndex.Item) |
| } |
| |
| // repeated .org.eclipse.jgit.storage.dht.CachedObjectIndex.Item item = 1; |
| public static final int ITEM_FIELD_NUMBER = 1; |
| private java.util.List<org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item> item_; |
| public java.util.List<org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item> getItemList() { |
| return item_; |
| } |
| public java.util.List<? extends org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.ItemOrBuilder> |
| getItemOrBuilderList() { |
| return item_; |
| } |
| public int getItemCount() { |
| return item_.size(); |
| } |
| public org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item getItem(int index) { |
| return item_.get(index); |
| } |
| public org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.ItemOrBuilder getItemOrBuilder( |
| int index) { |
| return item_.get(index); |
| } |
| |
| private void initFields() { |
| item_ = java.util.Collections.emptyList(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| for (int i = 0; i < getItemCount(); i++) { |
| if (!getItem(i).isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| for (int i = 0; i < item_.size(); i++) { |
| output.writeMessage(1, item_.get(i)); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| for (int i = 0; i < item_.size(); i++) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(1, item_.get(i)); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| @java.lang.Override |
| protected Object writeReplace() throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @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 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 static org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex parseFrom( |
| com.google.protobuf.ByteString 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(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| 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) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| 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) |
| 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( |
| 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( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndexOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.eclipse.jgit.generated.storage.dht.proto.GitCache.internal_static_org_eclipse_jgit_storage_dht_CachedObjectIndex_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.eclipse.jgit.generated.storage.dht.proto.GitCache.internal_static_org_eclipse_jgit_storage_dht_CachedObjectIndex_fieldAccessorTable; |
| } |
| |
| // Construct using org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| getItemFieldBuilder(); |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| if (itemBuilder_ == null) { |
| item_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| } else { |
| itemBuilder_.clear(); |
| } |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.getDescriptor(); |
| } |
| |
| public org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex getDefaultInstanceForType() { |
| return org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.getDefaultInstance(); |
| } |
| |
| public org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex build() { |
| org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| 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(com.google.protobuf.Message other) { |
| if (other instanceof org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex) { |
| return mergeFrom((org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex)other); |
| } else { |
| super.mergeFrom(other); |
| 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()) { |
| if (item_.isEmpty()) { |
| item_ = other.item_; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| } else { |
| ensureItemIsMutable(); |
| item_.addAll(other.item_); |
| } |
| onChanged(); |
| } |
| } else { |
| if (!other.item_.isEmpty()) { |
| if (itemBuilder_.isEmpty()) { |
| itemBuilder_.dispose(); |
| itemBuilder_ = null; |
| item_ = other.item_; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| itemBuilder_ = |
| com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? |
| getItemFieldBuilder() : null; |
| } else { |
| itemBuilder_.addAllMessages(other.item_); |
| } |
| } |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| for (int i = 0; i < getItemCount(); i++) { |
| if (!getItem(i).isInitialized()) { |
| |
| return false; |
| } |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| com.google.protobuf.UnknownFieldSet.Builder unknownFields = |
| com.google.protobuf.UnknownFieldSet.newBuilder( |
| this.getUnknownFields()); |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.Builder subBuilder = org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.newBuilder(); |
| input.readMessage(subBuilder, extensionRegistry); |
| addItem(subBuilder.buildPartial()); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // repeated .org.eclipse.jgit.storage.dht.CachedObjectIndex.Item item = 1; |
| private java.util.List<org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item> item_ = |
| java.util.Collections.emptyList(); |
| private void ensureItemIsMutable() { |
| if (!((bitField0_ & 0x00000001) == 0x00000001)) { |
| item_ = new java.util.ArrayList<org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item>(item_); |
| bitField0_ |= 0x00000001; |
| } |
| } |
| |
| private com.google.protobuf.RepeatedFieldBuilder< |
| org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item, org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.ItemOrBuilder> itemBuilder_; |
| |
| public java.util.List<org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item> getItemList() { |
| if (itemBuilder_ == null) { |
| return java.util.Collections.unmodifiableList(item_); |
| } else { |
| return itemBuilder_.getMessageList(); |
| } |
| } |
| public int getItemCount() { |
| if (itemBuilder_ == null) { |
| return item_.size(); |
| } else { |
| return itemBuilder_.getCount(); |
| } |
| } |
| public org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item getItem(int index) { |
| if (itemBuilder_ == null) { |
| return item_.get(index); |
| } else { |
| return itemBuilder_.getMessage(index); |
| } |
| } |
| public Builder setItem( |
| int index, org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item value) { |
| if (itemBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureItemIsMutable(); |
| item_.set(index, value); |
| onChanged(); |
| } else { |
| itemBuilder_.setMessage(index, value); |
| } |
| return this; |
| } |
| public Builder setItem( |
| int index, org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.Builder builderForValue) { |
| if (itemBuilder_ == null) { |
| ensureItemIsMutable(); |
| item_.set(index, builderForValue.build()); |
| onChanged(); |
| } else { |
| itemBuilder_.setMessage(index, builderForValue.build()); |
| } |
| return this; |
| } |
| public Builder addItem(org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item value) { |
| if (itemBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureItemIsMutable(); |
| item_.add(value); |
| onChanged(); |
| } else { |
| itemBuilder_.addMessage(value); |
| } |
| return this; |
| } |
| public Builder addItem( |
| int index, org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item value) { |
| if (itemBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureItemIsMutable(); |
| item_.add(index, value); |
| onChanged(); |
| } else { |
| itemBuilder_.addMessage(index, value); |
| } |
| return this; |
| } |
| public Builder addItem( |
| org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.Builder builderForValue) { |
| if (itemBuilder_ == null) { |
| ensureItemIsMutable(); |
| item_.add(builderForValue.build()); |
| onChanged(); |
| } else { |
| itemBuilder_.addMessage(builderForValue.build()); |
| } |
| return this; |
| } |
| public Builder addItem( |
| int index, org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.Builder builderForValue) { |
| if (itemBuilder_ == null) { |
| ensureItemIsMutable(); |
| item_.add(index, builderForValue.build()); |
| onChanged(); |
| } else { |
| itemBuilder_.addMessage(index, builderForValue.build()); |
| } |
| return this; |
| } |
| public Builder addAllItem( |
| java.lang.Iterable<? extends org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item> values) { |
| if (itemBuilder_ == null) { |
| ensureItemIsMutable(); |
| super.addAll(values, item_); |
| onChanged(); |
| } else { |
| itemBuilder_.addAllMessages(values); |
| } |
| return this; |
| } |
| public Builder clearItem() { |
| if (itemBuilder_ == null) { |
| item_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| onChanged(); |
| } else { |
| itemBuilder_.clear(); |
| } |
| return this; |
| } |
| public Builder removeItem(int index) { |
| if (itemBuilder_ == null) { |
| ensureItemIsMutable(); |
| item_.remove(index); |
| onChanged(); |
| } else { |
| itemBuilder_.remove(index); |
| } |
| return this; |
| } |
| public org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.Builder getItemBuilder( |
| int index) { |
| return getItemFieldBuilder().getBuilder(index); |
| } |
| public org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.ItemOrBuilder getItemOrBuilder( |
| int index) { |
| if (itemBuilder_ == null) { |
| return item_.get(index); } else { |
| return itemBuilder_.getMessageOrBuilder(index); |
| } |
| } |
| public java.util.List<? extends org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.ItemOrBuilder> |
| getItemOrBuilderList() { |
| if (itemBuilder_ != null) { |
| return itemBuilder_.getMessageOrBuilderList(); |
| } else { |
| return java.util.Collections.unmodifiableList(item_); |
| } |
| } |
| public org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.Builder addItemBuilder() { |
| return getItemFieldBuilder().addBuilder( |
| org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.getDefaultInstance()); |
| } |
| 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> |
| getItemBuilderList() { |
| return getItemFieldBuilder().getBuilderList(); |
| } |
| private com.google.protobuf.RepeatedFieldBuilder< |
| org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item, org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.ItemOrBuilder> |
| getItemFieldBuilder() { |
| if (itemBuilder_ == null) { |
| itemBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< |
| org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item, org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.ItemOrBuilder>( |
| item_, |
| ((bitField0_ & 0x00000001) == 0x00000001), |
| getParentForChildren(), |
| isClean()); |
| item_ = null; |
| } |
| return itemBuilder_; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.eclipse.jgit.storage.dht.CachedObjectIndex) |
| } |
| |
| static { |
| defaultInstance = new CachedObjectIndex(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.eclipse.jgit.storage.dht.CachedObjectIndex) |
| } |
| |
| public interface CachedPackInfoListOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // repeated .org.eclipse.jgit.storage.dht.CachedPackInfo pack = 1; |
| java.util.List<org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo> |
| getPackList(); |
| org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo getPack(int index); |
| int getPackCount(); |
| java.util.List<? extends org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfoOrBuilder> |
| getPackOrBuilderList(); |
| org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfoOrBuilder getPackOrBuilder( |
| int index); |
| } |
| public static final class CachedPackInfoList extends |
| com.google.protobuf.GeneratedMessage |
| implements CachedPackInfoListOrBuilder { |
| // Use CachedPackInfoList.newBuilder() to construct. |
| private CachedPackInfoList(Builder builder) { |
| super(builder); |
| } |
| private CachedPackInfoList(boolean noInit) {} |
| |
| private static final CachedPackInfoList defaultInstance; |
| public static CachedPackInfoList getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CachedPackInfoList getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.eclipse.jgit.generated.storage.dht.proto.GitCache.internal_static_org_eclipse_jgit_storage_dht_CachedPackInfoList_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.eclipse.jgit.generated.storage.dht.proto.GitCache.internal_static_org_eclipse_jgit_storage_dht_CachedPackInfoList_fieldAccessorTable; |
| } |
| |
| // repeated .org.eclipse.jgit.storage.dht.CachedPackInfo pack = 1; |
| public static final int PACK_FIELD_NUMBER = 1; |
| private java.util.List<org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo> pack_; |
| public java.util.List<org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo> getPackList() { |
| return pack_; |
| } |
| public java.util.List<? extends org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfoOrBuilder> |
| getPackOrBuilderList() { |
| return pack_; |
| } |
| public int getPackCount() { |
| return pack_.size(); |
| } |
| public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo getPack(int index) { |
| return pack_.get(index); |
| } |
| public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfoOrBuilder getPackOrBuilder( |
| int index) { |
| return pack_.get(index); |
| } |
| |
| private void initFields() { |
| pack_ = java.util.Collections.emptyList(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| for (int i = 0; i < getPackCount(); i++) { |
| if (!getPack(i).isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| for (int i = 0; i < pack_.size(); i++) { |
| output.writeMessage(1, pack_.get(i)); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| for (int i = 0; i < pack_.size(); i++) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(1, pack_.get(i)); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| @java.lang.Override |
| protected Object writeReplace() throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @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.CachedPackInfoList)) { |
| return super.equals(obj); |
| } |
| org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedPackInfoList other = (org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedPackInfoList) obj; |
| |
| boolean result = true; |
| result = result && getPackList() |
| .equals(other.getPackList()); |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| @java.lang.Override |
| public int hashCode() { |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (getPackCount() > 0) { |
| hash = (37 * hash) + PACK_FIELD_NUMBER; |
| hash = (53 * hash) + getPackList().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| return hash; |
| } |
| |
| public static org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedPackInfoList parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedPackInfoList parseFrom( |
| com.google.protobuf.ByteString 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.CachedPackInfoList parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedPackInfoList 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.CachedPackInfoList parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedPackInfoList 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.CachedPackInfoList 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.CachedPackInfoList 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.CachedPackInfoList parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedPackInfoList parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedPackInfoList prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedPackInfoListOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.eclipse.jgit.generated.storage.dht.proto.GitCache.internal_static_org_eclipse_jgit_storage_dht_CachedPackInfoList_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.eclipse.jgit.generated.storage.dht.proto.GitCache.internal_static_org_eclipse_jgit_storage_dht_CachedPackInfoList_fieldAccessorTable; |
| } |
| |
| // Construct using org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedPackInfoList.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| getPackFieldBuilder(); |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| if (packBuilder_ == null) { |
| pack_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| } else { |
| packBuilder_.clear(); |
| } |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedPackInfoList.getDescriptor(); |
| } |
| |
| public org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedPackInfoList getDefaultInstanceForType() { |
| return org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedPackInfoList.getDefaultInstance(); |
| } |
| |
| public org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedPackInfoList build() { |
| org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedPackInfoList result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedPackInfoList buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedPackInfoList result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedPackInfoList buildPartial() { |
| org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedPackInfoList result = new org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedPackInfoList(this); |
| int from_bitField0_ = bitField0_; |
| if (packBuilder_ == null) { |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| pack_ = java.util.Collections.unmodifiableList(pack_); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| } |
| result.pack_ = pack_; |
| } else { |
| result.pack_ = packBuilder_.build(); |
| } |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedPackInfoList) { |
| return mergeFrom((org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedPackInfoList)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedPackInfoList other) { |
| if (other == org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedPackInfoList.getDefaultInstance()) return this; |
| if (packBuilder_ == null) { |
| if (!other.pack_.isEmpty()) { |
| if (pack_.isEmpty()) { |
| pack_ = other.pack_; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| } else { |
| ensurePackIsMutable(); |
| pack_.addAll(other.pack_); |
| } |
| onChanged(); |
| } |
| } else { |
| if (!other.pack_.isEmpty()) { |
| if (packBuilder_.isEmpty()) { |
| packBuilder_.dispose(); |
| packBuilder_ = null; |
| pack_ = other.pack_; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| packBuilder_ = |
| com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? |
| getPackFieldBuilder() : null; |
| } else { |
| packBuilder_.addAllMessages(other.pack_); |
| } |
| } |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| for (int i = 0; i < getPackCount(); i++) { |
| if (!getPack(i).isInitialized()) { |
| |
| return false; |
| } |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| com.google.protobuf.UnknownFieldSet.Builder unknownFields = |
| com.google.protobuf.UnknownFieldSet.newBuilder( |
| this.getUnknownFields()); |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.Builder subBuilder = org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.newBuilder(); |
| input.readMessage(subBuilder, extensionRegistry); |
| addPack(subBuilder.buildPartial()); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // repeated .org.eclipse.jgit.storage.dht.CachedPackInfo pack = 1; |
| private java.util.List<org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo> pack_ = |
| java.util.Collections.emptyList(); |
| private void ensurePackIsMutable() { |
| if (!((bitField0_ & 0x00000001) == 0x00000001)) { |
| pack_ = new java.util.ArrayList<org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo>(pack_); |
| bitField0_ |= 0x00000001; |
| } |
| } |
| |
| private com.google.protobuf.RepeatedFieldBuilder< |
| org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo, org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfoOrBuilder> packBuilder_; |
| |
| public java.util.List<org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo> getPackList() { |
| if (packBuilder_ == null) { |
| return java.util.Collections.unmodifiableList(pack_); |
| } else { |
| return packBuilder_.getMessageList(); |
| } |
| } |
| public int getPackCount() { |
| if (packBuilder_ == null) { |
| return pack_.size(); |
| } else { |
| return packBuilder_.getCount(); |
| } |
| } |
| public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo getPack(int index) { |
| if (packBuilder_ == null) { |
| return pack_.get(index); |
| } else { |
| return packBuilder_.getMessage(index); |
| } |
| } |
| public Builder setPack( |
| int index, org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo value) { |
| if (packBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensurePackIsMutable(); |
| pack_.set(index, value); |
| onChanged(); |
| } else { |
| packBuilder_.setMessage(index, value); |
| } |
| return this; |
| } |
| public Builder setPack( |
| int index, org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.Builder builderForValue) { |
| if (packBuilder_ == null) { |
| ensurePackIsMutable(); |
| pack_.set(index, builderForValue.build()); |
| onChanged(); |
| } else { |
| packBuilder_.setMessage(index, builderForValue.build()); |
| } |
| return this; |
| } |
| public Builder addPack(org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo value) { |
| if (packBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensurePackIsMutable(); |
| pack_.add(value); |
| onChanged(); |
| } else { |
| packBuilder_.addMessage(value); |
| } |
| return this; |
| } |
| public Builder addPack( |
| int index, org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo value) { |
| if (packBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensurePackIsMutable(); |
| pack_.add(index, value); |
| onChanged(); |
| } else { |
| packBuilder_.addMessage(index, value); |
| } |
| return this; |
| } |
| public Builder addPack( |
| org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.Builder builderForValue) { |
| if (packBuilder_ == null) { |
| ensurePackIsMutable(); |
| pack_.add(builderForValue.build()); |
| onChanged(); |
| } else { |
| packBuilder_.addMessage(builderForValue.build()); |
| } |
| return this; |
| } |
| public Builder addPack( |
| int index, org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.Builder builderForValue) { |
| if (packBuilder_ == null) { |
| ensurePackIsMutable(); |
| pack_.add(index, builderForValue.build()); |
| onChanged(); |
| } else { |
| packBuilder_.addMessage(index, builderForValue.build()); |
| } |
| return this; |
| } |
| public Builder addAllPack( |
| java.lang.Iterable<? extends org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo> values) { |
| if (packBuilder_ == null) { |
| ensurePackIsMutable(); |
| super.addAll(values, pack_); |
| onChanged(); |
| } else { |
| packBuilder_.addAllMessages(values); |
| } |
| return this; |
| } |
| public Builder clearPack() { |
| if (packBuilder_ == null) { |
| pack_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| onChanged(); |
| } else { |
| packBuilder_.clear(); |
| } |
| return this; |
| } |
| public Builder removePack(int index) { |
| if (packBuilder_ == null) { |
| ensurePackIsMutable(); |
| pack_.remove(index); |
| onChanged(); |
| } else { |
| packBuilder_.remove(index); |
| } |
| return this; |
| } |
| public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.Builder getPackBuilder( |
| int index) { |
| return getPackFieldBuilder().getBuilder(index); |
| } |
| public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfoOrBuilder getPackOrBuilder( |
| int index) { |
| if (packBuilder_ == null) { |
| return pack_.get(index); } else { |
| return packBuilder_.getMessageOrBuilder(index); |
| } |
| } |
| public java.util.List<? extends org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfoOrBuilder> |
| getPackOrBuilderList() { |
| if (packBuilder_ != null) { |
| return packBuilder_.getMessageOrBuilderList(); |
| } else { |
| return java.util.Collections.unmodifiableList(pack_); |
| } |
| } |
| public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.Builder addPackBuilder() { |
| return getPackFieldBuilder().addBuilder( |
| org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.getDefaultInstance()); |
| } |
| public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.Builder addPackBuilder( |
| int index) { |
| return getPackFieldBuilder().addBuilder( |
| index, org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.getDefaultInstance()); |
| } |
| public java.util.List<org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.Builder> |
| getPackBuilderList() { |
| return getPackFieldBuilder().getBuilderList(); |
| } |
| private com.google.protobuf.RepeatedFieldBuilder< |
| org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo, org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfoOrBuilder> |
| getPackFieldBuilder() { |
| if (packBuilder_ == null) { |
| packBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< |
| org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo, org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfoOrBuilder>( |
| pack_, |
| ((bitField0_ & 0x00000001) == 0x00000001), |
| getParentForChildren(), |
| isClean()); |
| pack_ = null; |
| } |
| return packBuilder_; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.eclipse.jgit.storage.dht.CachedPackInfoList) |
| } |
| |
| static { |
| defaultInstance = new CachedPackInfoList(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.eclipse.jgit.storage.dht.CachedPackInfoList) |
| } |
| |
| public interface CachedChunkOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required bytes data = 1; |
| boolean hasData(); |
| com.google.protobuf.ByteString getData(); |
| |
| // optional bytes index = 2; |
| boolean hasIndex(); |
| com.google.protobuf.ByteString getIndex(); |
| |
| // optional .org.eclipse.jgit.storage.dht.ChunkMeta meta = 3; |
| boolean hasMeta(); |
| org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta getMeta(); |
| org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMetaOrBuilder getMetaOrBuilder(); |
| } |
| public static final class CachedChunk extends |
| com.google.protobuf.GeneratedMessage |
| implements CachedChunkOrBuilder { |
| // Use CachedChunk.newBuilder() to construct. |
| private CachedChunk(Builder builder) { |
| super(builder); |
| } |
| private CachedChunk(boolean noInit) {} |
| |
| private static final CachedChunk defaultInstance; |
| public static CachedChunk getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CachedChunk getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.eclipse.jgit.generated.storage.dht.proto.GitCache.internal_static_org_eclipse_jgit_storage_dht_CachedChunk_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.eclipse.jgit.generated.storage.dht.proto.GitCache.internal_static_org_eclipse_jgit_storage_dht_CachedChunk_fieldAccessorTable; |
| } |
| |
| private int bitField0_; |
| // required bytes data = 1; |
| public static final int DATA_FIELD_NUMBER = 1; |
| private com.google.protobuf.ByteString data_; |
| public boolean hasData() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public com.google.protobuf.ByteString getData() { |
| return data_; |
| } |
| |
| // optional bytes index = 2; |
| public static final int INDEX_FIELD_NUMBER = 2; |
| private com.google.protobuf.ByteString index_; |
| public boolean hasIndex() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public com.google.protobuf.ByteString getIndex() { |
| return index_; |
| } |
| |
| // optional .org.eclipse.jgit.storage.dht.ChunkMeta meta = 3; |
| public static final int META_FIELD_NUMBER = 3; |
| private org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta meta_; |
| public boolean hasMeta() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta getMeta() { |
| return meta_; |
| } |
| public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMetaOrBuilder getMetaOrBuilder() { |
| return meta_; |
| } |
| |
| private void initFields() { |
| data_ = com.google.protobuf.ByteString.EMPTY; |
| index_ = com.google.protobuf.ByteString.EMPTY; |
| meta_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.getDefaultInstance(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasData()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (hasMeta()) { |
| if (!getMeta().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, data_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeBytes(2, index_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeMessage(3, meta_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(1, data_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(2, index_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(3, meta_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| @java.lang.Override |
| protected Object writeReplace() throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @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.CachedChunk)) { |
| return super.equals(obj); |
| } |
| org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk other = (org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk) obj; |
| |
| boolean result = true; |
| result = result && (hasData() == other.hasData()); |
| if (hasData()) { |
| result = result && getData() |
| .equals(other.getData()); |
| } |
| result = result && (hasIndex() == other.hasIndex()); |
| if (hasIndex()) { |
| result = result && getIndex() |
| .equals(other.getIndex()); |
| } |
| result = result && (hasMeta() == other.hasMeta()); |
| if (hasMeta()) { |
| result = result && getMeta() |
| .equals(other.getMeta()); |
| } |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| @java.lang.Override |
| public int hashCode() { |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (hasData()) { |
| hash = (37 * hash) + DATA_FIELD_NUMBER; |
| hash = (53 * hash) + getData().hashCode(); |
| } |
| if (hasIndex()) { |
| hash = (37 * hash) + INDEX_FIELD_NUMBER; |
| hash = (53 * hash) + getIndex().hashCode(); |
| } |
| if (hasMeta()) { |
| hash = (37 * hash) + META_FIELD_NUMBER; |
| hash = (53 * hash) + getMeta().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| return hash; |
| } |
| |
| public static org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk parseFrom( |
| com.google.protobuf.ByteString 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.CachedChunk parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk 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.CachedChunk parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk 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.CachedChunk 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.CachedChunk 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.CachedChunk parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunkOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.eclipse.jgit.generated.storage.dht.proto.GitCache.internal_static_org_eclipse_jgit_storage_dht_CachedChunk_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.eclipse.jgit.generated.storage.dht.proto.GitCache.internal_static_org_eclipse_jgit_storage_dht_CachedChunk_fieldAccessorTable; |
| } |
| |
| // Construct using org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| getMetaFieldBuilder(); |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| data_ = com.google.protobuf.ByteString.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| index_ = com.google.protobuf.ByteString.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| if (metaBuilder_ == null) { |
| meta_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.getDefaultInstance(); |
| } else { |
| metaBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000004); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk.getDescriptor(); |
| } |
| |
| public org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk getDefaultInstanceForType() { |
| return org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk.getDefaultInstance(); |
| } |
| |
| public org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk build() { |
| org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk buildPartial() { |
| org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk result = new org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.data_ = data_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.index_ = index_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| if (metaBuilder_ == null) { |
| result.meta_ = meta_; |
| } else { |
| result.meta_ = metaBuilder_.build(); |
| } |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk) { |
| return mergeFrom((org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk other) { |
| if (other == org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk.getDefaultInstance()) return this; |
| if (other.hasData()) { |
| setData(other.getData()); |
| } |
| if (other.hasIndex()) { |
| setIndex(other.getIndex()); |
| } |
| if (other.hasMeta()) { |
| mergeMeta(other.getMeta()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasData()) { |
| |
| return false; |
| } |
| if (hasMeta()) { |
| if (!getMeta().isInitialized()) { |
| |
| return false; |
| } |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| com.google.protobuf.UnknownFieldSet.Builder unknownFields = |
| com.google.protobuf.UnknownFieldSet.newBuilder( |
| this.getUnknownFields()); |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| data_ = input.readBytes(); |
| break; |
| } |
| case 18: { |
| bitField0_ |= 0x00000002; |
| index_ = input.readBytes(); |
| break; |
| } |
| case 26: { |
| org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.Builder subBuilder = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.newBuilder(); |
| if (hasMeta()) { |
| subBuilder.mergeFrom(getMeta()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setMeta(subBuilder.buildPartial()); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required bytes data = 1; |
| private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; |
| public boolean hasData() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public com.google.protobuf.ByteString getData() { |
| return data_; |
| } |
| public Builder setData(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| data_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearData() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| data_ = getDefaultInstance().getData(); |
| onChanged(); |
| return this; |
| } |
| |
| // optional bytes index = 2; |
| private com.google.protobuf.ByteString index_ = com.google.protobuf.ByteString.EMPTY; |
| public boolean hasIndex() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public com.google.protobuf.ByteString getIndex() { |
| return index_; |
| } |
| public Builder setIndex(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| index_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearIndex() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| index_ = getDefaultInstance().getIndex(); |
| onChanged(); |
| return this; |
| } |
| |
| // optional .org.eclipse.jgit.storage.dht.ChunkMeta meta = 3; |
| private org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta meta_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMetaOrBuilder> metaBuilder_; |
| public boolean hasMeta() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta getMeta() { |
| if (metaBuilder_ == null) { |
| return meta_; |
| } else { |
| return metaBuilder_.getMessage(); |
| } |
| } |
| public Builder setMeta(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta value) { |
| if (metaBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| meta_ = value; |
| onChanged(); |
| } else { |
| metaBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000004; |
| return this; |
| } |
| public Builder setMeta( |
| org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.Builder builderForValue) { |
| if (metaBuilder_ == null) { |
| meta_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| metaBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000004; |
| return this; |
| } |
| public Builder mergeMeta(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta value) { |
| if (metaBuilder_ == null) { |
| if (((bitField0_ & 0x00000004) == 0x00000004) && |
| meta_ != org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.getDefaultInstance()) { |
| meta_ = |
| org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.newBuilder(meta_).mergeFrom(value).buildPartial(); |
| } else { |
| meta_ = value; |
| } |
| onChanged(); |
| } else { |
| metaBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000004; |
| return this; |
| } |
| public Builder clearMeta() { |
| if (metaBuilder_ == null) { |
| meta_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.getDefaultInstance(); |
| onChanged(); |
| } else { |
| metaBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000004); |
| return this; |
| } |
| public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.Builder getMetaBuilder() { |
| bitField0_ |= 0x00000004; |
| onChanged(); |
| return getMetaFieldBuilder().getBuilder(); |
| } |
| public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMetaOrBuilder getMetaOrBuilder() { |
| if (metaBuilder_ != null) { |
| return metaBuilder_.getMessageOrBuilder(); |
| } else { |
| return meta_; |
| } |
| } |
| private com.google.protobuf.SingleFieldBuilder< |
| org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMetaOrBuilder> |
| getMetaFieldBuilder() { |
| if (metaBuilder_ == null) { |
| metaBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMetaOrBuilder>( |
| meta_, |
| getParentForChildren(), |
| isClean()); |
| meta_ = null; |
| } |
| return metaBuilder_; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.eclipse.jgit.storage.dht.CachedChunk) |
| } |
| |
| static { |
| defaultInstance = new CachedChunk(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.eclipse.jgit.storage.dht.CachedChunk) |
| } |
| |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_eclipse_jgit_storage_dht_CachedObjectIndex_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_eclipse_jgit_storage_dht_CachedObjectIndex_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_eclipse_jgit_storage_dht_CachedObjectIndex_Item_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_eclipse_jgit_storage_dht_CachedObjectIndex_Item_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_eclipse_jgit_storage_dht_CachedPackInfoList_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_eclipse_jgit_storage_dht_CachedPackInfoList_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_eclipse_jgit_storage_dht_CachedChunk_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_eclipse_jgit_storage_dht_CachedChunk_fieldAccessorTable; |
| |
| public static com.google.protobuf.Descriptors.FileDescriptor |
| getDescriptor() { |
| return descriptor; |
| } |
| private static com.google.protobuf.Descriptors.FileDescriptor |
| descriptor; |
| static { |
| java.lang.String[] descriptorData = { |
| "\n,org/eclipse/jgit/storage/dht/git_cache" + |
| ".proto\022\034org.eclipse.jgit.storage.dht\032,or" + |
| "g/eclipse/jgit/storage/dht/git_store.pro" + |
| "to\"\277\001\n\021CachedObjectIndex\022B\n\004item\030\001 \003(\01324" + |
| ".org.eclipse.jgit.storage.dht.CachedObje" + |
| "ctIndex.Item\032f\n\004Item\022\021\n\tchunk_key\030\001 \002(\t\022" + |
| "=\n\013object_info\030\002 \002(\0132(.org.eclipse.jgit." + |
| "storage.dht.ObjectInfo\022\014\n\004time\030\003 \001(\006\"P\n\022" + |
| "CachedPackInfoList\022:\n\004pack\030\001 \003(\0132,.org.e" + |
| "clipse.jgit.storage.dht.CachedPackInfo\"a", |
| "\n\013CachedChunk\022\014\n\004data\030\001 \002(\014\022\r\n\005index\030\002 \001" + |
| "(\014\0225\n\004meta\030\003 \001(\0132\'.org.eclipse.jgit.stor" + |
| "age.dht.ChunkMetaB1\n,org.eclipse.jgit.ge" + |
| "nerated.storage.dht.proto\240\001\001" |
| }; |
| com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = |
| new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { |
| public com.google.protobuf.ExtensionRegistry assignDescriptors( |
| com.google.protobuf.Descriptors.FileDescriptor root) { |
| descriptor = root; |
| internal_static_org_eclipse_jgit_storage_dht_CachedObjectIndex_descriptor = |
| getDescriptor().getMessageTypes().get(0); |
| internal_static_org_eclipse_jgit_storage_dht_CachedObjectIndex_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_eclipse_jgit_storage_dht_CachedObjectIndex_descriptor, |
| new java.lang.String[] { "Item", }, |
| org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.class, |
| org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Builder.class); |
| internal_static_org_eclipse_jgit_storage_dht_CachedObjectIndex_Item_descriptor = |
| internal_static_org_eclipse_jgit_storage_dht_CachedObjectIndex_descriptor.getNestedTypes().get(0); |
| internal_static_org_eclipse_jgit_storage_dht_CachedObjectIndex_Item_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_eclipse_jgit_storage_dht_CachedObjectIndex_Item_descriptor, |
| new java.lang.String[] { "ChunkKey", "ObjectInfo", "Time", }, |
| org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.class, |
| org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.Builder.class); |
| internal_static_org_eclipse_jgit_storage_dht_CachedPackInfoList_descriptor = |
| getDescriptor().getMessageTypes().get(1); |
| internal_static_org_eclipse_jgit_storage_dht_CachedPackInfoList_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_eclipse_jgit_storage_dht_CachedPackInfoList_descriptor, |
| new java.lang.String[] { "Pack", }, |
| org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedPackInfoList.class, |
| org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedPackInfoList.Builder.class); |
| internal_static_org_eclipse_jgit_storage_dht_CachedChunk_descriptor = |
| getDescriptor().getMessageTypes().get(2); |
| internal_static_org_eclipse_jgit_storage_dht_CachedChunk_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_eclipse_jgit_storage_dht_CachedChunk_descriptor, |
| new java.lang.String[] { "Data", "Index", "Meta", }, |
| org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk.class, |
| org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedChunk.Builder.class); |
| return null; |
| } |
| }; |
| com.google.protobuf.Descriptors.FileDescriptor |
| .internalBuildGeneratedFileFrom(descriptorData, |
| new com.google.protobuf.Descriptors.FileDescriptor[] { |
| org.eclipse.jgit.generated.storage.dht.proto.GitStore.getDescriptor(), |
| }, assigner); |
| } |
| |
| // @@protoc_insertion_point(outer_class_scope) |
| } |