12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546 |
- // 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)
- }
|