Codota Logo
GitCache$CachedObjectIndex$Item
Code IndexAdd Codota to your IDE (free)

How to use
GitCache$CachedObjectIndex$Item
in
org.eclipse.jgit.generated.storage.dht.proto

Best Java code snippets using org.eclipse.jgit.generated.storage.dht.proto.GitCache$CachedObjectIndex$Item (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: com.madgag/org.eclipse.jgit.generated.storage.dht.proto

@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;
}
origin: com.madgag/org.eclipse.jgit.generated.storage.dht.proto

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;
}
origin: org.eclipse.jgit/org.eclipse.jgit.generated.storage.dht.proto

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);
}
origin: org.eclipse.jgit/org.eclipse.jgit.generated.storage.dht.proto

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>
origin: org.eclipse.jgit/org.eclipse.jgit.generated.storage.dht.proto

public com.google.protobuf.Descriptors.Descriptor
  getDescriptorForType() {
 return org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.getDescriptor();
}
origin: org.eclipse.jgit/org.eclipse.jgit.generated.storage.dht.proto

public org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item getDefaultInstanceForType() {
 return org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.getDefaultInstance();
}
origin: com.madgag/org.eclipse.jgit.generated.storage.dht.proto

public org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item getDefaultInstanceForType() {
 return org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.getDefaultInstance();
}
origin: com.madgag/org.eclipse.jgit.generated.storage.dht.proto

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>
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

private Collection<ObjectInfo> decode(byte[] value)
    throws InvalidProtocolBufferException {
  CachedObjectIndex cacheEntry = CachedObjectIndex.parseFrom(value);
  int sz = cacheEntry.getItemCount();
  ObjectInfo[] r = new ObjectInfo[sz];
  for (int i = 0; i < sz; i++) {
    CachedObjectIndex.Item item = cacheEntry.getItem(i);
    r[i] = new ObjectInfo(
        ChunkKey.fromString(item.getChunkKey()),
        item.getTime(),
        item.getObjectInfo());
  }
  return Arrays.asList(r);
}
origin: com.madgag/org.eclipse.jgit.storage.dht

private Collection<ObjectInfo> decode(byte[] value)
    throws InvalidProtocolBufferException {
  CachedObjectIndex cacheEntry = CachedObjectIndex.parseFrom(value);
  int sz = cacheEntry.getItemCount();
  ObjectInfo[] r = new ObjectInfo[sz];
  for (int i = 0; i < sz; i++) {
    CachedObjectIndex.Item item = cacheEntry.getItem(i);
    r[i] = new ObjectInfo(
        ChunkKey.fromString(item.getChunkKey()),
        item.getTime(),
        item.getObjectInfo());
  }
  return Arrays.asList(r);
}
origin: org.eclipse.jgit/org.eclipse.jgit.generated.storage.dht.proto

@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;
}
origin: org.eclipse.jgit/org.eclipse.jgit.generated.storage.dht.proto

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;
}
origin: org.eclipse.jgit/org.eclipse.jgit.generated.storage.dht.proto

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;
}
origin: org.eclipse.jgit/org.eclipse.jgit.generated.storage.dht.proto

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;
}
origin: com.madgag/org.eclipse.jgit.generated.storage.dht.proto

public com.google.protobuf.Descriptors.Descriptor
  getDescriptorForType() {
 return org.eclipse.jgit.generated.storage.dht.proto.GitCache.CachedObjectIndex.Item.getDescriptor();
}
origin: com.madgag/org.eclipse.jgit.generated.storage.dht.proto

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;
}
origin: com.madgag/org.eclipse.jgit.generated.storage.dht.proto

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;
}
origin: com.madgag/org.eclipse.jgit.generated.storage.dht.proto

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;
}
origin: org.eclipse.jgit/org.eclipse.jgit.generated.storage.dht.proto

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(
origin: com.madgag/org.eclipse.jgit.generated.storage.dht.proto

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(
org.eclipse.jgit.generated.storage.dht.protoGitCache$CachedObjectIndex$Item

Most used methods

  • getChunkKey
  • getObjectInfo
  • getTime
  • <init>
  • getChunkKeyBytes
  • getDefaultInstance
  • getDescriptor
  • getDescriptorForType
  • getSerializedSize
  • getUnknownFields
  • hasChunkKey
  • hasObjectInfo
  • hasChunkKey,
  • hasObjectInfo,
  • hasTime,
  • hashLong,
  • isInitialized,
  • newBuilder

Popular in Java

  • Making http requests using okhttp
  • setScale (BigDecimal)
  • findViewById (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JTable (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now