Tabnine Logo
MLDataFormats$PositionInfo.hasLedgerId
Code IndexAdd Tabnine to your IDE (free)

How to use
hasLedgerId
method
in
org.apache.bookkeeper.mledger.proto.MLDataFormats$PositionInfo

Best Java code snippets using org.apache.bookkeeper.mledger.proto.MLDataFormats$PositionInfo.hasLedgerId (Showing top 10 results out of 315)

origin: apache/pulsar

public Builder mergeFrom(org.apache.bookkeeper.mledger.proto.MLDataFormats.PositionInfo other) {
 if (other == org.apache.bookkeeper.mledger.proto.MLDataFormats.PositionInfo.getDefaultInstance()) return this;
 if (other.hasLedgerId()) {
  setLedgerId(other.getLedgerId());
origin: apache/pulsar

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 if (hasLedgerId()) {
  hash = (37 * hash) + LEDGERID_FIELD_NUMBER;
  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
    getLedgerId());
 }
 if (hasEntryId()) {
  hash = (37 * hash) + ENTRYID_FIELD_NUMBER;
  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
    getEntryId());
 }
 if (getIndividualDeletedMessagesCount() > 0) {
  hash = (37 * hash) + INDIVIDUALDELETEDMESSAGES_FIELD_NUMBER;
  hash = (53 * hash) + getIndividualDeletedMessagesList().hashCode();
 }
 if (getPropertiesCount() > 0) {
  hash = (37 * hash) + PROPERTIES_FIELD_NUMBER;
  hash = (53 * hash) + getPropertiesList().hashCode();
 }
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}
origin: apache/pulsar

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof org.apache.bookkeeper.mledger.proto.MLDataFormats.PositionInfo)) {
  return super.equals(obj);
 }
 org.apache.bookkeeper.mledger.proto.MLDataFormats.PositionInfo other = (org.apache.bookkeeper.mledger.proto.MLDataFormats.PositionInfo) obj;
 boolean result = true;
 result = result && (hasLedgerId() == other.hasLedgerId());
 if (hasLedgerId()) {
  result = result && (getLedgerId()
    == other.getLedgerId());
 }
 result = result && (hasEntryId() == other.hasEntryId());
 if (hasEntryId()) {
  result = result && (getEntryId()
    == other.getEntryId());
 }
 result = result && getIndividualDeletedMessagesList()
   .equals(other.getIndividualDeletedMessagesList());
 result = result && getPropertiesList()
   .equals(other.getPropertiesList());
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}
origin: org.apache.pulsar/managed-ledger-original

public Builder mergeFrom(org.apache.bookkeeper.mledger.proto.MLDataFormats.PositionInfo other) {
 if (other == org.apache.bookkeeper.mledger.proto.MLDataFormats.PositionInfo.getDefaultInstance()) return this;
 if (other.hasLedgerId()) {
  setLedgerId(other.getLedgerId());
origin: com.yahoo.pulsar/managed-ledger

public Builder mergeFrom(org.apache.bookkeeper.mledger.proto.MLDataFormats.PositionInfo other) {
 if (other == org.apache.bookkeeper.mledger.proto.MLDataFormats.PositionInfo.getDefaultInstance()) return this;
 if (other.hasLedgerId()) {
  setLedgerId(other.getLedgerId());
origin: org.apache.pulsar/managed-ledger-original

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 if (hasLedgerId()) {
  hash = (37 * hash) + LEDGERID_FIELD_NUMBER;
  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
    getLedgerId());
 }
 if (hasEntryId()) {
  hash = (37 * hash) + ENTRYID_FIELD_NUMBER;
  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
    getEntryId());
 }
 if (getIndividualDeletedMessagesCount() > 0) {
  hash = (37 * hash) + INDIVIDUALDELETEDMESSAGES_FIELD_NUMBER;
  hash = (53 * hash) + getIndividualDeletedMessagesList().hashCode();
 }
 if (getPropertiesCount() > 0) {
  hash = (37 * hash) + PROPERTIES_FIELD_NUMBER;
  hash = (53 * hash) + getPropertiesList().hashCode();
 }
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}
origin: org.apache.pulsar/managed-ledger-original

public final boolean isInitialized() {
 byte isInitialized = memoizedIsInitialized;
 if (isInitialized == 1) return true;
 if (isInitialized == 0) return false;
 if (!hasLedgerId()) {
  memoizedIsInitialized = 0;
  return false;
 }
 if (!hasEntryId()) {
  memoizedIsInitialized = 0;
  return false;
 }
 for (int i = 0; i < getIndividualDeletedMessagesCount(); i++) {
  if (!getIndividualDeletedMessages(i).isInitialized()) {
   memoizedIsInitialized = 0;
   return false;
  }
 }
 for (int i = 0; i < getPropertiesCount(); i++) {
  if (!getProperties(i).isInitialized()) {
   memoizedIsInitialized = 0;
   return false;
  }
 }
 memoizedIsInitialized = 1;
 return true;
}
origin: org.apache.pulsar/managed-ledger-original

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof org.apache.bookkeeper.mledger.proto.MLDataFormats.PositionInfo)) {
  return super.equals(obj);
 }
 org.apache.bookkeeper.mledger.proto.MLDataFormats.PositionInfo other = (org.apache.bookkeeper.mledger.proto.MLDataFormats.PositionInfo) obj;
 boolean result = true;
 result = result && (hasLedgerId() == other.hasLedgerId());
 if (hasLedgerId()) {
  result = result && (getLedgerId()
    == other.getLedgerId());
 }
 result = result && (hasEntryId() == other.hasEntryId());
 if (hasEntryId()) {
  result = result && (getEntryId()
    == other.getEntryId());
 }
 result = result && getIndividualDeletedMessagesList()
   .equals(other.getIndividualDeletedMessagesList());
 result = result && getPropertiesList()
   .equals(other.getPropertiesList());
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}
origin: com.yahoo.pulsar/managed-ledger

