Tabnine Logo
org.apache.bookkeeper.mledger.proto
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.bookkeeper.mledger.proto

Best Java code snippets using org.apache.bookkeeper.mledger.proto (Showing top 20 results out of 315)

origin: apache/pulsar

public static String getOffloadDriverName(LedgerInfo ledgerInfo, String defaultDriverName) {
  if (ledgerInfo.hasOffloadContext()) {
    OffloadContext ctx = ledgerInfo.getOffloadContext();
    if (ctx.hasDriverMetadata()) {
      OffloadDriverMetadata driverMetadata = ctx.getDriverMetadata();
      if (driverMetadata.hasName()) {
        return driverMetadata.getName();
      }
    }
  }
  return defaultDriverName;
}
origin: apache/pulsar

public org.apache.bookkeeper.mledger.proto.MLDataFormats.ManagedLedgerInfo build() {
 org.apache.bookkeeper.mledger.proto.MLDataFormats.ManagedLedgerInfo result = buildPartial();
 if (!result.isInitialized()) {
  throw newUninitializedMessageException(result);
 }
 return result;
}
origin: apache/pulsar

public org.apache.bookkeeper.mledger.proto.MLDataFormats.PositionInfo build() {
 org.apache.bookkeeper.mledger.proto.MLDataFormats.PositionInfo result = buildPartial();
 if (!result.isInitialized()) {
  throw newUninitializedMessageException(result);
 }
 return result;
}
origin: apache/pulsar

public Builder mergeFrom(org.apache.bookkeeper.mledger.proto.MLDataFormats.NestedPositionInfo other) {
 if (other == org.apache.bookkeeper.mledger.proto.MLDataFormats.NestedPositionInfo.getDefaultInstance()) return this;
 if (other.hasLedgerId()) {
  setLedgerId(other.getLedgerId());
 }
 if (other.hasEntryId()) {
  setEntryId(other.getEntryId());
 }
 this.mergeUnknownFields(other.unknownFields);
 onChanged();
 return this;
}
origin: apache/pulsar

public Builder mergeFrom(org.apache.bookkeeper.mledger.proto.MLDataFormats.MessageRange other) {
 if (other == org.apache.bookkeeper.mledger.proto.MLDataFormats.MessageRange.getDefaultInstance()) return this;
 if (other.hasLowerEndpoint()) {
  mergeLowerEndpoint(other.getLowerEndpoint());
 }
 if (other.hasUpperEndpoint()) {
  mergeUpperEndpoint(other.getUpperEndpoint());
 }
 this.mergeUnknownFields(other.unknownFields);
 onChanged();
 return this;
}
origin: apache/pulsar

public final boolean isInitialized() {
 for (int i = 0; i < getLedgerInfoCount(); i++) {
  if (!getLedgerInfo(i).isInitialized()) {
   return false;
  }
 }
 if (hasTerminatedPosition()) {
  if (!getTerminatedPosition().isInitialized()) {
   return false;
  }
 }
 return true;
}
origin: apache/pulsar

public org.apache.bookkeeper.mledger.proto.MLDataFormats.MessageRange build() {
 org.apache.bookkeeper.mledger.proto.MLDataFormats.MessageRange result = buildPartial();
 if (!result.isInitialized()) {
  throw newUninitializedMessageException(result);
 }
 return result;
}
origin: apache/pulsar

public org.apache.bookkeeper.mledger.proto.MLDataFormats.NestedPositionInfo build() {
 org.apache.bookkeeper.mledger.proto.MLDataFormats.NestedPositionInfo result = buildPartial();
 if (!result.isInitialized()) {
  throw newUninitializedMessageException(result);
 }
 return result;
}
origin: apache/pulsar

public org.apache.bookkeeper.mledger.proto.MLDataFormats.ManagedLedgerInfo.LedgerInfo build() {
 org.apache.bookkeeper.mledger.proto.MLDataFormats.ManagedLedgerInfo.LedgerInfo result = buildPartial();
 if (!result.isInitialized()) {
  throw newUninitializedMessageException(result);
 }
 return result;
}
origin: apache/pulsar

public org.apache.bookkeeper.mledger.proto.MLDataFormats.ManagedCursorInfo build() {
 org.apache.bookkeeper.mledger.proto.MLDataFormats.ManagedCursorInfo result = buildPartial();
 if (!result.isInitialized()) {
  throw newUninitializedMessageException(result);
 }
 return result;
}
origin: apache/pulsar

