Codota Logo
GitStore$ObjectInfo$ObjectType
Code IndexAdd Codota to your IDE (free)

How to use
GitStore$ObjectInfo$ObjectType
in
org.eclipse.jgit.generated.storage.dht.proto

Best Java code snippets using org.eclipse.jgit.generated.storage.dht.proto.GitStore$ObjectInfo$ObjectType (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
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.writeEnum(1, objectType_.getNumber());
 }
 if (((bitField0_ & 0x00000002) == 0x00000002)) {
  output.writeInt32(2, offset_);
 }
 if (((bitField0_ & 0x00000004) == 0x00000004)) {
  output.writeInt64(3, packedSize_);
 }
 if (((bitField0_ & 0x00000008) == 0x00000008)) {
  output.writeInt64(4, inflatedSize_);
 }
 if (((bitField0_ & 0x00000010) == 0x00000010)) {
  output.writeBytes(5, deltaBase_);
 }
 if (((bitField0_ & 0x00000020) == 0x00000020)) {
  output.writeBool(6, isFragmented_);
 }
 getUnknownFields().writeTo(output);
}
origin: org.eclipse.jgit/org.eclipse.jgit.generated.storage.dht.proto

org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.ObjectType value = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.ObjectType.valueOf(rawValue);
if (value == null) {
 unknownFields.mergeVarintField(1, rawValue);
origin: com.madgag/org.eclipse.jgit.generated.storage.dht.proto

public static ObjectType valueOf(
  com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
 if (desc.getType() != getDescriptor()) {
  throw new java.lang.IllegalArgumentException(
   "EnumValueDescriptor is not for this type.");
 }
 return VALUES[desc.getIndex()];
}
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

  ObjectInfo link(ChunkKey key) {
    GitStore.ObjectInfo.Builder b = GitStore.ObjectInfo.newBuilder();
    b.setObjectType(ObjectType.valueOf(type));
    b.setOffset((int) getOffset());
    b.setPackedSize(packed);
    b.setInflatedSize(inflated);
    return new ObjectInfo(key, b.build());
  }
}
origin: org.eclipse.jgit/org.eclipse.jgit.generated.storage.dht.proto

public final com.google.protobuf.Descriptors.EnumDescriptor
  getDescriptorForType() {
 return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
origin: com.madgag/org.eclipse.jgit.generated.storage.dht.proto

public final com.google.protobuf.Descriptors.EnumDescriptor
  getDescriptorForType() {
 return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
origin: com.madgag/org.eclipse.jgit.storage.dht

/** @return type of the object, in OBJ_* constants. */
public int getType() {
  return data.getObjectType().getNumber();
}
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

/** @return type of the object, in OBJ_* constants. */
public int getType() {
  return data.getObjectType().getNumber();
}
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

  ObjectInfo info(ChunkKey chunkKey) {
    GitStore.ObjectInfo.Builder b = GitStore.ObjectInfo.newBuilder();
    b.setObjectType(GitStore.ObjectInfo.ObjectType.valueOf(getType()));
    b.setOffset(offsetOf(chunkPtr));
    b.setPackedSize(packedSize);
    b.setInflatedSize(inflatedSize);
    if (base != null) {
      byte[] t = new byte[Constants.OBJECT_ID_LENGTH];
      base.copyRawTo(t, 0);
      b.setDeltaBase(ByteString.copyFrom(t));
    }
    if (isFragmented())
      b.setIsFragmented(true);
    return new ObjectInfo(chunkKey, b.build());
  }
}
origin: com.madgag/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.writeEnum(1, objectType_.getNumber());
 }
 if (((bitField0_ & 0x00000002) == 0x00000002)) {
  output.writeInt32(2, offset_);
 }
 if (((bitField0_ & 0x00000004) == 0x00000004)) {
  output.writeInt64(3, packedSize_);
 }
 if (((bitField0_ & 0x00000008) == 0x00000008)) {
  output.writeInt64(4, inflatedSize_);
 }
 if (((bitField0_ & 0x00000010) == 0x00000010)) {
  output.writeBytes(5, deltaBase_);
 }
 if (((bitField0_ & 0x00000020) == 0x00000020)) {
  output.writeBool(6, isFragmented_);
 }
 getUnknownFields().writeTo(output);
}
origin: org.eclipse.jgit/org.eclipse.jgit.generated.storage.dht.proto