public final boolean isInitialized() {
 byte isInitialized = memoizedIsInitialized;
 if (isInitialized != -1) return isInitialized == 1;
 
 if (!hasLedgerId()) {
  memoizedIsInitialized = 0;
  return false;
 }
 if (!hasEntryId()) {
  memoizedIsInitialized = 0;
  return false;
 }
 for (int i = 0; i < getIndividualDeletedMessagesCount(); i++) {
  if (!getIndividualDeletedMessages(i).isInitialized()) {
   memoizedIsInitialized = 0;
   return false;
  }
 }
 memoizedIsInitialized = 1;
 return true;
}

origin: apache/pulsar

public final boolean isInitialized() {
 byte isInitialized = memoizedIsInitialized;
 if (isInitialized == 1) return true;
 if (isInitialized == 0) return false;
 if (!hasLedgerId()) {
  memoizedIsInitialized = 0;
  return false;
 }
 if (!hasEntryId()) {
  memoizedIsInitialized = 0;
  return false;
 }
 for (int i = 0; i < getIndividualDeletedMessagesCount(); i++) {
  if (!getIndividualDeletedMessages(i).isInitialized()) {
   memoizedIsInitialized = 0;
   return false;
  }
 }
 for (int i = 0; i < getPropertiesCount(); i++) {
  if (!getProperties(i).isInitialized()) {
   memoizedIsInitialized = 0;
   return false;
  }
 }
 memoizedIsInitialized = 1;
 return true;
}
org.apache.bookkeeper.mledger.protoMLDataFormats$PositionInfohasLedgerId

Javadoc

required int64 ledgerId = 1;

Popular methods of MLDataFormats$PositionInfo

  • getIndividualDeletedMessagesCount
    repeated .MessageRange individualDeletedMessages = 3;
  • parseFrom
  • toByteArray
  • <init>
  • getDefaultInstance
  • getDescriptor
  • getEntryId
    required int64 entryId = 2;
  • getIndividualDeletedMessages
    repeated .MessageRange individualDeletedMessages = 3;
  • getIndividualDeletedMessagesList
    repeated .MessageRange individualDeletedMessages = 3;
  • getLedgerId
    required int64 ledgerId = 1;
  • hasEntryId
    required int64 entryId = 2;
  • isInitialized
  • hasEntryId,
  • isInitialized,
  • newBuilder,
  • getProperties,
  • getPropertiesCount,
  • getPropertiesList,
  • getSerializedSize,
  • getUnknownFields,
  • makeExtensionsImmutable

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSharedPreferences (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setContentView (Activity)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JOptionPane (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now