public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { alluxio.proto.journal.Block.BlockInfoEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (alluxio.proto.journal.Block.BlockInfoEntry) 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.Block.BlockInfoEntry) { return mergeFrom((alluxio.proto.journal.Block.BlockInfoEntry)other); } else { super.mergeFrom(other); return this; } }
/** * <code>optional .alluxio.proto.journal.BlockInfoEntry block_info = 4;</code> */ public Builder mergeBlockInfo(alluxio.proto.journal.Block.BlockInfoEntry value) { if (blockInfoBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && blockInfo_ != null && blockInfo_ != alluxio.proto.journal.Block.BlockInfoEntry.getDefaultInstance()) { blockInfo_ = alluxio.proto.journal.Block.BlockInfoEntry.newBuilder(blockInfo_).mergeFrom(value).buildPartial(); } else { blockInfo_ = value; } onChanged(); } else { blockInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /**
subBuilder.mergeFrom(blockInfo_); blockInfo_ = subBuilder.buildPartial();
/** * <code>optional .alluxio.proto.journal.BlockInfoEntry block_info = 4;</code> */ public Builder mergeBlockInfo(alluxio.proto.journal.Block.BlockInfoEntry value) { if (blockInfoBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && blockInfo_ != alluxio.proto.journal.Block.BlockInfoEntry.getDefaultInstance()) { blockInfo_ = alluxio.proto.journal.Block.BlockInfoEntry.newBuilder(blockInfo_).mergeFrom(value).buildPartial(); } else { blockInfo_ = value; } onChanged(); } else { blockInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { alluxio.proto.journal.Block.BlockInfoEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (alluxio.proto.journal.Block.BlockInfoEntry) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
public Builder clone() { return create().mergeFrom(buildPartial()); }
public static Builder newBuilder(alluxio.proto.journal.Block.BlockInfoEntry prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof alluxio.proto.journal.Block.BlockInfoEntry) { return mergeFrom((alluxio.proto.journal.Block.BlockInfoEntry)other); } else { super.mergeFrom(other); return this; } }
subBuilder.mergeFrom(blockInfo_); blockInfo_ = subBuilder.buildPartial();
public static Builder newBuilder(alluxio.proto.journal.Block.BlockInfoEntry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); }