if (((bitField0_ & 0x00000001) == 0x00000001)) {
 size += com.google.protobuf.CodedOutputStream
  .computeEnumSize(1, objectType_.getNumber());
origin: com.madgag/org.eclipse.jgit.generated.storage.dht.proto

if (((bitField0_ & 0x00000001) == 0x00000001)) {
 size += com.google.protobuf.CodedOutputStream
  .computeEnumSize(1, objectType_.getNumber());
origin: org.eclipse.jgit/org.eclipse.jgit.generated.storage.dht.proto

public final com.google.protobuf.Descriptors.EnumValueDescriptor
  getValueDescriptor() {
 return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
origin: org.eclipse.jgit/org.eclipse.jgit.generated.storage.dht.proto

public static ObjectType valueOf(
  com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
 if (desc.getType() != getDescriptor()) {
  throw new java.lang.IllegalArgumentException(
   "EnumValueDescriptor is not for this type.");
 }
 return VALUES[desc.getIndex()];
}
origin: com.madgag/org.eclipse.jgit.generated.storage.dht.proto

org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.ObjectType value = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.ObjectType.valueOf(rawValue);
if (value == null) {
 unknownFields.mergeVarintField(1, rawValue);
origin: com.madgag/org.eclipse.jgit.storage.dht

  ObjectInfo link(ChunkKey key) {
    GitStore.ObjectInfo.Builder b = GitStore.ObjectInfo.newBuilder();
    b.setObjectType(ObjectType.valueOf(type));
    b.setOffset((int) getOffset());
    b.setPackedSize(packed);
    b.setInflatedSize(inflated);
    return new ObjectInfo(key, b.build());
  }
}
origin: com.madgag/org.eclipse.jgit.storage.dht

    b.setObjectType(ObjectType.valueOf(type));
    b.setOffset(position);
    b.setPackedSize(packedSize);
b.setObjectType(ObjectType.valueOf(type));
b.setOffset(position);
b.setPackedSize(packedSize);
origin: com.madgag/org.eclipse.jgit.generated.storage.dht.proto

public final com.google.protobuf.Descriptors.EnumValueDescriptor
  getValueDescriptor() {
 return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

    b.setObjectType(ObjectType.valueOf(type));
    b.setOffset(position);
    b.setPackedSize(packedSize);
b.setObjectType(ObjectType.valueOf(type));
b.setOffset(position);
b.setPackedSize(packedSize);
origin: com.madgag/org.eclipse.jgit.storage.dht

  ObjectInfo info(ChunkKey chunkKey) {
    GitStore.ObjectInfo.Builder b = GitStore.ObjectInfo.newBuilder();
    b.setObjectType(GitStore.ObjectInfo.ObjectType.valueOf(getType()));
    b.setOffset(offsetOf(chunkPtr));
    b.setPackedSize(packedSize);
    b.setInflatedSize(inflatedSize);
    if (base != null) {
      byte[] t = new byte[Constants.OBJECT_ID_LENGTH];
      base.copyRawTo(t, 0);
      b.setDeltaBase(ByteString.copyFrom(t));
    }
    if (isFragmented())
      b.setIsFragmented(true);
    return new ObjectInfo(chunkKey, b.build());
  }
}
org.eclipse.jgit.generated.storage.dht.protoGitStore$ObjectInfo$ObjectType

Most used methods

  • getNumber
  • valueOf
  • getDescriptor

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • setScale (BigDecimal)
  • startActivity (Activity)
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
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