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