public final boolean isInitialized() {
 if (!hasLedgerId()) {
  return false;
 }
 if (hasOffloadContext()) {
  if (!getOffloadContext().isInitialized()) {
   return false;
  }
 }
 return true;
}
origin: apache/pulsar

public final boolean isInitialized() {
 if (!hasName()) {
  return false;
 }
 for (int i = 0; i < getPropertiesCount(); i++) {
  if (!getProperties(i).isInitialized()) {
   return false;
  }
 }
 return true;
}
origin: apache/pulsar

/**
 * <code>required string value = 2;</code>
 */
public Builder clearValue() {
 bitField0_ = (bitField0_ & ~0x00000002);
 value_ = getDefaultInstance().getValue();
 onChanged();
 return this;
}
/**
origin: apache/pulsar

/**
 * <code>required string name = 1;</code>
 */
public Builder clearName() {
 bitField0_ = (bitField0_ & ~0x00000001);
 name_ = getDefaultInstance().getName();
 onChanged();
 return this;
}
/**
origin: apache/pulsar

/**
 * <code>required string name = 1;</code>
 */
public Builder clearName() {
 bitField0_ = (bitField0_ & ~0x00000001);
 name_ = getDefaultInstance().getName();
 onChanged();
 return this;
}
/**
origin: apache/pulsar

public org.apache.bookkeeper.mledger.proto.MLDataFormats.OffloadContext build() {
 org.apache.bookkeeper.mledger.proto.MLDataFormats.OffloadContext result = buildPartial();
 if (!result.isInitialized()) {
  throw newUninitializedMessageException(result);
 }
 return result;
}
origin: apache/pulsar

/**
 * <code>required string key = 1;</code>
 */
public Builder clearKey() {
 bitField0_ = (bitField0_ & ~0x00000001);
 key_ = getDefaultInstance().getKey();
 onChanged();
 return this;
}
/**
origin: apache/pulsar

public org.apache.bookkeeper.mledger.proto.MLDataFormats.OffloadDriverMetadata build() {
 org.apache.bookkeeper.mledger.proto.MLDataFormats.OffloadDriverMetadata result = buildPartial();
 if (!result.isInitialized()) {
  throw newUninitializedMessageException(result);
 }
 return result;
}
origin: apache/pulsar

public org.apache.bookkeeper.mledger.proto.MLDataFormats.KeyValue build() {
 org.apache.bookkeeper.mledger.proto.MLDataFormats.KeyValue result = buildPartial();
 if (!result.isInitialized()) {
  throw newUninitializedMessageException(result);
 }
 return result;
}
origin: apache/pulsar

public org.apache.bookkeeper.mledger.proto.MLDataFormats.LongProperty build() {
 org.apache.bookkeeper.mledger.proto.MLDataFormats.LongProperty result = buildPartial();
 if (!result.isInitialized()) {
  throw newUninitializedMessageException(result);
 }
 return result;
}
org.apache.bookkeeper.mledger.proto

Most used classes

  • MLDataFormats$ManagedLedgerInfo$LedgerInfo
    Protobuf type ManagedLedgerInfo.LedgerInfo
  • MLDataFormats$ManagedCursorInfo$Builder
    Protobuf type ManagedCursorInfo
  • MLDataFormats$ManagedCursorInfo
    Protobuf type ManagedCursorInfo
  • MLDataFormats$ManagedLedgerInfo$Builder
    Protobuf type ManagedLedgerInfo
  • MLDataFormats$ManagedLedgerInfo$LedgerInfo$Builder
    Protobuf type ManagedLedgerInfo.LedgerInfo
  • MLDataFormats$OffloadContext,
  • MLDataFormats$PositionInfo,
  • MLDataFormats$MessageRange$Builder,
  • MLDataFormats$MessageRange,
  • MLDataFormats$NestedPositionInfo$Builder,
  • MLDataFormats$NestedPositionInfo,
  • MLDataFormats$PositionInfo$Builder,
  • MLDataFormats,
  • PendingBookieOpsStats,
  • MLDataFormats$KeyValue$Builder,
  • MLDataFormats$KeyValue,
  • MLDataFormats$LongProperty$Builder,
  • MLDataFormats$LongProperty,
  • MLDataFormats$OffloadContext$Builder
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