public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { alluxio.proto.journal.File.NewBlockEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (alluxio.proto.journal.File.NewBlockEntry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof alluxio.proto.journal.File.NewBlockEntry) { return mergeFrom((alluxio.proto.journal.File.NewBlockEntry)other); } else { super.mergeFrom(other); return this; } }
/** * <code>optional .alluxio.proto.journal.NewBlockEntry new_block = 38;</code> */ public Builder mergeNewBlock(alluxio.proto.journal.File.NewBlockEntry value) { if (newBlockBuilder_ == null) { if (((bitField0_ & 0x00008000) == 0x00008000) && newBlock_ != null && newBlock_ != alluxio.proto.journal.File.NewBlockEntry.getDefaultInstance()) { newBlock_ = alluxio.proto.journal.File.NewBlockEntry.newBuilder(newBlock_).mergeFrom(value).buildPartial(); } else { newBlock_ = value; } onChanged(); } else { newBlockBuilder_.mergeFrom(value); } bitField0_ |= 0x00008000; return this; } /**
subBuilder.mergeFrom(newBlock_); newBlock_ = subBuilder.buildPartial();
public static Builder newBuilder(alluxio.proto.journal.File.NewBlockEntry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); }