/** Get or create a WaveletSnapshotProtoImpl from a WaveletSnapshot. */
private WaveletSnapshotProtoImpl getOrCreateWaveletSnapshotProtoImpl(WaveletSnapshot message) {
if (message instanceof WaveletSnapshotProtoImpl) {
return (WaveletSnapshotProtoImpl) message;
} else {
WaveletSnapshotProtoImpl messageImpl = new WaveletSnapshotProtoImpl();
messageImpl.copyFrom(message);
return messageImpl;
}
}