private DocumentDiffSnapshotProtoImpl getOrCreateDocumentDiffSnapshotProtoImpl(DocumentDiffSnapshot message) {
if (message instanceof DocumentDiffSnapshotProtoImpl) {
return (DocumentDiffSnapshotProtoImpl) message;
} else {
DocumentDiffSnapshotProtoImpl messageImpl = new DocumentDiffSnapshotProtoImpl();
messageImpl.copyFrom(message);
return messageImpl;
}
}
/** Get or create a ProtocolHashedVersionProtoImpl from a ProtocolHashedVersion. */